/* ============================================================
   TYZEN44 — Portfolio-/Agentur-Site 2026
   Design-System: Nachtschwarze Kino-Bühne, Giftgrün-Akzent
   Space Grotesk (Display) + Inter (300–600), beide lokal
   ============================================================ */

:root {
  color-scheme: dark;

  /* Farben — nachtschwarze Bühne mit Giftgrün */
  --bg-0: #0b0d0c;
  --bg-1: #101312;
  --bg-2: #161a18;
  --panel: #131715;
  --line: rgba(235, 245, 238, 0.1);
  --line-strong: rgba(235, 245, 238, 0.24);
  --ink: #f2f5f1;
  --ink-dim: #b9c0ba;
  --ink-faint: #96a099; /* WCAG-geprüft: ≥6:1 auch auf --bg-2 */
  --accent: #b6ff2e;
  --accent-soft: #d6ff85;
  --accent-ink: #c9ff5c;   /* lesbare Akzent-TEXT-Variante auf Dunkel */
  --on-accent: #101408;    /* Text AUF Giftgrün-Flächen (Weiss fällt durch) */
  --glow: rgba(182, 255, 46, 0.14);

  /* Typo */
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Layout */
  --max: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ---------- Skip-Link + sichtbarer Tastatur-Fokus ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg-0);
  font-size: 13px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: radial-gradient(120% 90% at 50% 0%, var(--bg-1) 0%, var(--bg-0) 100%) fixed var(--bg-0);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--on-accent); }

img, svg, video, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

/* ---------- Lokale Fonts (DSGVO: keine Google-Server) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/inter-300.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}
/* Variable Font: eine Datei deckt alle Schnitte 300–700 ab */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-var.woff2") format("woff2");
}

/* ---------- Typografie ---------- */
.overline {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.overline .idx { color: var(--ink-faint); margin-right: 0.9em; font-variant-numeric: tabular-nums; }

h1, h2, .display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
/* Akzent in Headlines: giftgrün statt Serifen-Kursive (alter Look) */
h1 em, h2 em, .display em, .beat-big em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  letter-spacing: inherit;
  color: var(--accent);
}
h3 { font-family: var(--display); font-size: clamp(1.1rem, 1.7vw, 1.35rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }

.display { font-size: clamp(2.7rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin: 18px 0 22px; }

.lead { font-size: clamp(1.02rem, 1.5vw, 1.25rem); font-weight: 300; color: var(--ink-dim); max-width: 52ch; }

/* ---------- Platzhalter-Kennzeichnung (nichts erfinden) ---------- */
.ph-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--bg-2);
  white-space: nowrap;
}
/* Alt-Text-Syntax: das dekorative ◌ bleibt für Screenreader stumm */
.ph-badge::before { content: "◌" / ""; color: var(--accent-ink); font-size: 12px; }
.ph-box {
  border: 1.5px dashed var(--line-strong);
  border-radius: 6px;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(235, 245, 238, 0.04) 14px 28px),
    var(--bg-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--ink-faint);
  padding: 26px 18px;
}
.ph-box strong { font-weight: 500; color: var(--ink-dim); font-size: 1.1rem; }
.ph-box span { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 32px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg-0); transform: translateY(-2px); }
/* Primär-CTA: Giftgrün mit dunklem Text (WCAG — Weiss auf Giftgrün fällt durch) */
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--solid:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--on-accent); }
.btn .arrow { transition: transform 0.35s ease; }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease;
}
/* Blur auf kinderlosem Layer — Header darf kein Containing Block
   fürs fixed Mobile-Nav-Overlay werden */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(11, 13, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header.scrolled::before { opacity: 1; }
.header-inner {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; flex-direction: column; line-height: 1.15; z-index: 120; }
/* Wortmarke „mit Schnitt": Filmstreifen-Kerbe im Z, 44 grün, grünes Quadrat als Punkt */
.logo .l-main { font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: 0.04em; }
.logo .l-44 { color: var(--accent); }
/* Der Schnitt läuft durchs Glyph selbst (clip-path) — funktioniert auf jedem Hintergrund */
.logo .l-z {
  display: inline-block;
  clip-path: polygon(0 0, 100% 0, 100% 32%, 0 50%, 0 60%, 100% 42%, 100% 100%, 0 100%);
}
.logo .l-dot {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  background: var(--accent);
  margin-left: 3px;
}
.logo .l-sub {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); }
.main-nav a {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 8px 2px;
  position: relative;
  transition: color 0.3s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
  transition: right 0.35s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { right: 0; }
.main-nav .btn { padding: 11px 24px; }
.main-nav a.btn::after { display: none; } /* Pill-Button bekommt keinen Nav-Unterstrich */

.nav-toggle { display: none; z-index: 120; width: 44px; height: 44px; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s ease, opacity 0.35s ease, top 0.35s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: rotate(45deg); top: 0; }
body.nav-open .nav-toggle span::after { transform: rotate(-45deg); top: 0; }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    background: rgba(11, 13, 12, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
  }
  .main-nav a { font-size: 16px; }
  body.nav-open .main-nav { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s, 0s; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Sektions-Grundlagen ---------- */
section[id] { scroll-margin-top: calc(var(--header-h) + 10px); }
.section { position: relative; padding: clamp(90px, 14vh, 160px) 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section-head { max-width: 800px; margin-bottom: clamp(40px, 7vh, 80px); }

/* ============================================================
   Hero „Kino-Fahrt": gepinnte Scrub-Stage (Vollbild)
   ============================================================ */
.hero-stage { position: relative; }
.stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--bg-0);
}
.stage canvas,
.stage .stage-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stage .stage-poster { display: none; }
.stage .vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(11, 13, 12, 0.55) 100%),
    linear-gradient(180deg, rgba(11, 13, 12, 0.6) 0%, transparent 18%, transparent 82%, rgba(11, 13, 12, 0.85) 100%);
}
.stage .dim {
  position: absolute;
  inset: 0;
  background: var(--bg-0);
  opacity: 0;
  pointer-events: none;
}

