/* Thinking House Lab – site.css
   Gliederung: 1 Schrift · 2 Tokens · 3 Basis · 4 Layout · 5 Komponenten · 6 Seiten · 7 Bewegung · 8 Druck
   Keine externen Aufrufe: Schrift liegt unter ../fonts (SIL OFL 1.1). */

/* 1 Schrift ---------------------------------------------------------------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/manrope/manrope-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/manrope/manrope-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2 Tokens ------------------------------------------------------------------ */
:root {
  color-scheme: light;
  --font: "Manrope", system-ui, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;

  --bg: #f4f7fb;
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, .72);
  --glass-solid: rgba(255, 255, 255, .94);
  --line: #e2e8f0;
  --line-strong: #cbd5e1;          /* nur Deko-Linien */
  --ctl-line: #7b8aa0;             /* Raender von Bedienelementen: >= 3:1 auf Weiss (WCAG 1.4.11) */
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #475569;

  /* Bereichsfarben als Flaeche/Punkt */
  --pv: #f59e0b; --bat: #22c55e; --grid: #8b5cf6; --heat: #fb7185; --cost: #2dd4bf; --pri: #0ea5e9; --sys: #64748b;
  /* als Text (>= 4,5:1 auf Weiss) */
  --pv-ink: #b45309; --bat-ink: #15803d; --grid-ink: #6d28d9; --heat-ink: #be123c; --cost-ink: #0f766e; --pri-ink: #0369a1; --sys-ink: #475569;
  /* Soft-Flaechen fuer Chips */
  --pv-soft: #fef3c7; --bat-soft: #dcfce7; --grid-soft: #ede9fe; --heat-soft: #ffe4e6; --cost-soft: #ccfbf1; --pri-soft: #e0f2fe; --sys-soft: #f1f5f9;
  /* Text auf Soft */
  --pv-800: #92400e; --bat-800: #166534; --grid-800: #5b21b6; --heat-800: #9f1239; --cost-800: #115e59; --pri-800: #075985; --sys-800: #334155;
  /* Linien in Grafiken (>= 3:1) */
  --pv-600: #d97706; --bat-600: #16a34a; --grid-600: #8b5cf6; --heat-600: #e11d48; --cost-600: #0d9488; --pri-600: #0284c7; --sys-600: #64748b;

  --btn: #0369a1; --btn-hover: #075985;
  --ok: #16a34a; --warn: #ea580c; --warn-ink: #c2410c; --err: #ef4444;

  --r-chip: 10px; --r-card: 16px; --r-big: 24px;
  --sh-rest: 0 2px 6px rgba(15, 23, 42, .06);
  --sh-up: 0 18px 50px rgba(15, 23, 42, .11), 0 2px 6px rgba(15, 23, 42, .06);
  --sh-hover: 0 24px 60px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gut: 16px;
  --head-h: 64px;
}
@media (min-width: 720px) { :root { --gut: 24px; } }
@media (min-width: 1024px) { :root { --gut: 32px; } }

.b-pv      { --c: var(--pv);   --c-ink: var(--pv-ink);   --c-soft: var(--pv-soft);   --c-800: var(--pv-800);   --c-600: var(--pv-600);   --c-rgb: 245 158 11; }
.b-battery { --c: var(--bat);  --c-ink: var(--bat-ink);  --c-soft: var(--bat-soft);  --c-800: var(--bat-800);  --c-600: var(--bat-600);  --c-rgb: 34 197 94; }
.b-grid    { --c: var(--grid); --c-ink: var(--grid-ink); --c-soft: var(--grid-soft); --c-800: var(--grid-800); --c-600: var(--grid-600); --c-rgb: 139 92 246; }
.b-heating { --c: var(--heat); --c-ink: var(--heat-ink); --c-soft: var(--heat-soft); --c-800: var(--heat-800); --c-600: var(--heat-600); --c-rgb: 251 113 133; }
.b-costs   { --c: var(--cost); --c-ink: var(--cost-ink); --c-soft: var(--cost-soft); --c-800: var(--cost-800); --c-600: var(--cost-600); --c-rgb: 45 212 191; }
.b-primary { --c: var(--pri);  --c-ink: var(--pri-ink);  --c-soft: var(--pri-soft);  --c-800: var(--pri-800);  --c-600: var(--pri-600);  --c-rgb: 14 165 233; }
.b-system  { --c: var(--sys);  --c-ink: var(--sys-ink);  --c-soft: var(--sys-soft);  --c-800: var(--sys-800);  --c-600: var(--sys-600);  --c-rgb: 100 116 139; }

/* 3 Basis ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(600px 400px at 8% 2%, rgba(14, 165, 233, .08), transparent 70%),
    radial-gradient(520px 380px at 96% 30%, rgba(245, 158, 11, .07), transparent 70%),
    radial-gradient(640px 420px at 10% 70%, rgba(34, 197, 94, .05), transparent 70%),
    linear-gradient(160deg, #eef4fb 0%, #ffffff 55%, #f4f7fb 100%);
  background-attachment: scroll;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv05" 0;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2, .h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 800; letter-spacing: -.015em; }
h3, .h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.005em; }
h4 { font-size: 1rem; font-weight: 700; }
.h-sm { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: var(--pri-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--btn-hover); text-decoration-thickness: 2px; }
strong { font-weight: 750; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
ul, ol { padding-left: 1.2em; }
abbr { text-decoration: none; }
mark.platzhalter { background: #fde68a; color: #713f12; padding: 1px 5px; border-radius: 4px; font-weight: 650; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
:focus-visible { outline: 3px solid var(--btn); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--btn); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 8px; color: #fff; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.22em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-lg { width: 28px; height: 28px; }
.i-xl { width: 48px; height: 48px; }
.i-ext { width: .9em; height: .9em; margin-left: .2em; vertical-align: -.08em; opacity: .75; }
[hidden] { display: none !important; }
::selection { background: #bae6fd; }

/* 4 Layout ------------------------------------------------------------------ */
.wrap { width: 100%; max-width: calc(1200px + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.wrap .wrap { padding-inline: 0; }
.wrap-wide { width: 100%; max-width: calc(1520px + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: calc(820px + 2 * var(--gut)); }
.section { padding-block: 56px; }
.section-sm { padding-block: 28px; }
@media (min-width: 1024px) { .section { padding-block: 88px; } .section-sm { padding-block: 40px; } }
.section-tint { background: linear-gradient(180deg, rgba(241, 245, 249, .7), rgba(255, 255, 255, .4)); border-block: 1px solid rgba(226, 232, 240, .7); }
.section-lead { max-width: 62ch; color: var(--ink-2); font-size: 1.125rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.eyebrow { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--pri-ink); margin: 0 0 .6em; }
.lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--ink-2); max-width: 62ch; }
.grid-2, .grid-3 { display: grid; gap: 20px; }
/* Listen-Reset nur fuer Listen: an einer .wrap-Section darf er Innenabstand und Zentrierung nicht aufheben */
ul.grid-2, ul.grid-3, ol.grid-2, ol.grid-3 { list-style: none; padding: 0; margin: 0; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.two-col { display: grid; gap: 20px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.4fr 1fr; } }
.page-head { padding-top: 48px; padding-bottom: 12px; }
@media (min-width: 1024px) { .page-head { padding-top: 72px; } }

/* 5 Komponenten --------------------------------------------------------------- */
/* Vorschau-Band */
.band { background: #fffbeb; color: #92400e; font-size: .875rem; border-bottom: 1px solid #fde68a; }
.band-in { min-height: 32px; display: flex; align-items: center; gap: 10px; padding-block: 4px; flex-wrap: wrap; }
.band strong { font-weight: 800; }
.band-dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }
.band-sub { color: #92400e; opacity: .95; }
@media (max-width: 1023px) { .band-sub { display: none; } }

/* Kopfzeile */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--glass-solid); border-bottom: 1px solid rgba(226, 232, 240, .8); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-head { background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
}
.head-in { height: var(--head-h); display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #0284c7, #0369a1); box-shadow: 0 4px 12px rgba(3, 105, 161, .28); }
.brand-mark .i { width: 20px; height: 20px; }
.brand-mark-lg { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px; }
.brand-mark-lg .i { width: 32px; height: 32px; }
.brand-name { font-size: 1.0625rem; white-space: nowrap; }
.nav-main { margin-left: auto; display: none; }
.nav-main ul, .nav-mobile-panel ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-main a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 650; font-size: .95rem; }
.nav-main a:hover { background: rgba(14, 165, 233, .08); color: var(--ink); }
.nav-main a[aria-current="page"] { color: var(--pri-ink); background: var(--pri-soft); }
.head-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
@media (min-width: 1024px) {
  .nav-main { display: block; }
  .head-tools { margin-left: 8px; }
  .nav-mobile { display: none; }
}
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.lang, .nav-mobile { position: relative; }
.lang > summary, .nav-mobile > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 750; font-size: .9rem; color: var(--ink-2); }
.lang > summary:hover, .nav-mobile > summary:hover { border-color: var(--line-strong); }
.i-chev { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.lang[open] .i-chev { transform: rotate(180deg); }
.lang-panel, .nav-mobile-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-up); padding: 8px; z-index: 60; }
.lang-label { font-size: .875rem; font-weight: 700; color: var(--muted); margin: 4px 10px 6px; }
.lang-list { list-style: none; padding: 0; margin: 0; }
.lang-list a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 650; }
.lang-list a:hover { background: var(--pri-soft); }
.lang-list a[aria-current="true"] { background: var(--pri-soft); color: var(--pri-800); }
.lang-list a[aria-current="true"]::after { content: "✓"; margin-left: auto; font-weight: 800; }
.lang-later { color: var(--muted); font-size: .875rem; padding: 6px 12px; }
.burger { width: 18px; height: 12px; position: relative; display: inline-block; }
.burger::before, .burger::after, .burger span { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; }
.burger::before { top: 0; } .burger span { top: 5px; } .burger::after { bottom: 0; }
.nav-mobile-l { display: none; }
@media (min-width: 480px) { .nav-mobile-l { display: inline; } }
.nav-mobile-panel ul { flex-direction: column; }
@media (max-width: 479px) {
  .head-in { gap: 8px; }
  .head-tools { gap: 6px; }
  .brand { gap: 8px; }
  .brand-name { font-size: .98rem; }
  .lang > summary { padding: 0 10px; gap: 4px; }
  .lang > summary > .i:first-child { display: none; }
  .nav-mobile > summary { padding: 0 12px; }
}
@media (max-width: 359px) { .brand-name { display: none; } }
.nav-mobile-panel a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.nav-mobile-panel a[aria-current="page"] { background: var(--pri-soft); color: var(--pri-800); }

