/* ==========================================================================
   JOHNMEDIA · Websites, die mitdenken
   Grundregel: Das Leuchtgrün (--ai) steht nur für KI und Automatisierung.
   Alles andere bleibt hell auf dunkel.
   ========================================================================== */

/* Inter (lokal ausgeliefert, keine Verbindung zu Google) */
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("assets/fonts/inter-latin.woff2") format("woff2-variations"), url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2-variations"), url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0a0a0b;
  --bg-alt: #0e0e10;
  --surface: #141416;
  --surface-2: #1b1b1e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f4;
  --muted: #a8a8ad;
  --subtle: #8b8b91;

  --ai: #c8f53c;
  --ai-ink: #0a0a0b;
  --ai-soft: rgba(200, 245, 60, 0.1);
  --ai-line: rgba(200, 245, 60, 0.35);

  --screen: #f3f3ef;
  --screen-card: #ffffff;
  --screen-ink: #111112;
  --screen-muted: #5f5f66;

  --radius: 24px;
  --radius-sm: 14px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 11vw, 160px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
h3 { line-height: 1.2; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--ai); color: var(--ai-ink); }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 8px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: #fff; color: #0a0a0b; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.ai { color: var(--ai); }
.muted { color: var(--muted); }
.link { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.link:hover { text-decoration-color: currentColor; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ai); flex: none; }
.dot--live { box-shadow: 0 0 0 0 rgba(200, 245, 60, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200,245,60,0.5); } 70% { box-shadow: 0 0 0 10px rgba(200,245,60,0); } 100% { box-shadow: 0 0 0 0 rgba(200,245,60,0); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; min-height: 44px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: #fff; color: #0a0a0b; }
.btn--primary:hover { background: #e6e6e2; }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.4); }
.btn--ai { background: var(--ai); color: var(--ai-ink); }
.btn--ai:hover { background: #d6ff5a; }
.btn--sm { padding: 9px 16px; font-size: 14px; min-height: 40px; }
.btn--lg { padding: 15px 28px; font-size: 16px; min-height: 52px; }
.btn--block { width: 100%; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled, .nav.is-open { background: rgba(10, 10, 11, 0.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav__inner { height: 72px; display: flex; align-items: center; gap: 28px; }
.nav__logo img { height: 17px; width: auto; filter: invert(1); }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__mobile-cta { display: none; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: none; cursor: pointer; position: relative; margin-left: 4px; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease); }
.nav__toggle span:first-child { top: 17px; } .nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links {
    /* absolute statt fixed: backdrop-filter der Leiste wäre sonst der Bezugsrahmen */
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 72px; left: 0; right: 0; height: calc(100dvh - 72px); margin: 0;
    padding: 24px var(--gutter) 40px; background: var(--bg); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; color: var(--text); overflow-y: auto;
  }
  .nav.is-open .nav__links a:not(.btn) { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__mobile-cta { display: inline-flex; margin-top: 24px; font-size: 16px; letter-spacing: 0; }
}
@media (max-width: 520px) { .nav__cta { display: none; } .nav__toggle { margin-left: auto; } }

/* ---------- Abschnitte ---------- */
.section { padding: var(--section) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: clamp(64px, 8vw, 104px) 0; }
.section-label { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.section-label--ai { color: var(--ai); }
.section-label--ai::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ai); }
.section-title { font-size: clamp(36px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 650; text-wrap: balance; }
.section-lead { font-size: 18px; color: var(--muted); max-width: 46ch; }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; flex-wrap: wrap; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(120px, 14vw, 168px) 0 clamp(64px, 8vw, 112px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%); opacity: 0.6; }
.hero__glow { position: absolute; width: 720px; height: 720px; right: -160px; top: -120px; background: radial-gradient(circle, rgba(200,245,60,0.14), transparent 62%); filter: blur(10px); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(52px, 8.2vw, 124px); line-height: 0.93; letter-spacing: -0.058em; font-weight: 650; text-wrap: balance; }
.hero__title .ai { text-shadow: 0 0 48px rgba(200,245,60,0.28); }
.hero__lead { margin-top: 32px; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 38ch; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; width: 100%; margin: 0 auto; }
}

/* ---------- Bühne mit Smartphone ---------- */
.stage {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: clamp(40px, 5vw, 56px) clamp(16px, 3vw, 28px) 24px;
  border-radius: 32px; border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(200,245,60,0.08), transparent 70%),
    linear-gradient(180deg, #131315, #0d0d0f);
}
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 20px 20px; -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%); mask-image: radial-gradient(ellipse at center, #000, transparent 75%); }
.stage--hero { background: none; border: 0; padding: 12px 0 0; overflow: visible; }
.stage--hero::before { display: none; }
.stage--hero .phone { transform: rotate(-5deg); }
.stage__controls { position: relative; z-index: 3; margin-top: 24px; text-align: center; }
.stage__ask { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.stage__note { position: relative; z-index: 3; margin-top: 16px; font-size: 12px; color: var(--subtle); text-align: center; }

.choices-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.02); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: rgba(255,255,255,0.4); }
.chip[aria-pressed="true"] { background: var(--ai); border-color: var(--ai); color: var(--ai-ink); font-weight: 600; }

.phone {
  position: relative; z-index: 1; width: min(272px, 70vw); aspect-ratio: 9 / 18.6; flex: none;
  padding: 9px; border-radius: 46px; background: linear-gradient(145deg, #2a2a2e, #111113 60%);
  box-shadow: 0 50px 90px -30px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.1), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.phone__screen { position: relative; height: 100%; border-radius: 38px; background: var(--screen); color: var(--screen-ink); overflow: hidden; display: flex; flex-direction: column; }
.phone__screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 84px; height: 24px; transform: translateX(-50%); border-radius: 20px; background: #000; z-index: 2; }
.phone__status { display: flex; justify-content: space-between; align-items: center; padding: 13px 24px 0 28px; font-size: 12px; font-weight: 650; letter-spacing: -0.01em; }
.phone__status i { width: 22px; height: 10px; border-radius: 3px; border: 1.5px solid currentColor; position: relative; opacity: 0.85; }
.phone__status i::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: currentColor; border-radius: 1px; }

.app { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 26px 14px 14px; }
.app__hello { font-size: 40px; line-height: 0.95; letter-spacing: -0.055em; font-weight: 600; padding: 0 4px; }
.app__hello--sm { font-size: 30px; margin-top: 2px; }
.app__sub, .app__meta { margin-top: 8px; padding: 0 4px; font-size: 12px; font-weight: 600; color: var(--screen-muted); }
.app__meta { margin-top: 2px; font-weight: 500; }
.app__brand { padding: 0 4px; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }

/* Ablauf im Display */
.feed { flex: 1; min-height: 0; margin-top: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; overflow: hidden; font-size: 12px; line-height: 1.35; }
.feed > li { flex: none; animation: itemIn 0.5s var(--ease) both; }
@keyframes itemIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

.it-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 16px; background: var(--screen-card); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.it-row .ic { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--screen-ink); color: var(--ai); font-size: 13px; font-weight: 700; }
.it-row.is-done .ic { background: var(--ai); color: var(--screen-ink); }
.it-row b { display: block; font-weight: 650; }
.it-row small { display: block; font-size: 11px; color: var(--screen-muted); }

.it-bubble { max-width: 86%; padding: 9px 12px; border-radius: 16px; }
.it-bubble--in { align-self: flex-end; background: var(--screen-ink); color: #fff; border-bottom-right-radius: 5px; }
.it-bubble--out { align-self: flex-start; background: var(--screen-card); border-bottom-left-radius: 5px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.it-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--screen-card); }
.it-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9a9aa0; animation: blink 1s infinite; }
.it-typing i:nth-child(2) { animation-delay: 0.15s; } .it-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

