/* Izzy Bausteine: Gestaltung (inc/gestaltung.php). Seitenneutral, lädt nur mit add_theme_support( 'izzy-gestaltung' ).
   Schreibweise im Inhalt: bausteine/LIESMICH.md, Abschnitt „Baustein Gestaltung“; Beispiele im Musterbuch.
   - Farben, Schriften und Abstände nur über die Rollen der CI, jeweils mit Rückfallwert. Farben fallen auf currentColor
     oder transparent zurück. Keine Farbwerte, keine Schatten, keine Verläufe; einzige Ausnahme ist das Punkteraster.
   - Jeder Baustein ist ohne Skript lesbar. Was erst mit Skript gilt, hängt an .izzy-an (setzt das Skript, sobald der
     Baustein aufgebaut ist).
   - Bewegung nur unter html.izzy-bewegt (Skript an, keine „reduzierte Bewegung“, nicht angehalten). Sonst steht alles im
     Endzustand da.
   - Zustände immer mit Zeichen in Mono: ✓ ok, ! achtung, × fehler, – aus; nie nur über Farbe.
   Intern, nicht für den Inhalt: izzy-an, izzy-da, izzy-aktiv, izzy-hervor, izzy-erreicht, izzy-vorleser, izzy-knopf und
   die Teile, die das Skript erzeugt (izzy-<baustein>-<teil>), dazu die Variablen --izzy-*. */

/* ---------- Gemeinsam ---------- */
.izzy-vorleser { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
[data-izzy-schalter][hidden], .izzy-erklaerungen [hidden], .izzy-terminal-knoepfe[hidden] { display: none !important; }
:is(.izzy-knopf, .izzy-erklaert-stelle, .izzy-schieber input, .izzy-tagesring li, .izzy-wochenleiste li,
  [data-izzy-schalter], .izzy-terminal pre):focus-visible { outline: 2px solid var(--akzent, currentColor); outline-offset: 2px; }
.izzy-knopf { display: inline-flex; align-items: center; gap: var(--raum-2, 8px); margin: 0; padding: var(--raum-2, 8px) var(--raum-4, 16px);
  font: 500 15px/1.3 var(--text-schrift, sans-serif); color: var(--text, inherit); background: transparent;
  border: 1px solid var(--rahmen, currentColor); border-radius: var(--radius-pille, 999px); cursor: pointer; }
.izzy-knopf:hover { border-color: var(--akzent, currentColor); }
.izzy-knopf[aria-pressed="true"], .izzy-knopf-voll { color: var(--akzenttext, inherit); background: var(--akzent, transparent);
  border-color: var(--akzent, currentColor); }

/* ---------- Einblenden und Hochzählen: data-izzy-erscheinen, data-izzy-zaehlen ---------- */
html.izzy-bewegt [data-izzy-erscheinen] { transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); }
html.izzy-bewegt [data-izzy-erscheinen]:not(.izzy-da) { opacity: 0; transform: translateY(18px); }
html.izzy-bewegt [data-izzy-erscheinen="2"] { transition-delay: .1s; }
html.izzy-bewegt [data-izzy-erscheinen="3"] { transition-delay: .2s; }
html.izzy-bewegt [data-izzy-erscheinen="4"] { transition-delay: .3s; }
[data-izzy-zaehlen] { font-variant-numeric: tabular-nums; }

/* ---------- Lesefortschritt: am unteren Rand des nächsten positionierten Vorfahren, etwa des haftenden Kopfs ---------- */
.izzy-fortschritt { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--akzent, currentColor);
  transform-origin: 0 50%; transform: scaleX(var(--izzy-gelesen, 0)); pointer-events: none; }

/* ---------- Punkteraster (einzige erlaubte Verlauf-Funktion) ---------- */
.izzy-punkte { background-image: radial-gradient(var(--linie, color-mix(in srgb, currentColor 22%, transparent)) 1px, transparent 1.4px);
  background-size: 22px 22px; }

/* ---------- Fenster ---------- */
.izzy-fenster { margin: 0; min-width: 0; overflow: hidden; background: var(--flaeche, transparent);
  border: 1px solid var(--linie, currentColor); border-radius: var(--radius, 8px); }
.izzy-fenster-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-1, 4px) var(--raum-3, 12px);
  padding: var(--raum-3, 12px) var(--raum-4, 16px); background: var(--grund, transparent); border-bottom: 1px solid var(--linie, currentColor);
  font: 500 13px/1.3 var(--mono, ui-monospace, monospace); color: var(--gedaempft, inherit); }
.izzy-fenster-kopf::before { content: "\2022  \2022  \2022"; content: "\2022  \2022  \2022" / ""; color: var(--rahmen, currentColor); }
.izzy-fenster-kopf b, .izzy-fenster-kopf strong { color: var(--text, inherit); font-weight: 500; }
.izzy-fenster-kopf > :last-child:not(:first-child) { margin-left: auto; }
.izzy-fenster > :not(.izzy-fenster-kopf) { margin: 0; padding: var(--raum-4, 16px); }

/* ---------- Verlauf (SVG vom Skript) ---------- */
.izzy-verlauf { display: block; margin-top: var(--raum-4, 16px); }
.izzy-verlauf svg { display: block; width: 100%; height: auto; overflow: visible; }
.izzy-verlauf-achse { stroke: var(--linie, currentColor); stroke-width: 1; }
.izzy-verlauf-zug { fill: none; stroke: var(--akzent, currentColor); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.izzy-verlauf-balken { fill: color-mix(in srgb, var(--akzent, currentColor) 40%, transparent); }
.izzy-verlauf-ende, .izzy-verlauf-balken:last-child { fill: var(--akzent, currentColor); }
html.izzy-bewegt .izzy-verlauf-zug { stroke-dasharray: 1 2; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .7, .2, 1); }
html.izzy-bewegt .izzy-verlauf:not(.izzy-da) .izzy-verlauf-zug { stroke-dashoffset: 1; }
html.izzy-bewegt .izzy-verlauf-ende { transition: opacity .3s 1s; }
html.izzy-bewegt .izzy-verlauf:not(.izzy-da) .izzy-verlauf-ende { opacity: 0; }
html.izzy-bewegt .izzy-verlauf-balken { transform-box: fill-box; transform-origin: 50% 100%;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1) calc(var(--izzy-n, 0) * 60ms); }
html.izzy-bewegt .izzy-verlauf:not(.izzy-da) .izzy-verlauf-balken { transform: scaleY(0); }

/* ---------- Kennzahlen: zwei Spalten, ab 640 px Breite des Bausteins eine Reihe ---------- */
.izzy-kennzahlen { container: izzy-kennzahlen / inline-size; display: flex; flex-wrap: wrap; border-top: 1px solid var(--linie, currentColor); }
.izzy-kennzahl { box-sizing: border-box; flex: 0 0 50%; min-width: 0; display: flex; flex-direction: column; gap: var(--raum-2, 8px);
  padding: var(--raum-4, 16px) var(--raum-4, 16px) var(--raum-6, 24px); border-left: 1px solid var(--linie, currentColor); }
.izzy-kennzahl:nth-child(odd) { border-left: 0; padding-left: 0; }
.izzy-kennzahl:nth-child(n+3) { border-top: 1px solid var(--linie, currentColor); }
.izzy-zahl { font-family: var(--mono, ui-monospace, monospace); font-weight: 500; line-height: 1; letter-spacing: -0.03em;
  color: var(--akzent, currentColor); font-variant-numeric: tabular-nums; font-size: 40px; font-size: clamp(30px, 11cqi, 56px); }
