.seite-es {
  --success: #7CB945;
  --warning: #e8a43d;
  --error: #EB5055;
  --dsgvo: #A332FF;
  --linie: #dbe3ea;
  --shadow-sm: var(--e-1, 0 1px 3px rgba(20, 37, 58, .12));
  --r-0: 4px;
  --r-1: 8px;
}
.sect:is(#gedaechtnis, #zeitplaene) .ablauf { display: block; margin-top: 0; gap: 0; grid-template-columns: none; }
.sect:is(#gedaechtnis, #zeitplaene) .ablauf__schritt { font-size: var(--s-02); line-height: 1.5; color: var(--ink); }
.sect:is(#gedaechtnis, #zeitplaene) .ablauf__schritt + .ablauf__schritt::before { content: none; }
.sect:is(#gedaechtnis, #zeitplaene) .ablauf__nr { margin-bottom: 0; }
.sect:is(#gedaechtnis, #zeitplaene) .ablauf__schritt strong { display: inline; color: inherit; font-size: inherit; }
.sect:is(#gedaechtnis, #zeitplaene) .gt-wahl strong, .sect:is(#gedaechtnis, #zeitplaene) .gd-fakt__kopf strong { display: block; }
#gedaechtnis .lead, #zeitplaene .lead { max-width: 80ch; }

.ablauf__schritt--wvm .ablauf__bild { gap: var(--a-2); }
.wvm { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--a-5); align-items: center; width: 100%; }
.wvm__bild { display: block; width: clamp(8rem, 15vw, 13rem); height: auto; border-radius: var(--r-2); box-shadow: var(--shadow-sm); }
.wvm__titel { margin: 0 0 var(--a-1); font-size: var(--s-00); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.wvm__seite ul { display: grid; gap: var(--a-2); margin: 0; padding: 0; list-style: none; }
.wvm__seite li { position: relative; display: flex; align-items: center; gap: var(--a-2); min-height: 3.25rem; padding: var(--a-1) var(--a-3);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-2); font-size: var(--s-02); font-weight: 700; line-height: 1.3; color: var(--ink); }
.wvm__seite li > span:first-child { font-size: var(--s-04); }
.wvm__seite li::after { content: ""; position: absolute; top: 50%; width: var(--a-5); height: 3px; margin-top: -1.5px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px); }
.wvm__seite--ein li::after { left: 100%; }
.wvm__seite--aus li::after { right: 100%; }
.wvm__seite--aus .wvm__titel { text-align: right; }
@media (max-width: 40rem) {
  .wvm { grid-template-columns: minmax(0, 1fr); gap: var(--a-3); }
  .wvm__bild { justify-self: center; }
  .wvm__seite li::after { display: none; }
  .wvm__seite--aus .wvm__titel { text-align: left; }
}
.wv-bild { justify-items: stretch; gap: var(--a-2); width: min(100%, 36rem); justify-self: center; }
.wv-runter { justify-self: center; font-size: var(--s-05); font-weight: 700; line-height: 1; color: var(--accent); }

.gd-fakt, .gd-steckbrief, .gd-seite, .zp-tabelle, .zp-paket, .zp-probe {
  padding: var(--a-3) var(--a-4); background: var(--white); border: 1px solid var(--border); border-radius: var(--r-2); box-shadow: var(--shadow-sm);
}
.gd-fakt p, .gd-steckbrief p, .gd-seite p, .zp-tabelle p, .zp-paket p, .zp-probe p { margin: 0; }
.gd-fakt__kopf { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a-1) var(--a-2); font-size: var(--s-02); color: var(--ink); }
.gd-fakt__kopf .lesung__kennung { margin-left: auto; }
.gd-fakt__satz { margin-top: var(--a-2) !important; font-size: var(--s-03); line-height: 1.5; color: var(--ink); }
.gd-fakt__daten { display: grid; gap: var(--a-1); margin: var(--a-2) 0 0; }
.gd-fakt__daten div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--a-2); padding-top: var(--a-1); border-top: 1px solid var(--linie); font-size: var(--s-02); line-height: 1.4; }
.gd-fakt__daten dt { font-weight: 700; color: var(--grey); }
.gd-fakt__daten dd { margin: 0; color: var(--ink); }
.gd-doppelt, .gd-vorschlag { display: flex; align-items: center; gap: var(--a-2); margin: 0; padding: var(--a-2) var(--a-3);
  background: var(--accent-soft); border: 1px dashed var(--accent); border-radius: var(--r-2); font-size: var(--s-02); line-height: 1.4; color: var(--ink); }
.gd-vorschlag { border-style: solid; border-color: var(--success); background: color-mix(in srgb, var(--success) 12%, var(--white)); }
.gd-zuordnung { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--a-2); margin: 0; padding: 0; list-style: none; }
.gd-zuordnung li { display: inline-flex; align-items: center; gap: var(--a-1); min-height: 2.5rem; padding: 0 var(--a-3);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-pille); font-size: var(--s-02); font-weight: 700; color: var(--ink); }
.gd-frage { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a-2); margin: 0; padding: var(--a-2) var(--a-3);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-2); font-size: var(--s-03); color: var(--ink); }
.gd-frage .lesung__kennung { margin-left: auto; }
.gd-frage__wer { padding: 0 var(--a-2); border-radius: var(--r-pille); background: var(--accent); color: var(--white); font-size: var(--s-01); font-weight: 700; }
.gd-paket, .zp-probe__liste { display: grid; gap: var(--a-1); margin: 0; padding: 0; list-style: none; }
.gd-paket li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: baseline; gap: var(--a-2); padding: var(--a-2) var(--a-3);
  background: var(--white); border: 1px solid var(--border); border-left: 0.375rem solid var(--accent); border-radius: var(--r-1);
  font-size: var(--s-02); line-height: 1.4; color: var(--ink); box-shadow: var(--shadow-sm); }
