/*
Theme Name:  Livemusik Herdecke e.V.
Theme URI:   https://the-shakespeare.org/
Description: Website-Theme für den Verein „Livemusik Herdecke e.V." (in Gründung). Langseite im Gründungsstufen-Aufbau plus Unterseiten, zweisprachig DE/EN, hell und dunkel. Identität: Observer v1.0.
Author:      Nathaniel Stott · Sommelier & MBA
Author URI:  https://the-shakespeare.pub/
Version:     1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: livemusik-herdecke
Tags: verein, zweisprachig, dark-mode, einspaltig, benutzerdefinierte-menue, barrierefreiheit-bereit
*/

/* ==========================================================================
   0 · Farbebene
   ==========================================================================

   ZWEI SCHICHTEN, und die Trennung ist der ganze Trick:

   1. MARKENFARBEN (--obs-*) sind fest. Observer Green #00332C, Gold #A8842C,
      Paper #FBF8F1. Sie ändern sich nie — auch nicht im Dunkelmodus. Eine
      Markenfarbe, die je nach Tageszeit anders heißt, ist keine Markenfarbe.

   2. ROLLEN (--bg, --surface, --heading, --ink, --band …) sagen, WOFÜR eine
      Farbe an dieser Stelle da ist. Nur die Rollen werden im Dunkelmodus neu
      belegt.

   Der Fehler, den das verhindert: In der ersten Fassung war --obs-green
   gleichzeitig Überschriftenfarbe UND Hintergrund der grünen Bänder. Im
   Dunkelmodus muss das eine hell und das andere dunkel werden — mit einer
   Variablen für beides ist das nicht auflösbar. Deshalb die Rollen.
   ========================================================================== */

