/* ==========================================================================
   Caratu Design – Stylesheet
   Tokens -> Basis -> Komponenten -> Sektionen -> Motion -> Responsive
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  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-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben: ein Akzent aus dem Logo-Petrol (#275259), aufgehellt im selben Farbton */
  --bg: #090c0d;
  --surface-1: #111618;
  --surface-2: #182023;
  --surface-3: #202a2d;
  --line: #222b2e;
  --text: #eef3f3;
  --text-2: #93a1a3;
  --text-3: #5d6a6c;
  --accent: #62cada;
  --accent-ink: #062126;
  --petrol: #275259;
  --petrol-deep: #173238;

  /* Schrift */
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Radius nach Rolle (3 Werte) */
  --r-s: 6px;   /* Buttons, Inputs */
  --r-m: 12px;  /* Karten, Bilder, Nav */
  /* große Flächen: 0 */

  /* Schattenstufen: nur für Elemente, die über etwas liegen */
  --sh-1: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 12px rgba(0, 0, 0, .25);
  --sh-2: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px -12px rgba(0, 0, 0, .55);
  --sh-3: 0 4px 10px rgba(0, 0, 0, .35), 0 40px 80px -20px rgba(0, 0, 0, .75);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 12vw, 168px);
  --nav-h: 64px;
  --overlap: 14vh;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
main { overflow-x: clip; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: var(--r-s); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 16px; }

.mono { font-family: var(--mono); font-feature-settings: "zero"; letter-spacing: -0.01em; }
.accent { color: var(--accent); }

h2.title {
  font-size: clamp(2.1rem, 4.8vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
  text-wrap: balance;
}
.lead { color: var(--text-2); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 56ch; margin-top: 20px; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--r-s);
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transform: translate3d(var(--bx), var(--by), 0);
  transition: transform .35s var(--ease-out), background-color .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #7ad6e3; }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--text); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.link-arrow:hover svg { transform: translate(3px, -3px); }
.link-arrow:hover { color: var(--accent); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 14px 0 auto; z-index: 50;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  width: min(100% - 2 * var(--gutter), 1120px); margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px 0 16px;
  border-radius: var(--r-m);
  background: rgba(17, 22, 24, 0);
  transition: background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.is-scrolled .nav-inner {
  background: rgba(17, 22, 24, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: var(--sh-1);
}
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; font-size: 1.05rem; min-height: 44px; }
.brand img { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--text-2); text-decoration: none; font-size: .95rem; border-radius: var(--r-s); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-cta { margin-left: 10px; min-height: 44px; padding: 0 16px; font-size: .95rem; }
.nav-burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--r-s); cursor: pointer; align-items: center; justify-content: center; }
.nav-burger span { position: relative; display: block; width: 20px; height: 2px; background: var(--text); transition: background-color .2s; }
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--text); transition: transform .3s var(--ease-out); }
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
.nav.is-open .nav-burger span { background: transparent; }
.nav.is-open .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }
.nav-menu {
  pointer-events: auto;
  display: none;
  width: min(100% - 2 * var(--gutter), 1120px); margin: 8px auto 0;
  padding: 8px; border-radius: var(--r-m);
  background: rgba(17, 22, 24, .96);
  box-shadow: var(--sh-2);
}
.nav-menu a { display: flex; align-items: center; min-height: 52px; padding: 0 14px; text-decoration: none; font-size: 1.15rem; font-weight: 500; border-radius: var(--r-s); }
.nav-menu a:hover { background: var(--surface-2); }
.nav-menu .btn { margin-top: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 96px;
  isolation: isolate;
}
.gl-stage {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
}
.gl-stage canvas { width: 100%; height: 100%; display: block; }
.gl-fallback {
  position: absolute; right: 12%; top: 50%; width: min(34vw, 420px); transform: translateY(-50%);
  opacity: .9; display: none;
}
.no-webgl .gl-fallback { display: block; }
.hero-copy { position: relative; max-width: 720px; will-change: transform; }
.hero h1 {
  font-size: clamp(2.9rem, 7.4vw, 6.6rem);
  line-height: .96;
  letter-spacing: -0.05em;
  font-weight: 600;
  text-wrap: balance;
}
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .w > span { display: inline-block; }
.hero-sub { margin-top: 28px; max-width: 46ch; color: var(--text-2); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55; text-wrap: pretty; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text-2); font-size: .9rem; list-style: none; padding: 0; margin: 0; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); margin-right: 10px; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 1px; height: 56px; background: var(--line); overflow: hidden;
}
.hero-scroll::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: scrollcue 2.2s var(--ease-io) infinite; }
@keyframes scrollcue { to { top: 100%; } }

