/* Erklärfilm „So funktioniert’s“ (Schulung, 23.10.2026, überarbeitet 26.10. und 28.10.2026) - erklaerfilm.js.
   Farben, Schrift und Abstände aus stil.css/app.css; die Bausteine auf der Bühne
   sind die der App. Präfixe: ef- allgemein, eb- breite Bühne, es- schmale Bühne. */

/* ---------- Auftritte nur im Erklärfilm ----------
   Bewegungszeiten des Films (Drehbuch 3.2). Sie gelten nur hier - die App selbst
   hat weiter ihre eigenen .12s-Übergänge. stil.css bleibt unberührt. */
:root {
  --film-auftritt: 550ms cubic-bezier(.2, .7, .2, 1);        /* Karten und Ebenen treten ein (Vorbild .pw-login__karte) */
  --film-kamera: 1600ms cubic-bezier(.4, 0, .2, 1);          /* Ebenenwechsel, kurze Fahrten (Kurve wie .pl-zug) */
  --film-kamera-lang: 3000ms cubic-bezier(.4, 0, .2, 1);     /* Fahrt Totale -> Nah, etwa 6,5-fach */
  --film-ueberblenden: 400ms linear;                         /* Ampel-Pillen, Stand-Texte, Überlagerungen */
  --film-abgang: 180ms linear;                               /* Abgang vor einem Ebenenwechsel - vorbei, bevor das Neue eintritt */
  --film-wechsel: 220ms linear;                              /* kurzer Auftritt nach einem Abgang (Zeile 8 in 1.8, Pillen) */
  --film-reihe: 320ms cubic-bezier(.2, .7, .2, 1);           /* Zeilen reihen sich ein (translateY 8 -> 0) */
  --film-reihe-takt: 100ms;                                  /* Versatz von Zeile zu Zeile */
  --film-haken: 360ms ease-out;                              /* Haken: Decke gleitet weg (Masken-Aufdecken per transform) */
  --film-leuchten: 900ms ease-out;                           /* Fundstelle leuchtet einmal */
  --film-zeiger: 700ms cubic-bezier(.3, 0, .2, 1);           /* Zeigerweg, kurze Wege der Gabel-Marke */
  --film-klick: 160ms;                                       /* Klick: scale .92 -> 1 */
  --film-nachlauf: 200ms;                                    /* Rückführung läuft über das Szenenende hinaus */
  --film-rueck: 1400ms cubic-bezier(.4, 0, .2, 1);           /* Rückführung: erst aus (0-40 %), dann Startbild ein (40-85,7 % = Szenenende) */
  --film-szene-min: 3.5s;                                    /* Mindestdauer je Szene (Test) */
}

/* Effekt-Variablen nicht vererben: Jeder Auftritt nennt seinen Effekt selbst. Präfix ef-,
   damit die Registrierung keine allgemeinen Namen der App belegt. */
@property --ef-ein { syntax: "*"; inherits: false; }
@property --ef-aus { syntax: "*"; inherits: false; }
@property --ef-ein-zeit { syntax: "*"; inherits: false; }
@property --ef-aus-zeit { syntax: "*"; inherits: false; }
@property --ef-v { syntax: "<time>"; inherits: false; initial-value: 0s; }
@property --ef-vz { syntax: "<time>"; inherits: false; initial-value: 0s; }

/* ---------- Effekte (Name und Zeit; Verzögerung setzt erklaerfilm.js je Schritt) ---------- */
.ef-e-rein { --ef-ein: ef-rein; --ef-ein-zeit: var(--film-auftritt); }
.ef-e-blende { --ef-ein: ef-blende; --ef-ein-zeit: var(--film-ueberblenden); }
.ef-e-wechsel { --ef-ein: ef-blende; --ef-ein-zeit: var(--film-wechsel); }
.ef-e-gleiten { --ef-ein: ef-gleiten; --ef-ein-zeit: var(--film-zeiger); }
.ef-e-schieben { --ef-ein: ef-schieben; --ef-ein-zeit: var(--film-kamera); }
.ef-e-reihe { --ef-ein: ef-reihe; --ef-ein-zeit: var(--film-reihe); }
.ef-e-decke { --ef-ein: ef-decke; --ef-ein-zeit: var(--film-haken); }
.ef-e-leuchten { --ef-ein: ef-leuchten; --ef-ein-zeit: var(--film-leuchten); }
.ef-e-klick { --ef-ein: ef-klick; --ef-ein-zeit: var(--film-klick) ease-out; }
.ef-e-druecken { --ef-ein: ef-druecken; --ef-ein-zeit: 1200ms linear; }
.ef-x-raus { --ef-aus: ef-raus; --ef-aus-zeit: var(--film-ueberblenden); }
.ef-x-weg { --ef-aus: ef-raus; --ef-aus-zeit: var(--film-abgang); }
.ef-x-zurueck { --ef-aus: ef-zurueck; --ef-aus-zeit: var(--film-ueberblenden); }