.izzy-was { font-size: .9em; line-height: 1.45; }
.izzy-stand { font: 400 12px/1.4 var(--mono, ui-monospace, monospace); color: var(--gedaempft, inherit); }
.izzy-kennzahl .izzy-verlauf { margin-top: var(--raum-2, 8px); }
@container izzy-kennzahlen (min-width: 640px) {
  .izzy-kennzahl { flex: 1 1 0; padding: var(--raum-6, 24px) var(--raum-6, 24px) 0; }
  .izzy-kennzahl:nth-child(odd) { border-left: 1px solid var(--linie, currentColor); padding-left: var(--raum-6, 24px); }
  .izzy-kennzahl:first-child { border-left: 0; padding-left: 0; }
  .izzy-kennzahl:nth-child(n+3) { border-top: 0; }
  .izzy-zahl { font-size: clamp(40px, 6cqi, 84px); }
}

/* ---------- Umlaufbahn ---------- */
.izzy-umlauf { margin: 0; }
.izzy-umlauf-kern { display: grid; place-items: center; text-align: center; font: 500 14px/1.3 var(--mono, ui-monospace, monospace); }
.izzy-umlauf-bahn { list-style: none; margin: var(--raum-4, 16px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--raum-2, 8px); }
.izzy-umlauf-bahn > li { padding: 4px 12px; background: var(--grund, transparent); border: 1px solid var(--linie, currentColor);
  border-radius: var(--radius-pille, 999px); font: 500 14px/1.35 var(--mono, ui-monospace, monospace); }
.izzy-umlauf-bahn > li[data-izzy-neu] { border-style: dashed; color: var(--gedaempft, inherit); }
.izzy-umlauf > figcaption { max-width: 32em; margin: var(--raum-4, 16px) auto 0; text-align: center;
  font: 400 13px/1.6 var(--mono, ui-monospace, monospace); color: var(--gedaempft, inherit); }
.izzy-umlauf-buehne { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1 / 1; margin: 0 auto; }
.izzy-umlauf-bild { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.izzy-umlauf-kreis { fill: none; stroke: var(--gedaempft, currentColor); stroke-width: 2.5px; vector-effect: non-scaling-stroke; }
.izzy-umlauf-speiche { stroke: var(--linie, currentColor); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.izzy-umlauf-speiche.izzy-neu { stroke-dasharray: 4 5; }
.izzy-umlauf-sonde, .izzy-umlauf-begleiter circle { fill: var(--akzent, currentColor); }
.izzy-umlauf-buehne > .izzy-umlauf-kern { position: absolute; z-index: 1; left: 50%; top: 50%; box-sizing: border-box; width: 34%;
  aspect-ratio: 1 / 1; padding: 4%; overflow: hidden; transform: translate(-50%, -50%); border-radius: 50%; font-size: 13px;
  color: var(--akzenttext, inherit); background: var(--akzent, transparent); }
.izzy-umlauf-allein .izzy-umlauf-buehne > .izzy-umlauf-kern { width: 70%; padding: 0; color: inherit; background: transparent; }
.izzy-umlauf-kern > .izzy-foto-platz, .izzy-umlauf-kern > img { box-sizing: border-box; width: 100%; height: 100%; min-height: 0;
  padding: 12%; border-radius: 50%; object-fit: cover; }
/* Im kleinen Kern passt nur die Beschriftung des Foto-Platzes; die Beschreibung steht weiter in seinem aria-label */
.izzy-umlauf-buehne > .izzy-umlauf-kern > .izzy-foto-platz { font-size: 0; }
.izzy-umlauf-buehne > .izzy-umlauf-kern > .izzy-foto-platz > b { font-size: 12px; line-height: 1.3; }
.izzy-umlauf-buehne > .izzy-umlauf-bahn { display: block; margin: 0; }
.izzy-umlauf-buehne > .izzy-umlauf-bahn > li { position: absolute; z-index: 2; left: var(--izzy-x, 50%); top: var(--izzy-y, 50%);
  box-sizing: border-box; width: max-content; max-width: var(--izzy-breite, 40%); text-align: center; transform: translate(-50%, 22px); }
.izzy-umlauf-buehne > .izzy-umlauf-bahn > li.izzy-oben { transform: translate(-50%, calc(-100% - 22px)); }
.izzy-umlauf-buehne > .izzy-umlauf-bahn > li::before,
.izzy-umlauf-buehne > .izzy-umlauf-bahn > li::after { position: absolute; left: 50%; box-sizing: border-box; border-radius: 50%; }
.izzy-umlauf-buehne > .izzy-umlauf-bahn > li::before { content: var(--izzy-zeichen, ""); top: -34px; width: 24px; height: 24px;
  margin-left: -12px; display: grid; place-items: center; font: 500 14px/1 var(--mono, ui-monospace, monospace); color: transparent;
  background: var(--text, currentColor); }
.izzy-umlauf-buehne > .izzy-umlauf-bahn > li::after { content: ""; top: -41px; width: 38px; height: 38px; margin-left: -19px;
  border: 2px solid var(--izzy-farbe, var(--akzent, currentColor)); opacity: 0; }
.izzy-umlauf-buehne > .izzy-umlauf-bahn > li.izzy-oben::before { top: auto; bottom: -34px; }
.izzy-umlauf-buehne > .izzy-umlauf-bahn > li.izzy-oben::after { top: auto; bottom: -41px; }
.izzy-umlauf-buehne > .izzy-umlauf-bahn > li[data-izzy-neu]::before { background: var(--grund, transparent); border: 2px dashed var(--rahmen, currentColor); }
html.izzy-bewegt .izzy-umlauf-bahn > li.izzy-ping::before { animation: izzy-haken 1.1s cubic-bezier(.2, .7, .2, 1); }
html.izzy-bewegt .izzy-umlauf-bahn > li.izzy-ping::after { animation: izzy-ping 1.1s cubic-bezier(.2, .7, .2, 1); }
@keyframes izzy-haken { 20%, 70% { color: var(--grund, transparent); } }
@keyframes izzy-ping { from { opacity: 1; transform: scale(.8); } to { opacity: 0; transform: scale(1.8); } }
.izzy-umlauf-begleiter { transform-box: view-box; transform-origin: 50px 50px; }
html.izzy-bewegt .izzy-umlauf.izzy-da .izzy-umlauf-begleiter { animation: izzy-umlauf 1.8s cubic-bezier(.45, 0, .2, 1) .3s both; }
@keyframes izzy-umlauf { from { transform: rotate(-360deg); } to { transform: none; } }
@media (max-width: 600px) {
  .izzy-umlauf-buehne > .izzy-umlauf-bahn > li { padding: 3px 8px; font-size: 12px; }
  .izzy-umlauf-buehne > .izzy-umlauf-kern { font-size: 11px; }
}
/* Platz vorab (seit 0.3.1, gemessen 29.11.: Die Bühne kam erst mit dem Skript, CLS 0,08 auf einer Startseite). Läuft Skript,
   hält ein Abstandhalter schon vor dem Aufbau die Bühne frei, 1:1 und höchstens 540 px wie .izzy-umlauf-buehne; Kern und
   Liste stehen darin in der Mitte, die Unterschrift darunter wie danach. Ohne Teile steht der Kern schon in seiner Größe
   nach dem Aufbau. Ohne Skript (scripting: none) bleibt alles wie bisher. */
@media (scripting: enabled) {
  .izzy-umlauf:not(.izzy-an):has(> .izzy-umlauf-kern) { display: grid; grid-template-columns: minmax(0, 1fr); }
  .izzy-umlauf:not(.izzy-an):has(> .izzy-umlauf-kern)::before { content: ""; grid-area: 1 / 1 / 3 / 2; justify-self: center;
    width: 100%; max-width: 540px; aspect-ratio: 1 / 1; }
  .izzy-umlauf:not(.izzy-an) > .izzy-umlauf-kern { grid-area: 1 / 1; align-self: end; }
  .izzy-umlauf:not(.izzy-an) > .izzy-umlauf-bahn { grid-area: 2 / 1; align-self: start; }
  .izzy-umlauf:not(.izzy-an) > figcaption { grid-area: 3 / 1; }
  .izzy-umlauf:not(.izzy-an):not(:has(> .izzy-umlauf-bahn > li)) > .izzy-umlauf-kern { grid-area: 1 / 1 / 3 / 2; place-self: center;
    box-sizing: border-box; width: min(70%, 378px); aspect-ratio: 1 / 1; min-height: 0; overflow: hidden; border-radius: 50%; }
}

/* ---------- Zeitplan-Listen in Tagesring und Wochenleiste ---------- */
.izzy-tagesring, .izzy-wochenleiste { margin: 0; min-width: 0; }
:is(.izzy-tagesring, .izzy-wochenleiste) > ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--raum-2, 8px); }
:is(.izzy-tagesring, .izzy-wochenleiste) > ol > li { position: relative; display: flow-root; padding: 12px 16px;
  background: var(--grund, transparent); border: 1px solid var(--linie, currentColor); border-radius: var(--radius, 8px); font-size: 16px; line-height: 1.45; }