/* ---------- Statement (überlappt den Hero) ---------- */
.statement {
  position: relative; z-index: 2;
  margin-top: calc(var(--overlap) * -1);
  background: var(--bg);
  padding: var(--section) 0 calc(var(--section) * .8);
  box-shadow: 0 -40px 60px -20px var(--bg);
}
.statement-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.statement-text {
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  line-height: 1.22; letter-spacing: -0.03em; font-weight: 500;
  text-wrap: pretty;
}
.statement-text .sw { color: var(--text-3); transition: color .5s; }
.statement-text .sw.lit { color: var(--text); }
.statement-text .sw.key.lit { color: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
.fact { padding: 32px 32px 8px 0; }
.fact + .fact { padding-left: 32px; border-left: 1px solid var(--line); }
.fact-num { display: block; font-family: var(--mono); font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.05em; line-height: 1; font-weight: 500; }
.fact-num small { font-family: var(--font); font-size: .36em; letter-spacing: -0.01em; color: var(--text-2); font-weight: 500; white-space: nowrap; }
.fact h3 { margin-top: 18px; font-size: 1.1rem; letter-spacing: -0.02em; font-weight: 600; }
.fact p { margin-top: 8px; color: var(--text-2); font-size: .98rem; }

/* ---------- Demos ---------- */
.demos { position: relative; z-index: 2; background: var(--bg); }
.demos-head { padding-top: calc(var(--section) * .6); }
.demos-head .lead { max-width: 60ch; }

.ring-section { --ring-h: clamp(170px, 29vw, 390px); position: relative; padding: clamp(24px, 4vw, 56px) 0 clamp(96px, 10vw, 140px); }
.ring-stage {
  position: relative;
  height: calc(var(--ring-h) * 1.5 + 72px);
  overflow: hidden;
  display: grid; place-items: center;
  perspective: 1400px;
  perspective-origin: 50% 40%;
  touch-action: pan-y;
}
.ring {
  position: relative; width: 1px; height: var(--ring-h);
  transform-style: preserve-3d;
  will-change: transform;
}
.ring-panel {
  position: absolute; top: 0; left: 0;
  height: var(--ring-h);
  transform-style: preserve-3d;
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--surface-1);
  text-decoration: none;
  transition: filter .3s;
  backface-visibility: visible;
  -webkit-user-drag: none; user-select: none;
}
.ring-panel img { width: 100%; height: 100%; object-fit: cover; object-position: top center; pointer-events: none; }
.ring-panel:hover { filter: brightness(1.08); }
.ring-panel:not(.is-front) { cursor: pointer; }
.ring-nav {
  position: absolute; inset: 0;
  width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
}
.ring-btn {
  pointer-events: auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; padding: 0;
  border: 0; border-radius: var(--r-s);
  background: var(--surface-2); color: var(--text);
  box-shadow: var(--sh-2);
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .35s var(--ease-out);
}
.ring-btn svg { width: 22px; height: 22px; transition: transform .3s var(--ease-out); }
.ring-prev svg { transform: rotate(180deg); }
.ring-btn:hover { background: var(--accent); color: var(--accent-ink); }
.ring-next:hover svg { transform: translateX(3px); }
.ring-prev:hover svg { transform: rotate(180deg) translateX(3px); }
.ring-btn:active { transform: scale(.94); }
.ring-caption {
  position: relative; margin-top: 8px;
  display: flex; justify-content: center; align-items: baseline; gap: 14px; flex-wrap: wrap;
  text-align: center; padding: 0 var(--gutter);
  font-size: 1rem; color: var(--text-2);
}
.ring-caption strong { color: var(--text); font-size: 1.25rem; letter-spacing: -0.02em; font-weight: 600; }
.ring-caption .mono { font-size: .85rem; color: var(--text-3); }
.ring-caption .link-arrow { min-height: 44px; }
.ring-progress { position: relative; display: block; width: 120px; height: 2px; margin: 14px auto 0; background: var(--line); }
.ring-progress i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .8s var(--ease-out); }

