/* ==========================================================================
   DESIGN SYSTEM "Interface" — Apple-Stil
   Wiederverwendbar für alle Seiten: nur die Tokens (:root) anpassen,
   Komponenten bleiben gleich. Akzentfarbe = --accent.
   ========================================================================== */

:root {
  /* Farben (hell) */
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --line: #d2d2d7;
  --accent: #6bbd1f;          /* Kawasaki-Grün – pro Projekt tauschen */
  --accent-ink: #0b1a00;
  --link: #0066cc;

  /* Dunkle Sektionen */
  --dark-bg: #000000;
  --dark-surface: #1d1d1f;
  --dark-text: #f5f5f7;
  --dark-text-2: #a1a1a6;

  /* Typografie */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "Segoe UI", Inter, Roboto, Arial, sans-serif;

  /* Maße */
  --nav-h: 48px;
  --radius: 28px;
  --radius-s: 18px;
  --wrap: 1120px;
  --ease: cubic-bezier(.28, .11, .32, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000; --bg-alt: #111113; --surface: #1d1d1f;
    --text: #f5f5f7; --text-2: #a1a1a6; --line: #333336; --link: #2997ff;
  }
}
:root[data-theme="dark"] {
  --bg: #000; --bg-alt: #111113; --surface: #1d1d1f;
  --text: #f5f5f7; --text-2: #a1a1a6; --line: #333336; --link: #2997ff;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.47;
  letter-spacing: -.011em; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* ---------- Typografie ---------- */
.eyebrow { font-size: 21px; font-weight: 600; letter-spacing: .011em; margin: 0 0 6px; }
.display { font-size: clamp(44px, 8vw, 96px); line-height: 1.04; font-weight: 700; letter-spacing: -.03em; margin: 0; }
.h1 { font-size: clamp(34px, 5.5vw, 64px); line-height: 1.07; font-weight: 700; letter-spacing: -.025em; margin: 0; }
.h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.lead { font-size: clamp(19px, 2.2vw, 26px); line-height: 1.3; font-weight: 400; color: var(--text-2); margin: 14px 0 0; }
.muted { color: var(--text-2); }
.center { text-align: center; }

/* ---------- Navigation (Glas) ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__brand { font-weight: 600; font-size: 19px; color: var(--text); letter-spacing: -.02em; }
.nav__brand:hover { text-decoration: none; }
.nav__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--text); opacity: .8; font-size: 12px; letter-spacing: -.005em; }
.nav__links a:hover { opacity: 1; text-decoration: none; }
.nav__links a[aria-current="page"] { opacity: 1; font-weight: 600; }
@media (max-width: 640px) { .nav__links { gap: 16px; } }

/* Unterseiten: Abstand unter der Navigation */
.page-head { padding-top: clamp(56px, 9vw, 110px); }

/* ---------- Sektionen ---------- */
.section { padding: clamp(72px, 12vw, 140px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark-bg); color: var(--dark-text); }
.section--dark .lead, .section--dark .muted { color: var(--dark-text-2); }
.section--dark { --text: var(--dark-text); --text-2: var(--dark-text-2); --line: #333336; --link: #2997ff; --surface: var(--dark-surface); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 17px;
  padding: 11px 22px; border-radius: 980px; border: 0; cursor: pointer;
  background: var(--link); color: #fff; transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--link); padding-inline: 4px; }
.btn--ghost::after { content: "›"; font-size: 1.2em; transition: transform .25s var(--ease); }
.btn--ghost:hover::after { transform: translateX(3px); }
.btn-row { display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: clamp(56px, 9vw, 110px) 0 0; overflow: hidden; }
.hero__art { margin-top: clamp(24px, 5vw, 56px); }
.hero__art svg { width: min(880px, 100%); margin-inline: auto; }
/* ---------- Scroll-Szene (angeheftete Bühne, Fortschritt --p von 0 bis 1) ----------
   Höhe der Sektion = Scroll-Strecke. main.js setzt --p, alles Weitere animiert per CSS. */
.scene { position: relative; height: 320vh; --p: 0; }
.scene__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; display: grid; place-items: center;
  /* sanfter Lichtkegel, damit dunkle Motive vor Schwarz nicht verschwinden */
  background: radial-gradient(ellipse 60% 45% at 50% 58%, #26262a 0%, #0a0a0b 60%, #000 100%);
}
.scene__stage > * { grid-area: 1 / 1; }
.scene__logo { width: min(860px, 92vw); height: auto; overflow: visible; z-index: 2; }
.scene__piece { fill: #fff; will-change: transform; }
.scene__bg {
  width: min(1100px, 96vw); height: auto; z-index: 1; will-change: transform, opacity;
  opacity: var(--bg-o, 0); transform: translateY(var(--bg-y, 40px)) scale(var(--bg-s, .88));
}
.scene__hint {
  align-self: end; justify-self: center; z-index: 3; margin: 0 0 28px; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--dark-text-2); display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: var(--hint-o, 1);
}
.scene__hint span { width: 1px; height: 36px; background: linear-gradient(var(--dark-text-2), transparent); animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Menü, das erst nach der Szene erscheint (Seite mit data-scene) */
.nav--intro { position: fixed; top: 0; left: 0; right: 0; transform: translateY(-100%); opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .5s var(--ease); }
.nav--intro.is-visible { transform: none; opacity: 1; pointer-events: auto; }
html { scroll-padding-top: var(--nav-h); }

@media (prefers-reduced-motion: reduce) {
  .nav--intro { transform: none; opacity: 1; pointer-events: auto; transition: none; }
  .scene__hint { display: none; }
  .scene { height: auto; }
  .scene__stage { position: relative; height: auto; min-height: 70vh; }
  .scene__logo { display: none; }
  .scene__bg { opacity: 1; transform: none; }
}

/* ---------- Karten / Produktkacheln ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.tile {
  background: var(--surface); border-radius: var(--radius); padding: clamp(32px, 4vw, 52px) 32px 0;
  text-align: center; overflow: hidden; display: flex; flex-direction: column; min-height: 560px;
  transition: transform .5s var(--ease);
}
.section--alt .tile { background: var(--surface); }
.tile:hover { transform: scale(1.012); }
/* Feste Varianten, unabhängig vom Hell/Dunkel-Modus */
.tile--light { background: #fff; color: #1d1d1f; --text: #1d1d1f; --text-2: #6e6e73; --link: #0066cc; }
.tile--dark  { background: #1d1d1f; color: #f5f5f7; --text: #f5f5f7; --text-2: #a1a1a6; --link: #2997ff; }
.section--alt .tile--light { background: #fff; }
.section--alt .tile--dark  { background: #1d1d1f; }
.tile__art { margin-top: auto; padding-top: 24px; }
.tile__art svg { width: 100%; }
.tile .btn-row { margin-top: 18px; }

/* Fotos (randlos am Kachelboden) */
.photo { margin: auto -32px 0; padding-top: 28px; }
.photo img { width: 100%; height: auto; }
/* Freisteller auf weißem Grund: mit Abstand, nicht randlos */
.photo--cutout { margin: auto 0 0; padding: 28px 0 36px; }
.photo--cutout img { max-width: 640px; margin-inline: auto; mix-blend-mode: multiply; }
.tile--dark .photo--cutout img { mix-blend-mode: normal; }
.footer a { color: inherit; text-decoration: underline; }

/* ---------- Kennzahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 40px 24px; margin-top: 64px; text-align: center; }
.stat__value { font-size: clamp(44px, 6vw, 72px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stat__value small { font-size: .4em; font-weight: 600; margin-left: 4px; color: var(--text-2); }
.stat__label { color: var(--text-2); font-size: 15px; margin-top: 10px; }

/* ---------- Feature-Raster ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 56px; }
.feature { background: var(--surface); border-radius: var(--radius-s); padding: 32px 28px; }
.section--alt .feature { background: var(--surface); }
.feature h3 { font-size: 21px; margin: 0 0 8px; letter-spacing: -.015em; }
.feature p { margin: 0; color: var(--text-2); font-size: 16px; }
.feature__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); margin-bottom: 18px; }

/* ---------- Vergleichstabelle ---------- */
.compare { width: 100%; border-collapse: collapse; margin-top: 48px; font-size: 17px; }
.compare th, .compare td { padding: 18px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 24px; font-weight: 600; letter-spacing: -.02em; border-bottom: 1px solid var(--text); }
.compare tbody th { font-weight: 400; color: var(--text-2); width: 34%; }
.compare td { font-weight: 600; }
@media (max-width: 640px) { .compare { font-size: 15px; } .compare thead th { font-size: 18px; } }

/* ---------- Umschalter (Segmented Control) ---------- */
.segment {
  display: inline-flex; background: var(--bg-alt); border-radius: 980px; padding: 4px; gap: 2px;
  border: 1px solid var(--line);
}
.segment button {
  font: inherit; font-size: 15px; border: 0; background: transparent; color: var(--text);
  padding: 8px 20px; border-radius: 980px; cursor: pointer; transition: background .25s var(--ease);
}
.segment button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.section--dark .segment { background: #1d1d1f; }

/* ---------- Chronik / Timeline ---------- */
.timeline { list-style: none; margin: 72px auto 0; padding: 0 0 0 36px; max-width: 760px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline__year { position: relative; margin: 56px 0 28px; }
.timeline__year:first-child { margin-top: 0; }
.timeline__year span { font-size: clamp(40px, 6vw, 64px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.timeline__item { position: relative; margin: 0 0 64px; }
.timeline__item::before {
  content: ""; position: absolute; left: -36px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 5px var(--bg);
}
.timeline__date { display: block; font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.timeline__photo { margin: 0 0 20px; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.timeline__photo img { width: 100%; height: auto; }
.timeline__photo.is-portrait img { max-height: 78vh; width: auto; margin-inline: auto; }
.timeline__title { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 6px; }
.timeline__text { margin: 0; color: var(--text-2); }
@media (max-width: 640px) { .timeline { padding-left: 28px; } .timeline__item::before { left: -28px; } }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); color: var(--text-2); font-size: 12px; padding: 28px 0 40px; border-top: 1px solid var(--line); }
.footer p { margin: 0 0 10px; max-width: 780px; }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile, .btn { transition: none; }
}

/* Dunkle Kachel: sanfter Lichtkegel hinter dunklen Motiven */
.tile--dark .photo--cutout { background: radial-gradient(ellipse 60% 55% at 50% 58%, #3a3a3f 0%, rgba(29,29,31,0) 72%); }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 21px; font-weight: 600; letter-spacing: -.015em; margin: 40px 0 8px; }
.legal p, .legal li { color: var(--text-2); font-size: 16px; }
.legal ul { padding-left: 20px; }
.legal .h1 { margin-bottom: 8px; }
/* Platzhalter: auffällig markieren, damit sie nicht versehentlich online gehen */
.todo { background: #fff3a3; color: #5b4a00; padding: 1px 6px; border-radius: 6px; }
.footer a { color: inherit; }
