/* Projektseite Lern-Abenteuer.
   Farben aus der Spielwelt (Sonne, Himmel, Wiese, Holz), auf einem kühlen, himmelsblau
   getönten Grund. Display: Fredoka (wie im Spiel), Text: Atkinson Hyperlegible, Kennungen: JetBrains Mono. */

:root {
  --grund: #f5f9fc;
  --flaeche: #ffffff;
  --flaeche-2: #eaf3f9;
  --tinte: #14213d;
  --tinte-2: #4a5873;
  --tinte-3: #5a677f;
  --linie: #d5e2ec;
  --schatten: rgb(20 33 61 / 0.08);

  --koralle: #f2583e;
  --koralle-tief: #c9391f;
  --sonne: #ffb81c;
  --himmel: #62b8e6;
  --wiese: #2f9a50;
  --holz: #d9a066;
  --holz-dunkel: #a86a32;

  /* Status */
  --st-vorgeschlagen: #8a5600;
  --st-vorgeschlagen-grund: #fff2d6;
  --st-freigegeben: #1f7a3d;
  --st-freigegeben-grund: #dcf3e3;
  --st-spaeter: #2a6a99;
  --st-spaeter-grund: #ddeefa;
  --st-abgelehnt: #575f6c;
  --st-abgelehnt-grund: #eceef1;
  --st-arbeit: #8a3fbf;
  --st-arbeit-grund: #f0e3fa;

  --schrift-bild: "Fredoka", "Baloo 2", system-ui, sans-serif;
  --schrift-text: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --schrift-code: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --breite: 1120px;
  --rund: 18px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --grund: #0e1829;
    --flaeche: #16233a;
    --flaeche-2: #1b2b46;
    --tinte: #eef3fa;
    --tinte-2: #b3c0d4;
    --tinte-3: #8f9db3;
    --linie: #2a3c5a;
    --schatten: rgb(0 0 0 / 0.35);
    --koralle: #ff6f55;
    --koralle-tief: #ff8a74;
    --st-vorgeschlagen: #ffc85a;
    --st-vorgeschlagen-grund: #3a2e12;
    --st-freigegeben: #6fdb91;
    --st-freigegeben-grund: #143321;
    --st-spaeter: #8cc8f2;
    --st-spaeter-grund: #16304a;
    --st-abgelehnt: #a3abb8;
    --st-abgelehnt-grund: #262f3d;
    --st-arbeit: #cfa1f2;
    --st-arbeit-grund: #2e1d40;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --grund: #0e1829;
  --flaeche: #16233a;
  --flaeche-2: #1b2b46;
  --tinte: #eef3fa;
  --tinte-2: #b3c0d4;
  --tinte-3: #8f9db3;
  --linie: #2a3c5a;
  --schatten: rgb(0 0 0 / 0.35);
  --koralle: #ff6f55;
  --koralle-tief: #ff8a74;
  --st-vorgeschlagen: #ffc85a;
  --st-vorgeschlagen-grund: #3a2e12;
  --st-freigegeben: #6fdb91;
  --st-freigegeben-grund: #143321;
  --st-spaeter: #8cc8f2;
  --st-spaeter-grund: #16304a;
  --st-abgelehnt: #a3abb8;
  --st-abgelehnt-grund: #262f3d;
  --st-arbeit: #cfa1f2;
  --st-arbeit-grund: #2e1d40;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-family: var(--schrift-bild);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
a { color: var(--koralle-tief); text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--koralle);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--koralle);
  color: #fff;
  font-family: var(--schrift-bild);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--koralle-tief);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.knopf:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--koralle-tief); }
.knopf:disabled { opacity: 0.55; cursor: wait; }

.knopf-zweit {
  background: var(--flaeche);
  color: var(--tinte);
  box-shadow: inset 0 0 0 2px var(--linie), 0 4px 0 var(--linie);
}

.knopf-klein { min-height: 40px; padding: 6px 18px; font-size: 0.95rem; }

.knopf-text {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--koralle-tief);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Kopfleiste ---------- */

.leiste {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--grund) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}

.leiste-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.marke {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tinte);
  text-decoration: none;
  font-family: var(--schrift-bild);
  font-weight: 700;
  font-size: 1.2rem;
}

.marke-zeichen { width: 34px; height: 34px; }