.demo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 2.6vw, 40px);
  padding-bottom: clamp(40px, 5vw, 64px);
  position: relative;
}
.demo-card { display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; border-radius: var(--r-m); }
.demo-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.demo-media {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-m);
  background: var(--surface-1);
  box-shadow: var(--sh-1, none);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.demo-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .7s var(--ease-out); }
.demo-meta { display: flex; flex-direction: column; gap: 4px; padding: 16px 2px 0; }
.demo-meta h3 { margin: 0; font-size: 1.2rem; letter-spacing: -0.02em; font-weight: 600; line-height: 1.2; color: var(--text); }
.demo-meta .mono { display: block; font-size: .82rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-meta .go { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent); font-weight: 500; }
.demo-meta .go svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.demo-card:hover .demo-media, .demo-card:focus-visible .demo-media { transform: translateY(-4px); box-shadow: var(--sh-2); }
.demo-card:hover .demo-media img, .demo-card:focus-visible .demo-media img { transform: scale(1.04); }
.demo-card:hover .go svg, .demo-card:focus-visible .go svg { transform: translate(2px, -2px); }
/* Weitere Demos: Extra-Karten erst nach Klick (Grenze setzt main.js je nach Breite) */
.js .demo-grid:not(.is-open) .demo-card.is-extra { display: none; }
.js .demo-card.px-shown { opacity: 1; transform: none; transition: none; }
.js .demo-card.px-shown .demo-meta { animation: px-meta .7s var(--ease-out) both; animation-delay: calc(var(--pxd, 0ms) + 350ms); }
@keyframes px-meta { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.px-veil { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; image-rendering: pixelated; }
.demo-more { display: flex; justify-content: center; margin-top: clamp(-8px, -1vw, 0px); padding-bottom: clamp(8px, 2vw, 24px); }
.demo-more[hidden] { display: none; }
.demo-more-btn svg { transform: rotate(90deg); }
.demo-more-btn[aria-expanded="true"] svg { transform: rotate(-90deg); }
.demo-more-btn:hover svg { transform: rotate(90deg) translateX(3px); }
.demo-more-btn[aria-expanded="true"]:hover svg { transform: rotate(-90deg) translateX(3px); }
.demo-fallback { list-style: none; padding: 0; display: grid; gap: 8px; }

.demo-note { margin-top: 28px; color: var(--text-3); font-size: .9rem; max-width: 70ch; }

/* ---------- Ablauf ---------- */
.process { padding: var(--section) 0; background: var(--bg); position: relative; z-index: 2; }
.process-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.process-head { position: sticky; top: calc(var(--nav-h) + 56px); }
.process-head .btn { margin-top: 36px; }
.steps { position: relative; padding: 0 0 0 40px; }
.steps-list { list-style: none; margin: 0; padding: 0; }
.steps::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.steps-fill { position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step { position: relative; padding: 4px 0 clamp(56px, 8vw, 104px); }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: -40px; top: 14px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--text-3); transition: box-shadow .4s, background-color .4s; }
.step.is-active::before { background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.step-meta { margin-top: 10px; display: flex; gap: 14px; align-items: baseline; font-family: var(--mono); font-size: .85rem; color: var(--text-3); }
.step-meta b { color: var(--accent); font-weight: 500; }
.step h3 { margin-top: 0; font-size: clamp(1.6rem, 2.8vw, 2.4rem); letter-spacing: -0.035em; font-weight: 600; line-height: 1.1; }
.step p { margin-top: 12px; color: var(--text-2); max-width: 44ch; font-size: 1.05rem; }

/* ---------- Preise ---------- */
.pricing { padding: var(--section) 0; background: var(--surface-1); position: relative; z-index: 2; }
.pricing-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.8vw, 24px); margin-top: clamp(32px, 4vw, 48px); }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(22px, 2.4vw, 34px);
  border-radius: var(--r-m);
  background: var(--surface-2);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.plan-featured { background: var(--petrol-deep); }
