/*
 * Inhaltsbausteine.
 * Die Karte ist der wichtigste Baustein: Bühne oben, Akzentlinie als
 * Trennung, Titel in Violett, ein Satz Erklärung, ein Textlink. Keine Schatten.
 */

/* ---------- Figurenbühne ---------- */
.buehne {
  background: var(--buehne-ton, var(--violet-10));
  border-radius: var(--radius-flaeche) var(--radius-flaeche) 0 0;
  aspect-ratio: 4 / 3;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 24px 24px 0;
  overflow: hidden;
}
.buehne img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.buehne--breit { aspect-ratio: 16 / 9; border-radius: var(--radius-flaeche); }

/* ---------- Karte ---------- */
.karten { display: grid; gap: var(--s-4); list-style: none; margin: 0; padding: 0; }
@media (min-width: 34rem) { .karten { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 54rem) { .karten { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 72rem) { .karten { grid-template-columns: repeat(4, 1fr); } }

.karte {
  display: flex; flex-direction: column;
  border: 1px solid var(--linie-fein);
  border-radius: var(--radius-flaeche);
  background: var(--weiss);
  overflow: hidden;
}
.karte__linie { height: 3px; background: var(--akzent-ton, var(--violet-100)); }
.karte__text { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.karte__titel { font-size: 1.05rem; font-weight: 600; color: var(--violet-100); margin: 0; line-height: 1.2; }
.karte__titel a { color: inherit; text-decoration: none; }
.karte__titel a:hover { text-decoration: underline; }
.karte__satz { font-size: var(--fs-s); color: var(--text-leise); margin: 0; max-width: none; }
.karte__link { margin-top: auto; font-size: var(--fs-s); font-weight: 600; text-decoration: none; }
.karte__link:hover { text-decoration: underline; }

/* ---------- Chip ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: var(--s-2);
  background: var(--chip-ton, var(--violet-10));
  border: 1px solid var(--linie-fein);
  border-radius: 999px; padding: 0.25rem 0.9rem 0.25rem 0.3rem;
  font-size: var(--fs-s); font-weight: 600; text-decoration: none; color: var(--text);
}
.chip:hover { border-color: var(--violet-30); }
.chip img { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; flex: none; }
.chip--schlicht { padding: 0.25rem 0.85rem; background: var(--violet-10); color: var(--violet-100); font-size: var(--fs-s); }

/* ---------- Filterleiste in Übersichten ---------- */
/* Eine Auswahl je Übersicht: der gewählte Wert ist kein Link mehr, sondern
   Zustand — »Alle« führt zurück. Die Zahl sagt vor dem Klick, was kommt. */
.filter { margin: 0 0 var(--s-6); display: grid; gap: var(--s-3); }
.filter__marke {
  margin: 0; font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-leise);
}
.chip--filter {
  padding: 0.3rem 0.5rem 0.3rem 0.9rem; background: var(--grund); color: var(--text);
  max-width: 100%; /* lange Merkmalsnamen brechen um, statt die Seite breiter zu machen */
}
.filter__name { min-width: 0; }
a.chip--filter:hover { background: var(--violet-10); border-color: var(--violet-30); }
.chip--filter.is-gewaehlt {
  background: var(--violet-100); border-color: var(--violet-100); color: #fff;
}
.filter__zahl {
  font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--violet-10); color: var(--violet-100);
  border-radius: 999px; padding: 0.05rem 0.5rem;
}
.chip--filter.is-gewaehlt .filter__zahl { background: rgba(255, 255, 255, 0.22); color: #fff; }
/* Mehrere Filter: Auch die gewählte Pille ist ein Link, sie hebt die Wahl auf. */
.filter--zeilen { gap: var(--s-4); }
.filter__zeile { display: grid; gap: var(--s-2); }
a.chip--filter.is-gewaehlt:hover { background: #3f145c; border-color: #3f145c; color: #fff; }
.filter__zurueck { margin: 0; }
/* Desktop: mehrere Filter nebeneinander, ein einzelner nimmt die ganze Breite.
   Darunter Angebote und Personen, ein Drittel zu zwei Dritteln. Ohne --zwei gibt
   es nur einen Teil, und der nimmt die ganze Breite. */
@media (min-width: 62rem) {
  .filter--nebeneinander { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-7); align-items: start; }
  .filter__zurueck { grid-column: 1 / -1; }
  .uebersicht-spalten--zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-7); align-items: start; }
  .uebersicht-spalten--zwei .karten { grid-template-columns: minmax(0, 1fr); }
}
.uebersicht-teil { margin-bottom: var(--s-8); scroll-margin-top: var(--s-7); }
.uebersicht-teil .karten { margin-top: var(--s-4); }