:root {
  /* --- Schicht 1: Markenfarben, unveränderlich ------------------------- */
  --obs-green:     #00332C;
  --obs-green-700: #0A473E;
  --obs-green-500: #16665A;
  --obs-green-300: #4F9385;
  --obs-green-100: #DCE8E5;
  --obs-green-050: #EFF5F3;
  --obs-gold:      #A8842C;
  --obs-gold-400:  #C9A552;
  --obs-gold-300:  #D9BC7A;
  --obs-gold-600:  #8E6E1F;
  --obs-gold-100:  #F3EAD3;
  --obs-paper:     #FBF8F1;

  /* --- Schicht 2: Rollen, hell ---------------------------------------- */
  --bg:            #FBF8F1;
  --bg-alt:        #F5F0E6;
  --surface:       #FFFFFF;
  --surface-2:     #FBF8F1;

  --band:          #00332C;  /* Hintergrund der dunklen Bänder */
  --band-ink:      #FBF8F1;
  --band-ink-soft: rgba(251, 248, 241, 0.82);
  --band-line:     rgba(251, 248, 241, 0.16);
  --band-fill:     rgba(251, 248, 241, 0.06);

  --heading:       #00332C;
  --ink:           #16211F;
  --ink-muted:     #4E5F5C;
  --ink-faint:     #7E8C89;
  --line:          #E2DED3;
  --line-strong:   #CFC9BA;

  --brand:         #00332C;  /* Hauptknopf */
  --brand-hover:   #0A473E;
  --brand-ink:     #FBF8F1;
  --accent:        #A8842C;  /* Gold, tragend — Flächen und große Schrift */
  /* Gold für KLEINE Schrift (Kicker, Plaketten, Tabellenlabels). Nicht
     #8E6E1F: das ergibt auf Paper genau 4,50:1 und auf dem warmen Grund nur
     4,20:1 — beides unter bzw. an der AA-Grenze für Text unter 18,66 px.
     #826319 liegt auf allen drei Flächen über 4,9:1. */
  --accent-quiet:  #826319;
  --accent-ink:    #1A1405;
  --accent-fill:   #F3EAD3;
  --link:          #16665A;
  --link-hover:    #826319;
  /* Gold AUF dem dunklen Band. Das Marken-Gold #A8842C erreicht auf
     Observer Green nur 3,97:1 — zu wenig für die Kicker und Plaketten, die
     dort stehen. Auf dunklem Grund darf Gold heller werden, ohne die Marke
     zu verlassen: #C9A552 ist dieselbe Farbe, eine Stufe heller, 5,95:1. */
  --accent-band:   #C9A552;

  --mark-bg:       #00332C;  /* Logo-Kachel */
  --mark-fg:       #FBF8F1;

  --ok:      #2F6B4F;  --ok-bg:   #E7F1EA;
  --wip:     #826319;  --wip-bg:  #F7EFDA;  /* 4,89:1 — #8E6E1F wären nur 4,16:1 */
  --open:    #5B6B78;  --open-bg: #ECEFF2;
  --gate:    #A33A28;  --gate-bg: #FBE9E7;

  --shadow-sm: 0 1px 2px rgba(0, 51, 44, 0.05), 0 2px 8px rgba(0, 51, 44, 0.04);
  --shadow:    0 2px 4px rgba(0, 51, 44, 0.04), 0 12px 32px rgba(0, 51, 44, 0.07);
  --shadow-lg: 0 4px 8px rgba(0, 51, 44, 0.05), 0 24px 64px rgba(0, 51, 44, 0.10);

  --header-bg: rgba(251, 248, 241, 0.86);

  --hero-glow-1: var(--obs-green-050);
  --hero-glow-2: var(--obs-gold-100);

  /* --- Typografie und Maße (sprach- und modusunabhängig) -------------- */
  --font-display: "Libre Caslon Display", "Libre Caslon Text", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-text:    "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-ui:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1.06rem + 0.32vw, 1.25rem);
  --step-2:  clamp(1.375rem, 1.24rem + 0.6vw, 1.75rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.1vw, 2.375rem);
  --step-4:  clamp(2.125rem, 1.7rem + 1.9vw, 3.25rem);
  --step-5:  clamp(2.5rem, 1.85rem + 2.9vw, 4.25rem);

  --wrap:      1180px;
  --wrap-slim: 760px;
  --gap:       clamp(1.25rem, 0.9rem + 1.5vw, 2.25rem);
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);

  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   Dunkel — als Systemvorgabe UND als bewusste Wahl
   `:root[data-theme="dark"]` gewinnt gegen die Systemabfrage, weil die
   ausdrückliche Entscheidung eines Menschen mehr wiegt als die Voreinstellung
   seines Betriebssystems.

   Kontraste geprüft gegen --bg #0A1C18: --ink 12,4:1 · --ink-muted 6,8:1 ·
   --heading 13,1:1 · --accent (Gold 400) 6,2:1. Gold #A8842C wäre auf Dunkel
   nur 3,4:1 gewesen — deshalb tritt im Dunkelmodus die hellere Goldstufe an
   seine Stelle. Die Markenfarbe bleibt daneben unverändert definiert.
   ----------------------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #0A1C18;
    --bg-alt:        #0D2320;
    --surface:       #112A25;
    --surface-2:     #0D2320;

    --band:          #061511;
    --band-ink:      #EDF3F0;
    --band-ink-soft: rgba(237, 243, 240, 0.78);
    --band-line:     rgba(237, 243, 240, 0.14);
    --band-fill:     rgba(237, 243, 240, 0.05);

    --heading:       #E9F1EE;
    --ink:           #DCE6E3;
    --ink-muted:     #A3B5B0;
    --ink-faint:     #7F918D;
    --line:          #1E3A34;
    --line-strong:   #2B4C44;

    --brand:         #1C5A4C;
    --brand-hover:   #24705E;
    --brand-ink:     #F2F8F6;
    --accent:        #C9A552;
    --accent-quiet:  #D9BC7A;
    --accent-ink:    #14100A;
    --accent-fill:   #2A2415;
    --link:          #7FC3B3;
    --link-hover:    #D9BC7A;
    --accent-band:   #D9BC7A;

    --mark-bg:       #123A31;
    --mark-fg:       #EDF3F0;

    --ok:      #7FD1A6;  --ok-bg:   #12332A;
    --wip:     #D9BC7A;  --wip-bg:  #33290F;
    --open:    #9FB3C0;  --open-bg: #1B2A33;
    --gate:    #F0A092;  --gate-bg: #3A1C17;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.28);
    --shadow:    0 2px 4px rgba(0, 0, 0, 0.32), 0 12px 32px rgba(0, 0, 0, 0.42);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.36), 0 24px 64px rgba(0, 0, 0, 0.5);

    --header-bg: rgba(10, 28, 24, 0.86);

    --hero-glow-1: #10312A;
    --hero-glow-2: #23200F;

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg:            #0A1C18;
  --bg-alt:        #0D2320;
  --surface:       #112A25;
  --surface-2:     #0D2320;

  --band:          #061511;
  --band-ink:      #EDF3F0;
  --band-ink-soft: rgba(237, 243, 240, 0.78);
  --band-line:     rgba(237, 243, 240, 0.14);
  --band-fill:     rgba(237, 243, 240, 0.05);

  --heading:       #E9F1EE;
  --ink:           #DCE6E3;
  --ink-muted:     #A3B5B0;
  --ink-faint:     #7F918D;
  --line:          #1E3A34;
  --line-strong:   #2B4C44;

  --brand:         #1C5A4C;
  --brand-hover:   #24705E;
  --brand-ink:     #F2F8F6;
  --accent:        #C9A552;
  --accent-quiet:  #D9BC7A;
  --accent-ink:    #14100A;
  --accent-fill:   #2A2415;
  --link:          #7FC3B3;
  --link-hover:    #D9BC7A;
  --accent-band:   #D9BC7A;

  --mark-bg:       #123A31;
  --mark-fg:       #EDF3F0;

  --ok:      #7FD1A6;  --ok-bg:   #12332A;
  --wip:     #D9BC7A;  --wip-bg:  #33290F;
  --open:    #9FB3C0;  --open-bg: #1B2A33;
  --gate:    #F0A092;  --gate-bg: #3A1C17;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.28);
  --shadow:    0 2px 4px rgba(0, 0, 0, 0.32), 0 12px 32px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.36), 0 24px 64px rgba(0, 0, 0, 0.5);

  --header-bg: rgba(10, 28, 24, 0.86);

  --hero-glow-1: #10312A;
  --hero-glow-2: #23200F;

  color-scheme: dark;
}