/* Titel-Overlay — blendet mit der ersten Scroll-Bewegung aus */
.hero-title {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad);
}
.hero-title .overline { margin-bottom: 22px; color: var(--accent); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.hero-title .display {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9), 0 6px 60px rgba(0, 0, 0, 0.8);
}
.hero-title .sub {
  margin-top: 22px;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: var(--ink-dim);
  max-width: 56ch;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}
.hero-title .hero-meta { margin-top: 12px; font-size: 0.88rem; color: var(--ink-faint); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
@media (max-height: 620px) { .hero-title .hero-meta { display: none; } } /* kurze Viewports */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin-top: 30px; }
.hero-worklink {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.hero-worklink:hover { border-color: var(--accent); }

/* Text-Beats über der Kino-Fahrt */
.beat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad);
  opacity: 0;
  pointer-events: none;
  color: var(--ink);
}
/* Lesbarkeits-Scrim hinter Beat/Titel (statisch, kein Cursor-Bezug) */
.beat::before,
.hero-title::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1200px, 100vw);
  height: min(620px, 88vh);
  background: radial-gradient(50% 50% at 50% 50%,
    rgba(8, 10, 9, 0.78) 0%,
    rgba(8, 10, 9, 0.5) 45%,
    rgba(8, 10, 9, 0) 74%);
  pointer-events: none;
}
.beat > *, .hero-title > * { position: relative; z-index: 1; }
body.no-scrub .beat::before, body.no-scrub .hero-title::before { display: none; }
.beat .overline { margin-bottom: 18px; color: var(--accent); }
.beat .overline .idx { color: var(--ink-faint); }
.beat .beat-big {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 22ch;
  color: var(--ink);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 4px 44px rgba(0, 0, 0, 0.75);
}
.beat p { margin-top: 16px; color: var(--ink-dim); max-width: 54ch; }