/* ---------- Hero ---------- */
.hero { background: var(--grund-warm); border-radius: var(--radius-flaeche); overflow: hidden; margin-top: var(--s-6); }
.hero__inner { display: grid; gap: var(--s-5); align-items: center; padding: var(--s-7) var(--s-6) 0; }
@media (min-width: 54rem) { .hero__inner { grid-template-columns: 1fr 1fr; padding: var(--s-8) var(--s-7) 0; } }
.hero__text { padding-bottom: var(--s-7); }
.hero__text h1 { margin-bottom: var(--s-4); }
.hero__aktion { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-top: var(--s-5); }
.hero__bild { align-self: end; }
.hero__bild img { display: block; width: 100%; height: auto; }
/* Die Bayernkarte hängt in beiden Fällen über dem Raster statt darin: So
   zählt sie für die Höhe des Feldes nicht mit — die bestimmt der Text — und
   wird trotzdem nie beschnitten, weil »contain« sie immer ganz hineinrechnet.
   align-self: stretch muss sein, weil die Figurenbühne mit »end« auf der
   Kante steht und das im Raster auch für ein absolut gesetztes Kind gilt.
   Ohne eigene Höhe gäbe das <picture> die Feldhöhe nicht an das Bild weiter. */
.hero { position: relative; }
.hero__inner { position: relative; z-index: 1; }
.hero__bild--karte {
  position: absolute; inset: 0; margin: 0; padding: 0; box-sizing: border-box;
  align-self: stretch; justify-self: stretch; pointer-events: none;
}
.hero__bild--karte picture { display: block; width: 100%; height: 100%; }
.hero__bild--karte img {
  width: 100%; height: 100%; max-width: none; margin: 0;
  object-fit: contain; opacity: 0.1; /* auf dem Handy liegt sie blass hinter dem Text */
}

/* Nebeneinander ist Platz: Dann steht sie sichtbar in der rechten Hälfte,
   der Text bleibt links davon. */
@media (min-width: 54rem) {
  .hero__bild--karte { inset: 0 0 0 50%; padding: var(--s-6) var(--s-7) var(--s-6) 0; }
  .hero__bild--karte img { opacity: 1; }
}

/* ---------- Assistenten-Band ---------- */
.assistent { background: var(--violet-100); color: var(--weiss); border-radius: var(--radius-flaeche); padding: var(--s-6); margin-block: var(--s-8); }
/* Direkt unter einem Abschnitt (Startseite: unter den acht Schritten) reicht dessen Innenabstand,
   sonst stehen 8rem dazwischen (Thomas Ortlepp, #2515, 17.11.2026). */
.abschnitt + .assistent, .abschnitt + .suchfeld { margin-top: 0; }
.assistent__inner { display: grid; gap: var(--s-4); align-items: center; }
@media (min-width: 54rem) { .assistent__inner { grid-template-columns: 20rem 1fr; } }
.assistent h2 { color: var(--weiss); font-size: var(--fs-l); margin: 0 0 var(--s-2); }
.assistent p { color: rgba(255,255,255,0.82); font-size: var(--fs-s); margin: 0; max-width: none; }
.assistent__feld { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.assistent__feld input {
  flex: 1 1 16rem; font: inherit; padding: 0.6rem 0.85rem;
  border: 0; border-radius: var(--radius-element); background: var(--weiss); color: var(--text);
}
.assistent__feld .btn { background: var(--weiss); color: var(--violet-100); border-color: var(--weiss); }
.assistent__dialog { min-width: 0; }
.assistent__inner:has(.assistent__ausgabe:not([hidden])) { align-items: start; }
.assistent .assistent__hinweis { margin-top: var(--s-3); font-size: var(--fs-xs); }
.assistent__hinweis a { color: var(--weiss); }
/* Antwort auf weißer Karte */
.assistent__ausgabe {
  margin-top: var(--s-4); padding: var(--s-4) var(--s-5);
  background: var(--weiss); color: var(--text); border-radius: var(--radius-element); outline: none;
}
.assistent .assistent__ausgabe p { color: var(--text); font-size: var(--fs-m); }
.assistent__ausgabe a { color: var(--violet-100); }
.assistent__text > * + * { margin-top: var(--s-3); }
.assistent__text ul { margin-block: 0; padding-left: 1.25rem; }
.assistent .assistent__warten { display: flex; align-items: center; gap: var(--s-2); color: var(--text-leise); font-size: var(--fs-s); }
.assistent__warten span {
  flex: none; width: 1rem; height: 1rem; border-radius: 50%;
  border: 2px solid var(--violet-30); border-top-color: var(--violet-100);
  animation: assistent-drehen 0.9s linear infinite;
}
@keyframes assistent-drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .assistent__warten span { animation-duration: 3s; } }
.assistent .assistent__fehler { color: var(--text); font-size: var(--fs-s); }
.assistent .assistent__quellen-titel { margin-top: var(--s-4); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-leise); }
.assistent__quellen { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.assistent__quellen a {
  display: flex; flex-direction: column; gap: 0.15rem; height: 100%; padding: var(--s-2) var(--s-3);
  border: 1px solid var(--violet-30); border-radius: var(--radius-element); text-decoration: none; font-size: var(--fs-s);
}
.assistent__quellen a:hover { background: var(--violet-10); }
.assistent__quellen span { color: var(--text-leise); font-size: var(--fs-xs); }
.assistent__fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--linie-fein); }
.assistent .assistent__bewertung { display: flex; align-items: center; gap: var(--s-1); font-size: var(--fs-s); color: var(--text-leise); }
.assistent__daumen {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; cursor: pointer;
  color: var(--violet-100); background: none; border: 0; border-radius: var(--radius-element);
}
.assistent__daumen:hover { background: var(--violet-10); }
.assistent__daumen[data-wert="nein"] svg { transform: scaleY(-1); }
.assistent__wort {
  font: inherit; font-size: var(--fs-s); padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--violet-100); text-decoration: underline;
}
.assistent__rueckfrage { margin-top: var(--s-4); }
.assistent .assistent__rueckfrage p { font-weight: 600; font-size: var(--fs-s); margin-bottom: var(--s-2); }
.assistent__wahl { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-2); }
.assistent__wahl button {
  font: inherit; font-size: var(--fs-s); cursor: pointer; padding: 0.25rem 0.75rem; border-radius: 999px;
  color: var(--violet-100); background: var(--violet-10); border: 1px solid var(--violet-30);
}
.assistent__wahl button:hover { border-color: var(--violet-100); }
.assistent__wahl button[aria-pressed="true"] { background: var(--violet-100); border-color: var(--violet-100); color: var(--weiss); }
.assistent__rueckfrage input {
  width: 100%; font: inherit; font-size: var(--fs-s); padding: 0.45rem 0.7rem;
  border: 1px solid var(--linie-fein); border-radius: var(--radius-element); color: var(--text); background: var(--weiss);
}
.assistent__ausgabe > .btn { margin-top: var(--s-4); background: var(--violet-100); color: var(--weiss); border-color: var(--violet-100); }