/* ==========================================================================
   1 · Reset & Grundlagen
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--heading);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }

strong { font-weight: 700; color: var(--heading); }
em { font-style: italic; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--gap) 0; }

::selection { background: var(--accent-fill); color: var(--heading); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  z-index: 999;
  background: var(--brand); color: var(--brand-ink);
  padding: 0.75rem 1.25rem; border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-size: var(--step--1);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--brand-ink); }

/* ==========================================================================
   2 · Layout-Hilfen
   ========================================================================== */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-slim { width: min(100% - 2.5rem, var(--wrap-slim)); margin-inline: auto; }

.section { padding-block: var(--section-y); position: relative; }
.section--paper { background: var(--bg); }
.section--white { background: var(--surface); }
.section--warm  { background: var(--bg-alt); }

/* Dunkles Band — im Dunkelmodus dunkler als der Grund, nicht heller.
   Ein „dunkles" Band, das im Dunkelmodus aufhellt, verliert seine Funktion
   als Zäsur. */
.section--green {
  background: var(--band);
  color: var(--band-ink);
  border-block: 1px solid var(--band-line);
}
.section--green h2, .section--green h3, .section--green h4 { color: var(--band-ink); }
/* Auch hier `:not(.btn)`: `.section--green a` ist (0,2,0) und würde sonst
   `.btn--gold` (0,1,0) überschreiben — Goldschrift auf Goldgrund im
   Abschlussband. */
.section--green a:not(.btn) { color: var(--accent-quiet); }
.section--green strong { color: var(--band-ink); }

.section-head { max-width: 64ch; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.kicker {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-quiet);
  margin: 0 0 0.9rem;
  display: block;
}
.section--green .kicker { color: var(--accent-band); }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-muted);
}
.section--green .lede { color: var(--band-ink-soft); }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* ==========================================================================
   3 · Knöpfe
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-ui); font-size: var(--step-0); font-weight: 600;
  line-height: 1.2;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.994); }