.plan-featured .plan-list li { border-color: rgba(255, 255, 255, .08); }
.plan h3 { font-size: 1.25rem; letter-spacing: -0.02em; font-weight: 600; }
.plan-for { margin-top: 4px; color: var(--text-2); font-size: .94rem; }
.plan-price { margin-top: 18px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan-price .amount { font-family: var(--mono); font-size: clamp(2.5rem, 4.2vw, 3.5rem); line-height: 1; letter-spacing: -0.06em; font-weight: 500; }
.plan-price .per { color: var(--text-2); }
.plan-list { list-style: none; margin: 18px 0 0; padding: 0; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.plan-list svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--accent); }
.plan-option { margin-top: 14px; padding: 11px 14px; background: rgba(0, 0, 0, .22); border-radius: var(--r-s); font-size: .9rem; color: var(--text-2); }
.plan-option strong { color: var(--text); font-family: var(--mono); font-weight: 500; }
.plan .btn { margin-top: 18px; }
.plan-spacer { flex: 1; }
.pricing-note { margin-top: 20px; color: var(--text-2); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { padding: var(--section) 0; background: var(--bg); position: relative; z-index: 2; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 72px; padding: 18px 0;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem); font-weight: 500; letter-spacing: -0.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: currentColor; transition: transform .35s var(--ease-out); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-item p { padding: 0 48px 26px 0; color: var(--text-2); max-width: 64ch; }

/* ---------- Kontakt ---------- */
.contact { position: relative; z-index: 2; background: var(--bg); padding: 0 0 var(--section); }
.contact-box {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 96px);
  padding: clamp(28px, 5vw, 72px);
  background: var(--petrol-deep);
  border-radius: var(--r-m);
}
.contact h2 .accent { color: var(--accent); }
.contact .lead { color: #a9bfc2; }
/* Kontakt: vier direkte Wege statt Formular */
.contact-box { align-items: center; }
.contact-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; row-gap: 2px;
  min-height: 84px; padding: 18px 20px;
  border-radius: var(--r-m); background: rgba(0, 0, 0, .24);
  color: var(--text); text-decoration: none;
  transition: background-color .25s, transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.tile svg { grid-row: span 2; width: 24px; height: 24px; color: var(--accent); }
.tile-label { font-size: .85rem; color: #a9bfc2; }
.tile-val { font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
.tile:hover { background: rgba(0, 0, 0, .36); transform: translateY(-3px); box-shadow: var(--sh-1); }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tile-main { grid-column: 1 / -1; min-height: 104px; background: var(--accent); color: var(--accent-ink); }
.tile-main svg, .tile-main .tile-label { color: var(--accent-ink); }
.tile-main .tile-val { font-size: 1.15rem; }
.tile-main:hover { background: #7ad6e3; }
.contact-tiles .tile:last-child { grid-column: 1 / -1; }
@media (max-width: 480px) { .contact-tiles { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; background: var(--bg); border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--text-2); font-size: .95rem; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand { color: var(--text); }
.footer-claim { margin-top: 10px; max-width: 36ch; }
.footer-links { display: flex; gap: 4px 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: var(--text-3); }
.footer-bottom a { color: var(--text-2); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; padding: 0 6px; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Rechtsseiten ---------- */
.legal { position: relative; z-index: 2; padding: calc(var(--nav-h) + 96px) 0 var(--section); }
.legal-inner { width: min(100% - 2 * var(--gutter), 780px); margin-inline: auto; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.045em; line-height: 1; font-weight: 600; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 28px; color: var(--text-2); text-decoration: none; }
.legal-back:hover { color: var(--accent); }
.legal-back svg { width: 16px; height: 16px; }
.legal-body { margin-top: 48px; padding: clamp(24px, 4vw, 48px); background: var(--surface-1); border-radius: var(--r-m); }
.legal-body h2 { font-size: 1.3rem; letter-spacing: -0.02em; font-weight: 600; margin-top: 40px; line-height: 1.3; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body ul { margin-top: 14px; color: #c3cdce; }
.legal-body ul { padding-left: 1.2em; }
.legal-body li { margin-top: 6px; }
.legal-body a { color: var(--accent); overflow-wrap: anywhere; }
.legal-body strong { color: var(--text); }
.legal-stand { margin-top: 32px !important; font-size: .875rem; color: var(--text-2) !important; }

/* ---------- Motion: Reveal (nur mit JS) ---------- */
.js [data-reveal] { opacity: 0; transition: opacity var(--d, .9s) var(--ease-out), transform var(--d, .9s) var(--ease-out); transition-delay: var(--delay, 0s); }
.js [data-reveal="up"] { transform: translate3d(0, 40px, 0); }
.js [data-reveal="left"] { transform: translate3d(-48px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(48px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .hero h1 .w > span { transform: translateY(105%); }
.js .hero.ready h1 .w > span { transform: none; transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 70ms + 150ms); }
.js .hero .fade-in { opacity: 0; transform: translateY(16px); }
.js .hero.ready .fade-in { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--delay, .6s); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; margin-left: 2px; }
  .nav-cta { margin-left: auto; }
  .nav.is-open .nav-menu { display: block; }
  .process-grid, .faq-grid, .statement-grid { grid-template-columns: 1fr; }
  .process-head { position: relative; top: 0; }
  .contact-box { grid-template-columns: 1fr; }
}
@media (max-width: 999px) {
  /* Unterkante freihalten: die Statement-Sektion schiebt sich um --overlap über den Hero */
  .hero { align-items: flex-end; padding-bottom: calc(var(--overlap) + 32px); }
  .hero-copy { padding-top: 32vh; }
}
@media (min-width: 761px) and (max-width: 999px) {
  .hero-copy { padding-top: 30vh; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --overlap: 8vh; }
  .hero-copy { padding-top: 26vh; }
  .hero-sub { margin-top: 20px; }
  .hero-actions { margin-top: 28px; }
  .facts { grid-template-columns: 1fr; }
  .fact { padding: 26px 0 22px; }
  .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .demo-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .ring-stage { perspective: 900px; }
  .ring-section { --ring-h: clamp(150px, 42vw, 220px); }
  .ring-btn { width: 48px; height: 48px; }
  .hero-scroll { display: none; }
}
@media (max-width: 420px) {
  .nav-inner { padding: 0 6px 0 12px; }
  .brand { font-size: 1rem; gap: 8px; }
  .nav-cta { padding: 0 12px; font-size: .9rem; }
  .nav-cta .long-label { display: none; }
  .hero-facts { gap: 4px 14px; }
  .hero-facts li + li::before { display: none; }
}
@media (min-width: 421px) {
  .nav-cta .short-label { display: none; }
}

/* ---------- Reduzierte Bewegung (zuletzt, damit es alles überschreibt) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .clip, .js .hero h1 .w > span, .js .hero .fade-in { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero-scroll { display: none; }
}

