/* =============================================================================
   portslie — eigenes Erscheinungsbild über dem Kern.

   Lädt NACH /kern/grund.css (Block `farben` in basis.html) und überschreibt,
   was portslie anders macht. Grundsätze in ../PRODUCT.md:

   * Seriös, Infrastruktur. Vorbild vom Gefühl: Linear/Vercel (Präzision, Luft)
     und Tailscale/Fly.io (eigene Bildsprache). Deshalb weg mit der Glasleiste,
     dem Raster-Licht im Hintergrund und den 20-px-Rundungen des Kerns.
   * Farbe trägt Bedeutung. Grün/Gelb/Rot sind Status, nie Dekoration. Status
     wird zusätzlich über Form gezeigt (Balkenhöhe = Stufe), nie nur über Farbe.
   * Mono nur für echte Daten: Abfragen, Adressen, Messzeilen.

   ⚠️ Akzent, Statusfarben und Schrift kommen aus statisch/marke/tokens.css,
   einer Kopie von ci/tokens.css (Erzeugnis, s. statisch/marke/LIESMICH.md).
   Hier stehen nur die Flächen und was die Landing selbst braucht.
   ============================================================================= */

/* ---- Tokens ---------------------------------------------------------------- */

:root {
  /* Tintenblau, oklch(0.19 0.045 266). Kontraste gerechnet (24.09.2026):
     Text 16,7 · leise 7,5 · gut 9,6 · warn 10,0 · fehler 6,8 · Kreide 14,9 auf --p-grund;
     auf --p-flaeche-2 schwächstes Paar fehler 5,7. */
  --p-grund: #0a1328;
  --p-flaeche: #111b32;
  --p-flaeche-2: #19233c;
  --p-linie: rgba(255, 255, 255, 0.08);
  --p-linie-stark: rgba(255, 255, 255, 0.14);
  --p-text: #f1f3f8;
  --p-weich: #cbd1df;
  --p-leise: #9ba5b9;

  /* Akzent, Status und Schrift kommen aus /statisch/marke/tokens.css (CI).
     Die Marke ist Kreide, nicht Grün: Grün heißt hier nur „Stufe 3". */
  --p-schrift: var(--schrift);
  --p-r: 10px;
  --p-r-klein: 7px;
  --p-kopf: 64px;
  --p-luft: clamp(56px, 7vw, 96px);

  /* Die Kern-Tokens auf portslie umbiegen, damit auch Konto, Tarife und
     Anmelden dieselben Flächen bekommen. */
  --ink: var(--p-grund);
  --midnight: var(--p-flaeche);
  --panel: var(--p-flaeche-2);
  --rand: var(--p-linie);
  --linie: var(--p-linie-stark);
  --linie-weich: var(--p-linie);
  --text: var(--p-text);
  --text-weich: var(--p-weich);
  --text-leise: var(--p-leise);
  --r-card: var(--p-r);
  --r-big: 14px;
  --r-btn: var(--p-r-klein);
  --kopf-h: var(--p-kopf);
}

body { background: var(--p-grund); font-family: var(--p-schrift); }

/* ---- Kopf: eine ruhige Leiste statt der schwebenden Glaspille -------------- */