.navi {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.navi a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--tinte-2);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.navi a:hover { background: var(--flaeche-2); color: var(--tinte); }

@media (max-width: 860px) {
  .navi { display: none; }
  .leiste .knopf { margin-left: auto; }
}

/* ---------- Hero ---------- */

.held {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 56px 16px 64px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
}

.augenbraue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--flaeche);
  box-shadow: inset 0 0 0 1px var(--linie);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tinte-2);
}

.punkt {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sonne);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sonne) 30%, transparent);
}

.held h1 {
  margin-top: 18px;
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.einleitung {
  margin-top: 20px;
  max-width: 34em;
  font-size: 1.15rem;
  color: var(--tinte-2);
}

.held-aktionen {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.kennzahlen {
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--linie);
  padding-top: 20px;
}

.kennzahl { display: flex; flex-direction: column-reverse; gap: 2px; }
.kennzahl dd {
  margin: 0;
  font-family: var(--schrift-bild);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kennzahl dt { font-size: 0.85rem; color: var(--tinte-3); line-height: 1.3; }

.held-bild {
  margin: 0;
  aspect-ratio: 520 / 440;
  max-width: 100%;
  border-radius: 32px;
  background:
    radial-gradient(circle at 80% 15%, color-mix(in srgb, var(--sonne) 30%, transparent) 0 18%, transparent 19%),
    linear-gradient(170deg, color-mix(in srgb, var(--himmel) 38%, var(--flaeche)), var(--flaeche-2));
  box-shadow: inset 0 0 0 1px var(--linie);
  overflow: hidden;
}

.held-bild svg { width: 100%; height: 100%; display: block; }

.schwebe-ring { animation: schweben 3.4s ease-in-out infinite; }
.schwebe-dreieck { animation: schweben 4s ease-in-out 0.6s infinite; transform-origin: center; }
.blasen-gruppe { animation: schweben 5s ease-in-out 1s infinite; }

@keyframes schweben {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 860px) {
  .held { grid-template-columns: 1fr; padding-top: 32px; gap: 28px; }
  .held-bild { order: -1; max-height: 340px; }
  .kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Abschnitte ---------- */

.abschnitt {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 72px 16px;
}

.abschnitt-flaeche {
  max-width: none;
  background: var(--flaeche);
  border-block: 1px solid var(--linie);
}

.abschnitt-flaeche > * {
  max-width: var(--breite);
  margin-inline: auto;
}

.abschnitt-kopf { margin-bottom: 36px; max-width: 46em; }
.abschnitt-flaeche > .abschnitt-kopf { margin-inline: auto; margin-bottom: 36px; }
.abschnitt-flaeche > .abschnitt-kopf { max-width: var(--breite); }
.abschnitt-flaeche > .abschnitt-kopf > * { max-width: 46em; }

.etikett {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--koralle-tief);
}

.abschnitt h2 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.unterzeile { margin-top: 14px; color: var(--tinte-2); font-size: 1.1rem; }

.mitte { margin-top: 32px; display: flex; justify-content: center; }

.leer { color: var(--tinte-3); font-style: italic; }

/* ---------- Vision ---------- */

.grundsaetze {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.grundsatz {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 4px solid var(--c);
}

.grundsatz:nth-child(1) { --c: var(--sonne); }
.grundsatz:nth-child(2) { --c: var(--wiese); }
.grundsatz:nth-child(3) { --c: var(--koralle); }
.grundsatz:nth-child(4) { --c: var(--himmel); }

.grundsatz h3 { font-size: 1.3rem; }
.grundsatz p { color: var(--tinte-2); }

@media (max-width: 960px) { .grundsaetze { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grundsaetze { grid-template-columns: 1fr; } }

/* ---------- Versprechen ---------- */

.versprechen-liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.versprechen-punkt {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: var(--rund);
  background: var(--flaeche-2);
}

.versprechen-punkt h3 { font-size: 1.15rem; }
.versprechen-punkt p { color: var(--tinte-2); }

.versprechen-offen {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--linie);
  color: var(--tinte-2);
}

.versprechen-offen h3 { font-size: 1rem; margin-bottom: 6px; color: var(--tinte); }
.versprechen-offen ul { margin: 0; padding-left: 1.2em; }

/* ---------- Lernreise ---------- */

.tabelle-rahmen {
  overflow-x: auto;
  border-radius: var(--rund);
  box-shadow: inset 0 0 0 1px var(--linie);
}

.lernreise {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.lernreise th,
.lernreise td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--linie);
}

.lernreise thead th {
  font-family: var(--schrift-bild);
  font-weight: 600;
  font-size: 1.05rem;
  background: var(--flaeche-2);
}

.lernreise tbody th {
  font-family: var(--schrift-bild);
  font-weight: 600;
  width: 110px;
}

.lernreise td { color: var(--tinte-2); font-variant-numeric: tabular-nums; }
.lernreise tr:last-child th,
.lernreise tr:last-child td { border-bottom: 0; }
.lernreise-level td { font-style: italic; }

/* ---------- Spiele ---------- */

.spiele {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.spiel-karte {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: 24px;
  background: var(--flaeche);
  box-shadow: inset 0 0 0 1px var(--linie), 0 12px 30px -18px var(--schatten);
}

.spiel-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 2.6rem;
  line-height: 1;
}

.spiel-umriss {
  filter: brightness(0);
  margin-right: 0.3em;
}

.spiel-emoji-luecke {
  display: inline-grid;
  place-items: center;
  width: 1.1em;
  height: 1.1em;
  margin-left: 0.1em;
  border: 3px dashed currentColor;
  border-radius: 0.25em;
  font-size: 0.6em;
}

.spiel-bild {
  width: 100%;
  max-width: 100%;
  height: 130px;
  border-radius: 16px;
  background: linear-gradient(color-mix(in srgb, var(--himmel) 26%, var(--flaeche)), var(--flaeche-2));
  padding: 12px;
}

.spiel-karte h3 { font-size: 1.5rem; margin-top: 6px; }
.spiel-karte p { color: var(--tinte-2); }

.uebt { margin-top: auto; padding-top: 8px; font-size: 0.92rem; }
.uebt span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tinte-3);
  margin-right: 6px;
}

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

