/* ==========================================================================
   Als Faultier zum Millionär – Stylesheet
   Grundlage: Branding- und Marketing-Guide Version 1.0 (5. Oktober 2026)

   Aufbau: 1. Schriften  2. Design-Tokens  3. Basis  4. Layout
           5. Header/Navigation  6. Hero  7. Komponenten  8. Diagramme/Tabellen
           9. Seiten-spezifisch  10. Footer  11. Responsive
   ========================================================================== */

/* 1. Schriften – lokal aus assets/fonts (Lizenzen: assets/fonts/licenses) */
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-600-800-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-400-700-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Permanent Marker";
  src: url("../fonts/permanent-marker-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 2. Design-Tokens --------------------------------------------------------- */
:root {
  /* Farbsystem laut Guide */
  --navy-950: #061632;      /* Midnight Navy: Hero, Navigation, Footer */
  --navy-800: #082652;      /* Deep Ocean: Verläufe, dunkle Karten */
  --blue-600: #064490;      /* Ocean Blue: Links, Diagramme, Infoakzente */
  --gold-400: #F5CB66;      /* Faultier Gold: Primärbuttons, wichtige Zahlen */
  --gold-600: #D2AF5C;      /* Antique Gold: Hover, Rahmen, Details */
  --sunset-500: #E06423;    /* Sunset Orange: nur sehr sparsam dekorativ */
  --background: #F7F9FC;    /* Cloud White */
  --background-alt: #EEF3F8;/* Blue Mist */
  --surface: #FFFFFF;
  --text: #101C2D;          /* Ink Navy */
  --text-muted: #5D6978;    /* Slate Blue */
  --border: #D8E1EB;        /* Soft Steel */
  --negative: #C5574A;      /* Muted Coral */

  /* Text auf dunklen Flächen */
  --on-dark: #FFFFFF;
  --on-dark-muted: #C3CEDD;

  /* Platzhalter – bewusst auffällig, damit nichts versehentlich live geht */
  --placeholder-bg: #FFF8E6;
  --placeholder-border: var(--gold-600);
  --placeholder-text: #5C4A1E;

  /* Typografie */
  --font-head: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-accent: "Permanent Marker", "Sora", cursive;

  /* Größen (Desktop ↔ Smartphone laut Guide) */
  --fs-hero: clamp(2.5rem, 1.1rem + 3.9vw, 4.5rem);      /* 40–44 px mobil, 64–72 px Desktop */
  --fs-h1: clamp(2.25rem, 0.5rem + 3.6vw, 3.25rem);       /* 36 → 52 px */
  --fs-h2: clamp(1.875rem, 1.2rem + 2.2vw, 2.75rem);      /* 30–32 → 40–44 px */
  --fs-h3: clamp(1.375rem, 1rem + 0.8vw, 1.75rem);        /* 22–24 → 26–28 px */
  --fs-lead: clamp(1.125rem, 1rem + 0.4vw, 1.25rem);      /* 18 → 20 px */
  --fs-body: clamp(1rem, 0.95rem + 0.15vw, 1.0625rem);    /* 16 → 17 px */
  --fs-label: 0.8125rem;                                  /* 13 px */
  --fs-kpi: clamp(2.125rem, 1.5rem + 2vw, 3.25rem);       /* 34–40 → 44–52 px */

  /* Formen & Abstände */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(6, 22, 50, 0.04), 0 8px 24px rgba(6, 22, 50, 0.06);
  --shadow-hover: 0 2px 4px rgba(6, 22, 50, 0.05), 0 14px 32px rgba(6, 22, 50, 0.09);
  --container: 1200px;
  --gutter: 16px;
  --section-y: clamp(48px, 7vw, 104px);
  --header-h: 76px;
}

/* 3. Basis ----------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 0.55em;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p { margin: 0 0 1em; }

a {
  color: var(--blue-600);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover { color: var(--navy-800); text-decoration-thickness: 2px; }

/* Sichtbare Tastatur-Fokuszustände */
:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible {
  outline-color: var(--gold-400);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--gold-400);
  color: var(--navy-950);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  z-index: 100;
}

.skip-link:focus { top: 10px; color: var(--navy-950); }

.tabular { font-variant-numeric: tabular-nums; }