/* Die Zeit steht links in einer festen Spalte; ein langer Zeitpunkt („dienstags ab 21:00“) bricht um, die Zeile wächst mit.
   Hängender Einzug (0.2.1): Der linke Rand der Zeit ist so breit wie sie samt Abstand, sie nimmt dem Text also keinen
   Platz, und der Text bleibt auch beim Umbrechen in seiner Spalte. Ohne :has steht der Text wie bisher um die Zeit. */
:is(.izzy-tagesring, .izzy-wochenleiste) > ol > li > time:first-child { float: left; width: var(--izzy-zeitspalte, 126px); margin-right: 16px;
  font: 500 14px/1.65 var(--mono, ui-monospace, monospace); color: var(--gedaempft, inherit); }
:is(.izzy-tagesring, .izzy-wochenleiste) > ol > li:has(> time:first-child) { padding-left: calc(32px + var(--izzy-zeitspalte, 126px)); }
:is(.izzy-tagesring, .izzy-wochenleiste) > ol > li:has(> time:first-child) > time:first-child { margin-left: calc(-16px - var(--izzy-zeitspalte, 126px)); }
:is(.izzy-tagesring, .izzy-wochenleiste) > ol > li.izzy-hervor { border-color: var(--akzent, currentColor); }
:is(.izzy-tagesring, .izzy-wochenleiste) > ol > li.izzy-hervor > time { color: var(--akzent, currentColor); }
:is(.izzy-tagesring, .izzy-wochenleiste) > figcaption { margin: var(--raum-4, 16px) 0 0; font: 400 13px/1.6 var(--mono, ui-monospace, monospace);
  color: var(--gedaempft, inherit); }
@media (max-width: 600px) {
  :is(.izzy-tagesring, .izzy-wochenleiste) > ol > li, :is(.izzy-tagesring, .izzy-wochenleiste) > ol > li:has(> time:first-child) { padding-left: 14px; }
  :is(.izzy-tagesring, .izzy-wochenleiste) > ol > li > time:first-child,
  :is(.izzy-tagesring, .izzy-wochenleiste) > ol > li:has(> time:first-child) > time:first-child { float: none; display: block; width: auto; margin: 0; }
}
/* Gruppen (0.2.2): Die Wochenleiste darf ihre Liste in Gruppen mit Überschrift teilen, etwa täglich, wöchentlich und
   monatlich (div.izzy-gruppen > div.izzy-gruppe > h3 + ol). Ab 700 px stehen sie nebeneinander, darunter untereinander;
   in einer Gruppe steht die Zeit über dem Text */
.izzy-wochenleiste > .izzy-gruppen { display: grid; gap: var(--raum-6, 24px); align-items: start; }
@media (min-width: 700px) { .izzy-wochenleiste > .izzy-gruppen { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.izzy-gruppe > h3 { margin: 0 0 var(--raum-3, 12px); padding-bottom: var(--raum-2, 8px); border-bottom: 1px solid var(--linie, currentColor);
  font: 500 13px/1.4 var(--mono, ui-monospace, monospace); letter-spacing: .06em; text-transform: uppercase; color: var(--gedaempft, inherit); }
.izzy-wochenleiste .izzy-gruppe > ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--raum-2, 8px); }
.izzy-wochenleiste .izzy-gruppe > ol > li { position: relative; padding: 12px 14px; background: var(--grund, transparent);
  border: 1px solid var(--linie, currentColor); border-radius: var(--radius, 8px); font-size: 16px; line-height: 1.45; }
.izzy-wochenleiste .izzy-gruppe > ol > li > time:first-child { display: block; font: 500 14px/1.65 var(--mono, ui-monospace, monospace);
  color: var(--gedaempft, inherit); }
.izzy-wochenleiste .izzy-gruppe > ol > li.izzy-hervor { border-color: var(--akzent, currentColor); }
.izzy-wochenleiste .izzy-gruppe > ol > li.izzy-hervor > time { color: var(--akzent, currentColor); }

/* ---------- Tagesring (SVG vom Skript) ---------- */
.izzy-tagesring.izzy-an { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); grid-template-areas: "ring liste" "text liste";
  gap: var(--raum-6, 24px) 56px; align-items: center; }
.izzy-tagesring.izzy-an > .izzy-ring { grid-area: ring; }
.izzy-tagesring.izzy-an > ol { grid-area: liste; }
.izzy-tagesring.izzy-an > figcaption { grid-area: text; align-self: start; justify-self: center; max-width: 480px; margin: 0; }
.izzy-ring { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; }
.izzy-ring-ziffer { fill: var(--grund, transparent); stroke: var(--linie, currentColor); stroke-width: 1; }
.izzy-ring-stunden { fill: none; stroke: var(--gedaempft, currentColor); stroke-width: 8; }
.izzy-ring-zahl, .izzy-ring-mitte { fill: var(--gedaempft, currentColor); font: 400 12px var(--mono, ui-monospace, monospace); }
.izzy-ring-mitte { letter-spacing: .08em; }
.izzy-ring-zeit { fill: var(--text, currentColor); font: 500 40px var(--mono, ui-monospace, monospace); }
.izzy-ring-takt { fill: none; stroke: var(--gedaempft, currentColor); stroke-width: 10; }
.izzy-ring-marke { fill: var(--gedaempft, currentColor); }
.izzy-ring-marke.izzy-selten { fill: var(--grund, transparent); stroke: var(--gedaempft, currentColor); stroke-width: 2; }
.izzy-ring-teil.izzy-hervor .izzy-ring-takt { stroke: var(--akzent, currentColor); }
.izzy-ring-teil.izzy-hervor .izzy-ring-marke { fill: var(--akzent, currentColor); stroke: var(--text, currentColor); stroke-width: 2; }
.izzy-ring-treffer { fill: none; stroke: transparent; pointer-events: stroke; }
.izzy-ring-treffer.izzy-voll { fill: transparent; stroke: none; pointer-events: all; }
.izzy-ring-zeiger, .izzy-ring-mitte, .izzy-ring-zeit, .izzy-ring-zahl { pointer-events: none; }
.izzy-ring-zeiger line { stroke: var(--akzent, currentColor); stroke-width: 2.5; stroke-linecap: round; }
.izzy-ring-zeiger circle { fill: var(--akzent, currentColor); }
@media (max-width: 860px) {
  .izzy-tagesring.izzy-an { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ring" "text" "liste"; }
}

/* ---------- Wochenleiste (Bild vom Skript) ---------- */
.izzy-woche-bild { display: grid; gap: 6px; margin: 0 0 var(--raum-6, 24px); font: 500 13px/1 var(--mono, ui-monospace, monospace);
  color: var(--gedaempft, inherit); }
.izzy-woche-kopf, .izzy-woche-tag { display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 0 12px; align-items: center; }
.izzy-woche-stunden { display: flex; justify-content: space-between; font-size: 11px; }
.izzy-woche-tag.izzy-heute > span { color: var(--text, inherit); font-weight: 600; }
.izzy-woche-tag svg { display: block; width: 100%; height: 16px; overflow: visible; }
.izzy-woche-grund { fill: color-mix(in srgb, var(--linie, currentColor) 45%, transparent); }
.izzy-woche-netz { stroke: var(--linie, currentColor); stroke-width: 1; vector-effect: non-scaling-stroke; }
.izzy-woche-marke { fill: var(--gedaempft, currentColor); }
.izzy-woche-takt { fill: none; stroke: var(--gedaempft, currentColor); stroke-width: 6; }
.izzy-woche-marke.izzy-hervor { fill: var(--akzent, currentColor); }
.izzy-woche-takt.izzy-hervor { stroke: var(--akzent, currentColor); }
.izzy-woche-jetzt { stroke: var(--akzent, currentColor); stroke-width: 2; vector-effect: non-scaling-stroke; }

/* ---------- Band ---------- */
.izzy-band { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--raum-2, 8px) 28px; }
.izzy-band-titel { margin: 0; white-space: nowrap; font: 500 13px/1.4 var(--mono, ui-monospace, monospace); letter-spacing: .08em;
  text-transform: uppercase; color: var(--gedaempft, inherit); }