/* Knoepfe, Pillen, Chips */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: 12px; font: inherit; font-weight: 750; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-pri { background: var(--btn); color: #fff; box-shadow: 0 8px 20px rgba(3, 105, 161, .25); }
.btn-pri:hover { background: var(--btn-hover); color: #fff; }
.btn-sec { background: rgba(255, 255, 255, .85); color: var(--ink); border-color: var(--line-strong); }
.btn-sec:hover { color: var(--ink); background: #fff; box-shadow: var(--sh-rest); }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: .9rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; min-height: 44px; text-decoration: none; }
.link-arrow .i { transition: transform .2s var(--ease); }
.link-arrow:hover .i { transform: translateX(3px); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: .875rem; font-weight: 700; line-height: 1.5; white-space: nowrap; margin: 0; }
.pill-soon { background: var(--pri-soft); color: var(--pri-800); }
.pill-soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pri-600); }
.pill-planned { background: #f8fafc; color: var(--muted); border: 1px dashed var(--line-strong); }
.pill-online { background: var(--bat-soft); color: var(--bat-800); }
.pill-level { background: #0f172a; color: #fff; }
.pill-plain { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.pill-price { background: var(--pv-soft); color: var(--pv-800); }
.pill-lg { padding: 8px 16px; font-size: .95rem; white-space: normal; }
.chips, .chips-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: var(--r-chip); font-size: .875rem; font-weight: 700; background: var(--c-soft, #f1f5f9); color: var(--c-800, var(--ink-2)); text-decoration: none; border: 1px solid transparent; }
a.chip:hover { border-color: var(--c-600, var(--line-strong)); color: var(--c-800, var(--ink)); }
.chip .i { width: 16px; height: 16px; }
.chip-grau { background: #f8fafc; color: var(--muted); border: 1px dashed var(--line-strong); }
.chip-sm { min-height: 28px; padding: 2px 9px; font-size: .875rem; }
.chip-btn { font: inherit; font-size: .875rem; font-weight: 750; cursor: pointer; min-height: 44px; min-width: 44px; justify-content: center; background: #fff; color: var(--ink-2); border: 1px solid var(--ctl-line); }
.chip-btn:hover { border-color: var(--btn); }
.chip-btn[aria-pressed="true"] { background: var(--btn); color: #fff; border-color: var(--btn); }
.dot-l { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--sys)); flex: none; }

/* Karten */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-up); padding: 24px; }
.glass { background: var(--glass-solid); border: 1px solid rgba(255, 255, 255, .6); box-shadow: var(--sh-up), inset 0 0 0 1px rgba(15, 23, 42, .06); border-radius: var(--r-big); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
}
.glass-solid { background: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--sh-up), inset 0 0 0 1px rgba(15, 23, 42, .06); border-radius: var(--r-big); }
.box { background: #f8fafc; border: 1px solid var(--line); border-left: 4px solid var(--pri-600); border-radius: 12px; padding: 18px 20px; margin: 24px 0; }
.box h2, .box h3 { margin-bottom: .35em; }
.box p:last-child { margin-bottom: 0; }
.box-plain { border-left-color: var(--line-strong); }
.box-ok { border-left-color: var(--ok); background: #f0fdf4; }
.box-note { border-left-color: var(--warn); background: #fff7ed; }
.notice { display: flex; gap: 10px; align-items: flex-start; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: .95rem; color: var(--ink-2); max-width: 72ch; }
.v-main .notice, .page-head .notice, .calcs .notice { max-width: none; }
.notice .i { margin-top: .2em; color: var(--pri-ink); }
.notice-draft { background: #fffbeb; border-color: #fde68a; color: #713f12; }
.notice-draft .i { color: #b45309; }
.notice-price { align-items: center; flex-wrap: wrap; margin: 28px 0; }
.list { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
.list li { position: relative; padding-left: 26px; margin-bottom: .55em; }
.list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--pri-600); }
.list-warn li::before { background: var(--warn); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 10px; margin-bottom: .45em; }
.checks .i { color: var(--ok); margin-top: .25em; }

/* Einladung */
.invite-wrap { padding-block: 40px 72px; }
.invite { display: grid; gap: 18px; padding: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .invite { grid-template-columns: 64px 1fr; padding: 36px 40px; } }
.invite-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--pri-soft); color: var(--pri-ink); }
.invite-ic .i { width: 28px; height: 28px; }
.invite p { max-width: 64ch; }

/* Video-Karten (auto-fit: zwei Karten fuellen die Breite, statt ein leeres Drittel zu lassen) */
.vgrid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.vgrid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.vgrid + p { margin-top: 16px; }
.vcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-up); display: flex; flex-direction: column; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.vcard:hover { box-shadow: var(--sh-hover); transform: translateY(-2px); }
.vposter { display: block; aspect-ratio: 16 / 9; position: relative; color: #fff; text-decoration: none; overflow: hidden;
  background:
    radial-gradient(110% 85% at 92% 0%, rgb(var(--c-rgb) / .42), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(14, 165, 233, .25), transparent 60%),
    linear-gradient(160deg, #0f172a 0%, #1e293b 100%); }
.vposter::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.vposter-in { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 18px 20px; z-index: 1; }
.vp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #e2e8f0; }
/* Nummer: weisse Schrift auf dunkler Pille (Kontrast unabhaengig vom Farbverlauf), Bereichsfarbe nur als Punkt */
.vp-nr { display: inline-flex; align-items: center; gap: 7px; color: #fff; background: rgba(15, 23, 42, .62); border: 1px solid rgba(255, 255, 255, .18); padding: 2px 10px 2px 8px; border-radius: 999px; letter-spacing: .08em; }
.vp-nr:empty { display: none; }
.vp-nr::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.vp-title { margin-top: auto; font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; max-width: 16ch; color: #fff; }
.vp-play { position: absolute; right: 18px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); }
.vp-play .i { width: 24px; height: 24px; }
.vposter::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); z-index: 2; }
.vbody { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: .875rem; color: var(--muted); font-weight: 650; }
.vtitle { margin: 4px 0 0; font-size: 1.2rem; }
.vtitle a { color: var(--ink); text-decoration: none; }
.vtitle a:hover { color: var(--pri-ink); text-decoration: underline; }
.vtext { color: var(--ink-2); margin: 0; font-size: 1rem; }
.vlang { font-size: .875rem; color: var(--muted); margin: 4px 0 0; display: flex; gap: 6px; align-items: flex-start; }
.vlang .i { margin-top: .2em; }
/* Geplante Folgen: helles, ruhiges Plakat statt ausgegrautem Dunkel */
.grau-grid .vposter { background: linear-gradient(160deg, #e2e8f0, #f8fafc); color: #334155; }
.grau-grid .vposter::after { background-image: linear-gradient(rgba(15, 23, 42, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, .05) 1px, transparent 1px); }
.grau-grid .vposter::before { opacity: .55; }
.grau-grid .vp-top { color: #475569; }
.grau-grid .vp-nr { color: #334155; background: #fff; border-color: #cbd5e1; }
.grau-grid .vp-title { color: #334155; }
.grau-grid .vp-play { background: rgba(255, 255, 255, .7); border-color: #cbd5e1; color: #475569; }
.grau-grid .vcard { box-shadow: var(--sh-rest); }

/* Zaehler */
.counter { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin: 18px 0 8px; }
.counter-num { font-size: clamp(3rem, 2.2rem + 3vw, 4.5rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; min-width: 1.2ch; color: var(--pri-ink); }
.counter-label { font-weight: 700; color: var(--ink-2); font-size: 1.1rem; }

/* Code */
pre { background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 18px 20px; overflow: auto; font-family: var(--mono); font-size: .9rem; line-height: 1.6; margin: 0 0 12px; }
code { font-family: var(--mono); font-size: .92em; }
.code { margin: 20px 0; }
.code figcaption { font-weight: 750; font-size: .95rem; margin-bottom: 8px; color: var(--ink-2); }
.code-example { background: #1e293b; }

/* Tabellen */
.scroll-x { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: 1rem; }
caption { text-align: left; font-weight: 750; padding-bottom: 8px; color: var(--ink-2); }
th, td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th[scope="row"], thead th:first-child { text-align: left; font-weight: 650; }
thead th { font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 750; }
tr.total th, tr.total td { font-weight: 800; border-top: 2px solid var(--ink); border-bottom: 0; }

/* 6 Seiten -------------------------------------------------------------------- */
/* Hero */
.hero { position: relative; }
.hero-media { margin: 0; position: relative; overflow: hidden; background: #dbe6f0; }
.hero-img { width: 100%; height: clamp(260px, 62vw, 520px); object-fit: cover; object-position: 60% 50%; }
.hotspots { display: none; }
.hero-cap { position: absolute; right: 12px; top: 12px; font-size: .875rem; font-weight: 650; color: var(--ink-2); background: rgba(255, 255, 255, .82); padding: 4px 10px; border-radius: 999px; }
.hero-wrap { position: relative; margin-top: -48px; z-index: 2; }
.hero-card { padding: 28px 24px; }
.hero-card h1 { margin-bottom: .35em; }
.hero-card .lead { margin-bottom: 0; }
@media (min-width: 1024px) {
  .hero-media { aspect-ratio: 2752 / 1536; max-height: 82vh; width: 100%; }
  .hero-img { height: 100%; object-position: 50% 50%; }
  .hotspots { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero-cap { top: auto; bottom: 16px; right: 20px; }
  .hero-wrap { position: absolute; inset: 0; margin: 0 auto; display: flex; align-items: center; pointer-events: none; }
  .hero-card { pointer-events: auto; max-width: 430px; padding: 36px 34px; margin-left: 0; }
  .hero-card h1 { font-size: clamp(2.3rem, 1.2rem + 2.2vw, 3.3rem); }
}
/* 1024–1279 px: Bild ist flacher, Karte kompakter; Hotspot-Beschriftungen waeren hier unter 12 px */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero-card { max-width: 380px; padding: 26px 26px 24px; }
  .hero-card h1 { font-size: 2.2rem; }
  .hero-card .lead { font-size: 1rem; }
  .hero-card .btns { margin-top: 18px; }
  .hotspots { display: none; }
}
@media (min-width: 1500px) { .hero-card { max-width: 470px; } }
.hs-punkt { fill: var(--c); stroke: #fff; stroke-width: 5; }
.hs-puls { fill: rgb(var(--c-rgb) / .35); transform-box: fill-box; transform-origin: center; animation: puls 2.4s ease-out infinite; }
.hs-bg { fill: rgba(255, 255, 255, .9); stroke: rgb(var(--c-rgb) / .9); stroke-width: 3; }
.hs-tx { fill: #0f172a; font-family: var(--font); font-size: 27px; font-weight: 750; }
.hs:nth-child(2) .hs-puls { animation-delay: .6s; } .hs:nth-child(3) .hs-puls { animation-delay: 1.2s; } .hs:nth-child(4) .hs-puls { animation-delay: 1.8s; }

/* Fragen */
.questions { padding-bottom: 24px; }
.fragen { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 12px; }
@media (min-width: 720px) { .fragen { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .fragen { grid-template-columns: repeat(4, 1fr); } }
.frage { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--sh-rest); font-weight: 700; line-height: 1.4; }
.frage .i { color: var(--pv-ink); margin-top: .1em; }
.q-answer { max-width: 70ch; color: var(--ink-2); font-size: 1.0625rem; }

/* EVA */
.eva { position: relative; margin: 32px 0 48px; }
.eva-flow { display: none; }
.eva-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; position: relative; }
@media (min-width: 720px) {
  .eva-cards { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .eva-flow { display: block; position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 20px; transform: translateY(-50%); }
}
.flow-base { stroke: var(--line-strong); stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; }
.flow-dash { stroke: var(--pri-600); stroke-width: 2.5; fill: none; stroke-dasharray: 6 14; vector-effect: non-scaling-stroke; animation: fluss 1.6s linear infinite; }
.eva-card { position: relative; padding: 22px 22px 18px; border-top: 4px solid var(--c); }
.eva-card h3 { margin: 12px 0 6px; }
.eva-card p { margin: 0; color: var(--ink-2); }
.eva-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--c-soft); color: var(--c-800); }
.eva-ic .i { width: 24px; height: 24px; }
@media (min-width: 720px) {
  .eva-card:not(:last-child)::after { content: ""; position: absolute; right: -30px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); background: #fff; border: 2px solid var(--pri-600); border-radius: 50%; box-shadow: 0 0 0 5px rgba(14, 165, 233, .12); }
}
.sub-h { margin-top: 8px; font-size: 1.125rem; color: var(--ink-2); }
.promises { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .promises { grid-template-columns: repeat(3, 1fr); } }
.promise { position: relative; padding: 4px 0 0 44px; }
.promise .i { position: absolute; left: 0; top: 6px; width: 30px; height: 30px; color: var(--pri-ink); }
.promise h4 { font-size: 1.0625rem; margin-bottom: .25em; }
.promise p { color: var(--ink-2); font-size: 1rem; margin: 0; }

/* Baum kompakt (Startseite)
   Schmal (< 1200 px): senkrechter Stamm links, der unter dem Symbol der Wurzel beginnt.
   Breit (>= 1200 px): Wurzel mittig, waagerechter Ast ueber 5 Spalten; Linien per CSS, damit sie immer
   genau auf den Spaltenmitten sitzen (keine skalierte SVG mehr). */
.tree { margin: 36px 0 28px; }
.tree-root { position: relative; display: flex; align-items: center; gap: 12px; width: max-content; max-width: 100%; margin: 0; padding: 12px 20px 12px 12px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-up); color: var(--ink); text-decoration: none; }
.tree-root:hover { color: var(--ink); box-shadow: var(--sh-hover); }
.tree-root-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, #0284c7, #0369a1); color: #fff; flex: none; }
.tree-root-ic .i { width: 24px; height: 24px; }
.tree-root-t { display: block; font-weight: 800; line-height: 1.2; }
.tree-root-s { display: block; font-size: .875rem; color: var(--muted); font-weight: 650; }
.tree-nodes { list-style: none; margin: 20px 0 0; padding: 0 0 0 52px; display: grid; gap: 14px; position: relative; }
/* Stamm-Stueck je Karte: senkrecht von oben bis zur Karte (letzte Karte endet am Ast) + waagerechter Ast */
.tnode { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-rest); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.tnode::before { content: ""; position: absolute; left: -19px; top: -14px; bottom: -1px; width: 19px;
  background: linear-gradient(var(--line-strong), var(--line-strong)) left top / 2px 100% no-repeat,
              linear-gradient(var(--line-strong), var(--line-strong)) left 44px / 100% 2px no-repeat; }
.tnode:first-child::before { top: -20px; background-position: left top, left 50px; }
.tnode:last-child::before { bottom: auto; height: 46px; }
.tnode:first-child:last-child::before { height: 52px; }
.tnode::after { content: ""; position: absolute; left: -23px; top: 26px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--c); }
.tnode:hover { box-shadow: var(--sh-hover); transform: translateY(-2px); }
.tnode-a { display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; padding: 16px 16px 8px; color: var(--ink); text-decoration: none; border-top: 4px solid var(--c); border-radius: var(--r-card) var(--r-card) 0 0; }
.tnode-a:hover { color: var(--ink); }
.tnode-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--c-soft); color: var(--c-800); }
.tnode-t { font-weight: 800; line-height: 1.25; font-size: 1.02rem; }
.tnode-q { font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.tnode-a:hover .tnode-t { text-decoration: underline; text-underline-offset: 3px; }
.lvls { list-style: none; margin: 0; padding: 8px 16px 14px; display: grid; gap: 4px; border-top: 1px dashed var(--line); }
.lvl { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; font-size: .875rem; }
.lvl-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; flex: none; }
.lvl-soon .lvl-dot { border-color: var(--pri-600); background: var(--pri-600); box-shadow: 0 0 0 3px rgba(14, 165, 233, .18); }
.lvl-name { font-weight: 700; color: var(--ink-2); }
.lvl-st { margin-left: auto; color: var(--muted); }
.lvl-soon .lvl-st { color: var(--pri-800); font-weight: 700; }
@media (min-width: 1200px) {
  .tree-root { margin: 0 auto; }
  .tree-root::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 29px; margin-left: -1px; background: var(--line-strong); }
  .tree-nodes { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0; margin: 56px 0 0; gap: 16px; }
  /* waagerechter Ast von der Mitte der 1. bis zur Mitte der 5. Spalte, mit ruhigem Fluss */
  .tree-nodes::before { content: ""; position: absolute; top: -28px; height: 2px; left: calc((100% - 64px) / 10); right: calc((100% - 64px) / 10);
    background-color: var(--line-strong); background-image: repeating-linear-gradient(90deg, rgba(2, 132, 199, .75) 0 4px, transparent 4px 22px);
    animation: fluss-x 2.4s linear infinite; }
  .tnode::before { left: 50%; top: -28px; bottom: auto; width: 2px; height: 22px; margin-left: -1px; background: var(--line-strong); }
  .tnode:first-child::before, .tnode:last-child::before, .tnode:first-child:last-child::before { top: -28px; height: 22px; background: var(--line-strong); }
  .tnode::after { left: 50%; top: -6px; transform: translateX(-50%); z-index: 1; }
  .tnode-a { grid-template-columns: 1fr; padding: 18px 16px 10px; }
  .tnode-ic { grid-row: auto; margin-bottom: 6px; }
  .tnode { display: flex; flex-direction: column; }
  .lvls { margin-top: auto; }
}

/* Karten-Teaser */
.map-teaser { display: grid; gap: 24px; align-items: center; padding: 28px; overflow: hidden; }
@media (min-width: 900px) { .map-teaser { grid-template-columns: 1fr 1.1fr; padding: 40px; } }
.mt-graphic { display: block; background: linear-gradient(160deg, #f8fafc, #fff); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.silhouette { width: 100%; height: auto; display: block; }
.sil-lane { fill: var(--c-soft); opacity: .45; }
.sil-lines path { fill: none; stroke: #cbd5e1; stroke-width: .6; opacity: .55; }
.dot { fill: #eef2f6; stroke: #94a3b8; stroke-width: 1.2; transition: fill .35s var(--ease), stroke .35s var(--ease); }
.dot.erklaert { fill: var(--c); stroke: var(--c-600); }
@media (hover: hover) and (min-width: 900px) {
  .mt-graphic:hover .dot { fill: var(--c); stroke: var(--c-600); }
  .mt-graphic:hover .sil-lines path { stroke: #94a3b8; }
}
.honesty .list { margin-top: 12px; }
.product { background: linear-gradient(160deg, #f8fafc, #fff); }

/* Themen */
.ways .way { display: flex; flex-direction: column; gap: 8px; }
.ways .i-lg { color: var(--pri-ink); }
.ways p { margin: 0; font-weight: 650; }
.levels { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .levels { grid-template-columns: repeat(3, 1fr); } }
.level-card .i-lg { color: var(--pri-ink); margin-bottom: 10px; }
.level-aud { font-weight: 700; color: var(--pri-800); font-size: .95rem; margin-bottom: .4em; }
.level-fmt { font-size: .9rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; margin: 0; }
.core { font-size: 1.25rem; font-weight: 750; max-width: 48ch; border-left: 4px solid var(--pri-600); padding-left: 16px; }
.trunk { position: relative; padding-left: 32px; }
@media (min-width: 900px) { .trunk { padding-left: 56px; } }
.trunk::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 60px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--pri-600), var(--line-strong)); }
@media (min-width: 900px) { .trunk::before { left: 22px; } }
.trunk-root { position: relative; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; box-shadow: var(--sh-up); color: var(--ink); text-decoration: none; font-weight: 750; margin-left: -8px; }
.trunk-root:hover { color: var(--ink); }
.trunk-root .i { color: var(--pri-ink); }
.branches { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.branch { position: relative; }
.branch::before { content: ""; position: absolute; left: -21px; top: 38px; width: 21px; height: 3px; background: var(--line-strong); }
.branch::after { content: ""; position: absolute; left: -27px; top: 33px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--c); }
@media (min-width: 900px) { .branch::before { left: -34px; width: 34px; } .branch::after { left: -40px; } }
.branch-card { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: var(--r-card); box-shadow: var(--sh-up); padding: 22px; }
.branch-head { display: flex; gap: 14px; align-items: flex-start; }
.branch-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--c-soft); color: var(--c-800); flex: none; }
.branch-ic .i { width: 26px; height: 26px; }
.branch-head h3 { margin: 2px 0 4px; }
.branch-q { color: var(--c-ink); font-weight: 700; margin: 0; }
.branch-text { color: var(--ink-2); margin: 14px 0 18px; max-width: 80ch; }
.lvl-cols { display: grid; gap: 14px; align-items: start; }
@media (min-width: 900px) { .lvl-cols { grid-template-columns: 1.5fr 1fr 1fr; } }
.lvl-col { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.lvl-col h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.lvl-col > p { font-size: .95rem; color: var(--ink-2); }
.lvl-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #0f172a; color: #fff; font-size: .8rem; font-weight: 800; flex: none; margin-right: 6px; }
.pill-level .lvl-num { background: #fff; color: #0f172a; width: 20px; height: 20px; margin-right: 2px; }
.entries { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
/* Nummer | Titel | Pille in festen Spalten, damit die Pillen immer gleich stehen.
   In schmalen Spalten (Container < 300 px) steht die Pille immer unter dem Titel. */
.lvl-col { container-type: inline-size; }
.entry { display: grid; grid-template-columns: 5.4em minmax(0, 1fr); align-items: baseline; column-gap: 10px; row-gap: 4px; font-size: .95rem; line-height: 1.35; padding: 6px 0; border-top: 1px solid var(--line); }
.entry > span:first-child:not(.vnr) { grid-column: 1 / -1; }
.entry .pill { grid-column: 2; justify-self: start; margin-left: 0; }
.entry > span:first-child:not(.vnr) ~ .pill { grid-column: 1 / -1; }
@container (min-width: 300px) {
  .entry { grid-template-columns: 5.4em minmax(0, 1fr) auto; }
  .entry .pill, .entry > span:first-child:not(.vnr) ~ .pill { grid-column: 3; justify-self: end; }
  .entry > span:first-child:not(.vnr) { grid-column: 1 / 3; }
}
.entry a { display: inline-block; padding-block: 3px; }
.vnr { font-family: var(--mono); font-size: .85rem; font-weight: 700; color: var(--muted); min-width: 5.4em; }
.grau { color: var(--muted); }
.grau a { color: var(--muted); }
.series { margin-top: 24px; }
.chapters { display: grid; gap: 10px; margin: 18px 0; }
.kapitel { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.kapitel > summary { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; font-weight: 750; }
.kapitel > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-left: 8px; transition: transform .2s var(--ease); }
.kapitel[open] > summary::after { transform: rotate(225deg); }
.kap-id { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--pri-soft); color: var(--pri-800); font-weight: 800; flex: none; }
.kap-t { flex: 1; }
.kap-n { font-size: .875rem; color: var(--muted); font-weight: 700; }
.folgen, .notes { list-style: none; margin: 0; padding: 0 16px 12px; }
.folge, .note { display: grid; grid-template-columns: 5.4em 1fr; gap: 4px 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.folge .pill, .note-fits { grid-column: 2; justify-self: start; }
@media (min-width: 720px) {
  .folge, .note { grid-template-columns: 5.4em 1fr auto; }
  .folge .pill, .note-fits { grid-column: 3; justify-self: end; }
}
.folge-t { font-weight: 750; margin: 0; line-height: 1.35; }
.folge-q { margin: 2px 0 0; font-size: .95rem; color: var(--ink-2); }
.grau .folge-t, .grau .folge-q { color: var(--muted); }
.note-lesson { margin: 6px 0 0; font-size: .95rem; color: var(--ink-2); }
.note-fits { font-size: .875rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
.notes { padding: 0; margin: 12px 0; }

/* Landkarte */
.map-stats { display: grid; gap: 20px; }
@media (min-width: 900px) { .map-stats { grid-template-columns: 1.3fr 1fr; align-items: stretch; } }
.stat-main .counter { margin-top: 0; }
.progress { width: 100%; height: 10px; display: block; margin: 8px 0 12px; }
.progress-bg { fill: #eef2f6; }
.progress-fg { fill: var(--pri-600); }
.stat-nums { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-nums li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; box-shadow: var(--sh-rest); }
.stat-nums .num { font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-nums span:last-child { color: var(--ink-2); font-size: .95rem; font-weight: 650; }
.read-grid { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .read-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .read-grid { grid-template-columns: repeat(4, 1fr); } }
.read-grid h3 { font-size: 1rem; margin-bottom: .3em; }
.read-grid p { font-size: .95rem; color: var(--ink-2); margin: 0; }
.map-app { padding: 12px 0 40px; }
.map-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; margin-bottom: 12px; }
.chain-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tools-l { font-size: .875rem; font-weight: 750; color: var(--muted); margin-right: 4px; }
.tools-right { display: flex; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--ctl-line); border-radius: 12px; overflow: hidden; background: #fff; }
.seg-b { font: inherit; font-weight: 750; font-size: .9rem; min-height: 44px; min-width: 44px; padding: 0 14px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.seg-b + .seg-b { border-left: 1px solid var(--ctl-line); }
.seg-b[aria-pressed="true"] { background: var(--btn); color: #fff; }
.seg-b:hover:not([aria-pressed="true"]) { background: var(--pri-soft); }
.legend { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; margin-bottom: 14px; }
.legend > summary { min-height: 44px; display: flex; align-items: center; font-weight: 750; }
.legend-in { display: grid; gap: 12px 28px; padding: 4px 0 14px; }
@media (min-width: 900px) { .legend-in { grid-template-columns: 1.3fr 1fr 1.6fr; } }
.legend-h { font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.legend-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; color: var(--ink); }
.legend-list li { display: inline-flex; align-items: center; gap: 8px; }
.shape { display: inline-block; width: 26px; height: 14px; background: #eef2f6; border: 1.5px solid var(--ctl-line); flex: none; }
.shape-eingang { border-radius: 999px; }
.shape-funktion { border-radius: 3px; }
.shape-ausgang { border-radius: 3px 0 0 3px; clip-path: polygon(0 0, 72% 0, 100% 50%, 72% 100%, 0 100%); border-right: 0; }
.shape-grau { border-radius: 3px; }
.shape-farbig { border-radius: 3px; background: var(--pri-soft); border-color: var(--pri-600); }
.shape-dashed { border-radius: 3px; border-style: dashed; }
.shape-warn { width: 14px; height: 13px; border: 0; background: var(--warn); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
/* Sprunglink ueber die Karte (77 Tab-Stopps): nur bei Tastaturfokus sichtbar */
.skip-map { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-map:focus { position: static; width: auto; height: auto; overflow: visible; display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 10px; padding: 8px 16px; border-radius: 10px; background: var(--btn); color: #fff; font-weight: 750; text-decoration: none; }
.map-stage { position: relative; }
.map-scroll-hint { margin: 0 0 8px; }
@media (min-width: 1100px) { .map-above { padding-inline: 16px; } }
.map-frame { position: relative; overflow: auto; max-height: min(84vh, 1500px); background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-up); overscroll-behavior: contain; }
@media (min-width: 1100px) {
  /* Breite Fenster: die eingepasste Karte ist ganz sichtbar, kein zweiter Scrollbereich (Mausrad bleibt nicht haengen) */
  .map-stage { padding-inline: 16px; }
  .map-frame { max-height: none; overscroll-behavior: auto; }
  .map-frame.zoomed { max-height: min(84vh, 1500px); overscroll-behavior: contain; }
}
.karte { display: block; font-family: var(--font); max-width: none; }
.lane-bg { fill: var(--c-soft); opacity: .38; }
.lane-tx { fill: var(--c-ink); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.col-tx { fill: var(--muted); font-size: 13px; font-weight: 750; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.col-arrow { stroke: var(--line-strong); stroke-width: 1.5; fill: none; stroke-dasharray: 3 5; }
.edge { fill: none; stroke: #d6dee8; stroke-width: 1; transition: stroke .2s var(--ease), opacity .2s var(--ease); }
.edge.rueck { display: none; }
.edge.on { display: inline; stroke: var(--pri-600); stroke-width: 2.2; }
.edge.chain { display: inline; stroke: #0284c7; stroke-width: 2.6; }
.edge.rueck.on, .edge.rueck.chain { stroke-dasharray: 5 4; }
.nd { cursor: pointer; outline: none; transition: opacity .2s var(--ease); }
/* Knoten sind Bedienelemente (role=button): Rand >= 3:1 gegen Bahn und Karte */
.nd-bg { fill: #eef2f6; stroke: var(--ctl-line); stroke-width: 1.2; transition: fill .2s var(--ease), stroke .2s var(--ease); }
.nd-tx { fill: #334155; font-size: 12.5px; font-weight: 700; pointer-events: none; }
.s-schatten .nd-bg, .s-inaktiv .nd-bg, .s-im_bau .nd-bg, .s-konzept .nd-bg { stroke-dasharray: 4 3; }
.nd.erklaert .nd-bg { fill: var(--c-soft); stroke: var(--c-600); stroke-width: 1.6; }
.nd.erklaert .nd-tx { fill: var(--c-800); }
.nd:hover .nd-bg, .nd.hl .nd-bg, .nd:focus .nd-bg { fill: var(--c-soft); stroke: var(--c-600); stroke-width: 2; }
.nd:hover .nd-tx, .nd.hl .nd-tx, .nd:focus .nd-tx { fill: var(--c-800); }
.nd:focus-visible .nd-bg { stroke: var(--btn); stroke-width: 3; }
.nd.sel .nd-bg { stroke: var(--btn); stroke-width: 2.6; fill: var(--c-soft); }
.nd-warn { fill: var(--warn); stroke: #fff; stroke-width: 1.5px; stroke-linejoin: round; paint-order: stroke; }
.nd-num { display: none; }
.nd-num circle { fill: var(--btn); stroke: #fff; stroke-width: 2; }
.nd-num text { fill: #fff; font-size: 11px; font-weight: 800; }
.karte.dim .nd:not(.in) { opacity: .25; }
.karte.dim .edge:not(.chain) { opacity: .25; }
.karte.dim .nd.in .nd-num { display: inline; }
.karte.dim .nd.in .nd-bg { fill: var(--c-soft); stroke: var(--c-600); }
.map-tip { position: absolute; z-index: 5; max-width: 300px; background: #0f172a; color: #f1f5f9; font-size: .875rem; line-height: 1.45; padding: 10px 12px; border-radius: 10px; box-shadow: var(--sh-up); pointer-events: none; }
.map-tip strong { display: block; color: #fff; margin-bottom: 2px; }
.map-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; max-height: 62vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 22px 20px 20px; }
@media (min-width: 1100px) {
  /* Panel neben der Karte statt darueber: die Spalte der Ausgaenge bleibt sichtbar */
  .map-stage.has-panel:not(.is-list) { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
  .map-stage:not(.is-list) .map-panel { position: sticky; top: calc(var(--head-h) + 16px); left: auto; right: auto; bottom: auto; width: auto; max-height: calc(100vh - var(--head-h) - 32px); border-radius: var(--r-card); }
  .map-stage.is-list .map-panel { position: fixed; left: auto; top: auto; bottom: 24px; right: 24px; width: 380px; max-height: 70vh; border-radius: var(--r-card); box-shadow: var(--sh-hover); }
}
.panel-x { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.panel-x:hover { background: var(--pri-soft); }
.map-panel h3 { padding-right: 44px; margin-bottom: 4px; }
.map-panel h3:focus { outline: none; }
.map-panel h3:focus-visible { outline: 3px solid var(--btn); outline-offset: 2px; }
.pn-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.map-panel dl { margin: 12px 0 0; display: grid; gap: 10px; }
.map-panel dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
.map-panel dd { margin: 0; font-size: .95rem; }
.lnk { font: inherit; color: var(--pri-ink); background: none; border: 0; padding: 2px 0; cursor: pointer; vertical-align: top; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.lnk:hover { color: var(--btn-hover); }
.panel-steps { padding-left: 1.4em; margin: 8px 0 0; }
.panel-steps li { margin-bottom: 4px; }
.map-hint { margin-top: 10px; }
.map-list { margin-top: 28px; }
.li-group { margin-top: 22px; }
.li-group h3 { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; }
.li-count { font-size: .875rem; color: var(--muted); font-weight: 700; }
.li-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 720px) { .li-group ul { grid-template-columns: 1fr 1fr; } }
.li-block { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 12px; padding: 12px 14px; }
.li-block.aus { display: none; }
.li-head { display: flex; align-items: center; gap: 4px 10px; margin: 0 0 4px; flex-wrap: wrap; }
.li-name { font-weight: 750; color: var(--ink); flex: 1 1 0; min-width: 0; }
.li-head .shape { align-self: flex-start; margin-top: .3em; }
/* Typ als Ueberzeile statt als einsames, rechtsbuendiges Wort */
.li-typ { order: -1; flex-basis: 100%; margin: 0; font-size: .75rem; line-height: 1.3; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 750; }
.li-kurz { font-size: .95rem; color: var(--ink-2); margin: 0 0 8px; }
.li-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
/* Handy mit JS: der Kurztext steht im Panel (Tippen auf den Namen), die Liste bleibt kurz */
.li-kompakt .li-kurz { display: none; }
.li-kompakt .li-block { padding: 10px 12px; }
.li-kompakt .li-head { margin-bottom: 6px; }
.st { font-size: .875rem; font-weight: 700; color: var(--bat-800); background: var(--bat-soft); padding: 1px 9px; border-radius: 999px; }
.st-dashed { color: var(--ink-2); background: #fff; border: 1.5px dashed var(--muted); }
.st-warn { color: var(--warn-ink); background: #fff7ed; }
.chain-cards { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .chain-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .chain-cards { grid-template-columns: repeat(3, 1fr); } }
.chain-card { border-top: 4px solid var(--c); padding: 20px; box-shadow: var(--sh-rest); }
.chain-id { font-family: var(--mono); font-size: .875rem; font-weight: 700; color: var(--c-ink); margin: 0 0 4px; }
.chain-card h3 { font-size: 1.0625rem; }
.chain-card h3 a { color: var(--ink); }
.chain-card p { font-size: .95rem; color: var(--ink-2); }
.chain-card details summary { font-size: .9rem; font-weight: 750; color: var(--pri-ink); min-height: 36px; display: flex; align-items: center; }
.chain-steps { font-size: .9rem; margin: 6px 0 0; }

/* Video-Seite */
.crumbs { padding-top: 28px; font-size: .9rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: "›"; margin: 0 8px 0 4px; color: var(--muted); }
.crumbs a { color: var(--ink-2); font-weight: 650; }
.v-head { padding-top: 20px; padding-bottom: 12px; }
.v-head h1 { max-width: 20ch; }
.vlang-note { display: inline-flex; gap: 8px; align-items: flex-start; background: var(--pri-soft); color: var(--pri-800); font-weight: 700; padding: 6px 12px; border-radius: 10px; font-size: .95rem; }
.vlang-note .i { margin-top: .2em; }
.v-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.v-layout { display: grid; gap: 40px; padding-bottom: 20px; }
@media (min-width: 1100px) { .v-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; } }
.v-main { min-width: 0; max-width: 800px; }
.v-side { display: none; }
@media (min-width: 1100px) { .v-side { display: block; } }
.toc { position: sticky; top: calc(var(--head-h) + 20px); padding: 18px; box-shadow: var(--sh-rest); max-height: calc(100vh - var(--head-h) - 40px); overflow: auto; }
.toc-h { font-size: .875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.toc a { display: block; padding: 5px 8px; border-radius: 8px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { background: var(--pri-soft); color: var(--ink); }
.v-video { margin: 8px 0 28px; }
.v-video > p.small { margin-top: 12px; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-up); background: #0f172a; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-poster { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px 28px; color: #fff;
  background: radial-gradient(90% 90% at 90% 10%, rgba(34, 197, 94, .45), transparent 55%), radial-gradient(70% 80% at 0% 100%, rgba(45, 212, 191, .3), transparent 60%), linear-gradient(160deg, #0f172a, #1e293b); }
.yt-series { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: rgba(255, 255, 255, .8); }
.yt-title { font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem); font-weight: 800; line-height: 1.1; max-width: 16ch; opacity: .35; }
/* "In Produktion": kein halb durchsichtiger Titel unter dem Hinweis (wirkte wie doppelter Text) */
.yt-soon .yt-poster { justify-content: flex-start; }
.yt-soon .yt-title { display: none; }
.yt-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 20px; color: #fff; background: rgba(15, 23, 42, .45); }
.yt-over .i-xl { opacity: .9; }
.yt-state { font-size: 1.2rem; font-weight: 800; margin: 0; }
.yt-detail { max-width: 46ch; margin: 0; color: #e2e8f0; font-size: .95rem; }
.yt-detail a { color: #bae6fd; }
.yt-remember { font-size: .875rem; display: flex; gap: 8px; align-items: center; min-height: 44px; }
.yt-remember input { width: 18px; height: 18px; }
.yt-alt { margin-top: 10px; font-size: .95rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.yt-revoke { font: inherit; font-size: .95rem; color: var(--pri-ink); background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.yt-revoke:hover { color: var(--btn-hover); }
.revoke-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 4px 0 1em; }
.revoke-state { margin: 0; font-size: .95rem; color: var(--ink-2); }
.keypoints { margin: 0 0 20px; border-left: 5px solid var(--pri-600); }
.kp { margin: 0; padding-left: 1.3em; }
.kp li { margin-bottom: .5em; font-weight: 650; }
.kp li::marker { color: var(--pri-ink); font-weight: 800; }
.chapters-v { padding: 6px 24px; box-shadow: var(--sh-rest); }
.chapters-v > summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; }
.chapters-v > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s var(--ease); }
.chapters-v[open] > summary::after { transform: rotate(225deg); }
.chap { list-style: none; padding: 0; margin: 6px 0 10px; columns: 2 240px; column-gap: 28px; }
.chap li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; break-inside: avoid; font-size: .95rem; }
.chap-n { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.chap-t { font: inherit; font-family: var(--mono); font-size: .85rem; border: 1px solid var(--ctl-line); background: #fff; border-radius: 6px; cursor: pointer; min-height: 24px; }
.article { font-size: 1.0625rem; }
.article p, .art-sec > p { max-width: 68ch; }
.art-sec { margin-top: 44px; scroll-margin-top: calc(var(--head-h) + 16px); }
.art-sec h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); display: flex; align-items: center; gap: 8px; }
.formula { display: flex; gap: 12px; align-items: center; background: var(--pri-soft); color: var(--pri-800); border-radius: 12px; padding: 14px 18px; font-weight: 750; font-size: 1.1rem; }
.formula .i { width: 26px; height: 26px; flex: none; }
.calc-table { margin: 20px 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 6px; box-shadow: var(--sh-rest); }
.calc-result { font-weight: 800; color: var(--ink); background: #f8fafc; border-radius: 10px; padding: 8px 12px; margin: 10px 0; font-variant-numeric: tabular-nums; }
.tank { margin: 12px 0 24px; }
.tank figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: .95rem; margin-bottom: 8px; color: var(--ink-2); }
.tank-bar { width: 100%; height: 22px; display: block; border-radius: 11px; overflow: hidden; }
.tank-bg { fill: #eef2f6; }
.tank-pv { fill: var(--pv-600); transition: width .3s var(--ease); }
.tank-grid { fill: var(--grid-600); }
.tank-legend .dot-l { background: var(--c-600); }
.tank-legend { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--ink-2); }
.tank-legend li { display: inline-flex; align-items: center; gap: 8px; }
.bars { margin: 20px 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--sh-rest); }
.bars figcaption { margin-bottom: 10px; }
.bars .unit { color: var(--muted); font-size: .9rem; }
.bars ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.bar-l { font-size: .95rem; font-weight: 650; }
.bar-v { font-weight: 800; font-variant-numeric: tabular-nums; grid-column: 2; grid-row: 1; }
.bar { grid-column: 1 / -1; width: 100%; height: 22px; display: block; }
.bar rect { fill: var(--c-600); }
@media (min-width: 720px) {
  .bar-row { grid-template-columns: 220px 1fr 110px; }
  .bar { grid-column: 2; grid-row: 1; }
  .bar-v { grid-column: 3; text-align: right; }
}
.highlight { display: grid; gap: 4px; justify-items: start; background: linear-gradient(135deg, var(--c-soft), #fff 70%); border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 14px; padding: 18px 20px; margin: 20px 0; position: relative; }
.hl-value { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.hl-label { color: var(--ink-2); font-weight: 650; }
.stamp { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; border: 2px solid var(--bat-600); color: var(--bat-800); background: #fff; padding: 2px 12px; border-radius: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .875rem; }
blockquote.rule { margin: 20px 0; padding: 24px 26px; border-radius: var(--r-card); background: #0f172a; color: #f8fafc; font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); font-weight: 750; line-height: 1.4; box-shadow: var(--sh-up); border-left: 6px solid var(--pri); }
blockquote.rule p { margin: 0; }
.status-tile { margin: 20px 0; background: #0f172a; border-radius: var(--r-card); padding: 18px; box-shadow: var(--sh-up); color: #e2e8f0; }
.status-tile figcaption { font-size: .875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #cbd5e1; margin-bottom: 12px; }
.status-tile ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 720px) { .status-tile ul { grid-template-columns: repeat(4, 1fr); } }
.st-card { background: #1e293b; border: 1px solid #334155; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.st-l { display: flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 700; color: #cbd5e1; }
.st-l .i { color: var(--c, #fb923c); }
.st-v { font-size: 1.7rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.st-v small { font-size: .9rem; color: #cbd5e1; font-weight: 700; }
.b-grid .st-v { color: #c4b5fd; }
.b-battery .st-v { color: #86efac; }
.st-off .st-state { color: #fda4af; }
.st-warnend .st-state { color: #fdba74; }
.st-state { letter-spacing: .06em; }
.calcs { background: linear-gradient(160deg, #f0f9ff, #fff); border: 1px solid var(--line); border-radius: var(--r-big); padding: 24px; }
@media (min-width: 720px) { .calcs { padding: 32px; } }
.calc-grid { display: grid; gap: 18px; margin-top: 16px; }
.calcs > p.small { margin: 16px 0 0; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
.calc { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.calc h3 { margin: 0; }
.calc-in { display: grid; gap: 10px; }
.calc label { display: grid; gap: 4px; font-size: .95rem; font-weight: 700; color: var(--ink-2); }
.calc input[type="number"] { font: inherit; font-size: 1.05rem; min-height: 44px; padding: 6px 12px; border: 1px solid var(--ctl-line); border-radius: 10px; background: #fff; color: var(--ink); font-variant-numeric: tabular-nums; width: 100%; }
.calc input[type="number"]:focus-visible { outline-offset: 0; }
.calc input[type="range"] { width: 100%; min-height: 32px; accent-color: var(--btn); }
.presets { display: flex; gap: 8px; margin: 0; flex-wrap: wrap; }
.calc-out { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.calc-out p { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; margin: 0; padding: 4px 0; font-size: .95rem; }
.calc-out output { white-space: nowrap; text-align: right; margin-left: auto; }
.calc-out p + p { border-top: 1px dashed var(--line); }
output { font-weight: 800; font-variant-numeric: tabular-nums; }
.calc-key output { color: var(--pri-ink); font-size: 1.05rem; }
.calc-verdict { justify-content: flex-start !important; }
.calc-verdict output { color: var(--ink); }
.calc .btn { align-self: flex-start; }
.map-blocks .card { padding: 18px; border-top: 4px solid var(--c); box-shadow: var(--sh-rest); }
.map-blocks h3 { font-size: 1.0625rem; }
.map-blocks p { font-size: .95rem; color: var(--ink-2); margin: 0; }
.chips-row { margin: 16px 0; }
.downloads { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .downloads { grid-template-columns: repeat(3, 1fr); } }
.dl { display: flex; gap: 12px; align-items: flex-start; border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 16px; background: #f8fafc; color: var(--muted); }
.dl p { margin: 0; }
.dl-t { font-weight: 750; color: var(--ink-2); line-height: 1.35; }
.dl-s { font-size: .875rem; }
.sources { padding-left: 1.2em; }
.sources li { margin-bottom: .5em; }
.prevnext { display: grid; gap: 12px; margin: 40px 0 8px; }
@media (min-width: 720px) { .prevnext { grid-template-columns: 1fr 1fr; } }
.pn { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); box-shadow: var(--sh-rest); }
a.pn:hover { box-shadow: var(--sh-up); color: var(--ink); }
.pn-l { font-size: .875rem; color: var(--muted); font-weight: 750; }
.pn-t { font-weight: 750; }
.pn-next { text-align: right; border-style: dashed; background: #f8fafc; }
.pn-next .pn-t { color: var(--muted); }
.pn-more { font-size: .95rem; color: var(--ink-2); }
.ref-grau { color: var(--muted); }

/* Glossar */
.gl-tools { position: sticky; top: var(--head-h); z-index: 20; padding-block: 12px; background: rgba(244, 247, 251, .94); border-bottom: 1px solid var(--line); }  /* volle Fensterbreite, Inhalt in .wrap */
.gl-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--ctl-line); border-radius: 12px; padding: 0 12px; max-width: 520px; margin-bottom: 10px; }
.gl-search label { display: grid; place-items: center; color: var(--muted); }
.gl-search input { font: inherit; border: 0; background: transparent; min-height: 46px; width: 100%; color: var(--ink); }
.gl-search input:focus { outline: none; }
.gl-search:focus-within { outline: 3px solid var(--btn); outline-offset: 2px; }
.az ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.az a { display: grid; place-items: center; min-width: 40px; min-height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 800; text-decoration: none; color: var(--ink-2); }
.az a:hover { background: var(--pri-soft); color: var(--pri-800); }
.gl-list { padding-bottom: 20px; }
.g-letter { margin-top: 36px; scroll-margin-top: calc(var(--head-h) + 110px); }
.g-letter h2 { font-size: 1.6rem; color: var(--pri-ink); border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.g-letter dl { margin: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .g-letter dl { grid-template-columns: 1fr 1fr; } }
.g-entry { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--sh-rest); scroll-margin-top: calc(var(--head-h) + 110px); }
.g-entry:target { outline: 3px solid var(--pri-600); outline-offset: 2px; }
.g-entry dt { font-weight: 800; font-size: 1.1rem; margin-bottom: 6px; }
.g-abbr { font-family: var(--mono); font-size: .85rem; font-weight: 700; color: var(--pri-800); background: var(--pri-soft); padding: 1px 7px; border-radius: 6px; margin-left: 6px; vertical-align: .1em; }
.g-entry dd { margin: 0; }
.g-entry dd > p:first-child { color: var(--ink-2); font-size: 1rem; }
.g-metas { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin: 0; font-size: .9rem; }
.g-k { font-weight: 750; color: var(--muted); }
.g-entry.aus, .g-letter.aus { display: none; }

/* Textseiten */
.text-body { padding-bottom: 32px; }
.t-sec { margin-top: 36px; }
.t-sec h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); }
.p-legal .t-sec p { max-width: 72ch; }
.draft-tag { display: inline-block; font-size: .875rem; font-weight: 700; color: #713f12; background: #fef3c7; border-radius: 8px; padding: 2px 10px; }
.timeline { list-style: none; padding: 0 0 0 28px; margin: 18px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--line-strong), var(--pri-600)); }
.timeline li { position: relative; padding-bottom: 20px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--pri-600); }
.timeline li:last-child::before { background: var(--pri-600); }
.tl-date { font-size: .875rem; font-weight: 800; color: var(--pri-ink); text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.timeline h3 { margin: 2px 0 4px; font-size: 1.125rem; }
.timeline p:last-child { margin: 0; color: var(--ink-2); }
.grid-2 .card h3 { font-size: 1.0625rem; }
.grid-2 .card p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.grid-2 .card .chips { margin-top: 14px; }

/* Fusszeile */
.site-foot { margin-top: 24px; background: #eef2f7; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }
.foot-grid { display: grid; gap: 28px; padding-block: 44px 24px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot-tag { margin: 12px 0; max-width: 42ch; }
.foot-privacy { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; }
.foot-privacy .i { color: var(--ok); margin-top: .2em; }
.foot-h { font-size: .875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.foot-col a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; font-weight: 650; }
.foot-col a:hover { color: var(--pri-ink); text-decoration: underline; }
.foot-note { border-top: 1px solid var(--line-strong); padding-block: 18px 28px; font-size: .875rem; }
.foot-note p { max-width: 110ch; }
.foot-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); margin: 0; }

/* Weiche und 404 */
.p-weiche { min-height: 100vh; }
.weiche { min-height: calc(100vh - 40px); display: grid; place-items: center; padding: 32px 16px; }
.weiche-card { max-width: 560px; width: 100%; text-align: center; padding: 40px 28px; }
.weiche-card h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.weiche-card .lead { margin-inline: auto; margin-bottom: .4em; }
.weiche-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 26px 0 18px; }
.btn-lang { min-width: 160px; min-height: 56px; font-size: 1.1rem; background: var(--btn); color: #fff; box-shadow: 0 8px 20px rgba(3, 105, 161, .25); }
.btn-lang:hover { background: var(--btn-hover); color: #fff; }
.nf-code { font-size: 4rem; font-weight: 800; color: var(--pri-ink); line-height: 1; margin: 0 0 12px; }
.nf-block { margin-bottom: 12px; }
.nf-h { font-size: 1.5rem; }

/* 7 Bewegung ------------------------------------------------------------------ */
@keyframes fluss { to { stroke-dashoffset: -40; } }
@keyframes fluss-x { to { background-position: 22px 0; } }
@keyframes puls { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(2.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hs-puls { opacity: .5; }
}

/* 8 Druck (Grundlage fuer die spaetere PDF-Fassung, I-005) --------------------- */
@media print {
  @page { margin: 18mm 16mm; }
  body { background: #fff; font-size: 11pt; color: #000; }
  .band, .site-head, .site-foot, .skip, .v-side, .v-video, .calcs, .invite-wrap, .crumbs, .prevnext, .chapters-v, .map-tools, .hero-media, .map-panel { display: none !important; }
  .v-layout { display: block; }
  .card, .calc-table, .bars, .highlight, .status-tile, blockquote.rule { box-shadow: none !important; break-inside: avoid; }
  blockquote.rule, .status-tile { background: #fff; color: #000; border: 1px solid #000; }
  .st-card { background: #fff; border-color: #999; } .st-v, .st-l, .st-v small { color: #000 !important; }
  pre { background: #f5f5f5; color: #000; border: 1px solid #ccc; white-space: pre-wrap; }
  a { color: #000; text-decoration: underline; }
  a.ext::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  h2, h3 { break-after: avoid; }
}

.trailer-box { max-width: 64rem; }
.trailer-box .yt-poster .yt-title { display: none; }
