/* =========================================================================
   TerraMind Premium – gemeinsames Stylesheet
   Aufgebaut auf dem "TerraMind Design System" (claude.ai/design).
   Abschnitt 1: Design-Tokens (1:1 aus dem Design-System).
   Abschnitt 2: Bausteine für die Call-Seiten (auf den Tokens aufgebaut).
   ========================================================================= */

/* Open Sans (Fließtext) + Lumios Marker (nur Schriftzug/Signatur)
   ------------------------------------------------------------------------
   Open Sans liegt bewusst LOKAL und wird NICHT von Google geladen. Ein
   @import auf fonts.googleapis.com schickt bei jedem Seitenaufruf die IP
   der Besucherin an Google in die USA – ohne Einwilligung und damit
   abmahnfähig (LG München I, 20.01.2022, 3 O 17493/20).

   Es sind die Variable Fonts von Google Fonts, Gewicht 300–800 stufenlos,
   aufgeteilt nach Zeichenbereich: 'latin' deckt Deutsch vollständig ab,
   'latin-ext' kommt nur dazu, wenn wirklich ein Sonderzeichen vorkommt.
   Open Sans steht unter der SIL Open Font License 1.1, Selbsthosten ist
   ausdrücklich erlaubt.                                                   */
@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/open-sans-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/open-sans-latin-ext.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/open-sans-latin-italic.woff2') format('woff2');
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/open-sans-latin-ext-italic.woff2') format('woff2');
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Lumios Marker';
  src: url('../fonts/LumiosMarker-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================ 1 · TOKENS ================================= */
:root {
  /* Farben */
  --color-forest: #225236;      /* Waldgrün – Primärfarbe */
  --color-forest-dark: #163a26;
  --color-leaf: #448C64;        /* Helles Grün – Icons, kleine Flächen */
  --color-leaf-light: #E7F1EB;  /* zarter Grün-Ton für Flächen/Hover */
  --color-violet: #9D3D98;      /* Akzent – sparsam! ein Keyword / ein CTA */
  --color-violet-dark: #7d3079;
  --color-soft-purple: #D8C2EC; /* helle Highlight-Boxen */
  --color-grey-100: #E8E8E8;    /* Trennlinien, leise Rahmen */
  --color-white: #FFFFFF;
  --color-ink: #1B2B23;         /* warmer Fast-Schwarz-Text */

  --surface-page: var(--color-white);
  --surface-card: var(--color-white);
  --surface-subtle: var(--color-leaf-light);
  --surface-highlight: var(--color-soft-purple);
  --surface-inverse: var(--color-forest);

  --text-primary: var(--color-ink);
  --text-brand: var(--color-forest);
  --text-accent: var(--color-violet);
  --text-on-brand: var(--color-white);
  --text-muted: #5B6B62;

  --border-subtle: var(--color-grey-100);

  /* Typografie */
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Lumios Marker', cursive;

  --fs-signature: 64px;
  --fs-display: 48px;
  --fs-h1: 36px;
  --fs-h2: 28px;
  --fs-h3: 22px;
  --fs-body-lg: 19px;
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-caption: 12px;

  --lh-tight: 1.15;
  --lh-heading: 1.25;
  --lh-body: 1.6;

  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --ls-heading: -0.01em;

  /* Abstände, Radius, Schatten, Motion */
  --space-2: 8px;  --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-soft: 0 2px 8px rgba(34,82,54,0.08);
  --shadow-card: 0 8px 24px rgba(34,82,54,0.10);
  --shadow-lifted: 0 16px 40px rgba(34,82,54,0.14);

  --ease-standard: cubic-bezier(0.4,0,0.2,1);
  --duration-fast: 150ms;
  --duration-base: 240ms;

  --container-max: 1120px;
}

/* ============================ Basis-Reset =============================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  color: var(--text-brand);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  margin: 0 0 var(--space-4);
}

a { color: var(--color-violet); text-decoration: none; }
a:hover { color: var(--color-violet-dark); text-decoration: underline; }

img { max-width: 100%; }

/* Ein Keyword in einer Headline violett hervorheben (sparsam!) */
.kw { color: var(--color-violet); }

/* Lumios Marker – nur für Schriftzug / Signatur-Momente */
.script { font-family: var(--font-script); font-weight: 400; }

/* ==================== 2 · BAUSTEINE ==================================== */

/* --- Kopfzeile mit Logo -------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: 18px 48px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-page);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header__brand { display: inline-flex; align-items: center; }
.site-header__brand img { height: 48px; width: auto; display: block; }
/* Text-Schriftzug als Fallback, solange kein Logo-Bild vorhanden ist */
.brand-wordmark { font-family: var(--font-script); font-size: 34px; color: var(--color-forest); line-height: 1; }
.site-header__nav { display: flex; gap: var(--space-6); font-size: var(--fs-body); font-weight: var(--fw-semibold); }
.site-header__nav a { color: var(--text-brand); }
.site-header__nav a:hover { color: var(--color-violet); text-decoration: none; }

/* --- Grundlayout --------------------------------------------------------- */
.wrap { max-width: var(--container-max); margin: 0 auto; padding-left: var(--space-6); padding-right: var(--space-6); }
.section { padding: var(--space-9) var(--space-6); }
.section--tight { padding: var(--space-8) var(--space-6); }
.section--subtle { background: var(--surface-subtle); }
.section--forest { background: var(--surface-inverse); color: var(--text-on-brand); }
.measure { max-width: 760px; margin-left: auto; margin-right: auto; }

.section-head { text-align: center; margin-bottom: var(--space-7); }
.section-head h2 { font-size: var(--fs-h2); margin: 0 0 var(--space-3); }
.section-head p { font-size: var(--fs-body-lg); color: var(--text-muted); margin: 0 auto; max-width: 620px; }

.block-title { font-size: var(--fs-h3); text-align: center; margin: 0 0 var(--space-2); }
.block-sub { text-align: center; font-size: var(--fs-small); color: var(--text-muted); margin: 0 0 var(--space-6); }

/* --- Hero ---------------------------------------------------------------- */
.hero { padding: var(--space-9) var(--space-6) var(--space-8); text-align: center; }
.hero__eyebrow {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-leaf);
  margin-bottom: var(--space-4);
}
.hero h1 {
  font-size: var(--fs-display);
  font-weight: var(--fw-extrabold);
  color: var(--color-forest);
  line-height: var(--lh-tight);
  margin: 0 auto var(--space-5);
  max-width: 800px;
}
.hero__lead { font-size: var(--fs-body-lg); color: var(--text-muted); max-width: 620px; margin: 0 auto; }
.hero__arrow { margin-top: var(--space-8); color: var(--color-leaf); opacity: 0.6; font-size: 26px; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: var(--fw-semibold); font-size: var(--fs-body);
  padding: 12px 24px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.btn:hover { text-decoration: none; }
.btn--primary   { background: var(--color-forest); color: var(--color-white); }
.btn--primary:hover   { background: var(--color-forest-dark); color: var(--color-white); }
.btn--cta       { background: var(--color-violet); color: var(--color-white); }
.btn--cta:hover       { background: var(--color-violet-dark); color: var(--color-white); }
.btn--secondary { background: transparent; color: var(--color-forest); border: 1.5px solid var(--color-forest); }
.btn--secondary:hover { background: var(--surface-subtle); color: var(--color-forest); }

/* --- Akkordeon (violetter Chevron, eins offen pro Gruppe) ---------------- */
.accordion-group { display: flex; flex-direction: column; gap: var(--space-3); }
.accordion {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-card);
}
.accordion__head {
  width: 100%; text-align: left; padding: 18px 20px;
  background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-body); font-size: var(--fs-body); font-weight: var(--fw-semibold);
  color: var(--text-brand);
}
.accordion__chevron { flex-shrink: 0; transition: transform var(--duration-base) var(--ease-standard); }
.accordion.is-open .accordion__chevron { transform: rotate(180deg); }
.accordion__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--duration-base) var(--ease-standard);
}
.accordion.is-open .accordion__body { grid-template-rows: 1fr; }
.accordion__body > .inner { overflow: hidden; }
.accordion__body .text {
  padding: 0 20px 18px; font-size: var(--fs-body); color: var(--text-muted); line-height: var(--lh-body);
}
.accordion__body .text strong { color: var(--text-brand); font-weight: var(--fw-semibold); }
.accordion__body .text strong.kw { color: var(--color-violet); }