.kopf {
  position: sticky; inset: 0 0 auto 0;
  padding: 0 20px;
  pointer-events: auto;
  background: rgba(10, 19, 40, .86);
  border-bottom: 1px solid var(--p-linie);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
          backdrop-filter: saturate(140%) blur(10px);
}
.kopf-innen {
  height: var(--p-kopf);
  padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.marke { display: inline-flex; align-items: center; min-height: 32px; }  /* Klickfläche ≥ 24 px (WCAG 2.5.8) */
.marke .logo { display: block; height: 24px; width: auto; }

.kopf nav {
  gap: 4px; padding: 0; border: 0; border-radius: 0; background: none;
}
.kopf nav a, .kopf nav button {
  padding: 7px 12px; border-radius: var(--p-r-klein);
  color: var(--p-leise);
}
.kopf nav a:hover, .kopf nav button:hover { background: var(--p-flaeche-2); color: var(--p-text); }
.kopf nav a[aria-current="page"] { background: none; color: var(--p-text); }
.kopf nav a[aria-current="page"]::before,
.kopf nav a[aria-current="page"]::after { content: none; }
.kopf nav .anmelden {
  margin-left: 6px;
  background: var(--akzent); color: var(--auf-akzent);
  border-radius: var(--p-r-klein); padding: 7px 14px; font-weight: 600;
}
@media (max-width: 520px) {
  .kopf { padding: 0 16px; }
  .kopf nav a[href="/tarife"] { display: none; }
  .kopf nav a, .kopf nav button { padding: 7px 9px; }
  .kopf nav .anmelden { margin-left: 2px; padding: 7px 11px; }
  .marke .logo { height: 21px; }
}
.kopf nav .anmelden:hover,
.kopf nav .anmelden[aria-current="page"] { background: #f7f2e7; color: var(--auf-akzent); }

/* ---- Rumpf: kein Raster, kein Lichtkegel ----------------------------------- */

main { padding-top: 56px; }
main::before, main::after { content: none; }

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

/* Alle Knöpfe, auch die Formular-Knöpfe des Kerns: hell auf dunkel, kein
   Farbschein, kein Anheben. Die Akzentfarbe bleibt der Marke vorbehalten. */
button, .knopf {
  background: var(--akzent); color: var(--auf-akzent);
  box-shadow: none; transform: none;
}
button:hover, .knopf:hover { background: #f7f2e7; box-shadow: none; transform: none; }
button.leise, .knopf.leise { background: transparent; color: var(--p-text); border-color: var(--p-linie-stark); }
button.leise:hover, .knopf.leise:hover { background: var(--p-flaeche-2); border-color: var(--p-leise); }
button.gefahr { background: var(--fehler); color: #fff; box-shadow: none; }
.kopf nav button { background: none; color: var(--p-leise); }

/* Karten des Kerns: keine Mausleuchte, kein Anheben, kein Schein. */
.karte::before, .karte::after, .zielkarte::before { content: none; }
.karte:hover { transform: none; box-shadow: none; border-color: var(--p-linie-stark); }
.tarif, .tarif.hervor { box-shadow: none; }
.tarif::before, .tarif::after { content: none; }

.knopf {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 18px;
  border-radius: var(--p-r-klein); border: 1px solid transparent;
  background: var(--akzent); color: var(--auf-akzent);
  font-weight: 600; font-size: .95rem; text-decoration: none;
  box-shadow: none;
  transition: background .18s, border-color .18s, color .18s;
}
.knopf:hover { background: #f7f2e7; color: var(--auf-akzent); text-decoration: none; }
.knopf.leise {
  background: transparent; color: var(--p-text);
  border-color: var(--p-linie-stark);
}
.knopf.leise:hover { background: var(--p-flaeche-2); border-color: var(--p-leise); }

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

.fuss { border-top: 1px solid var(--p-linie); background: none; }
.fuss a { color: var(--p-leise); }
.fuss a:hover { color: var(--p-text); }

/* =============================================================================
   Landing
   ============================================================================= */

main.start {
  max-width: none;
  padding: 0 0 var(--p-luft);
}

.start .bahn {
  max-width: var(--breite);
  margin: 0 auto;
  padding: var(--p-luft) 20px 0;
}
.start .bahn + .bahn { border-top: 1px solid var(--p-linie); margin-top: calc(var(--p-luft) * .8); }
.start .laufband-teil + .bahn { border-top: 0; margin-top: 0; }
.start .bahn.aufruf { border-top: 0; }
.start .bahn + .bahn { padding-top: calc(var(--p-luft) * .8); }

.start h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700; letter-spacing: -.025em; line-height: 1.1;
  margin: 0 0 16px;
  text-wrap: balance;
}
.start h3 { font-size: 1.08rem; font-weight: 620; letter-spacing: -.018em; }
.start p { text-wrap: pretty; }
.start .mono, .start samp, .start code { font-family: var(--mono); }

.teil-kopf { max-width: 40rem; margin: 0 0 44px; }
.teil-kopf p { color: var(--p-leise); font-size: 1.06rem; line-height: 1.6; margin: 0; }

/* ---- Held ------------------------------------------------------------------ */

.held { padding-top: clamp(56px, 9vw, 112px); }

.held h1 {
  font-size: clamp(2.6rem, 6.6vw, 5.1rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -.03em;
  margin: 0 0 32px;
  text-wrap: balance;
}

.held-text {
  display: grid; gap: 28px 64px; align-items: end;
  grid-template-columns: minmax(0, 38rem) auto;
  margin: 0 0 clamp(48px, 7vw, 80px);
}
.held .lead {
  font-size: clamp(1.06rem, 1.6vw, 1.2rem); line-height: 1.6;
  color: var(--p-weich); margin: 0; max-width: none;
}
.handlung { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.handlung .knopf { min-height: 48px; padding: 0 22px; font-size: 1rem; }
.handlung-notiz { font-size: .86rem; color: var(--p-leise); }

@media (max-width: 820px) {
  .held-text { grid-template-columns: 1fr; }
}

/* ---- Messbild: das Produkt in einem Bild ------------------------------------
   40 Messungen, zwei Reihen. Oben der Port-Check, unten portslie. Die Höhe
   eines Balkens ist die erreichte Stufe — so ist der Unterschied auch ohne
   Farbsehen ablesbar. */

.messbild {
  margin: 0;
  border: 1px solid var(--p-linie);
  border-radius: 14px;
  background: var(--p-flaeche);
  padding: 20px 24px 22px;
}
.messbild-kopf {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  font-size: .9rem; color: var(--p-weich);
  padding-bottom: 18px; margin-bottom: 26px;
  border-bottom: 1px solid var(--p-linie);
}
.messbild-hinweis { color: var(--p-leise); }

.messbild-flaeche {
  --spalte-name: 150px;
  --spalte-fazit: 150px;
  --balken: 44px;
  display: grid;
  grid-template-columns: var(--spalte-name) minmax(0, 1fr) var(--spalte-fazit);
  column-gap: 24px; row-gap: 14px;
  align-items: center;
}
.reihe { display: contents; }

.reihe-name b { display: block; font-weight: 620; font-size: .98rem; }
.reihe-name span { display: block; font-family: var(--mono); font-size: .74rem; color: var(--p-leise); margin-top: 2px; }
.reihe.eigen .reihe-name b::after {
  /* Das Signet im Kleinen: oben voll, unten Ring. */
  content: ""; display: inline-block; width: 6px; height: 14px; margin-left: 8px; vertical-align: -1px;
  background:
    radial-gradient(circle at 3px 3px, var(--akzent) 2.6px, transparent 3px),
    radial-gradient(circle at 3px 11px, transparent 1.4px, var(--akzent) 1.6px, var(--akzent) 2.6px, transparent 3px);
}

.spur {
  display: flex; align-items: flex-end; gap: 3px;
  height: var(--balken);
}
.t {
  flex: 1 1 0; min-width: 2px; height: 100%;
  border-radius: 2px;
  background: var(--gut);
  transform-origin: 50% 100%;
  animation: einlaufen .5s cubic-bezier(.16, 1, .3, 1) backwards;
  animation-delay: calc(120ms + var(--i) * 22ms);
}
.t.s1 { height: 33%; background: var(--warn); }
.t.s0 { height: 10%; background: var(--fehler); }
@keyframes einlaufen { from { transform: scaleY(0); opacity: 0; } }

.reihe-fazit {
  font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--p-weich);
}
.reihe-fazit.warn { color: var(--warn); }

.achse {
  grid-column: 2;
  display: flex; justify-content: space-between;
  font-size: .74rem; color: var(--p-leise); font-variant-numeric: tabular-nums;
  margin-top: -4px;
}

/* Ereignisse: jede Marke steht an ihrer Minute, eine gestrichelte Linie führt
   hoch in die Balken. */
.marken {
  grid-column: 2;
  position: relative; list-style: none; margin: 0; padding: 0;
  height: 132px;
}
.marken li {
  position: absolute; top: 14px;
  left: calc((var(--bei) + .5) / 40 * 100%);
  width: 30%; padding-left: 12px;
  font-size: .84rem; line-height: 1.4; color: var(--p-weich);
  animation: auftauchen .5s ease-out backwards;
  animation-delay: calc(400ms + var(--bei) * 22ms);
}
/* Die gestrichelte Linie führt von der Marke hoch durch Achse und Balken. */
.marken li::before {
  content: ""; position: absolute; left: 0; bottom: 100%;
  height: calc(2 * var(--balken) + 3 * 14px + 20px + var(--hoch, 0px));
  border-left: 1px dashed var(--p-leise);
  opacity: .7;
}
/* 20:18 liegt eine Minute neben 20:17: eine Zeile tiefer, sonst überlappt es. */
.marken li:nth-child(2) { top: 80px; --hoch: 66px; }
.marken li:last-child { width: 22%; }
.marken time { display: block; font-weight: 620; color: var(--p-text); font-variant-numeric: tabular-nums; }
@keyframes auftauchen { from { opacity: 0; } }

@media (max-width: 1000px) {
  .messbild { padding: 16px 16px 18px; }
  .messbild-flaeche { grid-template-columns: minmax(0, 1fr); row-gap: 8px; --balken: 36px; }
  .reihe-name { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
  .reihe-name span { margin: 0; }
  .reihe-fazit { font-size: .84rem; }
  .achse, .marken { grid-column: 1; }
  .marken { height: auto; display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--p-linie); }
  .marken li, .marken li:nth-child(2), .marken li:last-child {
    position: static; width: auto; padding: 0;
  }
  .marken li::before { content: none; }
  .marken time { display: inline; margin-right: 8px; }
}

/* ---- Drei Stufen: eine echte Folge, deshalb nummeriert ---------------------- */

.stufenfolge {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--p-linie-stark);
}
.stufenfolge li {
  position: relative;
  padding: 28px 28px 0 0;
  display: flex; flex-direction: column;
}
.stufenfolge li + li { padding-left: 28px; border-left: 1px solid var(--p-linie); }
.stufe-nr {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; margin-bottom: 18px;
  border: 1px solid var(--p-linie-stark); border-radius: 6px;
  font-size: .86rem; font-weight: 650; font-variant-numeric: tabular-nums;
  color: var(--p-weich);
}
.stufenfolge li:last-child .stufe-nr { border-color: var(--gut); color: var(--gut); }
.stufenfolge h3 { margin: 0 0 8px; }
.stufenfolge p { color: var(--p-leise); margin: 0 0 22px; max-width: 34ch; }
.stufenfolge samp {
  margin-top: auto; align-self: flex-start;
  font-size: .78rem; color: var(--p-weich);
  background: var(--p-flaeche); border: 1px solid var(--p-linie);
  border-radius: 6px; padding: 7px 10px;
}
@media (max-width: 820px) {
  .stufenfolge { grid-template-columns: 1fr; border-top: 0; }
  .stufenfolge li, .stufenfolge li + li {
    padding: 24px 0; border-left: 0; border-top: 1px solid var(--p-linie);
  }
}

/* ---- Protokoll-Tabelle ------------------------------------------------------ */

/* Der Kern gibt jeder Tabelle Rahmen, Fläche und Großbuchstaben-Köpfe. Auf der
   Landing sind Tabellen Text, keine Datenpaneele. */
.start table {
  display: table; border: 0; border-radius: 0; background: none;
  border-collapse: collapse; margin: 0; font-size: inherit;
}
.start th, .start td { white-space: normal; background: none; }
.start th { text-transform: none; letter-spacing: 0; font-size: inherit; }
.start tbody tr:hover td { background: none; }
.start tbody tr:last-child td, .start tbody tr:last-child th { border-bottom: 1px solid var(--p-linie); }

.tabelle-rahmen { overflow-x: auto; }
.protokolle { width: 100%; border-collapse: collapse; font-size: .96rem; }
.protokolle th, .protokolle td {
  text-align: left; vertical-align: top;
  padding: 18px 24px 18px 0;
  border-bottom: 1px solid var(--p-linie);
}
.protokolle thead th {
  font-size: .82rem; font-weight: 500; color: var(--p-leise);
  padding-top: 0; padding-bottom: 12px;
  border-bottom-color: var(--p-linie-stark);
}
.protokolle tbody th { font-weight: 620; width: 24%; }
.protokolle td { color: var(--p-weich); }
.protokolle td:first-of-type { width: 34%; }
.protokolle .mono { font-size: .86em; color: var(--p-text); }
@media (max-width: 720px) {
  .protokolle thead { display: none; }
  .protokolle, .protokolle tbody, .protokolle tr, .protokolle th, .protokolle td { display: block; width: auto; }
  .protokolle tr { padding: 18px 0; border-bottom: 1px solid var(--p-linie); }
  .start .protokolle th, .start .protokolle td,
  .start .protokolle tbody tr:last-child th, .start .protokolle tbody tr:last-child td {
    border: 0; padding: 0 0 6px; width: auto;
  }
  .protokolle tbody th { font-size: 1.02rem; padding-bottom: 8px; }
}

/* ---- Alarme ----------------------------------------------------------------- */

.alarm-raster {
  display: grid; gap: 48px 64px; align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}
.regeln { margin: 0; display: grid; gap: 28px; }
.regeln dt { font-weight: 620; font-size: 1.04rem; margin-bottom: 6px; }
.regeln dd { margin: 0; color: var(--p-leise); line-height: 1.6; }

.nachricht {
  margin: 0; border: 1px solid var(--p-linie); border-radius: 12px;
  background: var(--p-flaeche); padding: 18px 20px 20px;
}
.nachricht figcaption { font-size: .8rem; color: var(--p-leise); margin-bottom: 14px; }
.nachricht-kopf { font-size: .96rem; margin-bottom: 10px; }
.nachricht pre {
  margin: 0; white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--p-grund); border: 1px solid var(--p-linie); border-radius: 8px;
  font-size: .8rem; line-height: 1.6; color: var(--p-weich);
}
@media (max-width: 900px) { .alarm-raster { grid-template-columns: 1fr; } }

/* ---- Versuch ---------------------------------------------------------------- */

.versuch-raster {
  display: grid; gap: 40px 64px; align-items: start;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
}
.versuch-zahlen { width: 100%; border-collapse: collapse; }
.versuch-zahlen caption {
  caption-side: bottom; text-align: left;
  font-size: .8rem; color: var(--p-leise); padding-top: 12px;
}
.versuch-zahlen th, .versuch-zahlen td {
  padding: 12px 0; border-bottom: 1px solid var(--p-linie);
  font-weight: 400; text-align: left;
}
.versuch-zahlen th { color: var(--p-weich); padding-right: 16px; }
.versuch-zahlen td {
  text-align: right; font-weight: 620; font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.versuch-zahlen tr:last-child td { color: var(--warn); }
.protokoll {
  margin: 0; font-size: .78rem; line-height: 1.8;
  background: var(--p-flaeche); border: 1px solid var(--p-linie); border-radius: 10px;
  color: var(--p-weich);
}
.protokoll .leise { color: var(--p-leise); }
@media (max-width: 900px) { .versuch-raster { grid-template-columns: 1fr; } }

/* ---- Tarife: eine Zeile, durch Linien geteilt, keine drei Karten ----------- */

.tarifzeile {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--p-linie); border-radius: 14px; overflow: hidden;
}
.tarifspalte {
  display: flex; flex-direction: column;
  padding: 28px 28px 30px;
}
.tarifspalte + .tarifspalte { border-left: 1px solid var(--p-linie); }
.tarifspalte.hervor { background: var(--p-flaeche); }
.tarifspalte h3 { margin: 0 0 12px; font-size: 1rem; color: var(--p-weich); }
.tarifpreis {
  font-size: 2.2rem; font-weight: 640; letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums; margin: 0 0 22px;
}
.tarifpreis small { font-size: .86rem; font-weight: 400; letter-spacing: 0; color: var(--p-leise); }
.tarifspalte ul {
  list-style: none; margin: 0 0 28px; padding: 0;
  display: grid; gap: 9px; font-size: .93rem; color: var(--p-weich);
}
.tarifspalte li { padding-left: 18px; position: relative; }
.tarifspalte li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 1px; background: var(--p-leise);
}
.tarifspalte .knopf { margin-top: auto; align-self: flex-start; }
.fussnote { font-size: .86rem; color: var(--p-leise); margin: 16px 0 0; }
@media (max-width: 860px) {
  .tarifzeile { grid-template-columns: 1fr; }
  .tarifspalte + .tarifspalte { border-left: 0; border-top: 1px solid var(--p-linie); }
}

/* ---- Grenzen ---------------------------------------------------------------- */

.grenzliste {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px;
}
.grenzliste li {
  padding: 20px 0; border-top: 1px solid var(--p-linie);
  color: var(--p-leise); line-height: 1.6;
}
.grenzliste b { display: block; color: var(--p-text); font-weight: 620; margin-bottom: 4px; }
@media (max-width: 760px) { .grenzliste { grid-template-columns: 1fr; } }

/* ---- Betreiber -------------------------------------------------------------- */

.betreiber h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.betreiber p { color: var(--p-weich); max-width: 44rem; font-size: 1.04rem; line-height: 1.65; }

/* =============================================================================
   Mehrseitiger Auftritt: Navigation, Fuß, Seitenköpfe, Bausteine
   Muster nach Magic UI (Animated Beam, Animated List, Marquee, Number Ticker)
   und Linear (Reiter mit Fortschritt). 21st.dev liefert nur React/Tailwind —
   hier nachgebaut in CSS und Vanilla-JS, weil portslie Jinja ist.
   ============================================================================= */

.nur-vorleser {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---- Hauptnavigation -------------------------------------------------------- */

.kopf { z-index: 40; }
.kopf .hauptnav {
  flex: 1; margin-left: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0; border: 0; background: none; border-radius: 0;
}
.nav-seiten, .nav-konto { display: flex; align-items: center; gap: 2px; }
.nav-konto form { margin: 0; }
.kopf .nav-seiten a { position: relative; }
.kopf .nav-seiten a[aria-current="page"] { color: var(--p-text); }
.kopf .nav-seiten a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -7px; height: 2px;
  background: var(--akzent); border-radius: 2px; filter: none; top: auto; width: auto; transform: none;
}
.kopf nav .konto { color: var(--p-weich); }

.menue-knopf {
  display: none; margin-left: auto;
  align-items: center; gap: 10px;
  min-height: 40px; padding: 0 12px;
  background: transparent; color: var(--p-text);
  border: 1px solid var(--p-linie-stark); border-radius: var(--p-r-klein);
  font-size: .9rem; font-weight: 600;
}
.menue-knopf:hover { background: var(--p-flaeche-2); }
.menue-striche { position: relative; width: 16px; height: 10px; }
.menue-striche i {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), top .3s cubic-bezier(.16, 1, .3, 1);
}
.menue-striche i:first-child { top: 1px; }
.menue-striche i:last-child { top: 7.5px; }
.menue-knopf[aria-expanded="true"] .menue-striche i:first-child { top: 4.25px; transform: rotate(45deg); }
.menue-knopf[aria-expanded="true"] .menue-striche i:last-child { top: 4.25px; transform: rotate(-45deg); }

@media (max-width: 880px) {
  /* ⚠️ backdrop-filter macht den Kopf zum Bezugsrahmen für position: fixed —
     das Menü-Panel hätte dann die Höhe der Leiste. Auf dem Handy deshalb ohne. */
  .js .kopf { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--p-grund); }
  .js .menue-knopf { display: inline-flex; }
  .js .kopf .hauptnav {
    position: fixed; left: 0; right: 0; top: var(--p-kopf); bottom: 0;
    margin: 0; padding: 20px 20px 32px;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
    background: var(--p-grund);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .35s cubic-bezier(.16, 1, .3, 1), visibility 0s .35s;
    overflow-y: auto;
  }
  .js .kopf .hauptnav.offen {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .25s ease, transform .35s cubic-bezier(.16, 1, .3, 1), visibility 0s;
  }
  .js .nav-seiten { flex-direction: column; align-items: stretch; gap: 0; }
  .js .kopf .nav-seiten a {
    display: flex; align-items: center; min-height: 56px; padding: 0 4px; border-radius: 0;
    font-size: 1.35rem; font-weight: 600; color: var(--p-text);
    border-bottom: 1px solid var(--p-linie);
  }
  .js .kopf .nav-seiten a[aria-current="page"]::after { left: auto; right: 4px; top: 50%; bottom: auto; width: 8px; height: 8px; border-radius: 50%; }
  .js .nav-konto { flex-direction: column; align-items: stretch; gap: 10px; }
  .js .kopf .nav-konto a, .js .kopf .nav-konto button {
    justify-content: center; min-height: 48px; font-size: 1rem; color: var(--p-text);
    border: 1px solid var(--p-linie-stark); border-radius: var(--p-r-klein);
  }
  .js .kopf .nav-konto .anmelden { margin: 0; border-color: transparent; }
  html:not(.js) .kopf .hauptnav { flex-wrap: wrap; }
  body.menue-offen { overflow: hidden; }
}
@media (max-width: 520px) {
  .kopf nav a[href="/tarife"] { display: flex; }
}

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