/* ---------- Abschnittskopf ---------- */
.kopfzeile { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-4); }
.kopfzeile h2 { margin: 0; }
/* Kleine Zeile unter einer Überschrift („auf dem Weg zur Landesstellenplanung“, Rolf 30.11.2026) */
.titel-unterzeile { margin: var(--s-2, 0.5rem) 0 0; font-size: var(--fs-s); color: var(--text-leise); max-width: none; }
h1 + .titel-unterzeile { margin-top: calc(-1 * var(--s-3, 0.75rem)); margin-bottom: var(--s-4, 1.5rem); }


/* ---------- Impulsfragen ---------- */
.raster { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
.rasterblock { border-top: 2px solid var(--akzent-ton, var(--violet-100)); padding-top: var(--s-4); }
.rasterblock__kopf { display: flex; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-2); }
.rasterblock__n { font-size: 1.1rem; font-weight: 600; color: var(--violet-100); font-variant-numeric: tabular-nums; }
.rasterblock__titel { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.rasterblock__schritt { font-size: 1.05rem; font-weight: 600; margin: 0 0 var(--s-3); }
.fragen { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: grid; gap: var(--s-2); }
.fragen li { padding-left: var(--s-4); border-left: 2px solid var(--violet-30); font-size: var(--fs-s); }

/* ---------- Liste mit Trennlinien ---------- */
.liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie-fein); }
.liste > li {
  border-bottom: 1px solid var(--linie-fein);
  padding: var(--s-4) var(--s-3);
  display: grid; gap: var(--s-1);
  border-left: 3px solid transparent;
}
.liste > li:hover { background: var(--bg-zart, #fdfcfa); border-left-color: var(--violet-30); }
.liste :is(h2, h3) { margin: 0; font-size: var(--fs-l); font-weight: 600; line-height: 1.25; }
/* Liste als Teil eines Abschnitts (Titel h3 unter einer h2, etwa Rechtliche Grundlagen):
   eine Stufe kleiner, Fließtextgröße wie die Namen der Ansprechpersonen. */
.liste h3 { font-size: var(--fs-m); }
.liste :is(h2, h3) a { color: var(--text); text-decoration: none; }
.liste :is(h2, h3) a:hover { color: var(--violet-100); text-decoration: underline; }
.liste p { margin: 0; font-size: var(--fs-s); color: var(--text-leise); max-width: 46rem; }

/* ---------- Meta-Zeile ---------- */
.meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--fs-s); color: var(--text-leise); margin-bottom: var(--s-4); }

/* ---------- PDF-Knopf ---------- */

/* ---------- Aktuelles ---------- */
/* Nach dem Baustein »Aktuelles« im Design-System: die erste Meldung groß, die
   Spalten oben ausgerichtet — »Weiterlesen« folgt dem Text, statt ans Ende der
   Spalte zu rutschen. Über den Fotos liegt Violett mit 15 Prozent Deckkraft. */