/* ---------- Karten (Roadmap, Werkstatt) ---------- */

.karte {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border-radius: var(--rund);
  background: var(--flaeche);
  box-shadow: inset 0 0 0 1px var(--linie);
  border-left: 5px solid var(--status-farbe, var(--linie));
}

.abschnitt-flaeche .karte { background: var(--grund); }

.karte h4 { font-size: 1.2rem; }
.karte p { color: var(--tinte-2); }

.karte-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.karte-fuss {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--tinte-3);
}

.karte-fuss code { font-family: var(--schrift-code); font-size: 0.78rem; overflow-wrap: anywhere; }

.kennung {
  font-family: var(--schrift-code);
  font-size: 0.78rem;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--flaeche-2);
  color: var(--tinte-2);
}

.art { color: var(--tinte-3); }

.pille {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pf);
  background: var(--pg);
}

.pille-vorgeschlagen, .status-vorgeschlagen { --pf: var(--st-vorgeschlagen); --pg: var(--st-vorgeschlagen-grund); --status-farbe: var(--st-vorgeschlagen); }
.pille-freigegeben, .status-freigegeben,
.pille-erreicht, .status-erreicht,
.pille-erledigt, .status-erledigt { --pf: var(--st-freigegeben); --pg: var(--st-freigegeben-grund); --status-farbe: var(--st-freigegeben); }
.pille-spaeter, .status-spaeter,
.pille-geplant, .status-geplant,
.pille-offen, .status-offen { --pf: var(--st-spaeter); --pg: var(--st-spaeter-grund); --status-farbe: var(--st-spaeter); }
.pille-in-arbeit, .status-in-arbeit { --pf: var(--st-arbeit); --pg: var(--st-arbeit-grund); --status-farbe: var(--st-arbeit); }
.pille-abgelehnt, .status-abgelehnt { --pf: var(--st-abgelehnt); --pg: var(--st-abgelehnt-grund); --status-farbe: var(--st-abgelehnt); }

.status-abgelehnt h4 { text-decoration: line-through; text-decoration-color: var(--tinte-3); }

/* ---------- Roadmap ---------- */

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.roadmap-spalte { display: flex; flex-direction: column; gap: 14px; }

.roadmap-spalte h3 {
  font-size: 1.1rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--tinte);
}

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