.fuss { margin-top: 0; padding: 0; }
.fuss .fuss-innen {
  max-width: var(--breite); margin: 0 auto; padding: 56px 20px 40px;
  display: grid; gap: 40px 32px;
  grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr));
  font-size: .92rem; color: var(--p-leise);
}
.fuss-marke .logo { height: 22px; width: auto; display: block; margin-bottom: 14px; }
.fuss-marke p { max-width: 30ch; margin: 0; line-height: 1.6; }
.fuss-spalte { display: flex; flex-direction: column; gap: 6px; }
.fuss-spalte b { color: var(--p-text); font-weight: 600; font-size: .86rem; margin-bottom: 4px; }
.fuss-spalte a { color: var(--p-leise); text-decoration: none; width: fit-content; padding: 2px 0; min-height: 24px; }
.fuss-spalte a:hover { color: var(--p-text); }
.fuss-unten {
  max-width: var(--breite); margin: 0 auto; padding: 18px 20px 28px;
  border-top: 1px solid var(--p-linie); font-size: .8rem; color: var(--p-leise);
}
@media (max-width: 760px) {
  .fuss .fuss-innen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fuss-marke { grid-column: 1 / -1; }
}

/* ---- Seitenkopf der Unterseiten ----------------------------------------------- */

.unterseite .seitenkopf { position: relative; isolation: isolate; padding-top: clamp(48px, 7vw, 88px); }
.portfeld.klein { height: 460px; }
.brotkrume { font-size: .84rem; color: var(--p-leise); margin: 0 0 20px; }
.brotkrume a { color: var(--p-leise); text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
.brotkrume a:hover { color: var(--p-text); }
.seitenkopf h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 700; line-height: 1.04; letter-spacing: -.03em;
  margin: 0 0 20px; text-wrap: balance;
}
.seitenkopf .lead { font-size: clamp(1.05rem, 1.6vw, 1.18rem); color: var(--p-weich); max-width: 44rem; margin: 0; line-height: 1.6; }
.bewegt .seitenkopf .lead.auftritt { animation-delay: .12s; }