.btn--primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-hover); color: var(--brand-ink); box-shadow: var(--shadow); }

.btn--gold { background: var(--accent); color: var(--accent-ink); }
.btn--gold:hover { background: var(--accent-quiet); color: var(--accent-ink); }

.btn--ghost { background: transparent; color: var(--heading); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--heading); background: var(--surface); color: var(--heading); }

.section--green .btn--ghost { color: var(--band-ink); border-color: var(--band-line); }
.section--green .btn--ghost:hover { background: var(--band-fill); color: var(--band-ink); border-color: var(--band-ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.btn-row--center { justify-content: center; }

.btn-note { font-family: var(--font-ui); font-size: var(--step--1); color: var(--ink-faint); }
.section--green .btn-note { color: var(--band-ink-soft); }

/* ==========================================================================
   4 · Kopf, Navigation, Umschalter
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand__mark { flex: none; color: var(--mark-fg); }
.brand__mark .mark-tile { fill: var(--mark-bg); }
.brand__mark .mark-bar   { stroke: var(--mark-fg); }
.brand__mark .mark-bar--accent { stroke: var(--accent); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  color: var(--heading); letter-spacing: -0.01em;
}
.brand__sub {
  font-family: var(--font-ui); font-size: 0.6875rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-quiet); font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav ul { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }

/* `:not(.btn)` ist hier nicht Kosmetik, sondern notwendig.
   `.nav a` hat die Spezifität (0,1,1) und schlägt damit `.btn--primary`
   mit (0,1,0) — der Knopf im Menü bekäme sonst die Textfarbe eines
   Menüpunkts (dunkelgrau auf dunkelgrün, praktisch unlesbar), dazu das
   Padding eines Links und beim Überfahren eine goldene Unterkante.
   Erst ausnehmen, dann gestalten. */
.nav a:not(.btn) {
  font-family: var(--font-ui); font-size: 0.9375rem; font-weight: 500;
  color: var(--ink-muted); text-decoration: none; padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.nav a:not(.btn):hover,
.nav .current-menu-item > a:not(.btn) { color: var(--heading); border-bottom-color: var(--accent); }

/* Und der Knopf bekommt seine Farben ausdrücklich zurück, damit auch eine
   künftige Menüregel ihn nicht wieder überschreibt. */
.nav .btn--primary,
.nav .btn--primary:hover,
.nav .btn--primary:focus { color: var(--brand-ink); text-decoration: none; }

/* Werkzeugleiste: Sprache + Hell/Dunkel */
.tools { display: flex; align-items: center; gap: 0.5rem; }

.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  overflow: hidden; background: var(--surface);
}
.lang-switch a {
  font-family: var(--font-ui); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.42rem 0.7rem; text-decoration: none; border-bottom: 0;
  color: var(--ink-faint);
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}
.lang-switch a:hover { color: var(--heading); background: var(--bg-alt); border-bottom: 0; }
.lang-switch a[aria-current="true"] { background: var(--brand); color: var(--brand-ink); }

.theme-toggle {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  background: var(--surface); color: var(--ink-muted);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.theme-toggle:hover { color: var(--heading); border-color: var(--heading); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun,
.theme-toggle[data-state="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon,
.theme-toggle[data-state="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.nav-toggle {
  display: none;
  background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  width: 40px; height: 40px; cursor: pointer;
  align-items: center; justify-content: center; flex: none;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--heading); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--heading);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after  { top: 5px; }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.75rem;
    box-shadow: var(--shadow);
    display: none;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a:not(.btn) { display: block; padding: 0.9rem 0; font-size: 1.0625rem; border-bottom: 0; }
  .nav .btn { margin-top: 1rem; justify-content: center; width: 100%; }
}

/* ==========================================================================
   5 · Hero
   ========================================================================== */

.hero {
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(3rem, 2rem + 4vw, 5rem);
  background:
    radial-gradient(1100px 520px at 78% -10%, var(--hero-glow-1) 0%, transparent 62%),
    radial-gradient(700px 400px at 5% 5%, var(--hero-glow-2) 0%, transparent 55%),
    var(--bg);
  overflow: hidden;
}

.hero__grid {
  display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
}
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__status {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-ui); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-muted);
  padding: 0.45rem 0.95rem 0.45rem 0.6rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.6rem;
}
.hero__status .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-fill);
}