.gd-paket li > span:last-child { color: var(--grey); }
.gd-liste { display: grid; gap: var(--a-1); margin: var(--a-2) 0 0; padding: 0; list-style: none; }
.gd-liste li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; align-items: center; gap: var(--a-2);
  padding: var(--a-1) 0; border-top: 1px solid var(--linie); font-size: var(--s-02); color: var(--ink); }
.gd-liste__bereich { justify-self: start; padding: 0 var(--a-2); border-radius: var(--r-pille); background: var(--accent-soft); color: var(--accent); font-size: var(--s-01); font-weight: 700; }
.gd-liste__tun { color: var(--grey); letter-spacing: 0.2em; }
@media (max-width: 40rem) {
  .gd-fakt__daten div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gd-paket li { grid-template-columns: auto minmax(0, 1fr); }
  .gd-paket li > span:last-child { grid-column: 2; }
  .gd-liste li { grid-template-columns: minmax(0, 1fr) auto; }
  .gd-liste__bereich { grid-column: 1 / -1; }
}

.zp-kette { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--a-5); width: 100%; margin: 0; padding: 0; list-style: none; }
.zp-kette__glied { position: relative; display: grid; justify-items: center; align-content: start; gap: var(--a-1); padding: var(--a-3);
  background: var(--white); border: 1px solid var(--border); border-top: 0.375rem solid var(--gt-farbe, var(--accent)); border-radius: var(--r-2);
  text-align: center; font-size: var(--s-02); line-height: 1.4; color: var(--ink); box-shadow: var(--shadow-sm); }
.zp-kette__glied > span:last-child { color: var(--grey); font-size: var(--s-01); hyphens: auto; overflow-wrap: anywhere; }
.zp-kette__glied { min-width: 0; }
.zp-kette__glied--zeit { --gt-farbe: var(--warning); }
.zp-kette__glied--skill { --gt-farbe: var(--accent); }
.zp-kette__glied--aus { --gt-farbe: var(--success); }
.zp-kette__glied--erg { --gt-farbe: var(--dsgvo); }
.zp-kette__z { font-size: var(--s-07); line-height: 1; }
.zp-kette__glied:not(:last-child)::after { content: ""; position: absolute; top: 50%; left: 100%; width: var(--a-5); height: 3px; margin-top: -1.5px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px); }
@media (max-width: 56rem) {
  .zp-kette { grid-template-columns: minmax(0, 1fr); gap: var(--a-4); }
  .zp-kette__glied:not(:last-child)::after { top: 100%; left: 50%; width: 3px; height: var(--a-4); margin: 0 0 0 -1.5px;
    background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 16px); }
}