.knopf-text {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  color: var(--p-text); font-weight: 600; font-size: .95rem; text-decoration: none;
}
.knopf-text::after { content: "→"; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.knopf-text:hover::after { transform: translateX(4px); }
.handlung { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.handlung-notiz { flex-basis: 100%; }

/* ---- Laufband (Marquee) ------------------------------------------------------ */

.laufband-teil {
  border-block: 1px solid var(--p-linie);
  margin-top: var(--p-luft);
  background: linear-gradient(var(--p-grund), var(--p-flaeche) 50%, var(--p-grund));
}
.laufband {
  display: flex; overflow: hidden; gap: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.laufband-spur {
  list-style: none; margin: 0; padding: 20px 0;
  display: flex; flex-shrink: 0; gap: 0;
  animation: laufen 42s linear infinite;
}
.laufband:hover .laufband-spur { animation-play-state: paused; }
.laufband-spur li {
  display: flex; align-items: baseline; gap: 10px; white-space: nowrap;
  padding: 0 34px; border-right: 1px solid var(--p-linie);
}
.laufband-spur b { font-weight: 600; }
.laufband-spur span { font-family: var(--mono); font-size: .8rem; color: var(--p-leise); }
@keyframes laufen { to { transform: translateX(-100%); } }
html:not(.bewegt) .laufband-spur { animation: none; }
html:not(.bewegt) .laufband-spur[aria-hidden] { display: none; }
html:not(.bewegt) .laufband { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }

/* ---- Galerie: Aufnahmen der Kundenoberfläche -------------------------------------
   Reiter wie auf /spiele (portslie.js §13). Das Bild steht leicht gekippt und
   richtet sich beim Hineinscrollen auf, wo der Browser Scroll-Zeitleisten kann. */

.galerie .reiter-leiste { border-radius: 14px 14px 0 0; }
.galerie-buehne {
  position: relative;
  border: 1px solid var(--p-linie); border-top: 0; border-radius: 0 0 14px 14px;
  background: var(--p-flaeche);
  padding: clamp(12px, 2vw, 24px);
  perspective: 1600px;
}
.galerie-bild { margin: 0; }
.galerie-bild[hidden] { display: none; }
.galerie-bild img {
  display: block; width: 100%; height: auto;
  border-radius: 10px; border: 1px solid var(--p-linie-stark);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
  transform-origin: 50% 0;
}
#gp-ziel img { max-height: 780px; object-fit: cover; object-position: top; }
.bewegt .galerie-bild:not([hidden]) { animation: nachricht-rein .5s cubic-bezier(.16, 1, .3, 1) both; }
@supports (animation-timeline: view()) {
  .bewegt .galerie-buehne .galerie-bild img {
    animation: aufrichten linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }
  @keyframes aufrichten { from { transform: rotateX(14deg) scale(.94); opacity: .55; } }
}
.galerie-handy {
  position: absolute; right: -28px; bottom: -40px; width: 196px; margin: 0;
  padding: 7px; border-radius: 30px;
  background: #05070d; border: 1px solid var(--p-linie-stark);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .95);
}
.galerie-handy img { display: block; width: 100%; height: auto; border-radius: 24px; }
.galerie-hinweis { font-size: .82rem; color: var(--p-leise); margin: 16px 0 0; max-width: 62ch; }
.galerie-hinweis b { color: var(--p-weich); font-weight: 600; }
@media (max-width: 1240px) { .galerie-handy { right: 12px; bottom: -28px; width: 160px; } }
@media (max-width: 760px) { .galerie-handy { display: none; } }

/* ---- Weg: Messpunkt mit Beams (nach Magic UI „Animated Beam") ------------------ */

.weg-raster {
  display: grid; gap: 48px 64px; align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.weg-raster .teil-kopf { margin: 0; }
.weg-raster .teil-kopf p { margin-bottom: 20px; }
.weg {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 40px;
  padding: 32px 24px;
  border: 1px solid var(--p-linie); border-radius: 16px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .06) 1px, transparent 0) 0 0 / 18px 18px,
    var(--p-flaeche);
}
.weg-linien { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.weg-linien .grund { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1.5; }
.weg-linien .puls {
  fill: none; stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 14 100; stroke-dashoffset: 114;
}
.bewegt .weg-linien .puls { animation: puls-lauf var(--dauer, 3s) cubic-bezier(.45, 0, .55, 1) var(--verzug, 0s) infinite; }
.bewegt .weg-linien .puls.rueck { animation-name: puls-rueck; }
@keyframes puls-lauf { from { stroke-dashoffset: 114; } to { stroke-dashoffset: 0; } }
@keyframes puls-rueck { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 114; } }
.weg-spalte { position: relative; z-index: 1; display: grid; gap: 22px; }
.knoten {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; min-width: 0;
  border: 1px solid var(--p-linie-stark); border-radius: 10px;
  background: var(--p-flaeche-2);
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .9);
}
.knoten svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--p-weich); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.knoten b { display: block; font-size: .86rem; font-weight: 600; line-height: 1.2; }
.knoten > span { min-width: 0; }
.knoten small { display: block; font-family: var(--mono); font-size: .7rem; color: var(--p-leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.knoten.gross { padding: 18px 20px; gap: 14px; border-color: rgba(var(--akzent-r), var(--akzent-g), var(--akzent-b), .45); }
.knoten.gross img { height: 30px; width: auto; }
.knoten.blinkt { animation: knoten-blink .9s ease-out; }
@keyframes knoten-blink { 30% { border-color: var(--warn); box-shadow: 0 0 0 4px rgba(var(--warn-rgb), .12); } }
@media (max-width: 1000px) {
  .weg-raster { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .weg { grid-template-columns: 1fr; gap: 28px; padding: 24px 18px; }
  .weg-spalte.links, .weg-spalte.rechts { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .weg-spalte.mitte { justify-items: center; }
}

/* ---- Bento ------------------------------------------------------------------ */

.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
}
.kachel {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 20px;
  padding: 26px 26px 24px;
  border: 1px solid var(--p-linie); border-radius: 16px;
  background: var(--p-flaeche);
  transition: border-color .3s;
}
.kachel:hover { border-color: var(--p-linie-stark); }
.kachel h3 { font-size: 1.14rem; font-weight: 700; letter-spacing: -.015em; margin: 0 0 8px; }
.kachel-text p { margin: 0; color: var(--p-leise); line-height: 1.6; max-width: 46ch; }
.kachel .knopf-text { margin-top: auto; font-size: .9rem; }
.k-alarm { grid-column: span 4; grid-row: span 2; }
.k-stufen { grid-column: span 2; }
.k-protokolle { grid-column: span 2; }
.k-versuch { grid-column: span 6; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; }
.k-versuch .kachel-text { flex: 1 1 320px; }
.kachel-fuss { flex-basis: 100%; margin: 0; font-size: .8rem; color: var(--p-leise); }
.kachel-fuss a { color: var(--p-weich); }
@media (max-width: 960px) {
  .k-alarm { grid-column: span 6; grid-row: auto; }
  .k-stufen, .k-protokolle { grid-column: span 3; }
}
@media (max-width: 640px) {
  .k-stufen, .k-protokolle { grid-column: span 6; }
}

/* Alarmliste (nach Magic UI „Animated List"): Neues oben, Altes rutscht nach
   unten und verblasst. */
.alarmliste {
  position: relative; flex: 1; min-height: 300px;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
          mask-image: linear-gradient(#000 60%, transparent);
}
.alarmliste ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.alarm {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 4px 12px; align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--p-linie); border-radius: 12px;
  background: var(--p-flaeche-2);
  font-size: .84rem;
  animation: alarm-rein .6s cubic-bezier(.16, 1, .3, 1) both;
}
.alarm-zeichen {
  grid-row: span 2; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(var(--warn-rgb), .12);
}
.alarm-zeichen::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--warn); }
.alarm.gut .alarm-zeichen { background: rgba(var(--gut-rgb), .12); }
.alarm.gut .alarm-zeichen::before { background: var(--gut); border-radius: 50%; }
.alarm.fehler .alarm-zeichen { background: rgba(var(--fehler-rgb), .12); }
.alarm.fehler .alarm-zeichen::before { background: var(--fehler); }
.alarm b { font-weight: 600; }
.alarm time { font-size: .74rem; color: var(--p-leise); font-family: var(--mono); }
.alarm span { grid-column: 2 / -1; color: var(--p-leise); }
@keyframes alarm-rein { from { opacity: 0; transform: translateY(-14px) scale(.96); } }

/* Stufenpunkte aus dem CI-Handbuch: voll, Ring, dünner Ring — plus Wort. */
.mini-stufen { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.mini-stufen li {
  display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center;
  padding: 11px 0; border-top: 1px solid var(--p-linie); font-size: .88rem;
}
.mini-stufen b { font-weight: 600; }
.mini-stufen span { font-size: .78rem; color: var(--p-leise); transition: color .3s; }
.sp { width: 10px; height: 10px; border-radius: 50%; box-sizing: border-box; transition: all .35s cubic-bezier(.16, 1, .3, 1); }
.sp.voll { background: var(--gut); }
.sp.ring { border: 2.8px solid var(--warn); }
.sp.duenn { border: 1px solid var(--p-leise); }
.mini-stufen li.gut span { color: var(--gut); }
.mini-stufen li.warn span { color: var(--warn); }

.mini-konsole {
  display: flex; align-items: center; min-height: 64px;
  padding: 14px 16px; border-radius: 10px;
  background: var(--p-grund); border: 1px solid var(--p-linie);
  font-size: .8rem; color: var(--gut);
}
.mini-konsole::before { content: "›"; color: var(--p-leise); margin-right: 10px; }
.mini-konsole .mk-text::after {
  content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 3px;
  background: var(--p-leise); vertical-align: -2px;
}
.bewegt .mini-konsole .mk-text::after { animation: blinken 1s steps(1) infinite; }

.versuch-mini { display: flex; flex-wrap: wrap; gap: 12px 44px; margin: 0; }
.versuch-mini div { min-width: 7rem; }
.versuch-mini dt { font-size: .8rem; color: var(--p-leise); margin-bottom: 2px; }
.versuch-mini dd { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.versuch-mini .warn dd { color: var(--warn); }

/* ---- Tarifstreifen ------------------------------------------------------------ */

.tarifstreifen {
  display: grid; gap: 28px 40px; align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}
.tarifstreifen h2 { grid-column: 1 / -1; margin: 0; }
.tarifstreifen ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--p-linie); border-radius: 14px; overflow: hidden;
}
.tarifstreifen li { padding: 20px 22px; display: grid; gap: 4px; }
.tarifstreifen li + li { border-left: 1px solid var(--p-linie); }
.tarifstreifen li.hervor { background: var(--p-flaeche); }
.tarifstreifen b { font-size: .9rem; color: var(--p-weich); font-weight: 600; }
.ts-preis { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ts-info { font-size: .82rem; color: var(--p-leise); }
@media (max-width: 760px) {
  .tarifstreifen { grid-template-columns: 1fr; }
  .tarifstreifen ul { grid-template-columns: 1fr; }
  .tarifstreifen li + li { border-left: 0; border-top: 1px solid var(--p-linie); }
}

/* ---- Aufruf am Seitenende ------------------------------------------------------ */

.aufruf-flaeche {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--p-linie-stark); border-radius: 20px;
  background: var(--p-flaeche);
  text-align: center;
}
.aufruf-flaeche::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .08) 1px, transparent 0) 0 0 / 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 110%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 80% at 50% 110%, #000, transparent 70%);
}
.aufruf-flaeche h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 0 auto 14px; max-width: 18ch; }
.aufruf-flaeche > p { color: var(--p-weich); margin: 0 auto 28px; max-width: 46ch; }
.aufruf-knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.aufruf-knoepfe .knopf { min-height: 48px; padding: 0 22px; }
.aufruf-flaeche .aufruf-notiz { font-size: .82rem; color: var(--p-leise); margin: 20px auto 0; }

