/* ============================================================================
   Lernhafen Berlin – Öffentliche Website · Prototyp (Schritt S1)
   Handgemachtes CSS, keine externen CDNs, keine Build-Tools.
   Regeln: cookiefrei, kein Tracking, Sprache nur über URL.
   Design-Tokens aus UEBERGABE_BUILD_SPEC.md §6 (Arbeitswerte = vorläufig).
   ============================================================================ */

/* ---------------------------------------------------------------------------
   1. Self-hosted Fonts (OFL) – §6.1
   Baloo 2 = Headline, Noto Sans = Body (für DE ausreichend).
   Variable TrueType-Dateien lokal unter fonts/. OFL-Lizenztexte liegen
   je Familie im selben Ordner (Baloo2-OFL.txt, NotoSans-OFL.txt).
   url() ist relativ zu dieser styles.css – funktioniert aus allen Unterseiten.
   --------------------------------------------------------------------------- */
@font-face {
  font-family: "Baloo 2";
  src: url("fonts/Baloo2-VF.ttf") format("truetype-variations"),
       url("fonts/Baloo2-VF.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("fonts/NotoSans-VF.ttf") format("truetype-variations"),
       url("fonts/NotoSans-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------------------
   2. Design-Tokens (CI) – vorläufige Arbeitswerte, CI-Freigabe ausstehend
   --------------------------------------------------------------------------- */
:root {
  /* Markenfarben (Flyer-Startpalette, vorläufig) */
  --lh-navy:        #032748;
  --lh-teal:        #087D91;
  --lh-yellow:      #F9BF18;
  --lh-soft-white:  #EAEFF0;
  --lh-blue-grey:   #87A8B5;

  /* Kartenfarben – strikt EINFARBIG (kein Verlauf/Blur/Textur) */
  --lh-card-coaching: #008E9C;
  --lh-card-security: #002C57;
  --lh-card-retail:   #FE6E01;

  /* Geprüfte Textfarben auf den Karten (WCAG, siehe Doku) */
  --ink-coaching: #04171B; /* near-black Petrol auf #008E9C → 4.68:1 (AA Normaltext) */
  --ink-retail:   #032748; /* Navy auf #FE6E01 → 5.37:1 (AA Normaltext) */
  --ink-security: #FFFFFF; /* Weiß auf #002C57 → 14.0:1 */

  /* Flächen & Text */
  --bg:         #FFFFFF;
  --ink:        #032748;      /* Haupttext = Navy auf Weiß → 15.1:1 */
  --ink-muted:  #3E566B;      /* gedämpfter Text, geprüft ≥ 4.5:1 auf Weiß */
  --line:       #D3DCE2;      /* dezente Linien/Rahmen */
  --teal-hover: #0A6C7D;
  --navy-hover: #06345E;

  /* Maße */
  --maxw: 1180px;
  --gutter: 16px;            /* Seitenrand mobil ≥16px, kein H-Scroll bei 320px */
  --radius: 18px;
  --radius-sm: 10px;
}

/* ---------------------------------------------------------------------------
   3. Reset / Grundlagen
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* Schutz vor versehentlichem horizontalem Scroll */
}
img, svg { max-width: 100%; height: auto; display: block; }
/* Inline-Icon-/Pfeil-SVGs in Links auf Textgröße begrenzen. Ohne eigene
   width/height greift sonst oben img,svg{max-width:100%} und das Icon dehnt
   sich auf die volle Containerbreite (die „riesigen Pfeile"). Spezifischere
   Regeln wie .btn svg / .card__link svg bleiben vorrangig. */
a svg { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
a { color: var(--lh-teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-hover); }
h1, h2, h3, h4 { font-family: "Baloo 2", "Noto Sans", system-ui, sans-serif; line-height: 1.12; color: var(--lh-navy); font-weight: 700; }
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 2.1vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.4rem); }
p  { font-size: clamp(1rem, 0.97rem + 0.15vw, 1.08rem); }
ul, ol { padding-left: 1.3em; }
:lang(ar) { direction: rtl; text-align: right; }

/* ---------------------------------------------------------------------------
   4. Fokus (Tastatur) – kräftige Doppellinie Navy/Weiß, ≥3:1 auf jedem Grund
   (NICHT Gelb auf Weiß). Funktioniert auch auf dunklen Karten.
   --------------------------------------------------------------------------- */
:focus { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid transparent;          /* für Windows High-Contrast */
  outline-offset: 2px;
  border-radius: 6px;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 5px var(--lh-navy);
}

/* Skip-Link */
.skip-link {
  position: absolute; left: var(--gutter); top: -200%;
  z-index: 200;
  background: var(--lh-navy); color: #fff;
  padding: .75rem 1.1rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------------------
   5. Layout-Helfer
   --------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(2.75rem, 2rem + 4vw, 5.5rem); }
.section--soft { background: var(--lh-soft-white); }
.lead { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.25rem); color: var(--ink-muted); max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; color: var(--lh-teal);
  border: 1px solid var(--lh-blue-grey);
  padding: .35rem .8rem; border-radius: 999px;
  font-size: .9rem; font-weight: 600;
}
.eyebrow .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--lh-yellow); }
.muted { color: var(--ink-muted); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* markierte Platzhalter (keine erfundenen Daten) */
.placeholder {
  background: #FFF4D6;
  border: 1px dashed #B8860B;
  color: #5A4300;
  padding: .15rem .5rem; border-radius: 6px;
  font-size: .9em; font-weight: 600; white-space: nowrap;
}
.note-box {
  border-left: 4px solid var(--lh-yellow);
  background: #FFFBEF;
  padding: 1rem 1.15rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #4A3B00; font-size: .95rem;
}

/* ---------------------------------------------------------------------------
   6. Buttons
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: inherit; font-weight: 600; font-size: 1rem;
  padding: .85rem 1.4rem; border-radius: 12px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  min-height: 44px; /* bequem tappbar */
}
.btn--primary { background: var(--lh-teal); color: #fff; }
.btn--primary:hover { background: var(--teal-hover); color: #fff; }
.btn--navy { background: var(--lh-navy); color: #fff; }
.btn--navy:hover { background: var(--navy-hover); color: #fff; }
.btn--ghost { background: #fff; color: var(--lh-navy); border-color: var(--line); }
.btn--ghost:hover { background: var(--lh-soft-white); color: var(--lh-navy); }
.btn--block { width: 100%; }
.btn svg { width: 1.15em; height: 1.15em; }

/* ---------------------------------------------------------------------------
   7. Header / Navigation / Sprachwähler (echte Links)
   --------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.1) blur(4px);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
/* Logo im Header angemessen vergrößert (Review V1, Paket B) – responsive,
   Volllogo inkl. Schriftzug. Höhe bleibt innerhalb der 72px-Kopfzeile. */
.brand img { height: clamp(46px, 3.2vw + 2rem, 58px); width: auto; }

.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; gap: 1.5rem; padding: 0; margin: 0; }
.main-nav a { color: var(--lh-navy); text-decoration: none; font-weight: 600; font-size: .98rem; padding: .4rem 0; }
.main-nav a:hover { color: var(--lh-teal); }
.main-nav a[aria-current="page"] { color: var(--lh-teal); box-shadow: inset 0 -2px 0 var(--lh-teal); }

.header-actions { display: flex; align-items: center; gap: .6rem; }

/* Sprachwähler = echte Links + hreflang (kein <select>) */
.langnav { position: relative; }
.langnav > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--lh-soft-white); color: var(--lh-navy);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .5rem .75rem; font-weight: 600; font-size: .92rem;
}
.langnav > summary::-webkit-details-marker { display: none; }
.langnav > summary::after { content: "▾"; font-size: .8em; }
.langnav .lang-menu {
  position: absolute; right: 0; top: calc(100% + .4rem);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(3,39,72,.15);
  padding: .4rem; min-width: 190px; z-index: 60;
}
:lang(ar) .langnav .lang-menu { right: auto; left: 0; }
.langnav .lang-menu ul { list-style: none; margin: 0; padding: 0; display: grid; }
.langnav .lang-menu a {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem .7rem; border-radius: 8px;
  color: var(--lh-navy); text-decoration: none; font-size: .95rem;
}
.langnav .lang-menu a:hover { background: var(--lh-soft-white); }
.langnav .lang-menu a[aria-current="true"] { background: var(--lh-navy); color: #fff; font-weight: 700; }
.langnav .lang-menu .native { color: var(--ink-muted); }
.langnav .lang-menu a[aria-current="true"] .native { color: #cfe0ea; }

/* Burger */
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: var(--radius-sm); cursor: pointer; color: var(--lh-navy);
}
.menu-toggle svg { width: 24px; height: 24px; }

/* mobiles Menü */
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: .5rem var(--gutter) 1rem; }
.mobile-nav a { display: block; padding: .7rem 0; color: var(--lh-navy); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }

/* ---------------------------------------------------------------------------
   8. Hero
   --------------------------------------------------------------------------- */
.hero { background: var(--lh-soft-white); }
.hero .wrap { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 2rem + 4vw, 5rem); }
.hero h1 { margin-top: .9rem; color: var(--lh-navy); }
.hero .lead { margin-top: 1rem; }
.hero-cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-stats { margin-top: 2.25rem; display: grid; grid-template-columns: repeat(3, auto); gap: 1.5rem; }
.hero-stats dt { font-size: 1.6rem; font-weight: 800; font-family: "Baloo 2", sans-serif; color: var(--lh-navy); }
.hero-stats dd { margin: 0; font-size: .9rem; color: var(--ink-muted); }

/* ---------------------------------------------------------------------------
   8b. Einheitlicher Bild-Platzhalter (Review V1, Paket K)
   Ein wiederverwendbarer, klar als Platzhalter erkennbarer Baustein für jede
   Stelle, an der ein echtes Bild noch fehlt. Produktion: durch ein <img> mit
   demselben Seitenverhältnis 1:1 ersetzbar (Vorgaben/Prompts: BILDKONZEPT.md).
   CI-Farben, gelber Kreis-Motiv, "Bild folgt"-Badge + Kurzbeschreibung.
   KEINE Inline-Styles (CSP): Gestaltung ausschließlich über diese Klassen.
   --------------------------------------------------------------------------- */
.img-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .9rem; text-align: center;
  background: var(--lh-soft-white);
  border: 2px dashed var(--lh-blue-grey);
  border-radius: var(--radius);
  padding: 1.5rem; color: var(--ink-muted);
}
.img-ph__circle {
  width: clamp(88px, 20vw, 128px); aspect-ratio: 1; border-radius: 50%;
  background: var(--lh-yellow); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.img-ph__circle svg { width: 44%; height: 44%; color: var(--lh-navy); }
.img-ph__badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--lh-yellow); color: #4A3B00;
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  padding: .25rem .65rem; border-radius: 999px;
}
.img-ph__desc { font-size: .9rem; max-width: 36ch; margin: 0; }
/* Seitenverhältnis-Varianten (retina-Pixelmaße: siehe BILDKONZEPT.md) */
.img-ph--hero { aspect-ratio: 4 / 3; }
.img-ph--wide { aspect-ratio: 16 / 9; }
.img-ph--square { aspect-ratio: 1 / 1; }

