/* Bereich aufraeumen: eigene Regeln dieses Bereichs, nur Tokens und Bausteine der Grundlage (--ps-…, .ps-…). */

.a-seite { display: grid; gap: var(--ps-abst-i); min-width: 0; max-width: 2200px; padding: var(--ps-abst-m) var(--ps-seitenrand) calc(var(--ps-abst-g) * 2); }
.a-seite > * { min-width: 0; }
.a-unter { margin: 0; color: var(--ps-tinte-2); font-size: var(--ps-t-text); max-width: 70ch; }
.a-laden { display: grid; gap: var(--ps-abst-k); color: var(--ps-tinte-2); }
.a-laden .ps-laden { width: min(320px, 70%); }
.a-block { display: grid; gap: var(--ps-abst-m); align-content: start; }
@media (min-width: 1100px) {
  .a-uebersicht { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); align-items: start; }
  .a-uebersicht > header { grid-column: 1 / -1; }
}

/* Übersicht: Stapel als Liste mit Nummer */
.a-nr { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--ps-r-rund); background: var(--ps-blatt-2);
  border: 1px solid var(--ps-linie-stark); font: 400 var(--ps-t-zeile)/1 var(--ps-f-titel); color: var(--ps-tinte); font-variant-numeric: tabular-nums; }
.a-stapel-zeile { color: inherit; text-decoration: none; }
.a-stapel-zeile:hover .ps-zeile-text > b { color: var(--ps-kaffee); }
.a-zahlen { display: flex; flex-wrap: wrap; gap: var(--ps-abst-h) var(--ps-abst-m); justify-content: flex-end; }
.a-zahl { color: var(--ps-tinte-2); font-size: var(--ps-t-unter); white-space: nowrap; }
.a-zahl b { color: var(--ps-tinte); font-variant-numeric: tabular-nums; font-weight: 600; }
.a-pfeil { color: var(--ps-tinte-3); }
.a-saetze { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ps-abst-k); max-width: 75ch; }
.a-saetze li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--ps-abst-k); align-items: start; color: var(--ps-tinte-2); }
.a-saetze .ps-ic { color: var(--ps-kaffee); }
.a-saetze b { color: var(--ps-tinte); }
.a-regeln a:not(.ps-knopf) { color: var(--ps-kaffee); }

/* Ein Stapel */
.a-arten { margin-top: calc(var(--ps-abst-k) * -1); }
.a-aktion { display: grid; gap: var(--ps-abst-k); padding: var(--ps-abst-m) var(--ps-abst-i); border-radius: var(--ps-r-karte); }
.a-aktion p { margin: 0; }
.a-fortschritt { color: var(--ps-tinte-2); font-size: var(--ps-t-unter); }
.a-fortschritt:empty { display: none; }
.a-faelle { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ps-abst-m); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .a-faelle { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1800px) { .a-faelle { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.a-fall { display: grid; align-content: start; gap: var(--ps-abst-k); min-width: 0; padding: var(--ps-abst-m); border-radius: var(--ps-r-innen); }
.a-fall-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--ps-abst-h) var(--ps-abst-m); }
.a-fall-titel { font: 400 var(--ps-t-zeile)/1.3 var(--ps-f-titel); overflow-wrap: anywhere; }
.a-gruende { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--ps-abst-h); }
.a-gruende .ps-hinweis { white-space: normal; }
.a-vergleich { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--ps-abst-m); align-items: start; }
.a-vergleich dl { display: grid; gap: var(--ps-abst-h); margin: 0; padding: var(--ps-abst-k) var(--ps-abst-m); border-radius: var(--ps-r-marke); min-width: 0; }
.a-seite-vorher { background: var(--ps-blatt-2); color: var(--ps-tinte-2); }
.a-seite-nachher { background: var(--ps-gut-zart); color: var(--ps-tinte); }
.a-vergleich dl > div { display: grid; gap: 0; min-width: 0; }
.a-vergleich dt { font-size: var(--ps-t-klein); color: var(--ps-tinte-2); }
.a-vergleich dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.a-pfeil-gross { align-self: center; color: var(--ps-tinte-3); }
@media (max-width: 520px) {
  .a-vergleich { grid-template-columns: minmax(0, 1fr); gap: var(--ps-abst-k); }
  .a-pfeil-gross { justify-self: center; transform: rotate(90deg); }
}
.a-folge { margin: 0; color: var(--ps-tinte); max-width: 70ch; }
.a-ziele { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--ps-abst-m); }
.a-ziel { display: inline-flex; align-items: center; gap: var(--ps-abst-h); min-height: 44px; padding: 0; border: 0; background: none; color: var(--ps-kaffee);
  font: inherit; font-size: var(--ps-t-unter); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; overflow-wrap: anywhere; }
.a-ziel .ps-ic { flex: none; }
.a-ziel:hover { color: var(--ps-tinte); }
.a-gruppe { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.a-gruppe li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--ps-abst-k); border-top: 1px solid var(--ps-linie); }
.a-gruppe li:first-child { border-top: 0; }
.a-mehr { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ps-abst-m); margin: 0; }

/* Verlauf */
.a-lauf { grid-template-columns: auto minmax(0, 1fr) auto; }
@media (max-width: 520px) { .a-lauf { grid-template-columns: auto minmax(0, 1fr); } .a-lauf .ps-zeile-rechts { grid-column: 2; justify-content: flex-start; } }
.a-lauf [data-stand] { color: var(--ps-tinte-2); font-size: var(--ps-t-klein); }
.a-lauf [data-stand]:empty { display: none; }
.a-arten .ps-pille { text-decoration: none; }

/* Dichte Zeilen der sicheren Fälle */
.a-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--ps-abst-h) var(--ps-abst-m); padding: var(--ps-abst-k) var(--ps-abst-m); }
.a-zeile:focus-visible, .a-fall:focus-visible { outline: 2px solid var(--ps-kaffee); outline-offset: -2px; }
.a-zeile-text { min-width: 0; overflow-wrap: anywhere; }
.a-zeile-text > b { font-weight: 600; }
.a-pfeil-klein { color: var(--ps-tinte-3); vertical-align: middle; }
.a-leise { display: block; margin: 0; color: var(--ps-tinte-2); font-size: var(--ps-t-unter); }
.a-zeile .a-ziele { justify-content: flex-end; }
@media (max-width: 520px) { .a-zeile { grid-template-columns: minmax(0, 1fr); } .a-zeile .a-ziele { justify-content: flex-start; } }
