/* ==========================================================================
   Großruck Media – Redesign v2
   Aufbau nach KOTA (Hero, Leistungen), Menü und Referenzen nach Mohamed
   Shehata. Dunkel/hell im Wechsel, ein Akzent: Alpenglühen. Motiv: die
   Wasserlinie aus dem CG-Logo.
   ========================================================================== */

@font-face { font-family: "Geist"; src: url("../fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  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: "Geist"; src: url("../fonts/geist-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geistmono-latin.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  /* Farben */
  --night: #0A1214;        /* Nachtsee */
  --night-2: #131D20;
  --night-3: #1C282B;
  --on-night: #F1F2EF;
  --on-night-soft: #A3ADB0;
  --line-night: rgba(241, 242, 239, 0.12);

  --paper: #ECEDEA;        /* Nebelgrau */
  --paper-2: #E1E3DF;
  --card: #F7F7F5;
  --ink: #0A1214;
  --ink-soft: #596366;
  --ink-ghost: #7B8380;
  --line: rgba(10, 18, 20, 0.12);

  --accent: #FF5F2E;       /* Alpenglühen */
  --on-accent: #0A1214;

  /* Schrift */
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --t-lg: clamp(1.25rem, 1rem + 0.9vw, 1.875rem);
  --t-xl: clamp(2.25rem, 1.2rem + 3.6vw, 4.75rem);
  --t-hero: clamp(2.4rem, 0.7rem + 5.8vw, 6.75rem);
  --t-display: clamp(2.6rem, 1.1rem + 4.4vw, 5.5rem);
  --t-statement: clamp(1.75rem, 0.9rem + 2.6vw, 3.4rem);

  /* Raum */
  --m: clamp(16px, 2.6vw, 40px);
  --section: clamp(104px, 12vw, 180px);
  --r-lg: 24px;
  --r-md: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html:not(.lenis) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:not(.lenis) { scroll-behavior: auto; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--night); color: var(--on-night);
  font-family: var(--sans); font-size: var(--t-base); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 200; padding: 12px 18px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.skip:focus { top: 16px; }
.wrap { padding-inline: var(--m); }
.mono { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.06em; text-transform: uppercase; }
.dark { background: var(--night); color: var(--on-night); }
.light { background: var(--paper); color: var(--ink); }
.label { font-size: var(--t-sm); font-weight: 450; letter-spacing: 0; color: var(--ink-soft); line-height: 1.4; }
.dark .label { color: var(--on-night-soft); }
.m { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.m > span { display: inline-block; }

/* --- Knöpfe -------------------------------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 14px 26px; border: 0; border-radius: 999px; cursor: pointer;
  font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.005em; line-height: 1.2; isolation: isolate; overflow: hidden;
  transition: color 300ms var(--ease), transform 300ms var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform 420ms var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(0.97); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink::before { background: var(--accent); }
.btn--ink:hover { color: var(--on-accent); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent::before { background: var(--on-night); }

/* --- Menü (schwebende Pille) -------------------------------------------- */
.nav {
  position: fixed; top: 18px; left: 50%; z-index: 60; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 18px;
  background: rgba(14, 22, 24, 0.62); color: var(--on-night);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px;
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}
.nav__logo { display: inline-flex; align-items: center; gap: 8px; margin-right: 18px; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; min-height: 40px; }
.nav__logo svg { width: 24px; height: 20px; }
.nav__logo i, .foot__brand i { font-style: normal; color: var(--accent); }
.nav__links { display: flex; gap: 2px; }
.nav__links a { white-space: nowrap; padding: 9px 14px; border-radius: 999px; font-size: var(--t-sm); color: var(--on-night-soft); transition: color 200ms ease, background-color 300ms var(--ease); }
.nav__links a:hover { color: var(--on-night); background: rgba(255, 255, 255, 0.06); }
.nav__links a.is-active { color: var(--on-night); background: rgba(255, 255, 255, 0.12); }
.nav__cta {
  margin-left: 8px; padding: 11px 18px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background-color 250ms ease;
}
.nav__cta:hover, .nav__cta.is-active { background: var(--on-night); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.1); cursor: pointer; position: relative; }
.nav__bars, .nav__bars::before { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform 300ms var(--ease); }
.nav__bars { top: 18px; }
.nav__bars::before { content: ""; left: 0; right: 0; top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__bars { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(-7px) rotate(-90deg); }
.menu {
  position: fixed; z-index: 59; top: 78px; left: 12px; right: 12px; padding: 28px 24px 24px;
  background: var(--night-2); color: var(--on-night); border-radius: var(--r-lg); border: 1px solid var(--line-night);
  display: grid; gap: 4px;
}
.menu[hidden] { display: none; }
.menu a { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.03em; padding: 6px 0; }
.menu .menu__cta { margin-top: 16px; font-size: 1rem; background: var(--accent); color: var(--on-accent); border-radius: 999px; text-align: center; padding: 15px; }
.menu__meta { margin-top: 18px; font-size: var(--t-sm); color: var(--on-night-soft); line-height: 1.9; }
.menu__meta a { font-size: inherit; font-weight: 400; padding: 0; }
@media (max-width: 900px) {
  .nav { left: 12px; right: 12px; transform: none; justify-content: space-between; padding: 6px 6px 6px 16px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; }
.hero__wall { position: absolute; inset: 0; z-index: -1; perspective: 1600px; overflow: hidden; will-change: transform; contain: strict; }
.hero__wall::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 45%, rgba(10, 18, 20, 0.62) 0%, rgba(10, 18, 20, 0.88) 70%),
    linear-gradient(to bottom, rgba(10, 18, 20, 0.35), rgba(10, 18, 20, 0.95));
}
.wall__tilt { position: absolute; left: 50%; top: 50%; width: 180vw; transform: translate(-50%, -50%) rotateX(42deg) rotateZ(-16deg); }
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.2vw; will-change: transform; backface-visibility: hidden; }
.wall img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; border-radius: 12px; }