/* ---------------------------------------------------------------------------
   8c. Echte Bildmotive (Bildkonzept V2 "Paket K", BILDKONZEPT.md Kap. 1-4)
   Ersetzt die .img-ph-Platzhalter dort, wo ein Originalbild bereits eingepflegt
   ist (Hero/Kursmotive/Über-uns/Berlin-Silhouette). `width`/`height` am <img>
   selbst bleiben die tatsächlichen Dateimaße (CLS-sicher); diese Klassen
   skalieren das Bild responsiv auf volle Containerbreite bei festem
   Seitenverhältnis. KEINE Inline-Styles (CSP) – nur diese CSS-Klassen.
   --------------------------------------------------------------------------- */
.hero-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.course-motif {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  border-radius: var(--radius); margin-bottom: 1.5rem;
}
.about-img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2;
  border-radius: var(--radius); margin-bottom: 1.5rem;
}
/* Berlin-Silhouette: rein dekoratives Akzentelement (alt=""), dezent im
   Finanzierungsblock (gelber Förderblock) platziert. */
.finance__berlin {
  display: block; width: 100%; height: auto; max-width: 420px;
  margin-top: 1.5rem; opacity: .55;
}

/* ---------------------------------------------------------------------------
   9. Angebotskarten – eine Familie, strikt EINFARBIG
   KEIN background-image / gradient / backdrop-filter / Textur auf .card-face
   --------------------------------------------------------------------------- */
