/* ==========================================================================
   BASIS – designunabhängig, aus Baukasten v1 übernommen. Darunter das Design von maju-k.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; } /* Fokus und Sprungziele nicht unter der festen Kopfleiste (WCAG 2.4.11) */
body { margin: 0; background: #fff; color: #222; font: 400 18px/1.7 system-ui, sans-serif; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, li, dd { overflow-wrap: break-word; hyphens: auto; }   /* lange Wörter (z. B. „Datenschutzerklärung“) brechen statt seitlich zu scrollen */
a { color: #0b57a4; }
main p a, main li a { text-decoration: underline; text-underline-offset: 3px; } /* WCAG 1.4.1: nicht nur über Farbe */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
:focus { outline: none; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }   /* sichtbarer Fokus nur bei Tastatur */
main:focus { outline: none; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: #fff; color: #222; padding: 10px 16px; }
.skip-link:focus { top: 16px; }
.todo-text { background: #f3c969; color: #222; padding: 2px 8px; }   /* PLATZHALTER, fällt vor Go-live weg */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   DESIGN maju-k – Layouttest dunkel (nach maju-k.de)
   Kontraste geprüft: Text 11,3:1 · leiser Text 7,2:1 · Links 8,4:1 · Fuß 9,7:1 · Akzentlinien ≥ 3:1
   ========================================================================== */
:root {
  --nacht: #1c1e27;      /* Fuß */
  --tief: #1f212b;       /* Seitenkopf */
  --kopf: #2b2d3a;       /* Kopfleiste */
  --flaeche: #2a2d3a;    /* Inhalt */
  --text: #e8e9ee;
  --leise: #b9bcc8;
  --link: #9fd0ff;
  --blau: #1b8ed0; --gruen: #5fc4a4; --hellblau: #7fb8f0;
  --akzent: var(--blau);
  --breite: 44rem;
  --titel: #fff;
  --linie: #4a4d5c;
  color-scheme: dark;
}
/* Helle Ansicht: nur per Umschalter, Standard ist dunkel. Kopf und Fuß bleiben dunkel.
   Kontraste: Text 14,8:1 · leiser Text 7,5:1 · Links 6,4:1 · Akzentlinien ≥ 3:1 */
:root[data-ansicht="hell"] {
  color-scheme: light;
  --tief: #e4e6ec; --flaeche: #f6f6f8; --text: #1f212b; --leise: #4c4f5c; --link: #0b5e96; --titel: #14161d; --linie: #c9ccd6;
  --blau: #1673ad; --gruen: #2a8468; --hellblau: #3a74b0;
}

.page-seo { --akzent: var(--gruen); }
.page-ki-suche { --akzent: var(--hellblau); }

body { background: var(--flaeche); color: var(--text); font-size: 18px; line-height: 1.75; }
a { color: var(--link); }
:focus-visible { outline-color: var(--link); }
.skip-link { background: var(--text); color: var(--nacht); }

/* Kopfleiste */
.site-header {
  --text: #e8e9ee; --link: #9fd0ff; --blau: #1b8ed0; --gruen: #5fc4a4; --hellblau: #7fb8f0; color: var(--text);
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;   /* Kopfleiste bleibt beim Scrollen oben */
  border-bottom: 1px solid #3a3d4c;
  display: flex; align-items: center; gap: 1rem 2rem; flex-wrap: wrap;
  background: var(--kopf); padding: 0.75rem max(1rem, (100% - 72rem) / 2);
}
.brand { color: var(--text); font-weight: 600; text-decoration: none; padding: 0.4rem 0; margin-right: auto; letter-spacing: 0.01em; }
.brand .klammer { color: var(--akzent); }
.brand:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle { display: none; }
.ansicht {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.85rem;
  font: inherit; font-size: 0.9rem; color: var(--text); background: transparent;
  border: 1px solid #8a8fa1; border-radius: 999px; cursor: pointer;
}
.ansicht[hidden] { display: none; }
.ansicht:hover { border-color: var(--text); }
.halbmond { width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.ansicht.ist-hell .halbmond { background: linear-gradient(90deg, transparent 50%, currentColor 50%); }   /* Halbmond gespiegelt: zeigt die Gegenrichtung */
.hauptmenue ul { list-style: none; margin: 0; padding: 0; }
.hauptmenue > ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.hauptmenue ul ul { display: none; }                         /* Unterseiten: über die Übersicht und im Mobilmenü */
.hauptmenue a { display: inline-block; padding: 0.4rem 0; color: var(--text); text-decoration: none; font-size: 0.95rem; border-bottom: 2px solid transparent; }
.hauptmenue a:hover { border-bottom-color: var(--leise); }
.hauptmenue a[aria-current], .hauptmenue .ist-pfad > a { border-bottom-color: var(--akzent); }

/* Inhalt: schmale Lesespalte, Seitenkopf über volle Breite mit Farblinie */
main > * { max-width: var(--breite); margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; box-sizing: content-box; }
main > ul { padding-left: 2.25rem; }
main > article > * { max-width: none; }
.agb ol { padding-left: 1.5rem; }
.agb li::marker { color: var(--leise); }
main { padding-bottom: 4rem; }
.seitenkopf {
  max-width: none; background: var(--tief); border-bottom: 5px solid var(--akzent);
  padding: 4.5rem max(1rem, (100% - var(--breite)) / 2) 3rem; margin-bottom: 1rem;
}
h1, h2, h3 { line-height: 1.2; font-weight: 700; color: var(--titel); }
h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); text-transform: uppercase; letter-spacing: 0.01em; margin: 0 0 1.25rem; }
h2 { font-size: 1.5rem; margin-top: 3.25rem; margin-bottom: 1.25rem; }
h2::after, .punkte {                                        /* Punktreihe unter Überschriften */
  content: ""; display: block; width: 4.5rem; height: 6px; margin-top: 0.85rem;
  background: radial-gradient(circle, var(--akzent) 2.5px, transparent 3px) 0 0 / 0.75rem 6px repeat-x;
}
p, ul, ol { margin-top: 0; margin-bottom: 1.1rem; }
main li { margin-bottom: 0.5rem; }
main li::marker { color: var(--akzent); }
strong { color: var(--titel); }
.leitsatz { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem); line-height: 1.4; font-weight: 500; color: var(--text); margin: -0.25rem 0 1rem; max-width: 34em; }
.hinweis { color: var(--leise); font-size: 0.95rem; margin: 0; }
.lead { font-size: 1.2rem; }
.stand { color: var(--leise); font-size: 0.9rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--linie); }
.tabelle { overflow-x: auto; margin: 1.5rem auto 0.75rem; }
.tabelle:focus-visible { outline: 3px solid var(--link); }
.tabelle table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.95rem; line-height: 1.45; }
.tabelle caption { text-align: left; font-weight: 700; color: var(--titel); padding-bottom: 0.75rem; }
.tabelle th, .tabelle td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.tabelle thead th { font-weight: 700; color: var(--titel); border-bottom: 2px solid var(--akzent); }
.tabelle tbody th { font-weight: 400; }
.tabelle td { white-space: nowrap; }
.w-zentral { font-weight: 700; color: var(--titel); }
.w-zentral::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--akzent); margin: 0 0.5rem 0.1rem 0; }
.w-kaum { color: var(--leise); }
.galerie { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1.5rem; padding: 0 1rem; margin: 1.5rem auto 2rem; }
main > .galerie { padding-left: 1rem; }
.galerie li { margin: 0; }
.galerie figure { margin: 0; display: grid; gap: 0.75rem; }
.galerie a { display: block; border-bottom: 3px solid var(--akzent); }
.galerie img { width: 100%; height: auto; }
.galerie figcaption { font-size: 0.9rem; line-height: 1.5; color: var(--leise); }
.galerie figcaption strong { display: block; color: var(--titel); font-size: 1rem; }
/* FAQ: native Aufklapper (details/summary), ohne JavaScript, Antworten bleiben im Quelltext */
/* Begriff-Erklärung-Listen (statt fetter Stichwörter mit Doppelpunkt) */
.merkmale { margin-top: 0; margin-bottom: 1.25rem; }
.merkmale dt { font-weight: 700; color: var(--titel); margin-top: 1rem; }
.merkmale dt:first-child { margin-top: 0; }
.merkmale dt::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--akzent); margin: 0 0.6rem 0.15rem 0; }
.merkmale dd { margin: 0.15rem 0 0 calc(6px + 0.6rem); }
.faq { margin-top: 0.5rem; }
.faq details { border-bottom: 1px solid var(--linie); }
.faq details:first-child { border-top: 1px solid var(--linie); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.1rem; }
.faq summary::after {                                   /* Plus wird zum Minus */
  content: ""; flex: none; width: 0.85rem; height: 0.85rem;
  background: linear-gradient(var(--akzent), var(--akzent)) center / 100% 2px no-repeat,
              linear-gradient(var(--akzent), var(--akzent)) center / 2px 100% no-repeat;
}
.faq details[open] summary::after { background: linear-gradient(var(--akzent), var(--akzent)) center / 100% 2px no-repeat; }
.faq summary:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.faq details > p { margin: -0.25rem 0 1.25rem; }
.platzhalter { border-left: 2px dashed var(--leise); padding-left: 1rem; }

