/* Online-Praxis Krefft - Design-Tokens und Komponenten laut docs/design-leitlinie.md */

@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/roboto-slab-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/roboto-slab-latin-700-normal.woff2") format("woff2"); }

:root {
  --brand: #0f4c5c;
  --brand-hover: #0b3a47;
  --brand-weak: #e3eef0;
  --accent: #c8661a;
  --text-strong: #15242a;
  --text-weak: #4c6068;
  --stroke-strong: #93a6ad;
  --stroke-weak: #d9e2e5;
  --fill: #f4f7f8;
  --background: #ffffff;
  --error: #a4322b;
  --success: #2d6a4f;

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 80px;

  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Roboto Slab", Georgia, "Times New Roman", serif;

  --fs-base: 17px;
  --fs-h1: 30px;
  --fs-h2: 23px;
  --fs-h3: 20px;
  --measure: 68ch;
  --container: 1120px;
  --gutter: 20px;
  --radius: 6px;
  --elev-1: 0 1px 3px rgba(21, 36, 42, 0.12);
  --transition: 120ms ease;
}

@media (min-width: 900px) {
  :root { --fs-base: 18px; --fs-h1: 36px; --fs-h2: 26px; --gutter: 24px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text-strong);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
p, ul, ol, dl, table, figure { margin: 0 0 var(--sp-2); }
code { font-size: 15px; background: var(--fill); padding: 0 4px; border-radius: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--brand);
  line-height: 1.25;
  margin: 0 0 var(--sp-2);
  hyphens: manual;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); margin-top: var(--sp-5); }