/* 4. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }
.section--alt { background: var(--background-alt); }
.section--tight { padding: calc(var(--section-y) * 0.5) 0; }
.section--dark { background: var(--navy-950); color: var(--on-dark); }
.section--dark h2,
.section--dark h3 { color: var(--on-dark); }

.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--text-muted); font-size: var(--fs-lead); }
.section--dark .section-head p { color: var(--on-dark-muted); }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 10px;
}

.on-dark .eyebrow,
.page-hero .eyebrow,
.section--dark .eyebrow { color: var(--gold-400); }

/* Permanent Marker: nur für einzelne kurze Akzente */
.accent-script {
  font-family: var(--font-accent);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 1.35rem;
  color: var(--gold-400);
}

.lead { font-size: var(--fs-lead); color: var(--text-muted); }

.grid {
  display: grid;
  gap: 24px;
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.prose { max-width: 780px; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.35em; }

/* 5. Header / Navigation --------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Drei Spalten: Marke links | Menü exakt mittig | rechts Platz (mobil: Menübutton).
   Die linke Spalte ist mindestens so breit wie die Marke – so überschneiden sich
   Logo und Menü auch bei mittleren Breiten nie. */
.header-inner {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.header-inner .brand { grid-column: 1; justify-self: start; }
.header-inner .site-nav { grid-column: 2; justify-self: center; }
.header-inner .nav-toggle { grid-column: 3; justify-self: end; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;               /* Freiraum ≥ ¼ des Logodurchmessers */
  padding: 11px 0;
  text-decoration: none;
  color: var(--on-dark);
}

.brand:hover { color: var(--on-dark); }

/* Logo: Original, nicht verzerrt, nicht umgefärbt, ohne Schatten.
   Kreisförmiger Beschnitt entfernt nur die quadratischen Ecken der PNG-Datei – das Logo selbst ist rund. */
.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.brand-text span { display: block; color: var(--gold-400); }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  position: relative;
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--on-dark);
  font-size: 0.96rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.site-nav a:hover { color: var(--gold-400); }

/* Aktiver Menüpunkt: goldene Markierung */
.site-nav a[aria-current="page"] { color: var(--gold-400); }

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold-400);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--on-dark);
  cursor: pointer;
}

.nav-toggle:hover { border-color: var(--gold-400); }

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

/* 6. Hero (Startseite) ----------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy-950);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
  /* Seitenverhältnis des Bildes (16:9), damit das eingebrannte Schriftlogo oben links sichtbar bleibt */
  min-height: clamp(600px, 56.25vw, 820px);
  display: flex;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;   /* Faultier bleibt links */
}

/* Subtiler dunkelblauer Verlauf hinter dem Text im rechten Bildbereich */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(6, 22, 50, 0) 0%,
    rgba(6, 22, 50, 0) 38%,
    rgba(6, 22, 50, 0.55) 54%,
    rgba(6, 22, 50, 0.86) 72%,
    rgba(6, 22, 50, 0.92) 100%
  );
}

.hero-inner {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding-top: 56px;
  padding-bottom: 56px;
}

.hero-content { width: min(46%, 580px); }

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.04;
  color: var(--on-dark);
  margin-bottom: 20px;
  max-width: 11ch;           /* höchstens drei Zeilen */
}

/* Nur das Wort „Faultier“ in der Hero-Überschrift der Startseite:
   dekorative Markenschrift Permanent Marker (lokal, siehe @font-face oben).
   Größe, Farbe und Zeilenhöhe erbt das Wort unverändert von der Überschrift. */
.hero h1 .hero-title-faultier {
  font-family: var(--font-accent);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--gold-400);      /* Faultier-Gold, Kontrast auf Midnight Navy > 11:1 */
}

.hero-lead {
  font-size: var(--fs-lead);
  color: var(--on-dark-muted);
  margin-bottom: 28px;
}

.hero-lead strong { color: var(--on-dark); }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.hero-facts li {
  display: grid;
  gap: 2px;
  min-width: 132px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(6, 22, 50, 0.72);
  backdrop-filter: blur(8px);
}

.hero-facts span {
  color: var(--on-dark-muted);
  font-size: var(--fs-label);
}

.hero-facts strong {
  color: var(--on-dark);
  font-size: 0.98rem;
}

.hero-criterion-note {
  margin: 8px 0 0;
  color: var(--on-dark-muted);
  font-size: var(--fs-label);
}

