/* ==========================================================================
   dashboard.de – Stylesheet
   Alle Farben und Schriften stehen als Variablen im :root-Block ganz oben.
   Wer die Optik ändern will, ändert dort – nicht weiter unten im Dokument.
   ========================================================================== */

/* Schriften liegen auf unserem eigenen Server (Ordner fonts/), nicht bei
   Google. So geht beim Laden keine IP-Adresse an Google (DSGVO).
   Jede Datei enthält alle Stärken; "latin" deckt Deutsch ab, "latin-ext"
   springt nur bei seltenen Sonderzeichen ein. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  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: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  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: 'Roboto';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/roboto-latin.woff2') format('woff2');
  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: 'Roboto';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/roboto-latin-ext.woff2') format('woff2');
  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;
}

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

:root {
  /* Farben aus dem Original-Branding */
  --color-bg: #ffffff;
  --color-bg-soft: #f7f7f7;
  --color-bg-dark: #13332d;      /* dunkles Markengrün */
  --color-bg-black: #000000;     /* Kopfleiste */
  --color-text: #13332d;
  --color-text-muted: #4d635e;
  --color-text-invert: #ffffff;
  --color-accent: #00472c;       /* Buttons */
  --color-accent-hover: #013a24;
  --color-accent-soft: #346555;
  --color-mint: #ccffeb;
  --color-negative: #dc060a;
  --color-negative-soft: #fdc9c9;
  --color-border: #e4e7e6;
  --color-light-btn: #f2f2f2;
  --color-signal: #2bd48a;       /* Leuchtgrün für Live-Punkte und Erfolg (V2) */
  --color-border-stark: #d5dcda; /* Trennlinien in den Fragen */
  --color-glas: rgba(255, 255, 255, 0.72);        /* Kopfleiste (Glas) */
  --color-glas-dicht: rgba(255, 255, 255, 0.9);   /* Kopfleiste nach dem Scrollen */
  --color-glas-panel: rgba(255, 255, 255, 0.97);  /* Menü auf dem Handy, Meldungen */
  --color-glas-rand: rgba(19, 51, 45, 0.08);
  --color-glas-hover: rgba(19, 51, 45, 0.06);     /* Feld hinter dem Menüpunkt */
  --color-raster: rgba(19, 51, 45, 0.06);         /* feines Raster im Titelbereich */
  --color-licht: rgba(43, 212, 138, 0.12);        /* Lichtkegel auf den Kacheln */
  --schatten-glas: 0 8px 32px rgba(19, 51, 45, 0.08);
  --schatten-glas-stark: 0 16px 48px rgba(19, 51, 45, 0.16);

  /* Schriften wie im Original */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1250px;
  --radius: 8px;
  --radius-lg: 16px;
  /* Abstand zwischen den Abschnitten wie im Original; auf dem Handy kleiner (siehe „Mobil“). */
  --section-space: 80px;
  /* Abstand der V2-Abschnitte: 80 px auf dem Handy, bis 136 px auf großen Bildschirmen */
  --abschnitt-abstand: clamp(80px, 9vw, 136px);

  /* Schwebende Kopfleiste: Abstand zum oberen Rand und Höhe. --kopf-platz ist
     der Platz, den sie oben braucht (erste Abschnitte, Scroll-Story). */
  --kopf-abstand: 14px;
  --kopf-hoehe: 64px;
  --kopf-platz: calc(var(--kopf-abstand) + var(--kopf-hoehe));
}

/* Beim Anspringen eines Abschnitts genau um die Höhe der Kopfleiste Abstand
   lassen, sonst verschwindet der Anfang des Abschnitts darunter. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

/* Fliesstext wie im Original: Roboto Light, 18 Pixel, Zeilenabstand 1,5. */
body {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ueberschriften wie im Original: Inter Fett, Zeilenabstand 1,3, normale Laufweite.
   Die Groessen sind die gemessenen Werte von dashboard.de. Der erste Wert im
   clamp() gilt auf dem Handy, der letzte auf dem grossen Bildschirm. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.3;
  letter-spacing: 0;
  font-weight: 700;
}

h1 { font-size: clamp(32px, 4.2vw, 53px); }
h2 { font-size: clamp(32px, 4.2vw, 53px); }
h3 { font-size: clamp(20px, 1.9vw, 26px); }

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.center { text-align: center; }
.center .btn { margin-inline: auto; }

.lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 760px;
}
.center .lead { margin-inline: auto; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
  margin-bottom: 14px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text-invert);
}
.btn-primary:hover { background: var(--color-accent-hover); }

.btn-light {
  background: var(--color-light-btn);
  color: #000;
}
.btn-light:hover { background: #ffffff; }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover { background: var(--color-bg-soft); }

.btn-lg {
  font-size: 1rem;
  padding: 15px 30px;
}

/* Im Original steht vor jedem grossen Knopf ein Pfeil. */
.btn-lg::before {
  content: "→";
  font-size: 1.1em;
  line-height: 1;
  margin-right: 6px;
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  opacity: 0.85;
}

/* ---------- Kopfleiste ---------- */

/* Im Original sitzen Logo und Knopf genau an der 1250-Pixel-Spalte. Der
   Innenrand von 16 Pixeln kommt deshalb außen dazu, statt sie einzurücken. */
.site-header .container {
  max-width: calc(var(--max-width) + 32px);
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-black);
  color: var(--color-text-invert);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
  padding: 16px 0;
}

.logo img { width: 245px; height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Die Menüpunkte im Original: 23px, mit 16px Luft nach jeder Seite. */
.nav a {
  position: relative;
  font-family: var(--font-body);
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: 0.5px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  padding: 16px;
  transition: color 0.3s ease;
}

/* Beim Überfahren legt sich ein weiches, abgerundetes Feld hinter den Menüpunkt –
   genau wie auf dashboard.de. */
.nav a:not(.nav-cta)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: #262626;   /* im Original ein volles Dunkelgrau, kein Hauch von Weiss */
  opacity: 0;
  z-index: -1;           /* MUSS hinter die Beschriftung – sonst verdeckt der
                            Kasten den Menüpunkt und man sieht nur ein schwarzes Feld. */
  transition: opacity 0.3s ease;
}
.nav a:not(.nav-cta):hover::before,
.nav a:not(.nav-cta).is-active::before { opacity: 1; }
.nav a.is-active { font-weight: 700; }

/* Der Knopf ganz rechts in der Kopfleiste. */
.nav .nav-cta {
  color: #000;
  margin-left: 16px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: normal;
  height: 48px;
  padding: 6px 24px;
}

/* Rechtsseiten: Kopfleiste wie im Original nur mit Logo und diesem Knopf.
   Auf dem Handy steckt er hinter dem Menü-Symbol, wie im Original. */
.nav .header-cta {
  font-size: 14px;
  font-weight: 700;
  height: 48px;
  padding: 6px 23px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Listen mit Haken ---------- */

.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--color-text-muted);
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  background: var(--color-mint);
  color: var(--color-accent);
}

.ergebnis { color: var(--color-text) !important; }


/* Die Kontaktliste auf der Seite selbst – Symbol, dann Text, wie im Original.
   Dieselbe Liste steht auch im Fußbereich, dort auf dunklem Grund. */

/* ---------- FAQ ---------- */

.faq { padding: 20px 0 60px; }
.faq h2 { margin-bottom: 20px; }
.faq > .container > .lead { margin-bottom: 56px; }

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-accent-soft);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  color: var(--color-text-muted);
  margin-top: 14px;
}

/* ---------- Fußbereich ---------- */

.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-invert);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);   /* Marke, Leistungen, Anbindungen, Unternehmen, Kontakt */
  gap: 48px;
}
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

.footer-brand img { width: 160px; margin-bottom: 20px; }
.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  max-width: 42ch;
  margin-bottom: 24px;
}

.site-footer h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-invert);
  margin-bottom: 18px;
}

.site-footer ul { list-style: none; display: grid; gap: 12px; }
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9375rem;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }
/* Die gerade geöffnete Seite ist im Original mintgrün hervorgehoben. */
.site-footer a[aria-current="page"] { color: var(--color-mint); }

/* Die vier Symbole im Fußbereich stehen nebeneinander in einer Reihe:
   schlichte weisse Zeichen, kein Kreis, kein Rand – so wie auf dashboard.de. */
/* Achtung: .site-footer ul stellt weiter oben ALLE Listen im Fußbereich
   untereinander. Diese Reihe muss deshalb genauer benannt sein, sonst
   gewinnt die andere Regel und die Symbole stehen in einer Spalte. */
.site-footer .social {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 18px;
  list-style: none;
  align-items: center;
}

.site-footer .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.site-footer .social a:hover { opacity: 1; }
.site-footer .social svg { width: 18px; height: 18px; display: block; }

/* Die Zeichnungen bringen ihre Markenfarbe mit (blau, rot …). Im Fußbereich
   sind sie einfarbig weiss – deshalb hier überschreiben. */
.site-footer .social svg path,
.site-footer .social svg circle { fill: currentColor; }

/* Telefon und E-Mail bekommen ihr Symbol davor. */
.footer-kontakt li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kontakt-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: currentColor;
  opacity: 0.85;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* ---------- Cookie-Banner ---------- */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(19, 51, 45, 0.22);
  padding: 24px;
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.cookie-banner h2 { font-size: 1.375rem; margin-bottom: 12px; }
.cookie-banner p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.cookie-banner a { color: var(--color-accent); }

/* Knopfzeile unten, durch eine feine Linie vom Text getrennt */
.cookie-fuss {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-link {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  text-decoration: underline;
}
.cookie-link:hover { color: var(--color-text); }

/* „hidden“ im Banner muss stärker sein als display: grid / inline-flex,
   sonst bleiben die Kategorien und die Knöpfe der zweiten Ebene sichtbar. */
.cookie-banner [hidden] { display: none !important; }

/* Die drei Kategorien zum Ankreuzen */
.cookie-kategorien {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.cookie-kategorie {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  cursor: pointer;
}
.cookie-kategorie input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--color-accent);
}
.cookie-kategorie input:disabled { cursor: not-allowed; }
.cookie-kategorie strong {
  color: var(--color-text);
  font-weight: 600;
  margin-right: 4px;
}

/* ---------- Rücksicht auf Bewegungsempfindlichkeit ---------- */

@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

/* ---------- Mittlere Bildschirme ---------- */

/* Zwischen Tablet und grossem Monitor wird die Kopfleiste sonst zu breit. */
@media (max-width: 1250px) {
  .logo img { width: 190px; }
  .nav a { font-size: 18px; padding: 12px; }
  .nav .nav-cta { margin-left: 8px; padding: 6px 18px; }
  .header-inner { min-height: 80px; }
  html { scroll-padding-top: 80px; }
}

/* ---------- Mobil ---------- */


@media (max-width: 900px) {
  :root { --section-space: 56px; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--color-bg-black);
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: 17px; padding: 12px 0; }
  .nav a:not(.nav-cta)::before { display: none; }
  .logo img { width: 170px; }
  .nav .nav-cta { margin-top: 12px; text-align: center; }

  .nav-toggle { display: flex; }
  .header-inner { position: relative; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }

  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-actions { flex-direction: column; }
}

/* ==========================================================================
   Unterseiten
   ========================================================================== */

/* ---------- Rechtstexte (Impressum, AGB, Datenschutz) ---------- */

/* Maße vom Original gemessen (11.09.2026, Fenster 1728 Pixel breit).
   Der Baukasten des Originals setzt Leerzeilen zwischen manche Absätze.
   Die stehen hier als Klasse .luecke: 59 statt 16 Pixel Abstand. */
.legal {
  background: var(--color-bg-soft);
  padding: 99px 0 82px;
}
.legal .container { max-width: calc(986px + 48px); } /* 986 Pixel Textspalte */

.legal h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  margin-bottom: 11px;
}
.legal h1 + p { margin-top: 36px; }               /* Datenschutz: ohne Untertitel */
.legal h1 + .legal-untertitel { margin-top: 0; }

.legal .legal-untertitel {
  font-size: 20.2px;
  font-weight: 700;
  margin-bottom: 40px;
}

.legal h2,
.legal h3 {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  margin: 59px 0 16px;
}
.legal .legal-untertitel + h2 { margin-top: 0; }
/* Unterpunkte wie „1.1. Personenbezogene Daten" sind im Original normaler
   Fließtext, nicht fett. */
.legal h3 { font-weight: 300; }
.legal h3.fett { font-weight: 700; } /* Ausnahme im Original: 7.8. */

.legal p {
  margin-bottom: 16px;
  overflow-wrap: break-word;
}

.legal .luecke { margin-top: 59px; }
.legal .dicht { margin-top: 0; }
.legal .stand { margin-top: 59px; }

/* Impressum: dort stehen die kleinen Überschriften enger. */
.legal .klein { margin: 20px 0; }
.legal .eng { margin-top: 20px; }
.legal .luecke-gross { margin-top: 106px; }

/* Handy: im Original steht der Titel näher an der Kopfleiste. */
@media (max-width: 560px) {
  .legal { padding-top: 49px; }
}

/* ---------- Kontaktseite ---------- */

.kontakt { padding: 72px 0 var(--section-space); }

.kontakt-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.kontakt-intro h1 { margin-bottom: 20px; }
.kontakt-intro .lead { margin-bottom: 32px; }
.kontakt-intro .check-list { margin-bottom: 32px; }

.kontakt-formular {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.feld { margin-bottom: 20px; }

.feld-paar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feld label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 7px;
}

.feld .optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.feld input,
.feld textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.feld textarea { resize: vertical; min-height: 110px; }

.feld input::placeholder,
.feld textarea::placeholder { color: #9aa8a4; }

.feld input:focus,
.feld textarea:focus {
  outline: none;
  border-color: var(--color-accent-soft);
  box-shadow: 0 0 0 3px rgba(52, 101, 85, 0.15);
}

.feld input[aria-invalid="true"],
.feld textarea[aria-invalid="true"] {
  border-color: var(--color-negative);
  box-shadow: 0 0 0 3px rgba(220, 6, 10, 0.12);
}

.feld-fehler {
  display: block;
  color: var(--color-negative);
  font-size: 0.8125rem;
  margin-top: 6px;
}

.feld-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin: 28px 0;
}
.feld-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--color-accent);
}
.feld-checkbox label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}
.feld-checkbox a { color: var(--color-accent); }

/* Honigtopf gegen Spam-Roboter – für Menschen nicht sichtbar */
.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-block { width: 100%; }

.formular-hinweis {
  margin-top: 16px;
  font-size: 0.9375rem;
  min-height: 1.4em;
}
.formular-hinweis.ist-fehler { color: var(--color-negative); }
.formular-hinweis.ist-erfolg { color: var(--color-accent); }

/* ---------- Danke-Seite ---------- */

.danke { padding: 96px 0 var(--section-space); }

.danke-haken {
  width: 68px;
  height: 68px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--color-mint);
  color: var(--color-accent);
  font-size: 2rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.danke h1 { margin-bottom: 18px; }
.danke .lead { margin-bottom: 56px; }