/* reduced-motion / ?rm=1 (body.no-scrub): statisches Kino-Poster,
   Titel und Foyer-Wand fliessen normal untereinander, kein Pin */
body.no-scrub .stage { display: flex; flex-direction: column; height: auto; }
body.no-scrub .stage canvas { display: none; }
body.no-scrub .stage .stage-poster { position: relative; display: block; }
body.no-scrub .stage .vignette { display: none; }
body.no-scrub .hero-title { position: relative; inset: auto; padding: 44px var(--pad); }
body.no-scrub .stage-foyer {
  position: relative;
  inset: auto;
  opacity: 1 !important;
  visibility: visible !important;
  padding: 44px var(--pad) 64px;
}
body.no-scrub .beat { display: none; }
body.no-scrub .scroll-hint { display: none; }

/* Auf sehr niedrigen Viewports kollidiert der Hinweis mit den Hero-Buttons */
@media (max-height: 600px) { .scroll-hint { display: none; } }
.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.scroll-hint .tick {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: tickfall 2s ease-in-out infinite;
}
@keyframes tickfall {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   Foyer-Wand: Schaukästen (Desktop + Handy) IN der Kino-Stage
   Erscheint per Timeline im Schwarz am Ende der Fahrt.
   ============================================================ */
.stage-foyer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(10px, 2.2vh, 24px);
  padding: calc(var(--header-h) + 8px) var(--pad) 22px;
  /* dunkle Foyer-Wand: Lichtschein oben, Sockelleiste unten */
  background:
    linear-gradient(180deg, rgba(182, 255, 46, 0.05) 0%, transparent 24%),
    linear-gradient(180deg, transparent 0 78%, rgba(235, 245, 238, 0.06) 78% calc(78% + 1px), transparent calc(78% + 1px)),
    linear-gradient(180deg, #0d100e 0%, #101312 55%, #0a0c0b 100%);
}
/* Startzustand nur mit JS: die Scrub-Timeline blendet die Wand ein */
html.js .stage-foyer { opacity: 0; visibility: hidden; }

.foyer-head { text-align: center; }
.foyer-head h2 { font-size: clamp(1.3rem, 3vw, 2.2rem); margin: 8px 0 0; }

.foyer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2.6vh, 24px) clamp(14px, 3vw, 40px);
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
}

/* Kartenbreite an die Viewport-Höhe koppeln, damit 2×2 immer reinpasst */
.poster-card { width: min(100%, 38vh); margin-inline: auto; }

/* Schaukasten-Rahmen */
.poster-frame {
  position: relative;
  padding: clamp(5px, 0.9vh, 10px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(235, 245, 238, 0.03);
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}
.poster-frame:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

/* Browser-Mockup (Desktop-Ansicht) — Video-Loop läuft IM Viewport */
.mock-browser {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--panel);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.mock-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); opacity: 0.55; }
.mock-bar i:first-child { background: var(--accent); opacity: 0.8; }
.mock-url {
  margin-left: 8px;
  padding: 2px 11px;
  border-radius: 999px;
  background: var(--bg-0);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  white-space: nowrap;
}
.mock-viewport { position: relative; aspect-ratio: 16 / 10; background: var(--bg-2); }
.mock-viewport img,
.mock-viewport video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.poster-loop { opacity: 0; transition: opacity 0.35s ease; object-position: center; }
.poster-card.started .poster-loop,
.poster-card.playing .poster-loop { opacity: 1; }

/* Handy-Mockup hängt unten rechts über dem Browser (wie früher) */
.mock-phone {
  position: absolute;
  right: clamp(8px, 1.2vw, 16px);
  bottom: clamp(8px, 1.2vw, 16px);
  width: 24%;
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}
.mock-phone::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 1;
}
/* height:auto zwingend — sonst gewinnt das height-Attribut des img
   über die aspect-ratio und das Bild rendert in Naturhöhe */
.mock-phone img { aspect-ratio: 39 / 84.4; object-fit: cover; object-position: top; border-radius: 9px; width: 100%; height: auto; }

