/* =========================================================
   Nora – "Stille Präzision"
   Graphit + Licht, ein Signal-Ton, editoriale Typografie.
   Siehe DESIGN.md.
   ========================================================= */

:root {
  --font-display: "Funnel Display", system-ui, sans-serif;
  --font-body: "Funnel Sans", system-ui, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, monospace;
  /* Titel-Schrift (vom Nutzer gewählt): Hero-Titel + große Outline-Wörter, Richtung Baxolino/Jost */
  --font-title: "Urbanist", system-ui, sans-serif;
  --tk-title: 0.5;

  --signal: #0ea5e9;          /* Nora-Signal (Himmelblau) */
  --signal-hi: #38bdf8;       /* Glanzkante oben */
  --signal-deep: #0284c7;     /* Button unten – hält weiße Schrift lesbar */
  --signal-ink: #ffffff;      /* Text auf Signal */

  --radius-sm: 14px;
  --radius: 28px;
  --radius-lg: 40px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --edge: clamp(28px, 4.5vw, 80px);  /* Abstand von Hero-Inhalt und Navbar zur Kartenkante – auf breiten Seiten links in der Ecke */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

:root,
[data-theme="dark"] {
  --bg: #0e0e0c;
  --bg-raise: #151513;
  --surface: #1a1a17;
  --surface-2: #22221e;
  --line: rgba(242, 240, 234, 0.09);
  --line-strong: rgba(242, 240, 234, 0.18);
  --text: #f2f0ea;
  --text-soft: #c9c6bc;
  --muted: #8f8d84;
  --accent-text: #38bdf8;
  --glow: rgba(14, 165, 233, 0.2);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --hero-base: #0b0e12;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f3f1ea;
  --bg-raise: #ebe8df;
  --surface: #ffffff;
  --surface-2: #f7f5ef;
  --line: rgba(16, 17, 12, 0.09);
  --line-strong: rgba(16, 17, 12, 0.18);
  --text: #12120f;
  --text-soft: #3b3a35;
  --muted: #6b6960;
  --accent-text: #0284c7;
  --glow: rgba(14, 165, 233, 0.16);
  --shadow: 0 30px 70px -35px rgba(40, 38, 20, 0.35);
  --hero-base: #eef3f7;
  color-scheme: light;
}

/* ---------- 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-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
}

/* Filmkorn über allem – gibt der Fläche Material */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="light"] body::after { opacity: 0.07; mix-blend-mode: multiply; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
em { font-style: italic; }

::selection { background: var(--signal); color: var(--signal-ink); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 8px;
}

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--signal); color: var(--signal-ink); font-weight: 600;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

/* das eine Schlüsselwort pro Titel: gleiche Schrift, nur farbig */
h1 em, h2 em {
  font-style: normal;
  color: var(--accent-text);
}

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: var(--h);
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 1rem/1 var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-spring), background-color 0.3s, border-color 0.3s, color 0.3s;
}
.btn:active { transform: scale(0.97); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 0.92rem; }
/* Primär-Button: flaches Himmelblau, dunkle Schrift, runder Pfeil-Chip rechts (.btn-chip) */
.btn-chip { display: inline-grid; place-items: center; transition: transform 0.4s var(--ease-spring), background-color 0.3s; }
.btn--signal:has(.btn-chip) { padding-right: 6px; }

.btn--signal { background: var(--signal); color: #04263a; }
.btn--signal:hover { background: var(--signal-hi); transform: translateY(-2px); }
.btn--signal .btn-chip { width: 42px; height: 42px; margin-left: 4px; border-radius: 50%; background: #04263a; color: #bae6fd; }
.btn--signal:hover .btn-chip { transform: rotate(-45deg); }
.btn--signal:hover .btn-chip .btn-icon { transform: none; }

.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn-icon {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.35s var(--ease-spring);
}
.btn:hover .btn-icon { transform: translateX(4px); }

/* ---------- Navigation (schwebende Pille) ---------- */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  translate: -50% 0;
  z-index: 50;
  /* über die ganze Kartenbreite: Logo fluchtet mit dem Hero-Inhalt links, Schalter sitzt rechts in der Ecke;
     oben durchsichtig, erst beim Scrollen Glas (.is-scrolled) – vom Nutzer so gewünscht */
  width: calc(100% - 2 * (var(--edge) - 8px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s, -webkit-backdrop-filter 0.4s;
}
.nav.is-scrolled {
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-color: color-mix(in oklab, var(--text) 12%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.nav-brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--text);
  box-shadow: inset -6px -6px 0 0 var(--signal);
  transition: box-shadow 0.5s var(--ease-spring);
}
.nav-brand:hover .brand-mark { box-shadow: inset -11px -11px 0 0 var(--signal); }
.brand-word { font: 600 1.35rem/1 var(--font-display); letter-spacing: calc(-0.04em * var(--tk, 1)); }

.nav-links { position: relative; display: flex; gap: 4px; }
.nav-links a {
  position: relative; z-index: 1;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--text-soft);
  transition: color 0.3s, background-color 0.25s;
}
.nav-links a:hover:not(.is-active) { color: var(--text); background: var(--line); }
.nav-links a.is-active { color: var(--text); }
/* Markierung des aktiven Bereichs: gleitet per JS (--px/--pw) zum Link der Sektion, die gerade sichtbar ist */
.nav-pill {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: var(--pw, 0px); translate: var(--px, 0px) 0;
  border-radius: 999px; pointer-events: none;
}
.nav-pill.is-ready { transition: translate 0.55s var(--ease-spring), width 0.55s var(--ease-spring); }

/* Glas-Pille (vom Nutzer gewählt): durchscheinend mit feiner Kante */
.nav-pill {
  background: color-mix(in oklab, var(--text) 11%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--text) 16%, transparent), inset 0 1px 0 color-mix(in oklab, var(--text) 18%, transparent);
  backdrop-filter: blur(10px);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }
/* Hell/Dunkel-Schalter: runder Glas-Knopf, Sonne ↔ Mond */
.theme-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 0;
  background: color-mix(in oklab, var(--text) 9%, transparent);
  cursor: pointer;
  transition: background-color 0.3s;
}
.theme-toggle:hover { background: color-mix(in oklab, var(--text) 15%, transparent); }
/* Icon: im hellen Modus eine Sonne mit Strahlen, im dunklen wird daraus ein Mond (Maske schiebt sich über den Kreis) */
.tt-morph { width: 20px; height: 20px; overflow: visible; color: var(--text); }
.tt-core { fill: currentColor; transform-box: fill-box; transform-origin: center; transition: transform 0.6s var(--ease-spring); }
.tt-mask-c { transition: transform 0.6s var(--ease-spring); }
.tt-rays { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transform-origin: 12px 12px; transition: transform 0.6s var(--ease-spring), opacity 0.3s; }
[data-theme="dark"] .tt-core { transform: scale(1.6); }
[data-theme="dark"] .tt-mask-c { transform: translate(-8px, 6px); }
[data-theme="dark"] .tt-rays { opacity: 0; transform: rotate(-60deg) scale(0.4); }