.artikel { display: grid; gap: var(--s-6) 28px; align-items: start; list-style: none; margin: 0; padding: 0; }
@media (min-width: 48rem) { .artikel { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 62rem) { .artikel { grid-template-columns: 1.4fr 1fr 1fr; } }

.artikel__eintrag { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.artikel__eintrag--gross { gap: 14px; }
.artikel__bild { position: relative; display: block; border-radius: var(--radius-flaeche); overflow: hidden; background: var(--violet-10); }
.artikel__bild::after { content: ""; position: absolute; inset: 0; background: var(--violet-100); opacity: 0.15; pointer-events: none; }
.artikel__bild img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.artikel__eintrag--gross .artikel__bild img { aspect-ratio: 16 / 10; }
.artikel__platzhalter { display: block; aspect-ratio: 4 / 3; background: var(--violet-10); }
.artikel__eintrag--gross .artikel__platzhalter { aspect-ratio: 16 / 10; }

.artikel__meta { display: flex; align-items: center; gap: var(--s-3); margin: 0; font-size: 0.8125rem; color: var(--text-leise); max-width: none; }
.artikel__meta .chip--schlicht { padding: 3px 12px; border: 0; border-radius: 6px; font-size: inherit; font-weight: 600; }
.artikel__titel { font-size: 1.1875rem; font-weight: 600; margin: 0; line-height: 1.25; }
.artikel__eintrag--gross .artikel__titel { font-size: 1.5rem; line-height: 1.2; }
.artikel__titel a { color: var(--text); text-decoration: none; }
.artikel__titel a:hover { color: var(--violet-100); text-decoration: underline; }
.artikel__text { font-size: var(--fs-s); color: var(--text-leise); margin: 0; max-width: none; text-wrap: pretty; }
.artikel__link { font-size: var(--fs-s); font-weight: 600; text-decoration: none; }
.artikel__link:hover { text-decoration: underline; }




/* ---------- Das Verfahren ---------- */
.verfahren { margin-bottom: var(--s-8); }

/* Phasenband */
.phasenband { display: grid; gap: var(--s-2); grid-template-columns: 3fr 4fr 1fr; margin-bottom: var(--s-5); }
.phasenband__feld {
  border-radius: var(--radius-element); padding: var(--s-2) var(--s-3);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; text-align: center; color: #fff;
}
.phasenband__feld--stellenplanung { color: var(--schritt-4-auf); } /* Weiß auf Orange: 2,3:1 */
.phasenband__feld--voraussetzung  { background: var(--phase-voraussetzung); }
.phasenband__feld--stellenplanung { background: var(--phase-stellenplanung); }
.phasenband__feld--umsetzung      { background: var(--phase-umsetzung); }

/* Achse — Beschriftung und Icon stehen über den Kreisen, alle gleich */
.achse { position: relative; }
.achse__reihe {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: var(--s-1);
  align-items: end;
}
/* Verbindung von jedem Kreis zum nächsten — ein Verlauf zwischen beiden Farben.
   Jede Station zeichnet ihr eigenes Stück; so bleibt die Linie auch richtig,
   wenn die Achse auf zwei Reihen umbricht. Der nächste Kreis deckt das Ende ab. */
.achse__station::after {
  content: ""; position: absolute; z-index: -1;
  bottom: calc(1.05rem - 2px); height: 4px;
  left: 50%; width: calc(100% + var(--s-1));
  /* Links und rechts die reinen Farben, gewechselt wird nur im mittleren Drittel */
  background: linear-gradient(to right,
    var(--ton) 35%, var(--ton-naechster, var(--ton)) 65%);
}
.achse__station:last-child::after { display: none; }
.achse__station { position: relative; z-index: 1; min-width: 0; }
.achse__knopf {
  font: inherit; background: none; border: 0; padding: 0 var(--s-1); cursor: pointer;
  display: grid; justify-items: center; gap: var(--s-2); width: 100%;
}
.achse__wort {
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.2; text-align: center;
  color: var(--text-leise); max-width: 16ch;
  /* Getrennt wird nur an den Wortfugen aus inc/typografie.php */
  hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal;
  transition: color .2s ease;
}
.achse__icon { width: 2.9rem; height: 2.9rem; display: block; opacity: .55; transition: opacity .2s ease, transform .2s ease; }
.achse__punkt {
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--grund); border: 2.5px solid var(--ton); color: var(--ton-text, var(--ton));
  display: grid; place-items: center;
  font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 5px var(--grund);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
/* Überfahren sieht aus wie Auswählen: Der Kreis füllt sich, alles wird etwas
   größer. Nur bei echtem Zeiger — auf Touch-Geräten bliebe der Zustand hängen.
   Die Beschriftung bleibt normal stark, sonst springt beim Überfahren der Text. */
@media (hover: hover) {
  .achse__knopf:hover .achse__punkt { background: var(--ton-fuell, var(--ton)); color: var(--ton-auf, #fff); transform: scale(1.14); }
  .achse__knopf:hover .achse__icon  { opacity: 1; transform: scale(1.06); }
  .achse__knopf:hover .achse__wort  { color: var(--ton-text, var(--ton)); }
}
/* Tastatur: dieselbe Rückmeldung beim Fokus, dazu ein Ring um den Kreis */
.achse__knopf:focus-visible { outline: none; }
.achse__knopf:focus-visible .achse__punkt {
  background: var(--ton-fuell, var(--ton)); color: var(--ton-auf, #fff); transform: scale(1.14);
  box-shadow: 0 0 0 4px var(--grund), 0 0 0 6px var(--ton);
}
.achse__knopf:is([aria-selected="true"], [aria-current="step"]) .achse__icon { opacity: 1; transform: scale(1.06); }
.achse__knopf:is([aria-selected="true"], [aria-current="step"]) .achse__wort { color: var(--ton-text, var(--ton)); font-weight: 700; }
.achse__knopf:is([aria-selected="true"], [aria-current="step"]) .achse__punkt { background: var(--ton-fuell, var(--ton)); color: var(--ton-auf, #fff); transform: scale(1.14); }

/* Trichter vom gewählten Schritt zur Erklärung */
.trichter { height: 3.2rem; color: var(--ton-hell, var(--violet-10)); transition: color .25s ease; }
.trichter svg { display: block; width: 100%; height: 100%; }
/* Die Bewegung der Form steuert verfahren.js per <animate> — auch in Safari. */

/* Erklärung */
.tafeln { display: grid; gap: var(--s-3); }
.tafel {
  display: grid; gap: var(--s-4); align-items: start;
  background: var(--ton-hell); border-left: 4px solid var(--ton);
  border-radius: 0 var(--radius-flaeche) var(--radius-flaeche) 0;
  padding: var(--s-5) var(--s-6);
}
@media (min-width: 40rem) { .tafel { grid-template-columns: auto 1fr; } }
.tafel__icon { width: 4rem; height: 4rem; flex: none; }
.tafel__zaehler {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ton-text, var(--ton)); margin: 0 0 var(--s-1);
}
.tafel__titel { font-size: var(--fs-xl); margin: 0 0 var(--s-2); }
.tafel__satz { margin: 0 0 var(--s-4); max-width: 46rem; }
.tafel__fuss { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; margin: 0 0 var(--s-4); font-size: var(--fs-xs); max-width: none; }
.tafel__phase { font-weight: 700; letter-spacing: 0.06em; padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--ton-fuell, var(--ton)); color: var(--ton-auf, #fff); }
.tafel__wer { color: var(--text-leise); }
.tafel .btn { background: var(--ton-fuell, var(--ton)); border-color: var(--ton-fuell, var(--ton)); color: var(--ton-auf, #fff); }
.tafel .btn:hover { filter: brightness(1.12); }

/* Ohne JavaScript stehen alle Tafeln untereinander; mit JS nur die gewählte */
.verfahren--bereit .tafel[hidden] { display: none; }
.verfahren:not(.verfahren--bereit) .trichter { display: none; }

/* Tablet und Handy: statt der Achse eine senkrechte Zeitleiste mit allen acht Schritten */
@media (max-width: 55.99rem) {
  .phasenband, .achse, .trichter { display: none; }
  .tafeln { gap: 0; margin-top: var(--s-6); }
  .tafel {
    position: relative;
    grid-template-columns: minmax(0, 1fr);   /* Icon über dem Text, wie auf dem Handy */
    margin: 0 0 var(--s-5) 2.9rem;
    border-left: 0; border-radius: var(--radius-flaeche);
    padding: var(--s-4) var(--s-4) var(--s-5);
  }
  .tafel__icon  { width: 2.8rem; height: 2.8rem; }
  .tafel__titel { font-size: var(--fs-l); }
  /* Nummer auf der Schiene */
  .tafel::before {
    content: attr(data-nr);
    position: absolute; left: -2.9rem; top: var(--s-4);
    width: 2.1rem; height: 2.1rem; border-radius: 50%;
    background: var(--ton-fuell, var(--ton)); color: var(--ton-auf, #fff);
    display: grid; place-items: center;
    font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums;
  }
  /* Schiene zum nächsten Schritt, im Verlauf zwischen beiden Farben */
  .tafel::after {
    content: ""; position: absolute; width: 4px; border-radius: 2px;
    left: calc(-2.9rem + 1.05rem - 2px);
    top: calc(var(--s-4) + 2.1rem);
    bottom: calc(-1 * (var(--s-5) + var(--s-4)));
    background: linear-gradient(to bottom,
      var(--ton) 35%, var(--ton-naechster, var(--ton)) 65%);
  }
  .tafel:last-child::after { display: none; }
}

/* Icon im Schrittkopf */
.schrittkopf { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-3); }
.schrittkopf__icon { width: 4.5rem; height: 4.5rem; flex: none; }
.schrittkopf .marke { margin-bottom: var(--s-1); }
.schrittkopf h1 { margin: 0; }
@media (max-width: 34rem) { .schrittkopf__icon { width: 3rem; height: 3rem; } }

/* ---------- Seitenkopf: Kapitelmarke und PDF-Knopf in einer Zeile ---------- */
.kopfleiste { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-3); }
.kopfleiste .marke { margin: 0; }
.pdf-knopf {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--fs-xs); font-weight: 600; line-height: 1; white-space: nowrap;
  color: var(--violet-100); text-decoration: none;
  padding: 0.4rem 0.7rem; border: 1px solid var(--violet-30); border-radius: var(--radius-element);
}
.pdf-knopf:hover { background: var(--violet-10); border-color: var(--violet-100); }
.pdf-knopf svg { width: 0.9rem; height: 0.9rem; flex: none; }
.schrittkopf__text { flex: 1; min-width: 0; }

/* ---------- Seiten: Fließtext in Lesebreite, erster Absatz als Vorlauftext ---------- */
/* Die Spalte steht mittig; Kapitelzeile und PDF-Knopf haben dieselbe Breite wie der Text. */
.seite { max-width: var(--lesespur); margin-inline: auto; }
.fliesstext { max-width: var(--lesespur); }
.fliesstext > :first-child { margin-top: 0; }
.fliesstext > p:first-child:not([class]) { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--text-leise); }
.fliesstext h2 { margin-top: var(--s-7); }
.fliesstext h3 { margin-top: var(--s-6); }
.fliesstext :is(ul, ol) { padding-left: 1.25em; }
.fliesstext li + li { margin-top: var(--s-1); }
.fliesstext .hinweis { margin-block: var(--s-5); }

/* ---------- Suche und Listen-Metazeile ---------- */
.suche { display: flex; flex-wrap: wrap; gap: var(--s-2); max-width: 34rem; margin-top: var(--s-4); }
.suche input {
  flex: 1 1 14rem; min-width: 0;
  font: inherit; font-size: var(--fs-s); color: var(--text); background: var(--weiss);
  padding: 0.6rem 0.9rem; border: 1px solid var(--violet-30); border-radius: var(--radius-element);
}
.suche input:focus-visible { outline: 3px solid var(--violet-100); outline-offset: 1px; }
.liste .liste__meta {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--violet-70); margin: 0 0 var(--s-1);
}

/* Erster Absatz ohne Vorlauf-Stil, wenn davor schon ein Vorlauftext steht */
.fliesstext--ohne-vorlauf > p:first-child:not([class]) { font-size: inherit; line-height: inherit; color: inherit; }

/* ---------- Hinweis: Seite enthält noch vorläufige Inhalte ---------- */
.strukturhinweis {
  background: #fff1c2; color: #4d3a00;
  border-bottom: 1px solid #f0cf5a;
  background-image: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(242, 149, 3, 0.10) 14px 28px);
}
.strukturhinweis__inner {
  max-width: var(--spur); margin: 0 auto; padding: var(--s-2) var(--rand);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3);
  font-size: var(--fs-s); font-weight: 600; line-height: 1.35;
}
.strukturhinweis__inner strong {
  font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase;
  background: #4d3a00; color: #fff1c2; padding: 0.2rem 0.55rem; border-radius: 4px;
}

/* ---------- Akkordeon (Core-Block) wie die Fragen: Linien, lila Titel, + und − (#t2663, Rolf 30.11.2026) ---------- */
.wp-block-accordion { border-top: 1px solid var(--linie-fein); margin-block: var(--s-4) var(--s-6); }
.wp-block-accordion-item { border-bottom: 1px solid var(--linie-fein); }
/* Doppelte Klasse, sonst gewinnt .fliesstext h3 (Abstand oben) */
.wp-block-accordion .wp-block-accordion-heading {
  margin: 0; font-size: var(--fs-m); font-weight: 600; line-height: 1.35; color: var(--violet-100);
}
.wp-block-accordion-heading__toggle { padding: var(--s-4) 0; gap: var(--s-4); }
.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title { text-decoration: underline; text-underline-offset: 0.18em; }
.wp-block-accordion-heading__toggle-icon { font-weight: 400; font-size: 1.4rem; line-height: 1; }
/* Offen „−“ statt des gedrehten „+“, wie bei den Fragen */
.wp-block-accordion-item.is-open > .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon { transform: none; position: relative; color: transparent; }
.wp-block-accordion-item.is-open > .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon::after {
  content: "\2212"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--violet-100);
}
.wp-block-accordion-panel { padding: 0 0 var(--s-4); }
.wp-block-accordion-panel > :first-child { margin-top: 0; }
.wp-block-accordion-panel > :last-child { margin-bottom: 0; }

/* ---------- Ansprechpersonen (Seitenmuster 03): Porträt quadratisch oben, darunter Name, Funktion, Mail ---------- */
.personen { display: grid; gap: var(--s-6) var(--s-4); grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); margin-top: var(--s-4); }
.person { display: flex; flex-direction: column; min-width: 0; }
.person__bild { width: 100%; aspect-ratio: 1; border-radius: var(--radius-flaeche); overflow: hidden; background: var(--grund-warm); margin-bottom: var(--s-3); }
.person__bild a { display: block; width: 100%; height: 100%; }
.person__bild a:hover { opacity: 0.85; }
.person__bild img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.person__initialen { display: grid; place-items: center; width: 100%; height: 100%; font-size: 2rem; font-weight: 600; color: var(--violet-70); }
.person__name { font-size: var(--fs-m); font-weight: 700; margin: 0 0 var(--s-1); line-height: 1.25; } /* fett wie früher als h5, auch als h3/h4 */
.person__name a { color: var(--text); text-decoration: none; }
.person__name a:hover { color: var(--violet-100); text-decoration: underline; }
.person__rolle, .person__einheit { font-size: var(--fs-s); color: var(--text-leise); margin: 0 0 var(--s-1); line-height: 1.4; overflow-wrap: break-word; }
.person__kontakt { list-style: none; padding: 0; margin: var(--s-2) 0 0; font-size: var(--fs-s); display: grid; gap: 0.15rem; }
.person__kontakt a { text-decoration: none; overflow-wrap: anywhere; }
.person__kontakt a:hover { text-decoration: underline; }
.person__mail { font-weight: 600; }
.person__tel { color: var(--text-leise); }
/* Auf der eigenen Seite: Porträt links, Angaben rechts */
.person--gross { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: var(--s-5); margin-top: var(--s-4); }
.person--gross .person__bild { margin: 0; }
.person--gross .person__rolle { font-size: var(--fs-m); color: var(--text); }
@media (max-width: 30rem) { .person--gross { grid-template-columns: 1fr; } .person--gross .person__bild { max-width: 12rem; } }
.personen-gruppe { margin-bottom: var(--s-8); }
.personen-gruppe > :is(h2, h3) { padding-top: var(--s-4); border-top: 1px solid var(--linie-fein); }
.person__bezuege { margin: var(--s-3) 0 0; font-size: var(--fs-s); line-height: 1.4; display: grid; gap: var(--s-2); }
.person__bezuege dt { font-size: var(--fs-xs); font-weight: 700; color: var(--text-leise); }
.person__bezuege dd { margin: 0; overflow-wrap: anywhere; }
.person__bezuege a { text-decoration: none; }
.person__bezuege a:hover { text-decoration: underline; }

/* ---------- Schritte-Grafik auf den Seiten der Einzelschritte (nur Desktop) ---------- */
a.achse__knopf { text-decoration: none; color: inherit; }
.verfahren--navigation { display: none; margin: 0; padding-top: var(--s-7); }
@media (min-width: 56rem) {
  .verfahren--navigation { display: block; }
  .verfahren--navigation + .abschnitt { padding-top: var(--s-6); }
}
/* Trichter und Linie in einem kräftigeren Ton als die Erklärbox, damit die Linie trägt */
.verfahren--navigation .trichter { color: color-mix(in srgb, var(--ton-aktiv) 32%, var(--grund)); }
.verfahren__linie { height: 0.75rem; border-radius: 0 0 6px 6px; background: color-mix(in srgb, var(--ton-aktiv) 32%, var(--grund)); }

/* Zurück zur Übersicht, unter jeder Einzelansicht (hello_lstpl_zurueck) */
.zurueck { margin-top: var(--s-7); }

/* ---------- Was ist neu ---------- */
/* Bewusst leise und dicht: eine Liste mit feinen Linien, Titel und Art links,
   das Datum rechts. Auf dem Handy rutscht das Datum unter den Titel. */
.neu__liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie-fein); font-size: var(--fs-s); }
.neu__eintrag {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0 var(--s-4);
  padding: var(--s-2) 0; border-bottom: 1px solid var(--linie-fein);
}
.neu__eintrag[hidden] { display: none; }
.neu__links { flex: 1 1 22rem; min-width: 0; }
.neu__art { color: var(--text-leise); }
.neu__wann { color: var(--text-leise); white-space: nowrap; }
.neu__mehr { margin-top: var(--s-3); font: inherit; font-size: var(--fs-s); cursor: pointer; }