.danke-schritte {
  list-style: none;
  counter-reset: schritt;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  text-align: left;
  margin-bottom: 48px;
}
.danke-schritte li {
  counter-increment: schritt;
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.danke-schritte li::before {
  content: counter(schritt);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-bg-dark);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.danke-schritte h2 { font-size: 1.0625rem; margin-bottom: 8px; }
.danke-schritte p { color: var(--color-text-muted); font-size: 0.9375rem; }

@media (max-width: 900px) {
  .kontakt-grid { grid-template-columns: 1fr; gap: 40px; }
  .kontakt-formular { padding: 26px; }
  .feld-paar { grid-template-columns: 1fr; gap: 0; }
}

/* ==========================================================================
   Version 2 – Relaunch nach dem Brief (Seiten mit <body class="v2">)
   Ruhiger und seriöser als Version 1: keine pulsierenden Knöpfe, keine
   Pfeile, mehr Weißraum. Farben und Schriften bleiben dieselben.
   ========================================================================== */

.v2 .btn-lg::before { content: none; }
.v2 .btn:hover { transform: none; }

/* Menü: kleinere Schrift, damit fünf Punkte und der lange Knopf Platz haben */
.v2 .nav a { font-size: 16px; letter-spacing: 0; padding: 12px 14px; }
.v2 .nav a.is-active { font-weight: inherit; }
.v2 .nav .nav-cta { margin-left: 12px; height: 44px; padding: 6px 20px; }

@media (max-width: 1100px) {
  .v2 .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--color-bg-black);
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .v2 .nav.is-open { display: flex; }
  .v2 .nav a { font-size: 17px; padding: 12px 0; }
  .v2 .nav a:not(.nav-cta)::before { display: none; }
  .v2 .nav .nav-cta { margin: 12px 0 0; height: auto; padding: 12px 20px; }
  .v2 .nav-toggle { display: flex; }
  .v2 .header-inner { position: relative; }
}

.v2-abschnitt { padding: 96px 0; }
.v2-abschnitt h2,
.v2-faq h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.15;
  margin-bottom: 18px;
  max-width: 760px;
}
.v2-abschnitt > .container > .lead { max-width: 720px; margin-bottom: 48px; }


/* Fragen */
.v2-faq { padding: 96px 0; background: var(--color-bg-soft); }
.v2-faq .faq-list { margin: 40px 0 0; max-width: 860px; }  /* bündig mit der Überschrift */


/* Kontaktseite V2: Titel so groß wie die Abschnittstitel */
.v2-kontakt h1 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.12; margin-bottom: 18px; }

/* Kontaktseite: Bild unter den Vorteilen */
.v2-kontakt-bild {
  max-width: 460px;
  margin-top: 32px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

@media (max-width: 900px) {
  .v2-abschnitt,
  .v2-faq { padding: 64px 0; }
}

/* ==========================================================================
   Version 2 – „Quantensprung“ (Seiten mit <body class="v2 q">)
   Hell und mutig: sehr große Typografie, kräftige Grünflächen, Bewegung.
   Die interaktiven Bausteine haben eigene Präfixe: lc- (Live-Cockpit),
   ls- (Liquiditäts-Vorschau), st- (Scroll-Story), vn- (Vorher/Nachher),
   kc- (Klarheits-Check).
   ========================================================================== */

.q .eyebrow { color: var(--color-accent-soft); letter-spacing: 0.16em; }

.q-abschnitt { padding: 128px 0; }
.q-titel {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-bottom: 24px;
}
.q-lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 640px;
}

/* Titelbereich */
.q-hero { position: relative; isolation: isolate; overflow: hidden; padding: 72px 0 96px; }
.q-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -15%;
  width: 70vw;
  height: 70vw;
  max-width: 1100px;
  max-height: 1100px;
  background: radial-gradient(circle, rgba(204, 255, 235, 0.95) 0%, rgba(204, 255, 235, 0) 62%);
  z-index: -1;
  pointer-events: none;
}
.q-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}
.q-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 8px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(19, 51, 45, 0.06);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
}
.q-kicker-punkt {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-signal);
  animation: q-puls 2.2s ease-in-out infinite;
}
.q-hero-titel {
  font-size: clamp(40px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
/* Leuchtmarker unter „Klarheit“, läuft beim Laden ein */
.q-marker { position: relative; z-index: 0; white-space: nowrap; }
.q-marker::after {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  bottom: 0.08em;
  height: 0.36em;
  border-radius: 6px;
  background: var(--color-signal);
  opacity: 0.55;
  z-index: -1;
  transform-origin: left center;
  animation: q-marker 1.1s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.q-hero-lead {
  font-size: clamp(18px, 1.5vw, 21px);
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: 36px;
}
.q-hero-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.q-link-pfeil {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--color-signal);
}
.q-link-pfeil::after { content: " →"; }
.q-fakten {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 8px 48px;
  margin-top: 48px;
}
.q-fakten strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.q-fakten span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.3; color: var(--color-text-muted); }


/* Für wen: Umschalter */
.q-umschalter {
  display: inline-flex;
  gap: 6px;
  margin: 16px 0 40px;
  padding: 6px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}
.q-umschalter button {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.q-umschalter button[aria-selected="true"] { background: var(--color-bg-dark); color: var(--color-text-invert); }
.q-umschalter button:focus-visible { outline: 3px solid var(--color-signal); outline-offset: 2px; }
.q-fuerwen-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  animation: q-einblenden 0.45s ease both;
}
.q-fuerwen-panel[hidden] { display: none; }
.q-fuerwen-panel figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(19, 51, 45, 0.18);
}
.q-fuerwen-panel img { width: 100%; height: 100%; object-fit: cover; }
.q-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
  margin-bottom: 12px;
}
.q-fuerwen-text h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; }
.q-fuerwen-text > p { color: var(--color-text-muted); margin-bottom: 24px; }

/* Leistungen: Bento-Raster */
.q-leistungen { background: var(--color-bg-soft); }
/* „Dein Klarheits-Cockpit.“ soll auf großen Bildschirmen in eine Zeile passen */
.q-leistungen .q-titel { max-width: none; }
.q-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(220px, auto);
  gap: 16px;
  margin-top: 56px;
}
.q-kachel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  transition: box-shadow 0.3s ease;
}
.q-kachel:hover { box-shadow: 0 24px 60px rgba(19, 51, 45, 0.1); }
.q-kachel h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }
.q-kachel p { font-size: 16px; color: var(--color-text-muted); }
.q-kachel-gross { grid-column: span 2; grid-row: span 2; }
.q-kachel-breit,
.q-bento .q-kachel:nth-last-child(-n + 2) { grid-column: span 2; }
.q-kachel-dunkel { background: var(--color-bg-dark); border-color: var(--color-bg-dark); color: var(--color-text-invert); }
.q-kachel-dunkel h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; }
.q-kachel-dunkel p { color: rgba(255, 255, 255, 0.75); }
.q-kachel-dunkel .q-beispiel { font-size: 12px; color: rgba(255, 255, 255, 0.45); }
.q-kachel-mint { background: var(--color-mint); border-color: var(--color-mint); }
.q-kachel-mint p { color: var(--color-text); }
.q-kachel .q-gross-zahl {
  margin-bottom: auto;
  font-family: var(--font-display);
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-text);
}
.q-mini-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: auto; }
.q-mini-kpis div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}
.q-mini-kpis span { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.65); }
.q-mini-kpis strong {
  display: block;
  margin: 2px 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.q-mini-kpis svg { width: 100%; height: 32px; overflow: visible; }
.q-kachel-gross .q-mini-kpis svg { height: 72px; }
.q-mini-kpis path {
  fill: none;
  stroke: var(--color-signal);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.6s ease;
}
.q-mini-kpis.ist-sichtbar path { stroke-dashoffset: 0; }
.q-mini-kpis div:nth-child(2) path { transition-delay: 0.15s; }
.q-mini-kpis div:nth-child(3) path { transition-delay: 0.3s; }
.q-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.q-chips li {
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}
.q-kachel-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: auto;
  border-radius: 14px;
  background: var(--color-mint);
}
.q-kachel-symbol svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--color-bg-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Ablauf: Zeitstrahl nach unten. Die Schritte wechseln sich links und rechts
   der Linie ab und greifen versetzt ineinander; die Leuchtlinie wächst beim
   Scrollen mit, jeder Punkt leuchtet auf, sobald die Linie ihn erreicht. */
.q-schritte {
  position: relative;
  list-style: none;
  max-width: 1040px;
  margin: 64px auto 0;
}
.q-schritte::before,
.q-schritte::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  border-radius: 4px;
}
.q-schritte::before { bottom: 0; background: var(--color-border); }
.q-schritte::after { height: calc(var(--fortschritt, 1) * 100%); background: var(--color-signal); }
.q-schritte li {
  position: relative;
  width: 50%;
  margin-left: 50%;
  padding: 0 0 64px 56px;
}
.q-schritte li:nth-child(even) { margin-left: 0; padding: 0 56px 64px 0; }
.q-schritte li + li { margin-top: -240px; }
.q-schritte li:last-child { padding-bottom: 0; }
.q-schritte li::before {
  content: "";
  position: absolute;
  top: 28px;
  left: -12px;
  z-index: 1;
  width: 24px;
  height: 24px;
  border: 5px solid var(--color-signal);
  border-radius: 50%;
  background: var(--color-bg);
  transition: border-color 0.3s ease;
}
.q-schritte li:nth-child(even)::before { left: auto; right: -12px; }
.q-schritte.ist-bereit li:not(.ist-aktiv)::before { border-color: var(--color-border); }
.q-schritte.ist-bereit li { opacity: 0.4; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.q-schritte.ist-bereit li.ist-aktiv { opacity: 1; transform: none; }
.q-schritte figure { aspect-ratio: 520 / 413; overflow: hidden; margin-bottom: 20px; border-radius: 20px; }
.q-schritte img { width: 100%; height: 100%; object-fit: cover; }
.q-schritt-nr {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-accent-soft);
}
.q-schritte li.ist-aktiv .q-schritt-nr { color: var(--color-signal); }
.q-schritte h3 { font-size: 24px; margin-bottom: 8px; }
.q-schritte li > p:last-child { font-size: 16px; color: var(--color-text-muted); }
.q-aufwand { margin-top: 56px; padding: 28px 32px; font-size: 18px; background: var(--color-mint); border-radius: 20px; }

/* Über uns */
.q-ueber-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.q-ueber-bild { overflow: hidden; border-radius: 28px; box-shadow: 0 40px 100px rgba(19, 51, 45, 0.2); }
.q-ueber .q-titel { font-size: clamp(36px, 4.6vw, 64px); }
.q-ueber .q-lead { color: var(--color-text); margin-bottom: 20px; }
.q-ueber-grid > div > p { color: var(--color-text-muted); }
.q-ueber-grid .q-unterschrift { display: flex; flex-direction: column; margin-top: 32px; }
.q-unterschrift strong { font-family: var(--font-display); font-size: 18px; color: var(--color-text); }

/* Fragen */
.q .v2-faq { padding: 128px 0; }
.q .v2-faq h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -0.03em; max-width: 900px; }

/* Schlussblock */
.q-finale {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 160px 0;
  text-align: center;
  background: var(--color-bg-dark);
  color: var(--color-text-invert);
}
.q-finale::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 50% 130%, transparent 0 58px, rgba(204, 255, 235, 0.08) 59px 60px);
  z-index: -1;
}
.q-finale .eyebrow { color: var(--color-mint); }
.q-finale-titel {
  margin: 16px auto 28px;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.q-finale-titel span { color: var(--color-signal); }
.q-finale .q-lead { margin: 0 auto 40px; color: rgba(255, 255, 255, 0.75); }
.q-finale .btn-primary { padding: 20px 36px; font-size: 18px; background: var(--color-signal); color: var(--color-bg-dark); }
.q-finale .btn-primary:hover { background: var(--color-mint); }

/* Einblenden beim Scrollen – das Attribut setzt erst script.js, ohne
   JavaScript bleibt also alles sichtbar. */
.q [data-einblenden] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.q [data-einblenden].ist-sichtbar { opacity: 1; transform: none; }
.q-bento .q-kachel:nth-child(2)[data-einblenden] { transition-delay: 0.08s; }
.q-bento .q-kachel:nth-child(3)[data-einblenden] { transition-delay: 0.16s; }
.q-bento .q-kachel:nth-child(4)[data-einblenden] { transition-delay: 0.24s; }
.q-bento .q-kachel:nth-child(5)[data-einblenden] { transition-delay: 0.08s; }
.q-bento .q-kachel:nth-child(6)[data-einblenden] { transition-delay: 0.16s; }

@keyframes q-marker { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes q-einblenden { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes q-puls {
  0%, 100% { box-shadow: 0 0 0 3px rgba(43, 212, 138, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(43, 212, 138, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .q-marker::after,
  .q-kicker-punkt,
  .q-fuerwen-panel { animation: none; }
  .q [data-einblenden],
  .q-schritte.ist-bereit li { opacity: 1; transform: none; transition: none; }
  .q-mini-kpis path { stroke-dashoffset: 0; transition: none; }
}

@media (max-width: 1100px) {
  .q-hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .q-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-kachel-gross { grid-row: auto; }
}
@media (max-width: 900px) {
  .q-abschnitt,
  .q .v2-faq { padding: 80px 0; }
  .q-hero { padding: 40px 0 64px; }
  .q-fuerwen-panel,
  .q-ueber-grid { grid-template-columns: 1fr; gap: 32px; }
  .q-finale { padding: 96px 0; }
  /* Zeitstrahl: Linie links, alle Schritte rechts daneben untereinander */
  .q-schritte::before,
  .q-schritte::after { left: 12px; }
  .q-schritte li,
  .q-schritte li:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 48px 48px; }
  .q-schritte li + li { margin-top: 0; }
  .q-schritte li:last-child { padding-bottom: 0; }
  .q-schritte li::before,
  .q-schritte li:nth-child(even)::before { left: 0; right: auto; }
}
@media (max-width: 560px) {
  .q-bento { grid-template-columns: 1fr; }
  .q-kachel-gross,
  .q-kachel-breit,
  .q-bento .q-kachel:nth-last-child(-n + 2) { grid-column: auto; }
  .q-kachel { padding: 24px; }
  .q-bento { grid-auto-rows: auto; }
  .q-kachel-symbol { margin-bottom: 12px; }
  .q-kachel .q-gross-zahl { margin-bottom: 12px; }
  .q-kachel-gross .q-mini-kpis svg { height: 40px; }
  .q-mini-kpis { gap: 8px; }
  .q-mini-kpis div { padding: 10px; }
  .q-mini-kpis strong { font-size: 17px; }
  .q-fakten { gap: 8px 24px; }
  .q-umschalter { display: flex; }
  .q-umschalter button { flex: 1; padding: 10px 12px; font-size: 14px; }
}

/* ==========================================================================
   V2-Baustein: Live-Cockpit und Liquiditäts-Vorschau
   ========================================================================== */

/* ==========================================================================
   V2: Live-Cockpit (lc-) und Liquiditäts-Vorschau (ls-)
   Nutzt nur die Variablen aus dem :root-Block von styles.css. Neue Farbtöne
   entstehen ausschließlich als rgba()-Abstufungen dieser Farben:
     --color-bg-dark  #13332d  → rgba(19, 51, 45, …)
     --color-signal   #2bd48a  → rgba(43, 212, 138, …)
     --color-mint     #ccffeb  → rgba(204, 255, 235, …)
     --color-negative #dc060a  → rgba(220, 6, 10, …)
     --color-accent   #00472c  → rgba(0, 71, 44, …)
     weiß / schwarz            → rgba(255, 255, 255, …) / rgba(0, 0, 0, …)
   ========================================================================== */


/* ---------- V2: Live-Cockpit ---------- */

/* Die Karte richtet ihr Raster nach der eigenen Breite, nicht nach dem
   Bildschirm – sie sitzt mal in einer halben Spalte, mal in voller Breite. */
.lc {
  container-type: inline-size;
  container-name: lc;
  width: 100%;
  min-width: 0;
}

.lc-card {
  position: relative;
  isolation: isolate;
  background: var(--color-bg-dark);
  color: var(--color-text-invert);
  border-radius: calc(var(--radius-lg) + 4px);
  padding: 18px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  box-shadow:
    inset 0 0 0 1px rgba(204, 255, 235, 0.1),
    0 2px 4px rgba(19, 51, 45, 0.12),
    0 24px 48px -16px rgba(19, 51, 45, 0.35),
    0 60px 120px -40px rgba(19, 51, 45, 0.45);
  overflow: hidden;
  /* Einblenden, sobald das Cockpit sichtbar wird (Klasse setzt script.js). */
  opacity: 1;
  transform: none;
}
/* Weiches Leuchten oben rechts: gibt der Fläche Tiefe, ohne ein Bild zu laden. */
.lc-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40% -30% auto auto;
  width: 80%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(43, 212, 138, 0.2), rgba(43, 212, 138, 0));
  pointer-events: none;
}

.lc.is-wartend .lc-card { opacity: 0; transform: translateY(24px) scale(0.98); }
.lc.is-aktiv .lc-card {
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.lc p { margin: 0; }
.lc ul { list-style: none; margin: 0; padding: 0; }

/* Kopfzeile */
.lc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 2px 2px 14px;
}
.lc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.lc-title-co { color: rgba(255, 255, 255, 0.62); font-weight: 500; }
.lc-mark {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background:
    linear-gradient(var(--color-bg-dark), var(--color-bg-dark)) 5px 12px / 3px 5px no-repeat,
    linear-gradient(var(--color-bg-dark), var(--color-bg-dark)) 10px 8px / 3px 9px no-repeat,
    linear-gradient(var(--color-bg-dark), var(--color-bg-dark)) 15px 5px / 3px 12px no-repeat,
    var(--color-mint);
}
.lc-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
}
.lc-live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-signal);
}
.lc-live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-signal);
  animation: lc-puls 2.2s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