/* ---------- Hero ---------- */
.hero {
  padding: 12px;
  display: flex;
}

.hero-card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(calc(100svh - 24px), 900px);
  padding: 120px 0 clamp(40px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background: var(--hero-base);
  overflow: hidden;
  isolation: isolate;
}

/* Hero-Hintergrund: Aurora „Sanft“ (vom Nutzer gewählt) – gedämpftes Himmelblau mit grauen
   Anteilen, füllt immer die ganze Karte. Sechs Formen (Lichtball, Vorhang, Band, Kugel,
   Wölkchen, zweiter Ball), jede mit eigenem Weg (shape-1…5) plus "morph" (eigene scale-Achse) für den Umriss.
   Der Umriss wird NICHT über border-radius verformt: das würde den Verlauf anschneiden und feine Kanten erzeugen.
   Gegen Farbstufen (sichtbare Linien, wo das Licht ausläuft): alle Verläufe laufen in oklab
   über viele Zwischenstufen aus, und ein feines Korn darüber (Dithering) bricht Reststufen auf. */
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  --fill-base: #0a2131;
  --fill-a: rgba(14, 165, 233, 0.28);
  --fill-b: rgba(148, 163, 184, 0.2);
  --hero-scrim: rgba(4, 14, 24, 0.5);
  --grain: 0.13;
}
/* Heller Modus (überarbeitet, das kräftige Cyan wirkte billig): gedämpftes Stahl- und Nebelblau, Perlweiß und ein
   Hauch warmer Sandton, der zum cremigen Seitenhintergrund passt; ein tiefes, entsättigtes Blau gibt Tiefe */
[data-theme="light"] .hero-bg {
  --fill-base: #eaf2f9;
  --fill-a: rgba(120, 178, 230, 0.26);
  --fill-b: rgba(212, 203, 188, 0.32);
  --hero-scrim: rgba(248, 248, 245, 0.45);
  --grain: 0.1;
}
/* Heller Modus: Karte vom hellen Seitenhintergrund absetzen – leicht getönte Ränder (Vignette) und eine feine,
   glasige Kante; kein Schatten (vom Nutzer entfernt). Im dunklen Modus hebt sich die Karte von selbst ab. */
[data-theme="light"] .hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(in oklab farthest-corner at 50% 45%, transparent 0%, transparent 45%, rgba(32, 64, 96, 0.013) 55%, rgba(32, 64, 96, 0.033) 63%, rgba(32, 64, 96, 0.058) 71%, rgba(32, 64, 96, 0.085) 79%, rgba(32, 64, 96, 0.111) 88%, rgba(32, 64, 96, 0.13) 100%);
}
/* Kante: nur eine feine, kühle Haarlinie (Doppelrand mit weißer Lichtkante gefiel dem Nutzer nicht) */
[data-theme="light"] .hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(22, 52, 84, 0.13);
  pointer-events: none;
}
/* Korn ganz oben: Dithering gegen Farbstufen */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: var(--grain);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
/* Weichzeichner über alle Formen zusammen (50px): glättet die Übergänge, wo eine Form endet und die nächste
   beginnt – sonst liest das Auge dort feine Linien. Ragt über die Karte hinaus, damit der Rand nicht dunkel ausfranst. */