.izzy-band > ol, .izzy-band-protokoll { flex: 1 1 320px; min-width: 0; list-style: none; margin: 0; padding: 0;
  font: 400 15px/1.6 var(--mono, ui-monospace, monospace); }
.izzy-band > ol { display: flex; flex-wrap: wrap; gap: 0 var(--raum-6, 24px); }
.izzy-band > ol > li > time, .izzy-band-protokoll time { margin-right: 12px; color: var(--gedaempft, inherit); }
.izzy-band-protokoll { overflow: hidden; }
.izzy-band-protokoll > li { display: flex; align-items: baseline; min-width: 0; white-space: nowrap; color: var(--gedaempft, inherit); }
.izzy-band-protokoll > li:last-child { color: var(--text, inherit); }
.izzy-band-protokoll > li > time { flex: none; }
.izzy-band-protokoll > li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.izzy-band-naechstes { flex: 1 1 100%; margin: 0; font: 400 13px/1.4 var(--mono, ui-monospace, monospace); color: var(--gedaempft, inherit); }
html.izzy-bewegt .izzy-band-protokoll > li.izzy-frisch { animation: izzy-einschieben .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes izzy-einschieben { from { opacity: 0; transform: translateY(100%); } }

/* ---------- Leitstand und Zustand ---------- */
.izzy-leitstand { margin: 0; min-width: 0; }
.izzy-leitstand table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.izzy-leitstand th, .izzy-leitstand td { padding: 8px 10px; text-align: left; vertical-align: baseline;
  border-bottom: 1px solid var(--linie, currentColor); overflow-wrap: anywhere; }
.izzy-leitstand th:first-child, .izzy-leitstand td:first-child { padding-left: 0; }
.izzy-leitstand thead th { font: 500 12px/1.4 var(--mono, ui-monospace, monospace); letter-spacing: .06em; text-transform: uppercase;
  color: var(--gedaempft, inherit); }
.izzy-leitstand tbody th { font: 500 15px/1.4 var(--mono, ui-monospace, monospace); }
.izzy-leitstand > figcaption { margin-top: var(--raum-3, 12px); font: 400 13px/1.5 var(--mono, ui-monospace, monospace); color: var(--gedaempft, inherit); }
.izzy-leitstand tr.izzy-mit-streifen > * { border-bottom: 0; }
.izzy-leitstand-streifen td { padding-top: 0; }
.izzy-leitstand-streifen svg { display: block; width: 100%; height: 10px; overflow: visible; }
.izzy-streifen-war { stroke: color-mix(in srgb, var(--akzent, currentColor) 55%, transparent); stroke-width: 10; }
.izzy-streifen-kommt { stroke: var(--linie, currentColor); stroke-width: 10; }
.izzy-streifen-jetzt { stroke: var(--akzent, currentColor); stroke-width: 2; vector-effect: non-scaling-stroke; }
.izzy-streifen-skala { display: flex; justify-content: space-between; margin-top: 4px; font: 400 11px/1 var(--mono, ui-monospace, monospace);
  color: var(--gedaempft, inherit); }
.izzy-zustand { display: inline-flex; align-items: baseline; gap: .45em; }
.izzy-zustand::before { flex: none; font: 500 1em/1 var(--mono, ui-monospace, monospace); color: var(--gedaempft, currentColor); }
.izzy-zustand[data-izzy-zustand="ok"]::before { content: "\2713"; content: "\2713" / "in Ordnung: "; color: var(--ok, currentColor); }
.izzy-zustand[data-izzy-zustand="achtung"]::before { content: "!"; content: "!" / "Achtung: "; color: var(--achtung, currentColor); }
.izzy-zustand[data-izzy-zustand="fehler"]::before { content: "\D7"; content: "\D7" / "Fehler: "; color: var(--fehler, currentColor); }
.izzy-zustand[data-izzy-zustand="aus"]::before { content: "\2013"; content: "\2013" / "aus: "; }
.izzy-zustand[data-izzy-zustand="ok"]:lang(en)::before { content: "\2713"; content: "\2713" / "OK: "; }
.izzy-zustand[data-izzy-zustand="achtung"]:lang(en)::before { content: "!"; content: "!" / "Warning: "; }
.izzy-zustand[data-izzy-zustand="fehler"]:lang(en)::before { content: "\D7"; content: "\D7" / "Error: "; }
.izzy-zustand[data-izzy-zustand="aus"]:lang(en)::before { content: "\2013"; content: "\2013" / "Off: "; }

/* ---------- Kacheln ---------- */
.izzy-kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: var(--raum-6, 24px); }
.izzy-kacheln > * { min-width: 0; }
.izzy-kachel-gross { grid-column: span 2; grid-row: span 2; }
.izzy-kachel-breit { grid-column: span 2; }
@media (max-width: 860px) {
  .izzy-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .izzy-kachel-gross { grid-row: auto; }
}
@media (max-width: 600px) {
  .izzy-kacheln { grid-template-columns: minmax(0, 1fr); }
  .izzy-kachel-gross, .izzy-kachel-breit { grid-column: auto; grid-row: auto; }
}

/* ---------- Gespräch und Handy ---------- */
.izzy-gespraech { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.izzy-gespraech > li { box-sizing: border-box; max-width: 86%; align-self: flex-start; padding: 10px 14px; overflow-wrap: anywhere;
  background: var(--grund, transparent); border: 1px solid var(--linie, currentColor); border-radius: var(--radius, 8px);
  font: 400 15px/1.45 var(--text-schrift, sans-serif); }
.izzy-gespraech > li[data-izzy-von="ich"] { align-self: flex-end; border-color: var(--rahmen, currentColor); }
.izzy-gespraech > li[data-izzy-von="system"] { align-self: center; max-width: 100%; padding: 4px 12px; text-align: center; border-style: dashed;
  border-radius: var(--radius-pille, 999px); font: 400 13px/1.4 var(--mono, ui-monospace, monospace); color: var(--gedaempft, inherit); }
.izzy-gespraech > li > b:first-child { display: block; margin-bottom: 2px; font: 500 11px/1.4 var(--mono, ui-monospace, monospace);
  letter-spacing: .08em; text-transform: uppercase; color: var(--gedaempft, inherit); }
html.izzy-bewegt .izzy-gespraech > li { transition: opacity .5s cubic-bezier(.2, .7, .2, 1), transform .5s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--izzy-n, 0) * .3s); }
html.izzy-bewegt .izzy-gespraech:not(.izzy-da) > li { opacity: 0; transform: translateY(12px); }
.izzy-handy { margin: 0; display: flex; flex-direction: column; align-items: center; }
.izzy-handy > :not(figcaption) { position: relative; box-sizing: border-box; width: min(100%, 330px); min-height: 360px; margin: 0;
  padding: 36px 12px 18px; background: var(--flaeche, transparent); border: 1px solid var(--rahmen, currentColor); border-radius: 28px; }