.hero h1 { margin-bottom: 0.55em; }
.hero__lede { font-size: var(--step-1); color: var(--ink-muted); max-width: 54ch; margin-bottom: 2rem; }

.hero__proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem;
  margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
  font-family: var(--font-ui); font-size: var(--step--1); color: var(--ink-faint);
}

.stage-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  position: relative;
}
.stage-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--obs-green-500) 0%, var(--accent) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.stage-card__title {
  font-family: var(--font-ui); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent-quiet);
  margin: 0.5rem 0 1.25rem;
}
.stage-list { list-style: none; margin: 0; padding: 0; }
.stage-list li {
  display: grid; grid-template-columns: 2.2rem 1fr auto; gap: 0.85rem;
  align-items: baseline;
  padding: 0.8rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-ui); font-size: 0.9375rem;
}
.stage-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.stage-list .num {
  font-family: var(--font-display); font-size: 1.05rem; color: var(--accent-quiet); font-weight: 600;
}
.stage-list .lbl { color: var(--ink); }

/* ==========================================================================
   6 · Kennzahlen-Band
   ========================================================================== */

.figures { border-block: 1px solid var(--line); background: var(--surface); }
.figures__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 0; }
.figure {
  padding: clamp(1.6rem, 1.2rem + 1.2vw, 2.5rem) 1.25rem;
  border-right: 1px solid var(--line);
  text-align: center;
}
.figure:last-child { border-right: 0; }
@media (max-width: 720px) {
  .figure { border-right: 0; border-bottom: 1px solid var(--line); }
  .figure:last-child { border-bottom: 0; }
}
.figure__num {
  font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem);
  font-weight: 600; color: var(--heading); line-height: 1; letter-spacing: -0.02em;
}
.figure__lbl {
  font-family: var(--font-ui); font-size: var(--step--1); color: var(--ink-muted);
  margin-top: 0.65rem; display: block;
}
.figure__note {
  font-family: var(--font-ui); font-size: 0.75rem; color: var(--ink-faint); margin-top: 0.3rem; display: block;
}

/* ==========================================================================
   7 · Karten und Modulreihen
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.card p { color: var(--ink-muted); font-size: var(--step-0); }

.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--bg-alt); border: 1px solid var(--line);
  display: grid; place-items: center; margin-bottom: 1.1rem;
  color: var(--heading);
}
.card__num {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--accent);
  display: block; margin-bottom: 0.6rem; font-weight: 600;
}

.row {
  display: grid; gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: center;
  padding-block: clamp(2rem, 1.4rem + 2vw, 3.25rem);
  border-bottom: 1px solid var(--line);
}
.row:last-of-type { border-bottom: 0; }
@media (min-width: 860px) { .row--flip .row__media { order: -1; } }
.row__body h3 { font-size: var(--step-3); }
.row__body p { color: var(--ink-muted); }
.row__tag {
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--accent-quiet); display: block; margin-bottom: 0.7rem;
}
.row__media {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 1vw, 2rem); box-shadow: var(--shadow-sm);
}
.mini-list { list-style: none; margin: 0; padding: 0; font-family: var(--font-ui); font-size: 0.9375rem; }
.mini-list li {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.6rem 0; border-bottom: 1px dashed var(--line); color: var(--ink-muted);
}
.mini-list li:last-child { border-bottom: 0; }
.mini-list li::before { content: "·"; color: var(--accent); font-weight: 700; font-size: 1.2rem; line-height: 1; }

/* ==========================================================================
   8 · Gründungsstufen — Zeitleiste
   ========================================================================== */

.stages { list-style: none; margin: 0; padding: 0; position: relative; }
.stages::before {
  content: ""; position: absolute; left: 27px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--line-strong) 22%, var(--line) 100%);
}
@media (max-width: 640px) { .stages::before { left: 19px; } }