/* ---------- Werkstatt: Ablauf ---------- */

.ablauf {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  counter-reset: schritt;
}

.ablauf li { position: relative; }

.ablauf li + li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 34px;
  width: 18px;
  height: 18px;
  border-top: 3px solid var(--linie);
  border-right: 3px solid var(--linie);
  transform: rotate(45deg);
  z-index: 1;
}

.ablauf-schritt {
  width: calc(100% - 12px);
  margin-inline: 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 16px 18px;
  border: 0;
  border-radius: var(--rund);
  background: var(--flaeche);
  box-shadow: inset 0 0 0 1px var(--linie);
  color: var(--tinte);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ablauf-schritt:hover { box-shadow: inset 0 0 0 2px var(--koralle); }

.ablauf-zahl {
  font-family: var(--schrift-bild);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ablauf-titel { font-family: var(--schrift-bild); font-weight: 600; font-size: 1.1rem; }
.ablauf-text { font-size: 0.85rem; color: var(--tinte-3); }

@media (max-width: 860px) {
  .ablauf { grid-template-columns: 1fr; gap: 10px; }
  .ablauf li + li::before { display: none; }
  .ablauf-schritt { width: 100%; margin: 0; flex-direction: row; align-items: baseline; gap: 12px; }
}

/* ---------- Werkstatt: Reiter ---------- */

.reiter {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--linie);
  margin-bottom: 24px;
}

.reiter-knopf {
  flex: none;
  padding: 10px 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--tinte-2);
  font-family: var(--schrift-bild);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
}

.reiter-knopf[aria-selected="true"] { color: var(--tinte); border-bottom-color: var(--koralle); }

.hinweis {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--flaeche-2);
  color: var(--tinte-2);
  font-size: 0.95rem;
}

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.filter-knopf {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--flaeche);
  box-shadow: inset 0 0 0 1px var(--linie);
  color: var(--tinte-2);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-knopf[aria-pressed="true"] { background: var(--tinte); color: var(--grund); box-shadow: none; }

.karten {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 16px;
  align-items: start;
}

.nutzen strong { color: var(--tinte); }
.verweis { font-size: 0.9rem; font-weight: 700; color: var(--st-freigegeben) !important; }

/* Entscheidung */
.entscheidung { display: flex; flex-direction: column; gap: 8px; }
.entscheidung:empty { display: none; }
.entscheidung { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--linie); }

.notiz-label { font-size: 0.82rem; font-weight: 700; color: var(--tinte-3); }