.it-pill { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 999px; background: var(--ai); color: var(--screen-ink); font-weight: 650; font-size: 13px; }
.it-pill span:last-child { width: 26px; height: 26px; border-radius: 50%; background: var(--screen-ink); color: var(--ai); display: grid; place-items: center; font-size: 12px; }

.it-progress { padding: 10px 12px; border-radius: 16px; background: var(--screen-card); }
.it-progress b { display: block; font-weight: 650; margin-bottom: 7px; }
.it-progress .bar { height: 6px; border-radius: 6px; background: #e7e7e2; overflow: hidden; }
.it-progress .bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--screen-ink); transition: width var(--dur, 1.2s) linear; }
.it-progress.is-run .bar i { width: 100%; }

.it-doc { border-radius: 16px; background: var(--screen-card); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.it-doc .doc__img { height: 70px; background: linear-gradient(135deg, #cfd8c4, #8ea08a 55%, #5d6f60); position: relative; }
.it-doc .doc__img::after { content: "EXPOSÉ"; position: absolute; left: 10px; bottom: 8px; font-size: 9px; font-weight: 700; letter-spacing: 0.14em; color: #fff; }
.it-doc .doc__body { padding: 9px 11px 11px; }
.it-doc b { display: block; font-weight: 650; }
.it-doc small { display: block; color: var(--screen-muted); font-size: 11px; }
.it-doc .doc__lines { margin-top: 7px; display: grid; gap: 4px; }
.it-doc .doc__lines i { height: 4px; border-radius: 4px; background: #e7e7e2; }
.it-doc .doc__lines i:nth-child(2) { width: 85%; } .it-doc .doc__lines i:nth-child(3) { width: 60%; }

/* Schwebende Karten */
.fcard {
  position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 2px;
  min-width: 168px; max-width: 228px; padding: 12px 16px; border-radius: 18px;
  background: rgba(14, 14, 16, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 24px 48px -16px rgba(0,0,0,0.7);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fcard__label { font-size: 11px; color: var(--subtle); }
.fcard__text { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.fcard b, .fcard .ok, .fcard .stars { color: var(--ai); font-weight: 650; }
.fcard .stars { letter-spacing: 1px; }
.fcard--a { top: 4%; left: 3%; }
.fcard--b { top: 40%; right: 3%; }
.fcard--c { top: 68%; left: 4%; }
.stage--hero .fcard--a { top: 36%; left: -6%; }
.stage--hero .fcard--b { top: 66%; right: -4%; }
.js .fcard { opacity: 0; transform: translateY(14px) scale(0.96); }
.js .fcard.is-on { opacity: 1; transform: none; animation: float 7s ease-in-out infinite; }
.js .fcard--b.is-on { animation-delay: -2.3s; } .js .fcard--c.is-on { animation-delay: -4.6s; }
@keyframes float { 50% { translate: 0 -6px; } }

@media (max-width: 560px) {
  .fcard { min-width: 0; max-width: 168px; padding: 10px 12px; border-radius: 14px; }
  .fcard__text { font-size: 13px; }
  .fcard__label { font-size: 10px; }
  .fcard--a { left: 2%; } .fcard--b { right: 2%; } .fcard--c { left: 3%; }
  .stage--hero .fcard--a { left: 0; } .stage--hero .fcard--b { right: 0; }
  .phone { width: min(248px, 66vw); }
}

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.service { padding: clamp(24px, 3vw, 32px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.service h3 { font-size: 22px; letter-spacing: -0.025em; font-weight: 650; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 16px; }
.service--ai { grid-row: span 3; border-color: var(--ai-line); background: radial-gradient(ellipse 90% 50% at 0% 0%, rgba(200,245,60,0.1), transparent 70%), var(--surface); }
.service--ai h3 { font-size: clamp(26px, 3vw, 34px); margin: 0; }
.service__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.service__lead { font-size: 18px !important; color: var(--text) !important; max-width: 36ch; }
.service__note { margin-top: 20px; font-size: 14px !important; color: var(--subtle) !important; }
.benefits { margin-top: 24px; }
.benefits li { display: grid; gap: 3px; padding: 16px 0; border-top: 1px solid var(--line); }
.benefits strong { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.benefits strong::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ai); }
.benefits span { color: var(--muted); font-size: 16px; padding-left: 16px; }
.tag { display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.tag--ai { background: var(--ai); color: var(--ai-ink); }
.tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } .service--ai { grid-row: auto; } }

/* ---------- Systeme (Ebene 1) ---------- */
.section--systems { background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(200,245,60,0.06), transparent 70%), var(--bg); }
.case { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.case--flip .case__text { order: 2; }
.case__kind { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.badge { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.badge--project { background: #fff; border-color: #fff; color: #0a0a0b; }
.case__title { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 650; text-wrap: balance; }
.case__facts { margin-top: 32px; display: grid; gap: 20px; }
.case__facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); }
.case__facts dd { margin-top: 4px; color: var(--muted); font-size: 16px; max-width: 46ch; }
.case__facts div:last-child dd { color: var(--text); font-weight: 500; }
.systems-cta { margin-top: clamp(32px, 5vw, 56px); padding: clamp(28px, 4vw, 40px); border-radius: var(--radius); border: 1px solid var(--ai-line); background: var(--ai-soft); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.systems-cta p { font-size: clamp(18px, 2vw, 22px); font-weight: 500; letter-spacing: -0.02em; max-width: 40ch; }
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; }
  .case--flip .case__text { order: 0; }
}

/* ---------- Hinter den Kulissen ---------- */
.backstage { padding: clamp(80px, 10vw, 140px) 0; border-block: 1px solid var(--line); background: radial-gradient(ellipse 50% 70% at 50% 100%, rgba(200,245,60,0.08), transparent 70%), var(--bg); text-align: center; }
.backstage__inner { display: flex; flex-direction: column; align-items: center; }
.backstage__title { font-size: clamp(34px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 650; text-wrap: balance; max-width: 18ch; }
.backstage__text { margin-top: 24px; font-size: 18px; color: var(--muted); max-width: 52ch; }

/* ---------- Handwerk (Ebene 2) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background 0.2s, color 0.2s; }
.filter:hover { color: var(--text); }
.filter[aria-pressed="true"] { background: #fff; border-color: #fff; color: #0a0a0b; font-weight: 600; }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; animation: itemIn 0.5s var(--ease) both; }
.work a { display: block; height: 100%; }
.work__media { aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.work a:hover .work__media img { transform: scale(1.04); }
.work__body { padding: 16px 18px 18px; }
.work__title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.work__sub { font-size: 14px; color: var(--muted); }
.work--placeholder .work__media { display: grid; place-items: center; text-align: center; background: repeating-linear-gradient(135deg, #131315 0 14px, #17171a 14px 28px); border-bottom: 1px dashed rgba(255, 201, 60, 0.4); }
.ph-badge { display: inline-block; padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; background: rgba(255, 184, 0, 0.14); color: #ffc93c; border: 1px dashed rgba(255, 201, 60, 0.6); }
.works__fallback { color: var(--muted); }
.works__fallback a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .works { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .works { grid-template-columns: 1fr; } }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(40px, 7vw, 104px); align-items: center; }
.portrait { width: 100%; max-width: 480px; height: auto; border-radius: 28px; border: 1px solid var(--line); }
.about__text { display: grid; gap: 16px; color: var(--muted); max-width: 56ch; }
.stats { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.stats dt { font-size: clamp(32px, 4vw, 48px); font-weight: 650; letter-spacing: -0.04em; line-height: 1; }
.stats dd { margin-top: 8px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about__media { max-width: 460px; } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Kundenlogos ---------- */
.clients__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.clients__label { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.clients__nav { display: flex; gap: 8px; flex: none; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; cursor: pointer; display: grid; place-items: center; transition: border-color 0.2s, background 0.2s; }
.round-btn:hover { border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.04); }
.round-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.logos { overflow-x: auto; scrollbar-width: none; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos::-webkit-scrollbar { display: none; }
.logos.is-dragging { cursor: grabbing; }
.logos:focus-visible { outline-offset: -2px; }
.logos__track { display: flex; align-items: center; gap: clamp(64px, 8vw, 120px); width: max-content; padding: 20px clamp(32px, 8vw, 96px); }
.client { flex: none; }
.client img { height: 68px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; transition: opacity 0.3s; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.client--tall img { height: 96px; }
.client--wide img { height: 54px; }
.client--original img { filter: none; opacity: 1; }
.logos:hover .client img { opacity: 1; }
@media (max-width: 560px) {
  .client img { height: 50px; } .client--tall img { height: 72px; } .client--wide img { height: 40px; }
}

/* ---------- Warum ---------- */
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.reason { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.reason__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; margin-bottom: 22px; }
.reason__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.reason h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 10px; }
.reason p { color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .reasons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .reasons { grid-template-columns: 1fr; } }

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 28px 0 0; border-top: 1px solid var(--line-strong); }
.step__num { font-family: var(--mono); font-size: 13px; color: var(--subtle); }
.step h3 { margin: 18px 0 10px; font-size: 22px; font-weight: 650; letter-spacing: -0.025em; }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 32px 16px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Fragen ---------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: 112px; }
.faq__head .section-lead { margin-top: 24px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); background: linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat; transition: transform 0.3s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 48px 24px 0; color: var(--muted); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } .faq__head { position: static; } }

/* ---------- Kontakt ---------- */
.contact { overflow: hidden; }
.contact__glow { position: absolute; width: 640px; height: 640px; left: -200px; bottom: -280px; background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 65%); pointer-events: none; }
.contact__inner { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__title { font-size: clamp(40px, 5.6vw, 76px); line-height: 1; letter-spacing: -0.05em; font-weight: 650; margin-bottom: 24px; }
.contact__details { margin-top: 40px; display: grid; gap: 14px; }
.contact__details li { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.contact__key { font-size: 14px; color: var(--subtle); }
.contact__details a:hover { text-decoration: underline; text-underline-offset: 4px; }

.form { display: grid; gap: 20px; padding: clamp(24px, 3.5vw, 40px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 500; padding: 0; }
.field legend { margin-bottom: 10px; }
.optional { color: var(--subtle); font-weight: 400; margin-left: 6px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px; transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #6f6f75; }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(255,255,255,0.55); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff8a8a; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; color: var(--muted); transition: all 0.2s; }
.choice input:checked + span { background: #fff; border-color: #fff; color: #0a0a0b; font-weight: 600; }
.choice--ai input:checked + span { background: var(--ai); border-color: var(--ai); color: var(--ai-ink); }
.choice input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: #fff; }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.consent.is-invalid span { color: #ff9b9b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status:empty { display: none; }
.form__status.is-success { padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--line-strong); }
.form__status.is-error { padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(255,107,107,0.08); color: #ffb0b0; border: 1px solid rgba(255,107,107,0.3); }
.form.is-loading button { opacity: 0.6; pointer-events: none; }
@media (max-width: 900px) { .contact__inner { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } .contact__details li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer__logo img { height: 16px; width: auto; filter: invert(1); }
.footer__claim { color: var(--subtle); font-size: 14px; }
.footer__links { display: flex; gap: 24px; margin-left: auto; font-size: 14px; color: var(--muted); }
.footer__links a:hover, .footer__links a[aria-current="page"] { color: var(--text); }
.footer__copy { width: 100%; font-size: 13px; color: var(--subtle); }
@media (max-width: 620px) { .footer__links { margin-left: 0; width: 100%; } }

/* ---------- Rechtliche Seiten ---------- */
.legal__back { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 14px; color: var(--muted); transition: color 0.2s; }
.legal__back:hover { color: var(--text); }
.legal__back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.legal { padding: clamp(128px, 16vw, 180px) 0 var(--section); }
.legal__inner { max-width: 800px; }
.legal .accent { color: var(--muted); }
.legal__title { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; hyphens: manual; }
.legal__intro { margin-top: 24px; font-size: 18px; color: var(--muted); }
.legal section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; font-weight: 650; line-height: 1.25; margin-bottom: 16px; }
.legal p, .legal li { color: var(--muted); font-size: 16px; }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 14px; }
.legal ul { list-style: none; display: grid; gap: 6px; }
.legal ul li { position: relative; padding-left: 20px; }
.legal ul li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: currentColor; }
.legal code { font-family: var(--mono); font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text); }
.legal__toc { margin-top: 40px; padding: 24px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.legal__toc ol { columns: 2; column-gap: 32px; list-style: none; }
.legal__toc li { padding: 4px 0; break-inside: avoid; }
.legal__toc a { color: var(--muted); text-decoration: none; font-size: 15px; }
.legal__toc a:hover { color: var(--text); }
.legal__date { font-family: var(--mono); font-size: 13px !important; color: var(--subtle) !important; }
mark.todo { background: rgba(255, 184, 0, 0.18); color: #ffc93c; padding: 1px 6px; border-radius: 5px; border: 1px dashed rgba(255, 201, 60, 0.6); }
@media (max-width: 620px) { .legal__toc ol { columns: 1; } }

/* ---------- Scroll-Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Ruhige Version ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .stage--hero .phone { transform: none; }
}

/* ==========================================================================
   Bilder und Farbe (Runde 2)
   ========================================================================== */

/* Hero: Studiofoto im Hintergrund */
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: 0.5; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 30%, #000 70%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 30%, #000 70%); }
.hero__bg::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(180deg, transparent, var(--bg)); }
@media (max-width: 960px) {
  .hero__photo { opacity: 0.45; -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.5) 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.5) 60%, transparent 100%); }
}
.hero__face { display: flex; align-items: center; gap: 14px; margin-top: 36px; }
.hero__face img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 2px solid var(--ai); }
.hero__face strong { display: block; font-size: 15px; font-weight: 600; }
.hero__face span { display: block; font-size: 14px; color: var(--muted); }

/* Bühnen: Szenenfoto hinter dem Smartphone */
.stage__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.stage.has-photo::before { z-index: -1; background: linear-gradient(180deg, rgba(10,10,11,0.15) 0%, rgba(10,10,11,0.55) 55%, rgba(10,10,11,0.9) 100%); -webkit-mask-image: none; mask-image: none; }
.stage.has-photo:hover .stage__photo { transform: scale(1.0); }
.stage.has-photo .stage__note, .stage.has-photo .stage__ask { color: #c9c9ce; }

/* Exposé mit echtem Foto */
.it-doc .doc__img { background-size: cover; background-position: center; }
.it-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; border-radius: 16px; background: var(--screen-card); }
.it-thumbs i { aspect-ratio: 1; border-radius: 8px; background-size: cover; background-position: center; }

/* Leistungen mit Bild */
.service__media { margin: calc(clamp(24px, 3vw, 32px) * -1) calc(clamp(24px, 3vw, 32px) * -1) 22px; aspect-ratio: 16 / 7; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service:hover .service__media img { transform: scale(1.04); }
.service { overflow: hidden; }

/* Hinter den Kulissen mit Bild */
.backstage { position: relative; overflow: hidden; isolation: isolate; }
.backstage__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.45; }
.backstage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(10,10,11,0.4), rgba(10,10,11,0.92)); }

/* Farbe durch die ganze Seite */
.section-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ai); }
.step { border-top-color: rgba(200,245,60,0.35); }
.step__num { color: var(--ai); font-weight: 600; }
.stats dt { color: var(--ai); }
.reason__icon { background: var(--ai-soft); }
.reason__icon svg { stroke: var(--ai); }
.reason:hover { border-color: var(--ai-line); }
.reason { transition: border-color 0.3s; }
.qa[open] summary::after { border-color: var(--ai); color: var(--ai); }
.qa summary:hover { color: #fff; }
.qa[open] summary { color: var(--ai); }
#warum { background: radial-gradient(ellipse 50% 50% at 100% 0%, rgba(200,245,60,0.06), transparent 70%), var(--bg-alt); }
#fragen { background: radial-gradient(ellipse 50% 60% at 0% 100%, rgba(200,245,60,0.06), transparent 70%), var(--bg-alt); }
.contact__glow { background: radial-gradient(circle, rgba(200,245,60,0.12), transparent 65%); }
.about__badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ai-line); background: var(--ai-soft); font-size: 14px; font-weight: 500; }
.portrait { box-shadow: 0 40px 80px -40px rgba(200,245,60,0.35); }