/* ---- Reiter (Spiele) ----------------------------------------------------------- */

.reiter-leiste {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--p-linie); border-radius: 14px 14px 0 0; overflow: hidden;
  background: var(--p-grund);
}
.reiter-leiste button {
  position: relative; display: grid; gap: 3px; justify-items: start; text-align: left;
  min-height: 72px; padding: 16px 20px 18px;
  background: transparent; color: var(--p-leise);
  border: 0; border-radius: 0;
  font-weight: 400;
  transition: background-color .25s, color .25s;
}
.reiter-leiste button + button { border-left: 1px solid var(--p-linie); }
.reiter-leiste button:hover { background: var(--p-flaeche); color: var(--p-weich); }
.reiter-leiste button[aria-selected="true"] { background: var(--p-flaeche); color: var(--p-text); }
.reiter-name { font-weight: 600; font-size: .96rem; }
.reiter-art { font-family: var(--mono); font-size: .74rem; color: var(--p-leise); }
.reiter-lauf {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--akzent); transform-origin: 0 50%; transform: scaleX(0);
}
.reiter-leiste button[aria-selected="true"] .reiter-lauf { transform: scaleX(1); }
.bewegt [data-reiter].laeuft button[aria-selected="true"] .reiter-lauf { animation: reiter-lauf var(--reiter-dauer, 7s) linear both; }
.bewegt [data-reiter].pausiert button[aria-selected="true"] .reiter-lauf { animation-play-state: paused; }
@keyframes reiter-lauf { from { transform: scaleX(0); } }

.reiter-flaeche {
  border: 1px solid var(--p-linie); border-top: 0; border-radius: 0 0 14px 14px;
  background: var(--p-flaeche);
}
.reiter-inhalt {
  display: grid; gap: 32px 48px; padding: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.reiter-inhalt[hidden] { display: none; }
.bewegt .reiter-inhalt:not([hidden]) { animation: nachricht-rein .5s cubic-bezier(.16, 1, .3, 1) both; }
.ri-text h3 { font-size: 1.4rem; font-weight: 700; margin: 0 0 10px; }
.ri-text > p { color: var(--p-weich); line-height: 1.65; margin: 0 0 22px; }
.ri-daten { display: flex; gap: 32px; margin: 0 0 22px; }
.ri-daten dt { font-size: .78rem; color: var(--p-leise); }
.ri-daten dd { margin: 2px 0 0; font-weight: 600; }
.ri-stufen { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ri-stufen li { padding: 10px 0; border-top: 1px solid var(--p-linie); color: var(--p-weich); font-size: .92rem; }
.ri-stufen b { display: inline-block; min-width: 4.6rem; font-weight: 600; color: var(--p-text); }
.ri-meldungen {
  align-self: start;
  border: 1px solid var(--p-linie); border-radius: 12px; background: var(--p-grund);
  padding: 16px 18px;
}
.ri-titel { font-size: .8rem; color: var(--p-leise); margin: 0 0 12px; }
.ri-m { display: grid; grid-template-columns: 4.6rem 1fr; gap: 12px; margin: 0; padding: 10px 0; border-top: 1px solid var(--p-linie); font-size: .8rem; }
.ri-m b { font-weight: 600; font-size: .8rem; }
.ri-m.s1 b, .ri-m.s2 b { color: var(--warn); }
.ri-m.s3 b { color: var(--gut); }
.ri-m .mono { color: var(--p-weich); overflow-wrap: anywhere; }
.ri-notiz { margin: 16px 0 0; font-size: .84rem; color: var(--p-leise); max-width: none; }
@media (max-width: 860px) {
  .reiter-leiste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reiter-leiste button:nth-child(3) { border-left: 0; }
  .reiter-leiste button:nth-child(n+3) { border-top: 1px solid var(--p-linie); }
  .reiter-inhalt { grid-template-columns: 1fr; padding: 24px 20px; }
}

/* ---- Vergleich und Fragen (Tarife) ---------------------------------------------- */

.vergleich { width: 100%; }
.start .vergleich th, .start .vergleich td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--p-linie); text-align: left; }
.vergleich thead th { font-size: .9rem; font-weight: 600; color: var(--p-weich); }
.vergleich thead th.hervor { color: var(--p-text); }
.vergleich tbody th { font-weight: 400; color: var(--p-leise); width: 34%; }
.vergleich td { font-weight: 600; font-variant-numeric: tabular-nums; }