h3 { font-size: var(--fs-h3); }
h1 strong, h2 strong, h3 strong { font-weight: inherit; }
h2:first-child { margin-top: 0; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.main:focus { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--sp-2); top: -100px; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px var(--sp-2); min-height: 48px; display: inline-flex; align-items: center;
  border-radius: var(--radius);
}
.skip-link:focus { top: var(--sp-1); color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
/* "narrow": gleiche Container-Kante wie Hero und Ueberschriften, Inhalt auf Lesebreite begrenzt */
/* Schmale Spalte: der Container selbst ist die Lesespalte (mittig im Band); Kinder nicht einzeln begrenzen,
   sonst laufen Ueberschriften (groessere Schrift, ch-Einheit) und Fliesstext an verschiedenen Kanten. */
.container.narrow { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.narrow > * { max-width: none; }
/* Abschnitte: 32px mobil, 48px Desktop. Nach farbigem Band oder Hero bekommt ein weisser Abschnitt den vollen Abstand;
   weiss auf weiss nur den halben (kein Doppelabstand, aber Luft ueber der Ueberschrift). */
.section { padding: var(--sp-4) 0; }
.section:not(.band) + .section:not(.band), .page-head + .section:not(.band) { padding-top: var(--sp-2); }
.page-head { padding: var(--sp-4) 0 var(--sp-2); }
.page-head h1 { margin-bottom: 0; }
@media (min-width: 900px) {
  .section { padding: var(--sp-5) 0; }
  .page-head { padding: var(--sp-5) 0 var(--sp-3); }
}
.band-fill { background: var(--fill); }
.band-brand { background: var(--brand); color: #fff; }
.band-brand h1, .band-brand h2, .band-brand h3, .band-brand a:not(.btn) { color: #fff; }
.band-brand .prose, .band-brand p { color: #fff; }
.card .band-fill, .band-fill .card { background: var(--background); }

.prose { max-width: var(--measure); }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-top: var(--sp-4); }
.prose ul, .prose ol { padding-left: var(--sp-3); }
.prose li { margin-bottom: 4px; }
.lead { font-size: 19px; line-height: 1.55; max-width: var(--measure); }
.intro { margin-bottom: var(--sp-3); }
.text-weak, .meta { color: var(--text-weak); }
.meta { font-size: 16px; }
.hint { color: var(--text-weak); font-size: 16px; margin-bottom: 6px; }
.kicker { color: var(--text-weak); font-size: 16px; margin-bottom: var(--sp-1); }
.breadcrumb { color: var(--text-weak); font-size: 16px; margin-bottom: var(--sp-1); }
.breadcrumb a { display: inline-block; padding: 12px 0; }
.alt-link { margin-top: var(--sp-2); }
.alt-link a { display: inline-block; padding: 12px 0; }
.next-step { background: var(--fill); border-radius: var(--radius); padding: var(--sp-2); margin-top: var(--sp-3); }
.pre { white-space: pre-wrap; }
.plain-list { list-style: none; padding: 0; }
.plain-list li { margin-bottom: 0; }

/* ---------- Header / Navigation ---------- */
.site-header { border-bottom: 1px solid var(--stroke-weak); background: var(--background); }
.header-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-1) var(--sp-3); min-height: 64px; }
.brand { white-space: nowrap; font-family: var(--font-head); font-size: 20px; color: var(--brand); text-decoration: none; padding: var(--sp-1) 0; font-weight: 700; }
.menu-toggle {
  min-height: 48px; padding: 0 var(--sp-2); background: var(--background); color: var(--brand);
  border: 2px solid var(--brand); border-radius: var(--radius); font: inherit; font-weight: 500; cursor: pointer;
}
.menu-toggle[hidden] { display: none; }
.menu-toggle:hover { background: var(--brand-weak); }
.site-nav { width: 100%; padding-bottom: var(--sp-2); }
.js .site-nav { display: none; }
.js .site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a, .link-button {
  display: block; padding: 12px 0; min-height: 48px; color: var(--brand); text-decoration: none; font: inherit; font-weight: 500;
}
.site-nav a:hover, .link-button:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.nav-account { border-top: 1px solid var(--stroke-weak); margin-top: var(--sp-1) !important; padding-top: var(--sp-1) !important; }
.link-button { background: none; border: 0; cursor: pointer; text-align: left; width: 100%; }
.inline-form { margin: 0; }

@media (min-width: 1160px) {
  .menu-toggle, .menu-toggle[hidden] { display: none; }
  .site-nav, .js .site-nav { display: flex; width: auto; flex: 1; align-items: center; justify-content: space-between; padding: 0; gap: var(--sp-2); }
  .site-nav ul { display: flex; gap: 18px; align-items: center; }
  .site-nav .nav-list { margin-left: var(--sp-1); }
  .site-nav .nav-list a, .site-nav .nav-account a, .site-nav .link-button { font-size: 16px; }
  .site-nav a, .link-button { display: inline-block; padding: 12px 0; width: auto; white-space: nowrap; }
  .nav-account { border-top: 0; margin: 0 !important; padding: 0 !important; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--fill); margin-top: 0; padding: var(--sp-5) 0; border-top: 1px solid var(--stroke-weak); }
.crisis { margin-bottom: var(--sp-4); }
.crisis-title { font-size: var(--fs-h3); margin-top: 0; }
.crisis .prose { max-width: 80ch; }
.footer-meta p { margin-bottom: var(--sp-1); color: var(--text-weak); }
.footer-links { list-style: none; padding: 0; margin: var(--sp-2) 0; display: flex; flex-wrap: wrap; gap: 0 var(--sp-3); }
.footer-links a { display: inline-block; padding: 12px 0; min-height: 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 24px; border-radius: var(--radius); border: 2px solid var(--brand);
  font: inherit; font-weight: 500; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
  width: 100%;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn-secondary { background: var(--background); color: var(--brand); }
.btn-secondary:hover { background: var(--brand-weak); color: var(--brand-hover); }
.icon { flex: none; }
.actions { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); align-items: stretch; }
.actions form { margin: 0; }
@media (min-width: 600px) {
  .btn { width: auto; }
  .actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
}
.btn-light { background: transparent; color: #fff; border-color: #fff; }
.btn-light:hover { background: #fff; color: var(--brand); }
.soon { margin: 0; padding: 12px 0; color: var(--text-weak); }

/* ---------- Hero ---------- */
.hero { padding: 24px 0; }
.hero.has-image { background: var(--brand-weak); }
.hero-grid { display: grid; gap: var(--sp-4); align-items: center; }
.hero h1 { max-width: 20ch; }
.hero-media { max-width: 520px; }
.hero-media img { border-radius: 12px; }
.hero-media .media.is-portrait { max-width: 400px; }
.hero-media .media.is-portrait img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (min-width: 900px) { .hero-media .media.is-portrait { margin-left: auto; } }
@media (min-width: 900px) {
  .hero { padding: 40px 0; }
  .hero-grid:not(.no-image) { grid-template-columns: 1.2fr 1fr; gap: var(--sp-5); }
}

/* ---------- Bilder / Platzhalter ---------- */
.media { margin: 0; }
.media img { border-radius: var(--radius); width: 100%; }
.media figcaption { color: var(--text-weak); font-size: 16px; margin-top: var(--sp-1); }
.placeholder {
  background: var(--fill); border: 2px dashed var(--stroke-strong); border-radius: var(--radius);
  min-height: 220px; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: var(--sp-2); color: var(--text-weak);
}
.placeholder small { display: block; margin-top: 4px; }

/* ---------- Abschnitte ---------- */
.split { display: grid; gap: var(--sp-4); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
  .split.image-left .split-media { order: -1; }
}
.card-grid, .module-grid { display: grid; gap: var(--sp-2); margin-top: var(--sp-2); }
@media (min-width: 600px) { .card-grid, .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card-grid.pricing { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--fill); border-radius: var(--radius); padding: var(--sp-3); box-shadow: var(--elev-1); }
.card h3 { margin-top: 0; }
.card h3 a { display: block; padding: 10px 0; }
.card .prose > :last-child { margin-bottom: 0; }
.module-card { display: flex; flex-direction: column; }
.card-action { margin-top: auto; padding-top: var(--sp-2); }
.price { font-family: var(--font-head); font-size: var(--fs-h3); color: var(--brand); margin-bottom: var(--sp-1); }
.outro { margin-top: var(--sp-3); }
.cta-block { text-align: left; }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; margin-bottom: 20px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.steps h3 { margin-bottom: var(--sp-1); }

.notice { background: var(--brand-weak); border-radius: var(--radius); padding: var(--sp-3); margin: var(--sp-3) 0 0; }
.notice h2 { margin-top: 0; font-size: var(--fs-h3); }

.faq-item { border-bottom: 1px solid var(--stroke-weak); }
.faq-item summary { cursor: pointer; padding: var(--sp-2) 0; min-height: 48px; font-weight: 500; list-style-position: outside; }
.faq-item[open] summary { color: var(--brand); }
.faq-item .prose { padding-bottom: var(--sp-2); }

.facts { margin: var(--sp-2) 0; }
.facts div { margin-bottom: var(--sp-1); }
.facts dt { color: var(--text-weak); font-size: 16px; }
.facts dd { margin: 0; }

.lesson-list { padding-left: var(--sp-3); }
.lesson-list li { margin-bottom: 0; }
.lesson-list a, .plain-list a { display: inline-block; padding: 12px 0; }
.lesson-nav { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); }
@media (min-width: 600px) { .lesson-nav { flex-direction: row; justify-content: space-between; } }
.video-box, .reflect { background: var(--fill); border-radius: var(--radius); padding: var(--sp-3); margin-top: var(--sp-3); }
.reflect h2 { margin-top: 0; font-size: var(--fs-h3); }
.questions { padding-left: var(--sp-3); }
.questions fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-3); }
.questions legend { font-weight: 500; margin-bottom: var(--sp-1); padding: 0; }
.reflect-hint { color: var(--text-weak); margin-top: var(--sp-1); }
.reflect-result { margin-top: var(--sp-2); }
.reflect-result ul { padding-left: var(--sp-3); }

/* ---------- Gestufte Darstellung (details/summary) ---------- */
.more { margin: var(--sp-1) 0 0; }
.more > summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: 10px; color: var(--brand); font-weight: 500; list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-left: 2px; }
.more[open] > summary::before { transform: rotate(45deg); }
.more > summary:hover { text-decoration: underline; }
.more > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.more > .prose { padding-top: var(--sp-1); }
.more > .prose > :last-child { margin-bottom: 0; }
.card .more, .steps .more { margin-top: 4px; }
.card .more > summary, .steps .more > summary { font-size: 16px; }
.accordion .faq-item .prose { padding-bottom: var(--sp-2); }
.prose.summary > :last-child { margin-bottom: 0; }
.accordion .faq-item > summary h3 { display: inline; margin: 0; font: inherit; font-weight: 500; color: inherit; }
.faq-item > summary { list-style: none; display: flex; align-items: center; gap: 10px; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::before { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-left: 2px; }
.faq-item[open] > summary::before { transform: rotate(45deg); }
.faq-item > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
@media print { .more > summary { display: none; } .faq-item > summary::before { display: none; } }

/* ---------- Formulare ---------- */
.form { max-width: 560px; margin-top: var(--sp-3); }
.field { margin-bottom: var(--sp-3); }
.field > label { display: block; font-weight: 500; margin-bottom: 4px; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea {
  display: block; width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--text-strong);
  background: var(--background); border: 2px solid var(--stroke-strong); border-radius: var(--radius);
}
textarea { min-height: 140px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-color: var(--brand); }
.has-error input, .has-error textarea { border-color: var(--error); }
.error { color: var(--error); margin: 6px 0 0; font-size: 16px; font-weight: 500; }
.error::before {
  content: "!"; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
  margin-right: 8px; border-radius: 50%; background: var(--error); color: #fff; font-size: 15px; font-weight: 700; vertical-align: 1px;
}
.error-summary:focus { outline: 3px solid var(--error); outline-offset: 2px; }
.error-summary h2 { font-size: var(--fs-h3); margin: 0 0 var(--sp-1); color: var(--error); }
.error-summary ul { margin: 0; padding-left: var(--sp-3); }
.error-summary a { display: inline-block; padding: 8px 0; color: var(--error); font-weight: 500; }
.error-box { border: 2px solid var(--error); border-radius: var(--radius); padding: var(--sp-2); margin-bottom: var(--sp-3); }
.check-label { display: flex; gap: 12px; align-items: flex-start; width: 100%; min-height: 48px; padding: 10px 0; cursor: pointer; font-weight: 400; }
.check-label > span a { display: inline; }
.check-label input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--brand); }
.field.check { margin-bottom: var(--sp-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.disclosure { margin-bottom: var(--sp-3); }
.disclosure summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; color: var(--brand); font-weight: 500; }
.times { border: 0; padding: 0; margin: var(--sp-1) 0 0; }
.choices { border: 0; padding: 0; margin: 0 0 var(--sp-3); min-width: 0; }
.choices legend { font-weight: 500; padding: 0; margin-bottom: 4px; }
.choices .check-label { min-height: 40px; padding: 6px 0; }
.form.inline { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: var(--sp-2) 0 0; }
.form.inline label { font-weight: 500; }
.form.inline input[type="text"], .form.inline select { min-height: 40px; padding: 4px 8px; }
.times-table { border-collapse: collapse; margin: 0; }
.times-table th, .times-table td { padding: 4px 8px; text-align: center; font-weight: 400; }
.times-table tbody th { text-align: left; font-weight: 500; }
.check-cell { display: flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; cursor: pointer; }
.check-cell input { width: 24px; height: 24px; accent-color: var(--brand); }
.flash { background: var(--brand-weak); border-left: 4px solid var(--success); padding: var(--sp-2); margin: var(--sp-2) 0 0; border-radius: var(--radius); }

/* ---------- Tabellen / Admin ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table td a { display: inline-block; padding: 12px 0; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--stroke-weak); vertical-align: top; }
.table thead th { background: var(--fill); font-weight: 500; font-size: 16px; color: var(--text-weak); }
.order-table th { width: 30%; background: transparent; font-weight: 500; }
.admin-nav { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); margin-bottom: var(--sp-3); border-bottom: 1px solid var(--stroke-weak); }
.admin-nav a { padding: 12px 0; min-height: 48px; text-decoration: none; font-weight: 500; }
.admin-nav a[aria-current="page"] { border-bottom: 3px solid var(--brand); }
.badge { display: inline-block; font-size: 16px; background: var(--brand-weak); color: var(--text-weak); padding: 0 8px; border-radius: 999px; }
.grant-form { display: flex; flex-wrap: wrap; gap: var(--sp-1); align-items: center; margin: 0; }
.grant-form input[type="text"] { width: 220px; max-width: 100%; }
.grant-form .btn { width: auto; white-space: nowrap; }
@media (min-width: 900px) { .grant-form { flex-wrap: nowrap; } .action-cell { white-space: nowrap; } }
.module-edit { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: flex-start; margin: 0; }
.module-edit .field { margin: 0; }
.module-edit input[type="text"] { width: 120px; }
.module-edit .btn { width: auto; }
.inline-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-2); max-width: none; }
.inline-search .field { margin: 0; }
.inline-search .actions { margin: 0; }
.request { margin-bottom: var(--sp-3); }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer .footer-links, .actions { display: none; }
}

/* Buttons und Navigation immer 17px */
.btn, .site-nav a, .link-button, .menu-toggle, .admin-nav a { font-size: 17px; }

/* ---------- Bilder in Abschnitten ---------- */
.split-media .media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.split-media .media.is-portrait img { aspect-ratio: 4 / 5; }
.split-media .placeholder { aspect-ratio: 3 / 2; }
.split-media .placeholder.is-portrait { aspect-ratio: 4 / 5; }
.image-band .band-figure { margin: 0; }
.image-band img, .band-placeholder { display: block; width: 100%; height: 220px; object-fit: cover; border-radius: 12px; }
.band-placeholder { aspect-ratio: auto; min-height: 0; }
.image-band figcaption { color: var(--text-weak); font-size: 16px; text-align: right; margin-top: var(--sp-1); }
@media (min-width: 900px) {
  .band-h-240 img, .band-h-240 .band-placeholder { height: 240px; }
  .band-h-280 img, .band-h-280 .band-placeholder { height: 280px; }
  .band-h-320 img, .band-h-320 .band-placeholder { height: 320px; }
  .band-h-360 img, .band-h-360 .band-placeholder { height: 360px; }
  .band-h-400 img, .band-h-400 .band-placeholder { height: 400px; }
  .band-h-440 img, .band-h-440 .band-placeholder { height: 440px; }
  .band-h-480 img, .band-h-480 .band-placeholder { height: 480px; }
}

/* Lektionsblöcke */
.lesson-progress { display: block; width: 100%; max-width: var(--measure); height: 8px; margin: 0 0 var(--sp-3); border: 0; border-radius: 4px; background: var(--stroke-weak); accent-color: var(--brand); overflow: hidden; }
.lesson-progress::-webkit-progress-bar { background: var(--stroke-weak); border-radius: 4px; }
.lesson-progress::-webkit-progress-value { background: var(--brand); border-radius: 4px; }
.lesson-progress::-moz-progress-bar { background: var(--brand); border-radius: 4px; }
.perspective-row { color: var(--text-weak); font-size: 16px; margin-bottom: var(--sp-1); }
.perspective-toggle { display: inline-block; min-height: 48px; padding: 8px 4px; background: none; border: 0; font: inherit; font-weight: 500; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.perspective-toggle:hover { color: var(--brand-hover); }

.block { max-width: var(--measure); margin: var(--sp-4) 0 0; }
.block > :last-child { margin-bottom: 0; }
.block h3 { margin-top: 0; }
.block-for { display: inline-block; margin: 0 0 var(--sp-1); padding: 2px 10px; border-radius: 12px; background: var(--brand-weak); color: var(--brand); font-size: 16px; font-weight: 500; }
[data-perspective="betroffene"] .for-angehoerige, [data-perspective="angehoerige"] .for-betroffene { display: none; }

.block-image .band-figure, .lesson-svg { margin: 0; }
.lesson-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.lesson-image.is-wide img { aspect-ratio: 16 / 9; }
.lesson-image figcaption, .lesson-svg figcaption { color: var(--text-weak); font-size: 16px; text-align: right; margin-top: var(--sp-1); }
.lesson-svg svg { display: block; width: 100%; max-width: 100%; height: auto; }
.svg-figure { margin: 24px 0; }
.svg-figure svg { font-family: inherit; display: block; width: 100%; height: auto; }
.svg-caption { color: var(--text-weak); font-size: 16px; margin-top: 8px; }
.svg-legend { list-style: none; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; margin: 8px 0 0; }
.svg-legend svg { width: 1em; height: 1em; vertical-align: -0.1em; display: inline-block; }
.svg-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
.svg-cols h4 { font-size: 18px; margin: 0 0 8px; color: var(--brand); }
.svg-cols ul { margin: 0; padding-left: 20px; }
@media (max-width: 599px) { .svg-cols { grid-template-columns: 1fr; gap: 16px; } }

.block .notice { margin-top: 0; }
.block .steps h4 { font-family: var(--font-head); font-weight: 400; font-size: 18px; color: var(--brand); margin: 0 0 4px; }

.interactive { background: var(--fill); border-radius: 12px; padding: var(--sp-2); }
.interactive fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-3); min-width: 0; }
.interactive legend { font-weight: 500; padding: 0; margin-bottom: var(--sp-1); }
.interactive .hint { margin: var(--sp-2) 0 0; }
.interactive details, .scene details { border-top: 1px solid var(--stroke-weak); }
.interactive details > p, .scene details > p { padding: 0 0 var(--sp-1); margin: 0; }
.interactive summary, .scene summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 500; color: var(--brand); list-style: none; }
.interactive summary::-webkit-details-marker, .scene summary::-webkit-details-marker { display: none; }
.interactive summary::before, .scene summary::before { content: "+"; flex: 0 0 1.2em; text-align: center; font-weight: 700; }
.interactive details[open] > summary::before, .scene details[open] > summary::before { content: "\2212"; }
.mythfact-list { display: grid; gap: var(--sp-1); }
.mythfact-list details { border-top: 0; padding: 0 var(--sp-1); }
.verdict { margin: 0 0 4px; }
.verdict strong { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 16px; background: var(--background); border: 1px solid var(--stroke-weak); color: var(--text-strong); }
.verdict-fakt strong { background: var(--brand-weak); color: var(--brand); }

