/* Geromin Design-System
   Gemeinsame Grundlage aller Geromin-Websites. Quelle: Website/_design/
   Nach Änderungen Website/design-sync.sh ausführen. */

:root {
  --ink: #06100e;
  --ink-2: #0b1a17;
  --petrol: #0f7369;
  --petrol-deep: #0a4f49;
  --petrol-glow: #2fb3a3;
  --orange: #f29f4b;
  --cream: #f4f0e5;
  --sand: #dccfb9;
  --muted: #8fa7a1;
  --line: rgba(244, 240, 229, 0.12);
  --line-strong: rgba(244, 240, 229, 0.28);

  --f-display: "Syne", "Sora", "Segoe UI", sans-serif;
  --f-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--orange); color: var(--ink); }

/* ---------- Szene (Canvas im Hintergrund) ---------- */

.scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% 40%, transparent 40%, rgba(3, 8, 7, 0.75) 100%);
}

main, .site-header, .site-footer, .hud { position: relative; z-index: 2; }

/* ---------- HUD (Rahmenangaben am Bildschirmrand) ---------- */

.hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hud__item { position: absolute; }
.hud__item--bl { left: var(--gutter); bottom: 22px; }
.hud__item--br { right: var(--gutter); bottom: 22px; text-align: right; }
.hud__progress {
  position: absolute;
  right: calc(var(--gutter) - 14px);
  top: 50%;
  width: 1px;
  height: 120px;
  transform: translateY(-50%);
  background: var(--line);
}
.hud__progress span {
  position: absolute;
  left: -1px;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--orange);
}

/* ---------- Kopfzeile ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  z-index: 10;
  transition: border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Hintergrund als eigene Ebene: backdrop-filter direkt auf der Kopfzeile
   würde das fixierte Handy-Menü auf die Höhe der Kopfzeile beschränken */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 16, 14, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled { border-bottom-color: var(--line); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__sub {
  display: block;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.25s;
}
.nav a:hover, .nav a:focus-visible { color: var(--cream); }
.nav__cta {
  color: var(--ink) !important;
  background: var(--cream);
  padding: 9px 16px;
  border-radius: 999px;
}
.nav__cta:hover { background: var(--orange); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Grundlayout ---------- */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: clamp(96px, 16vh, 180px) 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
}
.kicker__num { color: var(--orange); }

h1, h2, h3 { font-family: var(--f-display); font-weight: 700; margin: 0; line-height: 0.98; letter-spacing: -0.02em; }

.display {
  font-size: clamp(36px, 10.5vw, 168px);
  letter-spacing: -0.045em;
  line-height: 0.9;
}
.display em { font-style: normal; color: var(--orange); }

.h2 { font-size: clamp(36px, 6vw, 92px); letter-spacing: -0.035em; }
.h2 em { font-style: normal; color: var(--petrol-glow); }

.h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.12; letter-spacing: -0.01em; }

.lead {
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.5;
  color: rgba(244, 240, 229, 0.82);
  max-width: 36em;
}
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 0 clamp(72px, 12vh, 120px);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  margin-top: 48px;
}
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll i {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--orange), transparent);
  animation: drip 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Laufband ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  background: rgba(6, 16, 14, 0.5);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: marquee 38s linear infinite;
  font-family: var(--f-display);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.marquee__track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: "✦"; color: var(--orange); font-size: 0.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Zweispaltig ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split__aside { position: sticky; top: 120px; }