.fragen { border-top: 1px solid var(--p-linie); max-width: 52rem; }
.fragen details { border-bottom: 1px solid var(--p-linie); }
.fragen summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 64px; padding: 16px 0;
  font-weight: 600; font-size: 1.04rem;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 1.5px solid var(--p-leise); border-bottom: 1.5px solid var(--p-leise);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}
.fragen details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.fragen summary:hover { color: var(--p-text); }
.fragen .antwort p { color: var(--p-weich); line-height: 1.65; margin: 0 0 20px; max-width: 60ch; }
/* Höhe animiert bewusst: ::details-content hat keine andere Möglichkeit, und
   es sind je Antwort zwei, drei Zeilen. Ohne Unterstützung öffnet es sofort. */
@supports (interpolate-size: allow-keywords) {
  .fragen { interpolate-size: allow-keywords; }
  .fragen details::details-content { height: 0; overflow: hidden; transition: height .4s cubic-bezier(.16, 1, .3, 1), content-visibility .4s allow-discrete; }
  .fragen details[open]::details-content { height: auto; }
}
.tarif-laeuft { margin-top: auto; font-size: .9rem; font-weight: 600; color: var(--gut); }

/* ---- Über -------------------------------------------------------------------- */

.betreiber-raster { display: grid; gap: 40px 64px; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.betreiber-raster p { color: var(--p-weich); line-height: 1.7; max-width: 60ch; }
.steckbrief { margin: 0; border: 1px solid var(--p-linie); border-radius: 14px; background: var(--p-flaeche); padding: 6px 22px; }
.steckbrief div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--p-linie); }
.steckbrief div:last-child { border-bottom: 0; }
.steckbrief dt { font-size: .78rem; color: var(--p-leise); }
.steckbrief dd { margin: 0; font-weight: 600; }
.grundsaetze { list-style: none; counter-reset: g; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grundsaetze li { counter-increment: g; padding: 24px 28px 8px 0; color: var(--p-leise); line-height: 1.6; border-top: 1px solid var(--p-linie-stark); }
.grundsaetze li + li { padding-left: 28px; border-left: 1px solid var(--p-linie); }
.grundsaetze b { display: block; color: var(--p-text); font-weight: 700; margin-bottom: 6px; }
@media (max-width: 860px) {
  .betreiber-raster { grid-template-columns: 1fr; }
  .grundsaetze { grid-template-columns: 1fr; }
  .grundsaetze li + li { padding-left: 0; border-left: 0; }
}

/* ---- Formulare (Konto und öffentliche Seiten) ------------------------------------------------------------------ */

.formular { display: grid; gap: 20px; max-width: 760px; }
.formular.tafel { padding: 24px; }
.formular fieldset { border: 0; margin: 0; padding: 0; }
.formular legend, .formular label { font-size: .86rem; font-weight: 600; margin-bottom: 8px; display: block; padding: 0; }
.formular .optional { font-weight: 400; color: var(--p-leise); margin-left: 6px; }
.formular .feld { margin: 0; }
.formular input[type="text"], .formular input[type="number"], .formular select {
  min-height: 40px; font-size: .92rem;
}
.formular .hilfe { font-size: .78rem; }
.feld-reihe { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.formular-fuss { display: flex; gap: 10px; padding-top: 4px; }

/* ---- Spielwunsch (/spiele#wunsch) ------------------------------------------------ */

.wunsch-raster { display: grid; gap: 40px 56px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.fehlt-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--p-linie); }
.fehlt-liste li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--p-linie); }
.fehlt-liste b { font-weight: 600; }
.fehlt-liste span { font-size: .88rem; color: var(--p-leise); }
.wunsch-tafel {
  border: 1px solid var(--p-linie-stark); border-radius: 16px; background: var(--p-flaeche);
  padding: clamp(20px, 3vw, 32px);
}
.wunsch-titel { font-size: 1.2rem; font-weight: 700; margin: 0 0 18px; }
.wunsch-formular { max-width: none; }
.formular textarea { width: 100%; min-height: 88px; resize: vertical; font: inherit; font-size: .92rem; }
.feld-fehler { color: var(--fehler); font-size: .82rem; margin: 6px 0 0; max-width: none; }
.feld-fehler.oben { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: rgba(var(--fehler-rgb), .08); border: 1px solid rgba(var(--fehler-rgb), .35); }
.hat-fehler input, .hat-fehler textarea { border-color: var(--fehler); }
.wunsch-danke, .wunsch-aus { display: grid; gap: 12px; }
.wunsch-danke p, .wunsch-aus p { color: var(--p-weich); margin: 0; line-height: 1.6; }
.wunsch-aus { padding: 4px 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.formular .chip { position: relative; display: inline-flex; margin: 0; padding: 0; font-weight: 400; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--p-linie-stark); border-radius: 8px; background: var(--p-grund);
  font-size: .86rem; color: var(--p-weich);
  transition: border-color .15s, background-color .15s, color .15s;
}
.chip:hover span { border-color: var(--p-leise); color: var(--p-text); }
.chip input:checked + span { border-color: var(--akzent); background: var(--p-flaeche-2); color: var(--p-text); }
.chip input:focus-visible + span { outline: 2px solid var(--akzent); outline-offset: 2px; }