.hero__inner { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px var(--m) 150px; }
.hero__pill {
  display: flex; width: fit-content; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; margin-bottom: 26px;
  font-weight: 400; letter-spacing: 0; line-height: 1.55;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; background: rgba(19, 29, 32, 0.85); font-size: var(--t-sm); color: var(--on-night);
}
.hero__pill svg { width: 20px; height: 16px; color: var(--accent); }
.hero__title { font-size: var(--t-hero); font-weight: 500; letter-spacing: -0.05em; line-height: 0.98; }
.hl { display: flex; align-items: center; gap: 0.28em; }
.hl--2 { justify-content: flex-end; }
.hl--3 { color: var(--on-night-soft); }
.hero__glyph { display: inline-flex; width: 0.95em; height: 0.78em; color: var(--accent); flex: none; }
.hero__glyph svg { width: 100%; height: 100%; }
.hero__note { margin-top: 22px; align-self: flex-end; font-size: var(--t-sm); color: var(--on-night-soft); }
.hero__note::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: #3DDC97; vertical-align: 1px; box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18); }
.hero__foot {
  position: absolute; left: var(--m); right: var(--m); bottom: 30px;
  display: grid; grid-template-columns: 1fr minmax(0, 34rem) 1fr; align-items: end; gap: 24px;
}
.hero__lead { grid-column: 2; text-align: center; font-size: var(--t-sm); line-height: 1.55; color: var(--on-night-soft); }
.hero__lead b { color: var(--on-night); font-weight: 500; }
.hero__scroll { justify-self: end; display: flex; align-items: center; gap: 10px; color: var(--on-night-soft); }
.hero__scroll::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--on-night), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
.hero.is-off .hero__scroll::after, .hero.is-off .hero__mirror { animation-play-state: paused; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) {
  .hero__inner { padding: 110px var(--m) 190px; }
  .hero__title { font-size: 9.6vw; letter-spacing: -0.045em; }
  .hero__glyph { width: 0.8em; height: 0.66em; }
  .hl--3 .m { white-space: normal; }
  .hero__foot { grid-template-columns: 1fr; gap: 14px; }
  .hero__lead { grid-column: 1; text-align: left; }
  .hero__scroll { display: none; }
}

