:root {
  --text: #575757;
  --ink: #172d3b;
  /* UX-Review 24.09.2026 (U5): vorher #6f7b81, nur 3,7-4,4:1. Jetzt mindestens
     4,5:1 auf allen hellen Hintergruenden unten (soft-magenta 4,54, weiss 5,3). */
  --muted: #636d73;
  --line: #dce3e5;
  --surface: #ffffff;
  --soft: #f6f8f5;
  --soft-green: #eaf5ee;
  --soft-blue: #eaf4f7;
  --soft-magenta: #fde8f1;
  --green: #006c62;
  --blue: #0f6f8f;
  --magenta: #ce096a;
  --magenta-2: #e32383;
  --danger: #b42318;
  --warning: #fff5d6;
  --radius: 12px;
  --button-radius: 12px;
  --font: -apple-system, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

/* Scroll-Animation: die Klasse wird nur per JS gesetzt (siehe app.js), damit
   ohne JavaScript alles sofort sichtbar bleibt (progressive enhancement). */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

html {
  min-width: 0;
  scroll-behavior: smooth;
  /* Fund 20.09.2026: .hero nutzt den Full-Bleed-Trick mit 100vw/-50vw. 100vw
     zaehlt die Scrollbar mit, dadurch ragte das Hero auf Geraeten mit
     klassischer Scrollbar (Tablet/Desktop) rund 8px nach rechts hinaus.
     "clip" kappt das, ohne - anders als "hidden" - einen Scroll-Container zu
     erzeugen, der die position:sticky-Elemente im Layout brechen wuerde. */
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
  /* "clip" statt "hidden" (UX-Review U8, 24.09.2026): "hidden" machte body zu
     einem eigenen Scroll-Container, darin griff kein position:sticky
     (Checklisten-Knopf, Lektions-Seitenleiste, Checklisten-Zusammenfassung).
     "hidden" davor bleibt als Rueckfall fuer alte Browser ohne "clip". */
  overflow-x: hidden;
  overflow-x: clip;
  /* Fachtexte enthalten lange Ketten ohne Leerzeichen, z. B.
     "Schnittstellen/Datenstrukturen/Technologien/Abhaengigkeiten" aus dem
     Kriterienkatalog. Ohne diese Regel ragten sie auf 375px-Displays aus dem
     Viewport und wurden abgeschnitten (Live-Fund 20.09.2026, Beispielseite). */
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(246, 248, 245, 0.96) 0, rgba(255, 255, 255, 0.99) 520px),
    var(--surface);
}

a {
  color: var(--magenta);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #a90859;
}

img,
video,
iframe {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #b9c8cc;
  border-radius: var(--radius);
  background: #fbfcfc;
  color: var(--ink);
  padding: 10px 12px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #8dabb1;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  /* Volldeckend statt halbtransparent: bei 35% Deckkraft lag der
     Kontrast des Fokusrings auf hellem Grund nur bei rund 1,9:1 -
     deutlich unter den fuer Fokusindikatoren ueblichen 3:1. */
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 600;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

legend {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink);
  background: var(--soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

progress {
  width: 100%;
  height: 10px;
  accent-color: var(--magenta);
}

details {
  min-width: 0;
}

summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.shell {
  width: min(100% - 56px, 1440px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 18px;
  top: 14px;
  z-index: 30;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

/* 28.09.2026 (Codex-Review, Befund 8): "erledigt" bei Phasen und Etappen war nur an
   Klasse und Farbe erkennbar. Dieser Zusatztext ist nur fuer Screenreader da. */
.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;
}

.release-banner {
  background: var(--ink);
  color: #fff;
  font-size: 0.88rem;
}

.release-banner .shell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding-block: 8px;
}

.release-banner a {
  margin-left: auto;
  color: #fff;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--magenta-2);
  flex: 0 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 92px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
  min-width: 240px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--magenta);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
}

.brand strong {
  display: block;
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.05;
}

.brand strong span {
  color: var(--magenta);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.2;
}

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-header nav a,
.site-footer nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-header nav a {
  padding: 9px 16px;
  border-radius: 999px;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--magenta);
  background: var(--soft-magenta);
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--magenta);
  text-decoration: underline;
}

.site-header nav a[aria-current="page"] {
  color: var(--magenta);
  background: var(--soft-magenta);
}

.help-link {
  color: var(--magenta) !important;
}

.nav-roles {
  position: relative;
}

.nav-roles summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 750;
  list-style: none;
}

.nav-roles summary::-webkit-details-marker {
  display: none;
}

.nav-roles summary::after {
  content: " \25BE";
}

.nav-roles[open] summary,
.nav-roles summary[aria-current="page"] {
  color: var(--magenta);
}

.nav-roles-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 210px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-roles-menu a {
  padding: 9px 10px;
  border-radius: 6px;
}

.nav-roles-menu a:hover,
.nav-roles-menu a[aria-current="page"] {
  background: var(--soft-magenta);
  color: var(--magenta);
}

main.shell {
  padding-bottom: 84px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(220px, 1fr) minmax(220px, 0.8fr);
  gap: 28px;
  padding-block: 36px 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin: 6px 0;
}

.footer-note {
  align-self: start;
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

/* 25.09.2026: bewusst unauffaelliger Admin-Einstieg, klein und grau. */
.footer-admin {
  justify-self: start;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
}

.footer-admin:hover,
.footer-admin:focus-visible {
  text-decoration: underline;
}

.hero {
  position: relative;
  left: 50%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 430px);
  gap: 36px;
  align-items: end;
  width: 100vw;
  min-height: 650px;
  margin-left: -50vw;
  margin-bottom: 82px;
  padding: 94px max(20px, calc((100vw - 1180px) / 2)) 54px;
  overflow: hidden;
  isolation: isolate;
  /* UX-Review 24.09.2026 (U7): Kopfbild als JPEG, 120 KB statt 1,65 MB PNG. */
  background:
    linear-gradient(90deg, rgba(23, 45, 59, 0.9) 0%, rgba(23, 45, 59, 0.65) 46%, rgba(23, 45, 59, 0.15) 100%),
    url("ipa-hero-workspace.jpg") center right / cover no-repeat;
}

/* Die VPA bekommt denselben Hero wie die IPA, nur mit eigenem Bild und
   eigener Leitfarbe, damit beide Pruefungsarten gleichwertig auftreten. */
.hero.vpa-hero {
  background:
    linear-gradient(90deg, rgba(11, 43, 51, 0.92) 0%, rgba(11, 43, 51, 0.66) 46%, rgba(11, 43, 51, 0.12) 100%),
    url("vpa-hero-workspace.svg") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  background: linear-gradient(90deg, var(--magenta) 0 38%, var(--green) 38% 68%, var(--blue) 68% 100%);
}

