/* ═══════════════════════════════════════════════════════════════════
   Andre Münse — Kundenportal

   Farbwelt direkt aus dem Logo: tiefes Navy, Türkis als Akzent.
   Über dem laufenden Video liegen helle Glasflächen — so bleibt das
   Logo in Originalfarben lesbar und die Oberfläche wirkt ruhig.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Aus dem Logo entnommen */
  --navy-900: #0d1f38;
  --navy-800: #14304f;
  --navy-700: #1e4066;
  --navy-600: #2b5c84;
  --tuerkis-600: #3f8296;
  --tuerkis-500: #5ba0b3;
  --tuerkis-400: #86c2d0;
  --tuerkis-300: #b4dde6;

  /* Schrift */
  --ink: #12263d;
  --ink-2: #4a6280;
  --ink-3: #7e94ac;
  --ink-hell: #eef4f8;

  /* Flächen */
  --glas: rgba(255, 255, 255, 0.93);
  --glas-leicht: rgba(255, 255, 255, 0.74);
  --glas-fest: rgba(255, 255, 255, 0.96);
  --schleier: rgba(233, 240, 246, 0.82);

  --linie: rgba(18, 38, 61, 0.1);
  --linie-stark: rgba(18, 38, 61, 0.18);

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;

  --schatten-popup:
    0 2px 8px rgba(13, 31, 56, 0.06),
    0 18px 40px -12px rgba(13, 31, 56, 0.28),
    0 50px 100px -30px rgba(13, 31, 56, 0.45);
  --schatten-karte: 0 1px 3px rgba(13, 31, 56, 0.05), 0 12px 30px -14px rgba(13, 31, 56, 0.22);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --breite: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--navy-900);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}

/* ── Videobühne ───────────────────────────────────────────────────── */

.buehne {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: linear-gradient(160deg, #16304f 0%, #0d1f38 55%, #08172b 100%);
}

.buehne video,
.buehne .standbild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.8s ease;
}

.buehne video.sichtbar,
.buehne .standbild.sichtbar { opacity: 1; }

/* Blaustich + Abdunklung, damit das helle Popup klar davor steht */
.buehne::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 58% at 50% 44%, rgba(8, 23, 43, 0.24) 0%, rgba(6, 18, 34, 0.78) 100%),
    linear-gradient(180deg, rgba(13, 31, 56, 0.58) 0%, rgba(13, 31, 56, 0.3) 40%, rgba(6, 18, 34, 0.82) 100%);
}

/* Im Arbeitsbereich tritt das Video zurück */
body.modus-arbeit .buehne video,
body.modus-arbeit .buehne .standbild { filter: blur(3px) saturate(0.8); transform: scale(1.06); }

body.modus-arbeit .buehne::after {
  background:
    linear-gradient(180deg, rgba(226, 235, 243, 0.86) 0%, rgba(233, 240, 246, 0.94) 320px, rgba(236, 242, 247, 0.97) 100%);
}

.koerner {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.modus-arbeit .koerner { opacity: 0.025; }

/* ── Typografie ───────────────────────────────────────────────────── */

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--navy-800);
  margin: 0 0 0.55em;
}

h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }

h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--navy-800);
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-600); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--tuerkis-600); text-decoration: underline; }

.dezent { color: var(--ink-2); }
.klein { font-size: 0.86rem; }
.mono { font-family: var(--mono); font-size: 0.9em; }

/* ── Logo ─────────────────────────────────────────────────────────── */

.logo { display: block; height: auto; }

.logo--popup {
  width: clamp(198px, 68%, 268px);
  margin: 0 auto 1.75rem;
}

.logo--leiste { height: 40px; width: auto; }

.logo--klein { width: 170px; margin-bottom: 1.2rem; }

/* ── Zentrierte Ansicht (Login & Co.) ─────────────────────────────── */

.mitte {
  flex: 1;
  /* Flex-Kinder haben min-width: auto und schrumpfen deshalb nie unter
     die Mindestbreite ihres Inhalts. Ohne diese Zeile zwingt das
     600 px breite Unterschriften-Canvas die ganze Seite in die
     Horizontale — auf dem Handy war das Formular rechts abgeschnitten. */
  min-width: 0;
  display: grid;
  place-items: center;
  /* minmax(0, 1fr) statt der Vorgabe auto: Sonst bestimmt der breiteste
     Inhalt die Spalte. Das Unterschriften-Canvas bringt über sein
     width-Attribut 600 px Eigenbreite mit und sprengte damit auf dem
     Handy das gesamte Layout. */
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(1.25rem, 5vw, 3rem);
}

.saeule { width: 100%; max-width: 448px; justify-self: center; min-width: 0; }
.saeule--breit { max-width: 780px; }

/* ── Das Popup ────────────────────────────────────────────────────── */

.popup {
  position: relative;
  /* Zwei Ebenen: deckende Grundfläche plus ein Lichtverlauf von oben
     links — dadurch wirkt die Karte auch dann wie Glas, wenn der
     Browser backdrop-filter nicht unterstützt. */
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 55%),
    var(--glas);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--r-l);
  box-shadow: var(--schatten-popup);
  padding: clamp(1.75rem, 5vw, 2.75rem);
  animation: popauf 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Lichtkante oben — lässt die Fläche wie echtes Glas wirken */
.popup::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  border-radius: var(--r-l) var(--r-l) 0 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
}