.hero-panel {
  margin-top: 32px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: rgba(8, 38, 82, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero-panel .panel-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* 7. Komponenten ----------------------------------------------------------- */

/* Buttons – pillenförmig */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}

.btn:hover { text-decoration: none; }

/* Primär: Faultier Gold mit dunkelblauer Schrift */
.btn--primary { background: var(--gold-400); color: var(--navy-950); }
.btn--primary:hover { background: var(--gold-600); color: var(--navy-950); }

/* Sekundär: weiß mit blauem Rand */
.btn--secondary { background: var(--surface); border-color: var(--blue-600); color: var(--blue-600); }
.btn--secondary:hover { background: var(--background-alt); color: var(--navy-800); }

/* Sekundär auf dunklem Grund: transparent mit weißem Rand */
.btn--light { background: transparent; border-color: rgba(255, 255, 255, 0.85); color: var(--on-dark); }
.btn--light:hover { border-color: var(--gold-400); color: var(--gold-400); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Affiliate-Button: Kennzeichnung steht direkt am Button */
.affiliate-cta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ad-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--background-alt);
  color: var(--text);
  border: 1px solid var(--gold-600);
}

/* Affiliate-Textlinks: Kennzeichnung wird automatisch angehängt.
   <a href="…" class="affiliate-link" rel="sponsored noopener" target="_blank">Zum Anbieter</a> */
.affiliate-link::after {
  content: "Werbung / Affiliate-Link*";
  display: inline-block;
  margin-left: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--gold-400);
  color: var(--navy-950);
}

/* Karten */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--background-alt);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card-icon svg { width: 24px; height: 24px; }

/* Kennzahlen */
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.stat-label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--font-body);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-kpi);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  overflow-wrap: anywhere;
}

.stat--compact .stat-value { font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.875rem); }

.stat-value.is-empty,
.is-empty {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--placeholder-text);
}

.stat-note { font-size: var(--fs-label); color: var(--text-muted); margin-top: 8px; }

/* „Daten folgen“ in Beschriftungszeilen in der umgebenden Schriftgröße */
.chart-meta .is-empty,
.table caption .is-empty,
.last-updated .is-empty,
.stat-note .is-empty,
.meta .is-empty { font-size: inherit; }

/* Dunkle Kennzahlenbereiche */
.stat--dark {
  background: var(--navy-800);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.stat--dark .stat-label,
.stat--dark .stat-note { color: var(--on-dark-muted); }
.stat--dark .stat-value { color: var(--gold-400); }
.stat--dark .stat-value.is-empty,
.on-dark .is-empty,
.page-hero .is-empty,
.section--dark .is-empty,
.site-footer .is-empty { color: #F2DFA9; }

/* Positive/negative Veränderungen: Blau bzw. Coral + eindeutiges Vorzeichen */
.change { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.change--positive { color: var(--blue-600); }
.change--negative { color: var(--negative); }
.change--neutral { color: var(--text-muted); }

/* Fortschrittsanzeige */
.progress {
  height: 12px;
  background: var(--background-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--blue-600);
  border-radius: var(--radius-pill);
  width: 0;
  transition: width 0.6s ease;
}

.on-dark .progress {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.on-dark .progress-bar { background: var(--gold-400); }

/* Fortschritt zur Million: Prozentwert mittig über dem gesamten Balken,
   damit er auch bei sehr kleinem Fortschritt (z. B. 0,6 %) vollständig lesbar bleibt. */
.progress--labeled {
  position: relative;
  height: 28px;
}

.progress-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);                 /* hell: Ink Navy auf Blue Mist */
  pointer-events: none;
}

.on-dark .progress-label { color: var(--on-dark); }

/* Liegt der Wert über der gefüllten Fläche (ab ca. 40 %), Textfarbe für Kontrast umschalten */
.progress--past-label .progress-label { color: #FFFFFF; }
.on-dark .progress--past-label .progress-label { color: var(--navy-950); }

.progress-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}

.on-dark .progress-meta { color: var(--on-dark-muted); }

/* Platzhalter – deutlich sichtbar */
.placeholder {
  position: relative;
  background: var(--placeholder-bg);
  border: 2px dashed var(--placeholder-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--placeholder-text);
}

.placeholder::before {
  content: "Platzhalter";
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold-400);
  color: var(--navy-950);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.placeholder p:last-child { margin-bottom: 0; }

.placeholder-inline {
  background: var(--placeholder-bg);
  border-bottom: 2px dashed var(--placeholder-border);
  color: var(--placeholder-text);
  padding: 0 4px;
  border-radius: 3px;
}

.placeholder-image {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  text-align: center;
}

.placeholder-image::before { position: absolute; top: 14px; left: 14px; }

/* Badges / Status (neutral) */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--background-alt);
  color: var(--navy-800);
  border: 1px solid var(--border);
}