/* --- Über mich ----------------------------------------------------------- */
.about { padding-block: var(--section); }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; max-width: 1180px; margin-inline: auto; }
/* Das Foto hat 760 px Breite. Breiter gezeichnet wird es unscharf. */
.about__card { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); max-width: 420px; }
.about__card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.about__card figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; border-radius: var(--r-md);
  background: rgba(247, 247, 245, 0.9); display: grid; font-size: var(--t-sm); line-height: 1.4;
}
.about__card figcaption span { color: var(--ink-soft); }
.about__text { margin-top: 22px; font-size: clamp(1.45rem, 0.95rem + 1.25vw, 2.1rem); font-weight: 450; letter-spacing: -0.03em; line-height: 1.2; max-width: 26ch; }
.about__text .w { color: var(--ink-ghost); }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__card { aspect-ratio: 4 / 3.4; max-width: none; }
  .about__text { max-width: 24ch; }
  .about__card img { object-position: 50% 22%; }
}

/* --- Leistungen ---------------------------------------------------------- */
.services { padding-block: var(--section); }
.services__stage { padding-inline: var(--m); }
.services__info { display: grid; gap: 20px; }
.service { background: var(--card); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; }
.service__name { margin-top: 18px; font-size: var(--t-display); font-weight: 500; letter-spacing: -0.055em; line-height: 0.95; }
.service__body { margin-top: clamp(28px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px 40px; }
.service__facts { display: grid; gap: 18px; align-content: start; }
.service__facts dt { font-size: var(--t-sm); color: var(--ink-soft); }
.service__facts dd { margin-top: 2px; font-size: var(--t-sm); font-weight: 500; }
.service__desc { font-size: var(--t-base); line-height: 1.55; max-width: 44ch; }
.service__media { margin-top: 28px; border-radius: 18px; background: var(--night); padding: clamp(20px, 5vw, 36px); overflow: hidden; }
.service__foot { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.service__price { font-size: var(--t-xl); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.service__price span { font-size: var(--t-base); letter-spacing: -0.01em; color: var(--ink-soft); font-weight: 400; }
.services__note { font-size: var(--t-sm); color: var(--ink-soft); padding: 4px 4px 0; }
.services__panel { display: none; }
@media (max-width: 760px) { .service__body { grid-template-columns: 1fr; } }

@media (min-width: 1000px) {
  .motion .services { height: 340svh; padding: 0; }
  .motion .services__stage {
    position: sticky; top: 0; height: 100svh; padding: 96px var(--m) var(--m);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--m);
  }
  .motion .services__info { position: relative; display: block; }
  .motion .service {
    position: absolute; inset: 0 0 52px 0; background: none; padding: 8px 0 0; pointer-events: none;
  }
  .motion .service.is-active { pointer-events: auto; }
  .motion .service > * { opacity: 0; transform: translateY(26px); transition: opacity 500ms var(--ease), transform 700ms var(--ease); }
  .motion .service.is-active > * { opacity: 1; transform: none; }
  .motion .service.is-active > :nth-child(2) { transition-delay: 60ms; }
  .motion .service.is-active > :nth-child(3) { transition-delay: 120ms; }
  .motion .service.is-active > :nth-child(5) { transition-delay: 180ms; }
  .motion .service__media { display: none; }
  .motion .service__foot { margin-top: auto; }
  .motion .services__note { position: absolute; left: 0; bottom: 0; padding: 0; font-size: var(--t-xs); max-width: 60ch; }
  .motion .services__panel {
    display: block; position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--night);
  }
  .panel__stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 48px 48px 120px; }
  .panel__stage > .g { grid-area: 1 / 1; opacity: 0; transform: translateY(24px) scale(0.98); transition: opacity 500ms var(--ease), transform 800ms var(--ease); }
  .panel__stage > .g.is-on { opacity: 1; transform: none; }
  .panel__index {
    position: absolute; right: 26px; bottom: 24px; text-align: right; font-size: var(--t-sm); line-height: 1.7; color: var(--on-night-soft);
    padding: 12px 16px; border-radius: var(--r-md); background: rgba(10, 18, 20, 0.66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .panel__index li { transition: color 300ms ease; }
  .panel__index li.is-active { color: var(--on-night); }
  .panel__index li.is-active::after { content: " —"; color: var(--accent); }
}
@media (min-width: 1000px) and (max-height: 800px) {
  .panel__stage { padding: 28px 40px 140px; }
  .g-browser { height: 330px; --gv: 292px; }
  .panel__stage .g-cap { display: none; }
  .panel__stage .g-list li { padding-block: 10px; }
}

/* --- Referenzen ---------------------------------------------------------- */
.refs { position: relative; }
.refs__label, .refs__counter { display: none; }
.ref { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.ref--intro { align-items: center; }
.ref__media { position: absolute; inset: 0; }
.ref__media picture, .ref__media img { width: 100%; height: 100%; }
.ref__media img { object-fit: cover; object-position: 50% 0; filter: saturate(0.92); }
.ref__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 18, 20, 0.97) 0%, rgba(10, 18, 20, 0.95) 36%, rgba(10, 18, 20, 0.6) 56%, rgba(10, 18, 20, 0.15) 78%, rgba(10, 18, 20, 0) 100%),
    linear-gradient(0deg, rgba(10, 18, 20, 0.8) 0%, rgba(10, 18, 20, 0) 38%),
    linear-gradient(rgba(10, 18, 20, 0.18), rgba(10, 18, 20, 0.18));
}
.ref__text { position: relative; z-index: 2; padding: 0 var(--m) clamp(80px, 11svh, 120px); max-width: min(700px, 48vw); }
.ref--intro .ref__text { max-width: 900px; padding-bottom: 0; }
.ref__fan { display: none; }
@media (min-width: 900px) {
  .ref__fan { display: block; position: absolute; right: 6vw; top: 50%; width: min(38vw, 620px); aspect-ratio: 16 / 10; transform: translateY(-50%); }
  .ref__fan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; border-radius: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
  .ref__fan img:nth-child(1) { transform: translate(-14%, -16%) rotate(-9deg) scale(0.86); }
  .ref__fan img:nth-child(2) { transform: translate(10%, -8%) rotate(5deg) scale(0.9); }
  .ref__fan img:nth-child(3) { transform: translate(-6%, 12%) rotate(-3deg) scale(0.94); }
  .ref__fan img:nth-child(4) { transform: translate(8%, 20%) rotate(7deg); }
}
.ref__brand { color: var(--on-night-soft); }
.ref__title { margin-top: 14px; font-size: clamp(2.2rem, 0.8rem + 3.8vw, 4.6rem); font-weight: 500; letter-spacing: -0.055em; line-height: 0.95; }
.ref--intro .ref__title { margin-top: 0; font-size: var(--t-display); }
.ref__desc { margin-top: 20px; max-width: 44ch; color: var(--on-night-soft); }
.ref--intro .ref__desc { font-size: var(--t-lg); line-height: 1.4; max-width: 34ch; letter-spacing: -0.02em; }
.ref__hint { margin-top: 36px; color: var(--on-night-soft); }
.ref__hint::after { content: " ↓"; }
.ref__chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.ref__chips li { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 11px; border: 1px solid rgba(241, 242, 239, 0.22); border-radius: 6px; color: var(--on-night); }
.ref__chips li.is-accent { border-color: var(--accent); color: var(--accent); }
.ref .btn { margin-top: 28px; }
.refs__progress { display: none; }