/* Feiner Türkisschimmer als Aura hinter dem Popup */
.popup::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--r-l);
  padding: 1px;
  background: linear-gradient(150deg, rgba(134, 194, 208, 0.55), transparent 45%, rgba(43, 92, 132, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes popauf {
  from { opacity: 0; transform: translateY(22px) scale(0.975); }
  to { opacity: 1; transform: none; }
}

.popup__kopf { text-align: center; margin-bottom: 1.7rem; }
.popup__kopf h1 { margin-bottom: 0.3rem; font-size: clamp(1.35rem, 3.4vw, 1.7rem); }
.popup__kopf p { color: var(--ink-2); font-size: 0.93rem; }

/* ── Formulare ────────────────────────────────────────────────────── */

.feld { margin-bottom: 1.05rem; }

.feld > label,
.feldname {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 0.42rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.97rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--linie-stark);
  border-radius: var(--r-s);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

textarea { resize: vertical; min-height: 86px; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:hover, textarea:hover, select:hover { border-color: rgba(43, 92, 132, 0.4); }

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--tuerkis-500);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(91, 160, 179, 0.24);
}

input[type="checkbox"] { accent-color: var(--navy-600); width: 16px; height: 16px; margin: 0; }

.code-feld {
  font-family: var(--mono);
  font-size: 1.4rem;
  letter-spacing: 0.5em;
  text-align: center;
  padding-left: 0.5em;
}

/* ── Schaltflächen ────────────────────────────────────────────────── */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.45rem;
  font: inherit;
  font-size: 0.91rem;
  font-weight: 550;
  letter-spacing: 0.015em;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-800) 45%, var(--tuerkis-600) 165%);
  border: 1px solid var(--navy-800);
  border-radius: var(--r-s);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s, box-shadow 0.25s, filter 0.2s;
}

.knopf:hover {
  color: #fff;
  filter: brightness(1.12);
  box-shadow: 0 12px 26px -12px rgba(20, 48, 79, 0.75);
  text-decoration: none;
}
.knopf:active { transform: translateY(1px); }
.knopf:focus-visible { outline: 2px solid var(--tuerkis-500); outline-offset: 3px; }

.knopf--voll { width: 100%; }

.knopf--geist {
  color: var(--navy-700);
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--linie-stark);
}
.knopf--geist:hover {
  color: var(--navy-800);
  background: #fff;
  border-color: rgba(43, 92, 132, 0.42);
  box-shadow: var(--schatten-karte);
  filter: none;
}

.knopf--gefahr {
  color: #97231c;
  background: rgba(199, 62, 51, 0.09);
  border-color: rgba(199, 62, 51, 0.32);
}
.knopf--gefahr:hover { color: #7d1a14; background: rgba(199, 62, 51, 0.16); filter: none; box-shadow: none; }

.knopf--klein { padding: 0.52rem 0.95rem; font-size: 0.83rem; }

.knopfreihe { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

/* ── Meldungen ────────────────────────────────────────────────────── */

.meldung {
  display: flex;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.2rem;
  border-radius: var(--r-s);
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid;
  animation: popauf 0.45s ease both;
}

.meldung--fehler { color: #8d201a; background: rgba(199, 62, 51, 0.08); border-color: rgba(199, 62, 51, 0.28); }
.meldung--ok { color: #1a5c46; background: rgba(38, 138, 106, 0.09); border-color: rgba(38, 138, 106, 0.28); }
.meldung--info { color: var(--navy-700); background: rgba(43, 92, 132, 0.07); border-color: rgba(43, 92, 132, 0.2); }

.meldung__zeichen { flex: 0 0 auto; font-weight: 700; }

/* ── Kopfzeile im Arbeitsbereich ──────────────────────────────────── */

.kopfzeile {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--linie);
}

.kopfzeile__innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.kopfzeile nav { display: flex; gap: 0.25rem; margin-left: auto; flex-wrap: wrap; align-items: center; }

.navlink {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink-2);
  border-radius: var(--r-s);
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}
.navlink:hover { color: var(--navy-800); background: rgba(43, 92, 132, 0.09); text-decoration: none; }
.navlink--aktiv { color: var(--navy-800); background: rgba(43, 92, 132, 0.12); font-weight: 550; }

.abmelden { display: inline; margin: 0; }

/* ── Inhaltsbereich ───────────────────────────────────────────────── */

.inhalt {
  flex: 1;
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3.25rem) clamp(1rem, 4vw, 2rem);
  animation: popauf 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.seitenkopf { margin-bottom: 1.9rem; }
.seitenkopf h1 { margin-bottom: 0.2rem; }
.seitenkopf p { color: var(--ink-2); }

.abschnitt {
  background: var(--glas);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--linie);
  border-radius: var(--r-m);
  padding: clamp(1.25rem, 3vw, 1.9rem);
  margin-bottom: 1.35rem;
  box-shadow: var(--schatten-karte);
}

.abschnitt > h2:first-child,
.abschnitt > h3:first-child { margin-top: 0; }

/* Beim Sprung über #unterlagen nicht unter der klebenden Kopfzeile
   landen - und den Kasten kurz hervorheben, damit man ihn findet. */
.abschnitt[id] { scroll-margin-top: 90px; }

.abschnitt:target {
  border-color: var(--tuerkis-500);
  box-shadow: 0 0 0 3px rgba(91, 160, 179, 0.22), var(--schatten-karte);
}

/* ── Kacheln ──────────────────────────────────────────────────────── */

.raster { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.kachel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.55rem;
  background: var(--glas);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--linie);
  border-radius: var(--r-m);
  box-shadow: var(--schatten-karte);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, border-color 0.3s;
}

.kachel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--tuerkis-400), var(--navy-700));
  opacity: 0.85;
}