/* ---------- Kacheln (Tools auf den Schrittseiten, Karte 2396) ----------
   Kompakter als .liste: viele Methoden auf wenig Raum, die ganze Kachel ist klickbar. */
.kacheln { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); }
.kachel {
  position: relative; display: flex; flex-direction: column; gap: var(--s-1);
  padding: var(--s-3) var(--s-4); background: #fff;
  border: 1px solid var(--linie-fein); border-top: 3px solid var(--akzent-ton, var(--violet-30));
  border-radius: 4px; transition: border-color .15s, box-shadow .15s;
}
.kachel:hover, .kachel:focus-within { border-color: var(--violet-30); box-shadow: 0 2px 8px rgba(59, 56, 64, .08); }
.kachel__marke { font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--text-leise); }
.kachel__titel { margin: 0; font-size: var(--fs-m); font-weight: 600; line-height: 1.25; }
.kachel__titel a { color: var(--text); text-decoration: none; }
.kachel__titel a::after { content: ""; position: absolute; inset: 0; }
.kachel:hover .kachel__titel a { color: var(--violet-100); text-decoration: underline; }
.kachel__satz { margin: 0; font-size: var(--fs-s); color: var(--text-leise); line-height: 1.4; }

/* Querschnittsthema (taxonomy-lstpl_thema.php, Karte 2176): Sprungmarken zu den Inhaltsarten */
.thema .marke a { color: inherit; text-decoration: none; }
.thema .marke a:hover { text-decoration: underline; }
.thema__sprung { margin-top: var(--s-4); }
.thema__sprung .chip { display: inline-flex; align-items: center; gap: 0.4em; }