@keyframes ef-rein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ef-blende { from { opacity: 0; } to { opacity: 1; } }
@keyframes ef-raus { from { opacity: 1; } to { opacity: 0; } }
@keyframes ef-daempfen { from { opacity: 1; } to { opacity: .45; } }
@keyframes ef-zurueck { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(.96); } }
@keyframes ef-gleiten { from { opacity: 0; transform: translate(var(--dx, -24px), var(--dy, 0px)); } 30% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes ef-schieben { from { transform: translate(var(--dx, 0px), var(--dy, 0px)); } to { transform: none; } }
@keyframes ef-reihe { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ef-decke { from { transform: none; } to { transform: translateX(101%); } }
@keyframes ef-leuchten { 0% { opacity: 0; transform: scale(1); } 35% { opacity: .35; } 100% { opacity: 0; transform: scale(1.04); } }
@keyframes ef-klick { 0% { transform: scale(1); } 45% { transform: scale(.92); } 100% { transform: scale(1); } }
@keyframes ef-druecken { 0% { transform: scale(1); } 12% { transform: scale(.92); } 88% { transform: scale(.92); } 100% { transform: scale(1); } }
/* Rückführung nacheinander: Endbild aus (0-40 %), dann das Startbild ein (40-85,7 % = Szenenende).
   Die Gabel-Marke fährt nicht zurück - sie blendet aus, springt unsichtbar und blendet bei „Export“ ein. */
@keyframes ef-rf-aus { 0% { opacity: 1; transform: none; } 40%, 100% { opacity: 0; transform: scale(.96); } }
@keyframes ef-rf-ein { 0%, 40% { opacity: 0; transform: translateX(24px); } 85.7%, 100% { opacity: 1; transform: none; } }
@keyframes ef-rf-blende-aus { 0% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes ef-rf-sprung { 0% { opacity: 1; } 40%, 44% { opacity: 0; } 85.7%, 100% { opacity: 1; } }

/* ---------- Seite ---------- */
.ef-seite { flex: 1; min-height: 0; overflow: auto; padding: 16px 32px 40px; }
.ef-seite__kopf { display: flex; align-items: center; gap: 12px; margin: 0; }
.ef-seite__kopf h1 { margin: 0; white-space: nowrap; }
.ef { max-width: 1520px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.ef:focus { outline: none; }
/* Kopf in einer Zeile: zurück, Titel, Kapitel - die Bühne beginnt so weit oben wie möglich.
   Den Kapitelumschalter gibt es erst ab zwei Kapiteln mit Szenen (erklaerfilm.js, gezeigteKapitel). */
.ef-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.ef-kapitel { height: auto; flex-wrap: wrap; max-width: 100%; }
.ef-kapitel .pw-segment__option { height: auto; min-height: 30px; padding: 4px 12px; text-align: left; }
.ef-kapitel__nr { font-family: var(--font-mono); font-weight: 500; }
.ef-kapitel .is-aktiv .ef-kapitel__nr { color: var(--karmin-dunkel); }
.ef-satz { margin: 0; color: var(--tinte-2); text-align: center; }
.ef-unten .ef-satz { margin-top: 2px; }

/* Bühne: feste Leinwand, auf die Breite skaliert. Hell, keine dunklen Flächen. */
.ef-rahmen { position: relative; width: 100%; }
.ef-box { position: relative; margin: 0 auto; overflow: hidden; border: 1px solid var(--linie); border-radius: var(--radius-l); background: var(--grund); }
.ef-skala { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.ef-zeit { position: relative; overflow: hidden; background: var(--grund); color: var(--tinte); font-size: 14px; line-height: 20px; }
.ef-zeit, .ef-zeit * { -webkit-user-select: none; user-select: none; }
.ef-zeit *, .ef-zeit *::before, .ef-zeit *::after { transition: none !important; }
.ef-zeit.ist-pausiert, .ef-zeit.ist-pausiert *, .ef-zeit.ist-pausiert *::before, .ef-zeit.ist-pausiert *::after { animation-play-state: paused !important; }
.ef-zeit.ist-standbild *, .ef-zeit.ist-standbild *::before, .ef-zeit.ist-standbild *::after { animation: none !important; }
.ef-zeit.eintritt .eb-gabel, .ef-zeit.eintritt .es-gabel { animation: ef-blende var(--film-auftritt); }
.ef-nur-rf, .ef-nie { opacity: 0; }
.ef-ort { position: absolute; z-index: 3; }

/* Untertitel und Bedienung unter der Bühne */
.ef-unten { display: flex; flex-direction: column; gap: 10px; width: 100%; margin: 0 auto; }
.ef-untertitel { margin: 0; min-height: 56px; font-size: 18px; line-height: 28px; font-weight: 500; text-align: center; color: var(--tinte); text-wrap: balance; }
.ef-untertitel__nach { color: var(--tinte-2); font-weight: 400; font-size: 14px; }
.ef-leiste { display: flex; align-items: center; gap: 12px; }
.ef-knopf { flex: none; }
/* Feste Breite: Der Wechsel „Pause“/„Abspielen“ verschiebt die Schrittleiste nicht. */
.ef-knopf--spielen { min-width: 108px; justify-content: center; }
.ef-schritte { flex: 1; min-width: 0; display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ef-schritte li { flex-basis: 0; min-width: 12px; }
.ef-schritt { display: flex; align-items: center; width: 100%; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--radius-s); }
.ef-schritt:hover .ef-schritt__spur { background: var(--linie-stark); }
.ef-schritt__spur { position: relative; display: block; width: 100%; height: 4px; overflow: hidden; border-radius: 2px; background: var(--flaeche-grau); }
.ef-schritt__fuellung { position: absolute; inset: 0; background: var(--tinte-2); transform-origin: 0 50%; transform: scaleX(0); }
.ef-schritt.is-aktiv .ef-schritt__fuellung { background: var(--karmin); }
.ef-schritt.is-aktiv .ef-schritt__spur { height: 6px; border-radius: 3px; }
.ef-zaehler { flex: none; min-width: 64px; color: var(--tinte-2); text-align: right; font-variant-numeric: tabular-nums; }

/* Vollbild: die ganze Bühne auf Beamergröße, Untertitel und Bedienung darunter. */
.ef.ist-vollbild { max-width: none; padding: 12px 24px; background: var(--grund); justify-content: center; }
.ef.ist-vollfenster { position: fixed; inset: 0; z-index: 100; overflow: auto; }
.ef.ist-vollbild .ef-kopf { display: none; }
.ef.ist-vollbild .ef-box { border: 0; border-radius: 0; }
.ef--breit.ist-vollbild .ef-untertitel { font-size: 24px; line-height: 34px; min-height: 68px; }

/* Schmal: Untertitel fest 16 px, höchstens zwei Zeilen; Kopf in zwei kurzen Zeilen. */
.ef--schmal .ef-untertitel { font-size: 16px; line-height: 24px; min-height: 48px; }
.ef--schmal .ef-knopf__text, .ef--schmal .ef-zaehler { display: none; }
.ef--schmal .ef-knopf--spielen { min-width: 0; }
.ef--schmal .ef-box { border-radius: var(--radius-m); }
.ef--schmal .ef-kopf { gap: 8px; }
.ef--schmal .ef-seite__kopf { width: 100%; }
/* Ziele der Schrittleiste mindestens 24 px breit (WCAG 2.5.8). */
.ef--schmal .ef-schritte li { min-width: 24px; }

/* Reduzierte Bewegung: alle Szenen als ruhige Standbilder, Desktop dreispaltig. */
.ef--ruhig { gap: 16px; }
.ef--ruhig .ef-satz { text-align: left; }
.ef-ruhig__titel { margin: 8px 0 10px; }
.ef-ruhig { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; margin: 0; padding: 0; list-style: none; }
.ef-standbild { display: flex; flex-direction: column; gap: 8px; }
.ef-standbild__rahmen { position: relative; overflow: hidden; border: 1px solid var(--linie); border-radius: var(--radius-m); background: var(--grund); }
.ef-standbild__text { margin: 0; }
@media (max-width: 900px) { .ef-ruhig { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ef-ruhig { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .ef-seite { padding: 12px 16px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .ef-zeit *, .ef-zeit *::before, .ef-zeit *::after { animation: none !important; }
}

/* ---------- Schulung: fester oberster Eintrag ---------- */
/* „fest“: bleibt oben stehen, auch wenn die Liste zur eigenen Gruppe rollt. */
.fx-eintrag--film { position: sticky; top: -12px; z-index: 2; align-items: flex-start; margin: 4px 0 2px; padding: 9px 8px;
  border: 1px solid var(--linie); background: var(--flaeche); box-shadow: 0 -8px 0 var(--flaeche), 0 4px 8px -6px #1c1c1a33; }
.fx-eintrag--film:hover { border-color: var(--linie-stark); }
.fx-eintrag--film > span:last-child { display: flex; flex-direction: column; }
.fx-film__symbol { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-top: -1px; border-radius: 50%;
  background: var(--karmin); color: var(--auf-karmin); }
.fx-film__zusatz { color: var(--tinte-2); font-weight: 400; }
/* Schmal steht die Liste unter dem Thema und die Seite rollt als Ganzes - dort nicht kleben. */
@media (max-width: 720px) { .fx-eintrag--film { position: static; box-shadow: none; } }

/* ---------- Bausteine auf der Bühne ---------- */
.ef-stapel { display: inline-grid; }
.ef-stapel > * { grid-area: 1 / 1; }
.ef-herkunft { position: absolute; color: var(--tinte-2); font-weight: 400; white-space: nowrap; }
.ef-pille { position: absolute; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: var(--radius-voll);
  white-space: nowrap; background: var(--flaeche); border: 1px solid var(--linie-stark); color: var(--tinte); z-index: 3; }
.ef-pille--zeit { color: var(--tinte-2); border-color: var(--linie); }
.ef-pille--nach { border-style: dashed; color: var(--tinte); font-weight: 600; }
.ef-korrektur .ef-pille, .ef-pille--statisch { position: static; }
.es-pille { height: 20px; gap: 4px; padding: 0 8px 0 6px; }
.ef-avplan__leiste { justify-content: space-between; }
.ef-rechts { right: 16px; }
.ef-rechts-s { right: 6px; }
.ef-etikett { display: inline-flex; align-items: center; padding: 0 8px; border-radius: var(--radius-voll); background: var(--flaeche-grau);
  color: var(--tinte-2); font-weight: 500; white-space: nowrap; }
.ef-spalte { display: flex; flex-direction: column; gap: 12px; }
.ef-spalte--eng { gap: 8px; }

.ef-bild { display: block; max-width: none; }
.ef-bild--ersatz { display: grid; place-items: center; background: #fff; border: 1px solid var(--linie); }
.ef-ersatz__text { padding: 6px 14px; border-radius: var(--radius-m); background: var(--grund); color: var(--tinte-2); font-size: 40px; line-height: 48px; }
.ef-ersatz__text--klein { font-size: 14px; line-height: 20px; }
.ef-ersatz-mitte { position: absolute; inset: 0; display: grid; place-items: center; background: #fff; }
.ef-liste-ersatz { position: relative; overflow: hidden; background: #fff; }
.ef-liste-ersatz__blatt { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.ef-liste-ersatz__rahmen { border: 1px solid var(--tinte); }
.ef-liste-ersatz__zeile { position: absolute; display: grid; grid-template-columns: 56px 36px minmax(0, 1fr); gap: 8px;
  font: 13px/18px var(--font-sans); color: var(--tinte); white-space: nowrap; overflow: hidden; }
.ef-liste-ersatz__zeile > span:nth-child(2) { text-align: right; }
.ef-liste-ersatz__etikett { position: absolute; padding: 1px 8px; border-radius: var(--radius-s); background: var(--grund); color: var(--tinte-2); }

.ef-planzone { position: absolute; overflow: hidden; }
.ef-blatt, .eb-p1 { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.ef-blatt { background: #fff; box-shadow: 0 1px 6px #0000002e; }
.ef-blatt > .ef-bild, .ef-daumen .ef-bild { width: 100%; height: 100%; }
.ef-daumen { overflow: hidden; background: #fff; box-shadow: 0 1px 6px #0000002e; }

/* Dateikarten des Paars 406-12 */
.ef-datei { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-m); box-shadow: var(--schatten-karte); }
.ef-datei--pdf { position: absolute; }
.ef-datei__kopf { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-bottom: 1px solid var(--linie); }
.ef-datei__name { font-weight: 500; }
.ef-datei__art { margin-left: auto; color: var(--tinte-2); font-weight: 400; }
.ef-datei--xml { position: absolute; border-top: 1px solid var(--linie); }
.ef-datei--xml.pw-xml__kopf { height: 40px; padding: 0 12px; }

/* Ordnerkarte „Eingang“ (pf-karte aus der Ablage). Leer und Plansatz liegen übereinander,
   damit die Karte in jedem Zustand gleich hoch ist (nahtlose Schleife). */
.ef-eingang { gap: 10px; background: var(--flaeche); box-shadow: var(--schatten-karte); }
.ef-eingang .pf-ablage-bereich-text { margin: -4px 0 0; }
.ef-eingang__satz { display: grid; min-height: 52px; padding: 8px 10px; border-radius: var(--radius-m); background: var(--grund); }
.ef-eingang__satz > * { grid-area: 1 / 1; }
.ef-eingang__leer { margin: 0; align-self: center; }
.ef-eingang__plansatz { display: flex; flex-direction: column; gap: 6px; }
.ef-eingang__zeile { display: flex; align-items: baseline; gap: 12px; }
.ef-eingang--schmal { padding: 12px 14px; gap: 8px; }
.ef-eingang--schmal .ef-eingang__satz { min-height: 0; }
.ef-eingang .pf-ablage-name { background: var(--flaeche); border: 1px solid var(--linie); }

/* Lesekästen auf dem Plan (unskalierte Überlagerung) */
.ef-kasten { border: 1.5px solid var(--tinte-2); border-radius: 2px; background: #1c1c1a0f; }
.ef-kasten__name { padding: 1px 6px; border: 1px solid var(--linie-stark); border-radius: var(--radius-s); background: var(--flaeche);
  color: var(--tinte); font-weight: 500; white-space: nowrap; transform: translateX(-100%); }
.ef-kasten__name--oben { transform: translate(-100%, -100%); }

/* Werte aus Plan und CAD-Daten (1.3) */
.ef-wert { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border: 1px solid var(--linie); border-radius: var(--radius-m);
  background: var(--flaeche); box-shadow: var(--schatten-karte); }
.ef-wert > span:last-child { display: flex; flex-direction: column; }
.ef-wert__zusatz { color: var(--tinte-2); font-weight: 400; }
.ef-wert--schmal { padding: 6px 10px; gap: 8px; }
.ef-haken { position: relative; display: inline-flex; flex: none; margin-top: 3px; overflow: hidden; color: var(--gruen); }
.ef-decke { position: absolute; inset: -1px; transform: translateX(101%); }
.ef-decke--flaeche { background: var(--flaeche); }

/* Panels der rechten Spalte (wie .befunde-spalte) */
.ef-panel { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 14px; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius-m); box-shadow: var(--schatten-karte); }
.ef-panel--detail { overflow: hidden; gap: 8px; padding-top: 10px; }
.ef-panel--schmal { padding: 8px 10px 6px; gap: 6px; }
.ef-panel--schmal .ef-pl-kopf { min-height: 24px; }
.ef-panel--av { gap: 8px; padding-bottom: 10px; }
.ef-pl-kopf { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.ef-ampelslot { width: 136px; }
.ef-pl-kopf .ef-etikett { margin-left: auto; }

/* Prüfliste verkürzt: nur die Namen, Zeile 8 mit Detail. */
.ef-pl .pruefungen__zeile { padding: 2px 2px; gap: 8px; }
.ef-pl .pruefungen__name { line-height: 20px; }
.ef-pl .pruefungen__symbol { position: relative; padding-top: 0; height: 20px; display: flex; align-items: center; overflow: hidden; }
.ef-pl .pruefungen__detail { display: none; }
.ef-pl .pruefungen__zeile:nth-child(9) .pruefungen__detail { display: block; }
.ef-pl .pruefungen__zeile > div > div.klein:not(.pruefungen__detail) { display: none; }
.ef-pl .pruefungen__kopf { padding-bottom: 4px; }
/* Decke über jedem Haken (Masken-Aufdecken per transform) */
.ef-pl .pruefungen__symbol::after { content: ""; position: absolute; inset: 0; background: var(--flaeche); transform: translateX(101%); }
.ef-pl .pruefungen__zeile:nth-child(2) { --i: 0; } .ef-pl .pruefungen__zeile:nth-child(3) { --i: 1; }
.ef-pl .pruefungen__zeile:nth-child(4) { --i: 2; } .ef-pl .pruefungen__zeile:nth-child(5) { --i: 3; }
.ef-pl .pruefungen__zeile:nth-child(6) { --i: 4; } .ef-pl .pruefungen__zeile:nth-child(7) { --i: 5; }
.ef-pl .pruefungen__zeile:nth-child(8) { --i: 6; } .ef-pl .pruefungen__zeile:nth-child(9) { --i: 7; }
.ef-pl .pruefungen__zeile:nth-child(10) { --i: 8; } .ef-pl .pruefungen__zeile:nth-child(11) { --i: 9; }
.ef-pl .pruefungen__zeile:nth-child(12) { --i: 10; } .ef-pl .pruefungen__zeile:nth-child(13) { --i: 11; }
.ef-pl .pruefungen__zeile:nth-child(14) { --i: 12; } .ef-pl .pruefungen__zeile:nth-child(15) { --i: 13; }

/* 1.4: Zeilen reihen sich ein, die Haken zeichnen sich; Zeile 8 und der Kopf bleiben bis zum Fund (1.5) offen -
   „…“ hält ihren Platz, damit keine Leerzeile wie ein fehlender Eintrag wirkt. */
.ef-zeit.in-4 .eb-pl1 .pruefungen__zeile, .ef-zeit.in-4 .es-pl1 .pruefungen__zeile {
  animation: ef-reihe var(--film-reihe) backwards; animation-delay: calc(var(--o-4b) + var(--i) * var(--film-reihe-takt) - var(--t0)); }
.ef-zeit.in-4 .eb-pl1 .pruefungen__symbol::after, .ef-zeit.in-4 .es-pl1 .pruefungen__symbol::after {
  animation: ef-decke var(--film-haken) backwards; animation-delay: calc(var(--o-4b) + var(--i) * var(--film-reihe-takt) + 250ms - var(--t0)); }
.eb-pl1 .pruefungen, .es-pl-kopf1 .pruefungen, .eb-pl1 .pruefungen__zeile:nth-child(9) > div { position: relative; }
.eb-pl1 .pruefungen::before, .es-pl-kopf1 .pruefungen::before, .eb-pl1 .pruefungen__zeile:nth-child(9) > div::after {
  content: "…"; position: absolute; left: 0; color: var(--tinte-2); font: 500 12px/16px var(--font-sans); }
.eb-pl1 .pruefungen::before, .es-pl-kopf1 .pruefungen::before { top: 0; }
.eb-pl1 .pruefungen__zeile:nth-child(9) > div::after { bottom: 0; }
.ef-zeit.ab-5 .eb-pl1 .pruefungen::before, .ef-zeit.ab-5 .es-pl-kopf1 .pruefungen::before,
.ef-zeit.ab-5 .eb-pl1 .pruefungen__zeile:nth-child(9) > div::after { opacity: 0; }
.ef-zeit.in-5 .eb-pl1 .pruefungen::before, .ef-zeit.in-5 .es-pl-kopf1 .pruefungen::before,
.ef-zeit.in-5 .eb-pl1 .pruefungen__zeile:nth-child(9) > div::after {
  animation: ef-raus var(--film-abgang) backwards; animation-delay: calc(var(--o-5) - var(--t0)); }
.ef-zeit .eb-pl1 .pruefungen__kopf, .ef-zeit .eb-pl1 .pruefungen__zeile:nth-child(9) .pruefungen__symbol,
.ef-zeit .eb-pl1 .pruefungen__zeile:nth-child(9) .pruefungen__detail,
.ef-zeit .es-pl-kopf1 .pruefungen__kopf, .ef-zeit .es-pl1 .pruefungen__zeile:nth-child(9) .pruefungen__symbol { opacity: 0; }
.ef-zeit.ab-5 .eb-pl1 .pruefungen__kopf, .ef-zeit.ab-5 .eb-pl1 .pruefungen__zeile:nth-child(9) .pruefungen__symbol,
.ef-zeit.ab-5 .eb-pl1 .pruefungen__zeile:nth-child(9) .pruefungen__detail,
.ef-zeit.ab-5 .es-pl-kopf1 .pruefungen__kopf, .ef-zeit.ab-5 .es-pl1 .pruefungen__zeile:nth-child(9) .pruefungen__symbol { opacity: 1; }
.ef-zeit.in-5 .eb-pl1 .pruefungen__kopf, .ef-zeit.in-5 .eb-pl1 .pruefungen__zeile:nth-child(9) .pruefungen__symbol,
.ef-zeit.in-5 .eb-pl1 .pruefungen__zeile:nth-child(9) .pruefungen__detail,
.ef-zeit.in-5 .es-pl-kopf1 .pruefungen__kopf, .ef-zeit.in-5 .es-pl1 .pruefungen__zeile:nth-child(9) .pruefungen__symbol {
  animation: ef-blende var(--film-wechsel) backwards; animation-delay: calc(var(--o-5) + 180ms - var(--t0)); }
/* 1.5: Blickführung - ab der Marke (5c) treten die übrigen Zeilen zurück, Kopf und Zeile 8 bleiben voll. */
.ef-zeit.ab-5c .eb-pl1 .pruefungen__zeile:not(:nth-child(9)) { opacity: .45; }
.ef-zeit.in-5 .eb-pl1 .pruefungen__zeile:not(:nth-child(9)) {
  animation: ef-daempfen var(--film-ueberblenden) backwards; animation-delay: calc(var(--o-5c) - var(--t0)); }

/* 1.8: zwei gleiche Listen übereinander - in der oberen („nachher“) ist nur sichtbar,
   was sich ändert: Symbol und Detail der Zeile 8 und der Kopf. Erst geht das Alte (180 ms),
   dann kommt das Neue (220 ms) - kein Text über Text. Nur die Ampel-Pillen (feste Breite) überblenden. */
.eb-pl3 .pruefungen__zeile:not(:nth-child(9)), .es-pl3 .pruefungen__zeile:not(:nth-child(9)),
.eb-pl3 .pruefungen__zeile:nth-child(9) .pruefungen__name, .es-pl3 .pruefungen__zeile:nth-child(9) .pruefungen__name,
.es-pl-kopf .pruefungen__zeile { visibility: hidden; }
.eb-pl3 .pruefungen__zeile, .es-pl3 .pruefungen__zeile { border-bottom-color: transparent; }
.es-pl-kopf .pruefungen__zeile { display: none; }
.es-pl1 .pruefungen__kopf, .es-pl2 .pruefungen__kopf, .es-pl3 .pruefungen__kopf { display: none; }
.ef-zeit .eb-pl3 .pruefungen__kopf, .ef-zeit .eb-pl3 .pruefungen__zeile:nth-child(9),
.ef-zeit .es-pl-kopf3 .pruefungen__kopf, .ef-zeit .es-pl3 .pruefungen__zeile:nth-child(9) { opacity: 0; }
.ef-zeit.ab-8b .eb-pl3 .pruefungen__kopf, .ef-zeit.ab-8b .eb-pl3 .pruefungen__zeile:nth-child(9),
.ef-zeit.ab-8b .es-pl-kopf3 .pruefungen__kopf, .ef-zeit.ab-8b .es-pl3 .pruefungen__zeile:nth-child(9) { opacity: 1; }
.ef-zeit.ab-8b .eb-pl2 .pruefungen__kopf, .ef-zeit.ab-8b .eb-pl2 .pruefungen__zeile:nth-child(9) .pruefungen__symbol,
.ef-zeit.ab-8b .eb-pl2 .pruefungen__zeile:nth-child(9) .pruefungen__detail,
.ef-zeit.ab-8b .es-pl-kopf2 .pruefungen__kopf, .ef-zeit.ab-8b .es-pl2 .pruefungen__zeile:nth-child(9) .pruefungen__symbol { opacity: 0; }
.ef-zeit.in-8 .eb-pl3 .pruefungen__kopf, .ef-zeit.in-8 .eb-pl3 .pruefungen__zeile:nth-child(9) .pruefungen__detail,
.ef-zeit.in-8 .es-pl-kopf3 .pruefungen__kopf {
  animation: ef-blende var(--film-wechsel) backwards; animation-delay: calc(var(--o-8b) + 180ms - var(--t0)); }
.ef-zeit.in-8 .eb-pl2 .pruefungen__kopf, .ef-zeit.in-8 .eb-pl2 .pruefungen__zeile:nth-child(9) .pruefungen__symbol,
.ef-zeit.in-8 .eb-pl2 .pruefungen__zeile:nth-child(9) .pruefungen__detail,
.ef-zeit.in-8 .es-pl-kopf2 .pruefungen__kopf, .ef-zeit.in-8 .es-pl2 .pruefungen__zeile:nth-child(9) .pruefungen__symbol {
  animation: ef-raus var(--film-abgang) backwards; animation-delay: calc(var(--o-8b) - var(--t0)); }
.ef-zeit.in-8 .eb-pl3 .pruefungen__zeile:nth-child(9) .pruefungen__symbol::after,
.ef-zeit.in-8 .es-pl3 .pruefungen__zeile:nth-child(9) .pruefungen__symbol::after {
  animation: ef-decke var(--film-haken) backwards; animation-delay: calc(var(--o-8b) + 300ms - var(--t0)); }

/* Schmale Prüfliste: 7 Zeilen sichtbar (je 21 px), ohne Details - die Zählung steht im Kopf. */
.ef-panel--schmal .ef-pl .pruefungen__zeile { padding: 0 2px; }
.ef-panel--schmal .ef-pl .pruefungen__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ef-panel--schmal .ef-pl .pruefungen__zeile:nth-child(9) .pruefungen__detail { display: none; }
.es-pl-fenster { position: relative; height: 147px; overflow: hidden; }
.es-pl-lauf { position: absolute; left: 0; right: 0; top: 0; }
.es-pl-kopf .pruefungen { min-height: 20px; }

/* Arbeitsvorrat als Ebene über der Bühnenbreite */
.ef-ebene { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 34px 16px 16px; border: 1px solid var(--linie);
  border-radius: var(--radius-l); background: var(--grund); box-shadow: var(--schatten-schwebend); }
.ef-ebene__seite { display: flex; flex-direction: column; gap: 2px; }
.ef-ebene__unter { color: var(--tinte-2); }
.ef-tabelle { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-m); overflow: hidden; }
.ef-zeile.zeile { grid-template-columns: 112px 150px minmax(0, 1fr) 72px 270px 24px; border-bottom: 0; cursor: default; }
.ef-zeile.zeile:hover { background: none; }
.ef-tabelle--schmal { box-shadow: var(--schatten-karte); }
.ef-spalten { display: block; padding: 6px 10px 0; color: var(--tinte-2); font-weight: 400; }
.ef-tabelle--schmal .ef-zeile.zeile { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 8px; height: auto;
  padding: 6px 10px 8px; }
.ef-tabelle--schmal .ef-zeile .zeile__bez, .ef-tabelle--schmal .ef-zeile .zeile__zahl, .ef-tabelle--schmal .ef-zeile .zeile__pfeil { display: none; }
.ef-tabelle--schmal .ef-zeile .zeile__status { grid-column: 1 / -1; }

/* Detail (Kopf, Hinweis, Reiter) in 480 px neu umbrochen */
.ef-dkopf { display: flex; flex-direction: column; gap: 6px; }
.ef-dkopf__zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.ef-dkopf .detail-kopf__kennung { font-family: var(--font-mono); font-weight: 500; }
.ef-dkopf .detail-kopf__bez { font-size: 16px; line-height: 22px; }
.ef-dkopf--schmal .ef-dkopf__zeile { gap: 4px 6px; }
.ef-dkopf--schmal .detail-kopf__kennung { font-size: 18px; line-height: 24px; }
.ef-dkopf--schmal .detail-kopf__bez { font-size: 14px; line-height: 20px; }
.ef-panel--av .keine-befunde { padding: 8px 12px; }
.ef-tbhinweis.tb-detail-hinweis { margin: 0; align-items: flex-start; white-space: normal; border-radius: var(--radius-m); padding: 6px 10px; }
.ef-tbhinweis .pw-icon { margin-top: 1px; }
.ef-reiter.reiter { margin: 0 -16px; }
.ef-reiter button { cursor: default; height: 34px; }
.ef-etikett--bm { align-self: flex-start; margin-top: -4px; }
.ef-panel .spalte-kopf__tipp { margin: -4px 0 0; }

/* Bemaßungshinweis an E57 (Verweis der App plus Film-Etikett, schmal eine Zeile) */
/* Das Etikett „an E57“ steht im Verweis hinter dem Text (zweite Zeile ist kurz) - es kostet keine Höhe. */
.ef-bm { position: relative; }
.ef-bm .bm-verweis { cursor: default; }
.ef-etikett--bem { position: absolute; right: 36px; bottom: 11px; background: var(--bemassung-hell); color: var(--bemassung-dunkel); }
.ef-bmzeile { display: flex; align-items: center; gap: 6px; margin: 0; padding: 4px 8px; border: 1px solid var(--bemassung-linie);
  border-radius: var(--radius-m); background: #f4f9fa; color: var(--bemassung-dunkel); font-weight: 500; }
.ef-bmzeile__zeichen { color: var(--bemassung); font-weight: 600; }

/* Befundkarte: ausgewählt erst nach dem Klick (Überlagerung per opacity). */
.ef-befund { position: relative; }
.ef-befund .pw-befund { cursor: default; }
.ef-panel--detail .pw-befund { gap: 8px; padding: 12px 14px 10px; }
.ef-befund .pw-befund.is-ausgewaehlt { border-color: var(--linie); box-shadow: none; }
.ef-befund .pw-befund.is-ausgewaehlt .pw-befund__nr { position: relative; background: var(--flaeche); color: var(--karmin); }
.ef-befund .pw-befund__nr::after { content: "1"; position: absolute; inset: -1.5px; display: grid; place-items: center; border-radius: var(--radius-s);
  background: var(--karmin); color: var(--auf-karmin); opacity: 0; }
.ef-befund__wahl { position: absolute; inset: 0; border: 1px solid var(--karmin); border-radius: var(--radius-m);
  box-shadow: 0 0 0 1px var(--karmin), var(--schatten-karte); pointer-events: none; }
.ef-zeit .ef-befund .pw-befund__markiert, .ef-zeit .ef-befund .pw-befund__erklaerung { opacity: 0; }
.ef-zeit.ab-6c .ef-befund .pw-befund__markiert, .ef-zeit.ab-6c .ef-befund .pw-befund__erklaerung,
.ef-zeit.ab-6c .ef-befund .pw-befund__nr::after { opacity: 1; }
.ef-zeit.in-6 .ef-befund .pw-befund__markiert, .ef-zeit.in-6 .ef-befund .pw-befund__erklaerung,
.ef-zeit.in-6 .ef-befund .pw-befund__nr::after { animation: ef-blende var(--film-ueberblenden) backwards; animation-delay: calc(var(--o-6c) - var(--t0)); }
/* Schmal: kompakt - Bezeichnung und Wert nebeneinander, Werte in Mono 12. */
.ef-befund--schmal .pw-befund { gap: 8px; padding: 10px 12px; }
.ef-befund--schmal .pw-befund__kopf { gap: 8px; }
.ef-befund--schmal .pw-befund__stelle { padding-left: 0; }
.ef-befund--schmal .pw-befund__vergleich { grid-template-columns: minmax(0, 1fr); }
.ef-befund--schmal .pw-befund__seite { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: 6px 10px; }
.ef-befund--schmal .pw-befund__seite + .pw-befund__seite { border-left: 0; border-top: 1px solid var(--linie); }
.ef-befund--schmal .pw-befund__seite .wert { font-size: 12px; line-height: 16px; }

/* Marke im Plan - die Nummer steht links neben der Zeile im Rand, nicht auf der Zeile darüber. */
.ef-marke-plan { position: absolute; inset: 0; cursor: default; }
.ef-marke-plan .plan-marke__nr { left: -22px; top: 50%; transform: translateY(-50%); }
.ef-leuchten { position: absolute; inset: -6px; border-radius: 6px; background: var(--karmin); opacity: 0; pointer-events: none; }
.ef-plaettchen { display: block; position: absolute; background: #fff; }

/* Vergleichskarte (1.5), Mono 28 px bei Maßstab 1 */
.ef-vergleich { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 16px 20px;
  border: 1px solid var(--linie); border-radius: var(--radius-l); background: var(--flaeche); box-shadow: var(--schatten-schwebend); }
.ef-vergleich__seite { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.ef-vergleich__wert { font: 500 28px/36px var(--font-mono); }
.ef-vergleich__wo { color: var(--tinte-2); font-weight: 400; }
.ef-vergleich__zeichen { font: 500 28px/36px var(--font-mono); color: var(--tinte-2); }
.ef-vergleich__punkt { position: relative; display: inline-block; }
.ef-vergleich__punkt .ef-plaettchen { inset: 2px -2px -8px -2px; background: var(--flaeche); }
.ef-strich { position: absolute; left: -1px; right: -1px; bottom: 2px; height: 3px; overflow: hidden; }
.ef-strich__linie { position: absolute; inset: 0; background: var(--karmin); }
.ef-vergleich--schmal { gap: 8px; padding: 14px 10px; box-shadow: var(--schatten-karte); }
.es-fundzeile { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px; margin: 12px 0 0; text-align: center; }

/* Korrektur im CAD (nachgestellt) */
.ef-karte { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--linie); border-radius: var(--radius-m);
  background: var(--flaeche); box-shadow: var(--schatten-karte); }
.ef-korrektur__kopf { display: flex; align-items: center; gap: 10px; }
.ef-korrektur__zeile { display: flex; align-items: center; gap: 10px; margin: 0; }
.ef-korrektur__zeile .ef-haken { margin-top: 0; }

/* Plan im Detail der Arbeitsvorbereitung */
.ef-avplan { background: var(--grund); }
.ef-avplan__leiste { position: absolute; left: 0; right: 0; top: 0; }
.ef-avplan__leiste .plan-leiste__datei { gap: 8px; }
.ef-avplan__flaeche { position: absolute; left: 0; right: 0; top: 44px; bottom: 0; overflow: hidden; }
.ef-avplan__flaeche--schmal { top: 0; }

/* Zeiger = ein Mensch handelt */
.ef-zeiger { position: absolute; left: 0; top: 0; z-index: 20; pointer-events: none; }
.ef-zeiger__klick { display: block; transform-origin: 3px 2px; }
.ef-zeiger__bild { display: block; filter: drop-shadow(0 1px 1.5px #1c1c1a59); }

/* ---------- Gabel (Kapitel 1) ---------- */
.eb-gabel { position: absolute; left: 0; top: 0; width: 1200px; height: 84px; z-index: 5; }
.eb-gabel__linien { position: absolute; left: 0; top: 0; overflow: visible; }
.eb-gabel__linien path { fill: none; stroke: var(--linie-stark); stroke-width: 1.5; stroke-linecap: round; }
.eb-gabel__linien circle { fill: var(--flaeche); stroke: var(--linie-stark); stroke-width: 1.5; }
.eb-station { position: absolute; transform: translateX(-50%); color: var(--tinte); white-space: nowrap; }
.eb-strich { position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; border-radius: 1px; background: var(--karmin); opacity: 0; }
.eb-ast { position: absolute; display: inline-flex; align-items: center; gap: 4px; transform: translateX(-50%); color: var(--tinte-2); white-space: nowrap; }
.eb-marke-huelle, .es-marke-huelle { position: absolute; left: 0; top: 0; z-index: 6; }
.eb-marke, .es-marke { position: absolute; left: 0; top: 0; }
.ef-marke__pille { position: absolute; left: -31px; top: -11px; display: inline-grid; place-items: center; width: 62px; height: 22px;
  border: 1px solid var(--linie-stark); border-radius: var(--radius-voll); background: var(--flaeche); color: var(--tinte); font-weight: 500;
  box-shadow: var(--schatten-karte); }
.ef-marke__ampel { position: absolute; left: 35px; top: -10px; }
.ef-marke__chip { position: absolute; left: 0; top: 14px; transform: translateX(-50%); }

/* Schmal: aktive Station oben links in --tinte mit Karmin-Unterstrich, die Ampel-Pille direkt dahinter;
   die Marke ist ein neutraler Punkt (weiß mit Rand, wie die breite Pille). */
.es-gabel { position: absolute; left: 0; top: 0; width: 360px; height: 52px; z-index: 5; }
.es-ast { position: absolute; padding: 0 3px; background: var(--grund); color: var(--tinte-2); font-size: 12px; line-height: 14px; }
.es-name { position: absolute; left: 8px; top: 0; }
.es-name__text { display: inline-flex; align-items: center; gap: 6px; opacity: 0; white-space: nowrap; }
.es-name__wort { color: var(--tinte); font-weight: 600; box-shadow: inset 0 -2px 0 var(--karmin); }
.es-marke { width: 0; height: 0; }
.es-marke::before { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%;
  background: var(--flaeche); border: 2px solid var(--tinte); box-shadow: 0 1px 3px #1c1c1a59; }
.es-nah { background: #fff; overflow: hidden; }
.es-nah__bild { overflow: hidden; }
/* Rechts ein ruhiger Auslauf statt eines harten Schnitts mitten im Wort (fest, nicht animiert). */
.es-nah__auslauf { position: absolute; top: 0; right: 0; bottom: 0; width: 44px; background: linear-gradient(to right, #fff0, #fff 85%); }