.stage { position: relative; padding-left: 4.75rem; padding-bottom: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); }
@media (max-width: 640px) { .stage { padding-left: 3.25rem; } }
.stage:last-child { padding-bottom: 0; }

.stage__marker {
  position: absolute; left: 0; top: 0;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink-faint);
  z-index: 1;
}
@media (max-width: 640px) { .stage__marker { width: 40px; height: 40px; font-size: 1rem; } }
.stage--done .stage__marker { border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }
.stage--wip  .stage__marker { border-color: var(--accent); color: var(--wip); background: var(--wip-bg); }
.stage--next .stage__marker { border-color: var(--gate); color: var(--gate); background: var(--gate-bg); }

.stage__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.4rem; }
.stage__title { font-size: var(--step-2); margin: 0; }
.stage__body { max-width: 68ch; }
.stage__body p { color: var(--ink-muted); }
.stage__body .legal {
  font-family: var(--font-ui); font-size: var(--step--1);
  background: var(--bg-alt); border-left: 3px solid var(--accent);
  padding: 0.85rem 1.1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-muted); margin-top: 1rem;
}
.stage__body .legal strong { color: var(--heading); }

.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.32rem 0.7rem; border-radius: var(--radius-pill);
  white-space: nowrap;
}
.badge--done { background: var(--ok-bg);   color: var(--ok); }
.badge--wip  { background: var(--wip-bg);  color: var(--wip); }
.badge--open { background: var(--open-bg); color: var(--open); }
.badge--gate { background: var(--gate-bg); color: var(--gate); }

/* ==========================================================================
   9 · Klausel-Kacheln, Sphären, Mitgliedschaft
   ========================================================================== */

.clause {
  background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  box-shadow: var(--shadow-sm);
}
.clause h4 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.clause p { font-size: var(--step--1); color: var(--ink-muted); font-family: var(--font-ui); }
.clause .ref {
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-quiet); display: block; margin-bottom: 0.55rem;
}

.sphere {
  background: var(--band-fill);
  border: 1px solid var(--band-line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 1rem + 1vw, 1.8rem);
}
.sphere h4 { font-size: var(--step-1); margin-bottom: 0.5rem; color: var(--band-ink); }
.sphere p { font-size: var(--step--1); font-family: var(--font-ui); color: var(--band-ink-soft); }
.sphere__tag {
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-band); display: block; margin-bottom: 0.6rem;
}

.tier {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.tier--feature { border-color: var(--accent); box-shadow: var(--shadow); position: relative; }
.tier--feature::after {
  content: attr(data-flag);
  position: absolute; top: -0.75rem; left: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  background: var(--brand); color: var(--brand-ink);
  font-family: var(--font-ui); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: var(--radius-pill);
}
.tier__name { font-size: var(--step-2); margin-bottom: 0.35rem; }
.tier__price {
  font-family: var(--font-display); font-size: var(--step-3); color: var(--accent-quiet);
  margin: 0.9rem 0 0.25rem; line-height: 1;
}
.tier__price small { font-family: var(--font-ui); font-size: 0.8125rem; color: var(--ink-faint); display: block; margin-top: 0.5rem; font-weight: 500; }
.tier ul { list-style: none; margin: 1.3rem 0 1.75rem; padding: 0; font-family: var(--font-ui); font-size: 0.9375rem; }
.tier li { display: flex; gap: 0.65rem; align-items: flex-start; padding: 0.5rem 0; color: var(--ink-muted); }
.tier li::before { content: "✓"; color: var(--link); font-weight: 700; flex: none; }
.tier li.is-off { color: var(--ink-faint); }
.tier li.is-off::before { content: "–"; color: var(--ink-faint); }
.tier .btn { margin-top: auto; justify-content: center; }

/* ==========================================================================
   10 · FAQ
   ========================================================================== */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.4rem 0;
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  font-family: var(--font-ui); font-size: 1.5rem; line-height: 1; color: var(--accent);
  transition: transform 0.22s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__body { padding: 0 0 1.6rem; max-width: 72ch; color: var(--ink-muted); }

/* ==========================================================================
   11 · Formular
   ========================================================================== */

.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 1.2rem + 1.6vw, 2.75rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.35rem; }
.field label {
  display: block; font-family: var(--font-ui); font-size: 0.875rem; font-weight: 600;
  color: var(--heading); margin-bottom: 0.45rem;
}
.field .hint { font-family: var(--font-ui); font-size: 0.8125rem; color: var(--ink-faint); font-weight: 400; display: block; margin-top: 0.3rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%; font-family: var(--font-ui); font-size: 1rem;
  padding: 0.8rem 1rem; color: var(--ink);
  background: var(--surface-2); border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); background: var(--surface); outline: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.field--check { display: flex; gap: 0.75rem; align-items: flex-start; }