/* ---------- Tools mit Grafik (Karte 2396, Beschluss 16.11.2026) ----------
   Schrittseite: drei Kacheln mit Grafik oben, darunter „Alle Tools“.
   Übersicht /tools/: Grafik rechts neben dem Eintrag. */
.kacheln--streifen { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--s-4); }
.kachel--bild { padding-top: 0; overflow: hidden; }
.kachel__bild {
  margin: 0 calc(-1 * var(--s-4)) var(--s-2);
  aspect-ratio: 16 / 10; background: var(--b-violet, var(--violet-10));
  display: flex; align-items: center; justify-content: center;
}
.kachel__bild img { width: 100%; height: 100%; object-fit: contain; display: block; }
.kacheln__alle { margin: var(--s-4) 0 0; }

.liste > li.liste__mit-bild { grid-template-columns: minmax(0, 1fr) 9rem; column-gap: var(--s-5); }
.liste__mit-bild > * { grid-column: 1; }
.liste__mit-bild > .liste__bild { grid-column: 2; grid-row: 1 / span 6; align-self: start; }
.liste__bild img { width: 100%; height: auto; display: block; border-radius: 4px; }
@media (max-width: 600px) {
  .liste > li.liste__mit-bild { grid-template-columns: minmax(0, 1fr) 5.5rem; column-gap: var(--s-3); }
}