@keyframes lc-puls {
  0% { transform: scale(1); opacity: 0.7; }
  80%, 100% { transform: scale(3.2); opacity: 0; }
}

/* Zeitraum-Umschalter: ein Leuchtstreifen gleitet unter den aktiven Knopf. */
.lc-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 12px;
}
.lc-seg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 0 0 1px rgba(204, 255, 235, 0.08);
}
.lc-seg-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 3);
  border-radius: 999px;
  background: var(--color-mint);
  box-shadow: 0 4px 14px -4px rgba(43, 212, 138, 0.6);
  transform: translateX(calc(var(--lc-index, 0) * 100%));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.lc-seg-btn {
  position: relative;
  z-index: 1;
  min-width: 76px;
  min-height: 34px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
}
.lc-seg-btn:hover { color: var(--color-text-invert); }
.lc-seg-btn[aria-pressed="true"] { color: var(--color-bg-dark); }
.lc-seg-btn:focus-visible {
  outline: 2px solid var(--color-signal);
  outline-offset: 2px;
}
.lc-range {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-variant-numeric: tabular-nums;
}

/* KPI-Kacheln: 2 × 2 in schmalen Karten, 4 nebeneinander ab 560 px Kartenbreite. */
.lc-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.lc-kpi {
  min-width: 0;
  padding: 12px 12px 11px;
  border-radius: calc(var(--radius) + 2px);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(204, 255, 235, 0.08);
}
.lc-kpi-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lc-kpi-value {
  margin: 3px 0 7px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lc-kpi-delta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 11px;
}
/* Immer eigene Zeile: sonst sind die Kacheln je nach Textlänge unterschiedlich hoch. */
.lc-kpi-ref { flex-basis: 100%; color: rgba(255, 255, 255, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px 2px 6px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* Kleines Dreieck zeigt die Richtung – die Farbe allein reicht nicht. */
.lc-chip::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid currentColor;
}
.lc-chip.is-down::before { transform: rotate(180deg); }
.lc-chip.is-good { background: rgba(43, 212, 138, 0.16); color: var(--color-mint); }
.lc-chip.is-bad { background: var(--color-negative); color: var(--color-text-invert); }

/* Flächen für Diagramm und Balken */
.lc-panel {
  padding: 12px 14px 10px;
  border-radius: calc(var(--radius) + 2px);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(204, 255, 235, 0.08);
}
.lc-panel + .lc-panel { margin-top: 8px; }
.lc-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-bottom: 6px;
}
.lc-panel-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lc-legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.66);
}
.lc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.lc-legend-ist::before {
  content: "";
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-signal);
}
.lc-legend-plan::before {
  content: "";
  width: 14px;
  height: 0;
  border-top: 2px dashed rgba(204, 255, 235, 0.55);
}
.lc-note {
  margin-left: auto !important;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-signal);
}
.lc-note.is-bad { color: var(--color-text-invert); }

/* Diagramm */
.lc-plot {
  position: relative;
  height: 172px;
  margin: 0 -4px;
  border-radius: var(--radius);
  touch-action: pan-y;
  cursor: crosshair;
}
.lc-plot:focus-visible { outline: 2px solid var(--color-signal); outline-offset: 3px; }
.lc-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lc-stop-top { stop-color: var(--color-signal); stop-opacity: 0.32; }
.lc-stop-bottom { stop-color: var(--color-signal); stop-opacity: 0; }
.lc-area { fill: url(#lc-area-verlauf); }
.lc-line-ist {
  fill: none;
  stroke: var(--color-signal);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lc-line-plan {
  fill: none;
  stroke: rgba(204, 255, 235, 0.5);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
}
.lc-grid line { stroke: rgba(204, 255, 235, 0.09); stroke-width: 1; }
.lc-grid text,
.lc-axis text {
  fill: rgba(255, 255, 255, 0.55);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}
.lc-end-ist { fill: var(--color-signal); stroke: var(--color-bg-dark); stroke-width: 2; }
.lc-end-halo { fill: rgba(43, 212, 138, 0.22); }
.lc-end-plan { fill: var(--color-bg-dark); stroke: rgba(204, 255, 235, 0.7); stroke-width: 1.5; }
.lc-ends { opacity: 0; transition: opacity 0.4s ease; }
.lc-ends.is-sichtbar { opacity: 1; }
.lc-hover { opacity: 0; transition: opacity 0.15s ease; pointer-events: none; }
.lc-hover.is-sichtbar { opacity: 1; }
.lc-hover-line { stroke: rgba(204, 255, 235, 0.35); stroke-width: 1; }
.lc-hover-ist { fill: var(--color-signal); stroke: var(--color-bg-dark); stroke-width: 2.5; }
.lc-hover-plan { fill: var(--color-bg-dark); stroke: var(--color-mint); stroke-width: 1.5; }

.lc-tip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  min-width: 148px;
  padding: 9px 11px;
  border-radius: var(--radius);
  background: var(--color-mint);
  color: var(--color-bg-dark);
  font-size: 12px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  will-change: transform;
}
.lc-tip.is-sichtbar { opacity: 1; }
.lc-tip strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
}
.lc-tip-row { display: flex; justify-content: space-between; gap: 14px; }
.lc-tip-row b { font-family: var(--font-display); font-weight: 600; }
.lc-tip-diff { display: block; margin-top: 3px; font-family: var(--font-display); font-weight: 600; }
.lc-tip-diff.is-bad { color: var(--color-negative); }
.lc-tip-diff.is-good { color: var(--color-accent); }

/* Kosten-Balken: Breite über transform, damit beim Wechsel nichts neu umbricht. */
.lc-costs-total {
  margin-left: auto !important;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-variant-numeric: tabular-nums;
}
/* Gemeinsame Spalten für alle Zeilen (subgrid): die Beschriftung bekommt so viel
   Platz wie die längste braucht, und alle Balken beginnen trotzdem an derselben Stelle. */
.lc-cost-list {
  display: grid;
  grid-template-columns: max-content minmax(40px, 1fr) auto;
  column-gap: 10px;
  row-gap: 7px;
  padding-bottom: 3px !important;
}
.lc-cost {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  font-size: 12px;
}
.lc-cost-label { color: rgba(255, 255, 255, 0.76); white-space: nowrap; }
.lc-cost-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(204, 255, 235, 0.08);
  overflow: hidden;
}
.lc-cost-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(43, 212, 138, 0.55), var(--color-signal));
  transform-origin: left center;
  transform: scaleX(var(--lc-anteil, 0));
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.lc-cost:first-child .lc-cost-fill { background: linear-gradient(90deg, rgba(204, 255, 235, 0.7), var(--color-mint)); }
.lc-cost:nth-child(2) .lc-cost-fill { transition-delay: 0.05s; }
.lc-cost:nth-child(3) .lc-cost-fill { transition-delay: 0.1s; }
.lc-cost:nth-child(4) .lc-cost-fill { transition-delay: 0.15s; }
.lc-cost:nth-child(5) .lc-cost-fill { transition-delay: 0.2s; }
.lc-cost-value {
  min-width: 7.6em;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lc-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 12px 2px 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}
.lc-foot span:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lc-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@container lc (min-width: 560px) {
  .lc-card { padding: 22px; }
  .lc-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lc-kpi-value { font-size: 20px; }
  .lc-plot { height: 188px; }
}
@container lc (max-width: 380px) {
  .lc-card { padding: 14px; border-radius: var(--radius-lg); }
  .lc-kpi { padding: 10px; }
  .lc-kpi-value { font-size: 18px; }
  .lc-seg-btn { min-width: 0; padding-inline: 10px; }
  .lc-bar { gap: 8px; }
  .lc-cost-list { column-gap: 8px; }
  .lc-cost-value { min-width: 6.4em; }
  .lc-plot { height: 156px; }
}


/* ---------- V2: Liquiditäts-Vorschau ---------- */

.ls {
  padding-block: clamp(80px, 11vw, 150px);
  background: var(--color-bg-soft);
  color: var(--color-text);
  overflow: hidden;
}
.ls p { margin: 0; }

.ls-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.ls-eyebrow { color: var(--color-accent-soft); }
.ls-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0 0 28px;
  text-wrap: balance;
}
.ls-lead {
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 34em;
}
.ls-try {
  margin-top: 18px !important;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-accent);
  max-width: 30em;
}
.ls-points {
  list-style: none;
  margin: 32px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 14px;
}
.ls-points li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.ls-points strong { font-weight: 500; color: var(--color-text); }
/* Haken aus zwei Rahmenkanten – kein Bild, keine Schriftart nötig. */
.ls-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-mint);
}
.ls-points li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 6px;
  height: 9px;
  border: solid var(--color-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Karte */
.ls-card {
  min-width: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius-lg) + 4px);
  padding: clamp(18px, 2.4vw, 32px);
  box-shadow:
    0 1px 2px rgba(19, 51, 45, 0.05),
    0 30px 60px -30px rgba(19, 51, 45, 0.22),
    0 60px 120px -60px rgba(19, 51, 45, 0.18);
}
.ls-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ls-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.ls-card-sub {
  margin-top: 2px !important;
  font-size: 13px;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.ls-badge {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Diagramm */
.ls-plot {
  position: relative;
  height: clamp(220px, 24vw, 300px);
  margin: 0 -2px;
  border-radius: var(--radius);
  touch-action: pan-y;
  cursor: crosshair;
}
.ls-plot:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; }
.ls-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ls-stop-gut-oben { stop-color: var(--color-signal); stop-opacity: 0.3; }
.ls-stop-gut-unten { stop-color: var(--color-signal); stop-opacity: 0.02; }
.ls-area-gut { fill: url(#ls-verlauf-gut); }
.ls-line-gut {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ls-area-schlecht { fill: rgba(220, 6, 10, 0.12); }
.ls-line-schlecht {
  fill: none;
  stroke: var(--color-negative);
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ls-bands rect { fill: rgba(220, 6, 10, 0.06); }
.ls-grid line { stroke: var(--color-border); stroke-width: 1; }
.ls-grid line.is-null { stroke: rgba(19, 51, 45, 0.35); }
.ls-grid text,
.ls-axis text {
  fill: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.ls-axis text.is-unter { fill: var(--color-negative); font-weight: 700; }
.ls-min-line { stroke: var(--color-negative); stroke-width: 1.5; stroke-dasharray: 6 5; }
.ls-min-label {
  fill: var(--color-negative);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  /* Weißer Rand um die Schrift, damit sie auch über der Kurve lesbar bleibt. */
  paint-order: stroke;
  stroke: var(--color-bg);
  stroke-width: 4px;
  stroke-linejoin: round;
}
.ls-dots circle { fill: var(--color-bg); stroke: var(--color-accent); stroke-width: 2; }
.ls-dots circle.is-unter { fill: var(--color-negative); stroke: var(--color-bg); stroke-width: 2; }
.ls-dots circle.is-aktiv { stroke-width: 3; }
.ls-events line { stroke: rgba(19, 51, 45, 0.3); stroke-width: 1; stroke-dasharray: 2 3; }
.ls-events text {
  fill: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
}
.ls-hover-line { stroke: rgba(19, 51, 45, 0.3); stroke-width: 1; opacity: 0; }
.ls-hover-line.is-sichtbar { opacity: 1; }

.ls-tip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 8px 11px;
  border-radius: var(--radius);
  background: var(--color-bg-dark);
  color: var(--color-text-invert);
  font-size: 12px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: 0 12px 28px -10px rgba(19, 51, 45, 0.55);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  will-change: transform;
}
.ls-tip.is-sichtbar { opacity: 1; }
.ls-tip strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.ls-tip span { display: block; color: rgba(255, 255, 255, 0.75); }
.ls-tip .ls-tip-flag { display: flex; align-items: center; gap: 6px; color: var(--color-text-invert); font-weight: 500; }
.ls-tip-flag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-negative);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

/* Meldung */
.ls-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0 22px;
  padding: 14px 16px;
  border-radius: calc(var(--radius) + 2px);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.ls-status.is-ok { background: rgba(204, 255, 235, 0.55); box-shadow: inset 0 0 0 1px rgba(43, 212, 138, 0.35); }
.ls-status.is-warnung { background: rgba(220, 6, 10, 0.06); box-shadow: inset 0 0 0 1px rgba(220, 6, 10, 0.3); }
.ls-status-icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--color-accent);
}
.ls-status-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 5px;
  height: 9px;
  border: solid var(--color-text-invert);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ls-status.is-warnung .ls-status-icon { background: var(--color-negative); }
.ls-status.is-warnung .ls-status-icon::after {
  left: 10px;
  top: 5px;
  width: 2px;
  height: 7px;
  border: 0;
  border-radius: 1px;
  background: var(--color-text-invert);
  transform: none;
  box-shadow: 0 9px 0 0 var(--color-text-invert);
}
.ls-status-main {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.ls-status.is-warnung .ls-status-main { color: var(--color-negative); }
.ls-status-detail {
  margin-top: 2px !important;
  font-size: 14px;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

/* Regler */
/* Drei Spalten mit gemeinsamem Zeilenraster (subgrid): bricht eine Beschriftung
   um, bleiben die Schieberegler trotzdem auf einer Höhe. */
.ls-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  column-gap: 28px;
  row-gap: 4px;
}
.ls-control {
  min-width: 0;
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
}
.ls-control-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  align-self: end;
  gap: 0 8px;
}
.ls-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}
.ls-out {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ls-hint {
  margin-top: 4px !important;
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-text-muted);
}

/* Schieberegler mit gefülltem Anteil. Die Füllung kommt aus --ls-fill,
   das script.js beim Bewegen setzt. */
.ls-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --ls-fill: 0%;
}
.ls-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent) var(--ls-fill), var(--color-border) var(--ls-fill));
}
.ls-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--color-border);
}
.ls-range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--color-accent);
}
.ls-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  box-shadow: 0 2px 8px rgba(19, 51, 45, 0.25);
  transition: transform 0.15s ease;
}
.ls-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  box-shadow: 0 2px 8px rgba(19, 51, 45, 0.25);
}
.ls-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.ls-range:focus { outline: none; }
.ls-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--color-bg), 0 0 0 7px var(--color-accent); }
.ls-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--color-bg), 0 0 0 7px var(--color-accent); }

@media (max-width: 1100px) {
  .ls-grid { grid-template-columns: minmax(0, 1fr); }
  .ls-intro { max-width: 720px; }
}
@media (max-width: 720px) {
  .ls-controls { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 18px; }
  .ls-control { display: block; grid-row: auto; }
  .ls-card-head { flex-wrap: wrap; }
  .ls-status { margin-bottom: 18px; }
  .ls-status-main { font-size: 15px; }
}


/* ---------- V2: Rücksicht auf Bewegungsempfindlichkeit ---------- */