.cards { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); padding: 1.6rem;
  min-height: 100%;
  transition: transform .15s ease, box-shadow .15s ease;
}
/* Komfortablerer Einstieg in die Bereiche (Review V1, Paket A): die ganze Karte
   wirkt als anklickbare Bereichs-CTA – Hover-Hervorhebung, CTA-Link als Button. */
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(3,39,72,.18); }
/* genau EIN Volltonwert je Karte */
.card--coaching { background-color: var(--lh-card-coaching); color: var(--ink-coaching); }
.card--security { background-color: var(--lh-card-security); color: var(--ink-security); }
.card--retail   { background-color: var(--lh-card-retail);   color: var(--ink-retail); }

.card__top { display: flex; align-items: center; justify-content: space-between; }
.card__num { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.25rem; opacity: .85; }
/* Icons auf einheitliche, nicht überdimensionierte Größe gebracht (Review V1,
   Paket A: „überdimensionierte Grafiken/Icons verkleinern"). */
.card__icon { width: 30px; height: 30px; }
.card h3 { margin-top: 1rem; color: inherit; font-size: 1.3rem; }
.card__text { margin-top: .6rem; flex: 1; color: inherit; }
.card__link {
  margin-top: 1.4rem; display: inline-flex; align-items: center; gap: .45rem;
  color: inherit; font-weight: 700; text-decoration: none;
  align-self: flex-start;
  padding: .55rem .95rem; border-radius: 999px;
  border: 2px solid currentColor;
  transition: gap .15s ease, background-color .15s ease;
}
.card__link:hover { gap: .75rem; }
.card__link svg { width: 1.1em; height: 1.1em; }
.card--security .card__link { color: var(--lh-yellow); } /* 8.3:1 auf Navy */
/* Pfeil wandert beim Hover leicht nach rechts (reine Mikro-Interaktion) */
@media (prefers-reduced-motion: reduce) { .card__link:hover { gap: .45rem; } }