.scene { margin: 0 0 var(--sp-2); }
.scene-text { font-weight: 500; }
.phrase { margin-top: var(--sp-1); padding: var(--sp-1) var(--sp-2); background: var(--background); border-radius: var(--radius); border-left: 4px solid var(--brand); }
.phrase p { margin: 0; }
.phrase-label { color: var(--text-weak); font-size: 16px; }

.slider-row { margin-bottom: var(--sp-3); }
.slider-row label { display: block; font-weight: 500; margin-bottom: 4px; }
.slider-row input[type="range"] { display: block; width: 100%; min-height: 48px; margin: 0; accent-color: var(--brand); }
.slider-ends { display: flex; justify-content: space-between; gap: var(--sp-2); margin: 0; color: var(--text-weak); font-size: 16px; }
.bars { height: 12px; border-radius: 6px; background: var(--stroke-weak); overflow: hidden; margin-bottom: 4px; }
.bars span { display: block; height: 100%; background: var(--brand); transition: width 120ms ease; }
.block-result { margin: var(--sp-2) 0 0; padding: var(--sp-1) var(--sp-2); background: var(--background); border-radius: var(--radius); border-left: 4px solid var(--brand); }

.check-list { list-style: none; padding: 0; margin: 0 0 var(--sp-2); }
.energy-value { white-space: nowrap; }
.energy-meter { margin-top: var(--sp-2); }
.energy-sum { margin-bottom: var(--sp-1); }
.energy-bar { position: relative; height: 16px; border-radius: 8px; background: var(--stroke-weak); overflow: hidden; margin-bottom: var(--sp-1); }
.energy-fill { position: absolute; top: 0; bottom: 0; background: var(--stroke-strong); transition: left 120ms ease, width 120ms ease; }
.energy-fill.is-plus { background: var(--brand); }
.energy-fill.is-minus { background: var(--stroke-strong); }
.energy-zero { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--text-strong); }
.checklist-count { font-weight: 500; margin: 0 0 var(--sp-1); }
.checklist-results { list-style: none; padding: 0; margin: 0; }
.checklist-results li { padding: var(--sp-1) var(--sp-2); background: var(--background); border-radius: var(--radius); border-left: 4px solid var(--brand); }
.checklist-results li[hidden] { display: none; }