/* „Leuchtkasten"-Kante, solange der Loop läuft (statisch, kein Cursor-Glow) */
.poster-card.playing .poster-frame {
  border-color: var(--accent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--accent), 0 0 26px var(--glow);
}
@media (hover: hover) and (pointer: fine) {
  .poster-card:hover .poster-frame { transform: translateY(-3px); }
}

/* Play-Symbol: Touch bis zum Start; Desktop nur bei blockiertem Autoplay */
.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(11, 13, 12, 0.72);
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-size: 12px;
  padding-left: 3px;
  pointer-events: none;
}
@media (hover: none) { .poster-card:not(.playing) .poster-play { display: flex; } }
.poster-card.play-blocked:not(.playing) .poster-play { display: flex; }

/* Messing-Plakette unter dem Schaukasten */
.plakette { margin-top: clamp(6px, 1.2vh, 12px); text-align: center; }
.plakette .work-tags { justify-content: center; margin-bottom: 5px; }
.plakette .tag { padding: 2px 9px; font-size: 8.5px; }
.plakette h3 { font-size: clamp(0.72rem, 1.15vw, 0.95rem); line-height: 1.25; }

.foyer-hint { text-align: center; font-size: 0.78rem; color: var(--ink-faint); }
@media (hover: none) { .foyer-hint { display: none; } }
@media (max-height: 700px) { .foyer-hint { display: none; } }

.work-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 4px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.tag--real { border-color: var(--accent-ink); color: var(--accent-ink); }

/* ============================================================
   Leistungen
   ============================================================ */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.leistung {
  background: var(--panel);
  padding: clamp(28px, 3.4vw, 46px) clamp(24px, 2.6vw, 38px);
  transition: background 0.4s ease;
}
.leistung:hover { background: var(--bg-2); }
.leistung .l-idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent-ink);
  margin-bottom: 16px;
}
.leistung h3 { margin-bottom: 10px; }
.leistung p { font-size: 0.94rem; color: var(--ink-dim); }
.leistung ul { margin-top: 16px; display: grid; gap: 8px; }
.leistung li {
  font-size: 0.88rem;
  color: var(--ink-dim);
  padding-left: 20px;
  position: relative;
}
.leistung li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 1px;
  background: var(--accent);
}
@media (max-width: 900px) { .leistungen-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Prozess
   ============================================================ */
.prozess-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
  counter-reset: step;
}
.step { position: relative; padding-top: 22px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -14px;
  left: 0;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
}
.step:first-child::before { -webkit-text-stroke: 1px var(--accent); }
.step h3 { margin-bottom: 8px; font-size: 1.05rem; position: relative; }
.step p { font-size: 0.92rem; color: var(--ink-dim); position: relative; }
@media (max-width: 900px) {
  .prozess-steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
}
@media (max-width: 560px) { .prozess-steps { grid-template-columns: 1fr; } }

/* ============================================================
   Preise
   ============================================================ */