/* ---------- Karten (Firmen, Leistungen) ---------- */

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative;
  background: rgba(8, 20, 18, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: clamp(28px, 3.2vw, 44px);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-decoration: none;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.5s var(--ease), opacity 1s var(--ease), transform 1.1s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 179, 163, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card__index { font-family: var(--f-mono); font-size: 12px; color: var(--orange); letter-spacing: 0.1em; }
.card__tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.card p { margin: 0; color: rgba(244, 240, 229, 0.76); }
.card__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
a.card .card__foot { padding-right: 64px; }
.card__arrow {
  position: absolute;
  right: clamp(28px, 3.2vw, 44px);
  bottom: clamp(28px, 3.2vw, 44px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: transform 0.5s var(--ease), background 0.3s, color 0.3s;
}
a.card:hover .card__arrow { transform: rotate(-45deg); background: var(--orange); color: var(--ink); border-color: var(--orange); }

.card--feature { grid-column: span 2; min-height: 380px; }
.card--feature .card__title { font-size: clamp(34px, 5vw, 72px); }

.card--placeholder { background: rgba(8, 20, 18, 0.55); }
.card--placeholder .card__title { color: var(--muted); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 12px;
  color: rgba(244, 240, 229, 0.8);
}
.chip--warn { border-color: rgba(242, 159, 75, 0.6); color: var(--orange); }

/* ---------- Schritte (Vorgehen) ---------- */

.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.2fr) auto;
  gap: 28px;
  align-items: baseline;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease);
}
.step:hover { padding-left: 12px; }
.step__num { font-family: var(--f-mono); font-size: 13px; color: var(--orange); letter-spacing: 0.1em; }
.step__title { font-family: var(--f-display); font-size: clamp(26px, 3.2vw, 46px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.step p { margin: 0; color: rgba(244, 240, 229, 0.76); }
.step__time { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ---------- Liste mit Häkchen ---------- */

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ticks li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.ticks li::before { content: "↳"; color: var(--orange); font-family: var(--f-mono); }
.ticks strong { font-weight: 600; }

/* ---------- Kennzahlen ---------- */

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 64px; }
.stat { background: rgba(8, 20, 18, 0.86); padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat__value { font-family: var(--f-display); font-size: clamp(40px, 5vw, 72px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.stat__value small { font-size: 0.4em; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.stat__label { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* ---------- Hinweis-Box (Platzhalter, geplant) ---------- */

.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px dashed rgba(242, 159, 75, 0.55);
  border-radius: 14px;
  padding: 18px 20px;
  background: rgba(242, 159, 75, 0.06);
  color: rgba(244, 240, 229, 0.86);
  font-size: 15px;
}
.notice::before { content: "⚠️"; }

/* ---------- Kontakt / Abschluss ---------- */

.cta { text-align: center; padding: clamp(120px, 22vh, 220px) 0; }
.cta .display { font-size: clamp(36px, 9vw, 140px); }
.cta .lead { margin: 32px auto 0; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  padding: 18px 28px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.5s var(--ease);
}
.button:hover { background: var(--orange); transform: translateY(-3px); }
.button--ghost { background: transparent; color: var(--cream); border: 1px solid var(--line-strong); }
.button--ghost:hover { color: var(--ink); }

/* ---------- Fusszeile ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 64px 0 96px; background: rgba(4, 10, 9, 0.85); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__grid:has(> :nth-child(4)) { grid-template-columns: 2fr 1fr 1fr 1fr; }
.footer__title { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.footer__list a { text-decoration: none; color: rgba(244, 240, 229, 0.8); }
.footer__list a:hover { color: var(--orange); }
.footer__bottom { margin-top: 56px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Einblenden beim Scrollen ---------- */

[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }

.split-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.split-line > span { display: block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.is-in .split-line > span, .split-line.is-in > span { transform: none; }
.split-line:nth-child(2) > span { transition-delay: 0.08s; }
.split-line:nth-child(3) > span { transition-delay: 0.16s; }

/* ---------- Responsiv ---------- */

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .split__aside { position: static; }
  .cards--3 { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 60px 1fr; }
  .step p, .step__time { grid-column: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: inline-block; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: rgba(6, 16, 14, 0.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
  }
  .nav a { font-size: 16px; }
  .nav.is-open { opacity: 1; pointer-events: auto; }
  .nav-toggle { position: relative; z-index: 3; }
  .cards, .cards--3 { grid-template-columns: 1fr; }
  .card--feature { grid-column: auto; }
  .stats { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .hud__item--br, .hud__progress { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], .split-line > span { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Persönliche Notiz (Elia) ---------- */

.note {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.note__portrait {
  position: relative;
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(47, 179, 163, 0.25), rgba(8, 20, 18, 0.9) 70%);
  border: 1px solid var(--line-strong);
}
.note__portrait::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(242, 159, 75, 0.45);
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.note__initials { font-family: var(--f-display); font-size: 64px; font-weight: 700; letter-spacing: -0.04em; }
.note__quote {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}
.note__quote em { font-style: normal; color: var(--orange); }
.note__body p { margin: 0 0 18px; color: rgba(244, 240, 229, 0.8); max-width: 38em; }
.signature {
  font-family: "Caveat", "Segoe Script", cursive;
  font-size: clamp(40px, 4.5vw, 58px);
  line-height: 1;
  color: var(--cream);
  margin-top: 28px;
  transform: rotate(-3deg);
  transform-origin: left;
  display: inline-block;
}
.signature + .mono { display: block; margin-top: 10px; color: var(--muted); }

/* ---------- Praxis-Projekt ---------- */

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  background: rgba(8, 20, 18, 0.86);
}
.project__main { padding: clamp(28px, 4vw, 56px); border-right: 1px solid var(--line); }
.project__facts { margin: 0; padding: clamp(28px, 4vw, 56px); display: grid; gap: 22px; align-content: start; }
.project__facts div { display: grid; gap: 4px; }
.project__facts dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.project__facts dd { margin: 0; }

@media (max-width: 960px) {
  .note { grid-template-columns: 1fr; }
  .note__portrait { width: 160px; }
  .note__initials { font-size: 48px; }
  .project { grid-template-columns: 1fr; }
  .project__main { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Häufige Fragen ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 20px;
  align-items: center;
  padding: 26px 0;
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 18px;
  color: var(--orange);
  transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--petrol-glow); }
.faq details p { margin: 0 0 28px; max-width: 46em; color: rgba(244, 240, 229, 0.8); }