.honigtopf { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Das Cap-Widget ist ein Web Component mit Shadow DOM, gestaltet über seine
   eigenen CSS-Variablen (@cap.js/widget, src/cap.css). */
cap-widget {
  --cap-background: var(--p-grund);
  --cap-border-color: var(--p-linie-stark);
  --cap-border-radius: 10px;
  --cap-color: var(--p-text);
  --cap-checkbox-background: var(--p-flaeche-2);
  --cap-checkbox-border: 1px solid var(--p-leise);
  --cap-checkbox-border-radius: 6px;
  --cap-spinner-color: var(--akzent);
  --cap-spinner-background-color: var(--p-flaeche-2);
  --cap-focus-ring: var(--akzent);
  --cap-font: var(--schrift);
  --cap-troubleshoot-color: var(--p-leise);
  --cap-invalid-border-color: var(--fehler);
  display: block; margin-bottom: 8px;
}
.formular-fuss { align-items: center; flex-wrap: wrap; }
.formular-fuss .hilfe { margin: 0; }
@media (max-width: 900px) { .wunsch-raster { grid-template-columns: 1fr; } }

/* =============================================================================
   Bewegung
   Vorbild gemessen: linear.app (84 laufende Animationen), checklyhq.com (47).
   `html.bewegt` setzt frueh.js — nur dann darf etwas für seinen Auftritt
   versteckt werden. Ohne JS und bei „Bewegung reduzieren" ist alles sofort da.
   ============================================================================= */

@property --winkel { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* ---- Netz hinter allen Seiten (portslie.js §7) ------------------------------- */

.netz {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 30%, #000 35%, rgba(0, 0, 0, .35) 100%);
          mask-image: radial-gradient(ellipse 120% 90% at 50% 30%, #000 35%, rgba(0, 0, 0, .35) 100%);
}
html:not(.js) .netz { display: none; }

/* ---- Held: Portfeld und Zeilen ------------------------------------------------ */

.held { position: relative; isolation: isolate; }
.portfeld {
  position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 0; width: 100vw; height: 760px; transform: translateX(-50%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 30%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 70% at 70% 30%, #000 10%, transparent 75%);
}

.held h1 .zeile { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.held h1 .zeile > span { display: inline-block; }
.held h1 em { font-style: normal; position: relative; white-space: nowrap; }
.held h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .09em;
  background: var(--warn); border-radius: 2px;
  transform-origin: 0 50%;
}
.bewegt .held h1 .zeile > span { animation: zeile-hoch 1s cubic-bezier(.16, 1, .3, 1) both; }
.bewegt .held h1 .zeile + .zeile > span { animation-delay: .12s; }
.bewegt .held h1 em::after { animation: strich 0.7s cubic-bezier(.65, 0, .35, 1) 1.1s both; }
@keyframes zeile-hoch { from { transform: translateY(105%); } }
@keyframes strich { from { transform: scaleX(0); } }

.bewegt .auftritt { animation: auftritt .9s cubic-bezier(.16, 1, .3, 1) both; }
.bewegt .held-text.auftritt { animation-delay: .35s; }
.bewegt .messbild.auftritt { animation-delay: .55s; }
@keyframes auftritt { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } }

.handlung .knopf .pfeil { display: inline-block; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.handlung .knopf:hover .pfeil { transform: translateX(4px); }

/* ---- Messbild live ------------------------------------------------------------- */

.messbild { position: relative; overflow: hidden; }
.messbild-kopf { align-items: center; margin-bottom: 8px; }
.mb-ziel b { font-weight: 620; color: var(--p-text); margin-right: 8px; }
.mb-ziel .mono { font-size: .78rem; color: var(--p-leise); }
.mb-rechts { display: inline-flex; align-items: center; gap: 16px; }
.mb-live { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--p-leise); }
.mb-live i {
  position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--gut);
}
.bewegt .messbild.live .mb-live i::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--gut); animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { to { transform: scale(3.2); opacity: 0; } }
.mb-uhr {
  font-family: var(--mono); font-size: .86rem; color: var(--p-text);
  font-variant-numeric: tabular-nums;
  padding: 3px 8px; border: 1px solid var(--p-linie); border-radius: 6px;
}
p.messbild-hinweis { font-size: .8rem; color: var(--p-leise); margin: 0 0 22px; max-width: none; }

.t.neu { animation: einlaufen .55s cubic-bezier(.16, 1, .3, 1) .08s backwards; }
.reihe-fazit { transition: color .3s; }
.reihe-fazit.gut { color: var(--gut); }
.reihe-fazit.fehler { color: var(--fehler); }

.messbild.live .marken { display: none; }
.messbild.live .messbild-flaeche { row-gap: 14px; }

.ereignisliste {
  list-style: none; margin: 22px 0 0; padding: 16px 0 0;
  border-top: 1px solid var(--p-linie);
  display: grid; gap: 8px; min-height: 92px;
}
.ereignisliste:empty { display: none; }
.ereignis {
  display: grid; grid-template-columns: 10px 52px 1fr; align-items: baseline; gap: 10px;
  font-size: .86rem; color: var(--p-weich);
  animation: ereignis-rein .5s cubic-bezier(.16, 1, .3, 1) both;
}
.ereignis::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--p-leise); align-self: center; }
.ereignis.warn::before { background: var(--warn); }
.ereignis.fehler::before { background: var(--fehler); }
.ereignis.gut::before { background: var(--gut); }
.ereignis.alarm::before { background: var(--p-text); border-radius: 50%; }
.ereignis time { font-family: var(--mono); font-size: .8rem; color: var(--p-leise); font-variant-numeric: tabular-nums; }
.ereignis:nth-child(2) { opacity: .75; }
.ereignis:nth-child(3) { opacity: .5; }
@keyframes ereignis-rein { from { opacity: 0; transform: translateY(-8px); } }

.toast {
  position: absolute; bottom: 18px; right: 20px; z-index: 2;
  width: min(320px, calc(100% - 40px));
  display: grid; gap: 3px;
  padding: 12px 14px 13px 30px;
  border: 1px solid var(--p-linie-stark); border-radius: 10px;
  background: var(--p-flaeche-2);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
  font-size: .84rem;
  opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none;
  transition: opacity .35s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
}
.toast::before {
  content: ""; position: absolute; left: 13px; top: 17px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--warn);
}
.toast.gut::before { background: var(--gut); }
.toast.fehler::before { background: var(--fehler); }
.toast.da { opacity: 1; transform: none; }
.toast-quelle { font-size: .74rem; color: var(--p-leise); }
.toast-titel { font-weight: 620; }
.toast-zeile { color: var(--p-weich); }
.messbild:not(.live) .toast { display: none; }

@media (max-width: 1000px) {
  .messbild { overflow: hidden; }
  .toast { bottom: 16px; right: 16px; }
  .mb-ziel .mono { display: block; margin-top: 2px; }
}

/* ---- Messkonsole und Stufenfolge ----------------------------------------------- */

.messkonsole {
  margin: 0 0 40px;
  border: 1px solid var(--p-linie); border-radius: 12px;
  background: var(--p-flaeche);
  overflow: hidden;
}
.mk-kopf {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  padding: 12px 18px; border-bottom: 1px solid var(--p-linie);
  font-size: .84rem;
}
.mk-titel { font-weight: 620; }
.mk-ziel { color: var(--p-text); font-size: .8rem; min-height: 1.2em; }
.mk-ziel::after {
  content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px;
  background: var(--p-leise); vertical-align: -2px;
}
.bewegt .mk-ziel::after { animation: blinken 1s steps(1) infinite; }
@keyframes blinken { 50% { opacity: 0; } }
.mk-hinweis { margin-left: auto; color: var(--p-leise); font-size: .76rem; }
.mk-zeilen { padding: 14px 18px 16px; min-height: 148px; font-size: .8rem; line-height: 1.5; }
.mk-zeile {
  display: grid; grid-template-columns: 62px auto minmax(24px, 1fr) auto 52px;
  align-items: baseline; gap: 12px; padding: 4px 0;
  animation: ereignis-rein .35s cubic-bezier(.16, 1, .3, 1) both;
}
.mk-stufe { color: var(--p-leise); }
.mk-was { color: var(--p-text); }
.mk-punkte { border-bottom: 1px dotted var(--p-linie-stark); transform: translateY(-4px); }
.mk-erg { text-align: right; }
.mk-ms { text-align: right; color: var(--p-leise); }
.mk-zeile.laeuft .mk-punkte {
  border: 0; height: 1px; transform: translateY(-4px);
  background: linear-gradient(90deg, transparent, var(--p-leise), transparent) 0 0 / 40% 100% no-repeat;
  animation: suchen .9s linear infinite;
}
@keyframes suchen { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.mk-zeile.ok .mk-erg { color: var(--gut); }
.mk-zeile.ok .mk-erg::before { content: "✓ "; }
.mk-zeile.schlecht .mk-erg { color: var(--warn); }
.mk-zeile.schlecht .mk-erg::before { content: "✕ "; }
.mk-zeile.aus { opacity: .38; }
.mk-fazit { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--p-linie); animation: ereignis-rein .4s both; }
.mk-fazit.gut { color: var(--gut); }
.mk-fazit.warn { color: var(--warn); }
.mk-fazit.fehler { color: var(--fehler); }
@media (max-width: 640px) {
  .mk-zeilen { font-size: .74rem; padding: 12px 14px 14px; }
  .mk-zeile { grid-template-columns: 58px 1fr auto; gap: 8px; }
  .mk-stufe { white-space: nowrap; }
  .mk-punkte, .mk-ms { display: none; }
  .mk-hinweis { margin-left: 0; }
}

.stufenfolge { position: relative; --fortschritt: 0; }
.stufenfolge::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: var(--gut);
  transform-origin: 0 50%; transform: scaleX(var(--fortschritt));
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.stufenfolge li { transition: background-color .4s; }
.stufenfolge li[data-zustand] .stufe-nr { transition: border-color .3s, color .3s, background-color .3s; }
.stufenfolge li[data-zustand="laeuft"] .stufe-nr { border-color: var(--p-text); color: var(--p-text); }
.stufenfolge li[data-zustand="ok"] .stufe-nr { border-color: var(--gut); color: var(--gut); }
.stufenfolge li[data-zustand="schlecht"] .stufe-nr { border-color: var(--warn); color: var(--warn); background: rgba(var(--warn-rgb), .1); }
.stufenfolge li.laeuft .stufe-nr { animation: puls 1s ease-in-out infinite; }
@keyframes puls { 50% { box-shadow: 0 0 0 5px rgba(255, 255, 255, .06); } }