.choice-out:empty { display: none; }
.quiz-feedback { margin: var(--sp-1) 0 0; font-weight: 500; }
.quiz-feedback.is-right { color: var(--success); }
.quiz-feedback.is-wrong { color: var(--text-strong); }
.quiz-explain { margin: 4px 0 0; }
.quiz-total { font-weight: 500; margin: 0; }
.perspective-buttons { display: flex; flex-direction: column; gap: var(--sp-1); }
.perspective-intro { margin-top: 0; }
.perspective-switch[hidden] { display: none; }
.perspective-switch .btn[aria-pressed="true"] { background: var(--brand); color: #fff; }
@media (min-width: 600px) { .perspective-buttons { flex-direction: row; flex-wrap: wrap; } }
.interactive input:focus-visible, .interactive summary:focus-visible, .perspective-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .bars span, .energy-fill, .lesson-progress { transition: none; }
}

/* Sprachumschalter (DE / EN / NL): eigene schmale Leiste rechts oben, getrennt von den Reitern */
.lang-strip { display: flex; justify-content: flex-end; padding-top: 6px; margin-bottom: -14px; }
.nav-lang { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-lang li { display: inline; }
.nav-lang a { display: inline-block; font-size: 14px; line-height: 1; letter-spacing: 0.06em; padding: 6px 7px; color: var(--text-weak); text-decoration: none; border-radius: 4px; }
.nav-lang a:hover { color: var(--brand); background: var(--brand-weak); }
.nav-lang a[aria-current="true"] { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
@media print { .lang-strip { display: none; } }

/* Vorschau-Betrieb */
.preview-banner { background: #fff4e5; color: #6b4a00; border-bottom: 1px solid #f0c98a; padding: 8px 16px; font-size: 15px; text-align: center; }

/* ---------- Schmale Textabschnitte: Ueberschriften, Absaetze und Aufklapper zentriert; Listen, Schritte, Akkordeon linksbuendig ---------- */
.container.narrow { text-align: center; }
.container.narrow .prose ul, .container.narrow .prose ol { display: inline-block; text-align: left; margin-inline: auto; }
.container.narrow .steps, .container.narrow .faq, .container.narrow .form { text-align: left; }
.container.narrow .more > summary { justify-content: center; }
.container.narrow .steps .more > summary { justify-content: flex-start; }
.container.narrow .actions { justify-content: center; }
.container.narrow .notice { text-align: center; }