.kachel:hover {
  transform: translateY(-3px);
  border-color: rgba(43, 92, 132, 0.28);
  box-shadow: 0 20px 44px -18px rgba(13, 31, 56, 0.35);
}

.kachel__host { font-family: var(--mono); font-size: 1.02rem; color: var(--navy-800); word-break: break-all; }
.kachel__label { font-size: 0.72rem; color: var(--tuerkis-600); letter-spacing: 0.13em; text-transform: uppercase; font-weight: 600; }
.kachel__fuss { margin-top: auto; }

/* ── Statusmarken ─────────────────────────────────────────────────── */

.marker {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.71rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--linie-stark);
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.marker::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.marker--ok { color: #1a6b50; border-color: rgba(38, 138, 106, 0.34); background: rgba(38, 138, 106, 0.1); }
.marker--aus { color: #97372f; border-color: rgba(199, 62, 51, 0.3); background: rgba(199, 62, 51, 0.08); }
.marker--blau { color: var(--navy-700); border-color: rgba(43, 92, 132, 0.32); background: rgba(43, 92, 132, 0.1); }

/* ── Tabellen ─────────────────────────────────────────────────────── */

.tabellenrahmen {
  overflow-x: auto;
  border: 1px solid var(--linie);
  border-radius: var(--r-m);
  background: rgba(255, 255, 255, 0.55);
}

table { width: 100%; border-collapse: collapse; font-size: 0.89rem; min-width: 580px; }

th {
  text-align: left;
  padding: 0.8rem 1rem;
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  border-bottom: 1px solid var(--linie);
  white-space: nowrap;
}

td { padding: 0.8rem 1rem; border-bottom: 1px solid rgba(18, 38, 61, 0.06); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.16s; }
tbody tr:hover { background: rgba(43, 92, 132, 0.045); }

/* ── Kennzahlen ───────────────────────────────────────────────────── */

.zahlen { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); margin-bottom: 1.35rem; }

.zahl {
  padding: 1.2rem 1.35rem;
  background: var(--glas);
  border: 1px solid var(--linie);
  border-radius: var(--r-m);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--schatten-karte);
}

.zahl__wert { font-family: var(--serif); font-size: 2.05rem; line-height: 1; color: var(--navy-800); }
.zahl__text { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-top: 0.5rem; font-weight: 600; }

/* ── Geheimnisse (Passwörter, Backup-Codes) ───────────────────────── */

.geheimnis {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, rgba(134, 194, 208, 0.16), rgba(43, 92, 132, 0.08));
  border: 1px dashed rgba(43, 92, 132, 0.42);
  border-radius: var(--r-s);
  margin: 0.9rem 0;
}

.geheimnis__wert {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-800);
  word-break: break-all;
  user-select: all;
  flex: 1 1 200px;
}

.geheimnis--text { display: block; }

.geheimnis--text .geheimnis__wert {
  display: block;
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  user-select: all;
}

.codeliste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.93rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.codeliste li {
  padding: 0.5rem 0.7rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--linie-stark);
  border-radius: var(--r-s);
  text-align: center;
  user-select: all;
  color: var(--navy-800);
}

/* ── Auswahllisten ────────────────────────────────────────────────── */

.auswahl { display: grid; gap: 0.5rem; margin: 0.9rem 0 1.2rem; }

.auswahl label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--linie-stark);
  border-radius: var(--r-s);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.93rem;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}