.bg-aurora { position: absolute; inset: -150px; overflow: hidden; filter: blur(50px); }
/* Grundschicht: füllt die ganze Karte bis in die Ecken, damit nie schwarze Löcher entstehen */
.bg-aurora::before {
  content: "";
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(in oklab 55% 55% at 8% 10%, var(--fill-a) 0%, color-mix(in oklab, var(--fill-a) 82%, transparent) 12%, color-mix(in oklab, var(--fill-a) 62%, transparent) 24%, color-mix(in oklab, var(--fill-a) 43%, transparent) 36%, color-mix(in oklab, var(--fill-a) 27%, transparent) 47%, color-mix(in oklab, var(--fill-a) 14%, transparent) 57%, color-mix(in oklab, var(--fill-a) 6%, transparent) 66%, transparent 76%),
    radial-gradient(in oklab 55% 55% at 92% 8%, var(--fill-b) 0%, color-mix(in oklab, var(--fill-b) 82%, transparent) 12%, color-mix(in oklab, var(--fill-b) 62%, transparent) 24%, color-mix(in oklab, var(--fill-b) 43%, transparent) 36%, color-mix(in oklab, var(--fill-b) 27%, transparent) 47%, color-mix(in oklab, var(--fill-b) 14%, transparent) 57%, color-mix(in oklab, var(--fill-b) 6%, transparent) 66%, transparent 76%),
    radial-gradient(in oklab 55% 55% at 94% 92%, var(--fill-a) 0%, color-mix(in oklab, var(--fill-a) 82%, transparent) 12%, color-mix(in oklab, var(--fill-a) 62%, transparent) 24%, color-mix(in oklab, var(--fill-a) 43%, transparent) 36%, color-mix(in oklab, var(--fill-a) 27%, transparent) 47%, color-mix(in oklab, var(--fill-a) 14%, transparent) 57%, color-mix(in oklab, var(--fill-a) 6%, transparent) 66%, transparent 76%),
    radial-gradient(in oklab 55% 55% at 6% 94%, var(--fill-b) 0%, color-mix(in oklab, var(--fill-b) 82%, transparent) 12%, color-mix(in oklab, var(--fill-b) 62%, transparent) 24%, color-mix(in oklab, var(--fill-b) 43%, transparent) 36%, color-mix(in oklab, var(--fill-b) 27%, transparent) 47%, color-mix(in oklab, var(--fill-b) 14%, transparent) 57%, color-mix(in oklab, var(--fill-b) 6%, transparent) 66%, transparent 76%),
    var(--fill-base);
  filter: blur(30px);
  animation: base-drift 16s ease-in-out infinite alternate;
}
/* weiche Abdunklung hinter dem Text, damit Titel und Schlüsselwort lesbar bleiben */
.bg-aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(in oklab 46% 40% at 50% 50%, var(--hero-scrim) 0%, color-mix(in oklab, var(--hero-scrim) 88%, transparent) 20%, color-mix(in oklab, var(--hero-scrim) 70%, transparent) 38%, color-mix(in oklab, var(--hero-scrim) 48%, transparent) 55%, color-mix(in oklab, var(--hero-scrim) 27%, transparent) 70%, color-mix(in oklab, var(--hero-scrim) 11%, transparent) 84%, transparent 100%);
}
@keyframes base-drift {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(8deg) scale(1.08); }
}
.bg-aurora i {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--w); height: var(--h, auto); aspect-ratio: var(--ar, auto);
  border-radius: 50%;
  filter: blur(56px);
  opacity: calc(var(--o, 0.5) * var(--k, 1));
  background: radial-gradient(in oklab closest-side, var(--a) 0%, var(--a) 30%, color-mix(in oklab, var(--a) 86%, transparent) 40%, color-mix(in oklab, var(--a) 70%, transparent) 49%, color-mix(in oklab, var(--a) 53%, transparent) 58%, color-mix(in oklab, var(--a) 37%, transparent) 67%, color-mix(in oklab, var(--a) 23%, transparent) 75%, color-mix(in oklab, var(--a) 12%, transparent) 83%, color-mix(in oklab, var(--a) 5%, transparent) 90%, transparent 100%);
  animation:
    var(--move, shape-2) var(--t, 12s) ease-in-out infinite var(--d, 0s),
    morph var(--m, 9s) ease-in-out infinite alternate var(--d, 0s);
}
/* Heller Modus: eigene Palette – gedämpftes Stahlblau, Nebelblau, warmer Sandton, Perlweiß und ein tiefes,
   entsättigtes Blau (vorher kräftiges Cyan, wirkte dem Nutzer zu billig). */