.badge--placeholder {
  background: var(--placeholder-bg);
  color: var(--placeholder-text);
  border: 1px dashed var(--placeholder-border);
}

.badge-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* Hinweis- und Transparenzbereiche */
.notice {
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue-600);
  background: var(--surface);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.97rem;
}

.notice strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  margin-bottom: 4px;
}

.notice p:last-child { margin-bottom: 0; }

/* Projektkarten */
.project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.project-teaser {
  margin: -4px 0 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.project-head { display: flex; align-items: center; gap: 14px; }
.project-head h3 { margin: 0; font-size: clamp(1.25rem, 1rem + 0.6vw, 1.5rem); }

.project-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.project-logo--empty {
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: var(--placeholder-text);
  background: var(--placeholder-bg);
  border: 1px dashed var(--placeholder-border);
}

.project-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}

.project-figures div {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 0;
}

.project-figures dt { font-size: var(--fs-label); color: var(--text-muted); font-weight: 600; }
.project-figures dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.1rem; }

.change-list { list-style: none; margin: 0; padding: 0; font-size: 0.93rem; }

.change-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}

.change-list li:last-child { border-bottom: 0; }
.change-list .label { color: var(--text-muted); }

.project-card .meta { font-size: var(--fs-label); color: var(--text-muted); }
.project-card .btn { margin-top: auto; align-self: flex-start; }

/* Zeitleiste */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 30px;
  border-left: 2px solid var(--border);
}

.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 4px solid var(--blue-600);
}

.timeline-date {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 4px;
}

/* 8. Diagramme & Tabellen -------------------------------------------------- */
.chart-figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.chart-head { margin-bottom: 18px; }
.chart-head h3 { margin-bottom: 8px; }

.chart-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  font-size: var(--fs-label);
  color: var(--text-muted);
}

.chart-meta div { display: flex; gap: 6px; }
.chart-meta dt { font-weight: 700; color: var(--text); }
.chart-meta dd { margin: 0; }

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--text);
}