/* ---------------------------------------------------------------------------
   10. Finanzierungsblock (gelb) – bleibt sichtbar
   --------------------------------------------------------------------------- */
.finance { background: var(--lh-navy); }
.finance .wrap { display: grid; gap: 1.5rem; padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); }
.finance__card {
  background: var(--lh-yellow); color: var(--lh-navy);
  border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 3vw, 2.5rem);
}
.finance__card h2 { color: var(--lh-navy); }
.finance__card p { color: #2B2300; margin-top: .75rem; max-width: 62ch; }
.finance__card .btn { margin-top: 1.25rem; }

/* Partnerbereich – admin-schaltbar, initial AUS */
.partners { display: none; } /* admin-schaltbar: erst bei schriftlicher Logo-Freigabe sichtbar */

/* S9: Partnerbereich auf der Startseite (nur gerendert, wenn im Admin
   aktiviert UND mind. ein Partner Sichtbarkeit+Nutzungsfreigabe hat, siehe
   HomeController/home.php). Eigene Klasse, da `.partners` (oben) absichtlich
   `display:none` für den noch ungenutzten Footer-Platzhalter ist. */
.partner-list { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: center; list-style: none; margin-top: 1.5rem; padding: 0; }
.partner-list img { max-height: 48px; width: auto; }

/* ---------------------------------------------------------------------------
   11. Über-uns / Feature-Grid
   --------------------------------------------------------------------------- */
.about-grid { display: grid; gap: 2rem; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.feature {
  background: var(--lh-soft-white); border-radius: var(--radius-sm); padding: 1.1rem 1.25rem;
}
.feature h3 { color: var(--lh-navy); font-size: 1.1rem; }
.feature p { color: var(--ink-muted); margin-top: .3rem; font-size: .97rem; }

/* ---------------------------------------------------------------------------
   12. FAQ (native <details>)
   --------------------------------------------------------------------------- */
.faq-list { display: grid; gap: .75rem; margin-top: 2rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq-item > summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-weight: 700; color: var(--lh-navy);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary .plus { color: var(--lh-teal); font-size: 1.5rem; line-height: 1; transition: transform .15s ease; flex-shrink: 0; }
.faq-item[open] > summary .plus { transform: rotate(45deg); }
.faq-item__body { padding: 0 1.25rem 1.2rem; color: var(--ink-muted); }

/* ---------------------------------------------------------------------------
   13. Formulare (UI-Attrappe – kein echter Versand)
   --------------------------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 2vw, 2rem); }
.form-row { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; color: var(--lh-navy); }

/* „Interesse"-Auswahlkarten (Radio statt Dropdown) – übersichtlicher, mobil-freundlich. */
.choice-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-field legend { font-weight: 600; font-size: .95rem; color: var(--lh-navy); padding: 0; margin-bottom: .5rem; }
.choice-cards { display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .choice-cards { grid-template-columns: 1fr 1fr; } }
.choice-card {
  display: flex; align-items: center; gap: .6rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .75rem 1rem; background: #fff; cursor: pointer; font-weight: 500;
}
.choice-card:hover { border-color: var(--lh-teal); }
/* Spezifischer als .field input (sonst bekäme das Radio width:100% + Rahmen/Padding). */
.choice-field input[type="radio"] {
  width: 1.15rem; height: 1.15rem; min-height: 0; margin: 0; padding: 0;
  border: 0; background: none; flex-shrink: 0; accent-color: var(--lh-teal);
}
.choice-card:has(input:checked) { border-color: var(--lh-teal); box-shadow: inset 0 0 0 1px var(--lh-teal); background: var(--lh-soft-white); }
.choice-card:has(input:focus-visible) { outline: 2px solid var(--lh-navy); outline-offset: 2px; }
.field .req { color: #B3261E; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .7rem .8rem; background: #fff; width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field .hint { font-size: .85rem; color: var(--ink-muted); }

/* --- Admin-Login (CI-konform, eigenständige Maske) --- */
.login-shell {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(160deg, var(--lh-navy), #021a30);
}
.login-card {
  width: 100%; max-width: 400px; margin: 0;
  background: #fff; border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 3vw, 2.25rem);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .28);
}
.login-card .login-logo { display: block; height: 60px; width: auto; margin: 0 auto 1.25rem; }
.login-card h1 { text-align: center; font-size: 1.5rem; margin: 0 0 .35rem; }
.login-card .login-sub { text-align: center; color: var(--ink-muted); font-size: .92rem; margin: 0 0 1.5rem; }
.login-card .login-form { padding: 0; border: 0; background: none; box-shadow: none; }
.login-card .field { margin-bottom: 1rem; }
.login-card .btn { margin-top: .5rem; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--ink-muted); }
.consent input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; flex-shrink: 0; }

/* Honeypot – visuell + für AT verborgen, kein echtes Feld */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 1rem; }
.form-status[hidden] { display: none; }
.form-status p {
  background: #E6F4EA; border: 1px solid #99C9A8; color: #1B5E20;
  padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: .95rem;
}

/* Kontakt-Infozeilen */
.contact-info { display: grid; gap: .9rem; margin-top: 1.5rem; }
.contact-info .row { display: grid; grid-template-columns: 7rem 1fr; gap: .5rem; align-items: start; }
.contact-info .row .k { color: var(--lh-teal); font-weight: 700; }

/* ---------------------------------------------------------------------------
   14. Kursseiten / Inhaltsseiten
   --------------------------------------------------------------------------- */
.pagehead { color: #fff; }
.pagehead--coaching { background: var(--lh-card-coaching); color: var(--ink-coaching); }
.pagehead--security { background: var(--lh-card-security); color: #fff; }
.pagehead--retail   { background: var(--lh-card-retail); color: var(--ink-retail); }
.pagehead--plain    { background: var(--lh-soft-white); color: var(--lh-navy); }
.pagehead .wrap { padding-block: clamp(2.25rem, 1.5rem + 4vw, 4rem); }
.pagehead h1 { color: inherit; }
.pagehead p { margin-top: .75rem; max-width: 60ch; color: inherit; }
.breadcrumb { font-size: .9rem; margin-bottom: .75rem; }
.breadcrumb a { color: inherit; opacity: .85; }
.breadcrumb[data-on-dark] a { color: #fff; }

.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { display: grid; gap: .4rem; }

.two-col { display: grid; gap: 2rem; align-items: start; }
.variant-grid { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
.variant {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
  background: #fff;
}
.variant h3 { color: var(--lh-navy); }
.variant .card__text { flex: 1; } /* schiebt die Datenliste aller Varianten auf gleiche Höhe */
.variant .tag { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--lh-teal); margin-bottom: .4rem; }

.aside-card { background: var(--lh-soft-white); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 1.75rem); }
.aside-card h2, .aside-card h3 { color: var(--lh-navy); font-size: 1.2rem; }

/* ---------------------------------------------------------------------------
   14a. Bereich/Wert-Datenliste (Review V2, Paket C)
   Eine logische Zweiteilung „Bereich links / Wert rechts" als Definitionsliste.
   Label gedämpft, Wert betont; dünne Trennlinien geben gleich ausgerichtete,
   gleich hohe Felder. DIESELBE Komponente trägt die Kursdaten (.aside-card) UND
   die §34a-Varianten (.variant) – kein konkurrierendes Muster. Jedes dt/dd-Paar
   ist in ein <div> gewickelt (gültiges HTML5), damit die Zeile exakt aus zwei
   ausgerichteten Spalten besteht.
   --------------------------------------------------------------------------- */
.aside-card dl,
.variant dl { margin-top: 1.1rem; display: grid; gap: 0; }
.aside-card dl > div,
.variant dl > div {
  display: grid;
  /* Feste Bereich-Spalte (40%) => die Wert-Spalte beginnt in ALLEN Zeilen auf
     derselben Kante (gleich ausgerichtete Felder, Review V2 Paket C). */
  grid-template-columns: minmax(6.5rem, 40%) minmax(0, 1fr);
  gap: .3rem 1rem;
  align-items: baseline;
  padding: .6rem 0;
  border-top: 1px solid var(--line);
}
.aside-card dl > div:first-child,
.variant dl > div:first-child { border-top: 0; padding-top: 0; }
.aside-card dl > div:last-child,
.variant dl > div:last-child { padding-bottom: 0; }
.aside-card dt,
.variant dt {
  min-width: 0; font-weight: 600; color: var(--ink-muted); font-size: .9rem; line-height: 1.3;
  hyphens: auto; overflow-wrap: break-word; /* lange Komposita (z.B. „Maßnahmennummer") umbrechen statt den Wert zu überlagern (lang=de → Trennstrich bevorzugt) */
} /* Bereich = gedämpft */
.aside-card dd,
.variant dd { min-width: 0; margin: 0; color: var(--lh-navy); font-weight: 700; font-size: 1rem; overflow-wrap: break-word; hyphens: auto; } /* Wert = betont */
/* Platzhalter in der Datenliste dürfen umbrechen (sonst sprengt der nowrap-Badge die Spalte) */
.aside-card dd .placeholder,
.variant dd .placeholder { white-space: normal; display: inline-block; }

/* Sticky-Seitenschiene auf Desktop: Kursdaten + CTA bleiben im Blick. */
.aside-card--sticky { align-self: start; }
@media (min-width: 64rem) { .aside-card--sticky { position: sticky; top: 88px; } }
.aside-card .btn { margin-top: 1rem; }
.aside-card .btn + .btn { margin-top: .6rem; }

.legal-meta { font-size: .9rem; color: var(--ink-muted); }
address { font-style: normal; }

/* ---------------------------------------------------------------------------
   15. Footer
   --------------------------------------------------------------------------- */
.site-footer { background: var(--lh-navy); color: #D6E2EC; }
.site-footer a { color: #D6E2EC; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; padding-block: 3rem; }
/* Footer-Navy: invertierte/monochrome Logo-Variante (Review V1, Paket B) direkt
   auf der dunklen Fläche – keine weiße Box mehr nötig, da das Logo weiß ist. */
.footer-brand img { height: 56px; width: auto; }
.footer-brand p { margin-top: 1rem; font-size: .9rem; color: #A9BED0; max-width: 34ch; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-block: 1.1rem; font-size: .85rem; color: #94ABBF; }

/* ---------------------------------------------------------------------------
   16. Responsive – mobile-first; Breakpoints hochskaliert
   --------------------------------------------------------------------------- */
@media (min-width: 48rem) {               /* ab Tablet ~768px */
  .cards { grid-template-columns: repeat(2, 1fr); }
  .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  /* §34a-Varianten bewusst NICHT nebeneinander: zwei schmale Spalten quetschen
     die Bereich/Wert-Liste und lesen sich schlecht. Stattdessen volle Breite,
     untereinander – jede Variante bekommt Platz für ihre Datenliste. */
}
@media (min-width: 64rem) {               /* ab Desktop ~1024px */
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
  /* Kursdaten-Seitenschiene erst ab Desktop zweispaltig – darunter volle Breite,
     damit die Bereich/Wert-Felder nicht in einer schmalen Spalte umbrechen. */
  .two-col.sidebar { grid-template-columns: minmax(0, 1.4fr) minmax(19rem, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); } /* 3 Karten nebeneinander */
  .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .finance .wrap { grid-template-columns: 3fr 1fr; align-items: center; }
  .contact-layout { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

/* ---------------------------------------------------------------------------
   17. Bewegung reduzieren
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ============================================================================
   S7 – Mehrsprachigkeit / RTL / SEO (UEBERGABE_BUILD_SPEC.md §1, §6, §6.1, §10)
   Alles self-hosted (keine CDNs). Keine Inline-Styles/-Scripts (CSP style-src
   'self', script-src 'self' – siehe Security\Headers): deshalb liegen ALLE
   Seitenstile hier und die wenige UI-Logik in /assets/public.js.
   ============================================================================ */

/* --- Zusätzliche self-hosted Fonts (OFL), §6.1 ----------------------------
   Lizenztexte je Familie liegen als *-OFL.txt im selben Ordner. Falls eine
   Datei fehlt (Download fehlgeschlagen), greift automatisch der System-/Noto-
   Fallback aus dem jeweiligen font-family-Stack weiter unten. */
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("fonts/NotoSansArabic-VF.ttf") format("truetype-variations"),
       url("fonts/NotoSansArabic-VF.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("fonts/NotoKufiArabic-VF.ttf") format("truetype-variations"),
       url("fonts/NotoKufiArabic-VF.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Sans SC";
  src: url("fonts/NotoSansSC-VF.ttf") format("truetype-variations"),
       url("fonts/NotoSansSC-VF.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* --- Font-Stack pro Sprache (§6.1, normative Tabelle) ----------------------
   MUSS synchron zu Lernhafen\Support\Fonts::headStack()/bodyStack() bleiben
   (dort ist dieselbe Auswahl als testbare PHP-Logik hinterlegt). Headline =
   h1..h4 + .card__num; Body = alles andere.
   - de,en,es,tr : Baloo 2 / Noto Sans
   - vi          : Noto Sans / Noto Sans  (Baloo-2-Diakritika in S1 NICHT
                   verifiziert → bewusst Noto Sans für Headlines, §6.1)
   - ru,uk       : Noto Sans / Noto Sans  (kyrillisch)
   - ar          : Noto Kufi Arabic / Noto Sans Arabic  (RTL)
   - zh          : Noto Sans SC / Noto Sans SC  (CJK) */
html[lang="vi"] body,
html[lang="ru"] body,
html[lang="uk"] body { font-family: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
html[lang="vi"] h1, html[lang="vi"] h2, html[lang="vi"] h3, html[lang="vi"] h4, html[lang="vi"] .card__num,
html[lang="ru"] h1, html[lang="ru"] h2, html[lang="ru"] h3, html[lang="ru"] h4, html[lang="ru"] .card__num,
html[lang="uk"] h1, html[lang="uk"] h2, html[lang="uk"] h3, html[lang="uk"] h4, html[lang="uk"] .card__num {
  font-family: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

html[lang="ar"] body { font-family: "Noto Sans Arabic", "Noto Sans", system-ui, "Segoe UI", Tahoma, Arial, sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4, html[lang="ar"] .card__num {
  font-family: "Noto Kufi Arabic", "Noto Sans Arabic", "Noto Sans", system-ui, sans-serif;
}

html[lang="zh"] body,
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3, html[lang="zh"] h4, html[lang="zh"] .card__num {
  font-family: "Noto Sans SC", "Noto Sans", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* --- RTL (ar) + LTR-Inseln (Zahlen/E-Mail/URL/Telefon), §1/§6.1 ------------
   Das dir="rtl" kommt vom <html>-Attribut (Lernhafen\Support\I18n). :dir()
   ist nicht überall verfügbar, daher zusätzlich Attribut-Selektoren. */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] ul, html[dir="rtl"] ol { padding-left: 0; padding-right: 1.3em; }
html[dir="rtl"] .card__link,
html[dir="rtl"] .breadcrumb,
html[dir="rtl"] .hero-cta { }
/* LTR-Insel: für lateinische Zahlen, E-Mail-Adressen, URLs, Maßnahmennummern,
   die auch in RTL-Text von links nach rechts gelesen werden. Isoliert den
   Bidi-Kontext, damit umgebender RTL-Text nicht die Reihenfolge zerreißt. */
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}
html[dir="rtl"] .ltr { text-align: right; }

/* --- Hinweis „Maschinell übersetzt" (§1/§10) ------------------------------
   Sichtbarer, nicht wegklickbarer Hinweis auf nicht-DE-Seiten. */
.mt-notice {
  background: #FFFBEF;
  border-bottom: 1px solid var(--lh-yellow);
  color: #4A3B00;
}
.mt-notice .wrap { display: flex; gap: .6rem; align-items: center; padding-block: .6rem; font-size: .9rem; }
.mt-notice svg { width: 1.1em; height: 1.1em; flex-shrink: 0; color: #B8860B; }
.mt-notice a { color: var(--lh-navy); font-weight: 600; }

/* Fallback-Hinweis, wenn ein Einzeltext in der Sprache fehlt und DE angezeigt wird */
.lang-fallback {
  display: inline-block; margin-bottom: 1rem;
  background: var(--lh-soft-white); border: 1px dashed var(--lh-blue-grey);
  color: var(--ink-muted); border-radius: 8px; padding: .3rem .7rem; font-size: .85rem;
}

/* --- Inhaltsseiten-Wrapper (page.php / kurse / faq / Formulare) ------------
   Ersetzt die bisherigen Inline-Styles der S4/S6-Templates (CSP-konform). */
.page-main { padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.content-narrow { max-width: 820px; }
.stack-lg > * + * { margin-top: 1.25rem; }
.mt-2 { margin-top: 2rem; }
.mt-15 { margin-top: 1.5rem; }
.mt-125 { margin-top: 1.25rem; }
.mt-1 { margin-top: 1rem; }

/* S9: schließt die letzten konkreten Inline-style-Breiten der S4/S6/S6b-
   Templates (`<div class="wrap" style="max-width:…px">`, Formularfeld-
   Breiten) ab, die trotz des obigen Kommentars noch nicht umgezogen waren –
   siehe README-BUILD.md "S9 – CSP vs. Inline-Styles" (öffentliche Seiten
   bleiben bei strikter CSP `style-src 'self'` OHNE Ausnahme, anders als der
   admin-spezifische Kompromiss). */
.w-640 { max-width: 640px; }
.w-720 { max-width: 720px; }
.w-780 { max-width: 780px; }
.w-860 { max-width: 860px; }
.w-900 { max-width: 900px; }
.field-w-5rem { width: 5rem; }

/* Formular-Fehlerzusammenfassung + Feldfehler (S4-Templates, nun im CI) */
.error-summary {
  background: #FDECEA; border: 1px solid #E6B0AA; color: #7A271A;
  border-radius: var(--radius-sm); padding: 1rem 1.15rem; margin-bottom: 1.5rem;
}
.error-summary h2 { color: #7A271A; font-size: 1.1rem; margin-bottom: .5rem; }
.error-summary ul { margin: 0; }
.error-summary a { color: #7A271A; }
.field-error { color: #B3261E; font-size: .88rem; margin-top: .2rem; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: #B3261E; }

/* generischer Submit-Button ohne .btn-Klasse (S4-Formulare) im CI */
.form-card button[type="submit"],
.page-main form > button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 600; font-size: 1rem;
  padding: .85rem 1.4rem; border-radius: 12px; border: 2px solid transparent;
  cursor: pointer; min-height: 44px; background: var(--lh-teal); color: #fff;
  margin-top: 1.25rem;
}
.form-card button[type="submit"]:hover,
.page-main form > button[type="submit"]:hover { background: var(--teal-hover); }

/* Platz zwischen aufeinanderfolgenden form-rows ohne Inline-Style */
.form-row + .form-row,
.form-row + .field,
.field + .field,
.field + .form-row { margin-top: 1rem; }

/* Kurs-Kartenraster der öffentlichen Übersicht (kurse-list) */
.course-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 48rem) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .course-grid { grid-template-columns: repeat(3, 1fr); } }

/* Voucher-Upload-Seitenliste (S6b) im CI */
.voucher-pages { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .6rem; }
.voucher-pages li { display: flex; align-items: center; gap: .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .5rem .75rem; }
.voucher-pages img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; }
.w-plz { max-width: 6rem; }

/* kleine Utility: visuell versteckt, für Screenreader sichtbar */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