.motion .refs { height: 740svh; }
.motion .refs__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.motion .ref { position: absolute; inset: 0; min-height: 0; isolation: isolate; }
.motion .ref[data-ref] { pointer-events: none; }
.motion .ref[data-ref].is-current { pointer-events: auto; }
@media (min-width: 761px) { .motion .ref[data-ref] .ref__text > * { clip-path: inset(0% -60% 100% -4%); } }
@media (max-width: 760px) { .motion .ref__media, .motion .ref__win { will-change: transform; } }
.motion .refs__label, .motion .refs__counter { display: block; position: absolute; z-index: 5; top: 34px; color: var(--on-night-soft); }
.motion .refs__label { left: var(--m); }
.motion .refs__counter { right: var(--m); color: var(--on-night); font-variant-numeric: tabular-nums; }
.motion .refs__progress { display: flex; position: absolute; z-index: 5; left: var(--m); right: var(--m); bottom: 30px; gap: 10px; }
.refs__progress span { position: relative; flex: 1; height: 2px; background: rgba(241, 242, 239, 0.18); overflow: hidden; border-radius: 2px; }
.refs__progress span::after { content: ""; position: absolute; inset: 0; background: var(--on-night); transform-origin: left; transform: scaleX(var(--f, 0)); }
@media (max-width: 900px) { .motion .refs__label { display: none; } .motion .refs__counter { top: auto; bottom: 46px; } .ref__text { max-width: 640px; } }
@media (max-width: 760px) {
  .ref__media::after { background: linear-gradient(0deg, rgba(10, 18, 20, 0.98) 0%, rgba(10, 18, 20, 0.94) 52%, rgba(10, 18, 20, 0.6) 68%, rgba(10, 18, 20, 0.12) 86%, rgba(10, 18, 20, 0) 100%); }
  .ref__text { padding-bottom: 84px; }
  .ref__desc { font-size: var(--t-base); }
}