/* --- Karten -------------------------------------------------------------- */
.card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
}
.card--subtle    { background: var(--surface-subtle); box-shadow: none; border-color: transparent; }
.card--highlight { background: var(--surface-highlight); box-shadow: none; border-color: transparent; }

.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.eyebrow {
  font-size: var(--fs-caption); font-weight: var(--fw-bold);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-leaf);
  margin-bottom: var(--space-3);
}
.card h3, .card .card-title { font-size: var(--fs-h3); margin: 0 0 var(--space-3); }

/* Nummerierte Schritte */
.step { display: flex; gap: var(--space-5); align-items: flex-start; }
.step__num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--radius-pill);
  background: var(--surface-subtle); color: var(--color-forest); font-weight: var(--fw-bold);
  display: flex; align-items: center; justify-content: center; font-size: var(--fs-body);
}
.step__title { font-weight: var(--fw-bold); color: var(--text-brand); margin-bottom: 4px; }

/* Highlight-Box (Soft Purple) */
.callout {
  background: var(--surface-highlight);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-primary);
}
.callout strong { color: var(--color-violet-dark); }

/* --- Flip-Karten (2×2-Matrix) – ruhig gehalten -------------------------- */
.matrix { display: grid; grid-template-columns: 56px 1fr 1fr; grid-template-rows: 36px 1fr 1fr; gap: var(--space-4); max-width: 760px; margin: 0 auto; }
.matrix__axis { display: flex; align-items: center; justify-content: center; font-size: var(--fs-caption); font-weight: var(--fw-bold); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.matrix__axis--v { writing-mode: vertical-rl; transform: rotate(180deg); }

.flipcard { cursor: pointer; height: 190px; perspective: 1000px; }
.flipcard__inner { position: relative; width: 100%; height: 100%; transition: transform var(--duration-base) var(--ease-standard); transform-style: preserve-3d; }
.flipcard.is-flipped .flipcard__inner { transform: rotateY(180deg); }
.flipcard__face {
  position: absolute; inset: 0; backface-visibility: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--border-subtle);
  background: var(--surface-card); box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: var(--space-4); text-align: center;
}
.flipcard__face--back { transform: rotateY(180deg); background: var(--surface-subtle); border-color: transparent; }
/* Kleiner Dreh-Hinweis unten rechts – zeigt, dass die Karte drehbar ist */
.flipcard__face:not(.flipcard__face--back)::after { content: '↻'; position: absolute; right: 12px; bottom: 9px; font-size: 16px; line-height: 1; color: var(--color-violet); opacity: 0.55; pointer-events: none; }
.flipcard__tag { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--text-muted); }
.flipcard__verdict { font-size: var(--fs-h3); font-weight: var(--fw-bold); color: var(--text-brand); }
.flipcard__verdict.kw { color: var(--color-violet); }
.flipcard__label { font-size: var(--fs-small); color: var(--text-muted); }
.flipcard__formats { font-family: var(--font-body); font-weight: var(--fw-bold); color: var(--text-brand); }
.flipcard__hint { font-size: var(--fs-caption); color: var(--text-muted); }