[data-theme="light"] .bg-aurora { --k: 1; }
[data-theme="light"] .bg-aurora i:nth-child(1) { --a: #8cbde8; --o: 0.58; }
[data-theme="light"] .bg-aurora i:nth-child(2) { --a: #b2d4f0; --o: 0.62; }
[data-theme="light"] .bg-aurora i:nth-child(3) { --a: #d8d0c2; --o: 0.45; }
[data-theme="light"] .bg-aurora i:nth-child(4) { --a: #f8f6f1; --o: 0.8; }
[data-theme="light"] .bg-aurora i:nth-child(5) { --a: #c6d7e7; --o: 0.45; }
[data-theme="light"] .bg-aurora i:nth-child(6) { --a: #6aaee6; --o: 0.34; }
/* 1 großer Lichtball oben rechts · 2 Lichtvorhang links · 3 graues Band unten
   4 helle graue Kugel Mitte · 5 graues Wölkchen oben links · 6 zweiter Ball unten rechts */
.bg-aurora i:nth-child(1) { --x: 52%; --y: -34%; --w: 62%; --ar: 1; --a: #0ea5e9; --o: 0.6; --move: shape-2; --t: 15s; --m: 10s; --d: -5s; }
.bg-aurora i:nth-child(2) { --x: 4%; --y: -18%; --w: 22%; --h: 130%; --a: #38bdf8; --o: 0.5; --move: shape-1; --t: 13s; --m: 8s; --d: 0s; }
.bg-aurora i:nth-child(3) { --x: -14%; --y: 60%; --w: 120%; --h: 52%; --a: #94a3b8; --o: 0.4; --move: shape-3; --t: 11s; --m: 7s; --d: -3s; }
.bg-aurora i:nth-child(4) { --x: 38%; --y: 40%; --w: 26%; --ar: 1; --a: #cbd5e1; --o: 0.28; --move: shape-4; --t: 12s; --m: 6s; --d: -7s; }
.bg-aurora i:nth-child(5) { --x: 6%; --y: 2%; --w: 38%; --h: 28%; --a: #94a3b8; --o: 0.35; --move: shape-5; --t: 14s; --m: 9s; --d: -2s; }
.bg-aurora i:nth-child(6) { --x: 60%; --y: 52%; --w: 42%; --ar: 1; --a: #0284c7; --o: 0.5; --move: shape-2; --t: 16s; --m: 11s; --d: -9s; }

@keyframes morph {
  0%   { scale: 1 1; }
  33%  { scale: 1.18 0.86; }
  66%  { scale: 0.88 1.16; }
  100% { scale: 1.1 1.06; }
}
@keyframes shape-1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1, 1); }
  30%      { transform: translate(25%, 4%) rotate(14deg) scale(1.6, 0.8); }
  60%      { transform: translate(55%, -3%) rotate(-10deg) scale(2.2, 0.62); }
  80%      { transform: translate(25%, 6%) rotate(6deg) scale(1.2, 0.92); }
}
@keyframes shape-2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1, 1); }
  35%      { transform: translate(-10%, 12%) rotate(25deg) scale(1.25, 0.85); }
  70%      { transform: translate(-18%, 18%) rotate(-15deg) scale(0.92, 1.2); }
}
@keyframes shape-3 {
  0%, 100% { transform: rotate(-12deg) translateX(-4%) scale(1, 1); }
  40%      { transform: rotate(-2deg) translateX(14%) scale(0.75, 1.6); }
  75%      { transform: rotate(-20deg) translateX(4%) scale(1.15, 0.7); }
}
@keyframes shape-4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1, 1); }
  25%      { transform: translate(-55%, -20%) rotate(30deg) scale(1.7, 0.75); }
  55%      { transform: translate(-15%, -55%) rotate(-20deg) scale(0.9, 1.4); }
  80%      { transform: translate(50%, -30%) rotate(10deg) scale(1.3, 1); }
}
@keyframes shape-5 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1, 1); }
  30%      { transform: translate(30%, 22%) rotate(-12deg) scale(1.35, 0.85); }
  65%      { transform: translate(8%, 50%) rotate(18deg) scale(0.85, 1.4); }
}

/* Aufbau „Links unten“ (vom Nutzer gewählt): Kicker, Titel und Buttons links bündig am unteren Kartenrand */
.hero-inner { position: relative; z-index: 1; display: grid; text-align: left; }
/* Nicht mittig im Container, sondern immer links unten in der Ecke der Karte (vom Nutzer gewünscht) */
.hero-inner.container { width: auto; margin-inline: 0; padding-inline: var(--edge); }
.hero-copy { display: grid; justify-items: start; }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 28px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 var(--signal);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--signal) 60%, transparent); }
  70%, 100% { box-shadow: 0 0 0 10px transparent; }
}

.hero-title {
  margin: 0;
  font-family: var(--font-title, var(--font-display));
  font-weight: 500;
  font-size: clamp(3.2rem, 8.4vw, 7.6rem);
  line-height: 0.94;
  letter-spacing: calc(-0.05em * var(--tk-title, 1));
}

/* Kein Lead-Text unter dem Titel (vom Nutzer gewählt) – nur Titel und Buttons */
.hero-actions { margin-top: clamp(36px, 4vw, 52px); }