.izzy-handy > :not(figcaption)::before { content: ""; position: absolute; top: 14px; left: 50%; width: 76px; height: 6px; margin-left: -38px;
  border-radius: var(--radius-pille, 999px); background: var(--linie, currentColor); }
.izzy-handy > .izzy-gespraech { justify-content: flex-end; }
.izzy-handy > figcaption { max-width: 330px; margin-top: var(--raum-3, 12px); text-align: center;
  font: 400 13px/1.5 var(--mono, ui-monospace, monospace); color: var(--gedaempft, inherit); }

/* ---------- Schichten: haftet nur mit Bewegung und ab 861 px, sonst Bild über dem Text ---------- */
.izzy-schichten-bild { display: grid; gap: 16px; margin: 0 0 var(--raum-8, 32px); }
.izzy-schichten-bild > [data-izzy-schicht] { position: relative; min-width: 0; padding: 14px 16px 16px; background: var(--grund, transparent);
  border: 1px solid var(--linie, currentColor); border-radius: var(--radius, 8px); }
.izzy-schichten-bild > [data-izzy-schicht] + [data-izzy-schicht]::before { content: ""; position: absolute; left: 50%; top: -17px; height: 16px;
  border-left: 1px dashed var(--rahmen, currentColor); }
.izzy-schichten-anzeige { display: none; list-style: none; margin: 0; padding: 0; font: 500 13px/1 var(--mono, ui-monospace, monospace);
  color: var(--gedaempft, inherit); }
.izzy-schichten-text { list-style: none; margin: 0; padding: 0; }
.izzy-schichten-text > li + li { margin-top: var(--raum-8, 32px); }
@media (min-width: 861px) {
  html.izzy-bewegt .izzy-schichten.izzy-an { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-auto-flow: dense;
    gap: 0 72px; align-items: start; }
  html.izzy-bewegt .izzy-schichten.izzy-an > * { grid-column: 1 / -1; }
  html.izzy-bewegt .izzy-schichten.izzy-an > .izzy-schichten-text { grid-column: 1; }
  html.izzy-bewegt .izzy-schichten.izzy-an > .izzy-schichten-bild { grid-column: 2; position: sticky; top: var(--izzy-haften, 112px);
    grid-template-columns: 44px minmax(0, 1fr); gap: 16px 20px; margin: 0; }
  html.izzy-bewegt .izzy-schichten.izzy-an .izzy-schichten-anzeige { display: flex; flex-direction: column; gap: 6px; grid-column: 1; grid-row: 1 / span 30; }
  html.izzy-bewegt .izzy-schichten.izzy-an .izzy-schichten-anzeige > li { padding: 10px 0 10px 10px; border-left: 2px solid var(--linie, currentColor); }
  html.izzy-bewegt .izzy-schichten.izzy-an .izzy-schichten-anzeige > li.izzy-aktiv { color: var(--akzent, currentColor); border-left-color: var(--akzent, currentColor); }
  html.izzy-bewegt .izzy-schichten.izzy-an .izzy-schichten-bild > [data-izzy-schicht] { grid-column: 2;
    transition: opacity .4s cubic-bezier(.2, .7, .2, 1), transform .4s cubic-bezier(.2, .7, .2, 1), border-color .2s; }
  html.izzy-bewegt .izzy-schichten.izzy-an .izzy-schichten-bild > [data-izzy-schicht]:not(.izzy-erreicht) { opacity: 0; transform: translateY(12px); }
  html.izzy-bewegt .izzy-schichten.izzy-an .izzy-schichten-bild > .izzy-aktiv { border-color: var(--akzent, currentColor); }
  html.izzy-bewegt .izzy-schichten.izzy-an .izzy-schichten-text > li { display: flex; flex-direction: column; justify-content: center; min-height: 60vh;
    margin: 0; padding: 8px 0 8px 24px; border-left: 2px solid var(--linie, currentColor); transition: border-color .2s; }
  html.izzy-bewegt .izzy-schichten.izzy-an .izzy-schichten-text > li.izzy-aktiv { border-left-color: var(--akzent, currentColor); }
}
/* Spielart blenden (0.2.3, data-izzy-art="blenden"): Bild und Text haften zusammen auf einer Bühne, die Texte liegen
   übereinander und der des Schritts blendet über, statt heraufzugleiten. Der Weg unter der Bühne gibt je Wechsel eine
   halbe Fensterhöhe zum Scrollen; der letzte Schritt kommt kurz bevor die Bühne losgelassen wird (48 px), und die Seite
   folgt gleich darunter (0.2.5). Die kommenden Schichten stehen als leere, gestrichelte Rahmen da und füllen sich beim
   Scrollen; die Bühne steht mittig zwischen --izzy-kopf und dem Fensterrand (0.2.6, das Skript setzt top). Am Handy,
   ohne Bewegung und im Druck wie oben */
@property --izzy-kopf { syntax: "<length>"; inherits: true; initial-value: 0px; }
.izzy-schichten-weg { display: none; }
@media screen and (min-width: 861px) {
  html.izzy-bewegt .izzy-schichten.izzy-an[data-izzy-art~="blenden"] { display: block; }
  html.izzy-bewegt .izzy-schichten.izzy-an[data-izzy-art~="blenden"] > .izzy-schichten-buehne { position: sticky; top: var(--izzy-haften, 112px);
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 72px; align-items: start; }
  html.izzy-bewegt .izzy-schichten.izzy-an[data-izzy-art~="blenden"] .izzy-schichten-buehne > .izzy-schichten-text { grid-column: 1; grid-row: 1; display: grid; }
  html.izzy-bewegt .izzy-schichten.izzy-an[data-izzy-art~="blenden"] .izzy-schichten-buehne > .izzy-schichten-bild { grid-column: 2; grid-row: 1;
    grid-template-columns: 44px minmax(0, 1fr); gap: 16px 20px; margin: 0; }
  html.izzy-bewegt .izzy-schichten.izzy-an[data-izzy-art~="blenden"] .izzy-schichten-anzeige { grid-row: 1 / span var(--izzy-lagen, 1); }
  html.izzy-bewegt .izzy-schichten.izzy-an[data-izzy-art~="blenden"] .izzy-schichten-bild > [data-izzy-schicht]:not(.izzy-erreicht) { opacity: 1;
    transform: none; border-style: dashed; background: transparent; }
  html.izzy-bewegt .izzy-schichten.izzy-an[data-izzy-art~="blenden"] .izzy-schichten-bild > [data-izzy-schicht] > * { transition: opacity .45s cubic-bezier(.2, .7, .2, 1); }
  html.izzy-bewegt .izzy-schichten.izzy-an[data-izzy-art~="blenden"] .izzy-schichten-bild > [data-izzy-schicht]:not(.izzy-erreicht) > * { opacity: 0; }
  html.izzy-bewegt .izzy-schichten.izzy-an[data-izzy-art~="blenden"] .izzy-schichten-text > li { grid-area: 1 / 1; justify-content: flex-start;
    min-height: 0; opacity: 0; pointer-events: none; transition: opacity .5s cubic-bezier(.2, .7, .2, 1), border-color .2s; }
  html.izzy-bewegt .izzy-schichten.izzy-an[data-izzy-art~="blenden"] .izzy-schichten-text > li.izzy-aktiv { opacity: 1; pointer-events: auto; }
  html.izzy-bewegt .izzy-schichten.izzy-an[data-izzy-art~="blenden"] > .izzy-schichten-weg { display: block; height: calc((var(--izzy-schritte, 1) - 1) * 50vh + 48px); }
}