/* --- Tabs / Umschalter --------------------------------------------------- */
.tabs { display: flex; justify-content: center; gap: var(--space-3); margin-bottom: var(--space-6); flex-wrap: wrap; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* --- Referenztabelle (Markdown) & Datenbank-Tabelle --------------------- */
.ref-table { border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-card); box-shadow: var(--shadow-card); }
.ref-row { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: var(--space-5); padding: 14px 22px; border-bottom: 1px solid var(--border-subtle); align-items: center; }
.ref-row:last-child { border-bottom: 0; }
.ref-row code { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: var(--fs-small); background: var(--surface-subtle); padding: 5px 10px; border-radius: var(--radius-sm); color: var(--color-forest); white-space: pre; width: fit-content; }
.ref-row span { font-size: var(--fs-body); color: var(--text-muted); }

.db-table { border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-card); box-shadow: var(--shadow-card); }
.db-head, .db-row { display: grid; grid-template-columns: 1.2fr 1.6fr 0.8fr 1fr; gap: var(--space-3); padding: 13px 22px; }
.db-head { border-bottom: 1.5px solid var(--border-subtle); font-size: var(--fs-caption); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.db-row { border-bottom: 1px solid var(--border-subtle); font-size: var(--fs-small); color: var(--text-muted); }
.db-row:last-child { border-bottom: 0; }
.db-row.is-hit { background: var(--surface-subtle); color: var(--text-brand); font-weight: var(--fw-semibold); }

/* Mono-Codeblock (Rezepte.md-Beispiel) */
.codeblock { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: var(--fs-small); line-height: 1.9; color: var(--text-muted); }

/* Violette Abschnittsnummer (dezenter, wiederkehrender Akzent) */
.sec-num { color: var(--color-violet); font-weight: var(--fw-extrabold); }

/* Vom KI-Tool gesteuerter Bereich (heller Violett-Ton, hebt Schritte ab) */
.tool-guided { background: rgba(216, 194, 236, 0.28); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5); }