.field--check input { margin-top: 0.28rem; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.field--check label { font-weight: 400; color: var(--ink-muted); font-size: 0.875rem; }
.field-row { display: grid; gap: 1.35rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* ==========================================================================
   12 · Prosa-Seiten
   ========================================================================== */

.prose { max-width: 74ch; }
.prose h2 { font-size: var(--step-3); margin-top: 2.5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.3em; }
.prose li { margin-bottom: 0.5em; color: var(--ink-muted); }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 0.9375rem; margin: 1.5em 0; }
.prose th, .prose td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--heading); font-weight: 700; border-bottom-color: var(--line-strong); }
.prose td { color: var(--ink-muted); }
.table-scroll { overflow-x: auto; }

.page-hero {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) clamp(2rem, 1.5rem + 2vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: var(--step-4); }

.callout {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
  margin: 1.75rem 0;
  font-family: var(--font-ui); font-size: var(--step--1); color: var(--ink-muted);
}
.callout strong { color: var(--heading); }
.callout--open { border-left-color: var(--open); background: var(--open-bg); }
.section--green .callout {
  background: var(--band-fill); border-color: var(--band-line);
  color: var(--band-ink-soft);
}
.section--green .callout strong { color: var(--accent-band); }

/* ==========================================================================
   13 · Fuß
   ========================================================================== */

.site-footer {
  background: var(--band); color: var(--band-ink-soft);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
  border-top: 1px solid var(--band-line);
}
.site-footer h4 {
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--accent-band); margin-bottom: 1.1rem;
}
.site-footer a:not(.btn) { color: var(--band-ink-soft); text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--band-ink); text-decoration: underline; }
.footer__grid {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(240px, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--band-line);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; font-family: var(--font-ui); font-size: 0.9375rem; }
.site-footer li { margin-bottom: 0.6rem; }
.footer__brand .brand__name { color: var(--band-ink); }
.footer__brand p { font-family: var(--font-ui); font-size: 0.9375rem; margin-top: 1.1rem; max-width: 40ch; }
.footer__legal {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between;
  padding-top: 1.75rem;
  font-family: var(--font-ui); font-size: 0.8125rem; color: var(--band-ink-soft);
}
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.8125rem; }
.footer__legal li { margin: 0; }

.ai-note {
  font-family: var(--font-ui); font-size: 0.75rem; color: var(--band-ink-soft);
  opacity: 0.72; margin-top: 1rem; max-width: 70ch;
}

/* ==========================================================================
   14 · Bewegung sparsam
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }

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

/* ==========================================================================
   15 · Druck — immer hell, egal was der Bildschirm zeigt
   ========================================================================== */

@media print {
  :root, :root[data-theme="dark"] {
    --bg: #fff; --bg-alt: #fff; --surface: #fff;
    --band: #fff; --band-ink: #000; --band-ink-soft: #333; --band-line: #999; --band-fill: #fff;
    --heading: #000; --ink: #000; --ink-muted: #333; --ink-faint: #555;
    --line: #bbb; --line-strong: #888;
  }
  .site-header, .site-footer, .btn, .nav-toggle, .theme-toggle, .lang-switch { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 1rem; }
  .card, .clause, .stage, .tier { break-inside: avoid; }
  .hero { background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