.notiz-feld,
.einreichen input,
.einreichen textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: var(--grund);
  color: var(--tinte);
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.entscheidung-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.knopf-freigegeben { background: var(--wiese); box-shadow: 0 3px 0 #1f6e38; }
.knopf-spaeter { background: var(--flaeche); color: var(--tinte); box-shadow: inset 0 0 0 2px var(--linie), 0 3px 0 var(--linie); }
.knopf-abgelehnt { background: var(--flaeche); color: var(--tinte-2); box-shadow: inset 0 0 0 2px var(--linie), 0 3px 0 var(--linie); }

.entschieden { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.92rem; }
.notiz { font-style: italic; font-size: 0.92rem; }

.fehlertext { color: var(--koralle-tief) !important; font-weight: 700; font-size: 0.92rem; }

/* Einreichen */
.einreichen {
  margin-top: 28px;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: var(--rund);
  background: var(--flaeche);
  box-shadow: inset 0 0 0 1px var(--linie);
}

.einreichen h3 { font-size: 1.25rem; margin-bottom: 4px; }
.einreichen label { font-size: 0.85rem; font-weight: 700; color: var(--tinte-3); }
.einreichen .knopf { align-self: flex-start; margin-top: 6px; }

.eingaben { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.eingaben:empty { display: none; }
.eingaben h4 { font-size: 1rem; }
.eingabe { padding: 10px 14px; border-radius: 12px; background: var(--flaeche-2); }
.eingabe p { color: var(--tinte-2); font-size: 0.95rem; }

/* Pläne */
.plaene { display: flex; flex-direction: column; gap: 16px; }

.plan {
  border-radius: var(--rund);
  background: var(--flaeche);
  box-shadow: inset 0 0 0 1px var(--linie);
}

.plan summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
}

.plan summary::-webkit-details-marker { display: none; }
.plan summary h4 { font-size: 1.3rem; }
.plan summary p { color: var(--tinte-2); max-width: 60em; }

.plan-fortschritt { font-size: 0.88rem; font-weight: 700; color: var(--koralle-tief); }
.plan-fortschritt::after { content: " · aufklappen"; font-weight: 400; color: var(--tinte-3); }
.plan[open] .plan-fortschritt::after { content: " · zuklappen"; }

.schritte {
  margin: 0;
  padding: 0 22px 8px 56px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.schritt::marker { font-family: var(--schrift-bild); font-weight: 700; color: var(--tinte-3); }
.schritt-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.schritt p { color: var(--tinte-2); font-size: 0.97rem; max-width: 60em; }

.plan-liste { padding: 8px 22px 20px; }
.plan-liste h5 { font-size: 1rem; }
.plan-liste ul { margin: 6px 0 0; padding-left: 22px; color: var(--tinte-2); }
.plan-liste .antwort { margin: 4px 0 8px; color: var(--tinte); }

/* ToDos */
.todo-spalten {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.todo-spalte { display: flex; flex-direction: column; gap: 10px; }
.todo-spalte h3 { font-size: 1.05rem; padding-bottom: 8px; border-bottom: 2px solid var(--tinte); }

.todo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--flaeche);
  box-shadow: inset 0 0 0 1px var(--linie);
}

.todo p { font-size: 0.97rem; }
.status-erledigt.todo p { color: var(--tinte-3); text-decoration: line-through; }

.wer { font-weight: 700; font-size: 0.8rem; }
.wer-claude { color: var(--st-arbeit); }
.wer-alexander { color: var(--koralle-tief); }

@media (max-width: 860px) { .todo-spalten { grid-template-columns: 1fr; } }

/* Features */
.bereich {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tinte-2);
}

.karte-feature { border-left-color: var(--wiese); }

/* Verlauf */
.verlauf {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.verlauf li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--linie);
}

.verlauf-datum { font-family: var(--schrift-code); font-size: 0.85rem; color: var(--tinte-3); padding-top: 2px; }
.verlauf strong { font-family: var(--schrift-bild); font-weight: 600; font-size: 1.1rem; margin-right: 8px; }
.verlauf p { color: var(--tinte-2); }

@media (max-width: 560px) { .verlauf li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Fuß ---------- */

.fuss { border-top: 1px solid var(--linie); background: var(--flaeche); }

.fuss-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 28px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--tinte-2);
  font-size: 0.95rem;
}

.ladefehler {
  max-width: var(--breite);
  margin: 16px auto;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--st-vorgeschlagen-grund);
  color: var(--tinte);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .schwebe-ring, .schwebe-dreieck, .blasen-gruppe { animation: none; }
  .knopf { transition: none; }
}

/* Welten und Pfade: Diagramm aus fortschritt.js (Z-073). Farben nur über Tokens; die Tönung je Pfad mischt sich mit der Fläche. */
.pfade-diagramm { padding: 8px; }
.pfade-svg { display: block; width: 100%; height: auto; font-family: var(--schrift-text); }
.pfade-spalte { fill: var(--flaeche); }
.pfade-spalte.zwei { fill: var(--flaeche-2); }
.pfade-kopf { font-family: var(--schrift-bild); font-weight: 600; font-size: 17px; fill: var(--tinte); }
.pfade-label { font-family: var(--schrift-bild); font-weight: 600; font-size: 16px; fill: var(--tinte); }
.pfade-label.klein { font-weight: 400; font-size: 13px; fill: var(--tinte-2); }
.pfade-trenner { stroke: var(--linie); stroke-width: 1; }
.pfade-knoten rect {
  fill: color-mix(in srgb, hsl(var(--h) 70% 52%) 20%, var(--flaeche));
  stroke: hsl(var(--h) 55% 48%);
  stroke-width: 2;
}
.pfade-knoten text { font-size: 13px; font-weight: 600; fill: var(--tinte); }
.pfade-pfeil { fill: none; stroke: hsl(var(--h) 55% 48%); stroke-width: 2; }
.pfade-pfeil.zurueck { stroke-dasharray: 5 4; }
.pfade-pfeilspitze { fill: var(--tinte-2); }