/* --- Teil-Überschrift (gliedert die Seite in große Teile) --------------- */
.part-head { text-align: center; padding: var(--space-9) var(--space-6) var(--space-5); }
.part-head__label { font-size: var(--fs-small); font-weight: var(--fw-bold); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-violet); margin-bottom: var(--space-3); }
.part-head__title { font-size: var(--fs-display); font-weight: var(--fw-extrabold); color: var(--color-forest); line-height: var(--lh-tight); margin: 0; }
.part-head__title::after { content: ''; display: block; width: 64px; height: 3px; background: var(--color-leaf); border-radius: 2px; margin: var(--space-5) auto 0; }

/* --- Ablauf-Flow (Kästen mit Pfeilen) ----------------------------------- */
.flow { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: var(--space-2); max-width: 1000px; margin: 0 auto; }
.flow__node { position: relative; flex: 1 1 190px; min-width: 175px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-7) var(--space-5) var(--space-6); text-align: center; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.flow__node::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--color-leaf); }
.flow__node--alt::before { background: var(--color-violet); }
.flow__name { font-size: var(--fs-body-lg); font-weight: var(--fw-bold); color: var(--color-forest); line-height: var(--lh-heading); }
.flow__desc { font-size: var(--fs-small); color: var(--text-muted); line-height: var(--lh-body); }
.flow__badge { align-self: center; margin-top: 4px; font-size: var(--fs-caption); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-violet-dark); background: var(--surface-highlight); padding: 3px 12px; border-radius: var(--radius-pill); }
.flow__arrow { display: flex; align-items: center; justify-content: center; color: var(--color-leaf); font-size: 26px; flex: 0 0 auto; }

/* --- Domain-Vergleich (Subdomain vs. Unterverzeichnis) ------------------ */
.domain-card { max-width: 560px; margin: 0 auto; text-align: center; }
.domain-url { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: var(--fs-h2); font-weight: var(--fw-bold); color: var(--color-forest); margin-bottom: var(--space-6); word-break: break-word; }
.domain-main { font-size: var(--fs-body-lg); font-weight: var(--fw-semibold); color: var(--text-brand); margin-bottom: var(--space-5); }
.domain-benefit { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-body); color: var(--text-primary); background: var(--surface-subtle); padding: 10px 18px; border-radius: var(--radius-pill); }
.domain-benefit__label { font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-leaf); font-size: var(--fs-caption); }

/* --- Chips (kleine Zugehörigkeits-Labels, z. B. gebündelt / extra) ------- */
.chip { display: inline-flex; align-items: center; font-size: var(--fs-caption); font-weight: var(--fw-semibold); padding: 5px 12px; border-radius: var(--radius-pill); }
.chip--in  { background: var(--surface-subtle); color: var(--color-forest); }
.chip--out { background: transparent; color: var(--text-muted); border: 1px dashed var(--border-subtle); }