/* --- Ablauf -------------------------------------------------------------- */
.steps { padding-block: var(--section); }
.steps__head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; }
.steps__title { font-size: var(--t-statement); font-weight: 450; letter-spacing: -0.035em; line-height: 1.12; max-width: 20em; }
.steps__line { margin-top: clamp(64px, 7vw, 104px); height: 1px; background: var(--line); position: relative; }
.steps__line span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(1); }
.motion .steps__line span { transform: scaleX(0); }
.steps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.step { padding-top: 26px; display: flex; flex-direction: column; }
.step__num { color: var(--accent); font-size: var(--t-sm); }
.step h3 { margin-top: 30px; font-size: var(--t-lg); letter-spacing: -0.03em; }
.step p { margin-top: 12px; font-size: var(--t-base); color: var(--ink-soft); line-height: 1.6; }
.step__time { margin-top: 22px; align-self: flex-start; padding: 7px 13px; border-radius: 999px; background: var(--card); font-size: var(--t-xs); font-weight: 500; }
@media (max-width: 900px) {
  .steps__head { grid-template-columns: 1fr; }
  .steps__line { display: none; }
  .steps__list { grid-template-columns: 1fr; gap: 0; margin-top: 48px; }
  .step { border-top: 1px solid var(--line); padding-block: 22px 28px; display: grid; grid-template-columns: 48px 1fr; }
  .step > * { grid-column: 2; }
  .step__num { grid-column: 1; grid-row: 1; padding-top: 4px; }
  .step h3 { margin-top: 0; }
}

/* --- Fragen -------------------------------------------------------------- */
.faq { padding-block: 0 var(--section); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.faq__side { position: sticky; top: 120px; display: grid; gap: 32px; justify-items: start; }
.faq__title { font-size: var(--t-xl); letter-spacing: -0.05em; line-height: 1; max-width: 9em; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  position: relative; list-style: none; cursor: pointer; padding: 26px 56px 26px 0;
  font-size: var(--t-lg); letter-spacing: -0.025em; line-height: 1.25; transition: color 200ms ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before, .faq__item summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; background: currentColor; transition: transform 400ms var(--ease);
}
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }
.faq__item summary:hover { color: var(--ink-soft); }
.faq__a p { padding: 0 56px 28px 0; color: var(--ink-soft); max-width: 56ch; }
.faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size 450ms var(--ease), content-visibility 450ms allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } .faq__side { position: static; } }

/* --- Kontakt ------------------------------------------------------------- */
.contact { padding-block: var(--section); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.contact__title { font-size: var(--t-hero); letter-spacing: -0.055em; line-height: 0.95; }
.contact__lead { margin-top: 28px; max-width: 36ch; font-size: var(--t-lg); line-height: 1.4; letter-spacing: -0.02em; color: var(--on-night-soft); }
.contact__direct { margin-top: 48px; display: grid; }
.contact__direct li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; padding-block: 16px; border-top: 1px solid var(--line-night); }
.contact__direct li:last-child { border-bottom: 1px solid var(--line-night); }
.contact__direct .mono { color: var(--on-night-soft); }
.contact__direct a { overflow-wrap: anywhere; transition: color 200ms ease; }
.contact__direct a:hover { color: var(--accent); }