.preise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
  align-items: stretch;
}
.preis {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: clamp(28px, 3.2vw, 42px) clamp(24px, 2.6vw, 36px);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.preis:hover { transform: translateY(-4px); box-shadow: 0 22px 54px rgba(0, 0, 0, 0.4); }
.preis--feat { border-color: var(--accent-ink); position: relative; }
.preis--feat::before {
  content: "Empfehlung";
  position: absolute;
  top: -11px;
  left: 26px;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.preis .p-name {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.preis .p-val {
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.preis .p-val .cur { font-size: 0.5em; font-weight: 500; color: var(--accent-ink); margin-right: 0.3em; letter-spacing: 0.06em; }
.preis .p-val .per { font-size: 0.42em; font-weight: 400; color: var(--ink-faint); margin-left: 0.4em; }
.preis .p-sub { margin: 14px 0 18px; font-size: 0.92rem; color: var(--ink-dim); flex-grow: 1; }
.preis ul { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 18px; }
.preis li { font-size: 0.88rem; color: var(--ink-dim); padding-left: 20px; position: relative; }
.preis li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 1px;
  background: var(--accent);
}
.preise-note {
  margin-top: clamp(28px, 4vh, 44px);
  font-size: 0.88rem;
  color: var(--ink-faint);
  max-width: 72ch;
}
@media (max-width: 900px) { .preise-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Über
   ============================================================ */
.ueber-section { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ueber-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.ueber-copy p { color: var(--ink-dim); margin-bottom: 1.1em; }
.ueber-copy p strong { color: var(--ink); font-weight: 500; }
.ueber-facts {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* height:auto: width/height-Attribute dürfen die CSS-Breite nicht überstimmen */
.ueber-foto {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
@media (max-width: 900px) {
  .ueber-split { grid-template-columns: 1fr; }
  .ueber-media { max-width: 380px; }
}

/* ============================================================
   Kontakt
   ============================================================ */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.contact-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-item .c-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.contact-item a, .contact-item p { font-size: 1.08rem; color: var(--ink); }
.contact-item a:hover { color: var(--accent-ink); }
.contact-item .c-sub { font-size: 0.86rem; color: var(--ink-dim); margin-top: 4px; }

.kontakt-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
  padding: 13px 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 3px var(--glow);
}
/* Chrome-Autofill auf Dunkel: sonst gelbe/weisse Felder mit dunkler Schrift */
.field input:-webkit-autofill, .field textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--panel) inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
}
.kontakt-form .btn { justify-self: start; margin-top: 6px; }
.form-note { font-size: 0.82rem; color: var(--ink-faint); }
.form-note a { color: var(--accent-ink); border-bottom: 1px solid var(--line-strong); }
.form-status { font-size: 0.9rem; color: var(--accent-ink); }
@media (max-width: 900px) { .kontakt-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-1); padding: clamp(50px, 8vh, 80px) 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  margin-bottom: 50px;
}
.footer-grid .logo { margin-bottom: 16px; }
.footer-grid p, .footer-grid a { font-size: 0.92rem; color: var(--ink-dim); }
.footer-grid h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--accent-ink); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--ink-faint);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal-Utilities (JS setzt .in) ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scroll-hint .tick { animation: none; }
  .preis, .btn { transition: none; }
}

/* ============================================================
   Unterseiten (Impressum / Datenschutz / Danke)
   ============================================================ */
.subpage-hero {
  padding: calc(var(--header-h) + clamp(70px, 12vh, 130px)) 0 clamp(50px, 8vh, 90px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 85% -20%, var(--glow), transparent 60%),
    var(--bg-2);
}
.subpage-hero .display { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
.subpage-hero .lead { margin-top: 22px; }

.prose { max-width: 820px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 1.8em 0 0.6em; font-weight: 400; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { margin-bottom: 1.1em; color: var(--ink-dim); font-size: 0.98rem; }
.prose ul { list-style: none; padding-left: 22px; }
.prose li { position: relative; margin-bottom: 0.5em; }
.prose li::before { content: ""; position: absolute; left: -22px; top: 13px; width: 10px; height: 1px; background: var(--accent); }
.prose a { color: var(--accent-ink); border-bottom: 1px solid var(--line-strong); }
.prose .ph-box { max-width: 460px; margin: 1.4em 0; }

/* Danke-Seite */
.thanks-hero { min-height: 72svh; display: flex; align-items: center; text-align: center; }
.thanks-hero .wrap { max-width: 760px; }
.thanks-hero .display em { color: var(--accent-ink); }
.thanks-hero .lead { margin: 24px auto 36px; }

/* ---------- Button-Text schlägt Kontext-Linkfarben (Nav, Footer, Kontakt) ---------- */
a.btn { color: var(--ink); }
a.btn:hover { color: var(--bg-0); }
a.btn--solid { color: var(--on-accent); }
a.btn--solid:hover { color: var(--on-accent); }