/* --- Schieberegler-Rechner (Kredit-Budget) ------------------------------ */
.calc { max-width: 680px; margin: 0 auto; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-7); }
.calc__intro { text-align: center; font-size: var(--fs-small); color: var(--text-muted); margin: 0 0 var(--space-7); }
.calc__intro strong { color: var(--text-brand); font-weight: var(--fw-semibold); }
.calc__row { margin-bottom: var(--space-6); }
.calc__label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-3); gap: var(--space-4); }
.calc__label-text { font-weight: var(--fw-semibold); color: var(--text-brand); }
.calc__val { font-weight: var(--fw-bold); color: var(--color-forest); font-size: var(--fs-body-lg); white-space: nowrap; }
.calc__val small { font-weight: var(--fw-regular); color: var(--text-muted); font-size: var(--fs-small); }
.calc__slider { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: var(--radius-pill); background: var(--surface-subtle); outline: none; margin: 0; }
.calc__slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--color-forest); border: 3px solid var(--color-white); box-shadow: var(--shadow-soft); cursor: pointer; }
.calc__slider::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--color-forest); border: 3px solid var(--color-white); box-shadow: var(--shadow-soft); cursor: pointer; }
.calc__scale { display: flex; justify-content: space-between; font-size: var(--fs-caption); color: var(--text-muted); margin-top: 6px; }
.calc__result { margin-top: var(--space-7); padding-top: var(--space-6); border-top: 1px solid var(--border-subtle); }
.calc__bar { height: 16px; background: var(--surface-subtle); border-radius: var(--radius-pill); overflow: hidden; }
.calc__bar-fill { height: 100%; width: 0; background: var(--color-leaf); border-radius: var(--radius-pill); transition: width var(--duration-base) var(--ease-standard), background var(--duration-base) var(--ease-standard); }
.calc.is-over .calc__bar-fill { background: var(--color-violet); }
.calc__readout { display: flex; justify-content: space-between; align-items: baseline; margin-top: var(--space-5); flex-wrap: wrap; gap: var(--space-3); }
.calc__total { font-size: var(--fs-h2); font-weight: var(--fw-extrabold); color: var(--color-forest); }
.calc__total small { font-size: var(--fs-small); font-weight: var(--fw-regular); color: var(--text-muted); }
.calc.is-over .calc__total { color: var(--color-violet); }
.calc__status { font-size: var(--fs-body); font-weight: var(--fw-bold); }
.calc__status--ok { color: var(--color-forest); }
.calc__status--over { color: var(--color-violet); display: none; }
.calc.is-over .calc__status--ok { display: none; }
.calc.is-over .calc__status--over { display: inline; }

/* --- Merksätze (grüner Abschnitt) --------------------------------------- */
.creed { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-6); align-items: center; text-align: center; }
.creed__line { font-size: var(--fs-h3); font-weight: var(--fw-semibold); opacity: 0.95; }
.creed__rule { width: 48px; height: 2px; background: rgba(255,255,255,0.3); }
.creed__body { font-size: var(--fs-body); line-height: var(--lh-body); opacity: 0.82; max-width: 620px; }
.creed__quote {
  margin-top: var(--space-4); padding: var(--space-7) var(--space-7);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-lg);
  font-size: var(--fs-h2); font-weight: var(--fw-bold); line-height: var(--lh-heading);
}

/* --- Fußzeile ------------------------------------------------------------ */
.site-footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-4);
  padding: var(--space-7) 48px; border-top: 1px solid var(--border-subtle);
  font-size: var(--fs-small); color: var(--text-muted);
}
.site-footer .script { font-size: 28px; color: var(--color-forest); }

.para { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-muted); }
.para--center { text-align: center; max-width: 640px; margin: var(--space-5) auto 0; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 720px) {
  :root { --fs-display: 34px; --fs-h2: 24px; }
  .site-header, .site-footer { padding-left: var(--space-5); padding-right: var(--space-5); }
  .site-header__nav { display: none; }
  .section { padding: var(--space-8) var(--space-5); }
  .matrix { grid-template-columns: 40px 1fr 1fr; }
  .creed__quote { padding: var(--space-6) var(--space-5); }
}