/* ---------- Schieber: ohne Skript nebeneinander ---------- */
.izzy-schieber { margin: 0; min-width: 0; }
.izzy-schieber:not(.izzy-an) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--raum-4, 16px); }
.izzy-schieber:not(.izzy-an) > figcaption { grid-column: 1 / -1; }
.izzy-schieber-vorher, .izzy-schieber-nachher { box-sizing: border-box; min-width: 0; padding: var(--raum-6, 24px); background: var(--grund, transparent);
  border: 1px solid var(--linie, currentColor); border-radius: var(--radius, 8px); }
.izzy-schieber-vorher::before, .izzy-schieber-nachher::before { content: attr(data-izzy-titel); display: block; margin: 0 0 var(--raum-4, 16px);
  font: 500 13px/1.4 var(--mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--gedaempft, inherit); }
.izzy-schieber-buehne { position: relative; display: grid; overflow: hidden; border: 1px solid var(--linie, currentColor);
  border-radius: var(--radius, 8px); cursor: ew-resize; touch-action: pan-y; }
.izzy-schieber-buehne > .izzy-schieber-vorher, .izzy-schieber-buehne > .izzy-schieber-nachher { grid-area: 1 / 1; border: 0; border-radius: 0; }
.izzy-schieber-buehne > .izzy-schieber-vorher { z-index: 1; clip-path: inset(0 calc(100% - var(--izzy-pos, 50%)) 0 0); }
.izzy-schieber-buehne > .izzy-schieber-nachher::before { text-align: right; }
.izzy-schieber-trenner { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--izzy-pos, 50%); width: 2px; margin-left: -1px;
  background: var(--akzent, currentColor); pointer-events: none; }
.izzy-schieber-trenner::after { content: "\2194"; content: "\2194" / ""; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px;
  margin: -18px 0 0 -18px; display: grid; place-items: center; border-radius: 50%; background: var(--akzent, currentColor);
  color: var(--akzenttext, inherit); font: 500 17px/1 var(--mono, ui-monospace, monospace); }
.izzy-schieber-regler { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; margin-top: var(--raum-4, 16px); }
.izzy-schieber-regler label { grid-column: 1 / -1; font-size: 15px; }
.izzy-schieber-regler span { font: 500 13px/1.3 var(--mono, ui-monospace, monospace); color: var(--gedaempft, inherit); }
.izzy-schieber-regler input { width: 100%; margin: 0; accent-color: var(--akzent, auto); }
/* Hälften (data-izzy-art="haelften", für Text): Vorher steht in der linken, Nachher in der rechten Hälfte. In der Mitte
   ist beides zu sehen, ganz links oder rechts nur eine Seite. */
@media (min-width: 701px) {
  .izzy-schieber[data-izzy-art="haelften"] .izzy-schieber-buehne > .izzy-schieber-vorher { padding-right: calc(50% + var(--raum-6, 24px)); }
  .izzy-schieber[data-izzy-art="haelften"] .izzy-schieber-buehne > .izzy-schieber-nachher { padding-left: calc(50% + var(--raum-6, 24px)); }
}
.izzy-schieber > figcaption { margin-top: var(--raum-3, 12px); font: 400 13px/1.5 var(--mono, ui-monospace, monospace); color: var(--gedaempft, inherit); }
@media (max-width: 700px) {
  .izzy-schieber:not(.izzy-an) { grid-template-columns: minmax(0, 1fr); }
  .izzy-schieber-vorher, .izzy-schieber-nachher { padding: 20px 16px; }
  /* Am Handy stehen Vorher und Nachher ganz untereinander, ohne Regler: Eine Kante quer durch Text zerschnitte Zeilen */
  .izzy-schieber-buehne { display: block; cursor: auto; }
  .izzy-schieber-buehne > .izzy-schieber-vorher { clip-path: none; }
  .izzy-schieber-buehne > .izzy-schieber-nachher { border-top: 1px solid var(--linie, currentColor); }
  .izzy-schieber-buehne > .izzy-schieber-nachher::before { text-align: left; }
  :is(.izzy-schieber-trenner, .izzy-schieber-regler) { display: none; }
}

/* ---------- Ablaufplan: ohne Skript zwei Listen ---------- */
.izzy-ablauf { margin: 0; min-width: 0; }
.izzy-ablauf-schritte { margin: 0; padding-left: 1.4em; }
.izzy-ablauf-schritte > li + li { margin-top: var(--raum-2, 8px); }
.izzy-ablauf-faelle { margin: var(--raum-4, 16px) 0 0; padding-left: 1.2em; }
.izzy-ablauf-faelle > li + li { margin-top: var(--raum-2, 8px); }
.izzy-ablauf-faelle > li > b:first-child { display: block; }
.izzy-ablauf-faelle .izzy-ablauf-ergebnis { display: block; color: var(--gedaempft, inherit); }
.izzy-ablauf-faelle > li[data-izzy-ergebnis]:not(:has(.izzy-ablauf-ergebnis))::after { content: " \2013  " attr(data-izzy-ergebnis);
  color: var(--gedaempft, inherit); }
.izzy-ablauf > figcaption { margin-top: var(--raum-3, 12px); font: 400 13px/1.5 var(--mono, ui-monospace, monospace); color: var(--gedaempft, inherit); }
.izzy-ablauf-wahl { display: flex; flex-wrap: wrap; gap: var(--raum-2, 8px); margin: 0 0 var(--raum-6, 24px); }
.izzy-ablauf-plan { position: relative; padding: 28px; border: 1px solid var(--linie, currentColor); border-radius: var(--radius, 8px); }
.izzy-ablauf.izzy-an .izzy-ablauf-schritte { list-style: none; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 28px; }
.izzy-ablauf.izzy-an .izzy-ablauf-schritte > li { position: relative; min-width: 0; margin: 0; font-size: 14px; line-height: 1.5; }
.izzy-ablauf.izzy-an .izzy-ablauf-schritte > li > b:first-of-type { display: block; margin: 10px 0 6px; font-size: 15px; line-height: 1.35; color: var(--text, inherit); }
.izzy-ablauf.izzy-an .izzy-ablauf-schritte > li:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: 34px; right: -22px;
  height: 2px; background: var(--rahmen, currentColor); }
.izzy-ablauf.izzy-an .izzy-ablauf-schritte > li.izzy-durch::after { background: var(--akzent, currentColor); }
.izzy-ablauf-zeichen { position: relative; z-index: 1; display: grid; place-items: center; box-sizing: border-box; width: 28px; height: 28px;
  background: var(--grund, transparent); border: 1px solid var(--rahmen, currentColor); border-radius: 50%;
  font: 500 14px/1 var(--mono, ui-monospace, monospace); color: var(--gedaempft, inherit); }
.izzy-ablauf-schritte > li[data-izzy-zustand="ok"] .izzy-ablauf-zeichen { color: var(--ok, currentColor); border-color: var(--ok, currentColor); }
.izzy-ablauf-schritte > li[data-izzy-zustand="achtung"] .izzy-ablauf-zeichen { color: var(--achtung, currentColor); border-color: var(--achtung, currentColor); }
.izzy-ablauf-schritte > li[data-izzy-zustand="fehler"] .izzy-ablauf-zeichen { color: var(--fehler, currentColor); border-color: var(--fehler, currentColor); }
.izzy-ablauf-schritte > li[data-izzy-zustand="aus"] .izzy-ablauf-zeichen { border-style: dashed; }
.izzy-ablauf.izzy-an .izzy-ablauf-schritte > li[data-izzy-zustand="aus"] > b:first-of-type { color: var(--gedaempft, inherit); }
.izzy-ablauf-schritte > li.izzy-aktiv .izzy-ablauf-zeichen { outline: 2px solid var(--akzent, currentColor); outline-offset: 2px; }
.izzy-ablauf-punkt { position: absolute; z-index: 2; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--akzent, currentColor); pointer-events: none; }
.izzy-ablauf-ausgang { max-width: var(--lese-breite, 40em); margin: var(--raum-4, 16px) 0 0; padding: 14px 18px; background: var(--flaeche, transparent);
  border-left: 3px solid var(--akzent, currentColor); border-radius: 0 var(--radius-klein, 4px) var(--radius-klein, 4px) 0; }