.chart-legend li { display: flex; align-items: center; gap: 8px; }
.legend-swatch { width: 22px; height: 4px; border-radius: 2px; display: inline-block; }
.legend-swatch--main { background: #064490; }
.legend-swatch--compare { background: #F5CB66; }
.legend-swatch--negative { background: #C5574A; height: 10px; width: 10px; border-radius: 50%; }

.chart-figure svg { width: 100%; height: auto; }
.chart-bg { fill: #FFFFFF; }
.chart-axis { font-family: var(--font-body); font-size: 12px; fill: #5D6978; font-variant-numeric: tabular-nums; }
.chart-grid { stroke: #D8E1EB; stroke-width: 1; }
.chart-zero { stroke: #5D6978; stroke-width: 1; stroke-dasharray: 3 3; }
.chart-line { fill: none; stroke: #064490; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart-area { fill: #064490; fill-opacity: 0.07; }
.chart-compare { fill: none; stroke: #F5CB66; stroke-width: 3; stroke-dasharray: 7 5; stroke-linejoin: round; }
.chart-point--negative { fill: #C5574A; stroke: #FFFFFF; stroke-width: 2; }

.chart-empty {
  aspect-ratio: 16 / 7;
  display: grid;
  place-items: center;
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.table caption {
  text-align: left;
  padding: 16px 18px 0;
  font-size: var(--fs-label);
  color: var(--text-muted);
}

.table th,
.table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table thead th {
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table tbody tr:nth-child(even) { background: var(--background-alt); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }

/* 9. Seiten-spezifisch ----------------------------------------------------- */

/* Seitenkopf der Unterseiten: dunkelblaue Bühne mit sehr sparsamem Sunset-Licht */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 72px);
  background:
    radial-gradient(ellipse 420px 220px at 92% 110%, rgba(224, 100, 35, 0.22), transparent 70%),
    radial-gradient(ellipse 520px 260px at 80% 100%, rgba(245, 203, 102, 0.12), transparent 70%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: var(--on-dark);
}

.page-hero h1 { color: var(--on-dark); max-width: 18ch; }
.page-hero p { color: var(--on-dark-muted); max-width: 680px; font-size: var(--fs-lead); }
.page-hero .last-updated { font-size: var(--fs-label); }
.page-hero a:not(.btn) { color: var(--on-dark); }
.page-hero a:not(.btn):hover { color: var(--gold-400); }
.page-hero .badge { background: rgba(255, 255, 255, 0.1); color: var(--on-dark); border-color: rgba(255, 255, 255, 0.2); }
.page-hero .badge--placeholder { background: var(--placeholder-bg); color: var(--placeholder-text); border-color: var(--placeholder-border); }

.breadcrumb { font-size: 0.9rem; margin-bottom: 14px; color: var(--on-dark-muted); }
.breadcrumb a { color: var(--on-dark); }
.breadcrumb a:hover { color: var(--gold-400); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.about-photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy-950);
  box-shadow: var(--shadow-md);
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-intro {
  font-size: var(--fs-lead);
  color: var(--text);
}

.about-quote {
  margin: 28px 0 0;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--gold-400);
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy-800);
}

.about-path .card { height: 100%; }

.about-card-number {
  display: inline-block;
  margin-bottom: 16px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue-600);
}

.about-path-note { margin-top: 32px; }
.about-facts { margin: 0 0 28px; }
.about-mission { max-width: 780px; margin-bottom: 24px; }
.about-learning { max-width: var(--container); }

.about-rule {
  align-self: stretch;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 360px 180px at 100% 0%, rgba(245, 203, 102, 0.14), transparent 70%),
    var(--navy-800);
  border: 1px solid rgba(245, 203, 102, 0.4);
  color: var(--on-dark);
}

.about-rule .eyebrow { color: var(--gold-400); }

.about-rule p {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem);
  line-height: 1.5;
}

.last-updated { font-size: var(--fs-label); color: var(--text-muted); }

.error-hero { text-align: left; }
.error-hero .brand-logo { width: 88px; height: 88px; margin: 0 0 24px; }

/* 9b. Live-Daten aus dem Faultier Tracker ---------------------------------- */

/* Positive/negative Werte: hell = Blau, dunkel = Gold, negativ = Coral (+ Vorzeichen) */
.is-positive { color: var(--blue-600); }
.is-negative { color: var(--negative); }
.on-dark .is-positive,
.section--dark .is-positive { color: var(--gold-400); }
.table .is-positive,
.table .is-negative,
.project-figures .is-positive,
.project-figures .is-negative { font-weight: 700; }

.loading {
  margin: 0;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--text-muted);
}

.on-dark .loading,
.section--dark .loading { color: var(--on-dark-muted); }

/* Kennzahl-Kacheln auf dunklen Flächen */
.kpi {
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 22px 24px;
  min-width: 0;
}

.kpi-label {
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--on-dark-muted);
  margin-bottom: 6px;
}

.kpi-label-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.kpi-label-row .kpi-label { margin-bottom: 0; }

.metric-help {
  position: relative;
  flex: 0 0 auto;
  z-index: 5;
}

.metric-info {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -5px -5px -3px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--on-dark-muted);
  font: 700 0.72rem/1 var(--font-body);
  cursor: help;
}

.metric-info > span[aria-hidden="true"] {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.metric-info:hover,
.metric-info:focus-visible,
.metric-help.is-open .metric-info {
  color: var(--gold-400);
}

.metric-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(280px, calc(100vw - 48px));
  padding: 12px 14px;
  border: 1px solid rgba(245, 203, 102, 0.45);
  border-radius: var(--radius-sm);
  background: var(--navy-950);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  color: var(--on-dark);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

.metric-tooltip::before {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 100%;
  border: 6px solid transparent;
  border-bottom-color: rgba(245, 203, 102, 0.45);
}

.metric-tooltip a {
  display: inline-block;
  margin-top: 6px;
  color: var(--gold-400);
  font-weight: 700;
}

.metric-help:hover .metric-tooltip,
.metric-help:focus-within .metric-tooltip,
.metric-help.is-open .metric-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.kpi-value {
  font-family: var(--font-body);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--on-dark);
  overflow-wrap: anywhere;
}

.kpi-note {
  margin-top: 8px;
  font-size: var(--fs-label);
  color: var(--on-dark-muted);
  font-variant-numeric: tabular-nums;
}

.kpi .is-empty { font-size: 1rem; color: #F2DFA9; }
.kpi-note .is-empty { font-size: inherit; }

.kpi--text .kpi-value { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.375rem); }
.kpi-inline { white-space: nowrap; }

/* Größte Kennzahl */
.kpi--hero {
  background:
    radial-gradient(ellipse 360px 200px at 100% 0%, rgba(245, 203, 102, 0.1), transparent 70%),
    var(--navy-800);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kpi--hero .kpi-value {
  font-size: var(--fs-kpi);
  color: var(--gold-400);
  line-height: 1.05;
}

.kpi--hero .kpi-value.is-negative { color: var(--negative); }
.kpi--hero .kpi-value .is-empty { font-size: 1.25rem; }

.kpi-hero-label {
  margin-top: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  color: var(--on-dark);
}

.hero-value {
  font-weight: 700;
  font-size: var(--fs-kpi);
  line-height: 1.1;
  color: var(--gold-400);
  font-variant-numeric: tabular-nums;
}

.hero-value .is-empty { font-size: 1rem; }
.hero-panel .kpi-label { margin-bottom: 4px; }
.hero-panel .last-updated { margin: 0; color: var(--on-dark-muted); }

/* Gesamtüberblick (Startseite) */
.overview-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  gap: 20px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.overview-progress { margin-top: 24px; }

/* Kennzahlenbereich der Projektseiten */
.kpi-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 20px;
}

.kpi-side {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.kpi-side .kpi { display: flex; flex-direction: column; }
.kpi-side .kpi-note { margin-top: auto; padding-top: 8px; }

.kpi-money {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
}

.kpi-money div { padding: 0 16px 0 0; min-width: 0; }
.kpi-money dt { font-size: var(--fs-label); color: var(--on-dark-muted); font-weight: 600; }
.kpi-money dd {
  margin: 4px 0 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--on-dark);
  font-variant-numeric: tabular-nums;
}

.kpi-money .is-empty { font-size: 0.95rem; }

/* Wochenvergleich (Startseite) */
.week-compare-period {
  margin: -20px 0 24px;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.week-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.week-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border-top-width: 4px;
}

.week-card--strong { border-top-color: var(--gold-400); }
.week-card--weak { border-top-color: var(--navy-800); }

.week-card--skeleton {
  min-height: 300px;
  background: linear-gradient(180deg, var(--surface), var(--background-alt));
  box-shadow: none;
  border-top-width: 1px;
}

.week-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.week-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 1px var(--gold-600);
  flex-shrink: 0;
}

.week-card--weak .week-card-dot { background: var(--navy-800); box-shadow: none; }

.week-card-project {
  margin: 0;
  font-size: var(--fs-h3);
}

.week-card-project a { color: var(--text); text-decoration-color: var(--border); }
.week-card-project a:hover { color: var(--blue-600); text-decoration-color: currentColor; }
.week-card-sep { color: var(--text-muted); }

.week-card-value {
  margin-top: auto;
  font-weight: 700;
  font-size: var(--fs-kpi);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.week-card-value.is-positive { color: var(--blue-600); }
.week-card-value.is-negative { color: var(--negative); }

.week-card-note {
  margin: -6px 0 0;
  font-size: var(--fs-label);
  color: var(--text-muted);
}

.week-card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* Projektlogos: einheitliche Logo-Fläche, Logo vollständig und unverzerrt (object-fit: contain).
   Helle Fläche für dunkle Logos, dunkle Fläche für helle/weiße Logos – die Logofarben bleiben original. */
.logo-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 184px;
  height: 68px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.logo-plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.logo-plate--dark {
  background: var(--navy-950);
  border-color: var(--navy-950);
}

.logo-plate--hero {
  width: 264px;
  height: 96px;
  padding: 16px 24px;
  border-radius: 18px;
}

.page-hero .logo-plate--dark { border-color: rgba(255, 255, 255, 0.22); }
.page-hero .logo-plate--light { border-color: transparent; }

.logo-plate--initials {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-800);
}

.logo-plate--dark.logo-plate--initials { color: var(--on-dark); }

/* Projektkarten: Logo-Fläche oben, darunter Name und Status */
.project-card .project-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.project-card .project-head h3 { margin: 0 0 6px; }

/* Projektseiten */
.project-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 16px;
}

.project-hero h1 { margin: 0 0 8px; }

.page-hero .project-logo--initials {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--on-dark);
  font-size: 1.15rem;
}

