/* Schriften lokal eingebunden (SIL Open Font License) – keine Verbindung zu Google */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #05070d;
  --bg-alt: #080c16;
  --card: rgba(13, 20, 36, .72);
  --border: #1a2438;
  --text: #e2e8f0;
  --muted: #8b98ad;
  --blue: #3b82f6;
  --btn: #2563eb; /* Buttons: Kontrast mit Weiß 5,2 : 1 */
  --cyan: #38bdf8;
  --glow: rgba(59, 130, 246, .35);
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: "Inter", system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--blue); color: #fff; }
.mono { font-family: var(--mono); }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Hintergrund: Raster + Glow */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px circle at 80% 0%, rgba(59, 130, 246, .18), transparent 60%),
    radial-gradient(500px circle at 0% 40%, rgba(56, 189, 248, .08), transparent 60%),
    linear-gradient(rgba(59, 130, 246, .06) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(59, 130, 246, .06) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .35) 70%, transparent 100%);
}

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(5, 7, 13, .75); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: var(--muted); }
.logo span { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 26px; font-family: var(--mono); font-size: .88rem; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--cyan); }
.nav-links i { font-style: normal; color: var(--blue); margin-right: 4px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--text); transition: .25s; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; background: var(--btn); color: #fff; font-weight: 600; font-family: var(--mono); font-size: .92rem; border: 1px solid var(--btn); transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(59, 130, 246, .15), 0 10px 30px var(--glow); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-small { padding: 7px 16px; font-size: .85rem; }
.btn i { font-style: normal; color: rgba(255, 255, 255, .75); margin-right: 4px; }
.btn-ghost { background: transparent; color: var(--cyan); border-color: rgba(56, 189, 248, .4); }
.btn-ghost:hover { background: rgba(56, 189, 248, .08); box-shadow: none; }