@media (prefers-reduced-motion: reduce) {
  .lc-live-dot::after { animation: none; opacity: 0; }
  .lc.is-wartend .lc-card,
  .lc.is-aktiv .lc-card { opacity: 1; transform: none; transition: none; }
  .lc-seg-thumb,
  .lc-cost-fill,
  .lc-ends,
  .lc-tip,
  .lc-hover,
  .ls-status,
  .ls-tip { transition: none; }
}

/* ==========================================================================
   V2-Baustein: Scroll-Story und Vorher/Nachher
   ========================================================================== */

/* ==========================================================================
   V2: Scroll-Story (st-) und Vorher/Nachher-Schieber (vn-)
   Farben nur aus den :root-Variablen bzw. rgba()-Abstufungen davon:
   rgba(19,51,45,…) = --color-text / --color-bg-dark
   rgba(0,71,44,…)  = --color-accent
   rgba(43,212,138,…) = --color-signal
   rgba(204,255,235,…) = --color-mint
   rgba(220,6,10,…) = --color-negative
   ========================================================================== */


/* ---------- V2: Scroll-Story ---------- */

.st {
  /* Höhe einer klebenden Kopfleiste über der Bühne. In V2 ist die Leiste
     80 px hoch – beim Einbau hier auf 80px setzen. */
  --st-top: 0px;
  position: relative;
  background: var(--color-bg-soft);
  color: var(--color-text);
}

/* Ruhige Grundfassung (ohne JS / bei reduzierter Bewegung) */
.st-stage {
  padding-block: clamp(72px, 10vw, 136px);
}

.st-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.st-kicker {
  margin-bottom: clamp(16px, 2.4vw, 28px);
  line-height: 1.4;
}

.st-acts {
  list-style: none;
  display: grid;
  gap: 36px;
}

.st-act-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-accent-soft);
  margin-bottom: 10px;
}

.st-act-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-text);
  text-wrap: balance;
}

.st-act-text {
  margin-top: 14px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 34em;
  text-wrap: pretty;
}

.st-nobr { white-space: nowrap; }

.st-progress { display: none; }

/* In der Grundfassung sieht man nur das fertige Cockpit. */
.st-canvas {
  position: relative;
  display: flex;
  justify-content: center;
}
.st-glow,
.st-lines,
.st-card,
.st-hub { display: none; }


/* ----- Karten (Chaos) ----- */

.st-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 196px;
  height: 128px;
  padding: 12px 13px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 18px 40px -18px rgba(19, 51, 45, 0.28), 0 2px 6px rgba(19, 51, 45, 0.06);
  font-family: var(--font-display);
  color: var(--color-text);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Die Excel-Karte liegt im Chaos unter der BWA – ohne Anheben wäre ihr
   #BEZUG!-Warnzeichen verdeckt. Bleibt unter dem Hub (z-index 2). */
.st-card--front { z-index: 1; }

.st-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.st-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.st-icon--xls { background: var(--color-accent); color: var(--color-text-invert); }
.st-icon--pdf { background: var(--color-negative-soft); color: var(--color-negative); }
.st-icon--crm { background: var(--color-mint); color: var(--color-accent); }
.st-icon--shop { background: var(--color-bg-dark); color: var(--color-signal); font-size: 7.5px; }
.st-icon--ads { background: var(--color-bg-soft); color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-border); }
.st-icon--csv { background: var(--color-bg); color: var(--color-accent-soft); box-shadow: inset 0 0 0 1.5px var(--color-accent-soft); }
.st-icon--inv { background: var(--color-accent-soft); color: var(--color-text-invert); }

.st-card-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.st-card-name {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-card-src {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 400;
  color: var(--color-text-muted);
}

.st-warn {
  position: absolute;
  top: -11px;
  right: -10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 5px;
  border-radius: 999px;
  background: var(--color-negative);
  color: var(--color-text-invert);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 14px -4px rgba(220, 6, 10, 0.45);
}
.st-warn::before {
  content: "!";
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-text-invert);
  color: var(--color-negative);
  font-size: 9px;
}

/* Mini-Inhalte: angedeutet, aber lesbar genug, dass man die Quelle erkennt */
.st-b-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  margin-top: 10px;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}
.st-b-grid i {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  padding: 3px 5px;
  height: 21px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
  overflow: hidden;
}
.st-b-grid i:nth-child(3n + 1) { color: var(--color-text-muted); background: var(--color-bg-soft); }
.st-b-grid .is-bad { color: var(--color-negative); background: var(--color-negative-soft); font-weight: 700; }
.st-b-grid .is-mark { background: rgba(43, 212, 138, 0.22); }

.st-b-doc,
.st-b-list {
  display: grid;
  gap: 5px;
  margin-top: 12px;
}
.st-b-doc span,
.st-b-list span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  line-height: 1.3;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--color-border);
}
.st-b-doc span:last-child,
.st-b-list span:last-child { border-bottom: 0; padding-bottom: 0; }
.st-b-doc em,
.st-b-list em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.st-b-doc em:first-child,
.st-b-list em:first-child { color: var(--color-text-muted); }
.st-b-list strong {
  font-size: 9px;
  font-weight: 600;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--color-bg-soft);
  color: var(--color-text-muted);
}
.st-b-list strong.is-ok { background: var(--color-mint); color: var(--color-accent); }
.st-b-list strong.is-bad { background: var(--color-negative-soft); color: var(--color-negative); }
.st-b-list--mono span { font-size: 9.5px; letter-spacing: -0.01em; }

.st-b-kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.st-b-kanban span {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 5px;
  min-height: 62px;
  border-radius: 6px;
  background: var(--color-bg-soft);
}
.st-b-kanban em {
  font-style: normal;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--color-text-muted);
}
.st-b-kanban b {
  display: block;
  height: 9px;
  border-radius: 3px;
  background: var(--color-bg);
  box-shadow: inset 3px 0 0 var(--color-accent-soft), 0 1px 2px rgba(19, 51, 45, 0.1);
}
.st-b-kanban span:last-child b { box-shadow: inset 3px 0 0 var(--color-signal), 0 1px 2px rgba(19, 51, 45, 0.1); }

.st-b-spark { margin-top: 10px; }
.st-b-spark svg {
  display: block;
  width: 100%;
  height: 36px;
  overflow: visible;
}
.st-b-spark polyline {
  fill: none;
  stroke: var(--color-accent-soft);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.st-b-spark span {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  color: var(--color-text-muted);
}
.st-b-spark em { font-style: normal; font-variant-numeric: tabular-nums; }


/* ----- Mittelpunkt ----- */

.st-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 148px;
  height: 148px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 34px;
  background: var(--color-bg-dark);
  box-shadow: 0 30px 60px -20px rgba(19, 51, 45, 0.55), 0 0 0 10px rgba(43, 212, 138, 0.12);
  will-change: transform, opacity;
}
.st-hub img {
  width: 108px;
  height: auto;
}
.st-hub-caption {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-signal);
}
/* Pulsring zeigt: hier kommen gerade Daten an. */
.st-hub::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid var(--color-signal);
  opacity: 0;
  animation: st-puls 1.8s ease-out infinite;
  animation-play-state: paused;
}
.st-is-flowing .st-hub::after { animation-play-state: running; }

@keyframes st-puls {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}


/* ----- Linien und Datenpunkte ----- */

.st-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.st-line {
  fill: none;
  stroke: rgba(19, 51, 45, 0.28);
  stroke-width: 1.5;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1;
}
.st-flow {
  fill: none;
  stroke: var(--color-signal);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 0 26;
  animation: st-fliessen 0.9s linear infinite;
  animation-play-state: paused;
}
.st-is-flowing .st-flow { animation-play-state: running; }
.st-lines-flow {
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(43, 212, 138, 0.8));
}

/* Offset wird kleiner → Punkte wandern Richtung Pfadende = Zentrum */
@keyframes st-fliessen {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -26; }
}


/* ----- Cockpit (Akt 3) ----- */

.st-cockpit {
  width: 100%;
  max-width: 600px;
  padding: 22px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: 0 50px 100px -40px rgba(19, 51, 45, 0.35), 0 12px 30px -12px rgba(19, 51, 45, 0.12);
  font-family: var(--font-display);
  color: var(--color-text);
}

.st-cp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.st-cp-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.st-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: var(--color-mint);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 600;
}
.st-live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-signal);
}
.st-live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-signal);
  animation: st-live 2s ease-out infinite;
}
@keyframes st-live {
  0% { transform: scale(1); opacity: 0.8; }
  80%, 100% { transform: scale(3); opacity: 0; }
}

.st-cp-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.st-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--color-bg-soft);
}
.st-kpi:first-child {
  background: var(--color-bg-dark);
  color: var(--color-text-invert);
}
.st-kpi-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
}
.st-kpi:first-child .st-kpi-label { color: rgba(255, 255, 255, 0.7); }
.st-kpi-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.st-kpi-delta {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-accent-soft);
}
.st-kpi:first-child .st-kpi-delta { color: var(--color-signal); }
.st-kpi-delta.is-down { color: var(--color-negative); }

.st-cp-chart { margin-top: 18px; }
.st-cp-chart-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.st-cp-legend::before {
  content: "";
  display: inline-block;
  width: 14px;
  margin-right: 6px;
  vertical-align: middle;
  border-top: 2px dashed var(--color-accent-soft);
}
.st-cp-chart svg {
  display: block;
  width: 100%;
  height: 120px;
  overflow: visible;
}
.st-cp-grid { stroke: var(--color-border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.st-cp-plan {
  stroke: var(--color-accent-soft);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  vector-effect: non-scaling-stroke;
  opacity: 0.6;
}
.st-stop-top { stop-color: var(--color-signal); stop-opacity: 0.35; }
.st-stop-bottom { stop-color: var(--color-signal); stop-opacity: 0; }
.st-cp-line {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1 2;
}
.st-cp-dot {
  fill: var(--color-signal);
  stroke: var(--color-bg);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.st-cp-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--color-text-muted);
}
.st-cp-sources {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-accent);
}
.st-cp-sources::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--color-signal);
  vertical-align: 1px;
}


/* ----- Inszenierung (nur mit JS und ohne reduzierte Bewegung) ----- */

.st.st-is-live {
  height: 340vh;
}

.st-is-live .st-stage {
  position: sticky;
  top: var(--st-top);
  height: calc(100vh - var(--st-top));
  height: calc(100svh - var(--st-top));
  padding-block: 0;
  /* Die Bühne ist das klebende Element selbst – hier zu beschneiden
     bricht position: sticky nicht und verhindert seitlichen Überstand. */
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 50%, rgba(204, 255, 235, 0.55), rgba(204, 255, 235, 0) 45%),
    var(--color-bg-soft);
}

.st-is-live .st-inner {
  height: 100%;
}

.st-is-live .st-acts {
  display: grid;
  gap: 0;
}
/* Alle drei Texte liegen übereinander; nur der aktive ist sichtbar.
   Bewusst ohne visibility: hidden, damit Screenreader alle drei lesen. */
.st-is-live .st-act {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.st-is-live .st-act.is-active {
  opacity: 1;
  transform: none;
  transition-delay: 0.08s;
}
.st-is-live .st-act-num { display: none; }
.st-is-live .st-act-title {
  font-size: clamp(34px, 4.4vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.st-is-live .st-act-text { margin-top: 22px; }

.st-is-live .st-progress {
  display: flex;
  gap: 10px;
  margin-top: clamp(28px, 4vw, 56px);
}
.st-step {
  display: grid;
  gap: 9px;
  width: 92px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: rgba(19, 51, 45, 0.4);
  transition: color 0.3s ease;
}
.st-step.is-active { color: var(--color-text); }
.st-step-bar {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: rgba(19, 51, 45, 0.12);
  overflow: hidden;
}
.st-step-fill {
  display: block;
  height: 100%;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.st-is-live .st-canvas {
  display: block;
  height: min(720px, calc(100% - 64px));
}
/* Punktraster als ruhiger technischer Grund. Eigene Ebene, damit die
   weiche Maske nur das Raster ausblendet, nicht die Karten. */
.st-is-live .st-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(19, 51, 45, 0.14) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 70%);
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 70%);
}

.st-is-live .st-glow {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 212, 138, 0.28), rgba(204, 255, 235, 0) 65%);
  opacity: 0;
  will-change: transform, opacity;
}

.st-is-live .st-lines { display: block; }
.st-is-live .st-card { display: block; opacity: 0; }
/* Stapel: Karten < Hub (verschluckt die Karten) < Cockpit (wächst aus dem Hub) */
.st-is-live .st-hub { display: flex; opacity: 0; z-index: 2; }

.st-is-live .st-cockpit {
  z-index: 3;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 600px;
  opacity: 0;
  will-change: transform, opacity;
}
.st-is-live .st-kpi { will-change: transform, opacity; }


/* ----- Kleinere Bildschirme ----- */

@media (max-width: 900px) {
  .st-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .st.st-is-live { height: 300vh; }

  .st-is-live .st-inner {
    display: flex;
    flex-direction: column;
    /* sonst schrumpft die Bühne auf Inhaltsbreite 0 (alles darin ist absolut) */
    align-items: stretch;
    gap: 12px;
    padding-top: clamp(24px, 6vh, 56px);
    padding-bottom: 16px;
  }
  .st-is-live .st-copy { flex: none; }
  .st-is-live .st-kicker { margin-bottom: 10px; }
  .st-is-live .st-act-title { font-size: clamp(28px, 7.4vw, 44px); }
  .st-is-live .st-act-text { margin-top: 10px; font-size: 15.5px; line-height: 1.5; }
  .st-is-live .st-progress { margin-top: 16px; }
  .st-step { width: auto; flex: 1; max-width: 110px; font-size: 11px; gap: 6px; }

  .st-is-live .st-canvas {
    flex: 1;
    min-height: 0;
    height: auto;
  }
  .st-is-live .st-card--extra { display: none; }

  /* Schmaleres Cockpit, damit Schrift auf dem Handy nicht winzig skaliert */
  .st-is-live .st-cockpit { width: 360px; }
}

@media (max-width: 520px) {
  .st-cockpit { padding: 16px; border-radius: 16px; }
  .st-cp-title { font-size: 13.5px; }
  .st-live { font-size: 11px; padding: 4px 9px 4px 8px; }
  .st-cp-kpis { gap: 8px; margin-top: 12px; }
  .st-kpi { padding: 10px 11px; border-radius: 10px; }
  .st-kpi-label { font-size: 11px; }
  .st-kpi-value { font-size: 19px; }
  .st-kpi-delta { font-size: 10px; }
  .st-cp-chart { margin-top: 12px; }
  .st-cp-chart svg { height: 76px; }
  .st-cp-foot { font-size: 10.5px; margin-top: 10px; padding-top: 10px; }
  .st-cp-foot span:last-child { display: none; }
}

@media (max-height: 560px) and (min-width: 901px) {
  .st-is-live .st-act-text { display: none; }
}


/* ---------- V2: Vorher/Nachher-Schieber ---------- */

.vn {
  /* „Textmarker“ in der Tabelle. Die Palette hat kein Gelb – daher ein
     Leuchtgrün-Ton. Wer echtes Gelb will, ändert nur diese Zeile. */
  --vn-marker: rgba(43, 212, 138, 0.3);
  padding-block: clamp(80px, 11vw, 150px);
  background: var(--color-bg);
  color: var(--color-text);
}

.vn-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.vn-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 88px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.vn-lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 34em;
  text-wrap: pretty;
}

.vn-stage {
  --vn-pos: 50%;
  position: relative;
  aspect-ratio: 1920 / 1067;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  box-shadow: 0 60px 120px -50px rgba(19, 51, 45, 0.4), 0 20px 40px -24px rgba(19, 51, 45, 0.18);
  overflow: hidden;
  isolation: isolate;
  /* Schriftgrößen der Tabelle wachsen mit der Bühne mit (cqw) */
  container-type: inline-size;
  /* Senkrecht wischen scrollt weiter die Seite, waagerecht bewegt den Griff */
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.vn-layer {
  position: absolute;
  inset: 0;
}

.vn-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  pointer-events: none;
}