.form { background: var(--night-2); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 40px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: var(--t-sm); color: var(--on-night-soft); }
.field label span { opacity: 0.7; }
.field input:not([type="checkbox"]):not([type="radio"]), .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; font: inherit; font-size: 1rem; color: var(--on-night);
  background: var(--night); border: 1px solid var(--line-night); border-radius: var(--r-md);
  transition: border-color 200ms ease;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:hover, .field textarea:hover { border-color: rgba(241, 242, 239, 0.3); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field [aria-invalid="true"] { border-color: #FF8A7A !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; margin-bottom: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-night); font-size: var(--t-sm); color: var(--on-night); transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease; }
.chips input:checked + span { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field--check { grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.field--check label { font-size: var(--t-sm); line-height: 1.5; }
.field--check a { text-decoration: underline; text-underline-offset: 3px; color: var(--on-night); }
.form__send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__reply { font-size: var(--t-sm); color: var(--on-night-soft); flex: 1 1 14rem; }
.form__status { font-size: var(--t-sm); min-height: 1.4em; }
.form__status.ok { color: #3DDC97; }
.form__status.err { color: #FF8A7A; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .contact__direct li { grid-template-columns: 1fr; gap: 4px; } }

/* --- Footer -------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line-night); padding-top: 72px; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot__brand { display: inline-flex; align-items: center; gap: 10px; align-self: start; font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.03em; }
.foot__brand svg { width: 34px; height: 28px; }
.foot__col { display: grid; gap: 10px; align-content: start; font-size: var(--t-sm); }
.foot__col .mono { color: var(--on-night-soft); margin-bottom: 6px; }
.foot__col a, .foot__col span { color: var(--on-night); width: fit-content; }
.foot__col a { transition: color 200ms ease; }
.foot__col a:hover { color: var(--accent); }
.foot__bottom { margin-top: 72px; padding-block: 24px 32px; border-top: 1px solid var(--line-night); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: var(--t-sm); color: var(--on-night-soft); }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }


/* --- Leistungs-Grafiken (erklären das Paket, statt Projekte zu wiederholen) --- */
.g { width: min(100%, 470px); margin: 0 auto; display: grid; gap: 18px; color: var(--on-night); font-family: var(--sans); }
.g-cap { text-align: center; font-size: var(--t-sm); color: var(--on-night-soft); }
.g-anim { opacity: 0; transform: translateY(12px); transition: opacity 450ms ease, transform 650ms var(--ease); }
.is-on .g-anim { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 60ms + 120ms); }

.g-browser { --gv: 392px; background: var(--card); color: var(--ink); border-radius: 14px; overflow: hidden; height: 430px; display: flex; flex-direction: column; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.g-bar { position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--paper-2); }
.g-bar i { width: 9px; height: 9px; border-radius: 50%; background: #C5C9C4; }
.g-bar span { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: var(--card); font-size: 0.75rem; color: var(--ink-soft); }
.g-page { padding: 14px; display: grid; gap: 10px; }
.is-on .g-page { animation: g-scroll 10s ease-in-out 1s infinite alternate; }
@keyframes g-scroll { 0%, 12% { transform: translateY(0); } 88%, 100% { transform: translateY(calc(var(--gv) - 100%)); } }
.g-sec { display: grid; gap: 2px; padding: 14px 16px; border-radius: 10px; background: #fff; border: 1px solid rgba(10, 18, 20, 0.07); }
.g-sec b { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; }
.g-sec span { font-size: 0.8125rem; color: var(--ink-soft); }
.g-sec--hero { padding: 30px 18px 22px; background: var(--night); color: var(--on-night); border: 0; }
.g-sec--hero b { font-size: 1.25rem; }
.g-sec--hero span { color: var(--on-night-soft); }
.g-sec--hero em { justify-self: start; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-style: normal; font-size: 0.75rem; font-weight: 500; }
.g-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.g-tiles i { padding: 16px 4px; border-radius: 7px; background: var(--paper); font-style: normal; font-size: 0.75rem; text-align: center; color: var(--ink-soft); }

.g-tree { gap: 0; }
.g-node { position: relative; padding: 11px 8px; border-radius: 10px; background: var(--card); color: var(--ink); font-size: 0.8125rem; font-weight: 500; text-align: center; }
.g-node--root { justify-self: center; padding: 13px 26px; background: var(--accent); color: var(--on-accent); font-size: 0.9375rem; }
.g-node--root::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 20px; background: rgba(241, 242, 239, 0.35); }
.g-branches { position: relative; margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.g-branches::before { content: ""; position: absolute; top: -20px; left: 12.5%; right: 12.5%; height: 1px; background: rgba(241, 242, 239, 0.35); }
.g-col { display: grid; gap: 8px; align-content: start; }
.g-col > .g-node::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 20px; background: rgba(241, 242, 239, 0.35); }
.g-leaf { padding: 9px 4px; border-radius: 8px; border: 1px dashed rgba(241, 242, 239, 0.3); font-size: 0.75rem; text-align: center; color: var(--on-night-soft); }
.g-tree .g-cap { margin-top: 26px; }

.g-card { padding: 20px 22px 8px; border-radius: 16px; background: var(--card); color: var(--ink); }
.g-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.9375rem; font-weight: 600; }
.g-ok { padding: 5px 10px; border-radius: 999px; background: #DDF4E7; color: #11663F; font-size: 0.75rem; font-weight: 500; white-space: nowrap; }
.g-list { margin-top: 12px; }
.g-list li { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid rgba(10, 18, 20, 0.08); font-size: 0.875rem; }
.g-list span { color: #11663F; font-weight: 500; }
.g-list span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #2BB673; vertical-align: 1px; }
.g-chat { display: grid; gap: 8px; }
.g-msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: 0.875rem; line-height: 1.4; }
.g-msg--in { justify-self: start; background: var(--night-3); border-bottom-left-radius: 4px; }
.g-msg--out { justify-self: end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; }
@media (max-width: 760px) {
  .g-browser { height: 360px; --gv: 322px; }
  .g-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; margin-top: 18px; }
  .g-branches::before, .g-col > .g-node::before, .g-node--root::after { display: none; }
}

/* --- Motiv: die Wasserlinie aus dem Logo -------------------------------- */
/* 1. Im Hero spiegelt sich die letzte Zeile, unterbrochen von zwei Wellen wie im CG-Logo */
.hero__head { position: relative; }
.hero__reflect {
  position: absolute; left: 0; top: calc(100% - 0.16em); white-space: nowrap; pointer-events: none; color: var(--on-night-soft);
  font-size: var(--t-hero); font-weight: 500; letter-spacing: -0.05em; line-height: 0.98;
}
.hero__mirror span::before { content: attr(data-t); white-space: pre; }
.hero__wline { display: block; height: 2px; background: currentColor; opacity: 0.4; transform-origin: left; }
.hero__mirror {
  display: block; margin-top: 3px; transform: scaleY(-0.62); transform-origin: top; opacity: 0.26;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0) 80%), linear-gradient(to top, #000 0 16%, transparent 16% 24%, #000 24% 34%, transparent 34% 40%, #000 40%);
          mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0) 80%), linear-gradient(to top, #000 0 16%, transparent 16% 24%, #000 24% 34%, transparent 34% 40%, #000 40%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.motion .hero__mirror { animation: ripple 6s ease-in-out infinite alternate; }
@keyframes ripple { from { transform: scaleY(-0.62) translateX(0); } to { transform: scaleY(-0.66) translateX(5px); } }
@media (max-width: 760px) { .hm-a { display: none; } .hero__reflect { font-size: 9.6vw; letter-spacing: -0.045em; } }

/* 2. Hell/Dunkel-Übergänge: harte Linie plus zwei Wellen-Streifen */
.wl { position: relative; }
.wl::before {
  content: ""; position: absolute; z-index: 4; left: 0; right: 0; top: 0; height: 16px; pointer-events: none;
  background:
    linear-gradient(var(--prev), var(--prev)) 0 0 / 100% 4px no-repeat,
    linear-gradient(var(--prev), var(--prev)) 7% 8px / 74% 2px no-repeat,
    linear-gradient(var(--prev), var(--prev)) 22% 13px / 41% 1px no-repeat;
  transform-origin: left; transform: scaleX(var(--wl, 1));
}


/* --- Projektfenster: jedes Projekt steht frei, ohne Abdunkelung ---------- */
.ref--win { flex-direction: column; justify-content: center; align-items: stretch; }
.ref__win {
  position: relative; width: calc(100% - 2 * var(--m)); margin: 0 var(--m) 32px; aspect-ratio: 16 / 10;
  border-radius: 18px; overflow: hidden; background: var(--night-2);
  box-shadow: 0 0 0 1px rgba(241, 242, 239, 0.1), 0 40px 80px rgba(0, 0, 0, 0.45);
}
.ref--win .ref__media::after { display: none; }
.ref--win .ref__text { padding-bottom: 32px; }
/* --- Vorher/Nachher: der Regler als Zutat über dem Fenster -------------- */
.ref--ba { --x: 62%; }
.ba__old { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.ba__old img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.ba { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(10, 18, 20, 0.18); }
.ba__knob { position: absolute; left: var(--x); top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); transition: transform 250ms var(--ease); }
.ba__tags { position: absolute; left: var(--x); top: 16px; display: flex; gap: 12px; transform: translateX(-50%); }
.ba__tags span { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 4px 14px rgba(10, 18, 20, 0.18); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; pointer-events: auto; touch-action: pan-y; }
.ba__range:hover ~ .ba__knob, .ba__range:focus-visible ~ .ba__knob { transform: scale(1.1); }
.ba__range:focus-visible ~ .ba__knob { outline: 2px solid #fff; outline-offset: 4px; }
.ref__ba-hint { margin-top: 18px; color: var(--on-night-soft); }
.motion .ref--ba:not(.ba-on) { --x: 100%; }
.motion .ref--ba:not(.ba-on) .ba { opacity: 0; }
.motion .ref--ba .ba { transition: opacity 400ms ease; }
.motion .ref:not(.is-current) .ba__range { pointer-events: none; }
.motion .ref--ba:not(.is-current) .ba { opacity: 0; }
@media (min-width: 901px) {
  .ref--win { flex-direction: row; justify-content: flex-start; align-items: center; }
  .ref--win .ref__text { order: -1; flex: 1; max-width: none; padding: 0 0 0 var(--m); }
  .ref__win { flex: none; width: min(56vw, calc((100svh - 220px) * 1.6)); margin: 0 var(--m) 0 clamp(24px, 3vw, 56px); }
}
@media (max-width: 900px) and (min-width: 761px) {
  .ref--win { justify-content: flex-start; padding-top: 92px; }
  .ref__win { aspect-ratio: auto; height: 40svh; margin-bottom: 20px; }
  .ref--win .ref__text { padding-bottom: 84px; }
  .ref__ba-hint { display: none; }
}
/* Handy: Bild randlos über die obere Hälfte, Text unten auf dunklem Verlauf */
@media (max-width: 760px) {
  .ref--win { justify-content: flex-end; }
  .ref__win { position: absolute; inset: 0; width: auto; margin: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none; background: var(--night); }
  .ref__win::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(0deg, rgba(10, 18, 20, 0.98) 0%, rgba(10, 18, 20, 0.95) 44%, rgba(10, 18, 20, 0.55) 56%, rgba(10, 18, 20, 0) 66%);
  }
  .ba__line { top: 0; bottom: 42%; }
  .ba__knob { top: 31%; }
  .ba__tags { top: 92px; }
  .ba__range { bottom: 42%; height: auto; }
  .ref--win .ref__text { position: relative; z-index: 4; padding-bottom: 84px; }
  .ref__ba-hint { display: none; }
}
@media (max-width: 760px) and (max-height: 720px) { .ref--win .ref__chips { display: none; } }

/* --- Impressum und Datenschutz ------------------------------------------ */
.legal { padding: 150px var(--m) var(--section); min-height: 70svh; }
.legal__inner { max-width: 760px; margin: 0 auto; }
.legal__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--t-sm); color: var(--ink-soft); transition: color 200ms ease; }
.legal__back:hover { color: var(--ink); }
.legal__title { margin-top: 18px; font-size: var(--t-xl); letter-spacing: -0.05em; line-height: 1; }
.prose { margin-top: 40px; }
.prose > p:first-child { font-size: var(--t-lg); line-height: 1.4; letter-spacing: -0.02em; color: var(--ink-soft); }
.prose h2 { margin-top: 52px; font-size: var(--t-lg); letter-spacing: -0.025em; line-height: 1.2; }
.prose p, .prose ul { margin-top: 14px; line-height: 1.65; }
.prose ul { list-style: disc; padding-left: 1.25em; }
.prose li + li { margin-top: 6px; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 200ms ease; }
.prose a:hover { color: var(--accent); }
.prose strong { font-weight: 600; }
.todo { padding: 1px 5px; border-radius: 4px; background: #FFE1D6; color: #8A2A0A; }
.legal__note { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink-soft); }

/* --- Bewegung reduzieren: keine Schleifen, keine Übergänge ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