.izzy-ablauf-ausgang:empty { visibility: hidden; }
@media (max-width: 860px) {
  .izzy-ablauf-plan { padding: 20px 16px; }
  .izzy-ablauf.izzy-an .izzy-ablauf-schritte { grid-auto-flow: row; gap: 22px; }
  .izzy-ablauf.izzy-an .izzy-ablauf-schritte > li { padding-left: 42px; }
  .izzy-ablauf.izzy-an .izzy-ablauf-zeichen { position: absolute; left: 0; top: 0; }
  .izzy-ablauf.izzy-an .izzy-ablauf-schritte > li > b:first-of-type { margin-top: 3px; }
  .izzy-ablauf.izzy-an .izzy-ablauf-schritte > li:not(:last-child)::after { top: 34px; left: 13px; right: auto; bottom: -16px; width: 2px; height: auto; }
}

/* ---------- Zeitstrahl ---------- */
.izzy-zeitstrahl { position: relative; list-style: none; margin: 0; padding: 0; }
.izzy-zeitstrahl::before, .izzy-zeitstrahl::after { content: ""; position: absolute; top: 14px; bottom: 0; left: 8px; width: 2px; margin-left: -1px;
  background: var(--linie, currentColor); }
.izzy-zeitstrahl::after { background: var(--akzent, currentColor); transform-origin: 50% 0; transform: scaleY(var(--izzy-fuell, 0)); }
.izzy-zeitstrahl > li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; padding-bottom: 40px; }
.izzy-zeitstrahl > li:last-child { padding-bottom: 0; }
.izzy-zeitstrahl > li::before { content: ""; grid-column: 1; grid-row: 1; position: relative; z-index: 1; box-sizing: border-box; width: 16px; height: 16px;
  margin-top: 5px; border-radius: 50%; border: 2px solid var(--akzent, currentColor); background: var(--akzent, currentColor); }
.izzy-zeitstrahl > li[data-izzy-geplant]::before, .izzy-zeitstrahl.izzy-an > li:not(.izzy-erreicht)::before { border-color: var(--rahmen, currentColor);
  background: var(--flaeche, transparent); }
.izzy-zeitstrahl > li[data-izzy-geplant]::before { border-style: dashed; }
.izzy-zeitstrahl > li > time { grid-column: 2; grid-row: 1; font: 500 16px/1.6 var(--mono, ui-monospace, monospace); color: var(--text, inherit); }
.izzy-zeitstrahl > li > :not(time) { grid-column: 2; min-width: 0; margin-top: 0; }
.izzy-zeitstrahl > li > h3 { margin: 4px 0 8px; }
.izzy-zeitstrahl > li > p { margin-bottom: var(--raum-2, 8px); }
.izzy-zeitstrahl > li > :last-child { margin-bottom: 0; }
.izzy-zeitstrahl > li[data-izzy-geplant] > :not(time) { color: var(--gedaempft, inherit); }
@media (min-width: 861px) {
  .izzy-zeitstrahl::before, .izzy-zeitstrahl::after { left: 50%; }
  .izzy-zeitstrahl > li { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); padding-bottom: 56px; }
  .izzy-zeitstrahl > li::before { grid-column: 2; justify-self: center; }
  .izzy-zeitstrahl > li > time { font-size: 20px; line-height: 1.3; padding-top: 1px; }
  .izzy-zeitstrahl > li > h3 { margin-top: 0; }
  .izzy-zeitstrahl > li:nth-child(odd) > :not(time) { grid-column: 1; }
  .izzy-zeitstrahl > li:nth-child(odd) > time { grid-column: 3; }
  .izzy-zeitstrahl > li:nth-child(even) > :not(time) { grid-column: 3; }
  .izzy-zeitstrahl > li:nth-child(even) > time { grid-column: 1; justify-self: end; text-align: right; }
}
html.izzy-bewegt .izzy-zeitstrahl > li { transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--izzy-verz, 0s); }
html.izzy-bewegt .izzy-zeitstrahl > li:not(.izzy-da) { opacity: 0; transform: translateY(18px); }
html.izzy-bewegt .izzy-zeitstrahl > li::before { transition: background-color .2s, border-color .2s; }

/* ---------- Terminal ---------- */
.izzy-terminal { margin: 0; min-width: 0; }
.izzy-terminal pre { margin: 0; padding: 20px 24px; color: var(--text, inherit); background: var(--grund, transparent);
  border: 1px solid var(--linie, currentColor); border-radius: var(--radius, 8px); font: 400 15px/1.7 var(--mono, ui-monospace, monospace);
  white-space: pre-wrap; overflow-wrap: anywhere; }
.izzy-terminal code { padding: 0; font: inherit; color: inherit; background: none; border: 0; }
.izzy-ein { color: var(--text, inherit); font-weight: 500; }
.izzy-aus, .izzy-notiz { color: var(--gedaempft, inherit); }
.izzy-terminal > figcaption { margin-top: var(--raum-3, 12px); font: 400 13px/1.5 var(--mono, ui-monospace, monospace); color: var(--gedaempft, inherit); }
.izzy-terminal-knoepfe { display: flex; flex-wrap: wrap; gap: var(--raum-2, 8px); margin: 0 0 var(--raum-3, 12px); }
.izzy-terminal-buehne { position: relative; }
.izzy-terminal-verdeckt { opacity: 0; }
.izzy-terminal-buehne > .izzy-terminal-kopie { position: absolute; inset: 0; overflow: hidden; }
.izzy-terminal-kopie .izzy-noch { visibility: hidden; }
.izzy-terminal-cursor { display: inline-block; width: .55em; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; background: var(--akzent, currentColor); }
@media (max-width: 600px) { .izzy-terminal pre { padding: 16px; font-size: 13px; } }

/* ---------- Code mit Erklärung: ohne Skript die Liste unter dem Code ---------- */
.izzy-erklaert { margin: 0; min-width: 0; }
.izzy-erklaert > pre { margin: 0; }
.izzy-erklaert mark { color: var(--akzent, inherit); background: transparent; }
.izzy-erklaert-stelle { margin: 0 -2px; padding: 0 1px; font: inherit; line-height: inherit; color: var(--akzent, inherit); background: transparent;
  border: 1px dashed var(--rahmen, currentColor); border-radius: var(--radius-klein, 4px); cursor: pointer; }
.izzy-erklaert-stelle:hover { border-style: solid; border-color: var(--akzent, currentColor); }
.izzy-erklaert-stelle[aria-pressed="true"] { color: var(--akzenttext, inherit); background: var(--akzent, transparent); border: 1px solid var(--akzent, currentColor); }
.izzy-erklaerungen { margin: var(--raum-6, 24px) 0 0; }
.izzy-erklaerungen dt { margin: 0 0 6px; font: 500 15px/1.4 var(--mono, ui-monospace, monospace); color: var(--akzent, inherit); }
.izzy-erklaerungen dd { margin: 0 0 var(--raum-4, 16px); }
.izzy-erklaerungen dd:last-child { margin-bottom: 0; }
.izzy-erklaert > figcaption { margin-top: var(--raum-3, 12px); font: 400 13px/1.5 var(--mono, ui-monospace, monospace); color: var(--gedaempft, inherit); }
.izzy-erklaert.izzy-an { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--raum-4, 16px) var(--raum-8, 32px); align-items: start; }
.izzy-erklaert.izzy-an > :not(pre):not(.izzy-erklaerungen) { grid-column: 1 / -1; margin-top: 0; }
.izzy-erklaert.izzy-an > .izzy-erklaerungen { margin: 0; padding: 20px 22px; background: var(--flaeche, transparent); border: 1px solid var(--linie, currentColor);
  border-left: 3px solid var(--akzent, currentColor); border-radius: var(--radius, 8px); }