/* Badges */
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 6px; font-family: var(--mono); font-size: .75rem; font-weight: 500; background: rgba(15, 23, 42, .8); border: 1px solid var(--border); color: var(--muted); }
.badge-live { color: #4ade80; border-color: rgba(74, 222, 128, .3); background: rgba(74, 222, 128, .06); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.badge-cat { background: rgba(5, 7, 13, .7); border-color: rgba(56, 189, 248, .3); color: var(--cyan); backdrop-filter: blur(6px); }
.status-live { color: #4ade80; border-color: rgba(74, 222, 128, .35); background: rgba(5, 7, 13, .7); }
.status-new { color: #fff; border-color: var(--btn); background: var(--btn); }
.status-done { color: var(--muted); background: rgba(5, 7, 13, .7); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag { font-family: var(--mono); font-size: .72rem; padding: 3px 9px; border-radius: 5px; background: rgba(59, 130, 246, .08); color: var(--cyan); border: 1px solid rgba(59, 130, 246, .22); }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.prompt { color: var(--cyan); font-size: .95rem; margin-bottom: 12px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.gradient { background: linear-gradient(90deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin-top: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Terminal */
.terminal { border: 1px solid var(--border); border-radius: var(--radius); background: rgba(8, 12, 22, .9); box-shadow: 0 0 0 1px rgba(59, 130, 246, .08), 0 30px 80px -20px var(--glow); overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(15, 23, 42, .6); }
.tdot { width: 11px; height: 11px; border-radius: 50%; }
.tdot.r { background: #f87171; } .tdot.y { background: #fbbf24; } .tdot.g { background: #4ade80; }
.terminal-title { margin-left: 10px; font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.code { padding: 22px; font-family: var(--mono); font-size: .86rem; line-height: 1.75; overflow-x: auto; color: #cbd5e1; }
.code .c { color: #7d8ba1; } /* Kontrast 5,7 : 1 */ .code .k { color: #c084fc; } .code .v { color: #60a5fa; }
.code .p { color: #7dd3fc; } .code .s { color: #86efac; } .code .f { color: #fbbf24; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: rgba(8, 12, 22, .8); border-block: 1px solid rgba(26, 36, 56, .6); }
.section-title { display: flex; align-items: center; gap: 14px; font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; margin-bottom: 28px; }
.section-title span { font-family: var(--mono); font-size: .65em; color: var(--blue); font-weight: 500; }
.section-title::after { content: ""; flex: 1; max-width: 280px; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(6px); transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(59, 130, 246, .5); box-shadow: 0 20px 50px -20px var(--glow); }
.service { padding: 26px; }
.service .icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 10px; background: rgba(59, 130, 246, .1); border: 1px solid rgba(59, 130, 246, .25); color: var(--cyan); font-weight: 700; }
.service h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: .93rem; }

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--border); background: rgba(15, 23, 42, .5); color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; transition: all .2s; }
.filter:hover { color: var(--cyan); border-color: rgba(56, 189, 248, .4); }
.filter.active { background: var(--btn); border-color: var(--btn); color: #fff; }
.project { overflow: hidden; display: flex; flex-direction: column; }
.thumb { position: relative; aspect-ratio: 16 / 10; display: flex; justify-content: space-between; align-items: flex-end; padding: 14px; border-bottom: 1px solid var(--border); }
.thumb::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 24px 24px; }
.thumb .win { position: absolute; top: 12px; left: 14px; display: flex; gap: 5px; }
.thumb .win i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.thumb .badge { position: relative; }
.thumb-emoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.4rem; pointer-events: none; }
.project-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 1.08rem; }
.project-body p { color: var(--muted); font-size: .93rem; margin-top: 6px; }
.project-meta { display: flex; justify-content: space-between; margin-top: auto; padding-top: 18px; font-family: var(--mono); color: var(--muted); font-size: .8rem; }
.project-meta a { color: var(--cyan); }

.empty { padding: 32px; max-width: 640px; }
.empty .empty-out { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.empty p:not(.mono) { color: var(--muted); margin-bottom: 22px; }
[hidden] { display: none !important; }

.audience { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.audience p { color: var(--muted); font-size: .85rem; margin-right: 6px; }

/* Über mich */
.profile { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.avatar, .profile img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.avatar { display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px rgba(56, 189, 248, .4); }
.about .profile p { margin: 0; }
.profile-name { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.about .profile-role { color: var(--cyan); font-size: .8rem; }
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.about p { color: var(--muted); margin-bottom: 14px; max-width: 560px; }
.about em { color: var(--cyan); font-style: normal; }
.druck-block { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.druck-liste { list-style: none; display: grid; gap: 10px; margin: 24px 0 14px; color: var(--text); }
.druck-preis { color: var(--muted); font-size: .9rem; }
.druck-bild { display: block; padding: 0; overflow: hidden; transition: transform .3s ease; }
.druck-bild:hover { transform: translateY(-4px); }
.druck-bild img { display: block; width: 100%; height: auto; }
.log { padding: 24px; }
.log-title { color: var(--cyan); font-size: .85rem; margin-bottom: 16px; }
.log ul { list-style: none; display: grid; gap: 12px; font-size: .86rem; }
.hash { color: #fbbf24; margin-right: 10px; }

/* Kontakt */
.contact { text-align: center; }
.contact-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
.contact .lead { margin: 16px auto 34px; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 26px; margin-top: 36px; font-size: .9rem; }
.socials a { color: var(--muted); transition: color .2s; }
.socials a::before { content: "@"; color: var(--blue); }
.socials a:hover { color: var(--cyan); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 26px 0; color: var(--muted); font-size: .82rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer a:hover { color: var(--cyan); }

/* Rechtliches */
.legal { padding: 64px 0; max-width: 760px; }
.legal h1 { margin-bottom: 24px; }
.legal h2 { margin: 36px 0 12px; font-size: 1.2rem; color: var(--cyan); font-family: var(--mono); font-weight: 500; }
.legal p, .legal-liste { color: var(--muted); margin-bottom: 12px; }
.legal-liste { padding-left: 22px; }
.legal a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .druck-block { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 16px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 20px 40px rgba(0, 0, 0, .6); }
  .nav-links.open { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 36px; }
  .section { padding: 40px 0; }
  .section-title { margin-bottom: 20px; }
  .terminal { display: none; } /* Deko – auf dem Handy ausgeblendet */
}

/* Portfolio: Legende, Konzepte, Vorschaubilder */
.portfolio-lead { margin: -16px 0 22px; }
.legende { display: grid; gap: 10px; padding: 18px 20px; margin-bottom: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(13, 20, 36, .6); max-width: 900px; }
.legende p { color: var(--muted); font-size: .92rem; }
.legende strong { color: var(--text); }
.legende .badge { margin-right: 6px; }
.status-demo { color: var(--cyan); border-color: rgba(56, 189, 248, .35); background: rgba(5, 7, 13, .75); }
.status-konzept { color: #1a1206; border-color: #fbbf24; background: #fbbf24; font-weight: 700; }
.thumb-bild::before { background: linear-gradient(180deg, transparent 55%, rgba(5, 7, 13, .75)); }
.thumb-bild .win { display: none; }
.project-hinweis { margin-top: 12px !important; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); color: #fcd34d !important; font-size: .84rem !important; }


/* So starten wir: Pakete */
.unter-titel { margin: 36px 0 16px; font-size: 1.15rem; }
.preis-karte { display: flex; flex-direction: column; gap: 6px; padding: 22px; }
.preis-name { font-weight: 700; }
.preis-betrag { font-size: 1.6rem; font-weight: 700; color: var(--cyan); }
.preis-betrag small { font-size: .8rem; color: var(--muted); font-weight: 400; }
.preis-info { color: var(--muted); font-size: .9rem; }
.preis-top { border-color: rgba(59, 130, 246, .6); }
.steuer-hinweis { margin-top: 14px; color: var(--muted); font-size: .88rem; }

/* Über mich: Warum Ahari Media */
.warum { padding: 26px; }
.warum h3 { font-size: 1.15rem; margin-bottom: 14px; }
.warum ul { list-style: none; display: grid; gap: 12px; }
.warum li { color: var(--muted); padding-left: 22px; position: relative; }
.warum li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); }
.warum strong { color: var(--text); }

/* Kontakt */
.section-title-mitte { justify-content: center; }
.section-title-mitte::after { display: none; }
.contact .lead a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.contact .lead strong { color: var(--text); }
.kontakt-knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