.zp-bild { width: min(100%, 44rem); }
.zp-tabelle__rahmen { margin-top: var(--a-2); overflow-x: auto; }
.zp-tabelle table { width: 100%; border-collapse: collapse; font-size: var(--s-01); line-height: 1.4; }
.zp-tabelle th { padding: var(--a-1) var(--a-2); text-align: left; color: var(--grey); border-bottom: 2px solid var(--linie); white-space: nowrap; }
.zp-tabelle td { padding: var(--a-2); vertical-align: top; color: var(--ink); border-bottom: 1px solid var(--linie); }
.zp-tabelle code, .zp-paket code, .zp-hook code { font-size: 0.9em; padding: 0 0.3em; border-radius: 4px; background: var(--bg); color: var(--ink); white-space: nowrap; }
.zp-ok { color: var(--ink); font-weight: 700; white-space: nowrap; }

.zp-version { padding: 0 var(--a-2); border-radius: var(--r-pille); background: color-mix(in srgb, var(--success) 16%, var(--white)); font-size: var(--s-01); font-weight: 700; }
.zp-paket__inhalt { display: grid; gap: var(--a-1); margin: var(--a-2) 0 0; padding: 0 0 0 var(--a-4); font-size: var(--s-02); line-height: 1.4; color: var(--ink); }
.zp-paket__rolle { margin-top: var(--a-2) !important; font-size: var(--s-01); font-weight: 700; color: var(--accent); }
.zp-agenten { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--a-2); margin: 0; padding: 0; list-style: none; }
.zp-agenten li { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 var(--a-3); border-radius: var(--r-pille);
  background: var(--accent); color: var(--white); font-size: var(--s-02); font-weight: 700; }

.zp-hook { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--a-3); width: 100%; }
.zp-hook__seite { display: grid; justify-items: center; gap: var(--a-1); padding: var(--a-3); background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-2); font-size: var(--s-02); color: var(--ink); box-shadow: var(--shadow-sm); text-align: center; }
.zp-hook__z { font-size: var(--s-07); line-height: 1; }
.zp-hook__wege { display: grid; gap: var(--a-4); }
.zp-hook__weg { position: relative; margin: 0; padding-bottom: var(--a-2); text-align: center; font-size: var(--s-01); line-height: 1.4; color: var(--ink); }
.zp-hook__weg::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--linie); }
.zp-hook__weg::after { content: ""; position: absolute; bottom: -4.5px; width: 12px; height: 12px; border-radius: 50%; }
.zp-hook__weg--hin::after { left: calc(100% - 12px); background: var(--success); }
.zp-hook__weg--zurueck::after { left: 0; background: var(--dsgvo); }
@media (max-width: 40rem) {
  .zp-hook { grid-template-columns: minmax(0, 1fr); }
}

.zp-probe__still { padding: 0 var(--a-2); border-radius: var(--r-pille); border: 1px solid var(--success); color: var(--ink); font-size: var(--s-01); font-weight: 700; }
.zp-probe__liste { margin-top: var(--a-2); }
.zp-probe__liste li { display: grid; grid-template-columns: 4.5rem 9.5rem minmax(0, 1fr); align-items: baseline; gap: var(--a-2);
  padding: var(--a-1) var(--a-2); border-left: 3px solid var(--linie); font-size: var(--s-02); line-height: 1.4; color: var(--ink); }