@media (max-width: 860px) { .izzy-erklaert.izzy-an { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .izzy-erklaert > pre { white-space: pre-wrap; overflow-wrap: anywhere; } }

/* ---------- Stapel: haftet nur mit Bewegung und ab 701 px ---------- */
.izzy-stapel { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--raum-8, 32px); }
.izzy-stapel > li { box-sizing: border-box; min-width: 0; padding: var(--raum-6, 24px); background: var(--flaeche, transparent);
  border: 1px solid var(--linie, currentColor); border-radius: var(--radius, 8px); }
@media (min-width: 701px) {
  html.izzy-bewegt .izzy-stapel > li { position: sticky; top: calc(var(--izzy-haften, 96px) + var(--izzy-n, 0) * 64px); }
}

/* ---------- Kette: senkrecht, ab 640 px Breite des Bausteins waagrecht ---------- */
.izzy-kette { container: izzy-kette / inline-size; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.izzy-kette > li { position: relative; box-sizing: border-box; flex: 1 1 100%; min-width: 0; padding: 18px 20px; background: var(--grund, transparent);
  border: 1px solid var(--linie, currentColor); border-radius: var(--radius, 8px); font-size: 16px; line-height: 1.5; overflow-wrap: break-word; hyphens: auto; }
.izzy-kette > li:last-child { border-color: var(--akzent, currentColor); }
.izzy-kette > li > b:first-child { display: block; margin-bottom: 8px; font: 500 12px/1.4 var(--mono, ui-monospace, monospace); letter-spacing: .08em;
  text-transform: uppercase; color: var(--gedaempft, inherit); }
.izzy-kette > li + li::before { content: "\2193"; content: "\2193" / ""; position: absolute; left: 50%; top: -28px; width: 28px; height: 28px; margin-left: -14px;
  text-align: center; font: 500 16px/28px var(--mono, ui-monospace, monospace); color: var(--gedaempft, inherit); }
@container izzy-kette (min-width: 640px) {
  .izzy-kette > li { flex: 1 1 0; }
  .izzy-kette > li + li::before { content: "\2192"; content: "\2192" / ""; left: -28px; top: 50%; margin: -14px 0 0; }
}
html.izzy-bewegt .izzy-kette > li { transition: opacity .5s cubic-bezier(.2, .7, .2, 1), transform .5s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--izzy-n, 0) * .12s); }
html.izzy-bewegt .izzy-kette:not(.izzy-da) > li { opacity: 0; transform: translateY(12px); }
/* Kette als Leiste (data-izzy-art="leiste"): Punkte an einer Linie statt Kästen, für schmale Karten */
.izzy-kette[data-izzy-art="leiste"] { display: block; container-type: normal; }
.izzy-kette[data-izzy-art="leiste"] > li { padding: 0 0 14px 28px; background: none; border: 0; border-radius: 0; }
.izzy-kette[data-izzy-art="leiste"] > li:last-child { padding-bottom: 0; }
.izzy-kette[data-izzy-art="leiste"] > li > b:first-child { margin-bottom: 2px; }
.izzy-kette[data-izzy-art="leiste"] > li::before, .izzy-kette[data-izzy-art="leiste"] > li + li::before { content: ""; position: absolute; left: 3px;
  top: 6px; width: 10px; height: 10px; margin: 0; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--rahmen, currentColor);
  background: var(--grund, transparent); }
.izzy-kette[data-izzy-art="leiste"] > li::after { content: ""; position: absolute; left: 8px; top: 20px; bottom: 2px; width: 1px; background: var(--linie, currentColor); }
.izzy-kette[data-izzy-art="leiste"] > li:last-child::before { background: var(--text, currentColor); border-color: var(--text, currentColor); }
.izzy-kette[data-izzy-art="leiste"] > li:last-child::after { display: none; }

/* ---------- Linien zeichnen: Pfade mit Klasse izzy-zug und pathLength="1" zeichnen sich beim Sichtbarwerden einmal ---------- */
html.izzy-bewegt [data-izzy-zeichnen] .izzy-zug { stroke-dasharray: 1 2; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.3s cubic-bezier(.2, .7, .2, 1) var(--izzy-verz, 0s); }
html.izzy-bewegt [data-izzy-zeichnen].izzy-da .izzy-zug { stroke-dashoffset: 0; }

/* ---------- Steckbrief (dt und dd direkt oder je Paar in einem div) und Foto-Platz ---------- */
.izzy-steckbrief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--raum-8, 32px); margin: 0; }
.izzy-steckbrief > div, .izzy-steckbrief > dt, .izzy-steckbrief > dd { min-width: 0; margin: 0; padding: 12px 0 14px; border-top: 1px solid var(--linie, currentColor); }
.izzy-steckbrief dt { font: 500 12px/1.4 var(--mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--gedaempft, inherit); }
.izzy-steckbrief > div > dt { margin: 0 0 4px; }
.izzy-steckbrief dd { margin: 0; font-size: 16px; line-height: 1.45; color: var(--text, inherit); }
@media (max-width: 600px) {
  .izzy-steckbrief { grid-template-columns: minmax(0, 1fr); }
  .izzy-steckbrief > dt { padding-bottom: 2px; }
  .izzy-steckbrief > dd { padding-top: 0; border-top: 0; }
}
.izzy-foto-platz { position: relative; box-sizing: border-box; display: grid; place-items: center; align-content: center; gap: 4px; min-height: 220px;
  padding: var(--raum-6, 24px); text-align: center; background: var(--flaeche, transparent); border: 1px dashed var(--rahmen, currentColor);
  border-radius: var(--radius, 8px); font: 400 13px/1.5 var(--mono, ui-monospace, monospace); color: var(--gedaempft, inherit); }
.izzy-foto-platz > b { display: block; font: 500 15px/1.4 var(--text-schrift, sans-serif); color: var(--text, inherit); }

/* ---------- Sicherheitsnetz: reduzierte Bewegung und Druck zeigen alles im Endzustand ---------- */
@media (prefers-reduced-motion: reduce) {
  html.izzy-bewegt *, html.izzy-bewegt *::before, html.izzy-bewegt *::after { animation: none !important; transition: none !important; }
  html.izzy-bewegt [data-izzy-erscheinen], html.izzy-bewegt .izzy-gespraech > li, html.izzy-bewegt .izzy-kette > li,
  html.izzy-bewegt .izzy-zeitstrahl > li, html.izzy-bewegt .izzy-verlauf-balken,
  html.izzy-bewegt .izzy-schichten-bild > [data-izzy-schicht] { opacity: 1 !important; transform: none !important; }
  html.izzy-bewegt .izzy-verlauf-zug, html.izzy-bewegt [data-izzy-zeichnen] .izzy-zug { stroke-dasharray: none !important; }
  html.izzy-bewegt .izzy-verlauf-ende { opacity: 1 !important; }
}
@media print {
  html.izzy-bewegt [data-izzy-erscheinen], html.izzy-bewegt .izzy-gespraech > li, html.izzy-bewegt .izzy-kette > li,
  html.izzy-bewegt .izzy-zeitstrahl > li, html.izzy-bewegt .izzy-schichten-bild > [data-izzy-schicht] { opacity: 1 !important; transform: none !important; }
}