.auswahl label:hover { border-color: rgba(43, 92, 132, 0.4); background: #fff; }
.auswahl label:has(input:checked) { border-color: var(--tuerkis-500); background: rgba(134, 194, 208, 0.16); }

.auswahl .host { font-family: var(--mono); font-size: 0.9rem; color: var(--navy-800); }
.auswahl .zusatz { margin-left: auto; color: var(--ink-3); font-size: 0.8rem; }

/* ── QR-Code ──────────────────────────────────────────────────────── */

.qr {
  display: block;
  width: 200px;
  height: 200px;
  border-radius: var(--r-s);
  border: 8px solid #fff;
  background: #fff;
  box-shadow: var(--schatten-karte);
  margin: 1rem 0;
}

/* ── Fußzeile ─────────────────────────────────────────────────────── */

.fusszeile { padding: 1.6rem clamp(1rem, 4vw, 2rem) 2rem; text-align: center; font-size: 0.8rem; }

.fusszeile nav { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; margin-bottom: 0.55rem; }

body.modus-film .fusszeile { color: rgba(255, 255, 255, 0.5); }
body.modus-film .fusszeile a { color: rgba(255, 255, 255, 0.75); }
body.modus-film .fusszeile a:hover { color: #fff; }

body.modus-arbeit .fusszeile { color: var(--ink-3); }
body.modus-arbeit .fusszeile a { color: var(--ink-2); }
body.modus-arbeit .fusszeile a:hover { color: var(--navy-800); }

/* ── Rechtstexte ──────────────────────────────────────────────────── */

.rechtstext { max-width: 780px; }
.rechtstext h2 { margin-top: 2.1rem; font-size: 1.2rem; }
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext h3 { margin-top: 1.4rem; }
.rechtstext ul { padding-left: 1.25rem; color: var(--ink-2); }
.rechtstext li { margin-bottom: 0.35rem; }
.rechtstext p { color: var(--ink-2); }
.rechtstext strong { color: var(--navy-800); font-weight: 650; }

/* ── Schulungen: schlichte Ansicht ohne Video ─────────────────────
   Wird im Schulungsraum auf dem Handy geöffnet, oft bei schlechtem
   Empfang. Deshalb kein Video, sondern ein reiner Verlauf.          */

body.modus-schlicht .buehne {
  background: linear-gradient(165deg, #1c3d63 0%, #14304f 45%, #0d1f38 100%);
}

body.modus-schlicht .buehne::after {
  background: radial-gradient(80% 60% at 50% 30%, rgba(134, 194, 208, 0.12) 0%, rgba(8, 23, 43, 0.5) 100%);
}

body.modus-schlicht .fusszeile { color: rgba(255, 255, 255, 0.5); }
body.modus-schlicht .fusszeile a { color: rgba(255, 255, 255, 0.75); }
body.modus-schlicht .fusszeile a:hover { color: #fff; }

/* ── Unterschriftsfeld ────────────────────────────────────────────── */

.unterschrift {
  position: relative;
  border: 1px dashed var(--linie-stark);
  border-radius: var(--r-s);
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.unterschrift--gefuellt {
  border-style: solid;
  border-color: var(--tuerkis-500);
  background: #fff;
}

.unterschrift__flaeche {
  display: block;
  width: 100%;
  /* Ohne max-width setzt das width-Attribut des Canvas die Mindestbreite. */
  max-width: 100%;
  height: 170px;
  /* touch-action ist entscheidend: ohne das scrollt die Seite,
     während der Finger unterschreibt. */
  touch-action: none;
  cursor: crosshair;
}

/* Hilfslinie wie auf einem Formular */
.unterschrift::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 46px;
  height: 1px;
  background: var(--linie-stark);
  pointer-events: none;
}

.unterschrift__loeschen {
  position: absolute;
  right: 8px;
  bottom: 8px;
  opacity: 0;
  transition: opacity 0.2s;
}

.unterschrift--gefuellt .unterschrift__loeschen { opacity: 1; }

/* Solange JavaScript nicht gelaufen ist, bleibt die Fläche verborgen —
   ein leerer Kasten ohne Funktion verwirrt nur. */
.unterschrift:not(.unterschrift--bereit) .unterschrift__flaeche { visibility: hidden; }

/* ── Bestätigungshaken ────────────────────────────────────────────── */

.haken { display: flex; justify-content: center; margin: 0.5rem 0 1.2rem; }
.haken__kreis { stroke: rgba(38, 138, 106, 0.35); }
.haken__strich { stroke: #1a6b50; }

@media (prefers-reduced-motion: no-preference) {
  .haken__kreis {
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: kreisZiehen 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
  }
  .haken__strich {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: kreisZiehen 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
  }
  @keyframes kreisZiehen { to { stroke-dashoffset: 0; } }
}

/* ── Aufklappbarer Datenschutzhinweis ─────────────────────────────── */

.hinweis {
  margin-top: 1.4rem;
  border-top: 1px solid var(--linie);
  padding-top: 0.9rem;
}

.hinweis summary {
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--ink-2);
  list-style: none;
  padding: 0.2rem 0;
}

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

.hinweis summary::before {
  content: "▸ ";
  color: var(--tuerkis-600);
  transition: transform 0.2s;
  display: inline-block;
}

.hinweis[open] summary::before { content: "▾ "; }
.hinweis summary:hover { color: var(--navy-800); }
.hinweis p { color: var(--ink-2); margin-top: 0.7rem; }

/* ── Ablaufanzeige (Schulung) ─────────────────────────────────────── */

.ablauf { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.ablauf__schritt {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid var(--linie);
  border-radius: var(--r-s);
  background: rgba(255, 255, 255, 0.5);
}

.ablauf__nummer {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 0.8rem; font-weight: 700;
  background: rgba(18, 38, 61, 0.08);
  color: var(--ink-3);
}

.ablauf__schritt--jetzt { border-color: var(--tuerkis-500); background: rgba(134, 194, 208, 0.14); }
.ablauf__schritt--jetzt .ablauf__nummer { background: var(--tuerkis-500); color: #fff; }
.ablauf__schritt--fertig .ablauf__nummer { background: rgba(38, 138, 106, 0.9); color: #fff; }
.ablauf__schritt p { margin: 0.2rem 0 0; }

/* Formularreihe für das Nachtragen */
.reihe { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: flex-end; }
.reihe .feld { flex: 1 1 150px; margin-bottom: 0; }
.reihe .feld--knopf { flex: 0 0 auto; }

.unterschrift__vorschau { width: 130px; height: 46px; display: block; }
.unterschrift__vorschau path { stroke-width: 1.5; }

.meldung-text--fehler { color: #8d201a; }

/* ── Beamer-Ansicht ───────────────────────────────────────────────── */

.beamer {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(1.5rem, 5vw, 4rem);
  color: #fff;
}

.beamer__label {
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tuerkis-400);
  margin-bottom: 0.6rem;
}

.beamer__titel {
  font-size: clamp(1.8rem, 5vw, 4rem);
  color: #fff;
  margin-bottom: 0.4rem;
  line-height: 1.08;
}

.beamer__zusatz { font-size: clamp(1rem, 1.8vw, 1.5rem); color: rgba(255, 255, 255, 0.6); }

.beamer__schritte {
  margin: clamp(1.5rem, 4vw, 3rem) 0;
  padding-left: 1.4em;
  font-size: clamp(1.1rem, 2.2vw, 1.9rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
}

.beamer__zaehler { display: flex; align-items: baseline; gap: 0.6rem; }

.beamer__zaehler [data-zaehler] {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1;
  color: var(--tuerkis-300);
}

.beamer__zaehler-text { font-size: clamp(0.9rem, 1.5vw, 1.3rem); color: rgba(255, 255, 255, 0.55); }

@keyframes pulsen {
  0% { transform: scale(1); }
  35% { transform: scale(1.18); color: #fff; }
  100% { transform: scale(1); }
}
.beamer__puls { display: inline-block; animation: pulsen 0.6s ease; }

.beamer__code { text-align: center; }

.beamer__code img {
  display: block;
  width: clamp(240px, 34vw, 560px);
  height: auto;
  border-radius: 18px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
}

.beamer__url {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  color: rgba(255, 255, 255, 0.55);
  word-break: break-all;
}

.beamer__leiste {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.5rem;
  /* Im Raum soll die Leiste nicht ablenken - sie wird erst deutlich,
     wenn die Maus in die Nähe kommt. */
  opacity: 0.28;
  transition: opacity 0.25s;
}
.beamer__leiste:hover { opacity: 1; }

.beamer__knopf {
  font: inherit;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-s);
  padding: 0.42rem 0.85rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.beamer__knopf:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}
.beamer__knopf[hidden] { display: none; }

/* Im Vollbild verschwindet die Leiste ganz, bis die Maus sie sucht. */
:fullscreen .beamer__leiste { opacity: 0; }
:fullscreen .beamer__leiste:hover { opacity: 1; }

@media (max-width: 860px) {
  .beamer { grid-template-columns: 1fr; text-align: center; }
  .beamer__schritte { display: inline-block; text-align: left; }
  .beamer__zaehler { justify-content: center; }
}

/* ── Teilnehmerliste FO007V03 ─────────────────────────────────────────
   Nachbau des Word-Formulars, Maß für Maß aus der Vorlage übernommen.
   Deshalb stehen hier Millimeter und Punkt statt rem — das Blatt ist
   ein Blatt Papier, kein Bildschirm, und darf nicht mitskalieren.

   Der Seitenrand steckt ABSICHTLICH im Element (padding) und nicht in
   @page. Nur so lassen sich Kopf- und Fußzeile an genau die Stelle
   setzen, an der sie in der Vorlage stehen, und "Seite 2 von 3" kann
   ausgerechnet werden, statt vom Browser geraten zu werden.        */

/* Die Leiste liegt über dem dunklen Hintergrund des Portals. Die
   normale Hilfstextfarbe wäre dort kaum zu lesen — deshalb hier
   eigene, helle Werte. */
.fo-leiste {
  display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap;
  max-width: 210mm; margin: 0 auto; padding: 1.2rem 0 1.6rem;
}
.fo-leiste__hinweis {
  flex-basis: 100%; margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.72);
}
.fo-leiste__hinweis strong { color: #fff; }

.fo {
  position: relative;
  box-sizing: border-box;
  width: 210mm;
  min-height: 297mm;
  padding: 22.5mm 25mm 10mm;
  margin: 0 auto 8mm;
  background: #fff;
  color: #000;
  /* Aptos ist die Schrift der Vorlage (Office 2024). Auf Rechnern ohne
     Aptos übernimmt die nächste humanistische Grotesk — die Maße der
     Tabelle sind fest, deshalb verschiebt sich dabei nichts. */
  font-family: Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 12pt;
  line-height: 1.16;
  box-shadow: 0 10px 40px rgb(0 0 0 / 45%);
}

/* Kopfzeile: Titel zentriert, Logo rechts daneben. Beide Werte stammen
   aus der Vorlage — das Logo beginnt 135 mm nach dem linken Rand und
   ragt dort bewusst in den rechten Seitenrand hinein. */
.fo__kopf { position: absolute; left: 25mm; top: 12.5mm; width: 160mm; height: 7mm; }
.fo__titel { display: block; text-align: center; font-size: 18pt; line-height: 7mm; color: #808080; }
.fo__logo { position: absolute; left: 135mm; top: -5.6mm; width: 42.6mm; height: 11.5mm; }

/* Die allgemeinen Tabellenstile des Portals (Großbuchstaben, Sperrung,
   nowrap, Mindestbreite) sind für Bildschirmtabellen gedacht und würden
   das Formular zerlegen: „Lfd Nr.“ wird zu „LFD NR.“ und die
   Spaltenköpfe schneiden ab. Hier wird deshalb alles zurückgesetzt. */
.fo__daten, .fo__liste {
  width: 100%; min-width: 0;
  border-collapse: collapse; table-layout: fixed;
}

/* Spaltenbreiten in Prozent der 160 mm Satzbreite, umgerechnet aus den
   Twips-Werten der Word-Vorlage:
     Kopfdaten  1696 · 1841 ·  711 · 1843 ·  705 · 2266
     Liste       562 · 2977 · 1559 ·  993 · 1617 · 1354
   Sie stehen hier und nicht als style-Attribut, weil die CSP des
   Portals keine Inline-Stile zulässt. */
.fo__daten col:nth-child(1) { width: 18.72%; }
.fo__daten col:nth-child(2) { width: 20.32%; }
.fo__daten col:nth-child(3) { width: 7.85%; }
.fo__daten col:nth-child(4) { width: 20.34%; }
.fo__daten col:nth-child(5) { width: 7.78%; }
.fo__daten col:nth-child(6) { width: 25.01%; }

.fo__liste col:nth-child(1) { width: 6.20%; }
.fo__liste col:nth-child(2) { width: 32.85%; }
.fo__liste col:nth-child(3) { width: 17.20%; }
.fo__liste col:nth-child(4) { width: 10.96%; }
.fo__liste col:nth-child(5) { width: 17.84%; }
.fo__liste col:nth-child(6) { width: 14.94%; }

.fo__daten td,
.fo__liste th,
.fo__liste td {
  border: 0.5pt solid #000;
  padding: 1mm 1.9mm;
  font-size: 11pt;
  font-weight: 400;
  text-align: left;
  vertical-align: middle;
  color: #000;
  /* Zurücksetzen der Bildschirmtabellen-Stile */
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  /* Ein zu langer Firmenname darf die Spaltenbreite nicht sprengen —
     sonst verschiebt sich das ganze Raster gegenüber dem Papier.
     break-word statt anywhere: Es wird nur getrennt, wenn das Wort
     wirklich nicht passt, nicht schon mitten in „Werkstattleiter“. */
  overflow: hidden;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Die Spaltenköpfe dürfen umbrechen — „Lfd Nr.“ und „Unterschrift“
   passen sonst nicht in ihre Spalte und würden abgeschnitten. */
.fo__liste thead th {
  vertical-align: bottom;
  hyphens: none;
}
.fo__daten td strong { font-weight: 700; }

/* Der Abstand entspricht dem leeren Absatz zwischen beiden Tabellen. */
.fo__liste { margin-top: 4.9mm; }
.fo__liste tbody tr { height: 7mm; }
.fo__liste tbody td { height: 7mm; padding: 0.5mm 1.9mm; }
.fo__liste tbody tr:hover { background: none; }
.fo__nr { text-align: center; }

.fo__sig { padding: 0.4mm 1mm; }
.fo__sig svg { display: block; width: 100%; height: 5.6mm; }
/* Mit vector-effect="non-scaling-stroke" zählt dieser Wert in der
   Auflösung der Ausgabe, nicht in den Einheiten des viewBox. Dadurch
   ist der Strich gleich stark, egal wie groß jemand unterschrieben
   hat — sonst wäre eine kleine Unterschrift fett und eine große dünn. */
.fo__sig svg path { stroke-width: 1.1; }
.fo__vermerk { font-size: 7pt; color: #555; }

.fo__satz { margin: 3mm 0 0; font-size: 12pt; color: #000; }

.fo__fuss {
  position: absolute; left: 25mm; bottom: 2.6mm; width: 160mm;
  display: flex; font-size: 9pt; color: #000;
}
.fo__fuss > span { flex: 1 1 0; }
.fo__fuss > span:nth-child(2) { text-align: center; }
.fo__fuss > span:last-child { text-align: right; }
.fo__entwurf { font-weight: 700; }

@media print {
  /* Rand 0: Der Seitenrand steckt im padding der Seite selbst. */
  @page { size: A4; margin: 0; }
  html, body { background: #fff !important; }
  .nicht-drucken { display: none !important; }
  .fo {
    box-shadow: none;
    margin: 0;
    /* Ein Blatt je Seite — auch bei mehr als 30 Teilnehmern. */
    break-after: page;
  }
  .fo:last-of-type { break-after: auto; }
  .fo__liste tr { break-inside: avoid; }
}

/* ── Aushang zum Ausdrucken ───────────────────────────────────────────
   Ein Blatt, das wochenlang im Treppenhaus hängt. Alles ist auf
   Lesbarkeit aus zwei Metern ausgelegt, nicht auf Eleganz. */

/* Damit der Fußbereich unten am Blatt klebt, muss die Höhe eine echte
   Höhe sein. Das Blatt hat nur ein min-height — eine Prozenthöhe des
   Kindes löst sich daran nicht auf. Deshalb wird das Blatt für den
   Aushang selbst zum Flex-Behälter. */
.fo--aushang { display: flex; flex-direction: column; }
.aushang { color: #000; text-align: center; display: flex; flex-direction: column; flex: 1; }
.aushang__logo { width: 42mm; height: 11.4mm; align-self: flex-end; margin-bottom: 6mm; }

.aushang__label {
  margin: 0 0 2mm; font-size: 12pt; letter-spacing: 0.22em;
  text-transform: uppercase; color: #555;
}
.aushang__titel { margin: 0 0 4mm; font-size: 30pt; line-height: 1.1; color: #000; }
.aushang__wann { margin: 0 0 1mm; font-size: 15pt; font-weight: 700; color: #000; }
.aushang__wo { margin: 0 0 6mm; font-size: 13pt; color: #333; }

.aushang__code { margin: 4mm 0 6mm; }
/* 95 mm Kantenlänge — der Code ist der Zweck des Blattes. So lässt er
   sich noch aus zwei Metern und schräg von der Seite scannen, was im
   Treppenhaus der Normalfall ist. */
.aushang__code img { width: 95mm; height: 95mm; display: block; margin: 0 auto; }

.aushang__schritte {
  display: flex; justify-content: center; gap: 9mm;
  margin: 0 0 6mm; padding: 0; list-style: none;
  counter-reset: schritt;
}
.aushang__schritte li {
  font-size: 13pt; color: #000; counter-increment: schritt;
}
.aushang__schritte li::before {
  content: counter(schritt) ". "; font-weight: 700;
}

.aushang__url { margin: 0 0 5mm; font-size: 11pt; color: #333; line-height: 1.5; }
.aushang__url strong { font-family: var(--mono); font-size: 11.5pt; color: #000; }

.aushang__text { margin: 0 0 5mm; font-size: 11pt; color: #333; }

/* Fußbereich unten am Blatt festhalten, damit der Aushang immer gleich
   aussieht — egal wie lang der Titel ist. */
.aushang__fuss {
  margin-top: auto; padding-top: 5mm; border-top: 0.5pt solid #000;
  font-size: 11pt; color: #000;
}
.aushang__fuss p { margin: 0 0 1.5mm; }
.aushang__klein { font-size: 9pt; color: #555; }

/* ── Teilnahmebescheinigung ───────────────────────────────────────── */

.best { color: #111; }
.best__logo { width: 150px; height: auto; display: block; margin-bottom: 14mm; }
.best__titel {
  margin: 0 0 10mm; font-size: 20pt; letter-spacing: 0.02em; color: #111;
  border-bottom: 1pt solid #111; padding-bottom: 3mm;
}
.best__satz { margin: 0 0 3mm; font-size: 11pt; color: #333; }
.best__name { margin: 0 0 2mm; font-size: 17pt; font-weight: 700; color: #111; }
.best__zusatz { margin: 0 0 6mm; font-size: 11pt; color: #333; }

.best__daten { width: 100%; border-collapse: collapse; margin: 6mm 0; font-size: 11pt; }
.best__daten th {
  width: 32mm; text-align: left; vertical-align: top; padding: 1.6mm 4mm 1.6mm 0;
  font-weight: 400; color: #555; border: 0; text-transform: none; letter-spacing: 0;
  font-size: 11pt; white-space: nowrap;
}
.best__daten td { padding: 1.6mm 0; border: 0; color: #111; }

.best__inhalt { margin: 8mm 0; }
.best__inhalt h2 { margin: 0 0 2mm; font-size: 11pt; color: #555; font-weight: 400; }
.best__inhalt p { margin: 0; font-size: 11pt; color: #111; }

.best__unterschrift { display: flex; gap: 18mm; margin-top: 22mm; }
.best__unterschrift > div { flex: 1; font-size: 10pt; color: #333; }
.best__linie { display: block; border-top: 0.5pt solid #111; margin-bottom: 1.5mm; }

.best__fuss { margin-top: 14mm; font-size: 8.5pt; color: #555; line-height: 1.45; }

/* ── Bewertungsskala ──────────────────────────────────────────────────
   Fünf Stufen nebeneinander, jede beschriftet. Auf dem Handy stehen sie
   untereinander — fünf Beschriftungen nebeneinander wären auf 390 px
   nicht mehr lesbar, und geraten wird bei einem Fragebogen nicht.    */

.skala { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.skala legend {
  padding: 0; margin-bottom: 0.6rem;
  font-size: 0.95rem; font-weight: 600; color: var(--ink);
}
.skala--gesamt legend { color: var(--navy-800); }

/* Fünf Stufen IMMER nebeneinander. Untereinander gestapelt wäre der
   Bogen auf einem Handy über 3000 px lang — sechs Fragen à fünf
   Zeilen. Das hält im Schulungsraum niemand durch, und ein Bogen, den
   man wegwischt, ist schlechter als ein kurzer. */
.skala__reihe {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
}

.skala__stufe {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.3rem; text-align: center;
  min-height: 3.1rem; padding: 0.5rem 0.2rem;
  border: 1px solid var(--linie-stark); border-radius: var(--r-s);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.skala__stufe:hover { border-color: var(--tuerkis-500); }
.skala__stufe input { flex: 0 0 auto; margin: 0; accent-color: var(--navy-700); }
.skala__zahl {
  font-variant-numeric: tabular-nums; font-weight: 700; color: var(--navy-700);
}

/* Auf schmalen Schirmen bleibt die Beschriftung jeder Stufe im
   Dokument, aber unsichtbar: Vorlesesoftware sagt weiterhin
   „3 – teils, teils“, während auf dem Bildschirm nur die Ziffern
   stehen. Die Bedeutung der Enden steht darunter (.skala__enden) —
   damit ist die Richtung der Skala trotzdem eindeutig. */
.skala__text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skala__enden {
  display: flex; justify-content: space-between; gap: 0.5rem;
  margin: 0.4rem 0 0; font-size: 0.72rem; color: var(--ink-3);
}
.skala__enden span:last-child { text-align: right; }

/* :has wird von allen Zielbrowsern unterstützt; fehlt es, bleibt nur
   die Umrandung aus — angekreuzt ist der Punkt trotzdem sichtbar. */
.skala__stufe:has(input:checked) {
  border-color: var(--navy-700);
  background: rgba(43, 92, 132, 0.09);
}
.skala__stufe:has(input:focus-visible) { outline: 2px solid var(--tuerkis-600); outline-offset: 2px; }

@media (min-width: 560px) {
  .skala__reihe { gap: 0.5rem; }
  .skala__stufe { min-height: 0; padding: 0.7rem 0.35rem; gap: 0.35rem; }
  .skala__text {
    position: static;
    width: auto; height: auto;
    margin: 0; overflow: visible; clip: auto; white-space: normal;
    font-size: 0.75rem; line-height: 1.25; color: var(--ink-2);
  }
  .skala__enden { display: none; }
}

/* ── Dauer: Stunden und Minuten nebeneinander ─────────────────────── */

.dauer { display: flex; gap: 1.1rem; align-items: baseline; flex-wrap: wrap; }
.dauer__teil { display: flex; align-items: baseline; gap: 0.5rem; margin: 0; }
.dauer__teil input { width: 5rem; }
/* „Stunden“ und „Minuten“ stehen NEBEN dem Feld, nicht darüber — die
   Feldbeschriftung ist bereits „Dauer“. Deshalb hier die Versalien und
   die Sperrung der allgemeinen Beschriftungsregel zurücknehmen. */
.dauer__teil > span {
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--ink-2);
  margin: 0;
}

/* ── Eingabefelder direkt in einer Tabellenzelle ──────────────────────
   Für Bemerkung und Minuten: Sie stehen dort, wo der Wert später auf
   dem Formular steht, statt hinter einem Aufklapper. */

.zelle {
  width: 100%;
  min-width: 7rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.86rem;
  border: 1px solid var(--linie-stark);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-family: inherit;
}
.zelle:focus { outline: 2px solid var(--tuerkis-600); outline-offset: 1px; border-color: var(--tuerkis-600); }
.zelle--zahl { width: 5rem; min-width: 0; text-align: right; font-variant-numeric: tabular-nums; }

/* Wartende Zeilen zurücknehmen: Sie stehen in derselben Tabelle, gehören
   aber nicht auf den Nachweis. Der Unterschied muss beim Überfliegen
   auffallen, nicht erst beim Lesen der Kennzeichnung. */
.zeile--wartend > td { background: rgba(43, 92, 132, 0.05); color: var(--ink-2); }
.zeile--wartend > td:first-child { box-shadow: inset 3px 0 0 var(--tuerkis-500); }

/* ── Auswertung der Bewertungen ───────────────────────────────────── */

.note { display: flex; align-items: baseline; gap: 0.6rem; margin: 0.5rem 0 1.4rem; }
.note__zahl { font-size: 3rem; font-weight: 700; color: var(--navy-800); line-height: 1; }
.note__von { color: var(--ink-3); }
.note__text { color: var(--ink-2); font-size: 1.05rem; }

.frage { margin-bottom: 1.8rem; }
.frage h3 { margin: 0 0 0.3rem; font-size: 1rem; }

.balken { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.balken th {
  width: 12rem; text-align: left; padding: 0.25rem 0.8rem 0.25rem 0;
  font-weight: 400; font-size: 0.85rem; color: var(--ink-2);
  border: 0; text-transform: none; letter-spacing: 0; white-space: nowrap;
}
.balken td { padding: 0.25rem 0; border: 0; }
.balken tbody tr:hover { background: none; }
.balken__spur { width: auto; }
.balken__spur::after { content: ""; display: block; }
.balken__fuellung {
  display: block; height: 0.85rem; border-radius: 3px;
  background: var(--tuerkis-600); min-width: 2px;
}
.balken__zahl {
  width: 3rem; text-align: right; padding-left: 0.8rem;
  font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 0.85rem;
}

/* Balkenlänge in Fünferschritten. Klassen statt style-Attribut wegen
   der Content-Security-Policy — siehe teil-balken.ejs. */
.b0   { width: 0; min-width: 0; }
.b5   { width: 5%; }
.b10  { width: 10%; }
.b15  { width: 15%; }
.b20  { width: 20%; }
.b25  { width: 25%; }
.b30  { width: 30%; }
.b35  { width: 35%; }
.b40  { width: 40%; }
.b45  { width: 45%; }
.b50  { width: 50%; }
.b55  { width: 55%; }
.b60  { width: 60%; }
.b65  { width: 65%; }
.b70  { width: 70%; }
.b75  { width: 75%; }
.b80  { width: 80%; }
.b85  { width: 85%; }
.b90  { width: 90%; }
.b95  { width: 95%; }
.b100 { width: 100%; }

.zitate { margin: 0.6rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.zitate li {
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--tuerkis-400);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  color: var(--ink); font-size: 0.92rem;
}

/* Aufklappen in einer Tabellenzelle: schmaler als der normale Hinweis. */
.hinweis--knapp { margin: 0; padding: 0; border: 0; background: none; }
.hinweis--knapp[open] { min-width: 15rem; }

@media (max-width: 640px) {
  .balken th { width: auto; white-space: normal; font-size: 0.78rem; }
}

/* ── Angabenliste (Schulungsdaten) ────────────────────────────────── */

.angaben {
  display: grid; grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem; margin: 1rem 0 0; font-size: 0.9rem;
}
.angaben dt { color: var(--ink-3); }
.angaben dd { margin: 0; color: var(--ink); }

/* ── Öffentliche Terminübersicht ──────────────────────────────────── */

.termine { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }

.termin {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--linie-stark); border-radius: var(--r-m);
  background: rgba(255, 255, 255, 0.55);
}
.termin__tag {
  display: grid; justify-items: center; align-content: center;
  width: 56px; height: 56px; border-radius: var(--r-s);
  background: var(--navy-800); color: #fff;
}
.termin__tagzahl { font-size: 1.35rem; font-weight: 700; line-height: 1; }
.termin__monat { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.termin__inhalt { min-width: 0; }
.termin__inhalt h2 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.termin__inhalt p { margin: 0.2rem 0 0; }
.termin__aktion { display: grid; gap: 0.5rem; justify-items: end; text-align: right; }

@media (max-width: 640px) {
  .termin { grid-template-columns: auto 1fr; }
  .termin__aktion { grid-column: 1 / -1; justify-items: start; text-align: left; }
}

/* ── Hilfsklassen ─────────────────────────────────────────────────── */

.trenner { height: 1px; background: var(--linie); border: 0; margin: 1.6rem 0; }
.stapel { display: grid; gap: 1.2rem; }
.zwischen { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.oben-abstand { margin-top: 1.35rem; }
.ohne-abstand { margin: 0; }
.zentriert { text-align: center; }
.leer { padding: 2.5rem 1rem; text-align: center; color: var(--ink-3); }

.nur-leser {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Systemeinstellungen respektieren ─────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .buehne video { display: none; }
}

@media (max-width: 640px) {
  .kopfzeile__innen { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .kopfzeile nav { margin-left: 0; }
  .logo--leiste { height: 34px; }
}

@media print {
  .buehne, .koerner, .kopfzeile, .fusszeile { display: none !important; }
  body { background: #fff; }
  .abschnitt, .popup { border: 1px solid #ccc; background: #fff; box-shadow: none; backdrop-filter: none; }
}