.project-logo--initials {
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--background-alt);
  border: 1px solid var(--border);
  color: var(--navy-800);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.badge--muted { background: transparent; color: var(--text-muted); border-style: dashed; }
.page-hero .badge--muted { color: var(--on-dark-muted); }

.cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 28px;
}

.affiliate-note {
  margin: 0;
  max-width: 560px;
  font-size: var(--fs-label);
  line-height: 1.5;
  color: var(--text-muted);
}

.on-dark .affiliate-note,
.section--dark .affiliate-note { color: var(--on-dark-muted); }

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.content-grid .card h2 { font-size: var(--fs-h3); }
.content-grid .card ul { padding-left: 1.2em; margin: 0 0 1em; }
.content-grid .card li { margin-bottom: 0.4em; }

.result-list { margin: 0 0 12px; }

.result-list div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.result-list dt { color: var(--text-muted); }
.result-list dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.info-box {
  background: var(--background-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}

.info-box p:last-child { margin-bottom: 0; }

/* Sicherheit und Risiken – ein gemeinsamer, kompakter Abschnitt */
.risk-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 3vw, 36px);
}

.risk-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 8px;
}

.risk-columns h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.risk-columns h3 svg { width: 22px; height: 22px; color: var(--blue-600); flex-shrink: 0; }
.risk-columns ul { margin: 0; padding-left: 1.15em; }
.risk-columns li { margin-bottom: 0.5em; }