/* Startseite: Hinweis unter den Knöpfen (Karte 2510) */
.hero__hinweis { margin: var(--s-4) 0 0; font-size: var(--fs-s); color: var(--text-leise); }

/* Unterseiten eines Bereichs (page.php): zwei Spalten, Nummer, Balken, ganze Karte klickbar (Rolf, 30.11.2026) */
.unterseiten { display: grid; gap: var(--s-5); margin-top: var(--s-7); }
@media (min-width: 40rem) { .unterseiten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.unterseite {
  position: relative; display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-6) var(--s-6) var(--s-5) calc(var(--s-6) + 6px);
  background: var(--grund-warm); border: 1px solid transparent; border-radius: 16px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.unterseite::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--violet-100); transition: width .2s ease; }
.unterseite__nr { font-size: 2.6rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--violet-30); font-variant-numeric: tabular-nums; }
.unterseite__titel { margin: 0; font-size: 1.3rem; line-height: 1.25; font-weight: 600; color: var(--violet-100); text-wrap: balance; }
.unterseite__titel a { color: inherit; text-decoration: none; }
.unterseite__titel a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.unterseite__titel a:focus-visible { outline: none; }
.unterseite__satz { margin: 0; max-width: none; color: var(--text-leise); }
.unterseite__mehr { margin-top: auto; padding-top: var(--s-2); display: inline-flex; gap: 0.4em; font-weight: 600; color: var(--violet-100); }
.unterseite__pfeil { display: inline-block; transition: transform .2s ease; }
.unterseite:hover, .unterseite:focus-within { background: var(--weiss, #fff); border-color: var(--violet-30); box-shadow: 0 16px 32px -20px rgba(91, 34, 129, 0.5); transform: translateY(-3px); }
.unterseite:hover::before, .unterseite:focus-within::before { width: 10px; }
.unterseite:hover .unterseite__pfeil, .unterseite:focus-within .unterseite__pfeil { transform: translateX(5px); }
.unterseite:focus-within { outline: 2px solid var(--violet-100); outline-offset: 3px; }
.unterseite.ist-unfertig { background: transparent; border-color: var(--linie-fein); }
.unterseite.ist-unfertig::before { background: var(--violet-30); }
.unterseite.ist-unfertig .unterseite__titel, .unterseite.ist-unfertig .unterseite__mehr { color: var(--text-leise); }
.unterseite.ist-unfertig .unterseite__mehr { font-weight: 400; font-style: italic; }
@media (prefers-reduced-motion: reduce) { .unterseite, .unterseite::before, .unterseite__pfeil { transition: none; } .unterseite:hover, .unterseite:focus-within { transform: none; } }