.zp-probe__liste time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--grey); }
.zp-probe__ereignis { justify-self: start; padding: 0 var(--a-2); border-radius: var(--r-pille); background: var(--accent-soft); color: var(--accent); font-size: var(--s-01); font-weight: 700; white-space: nowrap; }
.zp-probe__ereignis--frist { background: color-mix(in srgb, var(--warning) 25%, var(--white)); color: var(--ink); }
.zp-probe__ereignis--hoch { background: color-mix(in srgb, var(--error) 22%, var(--white)); color: var(--ink); }
.zp-probe__fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--a-2); margin-top: var(--a-3) !important; }
.zp-probe__los { min-height: 44px; display: inline-flex; align-items: center; gap: var(--a-1); }
.zp-probe__frei { font-size: var(--s-01); font-weight: 700; color: var(--grey); }
@media (max-width: 40rem) {
  .zp-probe__liste li { grid-template-columns: auto minmax(0, 1fr); }
  .zp-probe__liste li > span:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: no-preference) {
  .ablauf--js .is-aktiv .wvm__seite li::after, .ablauf:not(.ablauf--js) .wvm__seite li::after,
  .ablauf--js .is-aktiv .zp-kette__glied::after { animation: wvm-fluss 0.9s linear infinite; }
  .ablauf--js .is-aktiv .gd-paket li, .ablauf--js .is-aktiv .zp-agenten li { opacity: 0; animation: gd-an 420ms ease-out forwards; animation-delay: calc(250ms + var(--i, 0) * 260ms); }
  .ablauf--js .is-aktiv .gd-vorschlag, .ablauf--js .is-aktiv .gd-doppelt { opacity: 0; animation: gd-an 420ms ease-out 900ms forwards; }
  .ablauf--js .is-aktiv .zp-hook__weg--hin::after { animation: zp-hin 2.8s ease-in-out infinite; }
  .ablauf--js .is-aktiv .zp-hook__weg--zurueck::after { animation: zp-zurueck 2.8s ease-in-out 1.4s infinite; }
  .zp-probe.is-spielt .zp-probe__liste li { opacity: 0; animation: zp-zeile 380ms ease-out forwards; animation-delay: calc(200ms + var(--i, 0) * 700ms); }
}
@keyframes wvm-fluss { to { background-position: 16px 0; } }
@keyframes gd-an { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes zp-hin { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 12px); opacity: 0; } }
@keyframes zp-zurueck { 0% { left: calc(100% - 12px); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 0; opacity: 0; } }
@keyframes zp-zeile { from { opacity: 0; transform: translateX(-10px); border-left-color: var(--accent); } to { opacity: 1; transform: none; } }

.er-karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--a-4); margin: var(--a-5) 0 0; padding: 0; list-style: none; }
.er-karten > li { display: grid; }
.er-karte { display: grid; grid-template-rows: auto auto 1fr auto; justify-items: center; gap: var(--a-2); height: 100%; padding: var(--a-5) var(--a-4);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-3, 16px); box-shadow: var(--shadow-sm);
  text-align: center; color: var(--ink); text-decoration: none; transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease; }
.er-karte__bild { width: 7.5rem; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid var(--accent); background: var(--white); }
.er-karte__titel { font-size: var(--s-04); line-height: 1.25; }
.er-karte__text { font-size: var(--s-02); line-height: 1.5; color: var(--grey); }
.er-karte__mehr { align-self: end; padding-top: var(--a-2); font-size: var(--s-02); font-weight: 700; color: var(--accent); }
.er-karte:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) {
  .er-karte:hover { border-color: var(--accent); box-shadow: var(--e-2, 0 4px 14px rgba(20, 37, 58, .18)); }
  .er-karte:hover .er-karte__mehr { text-decoration: underline; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .er-karte:hover { transform: translateY(-4px); }
  .er-karte:hover .er-karte__bild { animation: er-wippen 900ms ease-in-out; }
}
@keyframes er-wippen { 0%, 100% { transform: none; } 30% { transform: rotate(-6deg) scale(1.04); } 60% { transform: rotate(4deg) scale(1.04); } }
@media (max-width: 56rem) { .er-karten { grid-template-columns: minmax(0, 1fr); gap: var(--a-3); } .er-karte { padding: var(--a-4) var(--a-3); } }