.hero.vpa-hero::after {
  background: linear-gradient(90deg, var(--amber, #e0912f) 0 38%, #2f7f86 38% 68%, var(--blue) 68% 100%);
}

.hero-copy {
  max-width: 690px;
  color: #fff;
}

.hero .eyebrow,
.hero .lead,
.hero .micro {
  color: #fff;
}

/* Fund 24.09.2026 (UX-Review U5): Die Lernstand-Karte im Hero ist weiss, die
   Regel oben machte ihr Label "Wo du stehst" weiss auf weiss. */
.hero .journey-card .eyebrow {
  color: var(--magenta);
}

.hero h1 {
  margin: 18px 0 22px;
  color: #fff;
  font-size: 4.6rem;
  line-height: 0.96;
  font-weight: 850;
}

.hero .lead {
  max-width: 620px;
  font-size: 1.32rem;
  line-height: 1.55;
}

.accent {
  color: #ff9ac7;
}

.hero-sub {
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 28px;
}

.journey-card {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  padding: 28px;
}

/* Weniger Text 24.09.2026: Die Zwischenueberschrift der Karte ist weg, der
   Abstand bleibt. */
.journey-card .card-top {
  margin-bottom: 24px;
}

.journey-stages {
  display: grid;
  gap: 13px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.journey-stages li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: start;
}

.journey-stages li > span,
.module-number,
.step-number,
.track-code,
.track-badge,
.issue-code {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--soft-blue);
  color: var(--blue);
  font-weight: 850;
  font-size: 0.82rem;
}

.journey-stages strong {
  display: block;
  color: var(--ink);
}

.journey-stages li.done > span {
  background: var(--soft-green);
  color: var(--green);
}

.journey-stages li.current > span {
  background: var(--soft-magenta);
  color: var(--magenta);
}

.wayfinder {
  margin: 0 0 22px;
}

.wayfinder ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.wayfinder ol:last-child {
  margin-bottom: 0;
}

.wayfinder li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.wayfinder li.done {
  background: var(--soft-green);
  color: var(--green);
}

.wayfinder li.current {
  background: var(--soft-magenta);
  color: var(--magenta);
}

.wayfinder-next {
  margin: 0;
}

.journey-stages small,
.journey-progress small,
.module-card small,
.track-card small {
  display: block;
  color: var(--muted);
  line-height: 1.4;
}

.journey-progress label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  max-width: 100%;
  padding: 13px 22px;
  border: 0;
  border-radius: var(--button-radius);
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}

.button.primary {
  background: var(--magenta);
  color: #fff;
}

.button.primary:hover {
  color: #fff;
  filter: brightness(0.97);
  transform: translateY(-2px);
}

.button.secondary,
.button.ghost {
  border: 1px solid #c7d4d8;
  background: #fff;
  color: var(--ink);
}

.button.secondary:hover,
.button.ghost:hover {
  border-color: var(--magenta);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

/* 29.09.2026 (Wunsch Leandro): .small stand seit Einfuehrung der
   Freigabe-Aktionen in mehreren Views im Markup, ohne dass je eine Regel
   dafuer existierte - Knoepfe erschienen dadurch in voller CTA-Groesse
   (min-height 48px) auch in dichten Admin-Tabellen. */
.button.small {
  min-height: 34px;
  padding: 6px 14px;
  font-size: 0.82rem;
  gap: 6px;
}

.hero .button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.button.danger {
  background: var(--danger);
  color: #fff;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.text-link {
  color: var(--magenta);
  font-weight: 800;
}

.section,
.page-heading,
.reading-width,
.reference-section {
  margin-block: 72px;
}

.page-heading {
  max-width: 860px;
  padding-top: 18px;
}

.reading-width {
  max-width: 820px;
}

/* 25.09.2026: Ueberschriften z. B. auf "Daten & Grenzen" waren so grau wie der Text. */
.reading-width > h2 {
  color: var(--ink);
}

.page-heading h1,
.lesson-header h1 {
  margin: 6px 0 16px;
  color: var(--ink);
  font-size: 3rem;
  line-height: 1.05;
  font-weight: 850;
}

.section h2,
.lesson-section h2,
.track-detail h2,
.selfcheck h2,
.closing-panel h2,
.help-card h2,
.source-card h2,
.card h2,
.action-card h2,
.goal h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1.18;
}

.lead {
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--magenta);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.micro {
  color: var(--muted);
  font-size: 0.88rem;
}

.pill,
.track-badge,
.module-status,
.selection-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft-magenta);
  color: var(--magenta);
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1.2;
}

/* UX-Review 24.09.2026 (U9): Die Plakette zeigt jetzt den Namen der
   Fachrichtung statt des Kuerzels (API, EDB ...). Lange Namen duerfen
   umbrechen und bleiben in der Plakette; "Wo du stehst" bleibt einzeilig. */
.track-badge {
  height: auto;
  text-align: center;
}

.journey-card .card-top .eyebrow {
  white-space: nowrap;
}

/* UX-Review 24.09.2026 (U12): Sprunglinks oben auf der Hilfe-Seite. */
.help-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.help-jumps .pill {
  min-height: 36px;
  padding-inline: 14px;
  text-decoration: none;
}

.pill.success,
.module-status.done {
  background: var(--soft-green);
  color: var(--green);
}

.section-heading,
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading > p {
  max-width: 320px;
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

/* Vereinfachung 24.09.2026: Vertiefungen der Rolle eingeklappt (views/path.php).
   Eigenes +/- statt des Browser-Dreiecks, das mit display:grid verschwindet. */
.path-extras {
  margin-block: 38px;
}

/* Zwei Aufklappboxen untereinander (25.09.2026): kleiner Abstand dazwischen. */
.path-extras:has(+ .path-extras) {
  margin-bottom: 12px;
}

.path-extras + .path-extras {
  margin-top: 12px;
}

.path-extras > summary {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px 22px 18px 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  cursor: pointer;
  list-style: none;
}

.path-extras > summary::-webkit-details-marker {
  display: none;
}

.path-extras > summary::before {
  content: "+";
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--soft-magenta);
  color: var(--magenta);
  font-weight: 850;
  line-height: 1;
}

.path-extras[open] > summary::before {
  content: "\2212";
}

.path-extras > summary .eyebrow {
  margin: 0;
}

.path-extras > summary strong {
  color: var(--ink);
  font-size: 1.15rem;
}