/* Fuß */
.site-footer { --text: #e8e9ee; --link: #9fd0ff; --blau: #1b8ed0; background: var(--nacht); border-top: 5px solid var(--blau); color: #c3c6d1;
  padding: 3.5rem max(1rem, (100% - var(--breite)) / 2) 3rem; font-size: 0.95rem; }
.site-footer p { margin: 0 0 0.75rem; }
.fuss-marke { color: var(--text); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.site-footer .punkte { margin: 0 0 1.25rem; --akzent: var(--blau); }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; padding: 0; margin: 1.5rem 0 0; }
.site-footer a { display: inline-block; padding: 0.2rem 0; text-decoration: underline; text-underline-offset: 3px; }

/* Schmal (Smartphone, Desktop ab ca. 200 % Zoom): Menü klappt rechts unter der Kopfleiste auf */
@media (max-width: 70rem) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0 0.25rem 0 0.75rem;
    font: inherit; font-size: 0.95rem; color: var(--text); background: transparent; border: 0; cursor: pointer;
  }
  .striche { width: 1.1rem; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
  .hauptmenue { width: 100%; order: 3; }
  .ansicht { padding: 0 0.7rem; }
  .hauptmenue > ul { display: block; padding: 0.5rem 0 1rem; }
  .hauptmenue ul ul { display: block; padding-left: 1rem; }
  .hauptmenue li { border-bottom: 1px solid #4a4d5c; }
  .hauptmenue ul ul li:last-child { border-bottom: 0; }
  .hauptmenue a { display: block; padding: 0.8rem 0; border-bottom: 0; }
  .hauptmenue a[aria-current] { font-weight: 700; }
  .hauptmenue a[aria-current]::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--akzent); margin: 0 0.6rem 0.15rem 0; }
  .js .hauptmenue { position: absolute; top: 100%; right: 0; width: min(22rem, 100%); z-index: 10;
    max-height: calc(100vh - 5rem); max-height: calc(100dvh - 5rem); overflow-y: auto; overscroll-behavior: contain;   /* langes Menü scrollt in sich */
    background: var(--kopf); padding: 0 1.5rem; box-shadow: 0 12px 24px rgb(0 0 0 / 0.35); }
  .js .hauptmenue:not(.is-open) { display: none; }
  .seitenkopf { padding-top: 3rem; }
}