/* Hero-Buttons „Glas“ (vom Nutzer gewählt): beide milchig-transparent mit Haarlinie, nur der Pfeil-Chip ist blau */
.hero-actions .btn {
  background: color-mix(in oklab, var(--text) 8%, transparent);
  border-color: color-mix(in oklab, var(--text) 16%, transparent);
  color: var(--text);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.hero-actions .btn:hover { background: color-mix(in oklab, var(--text) 13%, transparent); }
.hero-actions .btn--signal .btn-chip { background: var(--signal); color: #04263a; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; }


/* ---------- Hero rechts: „Lichtspuren“ – Ringe, die von rechts in die Karte ragen (vom Nutzer gewählt) ---------- */
.hero-orbit {
  position: absolute; z-index: 0; pointer-events: none;
  top: 50%; right: 0; width: clamp(620px, 78vw, 1180px); aspect-ratio: 1;
  transform: translate(46%, -50%);
  container-type: size;
  /* sichtbar ist die linke Hälfte – die läuft ganz links weich aus, damit der Titel frei bleibt */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%); mask-image: linear-gradient(to right, transparent 0%, #000 34%);
  color: var(--text);
}
/* Handy/Tablet: Ringe oben im freien Teil der Karte, Inhalt sitzt unten links */
@media (max-width: 900px) {
  .hero-orbit { top: 30%; width: clamp(480px, 150vw, 900px); transform: translate(44%, -50%); }
}
.ho-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* ---------- Hero-Hover im Hintergrund „Ausweichen“ (vom Nutzer gewählt, kräftig): das Aurora-Licht weicht dem
   Mauszeiger aus – jede Form unterschiedlich weit (--dz) – und zoomt leicht heran. script.js setzt auf .hero-card
   --mx/--my (Zeiger, −1…1, weich nachgezogen) und --hv (0…1, Maus in der Karte) ---------- */
.bg-aurora i:nth-child(1) { --dz: 1.2; }
.bg-aurora i:nth-child(2) { --dz: 0.7; }
.bg-aurora i:nth-child(3) { --dz: 0.5; }
.bg-aurora i:nth-child(4) { --dz: 1.6; }
.bg-aurora i:nth-child(5) { --dz: 0.9; }
.bg-aurora i:nth-child(6) { --dz: 1.3; }
.bg-aurora i { translate: calc(var(--mx, 0) * var(--dz) * -150px) calc(var(--my, 0) * var(--dz) * -115px); }
.bg-aurora { scale: calc(1 + var(--hv, 0) * 0.1); }
.bg-aurora::before { translate: calc(var(--mx, 0) * -50px) calc(var(--my, 0) * -38px); }

@keyframes ho-spin { to { transform: rotate(360deg); } }

/* Ringe – dünne, leicht ovale Ringe in Blau und Grau, gegeneinander versetzt und gedreht;
   jeder kreist in eigenem Tempo um die Mitte, sodass sie sich langsam kreuzen. */
.ring {
  opacity: var(--o);
  transform-box: view-box; transform-origin: 0 0;
  animation: ho-spin var(--t) linear infinite var(--dir, normal);
}
.ring-line { fill: none; stroke: var(--signal-hi); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
/* Punkte: eigene Gruppe, die etwas langsamer dreht als ihr Ring (bleibt zurück, wird mitgezogen),
   dazu gleitet jeder Punkt auf einer kleinen runden Bahn und glimmt dabei auf und ab – wie Teilchen im Wind */
.ring-dot { fill: var(--signal-hi); transform-box: fill-box; transform-origin: center; animation: ring-drift var(--tw) linear infinite var(--d) var(--spin, normal); }
[data-theme="light"] .ring-line { stroke: var(--signal-deep); }
[data-theme="light"] .ring-dot { fill: var(--signal-deep); }
/* graue Ringe für Abwechslung (vom Nutzer gewünscht) */
.ring--g .ring-line { stroke: #94a3b8; }
.ring--g .ring-dot { fill: #cbd5e1; }
[data-theme="light"] .ring--g .ring-line { stroke: #64748b; }
[data-theme="light"] .ring--g .ring-dot { fill: #64748b; }
/* Lichtspuren – Ringe atmen leicht, ein Lichtstreifen läuft auf jedem Ring entlang */
.ring-path { animation: ho-spin var(--t) linear infinite var(--dir, normal), ring-breathe 9s ease-in-out infinite alternate var(--b); }
@keyframes ring-breathe { from { scale: 0.97; } to { scale: 1.04; } }
/* Lichtspur = 10 übereinanderliegende, mittig ausgerichtete Segmente (200 → 20) mit wenig Deckkraft:
   in der Mitte hell, zu Anfang und Ende hin weich auf Alpha 0 auslaufend */
.ring-streak { filter: drop-shadow(0 0 6px var(--signal-hi)); }
.rs {
  fill: none; stroke: #fff; stroke-width: 2.8; stroke-opacity: 0.17; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: var(--l) calc(500 - var(--l));
  animation: ring-streak var(--st) linear infinite;
  animation-delay: calc(var(--sd) - var(--st) * var(--k));
}
[data-theme="light"] .ring-streak { filter: none; }
[data-theme="light"] .rs { stroke: var(--signal-deep); }
@keyframes ring-streak { to { stroke-dashoffset: -1000; } }
@keyframes ring-drift {
  0.0% { translate: calc(var(--rr) * 1.0) calc(var(--rr) * 0.0); opacity: 0.55; }
  12.5% { translate: calc(var(--rr) * 0.707) calc(var(--rr) * 0.707); opacity: 0.87; }
  25.0% { translate: calc(var(--rr) * 0.0) calc(var(--rr) * 1.0); opacity: 1.0; }
  37.5% { translate: calc(var(--rr) * -0.707) calc(var(--rr) * 0.707); opacity: 0.87; }
  50.0% { translate: calc(var(--rr) * -1.0) calc(var(--rr) * 0.0); opacity: 0.55; }
  62.5% { translate: calc(var(--rr) * -0.707) calc(var(--rr) * -0.707); opacity: 0.23; }
  75.0% { translate: calc(var(--rr) * -0.0) calc(var(--rr) * -1.0); opacity: 0.1; }
  87.5% { translate: calc(var(--rr) * 0.707) calc(var(--rr) * -0.707); opacity: 0.23; }
  100.0% { translate: calc(var(--rr) * 1.0) calc(var(--rr) * -0.0); opacity: 0.55; }
}


/* ---------- Kreis-Icons ---------- */
.ic {
  --s: 100%;
  display: grid; place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f2f0ea;
  color: #121210;
}
.ic svg {
  width: 40%; height: 40%;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}


/* ---------- Sections ---------- */
.section { padding: clamp(96px, 14vw, 180px) 0 0; }

/* Sektions-Überschrift: nur der Titel, ohne Label, Nummer oder Unterzeile */
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .h2 { max-width: 16ch; }

.h2 {
  margin: 0;
  font-family: var(--font-title, var(--font-display));
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.h2--sm { font-size: clamp(2.2rem, 4.4vw, 3.8rem); }

/* ---------- Kacheln ---------- */
.tile {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s, transform 0.6s var(--ease-out);
}
/* Lichtkegel folgt dem Cursor */
[data-spotlight]::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), var(--glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
[data-spotlight]:hover::before { opacity: 1; }
.tile:hover { border-color: var(--line-strong); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.85rem; font-weight: 500;
  white-space: nowrap;
}
.tile-title {
  margin: 0 0 14px;
  font: 500 clamp(2.4rem, 4.2vw, 3.6rem)/0.95 var(--font-display);
  letter-spacing: calc(-0.045em * var(--tk, 1));
}
.tile-title--sm { font-size: clamp(1.5rem, 2vw, 1.85rem); letter-spacing: calc(-0.03em * var(--tk, 1)); line-height: 1.05; margin-bottom: 8px; }
.tile-text { margin: 0; color: var(--text-soft); max-width: 46ch; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Apps: Nora Launcher + Nora Cleaner (Cleaner = früherer B Cleaner von Baxolino, 1:1 übernommen) ---------- */
.app-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.tile-actions { display: flex; }

.sv { position: relative; z-index: 1; display: grid; place-items: center; align-content: center; gap: 26px; width: 100%; height: 100%; }
/* Funktionen als kleine Karten (statt Haken-Liste, vom Nutzer gewünscht) */
.feats { list-style: none; margin: 26px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.feats li {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 14px 16px; border-radius: 18px;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: transform 0.5s var(--ease-spring), border-color 0.3s;
}
.feats li:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.feats .ic { flex: none; align-self: flex-start; width: 32px; height: 32px; margin-bottom: 10px; background: var(--text); color: var(--bg); }
.feats li:first-child .ic { background: var(--signal); color: #04263a; }
.feats .ic svg { width: 50%; height: 50%; }
.feats b { font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
.feats span:not(.ic) { font-size: 0.84rem; line-height: 1.4; color: var(--muted); }
@media (max-width: 560px) {
  .feats { grid-template-columns: 1fr; }
  .feats li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 12px; }
  .feats .ic { grid-row: span 2; margin: 0; }
}

/* Bühne hinter dem Bild: dasselbe Aurora-Licht wie im Hero (vom Nutzer gewünscht) – weiche Lichtflächen,
   die langsam treiben; Farben je Modus wie die Hero-Paletten */
.app-stage {
  --st-base: #0a2131; --st-a: #0ea5e9; --st-b: #38bdf8; --st-c: #94a3b8; --st-d: #0284c7;
  position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--radius) - 8px);
  background: var(--st-base);
  border: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
}
[data-theme="light"] .app-stage { --st-base: #eaf2f9; --st-a: #8cbde8; --st-b: #b2d4f0; --st-c: #d8d0c2; --st-d: #6aaee6; }
.app-stage::before {
  content: ""; position: absolute; inset: -25%; z-index: 0;
  background:
    radial-gradient(in oklab 42% 38% at 78% 14%, color-mix(in oklab, var(--st-a) 75%, transparent), transparent 70%),
    radial-gradient(in oklab 30% 55% at 14% 40%, color-mix(in oklab, var(--st-b) 55%, transparent), transparent 70%),
    radial-gradient(in oklab 60% 30% at 40% 92%, color-mix(in oklab, var(--st-c) 45%, transparent), transparent 70%),
    radial-gradient(in oklab 36% 36% at 86% 82%, color-mix(in oklab, var(--st-d) 60%, transparent), transparent 70%);
  filter: blur(28px);
  animation: base-drift 16s ease-in-out infinite alternate;
}
/* zweite Karte mit gespiegeltem Licht, damit nicht beide gleich aussehen */
.app-card + .app-card .app-stage::before { scale: -1 1; animation-delay: -8s; }
/* Korn gegen Farbstufen, wie im Hero */
.app-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Bild in der Karte „Widgets“ (vom Nutzer gewählt): schwebende Glas-Widgets – Uhr, Gruppen, Monochrom-Schalter, Dock bzw. Speicher, Duplikate, RAM, Papierkorb */
.wg { display: grid; grid-template-columns: repeat(2, 150px); gap: 12px; }
.wg-card { display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: 20px; background: color-mix(in oklab, var(--text) 8%, transparent); border: 1px solid color-mix(in oklab, var(--text) 14%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: wg-float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.5s); }
.wg-card span { font-size: 0.78rem; color: var(--text-soft); }
.wg-card--wide { grid-column: span 2; }
@keyframes wg-float { 50% { translate: 0 -5px; } }
.wg-label { font-size: 0.7rem !important; }
.wg-clock { font: 500 2.6rem/1 var(--font-display); letter-spacing: -0.04em; }
.wg-dots { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.wg-dots span { display: flex; gap: 4px; }
.wg-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--text); opacity: 0.8; }
.wg-dots span:first-child i:first-child { background: var(--signal); opacity: 1; }
.wg-toggle { position: relative; width: 46px; height: 26px; margin-top: 4px; border-radius: 999px; animation: wg-tog 6s var(--ease-out) infinite; }
.wg-toggle i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; animation: wg-knob 6s var(--ease-spring) infinite; }
@keyframes wg-tog { 0%, 35% { background: color-mix(in oklab, var(--text) 22%, transparent); } 45%, 90% { background: var(--signal); } 100% { background: color-mix(in oklab, var(--text) 22%, transparent); } }
@keyframes wg-knob { 0%, 35% { translate: 0 0; } 45%, 90% { translate: 20px 0; } 100% { translate: 0 0; } }
.wg-dock { display: flex; justify-content: space-around; padding: 12px; }
.wg-dock .ic { width: 40px; height: 40px; background: var(--text); color: var(--bg); }
.wg-num { font: 500 2.2rem/1 var(--font-display); letter-spacing: -0.04em; }
.wg-num--sm { font-size: 1.5rem; }
.wg-bar { height: 6px; border-radius: 6px; background: color-mix(in oklab, var(--text) 14%, transparent); overflow: hidden; }
.wg-bar i { display: block; height: 100%; width: 68%; border-radius: inherit; background: var(--signal); animation: wg-bar 7s var(--ease-out) infinite; }
@keyframes wg-bar { 0%, 18% { width: 92%; } 48%, 86% { width: 68%; } 100% { width: 92%; } }
.wg-row { display: flex; align-items: center; gap: 10px; }
.wg-row .ic { width: 32px; height: 32px; flex: none; background: var(--signal); color: var(--ink, #04263a); }
.wg-row .ic svg { width: 50%; height: 50%; }
.wg-row b { color: var(--text); font-weight: 600; }
@media (max-width: 560px) {
  .wg { grid-template-columns: repeat(2, 138px); }
}

/* Nora Cleaner in Orange (vom Nutzer so festgelegt) – eigene Signal-Farben nur in seiner Karte */
.app-card--clean { --signal: #f97316; --signal-hi: #fb923c; --signal-deep: #ea580c; --accent-text: #fb923c; --glow: rgba(249, 115, 22, 0.18); --ink: #431407; }
[data-theme="light"] .app-card--clean { --accent-text: #c2410c; --glow: rgba(249, 115, 22, 0.14); }
.app-card--clean .btn--signal { color: #431407; }
.app-card--clean .btn--signal .btn-chip { background: #431407; color: #fed7aa; }
.app-card--clean .feats li:first-child .ic { color: #431407; }
.app-card--clean .app-stage { --st-base: #1d1108; --st-a: #f97316; --st-b: #fbbf24; --st-c: #94a3b8; --st-d: #ea580c; }
[data-theme="light"] .app-card--clean .app-stage { --st-base: #fdf3e7; --st-a: #fdba74; --st-b: #fde68a; --st-c: #d8d0c2; --st-d: #fb923c; }

/* Hover wie beim Battery Manager (vom Nutzer gewünscht): das Licht der Bühne zoomt und weicht dem
   Cursor aus, die Widgets folgen ihm ein Stück, die Karte bekommt einen weichen Farbschein.
   --px/--py (0–1) setzt script.js; die Bewegung läuft über transition und ist damit weich. */
.app-stage::before { transition: scale 0.8s var(--ease-out), translate 0.35s ease-out; }
.app-stage > .sv { transition: translate 0.3s ease-out; }
.app-card::before {
  content: ""; position: absolute; inset: -14%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 88% 10%, color-mix(in oklab, var(--signal) 16%, transparent), transparent 70%),
    radial-gradient(55% 60% at 6% 96%, color-mix(in oklab, var(--signal-hi) 10%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease, scale 0.8s var(--ease-out), translate 0.3s ease-out;
}
.app-card { transition: border-color 0.4s, box-shadow 0.5s ease, transform 0.6s var(--ease-out); }
@media (hover: hover) {
  .app-card:hover { box-shadow: 0 24px 60px -28px color-mix(in oklab, var(--signal) 55%, transparent); }
  .app-card:hover::before {
    opacity: 1; scale: 1.12;
    translate: calc((0.5 - var(--px, 0.5)) * 26px) calc((0.5 - var(--py, 0.5)) * 26px);
  }
  .app-card:hover .app-stage::before {
    scale: 1.16;
    translate: calc((0.5 - var(--px, 0.5)) * 44px) calc((0.5 - var(--py, 0.5)) * 36px);
  }
  .app-card + .app-card:hover .app-stage::before { scale: -1.16 1.16; }
  .app-card:hover .app-stage > .sv {
    translate: calc((var(--px, 0.5) - 0.5) * 16px) calc((var(--py, 0.5) - 0.5) * 12px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .app-card:hover::before, .app-card:hover .app-stage::before, .app-card:hover .app-stage > .sv { translate: none; }
  .app-card:hover .app-stage::before { scale: 1; }
  .app-card + .app-card:hover .app-stage::before { scale: -1 1; }
}

/* Zwei Karten nebeneinander (vom Nutzer gewählt) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.app-card { padding: 12px 12px clamp(24px, 3vw, 36px); }
.app-card > :not(.app-stage) { margin-inline: clamp(12px, 2vw, 24px); }
.app-card .app-stage { height: 400px; margin-bottom: 30px; }
.app-card .tile-title { font-size: clamp(2.2rem, 3.4vw, 3rem); }

@media (max-width: 980px) {
  .duo { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .app-card .app-stage { height: 360px; }
}

/* ---------- Prinzipien ---------- */
.principles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.principle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 3fr auto;
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}
.principle::after {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--accent-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease-out);
}
.principle:hover::after { transform: scaleX(1); }
.principle-num {
  font: 300 clamp(3.4rem, 7vw, 6.4rem)/0.8 var(--font-display);
  letter-spacing: calc(-0.06em * var(--tk, 1));
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  transition: color 0.5s, -webkit-text-stroke-color 0.5s;
}
.principle:hover .principle-num { color: var(--accent-text); -webkit-text-stroke-color: transparent; }
.principle-body h3 {
  margin: 0 0 6px;
  font: 500 clamp(1.6rem, 2.8vw, 2.4rem)/1.05 var(--font-display);
  letter-spacing: calc(-0.035em * var(--tk, 1));
}
.principle-body p { margin: 0; color: var(--text-soft); max-width: 52ch; }
.principle-arrow {
  width: 40px; height: 40px;
  fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.5s var(--ease-spring), stroke 0.3s;
}
.principle:hover .principle-arrow { transform: rotate(45deg); stroke: var(--accent-text); }

/* ---------- Familie / Baxolino ---------- */
.family {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
}
.family-copy { display: grid; gap: 22px; justify-items: start; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  font-weight: 600;
  transition: border-color 0.3s;
}
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.link-arrow svg { transition: transform 0.35s var(--ease-spring); }
.link-arrow:hover { border-color: var(--accent-text); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

.family-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 260px; }
.orb {
  position: relative; z-index: 1;
  width: clamp(120px, 14vw, 180px); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  font: 500 1rem/1 var(--font-display);
  letter-spacing: calc(-0.02em * var(--tk, 1));
}
.orb span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.9); color: #12120f; }
/* Baxolino: eigener bunter Verlauf als Gruß an die Mutter */
.orb--bax {
  background: conic-gradient(from 200deg, #3d94e2, #ed4f8d, #fb8f53, #5dd4c2, #3d94e2);
  filter: saturate(1.05);
  animation: spin 20s linear infinite;
}
.orb--bax span { animation: spin 20s linear infinite reverse; }
.orb--nora { margin-left: -24px; background: var(--text); box-shadow: inset -22px -22px 0 0 var(--signal), var(--shadow); }
.orb--nora span { background: var(--bg); color: var(--text); }
.family-link {
  position: absolute; left: 25%; right: 25%; top: 50%;
  width: 50%; height: 40px; translate: 0 -50%;
  fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 3 6;
}

/* ---------- CTA ---------- */
.cta { padding: clamp(120px, 16vw, 220px) 0 clamp(80px, 10vw, 140px); text-align: center; }
.cta-title {
  margin: 0;
  font: 500 clamp(3rem, 10vw, 9rem)/0.9 var(--font-title, var(--font-display));
  letter-spacing: -0.03em;
}
.cta-lead { margin: 28px auto 36px; max-width: 44ch; color: var(--text-soft); font-size: 1.15rem; }
.cta-form {
  display: flex; gap: 8px;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: border-color 0.3s;
}
.cta-form:focus-within { border-color: var(--accent-text); }
.cta-form input {
  flex: 1; min-width: 0;
  padding: 0 18px;
  border: 0; background: transparent; color: var(--text);
  font: 400 1rem var(--font-body);
}
.cta-form input:focus { outline: none; }
.cta-form input::placeholder { color: var(--muted); }
.cta-note { margin-top: 18px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); overflow: hidden; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 0; }
.footer-links { display: flex; gap: 24px; font-size: 0.95rem; color: var(--text-soft); }
.footer-links a:hover { color: var(--text); }
.footer-word {
  font: 600 clamp(8rem, 34vw, 32rem)/0.72 var(--font-title, var(--font-display));
  letter-spacing: calc(-0.07em * var(--tk-title, 1));
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  user-select: none;
  translate: 0 12%;
}

/* ---------- Scroll-Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out) var(--d, 0ms), transform 1.1s var(--ease-out) var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .family { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero-card { padding-top: 100px; border-radius: var(--radius); }
  .hero { padding: 8px; }
  .principle { grid-template-columns: 1fr; gap: 12px; }
  .principle-arrow { display: none; }
  .cta-form { flex-direction: column; border-radius: 28px; }
  .cta-form input { height: 50px; }
  .cta-form .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