.risk-footer {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* Abschluss-CTA */
.cta-panel {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
}

.cta-panel h2 { color: var(--on-dark); font-size: var(--fs-h3); margin-bottom: 8px; }
.cta-panel p { color: var(--on-dark-muted); }
.cta-panel .cta-block { margin-top: 18px; }
.cta-panel { border: 1px solid rgba(245, 203, 102, 0.35); }

/* Projekt-CTA direkt unter den Kennzahlen: deutlich hervorgehoben, einheitlich für alle Projekte */
.cta-highlight {
  margin-top: 28px;
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 420px 220px at 100% 0%, rgba(245, 203, 102, 0.16), transparent 70%),
    var(--navy-800);
  border: 1px solid rgba(245, 203, 102, 0.45);
}

.cta-highlight-title {
  max-width: 760px;
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.75rem);
  line-height: 1.25;
  color: var(--on-dark);
}

.cta-highlight-text {
  max-width: 680px;
  margin: 0;
  color: var(--on-dark-muted);
}

.cta-highlight .cta-block { margin-top: 22px; }

.cta-disclaimer {
  margin: 16px 0 0;
  max-width: 680px;
  font-size: var(--fs-label);
  line-height: 1.5;
  color: var(--on-dark-muted);
}

.btn--large {
  min-height: 54px;
  padding: 14px 30px;
  font-size: 1.05rem;
}

/* Startdatum in Projektkarten */
.project-figures div:has(> .project-start) { display: flex; align-items: center; }
.project-figures .project-start { margin: 0; }
.project-figures .project-start .is-empty { font-size: 0.95rem; }

/* Datenstatus / Ladefehler */
.data-status {
  border: 1px solid var(--gold-600);
  border-left-width: 4px;
  background: var(--placeholder-bg);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.data-status--error { border-color: var(--negative); background: var(--surface); }
.data-status p { margin: 0; }

.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Diagramm-Ergänzungen */
.chart-marker { fill: #F5CB66; stroke: #FFFFFF; stroke-width: 2.5; }
.legend-swatch--marker { background: #F5CB66; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1px var(--gold-600); }
.chart-note { margin: 12px 0 0; font-size: var(--fs-label); color: var(--text-muted); }
.chart-empty { padding: 28px; text-align: center; background: var(--background-alt); border-radius: var(--radius-sm); color: var(--text-muted); }
.chart-empty p { margin: 0; }

/* 10. Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: var(--on-dark-muted);
  padding: clamp(48px, 6vw, 80px) 0 32px;
  font-size: 0.94rem;
}

.site-footer a { color: var(--on-dark); text-decoration-color: rgba(255, 255, 255, 0.4); }
.site-footer a:hover { color: var(--gold-400); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.footer-brand .brand-logo { width: 52px; height: 52px; }

.footer-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--on-dark);
  margin-bottom: 12px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  font-size: var(--fs-label);
  color: #A9B6C8;
}


/* Telegram-Community ------------------------------------------------------- */
.community-promo {
  background: var(--background-alt);
}

.community-promo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(30px, 5vw, 60px);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 520px 280px at 100% 0%, rgba(245, 203, 102, 0.18), transparent 70%),
    linear-gradient(155deg, var(--navy-950), var(--navy-800));
  border: 1px solid rgba(245, 203, 102, 0.35);
  box-shadow: var(--shadow-hover);
  color: var(--on-dark);
}

.community-promo-panel h2 {
  color: var(--on-dark);
}

.community-promo-panel p {
  color: var(--on-dark-muted);
}

.community-promo-copy > p {
  max-width: 720px;
  font-size: var(--fs-lead);
}

.community-note,
.community-hero-note {
  margin: 0;
  max-width: 680px;
  font-size: var(--fs-label);
  line-height: 1.5;
  color: var(--on-dark-muted);
}

.community-promo-side {
  display: grid;
  justify-items: center;
  gap: 24px;
}

.community-icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--gold-400);
  color: var(--navy-950);
  box-shadow: 0 0 0 10px rgba(245, 203, 102, 0.1);
}