/* ---- Tabelle: jede Zeile wird geprüft ---------------------------------------- */

.punkt {
  position: relative; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%; margin-right: 10px;
  background: var(--gut); vertical-align: 1px;
}
.bewegt .protokolle.wartet tr:not(.geprueft) .punkt { background: var(--p-linie-stark); }
.protokolle tr.prueft .punkt { background: var(--p-leise); animation: puls 0.6s ease-in-out infinite; }
.protokolle tr.geprueft .punkt { background: var(--gut); }
.protokolle tr.geprueft .punkt::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--gut); animation: ping 1s cubic-bezier(0, 0, .2, 1) 1 both;
}
.protokolle tbody tr { transition: background-color .5s; }
.protokolle tr.prueft { background: rgba(255, 255, 255, .025); }

/* ---- Nachricht trifft ein ------------------------------------------------------ */

.n-absender { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .88rem; }
.n-avatar { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--p-linie-stark); background: var(--p-grund) url("/statisch/marke/logo/signet-auf-dunkel.svg") center / auto 62% no-repeat; }
.n-bot { font-size: .68rem; padding: 1px 5px; border-radius: 4px; background: var(--p-flaeche-2); color: var(--p-weich); border: 1px solid var(--p-linie); }
.n-absender time { font-size: .76rem; color: var(--p-leise); }
.n-entwarnung { margin-top: 18px; }
.n-entwarnung .n-absender { margin-bottom: 4px; }
.n-tippt { display: none; align-items: center; gap: 4px; font-size: .8rem; color: var(--p-leise); padding: 6px 0; }
.n-tippt i { width: 5px; height: 5px; border-radius: 50%; background: var(--p-leise); animation: tippen 1s ease-in-out infinite; }
.n-tippt i:nth-child(2) { animation-delay: .15s; }
.n-tippt i:nth-child(3) { animation-delay: .3s; margin-right: 6px; }
@keyframes tippen { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }

.nachricht.wartet .n-inhalt { display: none; }
.nachricht.tippt .n-tippt:not(.n-tippt-2),
.nachricht.tippt-2 .n-tippt-2 { display: flex; }
.nachricht.da .n-inhalt:not(.n-entwarnung),
.nachricht.entwarnt .n-entwarnung { display: block; animation: nachricht-rein .5s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes nachricht-rein { from { opacity: 0; transform: translateY(8px) scale(.985); } }

/* ---- Versuch ---------------------------------------------------------------- */

.pz { display: inline-block; transition: opacity .4s, transform .5s cubic-bezier(.16, 1, .3, 1); }
.pz.versteckt { opacity: 0; transform: translateY(-6px); }

/* ---- Tarif: Randlicht um den hervorgehobenen Tarif --------------------------- */

.tarifspalte.hervor { position: relative; }
/* Nur mit Bewegung: stillstehend ist der Kegel ein abgerissener Strich links oben. */
html:not(.bewegt) .tarifspalte.hervor::before { content: none; }
.tarifspalte.hervor::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  padding: 1px; border-radius: inherit;
  background: conic-gradient(from var(--winkel), transparent 0 72%, rgba(var(--akzent-r), var(--akzent-g), var(--akzent-b), .9) 86%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.bewegt .tarifspalte.hervor::before { animation: randlicht 5s linear infinite; }
@keyframes randlicht { to { --winkel: 360deg; } }

/* ---- Auftritte beim Scrollen ------------------------------------------------- */

.bewegt .enthuellen {
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1), filter .8s;
}
.bewegt .enthuellen:not(.gezeigt) { opacity: 0; transform: translateY(26px); filter: blur(5px); }
.bewegt .teil-kopf.enthuellen p { transition: opacity .8s .15s, transform .9s .15s cubic-bezier(.16, 1, .3, 1); }
.bewegt .teil-kopf.enthuellen:not(.gezeigt) p { opacity: 0; transform: translateY(12px); }
.bewegt .grenzliste.enthuellen li,
.bewegt .regeln.enthuellen > div,
.bewegt .tarifzeile.enthuellen .tarifspalte {
  transition: opacity .7s, transform .8s cubic-bezier(.16, 1, .3, 1);
}
.bewegt .grenzliste.enthuellen:not(.gezeigt) li,
.bewegt .regeln.enthuellen:not(.gezeigt) > div,
.bewegt .tarifzeile.enthuellen:not(.gezeigt) .tarifspalte { opacity: 0; transform: translateY(18px); }
.bewegt .grenzliste.enthuellen li:nth-child(2), .bewegt .regeln.enthuellen > div:nth-child(2), .bewegt .tarifzeile.enthuellen .tarifspalte:nth-child(2) { transition-delay: .1s; }
.bewegt .grenzliste.enthuellen li:nth-child(3), .bewegt .regeln.enthuellen > div:nth-child(3), .bewegt .tarifzeile.enthuellen .tarifspalte:nth-child(3) { transition-delay: .2s; }
.bewegt .grenzliste.enthuellen li:nth-child(4) { transition-delay: .3s; }

/* ---- Bewegung aus ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Touch: 44 px auf Geräten ohne Maus (UI/UX-Pro-Max-Lauf 25.09.2026) ---------
   Auf dem Schreibtisch bleiben die Knöpfe dicht; mit dem Finger braucht es die
   Fläche (Apple HIG 44 pt, WCAG 2.5.5). Gilt für Knöpfe, Felder und Auswahllisten. */
@media (pointer: coarse), (max-width: 880px) {
  button, .knopf, a.knopf,
  input[type="text"], input[type="email"], input[type="password"], input[type="number"],
  input[type="search"], input[type="url"], select, .menue-knopf { min-height: 44px; }
  .klein-knopf, button.klein, .zeilenform select, .zeilenform input, .zeilenform button { min-height: 44px; }
}

/* ---- Rechtstexte (vorlagen/rechtstext.html) -------------------------------- */

.rechtstext { max-width: 72ch; margin: 0 auto; padding-bottom: var(--p-luft); }
.rechtstext h1 { text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
.rechtstext h2 { margin-top: 2.4em; scroll-margin-top: calc(var(--p-kopf) + 16px); text-wrap: balance; }
.rechtstext h3 { margin-top: 1.6em; }
.rechtstext p, .rechtstext li { text-wrap: pretty; line-height: 1.65; }
.rechts-reiter {
  display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 36px;
  border-bottom: 1px solid var(--p-linie);
}
.rechts-reiter a {
  padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center;
  color: var(--p-leise); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.rechts-reiter a:hover { color: var(--p-text); }
.rechts-reiter a[aria-current="page"] { color: var(--p-text); border-bottom-color: var(--akzent); }
.rechts-fuss { margin-top: 3em; padding-top: 16px; border-top: 1px solid var(--p-linie); color: var(--p-leise); font-size: .9rem; }
.rechtstext .muster {
  border: 1px solid var(--p-linie-stark); border-radius: var(--p-r); padding: 4px 24px 20px;
  background: var(--p-flaeche);
}
.rechtstext .muster > h2:first-child { margin-top: .9em; }
.rechtstext .formular-zeile { border-bottom: 1px dashed var(--p-linie-stark); min-height: 2.2em; margin: 0 0 4px; }
.rechtstext .leistung-tabelle { width: 100%; border-collapse: collapse; margin: 8px 0 24px; }
.rechtstext .leistung-tabelle th, .rechtstext .leistung-tabelle td {
  text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--p-linie); vertical-align: top;
  white-space: normal;
}
.rechtstext .leistung-tabelle td.num { text-align: right; font-variant-numeric: tabular-nums; }
@media print {
  .kopf, .fuss, .rechts-reiter { display: none; }
  .rechtstext { max-width: none; color: #000; }
  .rechtstext .muster { background: none; border-color: #999; }
}
.rechtstext .avv table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: .95rem; }
.rechtstext .avv th, .rechtstext .avv td {
  text-align: left; vertical-align: top; padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--p-linie); white-space: normal; overflow-wrap: anywhere;
}
.rechtstext .avv blockquote { margin: 16px 0; padding: 4px 18px; border: 1px solid var(--p-linie-stark); border-radius: var(--p-r); }
.rechtstext .avv h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-top: 2em; }
.rechtstext .avv h1:first-child { margin-top: 0; }
@media (max-width: 640px) { .rechtstext .avv table { display: block; overflow-x: auto; } }