.vn-before {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 1.02cqw;
  font-weight: 400;
  line-height: 1.2;
  clip-path: inset(0 calc(100% - var(--vn-pos)) 0 0);
  /* Feine Kante, damit man die Trennung auch bei hellem Dashboard sieht */
  box-shadow: inset -1px 0 0 var(--color-border);
}

/* Titelleiste */
.vn-xl-title {
  flex: 0 0 5.4%;
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  padding: 0 1.4cqw;
  background: var(--color-accent);
  color: var(--color-text-invert);
  font-family: var(--font-display);
  font-weight: 500;
}
.vn-xl-dots { display: flex; gap: 0.5cqw; }
.vn-xl-dots i {
  width: 0.8cqw;
  height: 0.8cqw;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.vn-xl-file { flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vn-xl-save { opacity: 0.7; white-space: nowrap; }

.vn-xl-ribbon {
  flex: 0 0 5.4%;
  display: flex;
  align-items: center;
  gap: 1.8cqw;
  padding: 0 1.4cqw;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
}
.vn-xl-ribbon .is-on {
  color: var(--color-accent);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--color-accent);
  padding-block: 0.5cqw;
}
.vn-xl-warnbar {
  margin-left: auto;
  padding: 0.3cqw 0.9cqw;
  border-radius: 0.4cqw;
  background: var(--color-negative-soft);
  color: var(--color-negative);
  font-weight: 500;
}

.vn-xl-formula {
  flex: 0 0 5%;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
  overflow: hidden;
}
.vn-xl-namebox {
  flex: 0 0 8%;
  height: 100%;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--color-border);
  font-weight: 500;
}
.vn-xl-fx {
  padding: 0 1.2cqw;
  font-style: italic;
  color: var(--color-text-muted);
  border-right: 1px solid var(--color-border);
}
.vn-xl-code {
  padding-left: 1cqw;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tabellenraster */
.vn-xl-sheet {
  --vn-cols: 3.6% 9% 12% 11% 9% 11% 10% minmax(0, 1fr);
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(16, minmax(0, 1fr));
}
.vn-row {
  display: grid;
  grid-template-columns: var(--vn-cols);
  min-height: 0;
}
.vn-row i {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 0.6cqw;
  font-style: normal;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
/* Zeilennummern und Spaltenbuchstaben */
.vn-row i:first-child,
.vn-row--letters i {
  justify-content: center;
  background: var(--color-bg-soft);
  color: var(--color-text-muted);
  font-size: 0.92em;
}
.vn-row--letters i { font-weight: 500; }
.vn-span {
  grid-column: 2 / -1;
  border-right: 0 !important;
}
.vn-strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12em;
}
.vn-row--head i:not(:first-child) {
  font-weight: 700;
  background: rgba(19, 51, 45, 0.05);
}
.vn-row--sum i:not(:first-child) {
  font-weight: 700;
  border-top: 2px solid var(--color-text);
}
.vn-num { justify-content: flex-end; }
.vn-muted { color: var(--color-text-muted); font-style: italic !important; }
.vn-mark { background: var(--vn-marker); }
.vn-err {
  background: var(--color-negative-soft);
  color: var(--color-negative);
  font-weight: 700;
}
.vn-err-text { color: var(--color-negative); font-weight: 500; }
/* Excel-Kommentar-Dreieck in der Zellecke */
.vn-note { position: relative; }
.vn-note::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 0.7cqw 0.7cqw 0;
  border-color: transparent var(--color-negative) transparent transparent;
}
.vn-sel {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
  position: relative;
}

.vn-comment {
  position: absolute;
  z-index: 2;
  width: 17cqw;
  padding: 0.7cqw 0.9cqw;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-negative);
  border-radius: 0.4cqw;
  box-shadow: 0 1cqw 2.4cqw -0.8cqw rgba(19, 51, 45, 0.3);
  font-size: 0.95em;
  line-height: 1.3;
  white-space: normal;
}
.vn-comment b { font-weight: 700; }
/* Kommentare sitzen neben ihrer Zelle, ohne Fehlerwerte zu verdecken */
.vn-comment--mai { left: 45.4%; top: 44.5%; transform: rotate(-1.5deg); }
.vn-comment--sum { left: 16%; top: 86.5%; transform: rotate(1deg); }

.vn-xl-tabs {
  flex: 0 0 5.4%;
  display: flex;
  align-items: stretch;
  padding-left: 3.6%;
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  white-space: nowrap;
  overflow: hidden;
}
.vn-xl-tabs span {
  display: flex;
  align-items: center;
  padding: 0 1.3cqw;
  border-right: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.vn-xl-tabs .is-on {
  background: var(--color-bg);
  color: var(--color-accent);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--color-accent);
}
.vn-xl-plus { font-size: 1.3em; border-right: 0 !important; }

.vn-xl-status {
  flex: 0 0 4%;
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  padding: 0 1.4cqw;
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92em;
  white-space: nowrap;
  overflow: hidden;
}
.vn-xl-status .vn-err-text { color: var(--color-negative-soft); }
.vn-xl-status span:last-child { margin-left: auto; }

/* Regler: unsichtbar über der Bühne, Bedienung per Tastatur/Screenreader.
   Maus und Touch wertet script.js auf der Bühne aus. */
.vn-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.vn-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--vn-pos);
  z-index: 3;
  width: 0;
  pointer-events: none;
}
.vn-divider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.5px;
  width: 3px;
  background: var(--color-bg);
  box-shadow: 0 0 0 1px rgba(19, 51, 45, 0.12), 0 0 24px rgba(19, 51, 45, 0.25);
}

.vn-knob {
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-text-invert);
  box-shadow: 0 0 0 5px var(--color-bg), 0 14px 30px -6px rgba(0, 71, 44, 0.55);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.2s ease;
}
.vn-knob svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vn-stage:hover .vn-knob,
.vn-is-dragging .vn-knob { transform: scale(1.08); }

/* Sichtbarer Fokus, wenn der Regler per Tastatur erreicht wird */
.vn-range:focus-visible ~ .vn-divider .vn-knob {
  box-shadow: 0 0 0 5px var(--color-bg), 0 0 0 9px var(--color-signal), 0 14px 30px -6px rgba(0, 71, 44, 0.55);
  transform: scale(1.08);
}

/* Beschriftung wandert mit, bleibt aber immer ganz in der Bühne */
.vn-tags {
  position: absolute;
  z-index: 3;
  top: calc(50% + 48px);
  left: clamp(100px, var(--vn-pos), calc(100% - 100px));
  pointer-events: none;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
  white-space: nowrap;
}
.vn-tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--color-bg-dark);
  color: var(--color-text-invert);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 18px -8px rgba(19, 51, 45, 0.6);
}
.vn-tag--after {
  background: var(--color-signal);
  color: var(--color-bg-dark);
}

.vn-hint {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
}

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

@media (max-width: 900px) {
  .vn-head { grid-template-columns: minmax(0, 1fr); }
}

/* Handy: Hochformat-Bühne, weniger Spalten, größere Schrift */
@media (max-width: 640px) {
  .vn-stage { aspect-ratio: 4 / 5; border-radius: 14px; }
  .vn-after img { object-position: 0 100%; }
  .vn-before { font-size: 3.1cqw; }
  .vn-xl-title { flex-basis: 7%; }
  .vn-xl-save,
  .vn-xl-dots,
  .vn-xl-ribbon span:not(.vn-xl-warnbar):not(.is-on) { display: none; }
  .vn-xl-ribbon { flex-basis: 6.5%; }
  .vn-xl-formula { flex-basis: 6%; }
  .vn-xl-namebox { flex-basis: 14%; }
  .vn-xl-sheet { --vn-cols: 8% 16% 26% 24% minmax(0, 1fr); }
  .vn-c-c, .vn-c-e, .vn-c-g { display: none !important; }
  .vn-comment { width: 48cqw; }
  .vn-comment--mai { left: 50.5%; top: 44.5%; }
  .vn-comment--sum { left: 9%; top: 87.5%; }
  .vn-xl-tabs { flex-basis: 7%; padding-left: 0; }
  .vn-xl-status { flex-basis: 5.5%; }
  .vn-xl-status span:nth-child(2) { display: none; }
  .vn-knob { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  .vn-tags { top: calc(50% + 40px); }
  .vn-tag { font-size: 12px; padding: 5px 10px; }
}

/* ==========================================================================
   V2-Baustein: Klarheits-Check
   ========================================================================== */

/* ==========================================================================
   V2: Klarheits-Check (Präfix kc-)
   Dunkelgrüne Bühne auf hellem Grund. Alle Farben kommen aus dem :root-Block
   oder sind rgba()-Abstufungen davon (Weiß, Markengrün, Mint, Leuchtgrün).
   ========================================================================== */

.kc { padding: 128px 0; background: var(--color-bg); }

.kc [hidden] { display: none !important; }

/* Nur für Screenreader sichtbar */
.kc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.kc-buehne {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  min-height: 680px;
  padding: clamp(28px, 5.2vw, 76px);
  background: var(--color-bg-dark);
  color: var(--color-text-invert);
  border-radius: 28px;
  box-shadow:
    0 60px 120px -50px rgba(19, 51, 45, 0.6),
    0 24px 48px -32px rgba(19, 51, 45, 0.45);
}

/* Feines Cockpit-Raster, zur Mitte hin ausgeblendet */
.kc-buehne::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, rgba(255, 255, 255, 1) 10%, rgba(255, 255, 255, 0) 70%);
  mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, rgba(255, 255, 255, 1) 10%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

/* Leuchten in den Ecken */
.kc-buehne::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 92% 0%, rgba(43, 212, 138, 0.22), rgba(43, 212, 138, 0) 42%),
    radial-gradient(circle at 0% 100%, rgba(204, 255, 235, 0.08), rgba(204, 255, 235, 0) 40%);
  pointer-events: none;
}

.kc-ansicht { grid-area: 1 / 1; min-width: 0; }

/* Überschriften der Seite erben sonst Zeilenabstand 1,3 und Laufweite 0 */
.kc h2,
.kc h3,
.kc h4 { color: inherit; }

.kc :focus-visible {
  outline: 3px solid var(--color-signal);
  outline-offset: 3px;
}
.kc [tabindex="-1"]:focus { outline: none; }

/* ---------- Übergänge ---------- */

.kc-ansicht,
.kc-frage {
  transition: opacity 0.32s ease, transform 0.42s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.kc-raus { opacity: 0; transform: translateY(-12px); }
.kc-raus[data-kc-richtung="zurueck"] { transform: translateY(12px); }
.kc-rein { opacity: 0; transform: translateY(18px); transition: none; }
.kc-rein[data-kc-richtung="zurueck"] { transform: translateY(-18px); }

/* ---------- Buttons auf dunklem Grund ---------- */

.kc .btn-lg::before { content: none; }

.kc .btn-primary {
  background: var(--color-signal);
  color: var(--color-bg-dark);
  box-shadow: 0 16px 36px -14px rgba(43, 212, 138, 0.65);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.kc .btn-primary:hover {
  background: var(--color-mint);
  box-shadow: 0 20px 40px -14px rgba(204, 255, 235, 0.55);
  transform: translateY(-1px);
}
.kc .btn-lg {
  font-size: 1.0625rem;
  padding: 18px 30px;
  border-radius: 12px;
  text-align: center;
}
.kc-pfeil { display: inline-block; transition: transform 0.2s ease; }
.kc .btn:hover .kc-pfeil { transform: translateX(4px); }

.kc .btn-ghost {
  color: var(--color-text-invert);
  border-color: rgba(255, 255, 255, 0.28);
  padding: 17px 24px;
  font-size: 1rem;
  border-radius: 12px;
}
.kc .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); }

/* ---------- Start ---------- */

.kc-start {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.kc .kc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-signal);
  margin-bottom: 28px;
}

.kc-punkt {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-signal);
  box-shadow: 0 0 0 0 rgba(43, 212, 138, 0.6);
  animation: kc-puls 2.4s ease-out infinite;
}

.kc-titel {
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  max-width: 11ch;
}
.kc-titel em {
  font-style: normal;
  color: var(--color-signal);
}

.kc-lead {
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  max-width: 36ch;
  margin-bottom: 44px;
}

.kc-start-aktion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.kc-privat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
}
.kc-privat svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.kc-privat a { color: var(--color-mint); }

/* Deko-Instrument */
.kc-instrument {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px 28px 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 80px -40px rgba(19, 51, 45, 0.9);
}
.kc-instrument-kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}
.kc-instrument-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}
.kc-instrument-status .kc-punkt { width: 6px; height: 6px; }

.kc-anzeigen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}
.kc-anzeigen div {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px;
}
.kc-anzeigen dt {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
}
.kc-anzeigen dd {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: rgba(204, 255, 235, 0.55);
  letter-spacing: 0.08em;
}

/* ---------- Tacho ---------- */

.kc-tacho {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.kc-tacho svg { display: block; width: 100%; height: auto; overflow: visible; }

.kc-stop-a { stop-color: var(--color-mint); }
.kc-stop-b { stop-color: var(--color-signal); }

.kc-spur,
.kc-bogen {
  fill: none;
  stroke-width: 16;
  stroke-linecap: round;
}
.kc-spur { stroke: rgba(255, 255, 255, 0.1); }
.kc-bogen {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(43, 212, 138, 0.45));
}
.kc-bogen-deko {
  opacity: 0.55;
  stroke-dashoffset: 64;
  animation: kc-tasten 6s ease-in-out infinite;
}

.kc-marke {
  fill: var(--color-bg-dark);
  stroke: var(--color-mint);
  stroke-width: 4;
  filter: drop-shadow(0 0 8px rgba(204, 255, 235, 0.6));
}

.kc-skala line {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 2;
  stroke-linecap: round;
}
.kc-skala line.kc-grenze { stroke: rgba(204, 255, 235, 0.75); }
.kc-skala-zahl {
  fill: rgba(255, 255, 255, 0.55);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}

.kc-tacho-wert {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13%;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 7.4vw, 108px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.kc-tacho-deko .kc-tacho-wert {
  font-size: clamp(56px, 5.6vw, 84px);
  color: rgba(204, 255, 235, 0.35);
}

/* ---------- Fragen ---------- */

.kc-fragen {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 64px);
}

.kc-leiste {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.kc-navi {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.kc-navi:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--color-text-invert);
}
.kc-weiter { color: var(--color-mint); border-color: rgba(204, 255, 235, 0.45); }
/* Platz bleibt reserviert, damit der Fortschrittsbalken nicht springt */
.kc-weiter.kc-aus { visibility: hidden; }

.kc-stand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.kc-zaehler {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.75);
  font-variant-numeric: tabular-nums;
}
.kc-fortschritt {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.kc-fortschritt span {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.kc-fortschritt span::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--color-signal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.3s ease;
}
.kc-fortschritt span.ist-fertig::after { transform: scaleX(1); }
.kc-fortschritt span.ist-jetzt::after { transform: scaleX(0.4); background: var(--color-mint); }

.kc-frage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.kc-frage-titel {
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.kc-frage-hilfe {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 40ch;
}

.kc-antworten {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kc-antwort {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 76px;
  padding: 18px 20px;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.45vw, 20px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text-invert);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease;
}
.kc-antwort:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(43, 212, 138, 0.7);
  transform: translateX(4px);
  box-shadow: 0 18px 40px -24px rgba(43, 212, 138, 0.5);
}
.kc-antwort:active { transform: translateX(4px) scale(0.99); }

.kc-taste {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  transition: inherit;
}
.kc-antwort:hover .kc-taste { border-color: var(--color-signal); color: var(--color-signal); }

.kc-antwort-text { flex: 1; min-width: 0; }

.kc-haken {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.kc-haken::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 7px;
  height: 12px;
  border-right: 2.5px solid var(--color-mint);
  border-bottom: 2.5px solid var(--color-mint);
  transform: rotate(45deg) scale(0.4);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.2s ease;
}

.kc-antwort[aria-pressed="true"] {
  background: var(--color-mint);
  border-color: var(--color-mint);
  color: var(--color-bg-dark);
  box-shadow: 0 20px 44px -22px rgba(204, 255, 235, 0.6);
}
.kc-antwort[aria-pressed="true"] .kc-taste {
  background: var(--color-bg-dark);
  border-color: var(--color-bg-dark);
  color: var(--color-mint);
}
.kc-antwort[aria-pressed="true"] .kc-haken {
  background: var(--color-bg-dark);
  border-color: var(--color-bg-dark);
}
.kc-antwort[aria-pressed="true"] .kc-haken::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}
.kc-antwort[aria-pressed="true"]:focus-visible { outline-color: var(--color-signal); }