.path-extras > summary small {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Zeitplan in einer Spalte, lesbar breit. Die Info-Spalte "Auf einen Blick"
   daneben ist seit der Vereinfachung vom 24.09.2026 entfernt (doppelt zur
   Karte im Kopfbereich); die .timeline-note-Regeln darunter sind ungenutzt. */
.timeline-layout {
  display: grid;
  grid-template-columns: minmax(0, 860px);
  gap: 32px;
}

.timeline-note {
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.timeline-note > p:not(.eyebrow) {
  margin: 6px 0 20px;
  color: var(--muted);
  font-weight: 700;
}

.timeline-note .journey-stages {
  margin-bottom: 20px;
}

.timeline-note .micro {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.track-grid,
.module-grid,
.source-grid,
.dashboard-grid,
.help-grid {
  display: grid;
  gap: 18px;
}

.track-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Karussell fuer "Alle Abschnitte": drei Karten sichtbar, der Rest per
   Pfeil oder Wischen/Scrollen erreichbar, statt eine lange Liste. Das
   Scrollen selbst ist reines CSS und funktioniert auch ohne JavaScript;
   nur die Pfeil-Buttons brauchen app.js. */
.module-carousel-wrap {
  position: relative;
}

.module-carousel {
  display: flex;
  grid-template-columns: none;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

/* UX-Review 24.09.2026 (U13): Bei "reduzierter Bewegung" auch kein weiches
   Scrollen (Sprunglinks, Karussell). Steht bewusst nach den Grundregeln fuer
   html und .module-carousel, sonst wuerden diese es ueberschreiben. Die
   Karussell-Pfeile und das Mausrad in app.js pruefen dieselbe Einstellung. */
@media (prefers-reduced-motion: reduce) {
  html,
  .module-carousel {
    scroll-behavior: auto;
  }
}

.module-carousel > .module-card {
  flex: 0 0 calc((100% - 2 * 18px) / 3);
  min-width: 0;
  scroll-snap-align: start;
}

.module-carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.15rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.carousel-btn:hover:not(:disabled) {
  border-color: var(--magenta);
  color: var(--magenta);
  transform: translateY(-2px);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.source-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.help-grid,
.reference-layout,
.checklist-layout,
.registration-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: start;
}

/* Die Hilfe-Seite fuehrt vier gleichwertige Karten, deshalb gleiche Spalten. */
/* 25.09.2026: drei Karten (Pruefung, Betrieb, PkOrg) nebeneinander statt 2 + 1. */
.help-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) and (min-width: 761px) {
  .help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.registration-layout {
  grid-template-columns: minmax(250px, 0.42fr) minmax(0, 0.58fr);
  margin-block: 38px 70px;
}

.track-card,
.module-card,
.source-card,
.help-card,
.card,
.search-result,
.criterion,
.goal,
.action-card,
.lesson-section,
.track-detail,
.example,
.lesson-completion,
.selfcheck,
.video-slot,
.summary-card,
.privacy-note,
.panel-form,
.feedback,
.conflict-item,
.recovery-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.track-card,
.module-card,
.source-card,
.help-card,
.card,
.search-result,
.criterion {
  display: block;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.track-card,
.module-card,
.source-card,
.help-card,
.card,
.summary-card,
.recovery-card {
  padding: 22px;
}

.recovery-card + .recovery-card {
  margin-top: 20px;
}

.recovery-code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  background: var(--soft-green);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: inline-block;
}

.copy-code-button + [role="status"]:not(:empty) {
  display: block;
  margin-top: 8px;
}

.qr-code {
  margin-top: 12px;
  max-width: 180px;
}

.qr-code svg {
  display: block;
  width: 100%;
  height: auto;
}

/* 25.09.2026: "Geraet wechseln" mit zwei gleich grossen Wegen nebeneinander,
   darunter die Freigabe fuer den Betrieb. Ersetzt den zugeklappten Block. */
.recovery-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.recovery-choices .recovery-card + .recovery-card {
  margin-top: 0;
}

.recovery-card h2 {
  margin: 4px 0 10px;
  color: var(--ink);
}

.recovery-card .eyebrow {
  margin: 0;
}

.recovery-card form {
  margin-top: 14px;
}

.recovery-card form label {
  display: block;
  margin-bottom: 14px;
}

.recovery-card label input {
  margin-top: 6px;
}

.recovery-share {
  margin-top: 28px;
}

@media (max-width: 760px) {
  .recovery-choices {
    grid-template-columns: 1fr;
  }
}

.track-card,
.module-card,
.search-result {
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.track-card:hover,
.module-card:hover,
.search-result:hover {
  border-color: rgba(206, 9, 106, 0.45);
  transform: translateY(-2px);
}

.track-card.selected {
  border-color: var(--magenta);
  background: linear-gradient(180deg, #fff 0, var(--soft-magenta) 100%);
}

.track-card h3,
.module-card h3,
.search-result h3 {
  margin: 18px 0 10px;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.18;
}

.module-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 340px;
}

.module-bottom {
  margin-top: 18px;
  color: var(--magenta);
  font-weight: 800;
}

.quick-rules {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.quick-rules h2,
.quick-rules .eyebrow,
.quick-rules a,
.quick-rules strong {
  color: #fff;
}

.quick-rules a {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.quick-rules span {
  color: rgba(255, 255, 255, 0.82);
}

.closing-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-block: 60px 28px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--soft-green);
}

/* Weniger Text 24.09.2026: Steht nach der Ueberschrift kein Satz mehr, sitzt
   sie mittig neben dem Knopf. */
.closing-panel h2:last-child {
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 14px 0 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.context-switcher {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 6px 0 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
}

.context-switcher strong {
  display: block;
  color: var(--ink);
  line-height: 1.25;
}

.context-switcher-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.context-switcher-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.context-switcher-links a span {
  color: var(--muted);
}

.context-switcher-links a[aria-current="page"],
.context-switcher-links a.current,
.context-switcher-links a:hover {
  border-color: rgba(206, 9, 106, 0.45);
  background: var(--soft-magenta);
  color: var(--magenta);
}

.context-breadcrumb {
  margin-top: 0;
}

.learning-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* Bewusst nicht sticky (UX-Review U8): Seit body kein Scroll-Container mehr
   ist, wuerde sticky hier greifen. Die Kapitelliste ist aber bis zu 1000 px
   hoch, auf kleineren Bildschirmen waeren die letzten Abschnitte dann nicht
   mehr erreichbar. Sie scrollt deshalb wie bisher mit. */
.sidebar {
  position: static;
}

.chapter-nav {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.chapter-nav summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.chapter-nav ol {
  display: grid;
  gap: 5px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.chapter-nav a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 9px;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}

.chapter-nav a[aria-current="step"],
.chapter-nav a:hover {
  background: var(--soft-blue);
}

.chapter-nav small {
  display: block;
  color: var(--green);
  font-size: 0.78rem;
}

.sidebar-help {
  display: block !important;
  grid-template-columns: 1fr !important;
  color: var(--magenta) !important;
  font-weight: 800;
}

.lesson-body {
  min-width: 0;
  max-width: 820px;
}

.lesson-header {
  margin-bottom: 24px;
}

.lesson-header .goal,
.goal,
.action-card {
  padding: 22px;
  background: var(--soft-green);
}

.lesson-section,
.track-detail,
.example,
.selfcheck,
.video-slot,
.feedback {
  margin-block: 20px;
  padding: 24px;
}

.track-detail {
  border-color: rgba(15, 111, 143, 0.35);
  background: var(--soft-blue);
}

.example {
  background: var(--soft);
}

.lesson-completion {
  margin-block: 20px;
}

.completion-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lesson-completion form {
  margin-top: 16px;
}

.completion-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.completion-actions form {
  margin: 0;
}

@media (max-width: 420px) {
  .completion-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .completion-actions .button {
    width: 100%;
  }
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 18px;
  padding: 0;
  list-style: none;
}

.source-links a,
.filename,
.hash {
  overflow-wrap: anywhere;
}

.source-links a {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.warning,
.notice {
  margin-block: 18px;
  padding: 17px 18px;
  border-left: 5px solid var(--magenta);
  border-radius: var(--radius);
  background: var(--warning);
  color: var(--ink);
}

.warning strong,
.notice strong {
  color: var(--ink);
}

.notice {
  border-left-color: var(--blue);
  background: var(--soft-blue);
}

.reviewed {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin: 18px 0;
  font-weight: 650;
}

.reviewed input {
  width: 20px;
  min-height: 20px;
  margin-top: 4px;
  accent-color: var(--magenta);
}

.question {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

/* Fund 24.09.2026 (UX-Review): .question ist selbst das fieldset, die Regel
   ".question fieldset" mit dem Abstand zwischen den Antworten griff nie. Die
   Antworten lagen ohne Abstand bei 27 px Hoehe, "Frage 1" klebte am Fragetext
   und die Legende sass auf dem Kartenrahmen. Jetzt: Legende in der Karte,
   "Frage 1" auf eigener Zeile, jede Antwort mindestens 44 px hoch, der
   Radioknopf auf Hoehe der ersten Textzeile (wie bei .reviewed). */
.question legend {
  float: left;
  width: 100%;
}

.question legend .eyebrow {
  display: block;
}

.question label {
  clear: both;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  font-weight: 550;
}

.question input[type="radio"] {
  width: 20px;
  min-height: 20px;
  margin-top: 4px;
  accent-color: var(--magenta);
}

.feedback.passed {
  border-color: rgba(0, 108, 98, 0.35);
  background: var(--soft-green);
}

.feedback.retry {
  border-color: rgba(180, 35, 24, 0.35);
  background: #fff0ed;
}

.lesson-pagination {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}

.video-slot {
  background: var(--ink);
  color: #fff;
}

.video-slot h3,
.video-slot .eyebrow,
.video-slot a,
.video-slot p {
  color: #fff;
}

.video-slot > div {
  display: grid;
  gap: 14px;
}

.video-icon,
.video-play {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--magenta);
  color: #fff;
  font-weight: 900;
}

.youtube-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  background: #000;
}

.transcript {
  max-height: 300px;
  overflow: auto;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.video-consent {
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.video-placeholder {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 38px;
}

.video-placeholder h2,
.video-placeholder p {
  color: #fff;
}

.search-form,
.panel-form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.search-form {
  margin-block: 24px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.reference-heading {
  margin-block: 34px 22px;
}

.reference-heading + .search-form {
  margin-block: 18px 20px;
}

.reference-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.reference-jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.reference-jumps a:hover {
  border-color: var(--magenta);
  color: var(--magenta);
}

#lernweg,
#begriffe,
#kriterien {
  scroll-margin-top: 20px;
}

.search-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.search-results {
  display: grid;
  gap: 14px;
}

.search-result {
  padding: 18px;
}

.reference-layout aside,
.privacy-note {
  border-radius: var(--radius);
  background: var(--soft);
  padding: 24px;
}

.glossary-item,
.conflict-item {
  margin-block: 12px;
  padding: 15px 16px;
}

.conflict-item summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.criterion {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 16px;
}

.criterion small {
  display: block;
  color: var(--muted);
}

.criteria-groups {
  display: grid;
  gap: 12px;
}

.criteria-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.criteria-group summary {
  padding: 16px 20px;
  background: var(--soft);
  cursor: pointer;
}

.criteria-group summary span {
  float: right;
  margin-left: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.criteria-list {
  border-top: 1px solid var(--line);
}

.criteria-list .criterion {
  grid-template-columns: 3.5rem minmax(0, 1fr);
  border: 0;
  border-radius: 0;
  padding: 12px 16px;
  color: var(--ink);
  text-decoration: none;
}

.criteria-list .criterion + .criterion {
  border-top: 1px solid var(--line);
}

.criterion-code {
  color: var(--magenta);
  font-weight: 800;
}

.checklist-layout {
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.45fr);
}

.checklist-layout form {
  display: grid;
  gap: 12px;
}

/* 25.09.2026 (Wunsch Leandro): Der Speichern-Knopf klebte seit U8 unten am
   Bildschirm und deckte dabei Zeilen ab. Jetzt steht er normal unter der Liste.
   Vor ungespeicherten Aenderungen warnen weiterhin der Knopftext und die
   Nachfrage beim Verlassen (app.js). */
.checklist-layout form > button[type="submit"] {
  margin-top: 18px;
}

.check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.check-row label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  font-weight: 650;
}

.check-row input {
  width: 20px;
  min-height: 20px;
  margin-top: 4px;
  accent-color: var(--magenta);
}

/* 25.09.2026: Rollen-Kaestchen im Admin waren riesig und standen ueber ihrem
   Text, weil es fuer .checkbox-inline keine Regel gab. */
.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-weight: 600;
  white-space: nowrap;
}

.checkbox-inline input {
  flex: none;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--magenta);
}

.inline-form .button.small {
  margin-top: 6px;
}

.summary-card {
  position: sticky;
  top: 16px;
  background: var(--soft-green);
}

.summary-card h2 {
  color: var(--ink);
  font-size: 3rem;
  line-height: 1;
}

.summary-card small {
  color: var(--muted);
  font-size: 1rem;
}

/* Weniger Text 24.09.2026: Der Export-Link klebte am Druck-Knopf. */
.summary-card .text-link {
  display: block;
  margin-top: 14px;
}

.registration-heading {
  max-width: 780px;
}

.privacy-note {
  border: 1px solid var(--line);
  background: var(--soft-green);
}

.registration-form fieldset {
  display: grid;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.registration-form fieldset:last-of-type {
  border-bottom: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-actions {
  padding: 24px;
  background: var(--soft);
}

.admin-actions .panel-form,
.admin-actions .warning {
  margin-inline: 0;
}

.access-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(234, 245, 238, 0.9)),
    url("access-pattern.svg") center / cover no-repeat;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.access-page .release-banner,
.access-page .site-header,
.access-page .site-footer {
  display: none;
}

.access-page main.shell {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

.access-gate {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 28px;
}

.access-card {
  width: min(100%, 520px);
  border: 1px solid rgba(220, 227, 229, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  padding: 34px;
  backdrop-filter: blur(10px);
}

.lock-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(101deg, #e51f6b 0%, #e32383 100%);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 900;
}

.access-card h1 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 2.15rem;
  line-height: 1.1;
}

.access-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.role-hero {
  display: grid;
  align-items: end;
  min-height: 360px;
  margin-block: 20px 40px;
  padding: 52px;
  border-radius: var(--radius);
  background:
    linear-gradient(128deg, rgba(0, 108, 98, 0.92), rgba(15, 111, 143, 0.88)),
    url("ipa-hero-workspace.jpg") center / cover no-repeat;
  color: #fff;
}

.role-hero h1,
.role-hero .lead,
.role-hero .eyebrow {
  color: #fff;
}

.role-hero h1 {
  max-width: 780px;
  margin: 8px 0 14px;
  font-size: 4rem;
  line-height: 1;
}

.role-hero .lead {
  max-width: 640px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-block: 36px 58px;
}

.role-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.role-grid-stack {
  grid-template-columns: 1fr;
  gap: 24px;
}

.role-card {
  display: grid;
  gap: 14px;
  min-height: 320px;
  padding: 28px;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.role-card:hover {
  transform: translateY(-3px);
  color: var(--ink);
}

.role-card h2 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 1.85rem;
  line-height: 1.12;
}

.role-card strong {
  align-self: end;
  color: var(--magenta);
}

.role-card.role-kand {
  background: var(--soft-magenta);
}

.role-card.role-vf {
  background: var(--soft-green);
}

.role-card.role-pex {
  background: var(--soft-blue);
}

.role-card.vpa {
  background: #fff1d8;
}

/* Karte mit Bild: eine Zeile pro Rolle, Bild links, Text rechts. */
.role-card-wide {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.role-card-body {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 28px;
}

.role-card-body h2 {
  margin-top: 0;
}

.role-card-lead {
  color: var(--muted);
}

/* Einfache, abstrakte SVG-Illustrationen statt Fotos - keine echten
   Personen, keine Logos, konsistent mit den Rollenfarben aus dem
   Kontextwechsler. Im selben Stil wie edb-hero-workspace.svg. */
.role-bild {
  display: block;
  min-height: 220px;
  background-position: center;
  background-size: cover;
}

.role-bild-kand {
  background-image: url("role-kand.svg");
}

.role-bild-vf {
  background-image: url("role-vf.svg");
}

.role-bild-pex {
  background-image: url("role-pex.svg");
}

.exam-hero {
  min-height: 390px;
}

.exam-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-block: 36px 24px;
}

.exam-choice-card {
  display: grid;
  gap: 18px;
  min-width: 0;
  min-height: 500px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}

.exam-choice-card h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 2.35rem;
  line-height: 1.08;
}

.exam-choice-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.exam-choice-card dl div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 45, 59, 0.12);
}

.exam-choice-card dt {
  color: var(--ink);
  font-weight: 850;
}

.exam-choice-card dd {
  margin: 0;
}

.exam-choice-card strong {
  align-self: end;
  color: var(--magenta);
}

.exam-profession {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 750;
}

.ipa-choice {
  background: linear-gradient(180deg, #fff 0, var(--soft-green) 100%);
}

.vpa-choice {
  background: linear-gradient(180deg, #fff 0, #fff1d8 100%);
}

.panel-band {
  margin-block: 48px;
  padding: 42px;
  border-radius: var(--radius);
  color: #fff;
}

.panel-band h2,
.panel-band p,
.panel-band .eyebrow {
  color: #fff;
}

.green-panel {
  background: linear-gradient(128deg, #006c62 0%, #55a561 100%);
}

.blue-panel {
  background: linear-gradient(128deg, #0f6f8f 0%, #4ea5b8 100%);
}

.amber-panel {
  background: linear-gradient(128deg, #8a4f00 0%, #d58a18 100%);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.process-steps li {
  counter-increment: steps;
  position: relative;
  min-height: 120px;
  padding: 22px 22px 22px 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  line-height: 1.5;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.process-steps li:hover {
  transform: translateY(-2px);
  border-color: rgba(206, 9, 106, 0.35);
}

.process-steps li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--soft-magenta);
  color: var(--magenta);
  font-weight: 900;
  font-size: 0.92rem;
}

.compact-list {
  margin: 0;
  padding-left: 1.2rem;
}

.compact-list li + li {
  margin-top: 10px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.admin-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.admin-menu a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.admin-menu a[aria-current="page"],
.admin-menu a:hover {
  background: var(--magenta);
  color: #fff;
}

.markdown-document {
  padding-bottom: 30px;
}

.markdown-document h2,
.markdown-document h3,
.markdown-document h4,
.markdown-document h5 {
  color: var(--ink);
  line-height: 1.2;
}

.markdown-document blockquote {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 5px solid var(--magenta);
  background: var(--soft-magenta);
  color: var(--ink);
}

.markdown-document hr {
  margin: 30px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.print-persistent {
  break-inside: avoid;
}

.compact-list {
  margin: 12px 0 0;
  padding-left: 19px;
}

.table-wrap,
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

/* 29.09.2026 (Wunsch Leandro, "Knoepfe wirken unruhig"): jede Aktion stand in
   einem eigenen <form>, ohne Layout stapelten sich die Blockelemente
   untereinander. Jetzt kompakt in einer Reihe, bei Platzmangel umbrechend. */
.admin-release-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-release-actions form {
  display: contents;
}

.admin-release-actions .inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-release-actions .inline-form input[type="text"] {
  width: 220px;
  min-height: 34px;
  padding: 6px 10px;
}

.admin-release-actions .button,
.admin-release-actions .inline-form input[type="text"] {
  flex-shrink: 0;
}

/* Ansprechpersonen der Chefexpertise (Seite "Hilfe"). */
.cex-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 14px;
}

.cex-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.cex-card header {
  display: grid;
  gap: 6px;
}

.cex-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.25;
}

.cex-role {
  margin: 0;
  color: var(--muted, #5b6472);
  font-size: 0.92rem;
  font-weight: 650;
}

.cex-scope,
.cex-topics {
  margin: 0;
  font-size: 0.95rem;
}

.cex-topics {
  padding-left: 20px;
  display: grid;
  gap: 4px;
}

.cex-card .contact-email {
  margin-top: auto;
  word-break: break-word;
}

.cex-inline {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  padding-left: 20px;
}

@media (max-width: 900px) {
  .cex-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 70px;
    background-position: center right 34%;
  }

  .journey-card {
    max-width: 560px;
  }

  .hero h1 {
    font-size: 3.7rem;
  }

  .learning-layout,
  .reference-layout,
  .checklist-layout,
  .registration-layout,
  .timeline-layout,
  .help-grid {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .summary-card {
    position: static;
  }

  .track-grid,
  .module-grid,
  .dashboard-grid,
  .role-grid,
  .role-grid-three,
  .exam-choice-grid,
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-carousel > .module-card {
    flex-basis: calc((100% - 18px) / 2);
  }

  .role-card-wide {
    grid-template-columns: 1fr;
  }

  .role-bild {
    min-height: 160px;
  }

  .quick-rules {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .context-switcher {
    grid-template-columns: 1fr;
  }

  .context-switcher-links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .shell {
    width: min(100% - 28px, 1180px);
  }

  /* UX-Review 24.09.2026 (U6): Am Handy lagen vor dem Inhalt ueber 1000 px
     Banner, Kopf, Wegweiser und Brotkrumen. Das Banner laeuft jetzt als
     Fliesstext (der Punkt belegte eine eigene Zeile), das Menue ist enger
     gepackt, bleibt aber vollstaendig sichtbar. Wegweiser siehe max-width 700px. */
  .release-banner {
    font-size: 0.82rem;
  }

  .release-banner .shell {
    display: block;
    min-height: 0;
    line-height: 1.45;
  }

  .release-banner .status-dot {
    display: inline-block;
    margin-right: 8px;
    vertical-align: 1px;
  }

  .release-banner a {
    margin-left: 6px;
    white-space: nowrap;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding-block: 12px;
  }

  .brand {
    min-width: 0;
  }

  .site-header nav {
    justify-content: flex-start;
    gap: 4px;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .site-header nav a {
    min-height: 44px;
    padding-inline: 10px;
    font-size: 0.9rem;
  }

  .nav-roles-menu {
    position: static;
    margin-top: 6px;
    padding: 4px 0 4px 12px;
    background: none;
    border: none;
    border-left: 2px solid var(--line);
    border-radius: 0;
  }

  .hero {
    margin-bottom: 54px;
    padding: 56px 14px 42px;
    background:
      linear-gradient(180deg, rgba(23, 45, 59, 0.91) 0%, rgba(23, 45, 59, 0.79) 62%, rgba(23, 45, 59, 0.54) 100%),
      url("ipa-hero-workspace.jpg") center / cover no-repeat;
  }

  .hero.vpa-hero {
    background:
      linear-gradient(180deg, rgba(11, 43, 51, 0.92) 0%, rgba(11, 43, 51, 0.8) 62%, rgba(11, 43, 51, 0.55) 100%),
      url("vpa-hero-workspace.svg") center / cover no-repeat;
  }

  /* Dieselbe abgedunkelte, einspaltige Maske wie .hero oben, nur mit dem
     jeweils passenden Berufsbild statt immer dem IPA-Motiv. */
  .hero.hero-med {
    background:
      linear-gradient(180deg, rgba(58, 22, 56, 0.92) 0%, rgba(58, 22, 56, 0.8) 62%, rgba(58, 22, 56, 0.55) 100%),
      url("med-hero-workspace.svg") center / cover no-repeat;
  }

  .hero.hero-edb {
    background:
      linear-gradient(180deg, rgba(14, 38, 66, 0.92) 0%, rgba(14, 38, 66, 0.8) 62%, rgba(14, 38, 66, 0.55) 100%),
      url("edb-hero-workspace.svg") center / cover no-repeat;
  }

  .hero.hero-iff {
    background:
      linear-gradient(180deg, rgba(11, 43, 51, 0.92) 0%, rgba(11, 43, 51, 0.8) 62%, rgba(11, 43, 51, 0.55) 100%),
      url("vpa-hero-workspace.svg") center / cover no-repeat;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero .lead {
    font-size: 1.08rem;
  }

  .journey-card {
    padding: 22px;
  }

  /* Vereinfachung 24.09.2026 (Entscheid Leandro): Am Handy zeigt die Karte nur
     den Fortschritt; die fuenf Etappen stehen gleich darunter im Zeitplan. */
  .hero .journey-card .journey-stages {
    display: none;
  }

  .page-heading h1,
  .lesson-header h1 {
    font-size: 2.35rem;
  }

  .section,
  .page-heading,
  .reading-width,
  .reference-section {
    margin-block: 38px;
  }

  .track-grid,
  .module-grid,
  .source-grid,
  .dashboard-grid,
  .role-grid,
  .role-grid-three,
  .exam-choice-grid,
  .process-steps,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .module-carousel > .module-card {
    flex-basis: 100%;
  }

  .role-hero {
    padding: 30px;
    min-height: 300px;
  }

  .role-hero h1 {
    font-size: 2.7rem;
  }

  .exam-choice-card {
    min-height: 0;
    padding: 24px;
  }

  .exam-choice-card h2 {
    font-size: 1.9rem;
  }

  .exam-choice-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .section-heading,
  .closing-panel,
  .lesson-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .closing-panel {
    padding: 22px;
  }

  .search-form > div {
    grid-template-columns: 1fr;
  }

  .check-row {
    grid-template-columns: 1fr;
  }

  .date-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .shell {
    width: min(100% - 22px, 1180px);
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .access-card {
    padding: 24px;
  }

  .role-hero h1 {
    font-size: 2.2rem;
  }

  .page-heading h1,
  .lesson-header h1 {
    font-size: 2rem;
  }

  .button {
    width: 100%;
    padding-inline: 16px;
    font-size: 0.94rem;
  }

  .hero-actions {
    width: 100%;
  }

  .journey-stages li,
  .chapter-nav a,
  .criterion {
    grid-template-columns: 1fr;
  }

  .criteria-list .criterion {
    grid-template-columns: 3.5rem minmax(0, 1fr);
  }

  .track-card,
  .module-card,
  .source-card,
  .help-card,
  .card,
  .summary-card,
  .exam-choice-card,
  .panel-form,
  .lesson-section,
  .track-detail,
  .example,
  .selfcheck,
  .video-slot {
    padding: 18px;
  }
}

@media print {
  .release-banner,
  .site-header,
  .site-footer,
  .sidebar,
  .hero,
  .button,
  .video-slot {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .shell {
    width: 100%;
  }
}

/* ===== Rollen- und Berufsleitfarben =======================================
   Stefan Ueltschi hat vorgeschlagen, die Bereiche nach Rolle einzufaerben.
   Genau das macht dieser Block: eine Farbe pro Rolle, konsistent auf Hero,
   Abschnittskarten und Zeitstrahl - und ein eigenes Kopfbild pro Beruf. */
:root {
  --role-kand: #006c62;
  --role-vf: #0f6f8f;
  --role-pex: #8a4b9c;
}

.hero.role-vf::after { background: linear-gradient(90deg, var(--role-vf) 0 38%, var(--green) 38% 68%, var(--blue) 68% 100%); }
.hero.role-pex::after { background: linear-gradient(90deg, var(--role-pex) 0 38%, var(--magenta) 38% 68%, var(--blue) 68% 100%); }

.module-card.role-vf { border-left: 4px solid var(--role-vf); }
.module-card.role-pex { border-left: 4px solid var(--role-pex); }
.module-card.role-kand { border-left: 4px solid var(--role-kand); }

/* Kopfbild je Beruf. API und PLATT teilen sich das Informatik-Motiv.
   Nur ab 761px: diese Regeln haben zwei Klassen (Spezifitaet 0,2,0) und
   haben deshalb bisher IMMER die eigens fuer Mobile abgedunkelte, einspaltige
   .hero-Regel weiter unten (nur eine Klasse, 0,1,0) ueberstimmt, unabhaengig
   von der Bildschirmbreite - auf Mobilgeraeten lag dadurch der helle,
   rechts kaum noch abgedunkelte Bildrand genau dort, wo der Titeltext liegt. */
@media (min-width: 761px) {
  .hero.hero-api,
  .hero.hero-platt {
    background:
      linear-gradient(90deg, rgba(23, 45, 59, 0.9) 0%, rgba(23, 45, 59, 0.65) 46%, rgba(23, 45, 59, 0.15) 100%),
      url("ipa-hero-workspace.jpg") center right / cover no-repeat;
  }

  .hero.hero-med {
    background:
      linear-gradient(90deg, rgba(58, 22, 56, 0.92) 0%, rgba(58, 22, 56, 0.66) 46%, rgba(58, 22, 56, 0.12) 100%),
      url("med-hero-workspace.svg") center right / cover no-repeat;
  }

  .hero.hero-edb {
    background:
      linear-gradient(90deg, rgba(14, 38, 66, 0.92) 0%, rgba(14, 38, 66, 0.66) 46%, rgba(14, 38, 66, 0.12) 100%),
      url("edb-hero-workspace.svg") center right / cover no-repeat;
  }

  .hero.hero-iff {
    background:
      linear-gradient(90deg, rgba(11, 43, 51, 0.92) 0%, rgba(11, 43, 51, 0.66) 46%, rgba(11, 43, 51, 0.12) 100%),
      url("vpa-hero-workspace.svg") center right / cover no-repeat;
  }
}

/* ===== Versprechen-Band: das Tool ersetzt die Wegleitung nicht ============ */
.promise-band {
  margin: 0 0 42px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: var(--radius);
  background: #f4faf8;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.promise-band-icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-weight: 900;
  font-size: 1.2rem;
}

.promise-band h2 {
  margin: 4px 0 10px;
  color: var(--ink);
  font-size: 1.32rem;
  line-height: 1.25;
}

.promise-band p { margin: 0; max-width: 78ch; }

/* ===== Zeitstrahl "was wann" ============================================= */
.timeline {
  display: grid;
  gap: 0;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.timeline > li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 0 0 26px;
  position: relative;
}

.timeline > li::before {
  content: "";
  position: absolute;
  top: 46px;
  bottom: 0;
  left: 27px;
  width: 2px;
  background: var(--line);
}

.timeline > li:last-child { padding-bottom: 0; }
.timeline > li:last-child::before { display: none; }

.timeline-step {
  display: grid;
  place-items: center;
  width: 56px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.timeline > li.done .timeline-step { border-color: var(--green); background: var(--green); color: #fff; }
.timeline > li.current .timeline-step { border-color: var(--ink); background: var(--ink); color: #fff; }

.timeline-when {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 850;
  line-height: 1.3;
}

.timeline-phase {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #eef2f4;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-body > ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-body > ul > li { min-width: 0; }
.timeline-body > ul a { font-weight: 700; }
.timeline-body > ul small { display: block; color: var(--muted); }

/* Zeitpunkt auf der Abschnittskarte */
.module-when {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 700px) {
  .timeline > li { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
  .timeline > li::before { left: 20px; top: 40px; }
  .timeline-step { width: 42px; height: 40px; font-size: 0.9rem; }
  .promise-band { padding: 20px 18px; }
}

/* ===== Einstieg: Beruf waehlen ==========================================
   Frueher stand hier die Frage "IPA oder VPA?". Das ist Fachvokabular der
   Pruefungsorganisation. Gefragt wird jetzt nach dem Beruf aus dem
   Lehrvertrag; die Pruefungsart wird dabei erklaert statt abgefragt. */
.start-hero {
  max-width: 820px;
  margin: 18px 0 40px;
}

.start-hero h1 {
  margin: 8px 0 14px;
  color: var(--ink);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.08;
}

.beruf-block { margin-bottom: 46px; }

.beruf-block-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.beruf-block-head h2 { margin: 0 0 4px; color: var(--ink); font-size: 1.32rem; }
.beruf-block-head p { margin: 0; }

.exam-tag {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.exam-tag-ipa { background: var(--green); }
/* War #b8751f (nur ~3,75:1 zu weissem Text bei 0.86rem/850, unter den
   fuer normalen Text noetigen 4,5:1); dunkler abgestuft auf ~4,86:1. */
.exam-tag-vpa { background: #a0640f; }

.beruf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

/* Formular-Schnellzuteilung: Beruf + Rolle waehlen, direkt zum Weg statt
   ueber zwei Kartenseiten. Reines GET-Formular auf index.php?page=path -
   keine neue Serverlogik noetig, bootstrap.php liest track/role ohnehin
   aus der URL. */
/* Landing Page: volle Bildbreite mit zentrierter Karte, wie .hero anderswo
   auf der Seite (position:relative + left:50% + negativer Rand fuer echtes
   Full-Bleed unabhaengig von der Shell-Breite). */
.landing-hero {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  padding: 72px 20px 200px;
  display: flex;
  justify-content: center;
  background: linear-gradient(135deg, var(--ink) 0%, #542043 56%, #a81561 100%);
}

/* 25.09.2026 (Wunsch Leandro): Auf der Startseite reicht das Pink bis zur
   Fusszeile, ohne weissen Streifen; die Fusszeile ist kompakter. Eine
   Mindesthoehe "ganzer Bildschirm" war auf grossen Bildschirmen zu viel. */
.page-home main {
  padding-bottom: 0;
}

/* Mittelweg nach zwei Rueckmeldungen (ganzer Bildschirm zu viel, 150 px zu
   wenig): etwa 85 % des Bildschirms, dazu eine groessere Karte. */
.page-home .landing-hero {
  box-sizing: border-box;
  min-height: calc(85vh - 134px);
  padding: 88px 20px 180px;
  align-items: flex-start;
}

.page-home .landing-card {
  max-width: 760px;
  padding: 60px 60px 56px;
}

.page-home .landing-card h1 {
  color: var(--ink);
  font-size: 2.8rem;
  letter-spacing: -0.025em;
}

@media (max-width: 700px) {
  .page-home .landing-hero {
    min-height: 0;
    padding: 48px 16px 80px;
  }
  .page-home .landing-card {
    padding: 32px 24px;
  }
  .page-home .landing-card h1 {
    font-size: 2rem;
  }
}

.page-home .site-footer {
  gap: 14px 28px;
  padding-block: 20px 24px;
  border-top: 0;
}

.landing-card {
  width: 100%;
  max-width: 620px;
  padding: 48px 44px;
  border: 1px solid #e3e9e9;
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.landing-card .eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--soft-magenta);
  color: var(--magenta);
}

.landing-card h1 {
  margin: 10px 0 30px;
  font-size: 2.5rem;
  line-height: 1.15;
}

.landing-card .quick-start-form {
  text-align: left;
}

.landing-hint {
  margin: 22px 0 0;
  color: var(--muted);
  text-align: left;
}

.quick-start-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* align-items: end statt stretch, damit die Selects auf derselben Linie
     enden, auch wenn das Berufslabel auf zwei Zeilen umbricht. */
  align-items: end;
  gap: 18px;
  margin-bottom: 20px;
}

.quick-start-form .button {
  width: 100%;
}

@media (max-width: 700px) {
  .landing-hero {
    padding: 48px 16px 100px;
  }
  .landing-card {
    padding: 32px 24px;
  }
  .landing-card h1 {
    font-size: 2rem;
  }
  .quick-start-fields {
    grid-template-columns: 1fr;
  }
}

.beruf-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.12s ease;
}

.beruf-card:hover {
  transform: translateY(-2px);
  color: var(--text);
}

/* Das Kopfbild des Berufs als schmales Band oben auf der Karte. */
.beruf-bild {
  display: block;
  height: 104px;
  background-position: center;
  background-size: cover;
}

.beruf-card.hero-api .beruf-bild,
.beruf-card.hero-platt .beruf-bild {
  background-image: linear-gradient(90deg, rgba(23,45,59,0.55), rgba(23,45,59,0.1)), url("ipa-hero-workspace.jpg");
}
.beruf-card.hero-med .beruf-bild {
  background-image: linear-gradient(90deg, rgba(58,22,56,0.5), rgba(58,22,56,0.1)), url("med-hero-workspace.svg");
}
.beruf-card.hero-edb .beruf-bild {
  background-image: linear-gradient(90deg, rgba(14,38,66,0.5), rgba(14,38,66,0.1)), url("edb-hero-workspace.svg");
}
.beruf-card.hero-iff .beruf-bild {
  background-image: linear-gradient(90deg, rgba(11,43,51,0.5), rgba(11,43,51,0.1)), url("vpa-hero-workspace.svg");
}

.beruf-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 20px;
}

.beruf-body strong { color: var(--ink); font-size: 1.12rem; line-height: 1.25; }
.beruf-fachrichtung { color: var(--ink); font-weight: 650; font-size: 0.95rem; }
.beruf-claim { margin-top: 2px; font-size: 0.95rem; }
.beruf-go { margin-top: auto; padding-top: 12px; color: var(--magenta); font-weight: 800; }

/* ===== Wegweiser: Beruf und Rolle bleiben sichtbar ======================= */
.wegweiser {
  display: flex;
  flex-wrap: wrap;
  margin: 16px 0 24px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.wegweiser.role-kand { border-left-color: var(--role-kand); }
.wegweiser.role-vf { border-left-color: var(--role-vf); }
.wegweiser.role-pex { border-left-color: var(--role-pex); }

.wegweiser-teil {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
  flex: 1 1 auto;
  padding: 12px 20px;
  border-left: 1px solid var(--line);
}

.wegweiser-teil:first-child { border-left: 0; }
.wegweiser-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
}
.wegweiser-icon {
  display: inline-grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--soft-green);
  color: var(--role-kand);
}
.wegweiser.role-vf .wegweiser-icon { background: var(--soft-blue); color: var(--role-vf); }
.wegweiser.role-pex .wegweiser-icon { background: #f3ebf6; color: var(--role-pex); }
.wegweiser-icon svg { width: 21px; height: 21px; }
.wegweiser-teil .eyebrow { margin: 0; font-size: 0.68rem; }
.wegweiser-teil strong { color: var(--ink); font-size: 0.92rem; }
.wegweiser-teil strong small { display: block; margin-top: 2px; color: var(--muted); font-weight: 650; font-size: 0.78rem; }
.wegweiser-teil a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 36px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--magenta);
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
}
.wegweiser-teil a:hover,
.wegweiser-teil a:focus-visible {
  border-color: var(--magenta);
  background: var(--soft-magenta);
}

@media (max-width: 700px) {
  .beruf-block-head { flex-direction: column; gap: 10px; }
  /* Die drei Angaben bleiben auf dem Handy kompakt; Icons und Kurzlabels
     machen ihre Bedeutung auch ohne die Brotkrumen erkennbar. */
  .wegweiser { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; margin: 6px 0 18px; padding: 10px 14px; }
  .wegweiser-teil { flex-direction: row; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 4px 8px; min-width: 0; margin: 0; padding: 2px 0; border-left: 0; }
  .wegweiser-teil:first-child { grid-column: 1 / -1; }
  .wegweiser-heading { min-height: 30px; }
  .wegweiser-icon { flex-basis: 28px; width: 28px; height: 28px; border-radius: 8px; }
  .wegweiser-icon svg { width: 18px; height: 18px; }
  .wegweiser-teil .eyebrow { font-size: 0.62rem; }
  .wegweiser-teil strong small { display: block; margin: 2px 0 0; }
  .wegweiser-teil a { white-space: nowrap; }
  .context-breadcrumb { display: none; }
}