.community-icon svg {
  width: 44px;
  height: 44px;
}

.community-topic-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.community-topic-list li {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  color: var(--on-dark);
  font-size: var(--fs-label);
  font-weight: 600;
}

.community-hero .btn-row {
  margin-top: 28px;
}

.community-hero-note {
  margin-top: 12px;
}

.community-benefits .card,
.community-groups .card {
  height: 100%;
}

.community-groups .card h3 {
  font-size: 1.2rem;
}

.community-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.community-steps li {
  min-width: 0;
  padding: 22px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.community-steps li > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--gold-400);
  color: var(--navy-950);
  font-weight: 800;
}

.community-steps strong {
  display: block;
  color: var(--on-dark);
  font-family: var(--font-head);
  margin-bottom: 8px;
}

.community-steps p {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.community-final-cta {
  text-align: left;
}

.community-final-cta .eyebrow {
  color: var(--gold-400);
}


/* 11. Responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-content { width: min(50%, 540px); }
}

/* Tablet: Hero-Text unter das Motiv, Bild vollständig sichtbar */
@media (max-width: 1100px) {
  .community-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .overview-board,
  .kpi-board { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .risk-columns { gap: 24px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }

  .hero { display: block; min-height: 0; }
  .hero::before { display: none; }

  .hero-media {
    position: relative;
    inset: auto;
    z-index: auto;
    aspect-ratio: 16 / 9;
  }

  .hero-media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30%;
    background: linear-gradient(180deg, rgba(6, 22, 50, 0), var(--navy-950));
  }

  .hero-inner { justify-content: flex-start; padding-top: 8px; padding-bottom: 56px; }
  .hero-content { width: 100%; max-width: 640px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-950);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 32px rgba(6, 22, 50, 0.35);
    display: none;
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    padding: 10px var(--gutter) 18px;
  }

  .site-nav a { padding: 14px 16px; font-size: 1.02rem; }

  .site-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.06);
  }

  .site-nav a[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 10px;
    bottom: 10px;
    width: 3px;
    height: auto;
  }
}

/* Smartphone: Motiv bewusst beschnitten, Faultier bleibt im Bild */
@media (max-width: 760px) {
  .community-promo-panel { grid-template-columns: 1fr; }
  .community-promo-side { justify-items: start; }
  .community-topic-list { justify-content: flex-start; }
  .community-steps { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .cta-highlight {
    margin-top: 52px;
    border-top-width: 3px;
  }

  .week-compare { grid-template-columns: 1fr; gap: 16px; }
  .week-card--skeleton { min-height: 260px; }
  .week-compare-period { margin-top: -16px; }
  .overview-grid,
  .kpi-side,
  .content-grid,
  .risk-columns { grid-template-columns: 1fr; }
  .kpi-money { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .project-hero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .logo-plate { width: 168px; height: 62px; padding: 11px 16px; }
  .logo-plate--hero { width: 224px; height: 82px; padding: 14px 20px; }
  .result-list div { flex-direction: column; gap: 2px; }
  .result-list dd { text-align: left; }
  :root { --header-h: 68px; }
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .card,
  .chart-figure { padding: 22px; }
  .stat { padding: 20px; }
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-panel { padding: 18px; }
  .hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts li { min-width: 0; }
  .hero-facts li:last-child { grid-column: 1 / -1; }
  .week-card-actions { width: 100%; }
  .week-card-button { width: 100%; }
  .brand-text { font-size: 0.92rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .project-figures { gap: 8px; }
  .project-figures div { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { transition: none !important; scroll-behavior: auto !important; }
}



/* Projektstatus: ruhige, helle Statusfarben */
.badge--active {
  background: #dcefe0;
  color: #25613b;
  border-color: #a9d5b4;
}

.badge--inactive {
  background: #f8e1cf;
  color: #8a4b20;
  border-color: #eab68d;
}

.page-hero .badge--active {
  background: #dcefe0;
  color: #25613b;
  border-color: #a9d5b4;
}

.page-hero .badge--inactive {
  background: #f8e1cf;
  color: #8a4b20;
  border-color: #eab68d;
}