/* Frage mittig in der Bühne halten, Tipp unten rechts */
.kc-fragen .kc-frage { margin-block: auto; }
.kc-tipp {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: right;
}
/* Nur, wo es eine Tastatur mit Maus gibt */
@media (hover: none) {
  .kc-tipp { display: none; }
}

/* ---------- Ergebnis ---------- */

.kc-ergebnis {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.kc-auswertung {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 28px 28px 32px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.kc-auswertung .kc-eyebrow { margin-bottom: 20px; }

.kc-stufen {
  list-style: none;
  display: grid;
  /* 2 × 2, damit „Instrumentenflug“ nie mitten im Wort umbricht */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
  margin-top: 28px;
}
.kc-stufen li {
  position: relative;
  padding-top: 16px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s ease;
}
.kc-stufen li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.kc-stufen li.ist-aktiv { color: var(--color-text-invert); }
.kc-stufen li.ist-aktiv::before {
  background: var(--color-signal);
  box-shadow: 0 0 14px rgba(43, 212, 138, 0.6);
}
.kc-stufe-name {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}
.kc-stufe-spanne {
  display: block;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}

.kc-kicker {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-signal);
  margin-bottom: 10px;
}

.kc-ergebnis-titel {
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.kc-ergebnis-satz {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  max-width: 48ch;
  margin-bottom: 40px;
}

.kc-zwischentitel {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.kc-hebel {
  list-style: none;
  counter-reset: kc-hebel;
}
.kc-hebel li {
  counter-increment: kc-hebel;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 2px 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
/* Überschrift und Erklärung stehen beide in der Textspalte, die Nummer daneben */
.kc-hebel strong,
.kc-hebel span { grid-column: 2; }
.kc-hebel li::before {
  grid-column: 1;
  grid-row: 1 / span 2;
  content: counter(kc-hebel);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(43, 212, 138, 0.7);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-signal);
}
.kc-hebel li.ist-staerke::before {
  content: "✓";
  border-color: rgba(204, 255, 235, 0.4);
  color: var(--color-mint);
}
.kc-hebel strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
}
.kc-hebel span {
  display: block;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.74);
}

.kc-kacheln {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 0;
}
.kc-kachel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
}
.kc-kachel.ist-hinweis {
  background: rgba(204, 255, 235, 0.09);
  border-color: rgba(204, 255, 235, 0.45);
}
.kc-kachel-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 10px;
}
.kc-kachel.ist-hinweis .kc-kachel-label { color: var(--color-mint); }
.kc-kachel-wert {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}
.kc-kachel-wert strong {
  font-size: clamp(40px, 3.6vw, 54px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-signal);
  font-variant-numeric: tabular-nums;
}
.kc-kachel-fuss {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.66);
}
.kc-kachel-text {
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
}

.kc-aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.kc-aktionen-fuss {
  margin-top: 14px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.62);
}

/* Ergebnis-Inhalte erscheinen nacheinander */
.kc-ergebnis.kc-zeigt .kc-auftauchen { animation: kc-auftauchen 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.kc-ergebnis.kc-zeigt .kc-v1 { animation-delay: 0.15s; }
.kc-ergebnis.kc-zeigt .kc-v2 { animation-delay: 0.3s; }
.kc-ergebnis.kc-zeigt .kc-v3 { animation-delay: 0.5s; }
.kc-ergebnis.kc-zeigt .kc-v4 { animation-delay: 0.7s; }
.kc-ergebnis.kc-zeigt .kc-v5 { animation-delay: 0.85s; }

@keyframes kc-auftauchen {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes kc-puls {
  0% { box-shadow: 0 0 0 0 rgba(43, 212, 138, 0.6); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(43, 212, 138, 0); }
}
@keyframes kc-tasten {
  0%, 100% { stroke-dashoffset: 70; }
  50% { stroke-dashoffset: 48; }
}

/* ---------- Kleinere Bildschirme ---------- */

@media (max-width: 1024px) {
  .kc-frage,
  .kc-ergebnis { grid-template-columns: minmax(0, 1fr); }
  .kc-frage { gap: 28px; }
  .kc-frage-hilfe { max-width: 60ch; }
  .kc-auswertung { max-width: 560px; }
}

@media (max-width: 900px) {
  .kc { padding: 80px 0; }
  .kc-buehne { min-height: 0; }
  .kc-start { grid-template-columns: minmax(0, 1fr); }
  .kc-titel { max-width: 14ch; }
  .kc-instrument { max-width: 460px; }
}

@media (max-width: 640px) {
  .kc { padding: 56px 0; }
  .kc .container { padding: 0 16px; }
  .kc-buehne { border-radius: 20px; padding: 32px 20px; }
  .kc .kc-eyebrow { margin-bottom: 20px; }
  .kc-lead { margin-bottom: 32px; }
  .kc-start-aktion .btn { width: 100%; }
  .kc-instrument { padding: 18px 18px 22px; }

  .kc-leiste {
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 16px 12px;
  }
  .kc-stand { grid-column: 1 / -1; grid-row: 2; gap: 12px; }
  .kc-navi { padding: 8px 14px; }
  .kc-antwort { min-height: 64px; padding: 14px 16px; gap: 12px; }
  .kc-antwort:hover { transform: none; }
  .kc-taste { width: 28px; height: 28px; }
  .kc-haken { width: 24px; height: 24px; }
  .kc-haken::after { left: 7px; top: 3px; }
  .kc-tipp { display: none; }

  .kc-auswertung { padding: 20px 16px 24px; }
  .kc-kacheln { grid-template-columns: minmax(0, 1fr); }
  .kc-aktionen .btn { width: 100%; }
  .kc-hebel li { grid-template-columns: 32px minmax(0, 1fr); gap: 2px 12px; }
  .kc-hebel li::before { width: 28px; height: 28px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .kc *,
  .kc *::before,
  .kc *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   V2: Hinweis auf der Kontaktseite, wenn das Ergebnis übernommen wurde
   ========================================================================== */

.kc-uebernahme {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 16px;
  background: var(--color-mint);
  border: 1px solid rgba(0, 71, 44, 0.18);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-text);
}
.kc-uebernahme-symbol {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--color-accent);
}
.kc-uebernahme-symbol::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--color-text-invert);
  border-bottom: 2px solid var(--color-text-invert);
  transform: rotate(45deg);
}

/* Scroll-Story: Bühne klebt direkt unter der schwebenden Kopfleiste.
   Die Höhe kommt aus --kopf-platz im :root-Block. */
.st { --st-top: var(--kopf-platz); }

/* ==========================================================================
   Feinschliff (15.09.2026): schwebende Glas-Kopfleiste, ein Abstands-Rhythmus,
   Titelbereich mit Auftritt, Fragen in voller Breite, Handy, Unterseiten.
   Steht bewusst am Ende, damit es die älteren Regeln sauber überschreibt.
   Größen und Farben kommen aus dem :root-Block ganz oben.
   ========================================================================== */

::selection { background: var(--color-mint); color: var(--color-text); }

/* ---------- Kopfleiste: schwebende Glas-Leiste ---------- */

/* Die Leiste liegt über dem Inhalt. Wie viel Platz sie oben braucht, steht in
   --kopf-platz: Der erste Abschnitt jeder Seite rückt um diesen Wert nach
   unten, und die Bühne der Scroll-Story klebt direkt darunter. */
html { scroll-padding-top: calc(var(--kopf-platz) + 16px); }

.site-header {
  position: fixed;
  top: var(--kopf-abstand);
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 16px;
  background: none;
  color: var(--color-text);
  pointer-events: none;   /* nur die Leiste selbst ist anklickbar, nicht der Rand daneben */
}
.site-header .container.header-inner {
  position: relative;
  max-width: calc(var(--max-width) + 32px);
  height: var(--kopf-hoehe);
  min-height: 0;
  padding: 0 10px 0 24px;
  background: var(--color-glas);
  border: 1px solid var(--color-glas-rand);
  border-radius: 999px;
  box-shadow: var(--schatten-glas);
  -webkit-backdrop-filter: saturate(1.8) blur(18px);
  backdrop-filter: saturate(1.8) blur(18px);
  pointer-events: auto;
  transition: height 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header.ist-gescrollt .header-inner {
  height: calc(var(--kopf-hoehe) - 8px);
  background: var(--color-glas-dicht);
  box-shadow: var(--schatten-glas-stark);
}

.site-header .logo { display: flex; align-items: center; flex: none; }
.site-header .logo img { width: 150px; }

.site-header .nav { gap: 2px; }
.site-header .nav a {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  color: var(--color-text);
  padding: 11px 14px;
  border-radius: 999px;
}
.site-header .nav a:not(.nav-cta)::before {
  background: var(--color-glas-hover);
  border-radius: 999px;
}
.site-header .nav a.is-active { font-weight: 500; }
.site-header .nav a.is-active::before { opacity: 0; }
.site-header .nav a:not(.nav-cta):hover::before { opacity: 1; }
/* Aktiver Abschnitt: kleiner Leuchtpunkt unter dem Menüpunkt */
.site-header .nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--color-signal);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.site-header .nav a.is-active::after { opacity: 1; transform: none; }

.site-header .nav .nav-cta {
  gap: 0;   /* sonst reißt die Lücke „Dashboard-“ und „Analyse“ auseinander */
  height: 44px;
  margin-left: 10px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-invert);
  background: var(--color-bg-dark);
  border: 0;
  border-radius: 999px;
}
.site-header .nav .nav-cta:hover { background: var(--color-accent); }
.site-header .nav .nav-cta::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.2s ease;
}
.site-header .nav .nav-cta:hover::after { transform: translateX(3px); }

.site-header .nav-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-bg-dark);
}
.site-header .nav-toggle span { width: 18px; background: var(--color-text-invert); }

/* ---------- Kopfleiste: Untermenüs (seit 14.10.2026) ----------
   „Leistungen“ und „Anbindungen“ sind Knöpfe, die ein kleines Panel öffnen.
   Am Computer öffnet es sich beim Überfahren oder per Klick (aria-expanded,
   gesetzt von script.js). Im Handy-Menü klappt es per Tipp darunter auf.
   Der Punkt unter dem Menüpunkt markiert die Seite, auf der man gerade ist. */
.nav-gruppe { position: relative; }
.site-header .nav-gruppe-knopf {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
}
.site-header .nav-gruppe-knopf::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.site-header .nav-gruppe-knopf[aria-expanded="true"]::after { transform: translateY(3px) rotate(-135deg); }
.site-header .nav-gruppe-knopf:hover,
.site-header .nav-gruppe-knopf[aria-expanded="true"] { background: var(--color-glas-hover); }
.site-header .nav-gruppe-knopf:focus-visible { outline: 3px solid var(--color-signal); outline-offset: 2px; }
/* Aktuelle Seite liegt in dieser Gruppe: derselbe Leuchtpunkt wie bei den Menüpunkten */
.site-header .nav-gruppe-knopf.is-active::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--color-signal);
}
.site-header .nav a[aria-current="page"]::after { opacity: 1; transform: none; }

.site-header .nav-untermenue {
  position: absolute;
  top: 100%;
  left: -8px;
  z-index: 10;   /* eigene Ebene, damit das Hover-Feld der Links über dem Weiß liegt */
  display: grid;
  gap: 2px;
  min-width: 300px;
  margin-top: 12px;
  padding: 8px;
  background: var(--color-bg);
  border: 1px solid var(--color-glas-rand);
  border-radius: 20px;
  box-shadow: var(--schatten-glas-stark);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
/* Unsichtbare Brücke, damit das Panel beim Weg mit der Maus nicht zuklappt */
.site-header .nav-untermenue::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.site-header .nav-gruppe:hover .nav-untermenue,
.site-header .nav-gruppe-knopf[aria-expanded="true"] + .nav-untermenue {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.site-header .nav .nav-untermenue a {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  line-height: 1.2;
}
.site-header .nav .nav-untermenue a::before { border-radius: 14px; }
.site-header .nav .nav-untermenue a::after { display: none; }
.nav-untermenue strong { font-weight: 600; }
.nav-untermenue span { font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--color-text-muted); }
.site-header .nav .nav-untermenue a[aria-current="page"] { background: var(--color-mint); }

/* Zu schmal für den langen Knopf: nur „Analyse vereinbaren“ */
@media (max-width: 1250px) {
  .site-header .nav-cta-zusatz { display: none; }
}

/* Menü als schwebendes Glas-Panel unter der Leiste */
@media (max-width: 1100px) {
  .site-header .container.header-inner { padding: 0 8px 0 20px; }
  .site-header .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100svh - var(--kopf-platz) - 24px);
    overflow-y: auto;
    padding: 10px;
    background: var(--color-bg);
    border: 1px solid var(--color-glas-rand);
    border-radius: 24px;
    box-shadow: var(--schatten-glas-stark);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.3s;
  }
  .site-header .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .site-header .nav a { font-size: 19px; padding: 17px 18px; border-radius: 16px; }
  .site-header .nav a:not(.nav-cta)::before { display: block; border-radius: 16px; }
  .site-header .nav a:not(.nav-cta)::after { left: auto; right: 22px; top: 50%; bottom: auto; width: 6px; height: 6px; margin: -3px 0 0; }
  /* Als Block, damit „Kostenlose Dashboard-“ und „Analyse vereinbaren“ ein Text bleiben */
  .site-header .nav .nav-cta {
    display: block;
    height: auto;
    margin: 8px 0 0;
    padding: 17px 20px;
    font-size: 16px;
    line-height: 1.3;
    text-align: center;
    border-radius: 16px;
  }
  .site-header .nav-cta-zusatz { display: inline; }

  .site-header .nav-gruppe-knopf {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 17px 18px;
    font-size: 19px;
    border-radius: 16px;
  }
  .site-header .nav-gruppe-knopf.is-active::before { left: auto; right: 48px; top: 50%; bottom: auto; width: 6px; height: 6px; margin: -3px 0 0; }
  .site-header .nav-untermenue,
  .site-header .nav-gruppe:hover .nav-untermenue {
    position: static;
    display: none;
    min-width: 0;
    margin: 0 0 6px;
    padding: 0 0 0 10px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .site-header .nav-untermenue::before { display: none; }
  .site-header .nav-gruppe-knopf[aria-expanded="true"] + .nav-untermenue { display: grid; }
  .site-header .nav .nav-untermenue a { padding: 12px 18px; font-size: 17px; }
}

@media (max-width: 560px) {
  :root { --kopf-abstand: 10px; --kopf-hoehe: 58px; }
  .site-header { padding: 0 10px; }
  .site-header .container.header-inner { padding: 0 6px 0 18px; }
  .site-header .logo img { width: 132px; }
  .site-header .nav-toggle { width: 44px; height: 44px; }
}

/* Die ersten Abschnitte jeder Seite rücken unter der Leiste hervor */
.q-hero { padding-top: calc(var(--kopf-platz) + 64px); }
.q .v2-kontakt { padding-top: calc(var(--kopf-platz) + 72px); }

/* ---------- Abstände: ein Rhythmus für alle Abschnitte ---------- */

.q-abschnitt,
.q .v2-faq,
.q .vn,
.q .ls,
.q .kc { padding-block: var(--abschnitt-abstand); }

/* Folgen zwei Abschnitte mit gleicher Hintergrundfarbe aufeinander, zählt
   der Abstand nur einmal – sonst entstehen die großen leeren Flächen. */
.q .vn + .q-fuerwen,
.q .q-leistungen + .ls,
.q .q-methode + .kc,
.q .kc + .q-ueber { padding-top: 0; }

/* Unterseiten (Präfix us-): weiße und graue Abschnitte, gleiche Regel */
.q .us-abschnitt { padding-block: var(--abschnitt-abstand); }
.q .us-kopf + .us-abschnitt:not(.us-abschnitt-grau),
.q .us-kopf + .q-methode,
.q .us-kopf + .kc,
.q .us-abschnitt:not(.us-abschnitt-grau) + .us-abschnitt:not(.us-abschnitt-grau),
.q .us-abschnitt:not(.us-abschnitt-grau) + .q-methode,
.q .q-methode + .us-abschnitt:not(.us-abschnitt-grau),
.q .us-abschnitt-grau + .us-abschnitt-grau,
.q .us-abschnitt-grau + .v2-faq,
.q .v2-faq + .us-abschnitt-grau,
.q .ls + .us-abschnitt-grau { padding-top: 0; }


/* ---------- Titelbereich: Raster, Auftritt, Neigung, Meldungen ---------- */

/* Feines Dashboard-Raster, das zum Cockpit hin sichtbar wird */
.q-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--color-raster) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-raster) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 55% 65% at 74% 48%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 65% at 74% 48%, #000 15%, transparent 72%);
  pointer-events: none;
}
.q-hero::before { animation: q-schimmer 18s ease-in-out infinite alternate; }

/* Gestaffelter Auftritt beim Laden */
.q-hero-text > *,
.q-hero-rest > * { animation: q-auftritt 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.q-hero-text > :nth-child(2) { animation-delay: 0.08s; }
.q-hero-rest > :nth-child(1) { animation-delay: 0.16s; }
.q-hero-rest > :nth-child(2) { animation-delay: 0.24s; }
.q-hero-rest > :nth-child(3) { animation-delay: 0.32s; }
.q-marker::after { animation-delay: 0.75s; }
.q-hero-cockpit .lc { animation: q-auftritt-cockpit 1.3s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.q-hero-film { animation: q-auftritt-cockpit 1.3s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

/* Erklärfilm im Titelbereich: Vorschaubild mit Abspiel-Knopf.
   Der Knopf verschwindet, sobald der Film läuft (Klasse is-playing aus script.js). */
.video {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  box-shadow: 0 40px 100px rgba(19, 51, 45, 0.16), 0 8px 24px rgba(19, 51, 45, 0.06);
}
.video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
/* Die stumme Vorschau liegt genau über dem Film und verschwindet beim Klick */
.video-vorschau {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.video.is-playing .video-vorschau { display: none; }

/* Die ganze Fläche ist klickbar. Mitten drauf ein pulsierender Abspiel-Knopf,
   darunter "Mit Ton ansehen" und die Dauer. Ein leichter Schleier sorgt dafür,
   dass beides auf jedem Bild der Vorschau lesbar bleibt. */
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: radial-gradient(circle at center, rgba(19, 51, 45, 0.28) 0%, rgba(19, 51, 45, 0.08) 55%, rgba(19, 51, 45, 0) 80%);
  cursor: pointer;
}
.video-play-kreis {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--color-signal);
  box-shadow: 0 14px 36px rgba(19, 51, 45, 0.35);
  transition: transform 0.2s ease;
}
/* Zwei Ringe, die nacheinander nach außen laufen */
.video-play-kreis::before,
.video-play-kreis::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--color-signal);
  animation: video-ring 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  pointer-events: none;
}
.video-play-kreis::after { animation-delay: 1.2s; }
.video-play-kreis svg {
  width: 36px;
  height: 36px;
  margin-left: 5px;
  fill: var(--color-bg-dark);
}
.video-play-text {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--color-bg-dark);
  color: var(--color-bg);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(19, 51, 45, 0.25);
}
.video-play-dauer { margin-left: 6px; font-weight: 500; color: var(--color-mint); opacity: 0.75; }
.video-play:hover .video-play-kreis,
.video-play:focus-visible .video-play-kreis { transform: scale(1.08); }
.video-play:focus-visible { outline: 3px solid var(--color-signal); outline-offset: -3px; }
.video.is-playing .video-play { display: none; }
@keyframes video-ring {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(1.9); opacity: 0; }
}
@media (max-width: 560px) {
  .video-play { gap: 12px; }
  .video-play-kreis { width: 72px; height: 72px; }
  .video-play-kreis svg { width: 28px; height: 28px; margin-left: 4px; }
  .video-play-text { font-size: 13px; padding: 6px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .video-play-kreis::before,
  .video-play-kreis::after { animation: none; opacity: 0; }
}

/* Titelbereich am Computer (ab 1101 Pixel): Die Schlagzeile läuft über die
   volle Breite, darunter steht links der Film und rechts der Text mit Knöpfen
   und Zahlen. Auf Tablet und Handy steht alles untereinander, der Film
   zuletzt. */
@media (min-width: 1101px) {
  .q-hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    grid-template-areas: "kopf kopf" "film rest";
    column-gap: 56px;
    row-gap: 48px;
    align-items: center;
  }
  .q-hero-text { grid-area: kopf; }
  .q-hero-titel { margin-bottom: 0; }
  .q-hero-film { grid-area: film; }
  .q-hero-rest { grid-area: rest; }
  .q-hero-lead { font-size: 20px; max-width: none; }
  .q-fakten { gap: 8px 32px; margin-top: 40px; }
}
@media (max-width: 1100px) {
  .q-hero-grid { row-gap: 0; }
  .q-hero-film { margin-top: 56px; }
}

/* Neigung zur Maus – script.js setzt --neigung-x / --neigung-y */
.q-hero-cockpit {
  position: relative;
  transform: perspective(1800px) rotateX(var(--neigung-x, 0deg)) rotateY(var(--neigung-y, 0deg));
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Beispiel-Meldungen, die nacheinander neben dem Cockpit auftauchen */
.q-meldungen { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.q-meldung {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin: 0;
  padding: 8px 14px 8px 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
  white-space: nowrap;
  background: var(--color-glas-panel);
  border: 1px solid var(--color-glas-rand);
  border-radius: 14px;
  box-shadow: var(--schatten-glas-stark);
  opacity: 0;
  animation: q-meldung 12s ease-in-out infinite;
}
.q-meldung b { font-weight: 600; }
.q-meldung-marke {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 7px;
  border-radius: 9px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text-invert);
  background: var(--color-bg-dark);
}
.q-meldung-marke--gruen { color: var(--color-bg-dark); background: var(--color-signal); }
/* Sitzen auf den Rändern der Karte, damit sie keine Zahl im Cockpit verdecken */
.q-meldung:nth-child(1) { top: -60px; left: 36px; animation-delay: 1.8s; }
.q-meldung:nth-child(2) { top: 31%; right: -36px; animation-delay: 5.8s; }
.q-meldung:nth-child(3) { bottom: -24px; right: 48px; animation-delay: 9.8s; }

@media (max-width: 1250px) {
  .q-meldung:nth-child(2) { right: 12px; }
}
@media (max-width: 1100px) {
  /* Einspaltig: alle Meldungen mittig über dem Cockpit */
  .q-meldung:nth-child(n) { top: -22px; bottom: auto; left: 0; right: 0; margin-inline: auto; }
}

/* Große Knöpfe: Pfeil, der beim Überfahren ein Stück mitläuft */
.q-hero-aktionen .btn-lg::after,
.q-finale .btn-lg::after,
.q .v2-kontakt .btn-lg::after,
.q .danke .btn-lg::after {
  content: "→";
  margin-left: 2px;
  transition: transform 0.2s ease;
}
.q-hero-aktionen .btn-lg:hover::after,
.q-finale .btn-lg:hover::after,
.q .v2-kontakt .btn-lg:hover::after,
.q .danke .btn-lg:hover::after { transform: translateX(4px); }

@keyframes q-auftritt {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes q-auftritt-cockpit {
  from { opacity: 0; transform: perspective(1600px) rotateX(16deg) translateY(56px) scale(0.95); }
  to { opacity: 1; transform: none; }
}
@keyframes q-schimmer {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6%, 7%, 0) scale(1.12); }
}
@keyframes q-meldung {
  0% { opacity: 0; transform: translateY(12px) scale(0.96); }
  4%, 27% { opacity: 1; transform: none; }
  33%, 100% { opacity: 0; transform: translateY(-8px) scale(0.98); }
}

/* ---------- Leistungen: Lichtkegel folgt der Maus ---------- */

.q-kachel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--licht-x, 50%) var(--licht-y, 50%), var(--color-licht), transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.q-kachel:hover::after { opacity: 1; }

/* ---------- Fragen: zwei Spalten in voller Breite ---------- */

.q-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "kopf liste"
    "hilfe liste";
  gap: 32px clamp(48px, 7vw, 120px);
  align-items: start;
}
.q-faq-kopf { grid-area: kopf; }
.q-faq-grid .faq-list { grid-area: liste; }
.q-faq-hilfe { grid-area: hilfe; }

.q .v2-faq .q-faq-kopf h2 { font-size: clamp(34px, 3.6vw, 52px); max-width: 16ch; margin-bottom: 0; }
.q-faq-hilfe {
  padding: 28px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 24px;
}
.q-faq-hilfe p { font-size: 16px; color: var(--color-text-muted); margin-bottom: 16px; }
.q-faq-hilfe strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
}

.q .v2-faq { interpolate-size: allow-keywords; }
.q .v2-faq .faq-list {
  max-width: none;
  margin: 0;
  gap: 0;
  border-top: 1px solid var(--color-border-stark);
}
.q .v2-faq details {
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--color-border-stark);
  border-radius: 0;
}
.q .v2-faq summary {
  padding: 26px 4px;
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  transition: color 0.2s ease;
}
.q .v2-faq summary:hover { color: var(--color-accent); }
.q .v2-faq summary:focus-visible { outline: 3px solid var(--color-signal); outline-offset: 4px; border-radius: 6px; }
/* Plus-Zeichen im Kreis, wird beim Öffnen zum Kreuz */
.q .v2-faq summary::after {
  content: "";
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border-stark);
  border-radius: 50%;
  background:
    linear-gradient(var(--color-text), var(--color-text)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--color-text), var(--color-text)) center / 1.5px 12px no-repeat,
    var(--color-bg);
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.q .v2-faq details[open] summary::after {
  content: "";
  transform: rotate(45deg);
  border-color: var(--color-signal);
  background-color: var(--color-mint);
}
.q .v2-faq details p {
  margin: 0;
  padding: 0 64px 28px 4px;
  font-size: 17px;
  line-height: 1.65;
}
/* Weiches Aufklappen, wo der Browser es kann (sonst springt es wie bisher) */
.q .v2-faq details::details-content {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease, content-visibility 0.35s allow-discrete;
}
.q .v2-faq details[open]::details-content { height: auto; }

/* ---------- Unterseiten im V2-Look ---------- */

.q .legal,
.q .danke {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--kopf-platz) + 88px) 0 var(--abschnitt-abstand);
  background: var(--color-bg);
}
.q .legal::before,
.q .danke::before,
.q .v2-kontakt::before {
  content: "";
  position: absolute;
  top: -320px;
  right: -240px;
  width: 820px;
  height: 820px;
  background: radial-gradient(circle, var(--color-mint) 0%, transparent 62%);
  z-index: -1;
  pointer-events: none;
}
.q .v2-kontakt { position: relative; isolation: isolate; overflow: hidden; }

.q .legal .container { max-width: calc(820px + 48px); }
.q .legal h1 {
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.q .legal .legal-untertitel {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 56px;
}
.q .legal h1 + p { margin-top: 48px; }
.q .legal h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 64px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}
.q .legal .legal-untertitel + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.q .legal h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin: 32px 0 8px;
}
.q .legal p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}
.q .legal a:not(.btn) { color: var(--color-accent); }
.q .legal .luecke { margin-top: 24px; }
.q .legal .stand { margin-top: 48px; }
.q .legal .klein { margin: 28px 0 6px; padding-top: 0; border-top: 0; font-size: 18px; }
.q .legal .eng { margin-top: 48px; }
.q .legal .luecke-gross { margin-top: 56px; }

.q .danke h1 {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.q .danke-haken {
  background: var(--color-signal);
  color: var(--color-bg-dark);
  animation: q-puls 2.2s ease-in-out infinite;
}
.q .danke-schritte li {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow: var(--schatten-glas);
}
.q .danke .btn-light { background: var(--color-bg-dark); color: var(--color-text-invert); }
.q .danke .btn-light:hover { background: var(--color-accent); }

.q .v2-kontakt h1 {
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

/* ---------- Handy ---------- */

@media (max-width: 1100px) {
  .q-faq-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "kopf" "liste" "hilfe";
  }
  .q .v2-faq .q-faq-kopf h2 { max-width: 18ch; }
}

@media (max-width: 900px) {
  .q-hero { padding-top: calc(var(--kopf-platz) + 36px); }
  .q .legal,
  .q .danke { padding-top: calc(var(--kopf-platz) + 48px); }
  .q .v2-kontakt { padding-top: calc(var(--kopf-platz) + 40px); }

  .q .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .q .footer-brand,
  .q .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .q-hero-aktionen { flex-direction: column; align-items: stretch; }
  .q-hero-aktionen .btn { width: 100%; text-align: center; }
  .q-hero-aktionen .q-link-pfeil { align-self: flex-start; }


  .q .v2-faq summary { padding: 22px 0; gap: 20px; }
  .q .v2-faq details p { padding: 0 0 24px; font-size: 16px; }
  .q .v2-faq summary::after { width: 32px; height: 32px; }

  .q .legal p { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .q-hero::before,
  .q-hero-text > *,
  .q-hero-rest > *,
  .q-hero-cockpit .lc,
  .q-hero-film,
  .q .danke-haken { animation: none; }
  .q-meldung { display: none; }
  .q-hero-cockpit { transform: none; transition: none; }
  .site-header .header-inner,
  .site-header .nav,
  .q .v2-faq details::details-content { transition: none; }
}


/* Cookie-Banner auf schmalen Bildschirmen: Knöpfe untereinander */
@media (max-width: 640px) {
  .cookie-banner { padding: 20px; left: 10px; right: 10px; bottom: 10px; }
  .cookie-banner h2 { font-size: 1.25rem; }
  .cookie-fuss { display: block; }
  .cookie-actions { display: grid; gap: 10px; }
  .cookie-actions .btn { width: 100%; justify-content: center; }
  .cookie-link { display: inline-block; margin-top: 16px; }
}


/* ==========================================================================
   Unterseiten (Präfix us-), seit 14.10.2026
   Themen-, Leistungs- und Anbindungsseiten. Sie nutzen die Bausteine der
   Startseite (Fragen, Schlussblock, Ablauf, Haken-Listen) und ergänzen nur,
   was eine Textseite braucht: Kopf mit Brotkrumen, Fließtext mit mitlaufender
   Seitenspalte, Tabellen, Beispiel-Kennzahlen, Karten und den Reporting-Rechner.
   Die Abstände zwischen den Abschnitten stehen im Rhythmus-Block weiter oben.
   ========================================================================== */

/* ---------- Kopf ---------- */

.us-kopf { padding: calc(var(--kopf-platz) + 56px) 0 clamp(56px, 6vw, 88px); }
.us-pfad ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-bottom: 28px;
  list-style: none;
  font-size: 14px;
  color: var(--color-text-muted);
}
.us-pfad li + li::before { content: "›"; margin: 0 10px; color: var(--color-border-stark); }
.us-pfad a { color: var(--color-text-muted); text-decoration: none; }
.us-pfad a:hover { color: var(--color-text); text-decoration: underline; }
.us-pfad [aria-current="page"] { color: var(--color-text); }
.us-titel {
  max-width: 980px;
  margin: 12px 0 24px;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.us-kopf .q-lead { max-width: 720px; }
.us-kopf .q-hero-aktionen { margin-top: 36px; }
.us-kopf .q-fakten { margin-top: 40px; }

/* Abschnittstitel auf Unterseiten: eine Stufe kleiner als auf der Startseite */
.us-h2 {
  max-width: 900px;
  margin: 12px 0 20px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.us-h2-abstand { margin-top: 64px; }

.us-abschnitt { background: var(--color-bg); }
.us-abschnitt-grau { background: var(--color-bg-soft); }

/* ---------- Fließtext mit Seitenspalte ---------- */

.us-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}
.us-text { max-width: 760px; }
.us-text > h2 {
  margin: 64px 0 20px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--kopf-platz) + 24px);
}
.us-text > h2:first-child { margin-top: 0; }
.us-text > p,
.us-text > ul,
.us-text > ol { margin-bottom: 20px; font-size: 18px; line-height: 1.65; color: var(--color-text-muted); }
.us-text strong { color: var(--color-text); }
.us-text a:not(.btn):not(.q-link-pfeil) { color: var(--color-accent); text-underline-offset: 3px; }
.us-text .check-list li { color: var(--color-text-muted); }

.us-liste-nummern { padding-left: 24px; display: grid; gap: 12px; }

.us-seite {
  position: sticky;
  top: calc(var(--kopf-platz) + 24px);
  display: grid;
  gap: 20px;
}
.us-inhalt ol { list-style: none; display: grid; gap: 2px; margin-top: 12px; border-left: 2px solid var(--color-border); }
.us-inhalt a {
  display: block;
  padding: 6px 0 6px 16px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 15px;
  line-height: 1.35;
  color: var(--color-text-muted);
  text-decoration: none;
}
.us-inhalt a:hover { color: var(--color-text); border-left-color: var(--color-signal); }
.us-seite-kasten {
  display: grid;
  gap: 10px;
  padding: 24px;
  background: var(--color-bg-dark);
  color: var(--color-text-invert);
  border-radius: 24px;
}
.us-seite-kasten strong { font-family: var(--font-display); font-size: 18px; }
.us-seite-kasten p { font-size: 15px; color: rgba(255, 255, 255, 0.75); }
.us-seite-kasten .btn { justify-content: center; margin-top: 6px; background: var(--color-signal); color: var(--color-bg-dark); }
.us-seite-kasten .btn:hover { background: var(--color-mint); }

/* Kasten mitten im Text: der passende nächste Schritt */
.us-kasten {
  margin: 40px 0;
  padding: 28px 32px;
  background: var(--color-mint);
  border-radius: 24px;
}
.us-kasten-titel { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.us-kasten p:not(.us-kasten-titel) { font-size: 16px; color: var(--color-text); margin-bottom: 16px; }

.us-bild { margin: 8px 0 28px; }
.us-bild img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
.us-bild figcaption { margin-top: 12px; font-size: 14px; color: var(--color-text-muted); }

.us-hinweis { max-width: 760px; margin-top: 40px; padding: 24px 28px; font-size: 16px; color: var(--color-text); background: var(--color-bg-soft); border-radius: 20px; }
.us-abschnitt-grau .us-hinweis { background: var(--color-bg); }
.us-hinweis a { color: var(--color-accent); }
.us-klein { margin-top: 24px; font-size: 14px; color: var(--color-text-muted); }

/* ---------- Tabellen ---------- */

.us-tabelle-rahmen { margin: 8px 0 28px; overflow-x: auto; }
.us-tabelle-schmal { max-width: 900px; margin-top: 32px; }
.us-tabelle { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.us-tabelle th,
.us-tabelle td { padding: 14px 16px 14px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
.us-tabelle thead th { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--color-accent-soft); border-bottom: 2px solid var(--color-border-stark); }
.us-tabelle tbody th { font-family: var(--font-display); font-weight: 600; color: var(--color-text); }
.us-tabelle td { color: var(--color-text-muted); }
.us-tabelle td:last-child { color: var(--color-text); }

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

.us-beispiel { margin: 8px 0 32px; padding: 24px; background: var(--color-bg-dark); color: var(--color-text-invert); border-radius: 24px; }
.us-beispiel figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.us-beispiel-marke { padding: 2px 10px; border: 1px solid rgba(204, 255, 235, 0.3); border-radius: 999px; color: var(--color-mint); font-size: 12px; }
.us-beispiel dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.us-beispiel dl > div { padding: 16px; background: rgba(255, 255, 255, 0.06); border-radius: 16px; }
.us-beispiel dt { font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.us-beispiel-wert { margin: 6px 0 4px; font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.us-beispiel-notiz { font-size: 14px; color: var(--color-signal); }

/* ---------- Leistungen, Stufen, nummerierte Punkte ---------- */

.us-leistungen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
  list-style: none;
}
.us-leistungen li { padding: 28px; background: var(--color-bg-soft); border-radius: 24px; }
.us-abschnitt-grau .us-leistungen li { background: var(--color-bg); }
.us-leistungen h3 { font-size: 20px; margin-bottom: 8px; }
.us-leistungen p { font-size: 16px; color: var(--color-text-muted); }
.us-leistungen a { color: var(--color-accent); }
.us-nummern,
.us-stufen,
.us-vier { grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: us-nr; }
.us-nummern li::before {
  counter-increment: us-nr;
  content: "0" counter(us-nr);
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--color-signal);
}
.us-stufe-spanne { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--color-accent-soft); margin-bottom: 8px; }

/* ---------- Karten (Weiterlesen, Anbindungen) ---------- */

.us-karten {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  list-style: none;
}
.us-karte {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 28px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  color: var(--color-text);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.us-abschnitt:not(.us-abschnitt-grau) .us-karte { background: var(--color-bg-soft); border-color: transparent; }
a.us-karte:hover { transform: translateY(-2px); box-shadow: var(--schatten-glas); border-color: var(--color-signal); }
a.us-karte:focus-visible { outline: 3px solid var(--color-signal); outline-offset: 3px; }
.us-karte h3 { font-size: 22px; }
.us-karte p { flex: 1; font-size: 16px; color: var(--color-text-muted); }
.us-karte-mehr { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--color-accent); }
.us-karte-mehr::after { content: " →"; }
.us-karte-still h3 { color: var(--color-text-muted); }

/* Weiterführender Link unter einem Abschnitt der Startseite */
.us-mehr { margin-top: 40px; }

/* ---------- Ablauf auf Unterseiten ---------- */

.us-methode .q-lead { margin-bottom: 0; }

/* ---------- Über uns ---------- */

.us-abschnitt .q-ueber-grid .q-lead { color: var(--color-text); margin-bottom: 20px; }
.us-abschnitt .q-ueber-grid > div > p:not(.q-lead):not(.eyebrow) { color: var(--color-text-muted); }

.us-buero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.us-adresse { padding: 28px; font-style: normal; font-size: 17px; line-height: 1.7; background: var(--color-bg-soft); border-radius: 24px; }
.us-adresse strong { display: block; font-family: var(--font-display); font-size: 18px; }
.us-adresse a { color: var(--color-accent); }

/* ---------- Reporting-Rechner auf der Preisseite (Präfix rk-) ---------- */

.us-rechner-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.rk { padding: 32px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 24px; box-shadow: var(--schatten-glas); }
.rk-feld { display: grid; gap: 8px; margin-bottom: 20px; }
.rk-feld label { font-family: var(--font-display); font-size: 15px; font-weight: 500; }
.rk-feld input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 18px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border-stark);
  border-radius: var(--radius);
}
.rk-feld input:focus { outline: none; border-color: var(--color-accent-soft); box-shadow: 0 0 0 3px rgba(52, 101, 85, 0.15); }
.rk-ergebnis { margin-top: 8px; padding: 24px; background: var(--color-bg-dark); color: var(--color-text-invert); border-radius: 20px; }
.rk-ergebnis-label { font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.rk-ergebnis-wert { margin: 4px 0 8px; font-family: var(--font-display); font-size: clamp(36px, 4.6vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--color-signal); }
.rk-ergebnis-text { font-size: 16px; color: rgba(255, 255, 255, 0.85); }

/* ---------- Kleinere Bildschirme ---------- */

@media (max-width: 1100px) {
  .us-raster { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .us-seite { position: static; max-width: 760px; }
  .us-inhalt { display: none; }   /* auf schmalen Schirmen nur der Knopf-Kasten unter dem Text */
  .us-nummern,
  .us-stufen,
  .us-vier { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .us-kopf { padding-top: calc(var(--kopf-platz) + 36px); }
  .us-leistungen,
  .us-karten,
  .us-nummern,
  .us-stufen,
  .us-vier { grid-template-columns: minmax(0, 1fr); }
  .us-rechner-raster,
  .us-buero { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .us-text > p,
  .us-text > ul,
  .us-text > ol { font-size: 16px; }
  .us-beispiel dl { grid-template-columns: minmax(0, 1fr); }
  .us-kasten { padding: 24px; }
  .rk { padding: 24px; }
  .us-leistungen li,
  .us-karte { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .us-karte,
  .site-header .nav-untermenue,
  .site-header .nav-gruppe-knopf::after { transition: none; }
  a.us-karte:hover { transform: none; }
}

/* ==========================================================================
   Ausbau 15.10.2026: breite Untermenüs, Fußbereich mit sechs Spalten,
   Ratgeber-Artikel, Branchenkopf, Glossar, Fragen-Seite, Handy-Knopf
   ========================================================================== */

/* ---------- Untermenüs mit Spalten (Anbindungen, Für wen) ---------- */

.site-header .nav-untermenue-breit { grid-template-columns: repeat(2, minmax(250px, 1fr)); column-gap: 8px; min-width: 560px; }
.nav-spalte { display: grid; gap: 2px; align-content: start; }
.nav-spalte-titel {
  padding: 10px 14px 4px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
}
.site-header .nav .nav-untermenue a.nav-untermenue-fuss {
  grid-column: 1 / -1;
  display: block;
  margin-top: 6px;
  padding: 14px;
  border-top: 1px solid var(--color-border);
  border-radius: 0 0 14px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-accent);
}
.site-header .nav .nav-untermenue a.nav-untermenue-fuss::after { display: inline; content: " →"; position: static; width: auto; height: auto; background: none; opacity: 1; transform: none; }
/* Die Gruppe ganz rechts öffnet nach links, damit das breite Panel nicht über den Rand ragt */
.site-header .nav-gruppe:nth-of-type(3) .nav-untermenue-breit { left: auto; right: -8px; }

@media (max-width: 1100px) {
  .site-header .nav-untermenue-breit { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .site-header .nav-gruppe-knopf[aria-expanded="true"] + .nav-untermenue-breit { display: grid; }
  .nav-spalte-titel { padding: 14px 18px 4px; }
  .site-header .nav .nav-untermenue a.nav-untermenue-fuss { padding: 14px 18px; border-radius: 0; font-size: 16px; }
}

/* ---------- Fußbereich: Marke oben, darunter sechs Spalten ---------- */

.q .footer-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 48px 32px; }
.q .footer-brand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; }
.q .footer-brand img { margin-bottom: 0; }
.q .footer-brand p { max-width: 520px; }

@media (max-width: 1100px) {
  .q .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
}
@media (max-width: 900px) {
  .q .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .q .footer-grid > div:last-child { grid-column: auto; }
}
@media (max-width: 420px) {
  .q .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Ratgeber-Artikel ---------- */

.us-byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 15px; color: var(--color-text-muted); }
.us-byline img { width: 40px; height: 40px; object-fit: cover; object-position: top; border-radius: 50%; }
.us-byline strong { color: var(--color-text); font-weight: 600; }

.us-text > h3 { margin: 36px 0 12px; font-size: 22px; line-height: 1.25; }

/* Formel als eigener Block, damit sie beim Überfliegen auffällt */
.us-formel { margin: 8px 0 28px; padding: 20px 24px; border-left: 4px solid var(--color-signal); background: var(--color-bg-soft); border-radius: 0 16px 16px 0; }
.us-formel p { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--color-text); }
.us-formel .us-formel-titel { margin-bottom: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-soft); }

/* Kasten zum Autor am Ende eines Artikels */
.us-autor { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 56px; padding: 28px; border: 1px solid var(--color-border); border-radius: 24px; }
.us-autor img { width: 96px; height: 116px; object-fit: cover; border-radius: 16px; }
.us-autor-name { margin-bottom: 6px; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.us-autor p:not(.us-autor-name) { margin-bottom: 12px; font-size: 16px; color: var(--color-text-muted); }

/* Artikelkarten in der Ratgeber-Übersicht */
.us-karte-kategorie { flex: 0 0 auto !important; font-family: var(--font-display); font-size: 13px !important; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-accent-soft) !important; }

/* ---------- Branchenseiten: Beispielwerte rechts im Kopf ---------- */

.us-kopf-raster { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.us-kopf-visual .us-titel { font-size: clamp(36px, 4vw, 56px); }
.us-kopf-bild .us-beispiel { margin: 0; box-shadow: var(--schatten-glas-stark); }

/* ---------- Dashboard-Beispiele ---------- */

.us-bsp-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 15px !important; }

/* ---------- Glossar ---------- */

.us-schmal > * { max-width: 860px; }
.us-glossar { display: grid; }
.us-glossar-eintrag { padding: 24px 0; border-bottom: 1px solid var(--color-border); scroll-margin-top: calc(var(--kopf-platz) + 24px); }
.us-glossar-eintrag:first-child { padding-top: 0; }
.us-glossar dt { margin-bottom: 8px; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--color-text); }
.us-glossar dd { font-size: 17px; line-height: 1.65; color: var(--color-text-muted); }
.us-glossar dd a { margin-left: 4px; color: var(--color-accent); font-weight: 500; }
.us-glossar-eintrag:target { background: linear-gradient(90deg, var(--color-mint), transparent); }

/* ---------- Fragen-Seite ---------- */

.us-sprung { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.us-sprung a { padding: 10px 18px; font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--color-text); text-decoration: none; background: var(--color-bg-soft); border-radius: 999px; }
.us-sprung a:hover { background: var(--color-mint); }
.us-fragen-gruppe { margin-top: 56px; scroll-margin-top: calc(var(--kopf-platz) + 24px); }

/* ---------- Fester Knopf auf dem Handy ---------- */

.us-handy-knopf { display: none; }
@media (max-width: 900px) {
  .us-handy-knopf {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 40;
    display: block;
    padding: 16px 20px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: var(--color-text-invert);
    background: var(--color-accent);
    border-radius: 16px;
    box-shadow: var(--schatten-glas-stark);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .us-handy-knopf.is-sichtbar { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .us-kopf-raster { grid-template-columns: minmax(0, 1fr); }
  .us-autor { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .us-handy-knopf { transition: none; }
}

/* ---------- Startseite: Branchen-Links und Ratgeber ---------- */

.us-start-branchen { margin-top: 48px; }
.us-start-branchen p { margin-bottom: 12px; font-size: 16px; }
.us-start-branchen .us-sprung { margin-bottom: 0; }

/* Lange zusammengesetzte Wörter („Gesellschafterreporting“) dürfen auf dem
   Handy getrennt werden, sonst ragen sie über den Rand */
@media (max-width: 560px) {
  .us h1,
  .us h2,
  .us h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
}
@media (max-width: 560px) {
  /* Im Branchenkopf bleiben die vier Werte auch auf dem Handy zwei nebeneinander */
  .us-kopf-bild .us-beispiel { padding: 18px; }
  .us-kopf-bild .us-beispiel dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .us-kopf-bild .us-beispiel dl > div { padding: 14px; }
  .us-kopf-bild .us-beispiel-wert { font-size: 22px; }
  .us-kopf-bild .us-beispiel dt,
  .us-kopf-bild .us-beispiel-notiz { font-size: 13px; }
}
