/* Immer noch stark – Aussehen (Design 2026: hell, ruhig, eine Akzentfarbe)
   Weiß #FFFFFF, Flächen #F5F6F8, Linien #E4E7EC, Text #1A1D23 / #4A5160.
   Die Akzentfarbe nur für: Hauptknopf, Fortschritt, aktiven Reiter, Eingeschaltetes/Gewähltes.
   Altes Aussehen: style_alt.css */

@font-face {
  font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("schrift/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("schrift/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("schrift/atkinson-hyperlegible-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("schrift/atkinson-hyperlegible-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --hintergrund: #FFFFFF;
  --flaeche: #F5F6F8;        /* Karten, Abschnitte */
  --flaeche-knopf: #EBEDF1;  /* Zweitknöpfe */
  --linie: #E4E7EC;
  --text: #1A1D23;
  --text-leise: #4A5160;     /* 7,9 : 1 auf Weiß */
  --warn: #B42318;
  --warn-hell: #FEF3F2;
  --warn-linie: #FECDCA;
  --schatten: 0 1px 2px rgba(16, 24, 40, 0.05), 0 2px 8px rgba(16, 24, 40, 0.04);
  --radius: 16px;
  --radius-gross: 20px;
  /* Akzent Orange (gewählt am 02.11.2026).
     --akzent: Knöpfe, Gewähltes, oranger Text – Weiß darauf 5,2 : 1.
     --akzent-deko: helleres Koralle nur für große Flächen ohne Text (Kreis-Timer, Balken) – 3,6 : 1 zu Weiß.
     --akzent-hell: zarte Fläche (Pille hinter dem aktiven Reiter) – Orange darauf 4,6 : 1. */
  --akzent: #C2410C;
  --akzent-dunkel: #9A3412;
  --akzent-deko: #E8590C;
  --akzent-hell: #FDEDE4;
  font-size: 20px;
}
html[data-schrift="gross"] { font-size: 23px; }
html[data-schrift="sehrgross"] { font-size: 26px; }

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

body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font-family: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.4rem 16px calc(7rem + env(safe-area-inset-bottom));
  outline: none;
}
body.ohne-nav main { padding-bottom: 2rem; }
main:focus, main:focus-visible { outline: none; } /* nur für Vorleseprogramme fokussiert, kein Rahmen */
/* Sanftes Einblenden, wenn ein Bildschirm wechselt */
main > * { animation: auftauchen 0.18s ease-out both; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

h1 { font-size: 1.6rem; line-height: 1.25; font-weight: 700; margin: 0.4rem 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: 1.4rem; line-height: 1.3; font-weight: 700; margin: 2rem 0 0.7rem; }
p { margin: 0 0 0.9rem; }
a { color: var(--text); text-underline-offset: 0.18em; }
.leise { color: var(--text-leise); }
.klein { font-size: 0.9rem; }   /* nie unter 18px bei Normalgröße */
.mitte { text-align: center; }

/* ── Knöpfe ─────────────────────────────────────────────────────────── */
.knopf {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 100%; min-height: 3.2rem; padding: 0.7rem 1.2rem; margin: 0.7rem 0;
  border: none; border-radius: var(--radius);
  background: var(--akzent); color: #fff; box-shadow: var(--schatten);
  font: inherit; font-size: 1.1rem; font-weight: 700; text-decoration: none; text-align: center;
  cursor: pointer; touch-action: manipulation;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.knopf:hover { background: var(--akzent-dunkel); }
.knopf:active { transform: scale(0.985); }
.knopf.zweit { background: var(--flaeche-knopf); color: var(--text); box-shadow: none; }
.knopf.zweit:hover { background: #DFE2E8; }
.knopf.warn { background: var(--warn); }
.knopf.warn:hover { background: #912018; }
.knopf.zweit.gefahr { color: var(--warn); }
.knopf.riesig { min-height: 3.6rem; font-size: 1.2rem; }
.knopf[disabled] { opacity: 0.4; cursor: not-allowed; }
.knopf-zeile { display: flex; gap: 0.8rem; }
.knopf-zeile .knopf { flex: 1; }
.textknopf {
  background: none; border: none; color: var(--text); font: inherit; font-weight: 700;
  text-decoration: underline; text-underline-offset: 0.18em; padding: 0.8rem 0.2rem; cursor: pointer; min-height: 2.8rem;
}
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 6px; }

/* ── Auswahl: Karten mit Häkchen ───────────────────────────────────── */
.wahl-liste { display: grid; gap: 0.7rem; margin: 1rem 0 1.4rem; }
.wahl {
  display: flex; align-items: center; gap: 0.9rem; width: 100%;
  min-height: 3.2rem; padding: 0.8rem 1rem;
  border: 1px solid var(--linie); border-radius: var(--radius);
  background: var(--hintergrund); color: var(--text); box-shadow: var(--schatten);
  font: inherit; font-size: 1.05rem; font-weight: 700; text-align: start; cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.wahl .kasten {
  flex: none; order: 2; margin-inline-start: auto; width: 1.7rem; height: 1.7rem;
  border: 2px solid #9AA1AE; border-radius: 50%;
  display: grid; place-items: center; transition: background-color 0.15s ease;
}
.wahl[aria-pressed="true"] { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent); }
.wahl[aria-pressed="true"] .kasten { background: var(--akzent); border-color: var(--akzent); }
.wahl[aria-pressed="true"] .kasten::after {
  content: ""; width: 0.4rem; height: 0.75rem; margin-top: -0.15rem;
  border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.wahl small { display: block; font-weight: 400; color: var(--text-leise); font-size: 0.9rem; }
.tage { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.4rem; margin: 1rem 0; }
.tage .wahl { justify-content: center; padding: 0; min-height: 3.2rem; font-size: 1rem; text-align: center; }
.tage .wahl .kasten { display: none; }
.tage .wahl[aria-pressed="true"] { background: var(--akzent); color: #fff; }

/* Segmente: eine Wahl aus wenigen (z. B. Schriftgröße) */
.segmente {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px;
  padding: 4px; margin: 0.6rem 0; background: var(--flaeche-knopf); border-radius: var(--radius);
}
.segmente button {
  min-height: 2.8rem; padding: 0.4rem 0.5rem; border: none; border-radius: 12px;
  background: transparent; color: var(--text); font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.segmente button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.14); }

/* Schalter (an/aus) */
.schalter-zeile {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  min-height: 3.2rem; padding: 0.6rem 0; border: none; background: none; color: var(--text);
  font: inherit; font-size: 1.05rem; font-weight: 700; text-align: start; cursor: pointer;
}
.schalter-zeile small { display: block; font-weight: 400; font-size: 0.9rem; color: var(--text-leise); }
.schalter {
  flex: none; position: relative; width: 3.5rem; height: 2.1rem; border-radius: 999px;
  background: #9AA1AE; transition: background-color 0.18s ease;
}
.schalter::after {
  content: ""; position: absolute; top: 0.2rem; inset-inline-start: 0.2rem; width: 1.7rem; height: 1.7rem;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.25);
  transition: transform 0.18s ease;
}
[aria-checked="true"] > .schalter { background: var(--akzent); }
[aria-checked="true"] > .schalter::after { transform: translateX(1.4rem); }
[dir="rtl"] [aria-checked="true"] > .schalter::after { transform: translateX(-1.4rem); }

.fortschritt-balken { height: 8px; background: var(--linie); border-radius: 4px; overflow: hidden; margin-bottom: 0.4rem; }
.fortschritt-balken > div { height: 100%; background: var(--akzent-deko); border-radius: 4px; transition: width 0.4s ease; }

/* ── Karten & Hinweise ─────────────────────────────────────────────── */
.karte {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-gross);
  padding: 1.1rem 1.2rem; margin: 1rem 0;
}
.karte h2 { margin-top: 0; font-size: 1.25rem; }
.karte > .knopf:last-child { margin-bottom: 0; }
.karte .knopf.zweit { background: #fff; border: 1px solid var(--linie); }
.karte .knopf.zweit:hover { background: #F0F2F5; }
.abschnitt { margin: 2rem 0 0; }
.abschnitt > h2 { margin: 0 0 0.6rem; }
.hinweis {
  background: var(--flaeche); border: 1px solid var(--linie);
  padding: 0.9rem 1rem; border-radius: var(--radius); margin: 1rem 0;
}
.hinweis.warn { background: var(--warn-hell); border-color: var(--warn-linie); color: #7A271A; }
.karte.warn { background: var(--warn-hell); border-color: var(--warn-linie); }
.karte.warn h2 { color: var(--warn); }
.gross-zahl { font-size: 2.4rem; font-weight: 700; line-height: 1.2; margin: 0; }
.wahl.gesperrt { background: var(--flaeche); box-shadow: none; color: var(--text-leise); cursor: default; }
.arzt-hinweis { font-size: 0.9rem; color: var(--text-leise); text-align: center; margin-top: 2rem; }
.liste { padding-inline-start: 1.3rem; margin: 0.4rem 0 1rem; }
.liste li { margin-bottom: 0.6rem; }
.marke {
  display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px;
  background: var(--flaeche-knopf); color: var(--text); font-size: 0.9rem; font-weight: 700;
}

/* ── Eingabefelder (Passwort, Uhrzeit) ─────────────────────────────── */
.feld-titel { display: block; font-weight: 700; margin: 0.8rem 0 0.3rem; }
.eingabe {
  display: block; width: 100%; min-height: 3.2rem; padding: 0.6rem 1rem;
  border: 2px solid #9AA1AE; border-radius: var(--radius); background: #fff; color: var(--text);
  font: inherit; font-size: 1.2rem;
}
.eingabe:focus { border-color: var(--akzent); outline: none; box-shadow: 0 0 0 3px var(--akzent-hell); }
input[type="time"].eingabe { max-width: 12rem; }
.zugang label { display: block; font-weight: 700; margin: 1.2rem 0 0.4rem; }

/* ── Bildanleitung „App auf den Startbildschirm“ (iPhone) ──────────── */
.anleitung { list-style: none; padding: 0; margin: 1rem 0; }
.anleitung li { display: flex; gap: 1rem; align-items: flex-start; }
.anleitung h2 { font-size: 1.15rem; margin: 0.1rem 0 0.4rem; }
.anleitung p:last-child { margin-bottom: 0; }
.anleitung .bild {
  flex: none; width: 4.4rem; height: 4.4rem; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
}
.anleitung svg { width: 2.8rem; height: 2.8rem; fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.anleitung svg.ios-blau { stroke: #0A60D0; }   /* so blau wie das Teilen-Zeichen in Safari */
.anleitung .ios-knopf { color: #0A60D0; font-weight: 700; font-size: 0.72rem; }
.anleitung .app-symbol { width: 3.4rem; height: 3.4rem; border-radius: 0.8rem; }

/* ── Heute ──────────────────────────────────────────────────────────── */
.wochen-titel { font-size: 1.7rem; line-height: 1.2; font-weight: 700; margin: 0.2rem 0 1rem; letter-spacing: -0.01em; }
.streifen {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; margin: 1rem 0 1.2rem;
  padding: 0.9rem 0.4rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-gross);
}
.tag { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; font-size: 0.9rem; font-weight: 700; color: var(--text-leise); }
.tag .punkt {
  width: min(2.3rem, 100%); aspect-ratio: 1; border-radius: 50%; border: 2px solid transparent;
  display: grid; place-items: center; background: transparent;
}
.tag.geplant .punkt { border: 2px solid #9AA1AE; background: #fff; }
.tag.heute { color: var(--text); }
.tag.heute .punkt { box-shadow: 0 0 0 4px var(--akzent-hell); border-color: var(--akzent); }
.tag.erledigt .punkt { background: var(--akzent); border-color: var(--akzent); animation: fuellen 0.6s ease-out both; }
.tag.erledigt .punkt svg { width: 1.2rem; height: 1.2rem; stroke: #fff; stroke-width: 3.5; fill: none; }
@keyframes fuellen { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ── Navigation unten ───────────────────────────────────────────────── */
#navigation {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--linie);
  box-shadow: 0 -2px 12px rgba(16, 24, 40, 0.05);
  padding: 0.3rem 0 calc(0.3rem + env(safe-area-inset-bottom));
}
#navigation[hidden] { display: none; }
#navigation a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  min-height: 3.6rem; color: var(--text-leise); text-decoration: none; font-size: 0.9rem; font-weight: 700;
}
#navigation svg {
  width: 1.5rem; height: 1.5rem; padding: 0.25rem 1rem; box-sizing: content-box; border-radius: 999px;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  transition: background-color 0.18s ease;
}
#navigation a[aria-current="page"] { color: var(--text); }
#navigation a[aria-current="page"] svg { background: var(--akzent-hell); color: var(--akzent); }

/* ── Trainings-Player ───────────────────────────────────────────────── */
.player-kopf { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.8rem; }
.player-kopf .fortschritt-balken { flex: 1; min-width: 1.5rem; margin: 0; }
@media (max-width: 340px) { .player-kopf .rundknopf { min-width: 2.8rem; padding: 0 0.6rem; } }
.rundknopf {
  flex: none; min-width: 2.8rem; height: 2.8rem; border-radius: 999px; padding: 0 0.9rem;
  border: none; background: var(--flaeche-knopf); color: var(--text);
  font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
}
.rundknopf svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* Stopp: Rot mit Stopp-Schild – bewusst anders als das Orange (weißer Grund, roter Rand) */
.rundknopf.warn { background: #fff; color: var(--warn); box-shadow: inset 0 0 0 2px var(--warn); padding-inline: 0.6rem 0.8rem; }
.rundknopf.warn:hover { background: var(--warn-hell); }
.rundknopf.warn svg { stroke-width: 2.2; }
.rundknopf.warn svg .schild { fill: var(--warn); stroke: var(--warn); }
.player-oben { font-weight: 700; color: var(--text-leise); margin: 0.2rem 0; }
.uebung-name { font-size: 1.6rem; margin: 0.1rem 0 0.4rem; }
.dosis { font-size: 1.25rem; font-weight: 700; color: var(--text); margin: 0.3rem 0 0.6rem; }

.medium {
  position: relative; aspect-ratio: 2 / 3; width: min(100%, calc(40vh * 2 / 3)); margin: 0 auto 0.6rem;
  border-radius: var(--radius-gross); overflow: hidden; background: var(--flaeche); border: 1px solid var(--linie);
}
.medium { transition: width 0.4s ease; }
.medium.laeuft { width: min(60%, calc(26vh * 2 / 3)); }
.medium img, .medium video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* Videos werden ganz gezeigt (nichts abgeschnitten), egal ob Hoch- oder Querformat. */
.medium.video { background: #fff; }
.medium video { object-fit: contain; object-position: center; }
.medium img.ende { animation: ueberblenden 7s ease-in-out infinite; }
.medium.einzeln img { animation: atmen 8s ease-in-out infinite; }
@keyframes ueberblenden { 0%, 30% { opacity: 0; } 50%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes atmen { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.medium .etikett {
  position: absolute; inset-inline-start: 0.6rem; bottom: 0.6rem; z-index: 2;
  background: rgba(26, 29, 35, 0.8); color: #fff; padding: 0.15rem 0.6rem; border-radius: 8px; font-size: 0.8rem;
}
.medium .phase {
  position: absolute; inset-inline-end: 0.6rem; top: 0.6rem; z-index: 2;
  background: rgba(255, 255, 255, 0.95); color: var(--text); padding: 0.15rem 0.7rem; border-radius: 8px; font-size: 0.9rem; font-weight: 700;
}
.platzhalter {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem; color: var(--text-leise); text-align: center; padding: 1rem;
}
.platzhalter svg { width: 4.5rem; height: 4.5rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.tipp-power { font-weight: 700; color: var(--text); margin: -0.3rem 0 0.6rem; }
.anleitung { margin: 0.4rem 0 0.6rem; }
.anleitung p { margin-bottom: 0.6rem; }
.anleitung .tipp { background: var(--flaeche); border-radius: 12px; padding: 0.6rem 0.9rem; font-weight: 700; }

/* Kreis-Timer, der sich füllt */
.kreis { position: relative; width: 11rem; height: 11rem; margin: 0.6rem auto; }
.kreis svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.kreis circle { fill: none; stroke-width: 9; }
.kreis .bahn { stroke: var(--linie); }
.kreis .fuell { stroke: var(--akzent-deko); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.kreis .zahl {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 2.6rem; font-weight: 700; color: var(--text); line-height: 1.1; font-variant-numeric: tabular-nums;
}
.kreis .zahl small { font-size: 0.85rem; font-weight: 700; color: var(--text-leise); }
.kreis.klein { width: 8rem; height: 8rem; }
.kreis.klein .zahl { font-size: 1.8rem; }

/* Sanfter Rhythmus-Puls */
.puls {
  width: 9rem; height: 9rem; margin: 0.8rem auto; border-radius: 50%;
  background: var(--akzent-hell); box-shadow: inset 0 0 0 3px var(--akzent);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text); font-weight: 700; font-size: 2.4rem; line-height: 1.1;
}
.puls small { font-size: 0.9rem; font-weight: 700; color: var(--text-leise); }
.puls.laeuft { animation: puls var(--takt, 4s) ease-in-out infinite; }
@keyframes puls { 0%, 100% { transform: scale(0.92); } 50% { transform: scale(1.05); } }

/* Häkchen am Ende */
.haken { width: 8rem; height: 8rem; margin: 1rem auto; display: block; }
.haken circle { fill: var(--akzent); animation: fuellen 0.6s ease-out both; }
.haken path {
  fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 60; stroke-dashoffset: 60; animation: zeichnen 0.7s 0.5s ease-out forwards;
}
@keyframes zeichnen { to { stroke-dashoffset: 0; } }

/* Fortschritt: 12-Wochen-Kalender */
.kalender { display: grid; gap: 0.45rem; margin: 1rem 0; }
.kal-zeile { display: grid; grid-template-columns: 5.4rem 1fr; align-items: center; gap: 0.6rem; font-weight: 700; }
.kal-zeile.jetzt { color: var(--text); }
.kal-zeile.jetzt > span:first-child { text-decoration: underline; text-decoration-color: var(--akzent); text-decoration-thickness: 3px; text-underline-offset: 0.3em; }
.kal-punkte { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.kal-punkte span { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid #9AA1AE; background: #fff; }
.kal-punkte span.voll { background: var(--akzent); border-color: var(--akzent); animation: fuellen 0.6s ease-out both; }
.kal-zeile.zukunft { color: var(--text-leise); }
.kal-zeile.zukunft .kal-punkte span { border-color: #C4C9D2; }

/* Diagramm */
.diagramm {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.6rem; align-items: end;
  height: 13rem; margin: 1rem 0; padding-bottom: 3.6rem; position: relative;
}
.saeule { position: relative; height: 100%; border-bottom: 1px solid var(--text-leise); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.saeule-wert { font-size: 1.4rem; font-weight: 700; }
.saeule-balken { width: min(100%, 4.5rem); background: var(--akzent-deko); border-radius: 6px 6px 0 0; animation: wachsen 0.8s ease-out both; transform-origin: bottom; }
.saeule-name { position: absolute; top: calc(100% + 0.3rem); text-align: center; font-size: 0.9rem; line-height: 1.3; white-space: nowrap; }
@keyframes wachsen { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Zähler im Selbsttest */
.zaehler { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin: 1rem 0; }
.zaehler .knopf { width: 4.4rem; min-height: 4.4rem; font-size: 2.2rem; margin: 0; border-radius: 50%; }
.zaehler output { font-size: 3rem; font-weight: 700; min-width: 4rem; text-align: center; color: var(--text); }

/* Plan-Übersicht */
.plan-liste { list-style: none; padding: 0; margin: 0.6rem 0; }
.plan-liste li { padding: 0.8rem 0; border-bottom: 1px solid var(--linie); }
.plan-liste li:last-child { border-bottom: none; }
.plan-liste .ersatz { display: block; font-size: 0.9rem; color: var(--text-leise); }

/* Stopp-Fenster */
.ueberlagerung {
  position: fixed; inset: 0; z-index: 50; background: rgba(26, 29, 35, 0.45);
  display: flex; align-items: flex-end; justify-content: center;
  animation: einblenden 0.18s ease-out both;
}
.ueberlagerung .fenster {
  background: var(--hintergrund); width: 100%; max-width: 40rem; max-height: 92vh; overflow: auto;
  border-radius: 24px 24px 0 0; padding: 1.4rem 16px calc(1.4rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(16, 24, 40, 0.12); animation: hochgleiten 0.2s ease-out both;
}
@keyframes einblenden { from { opacity: 0; } }
@keyframes hochgleiten { from { transform: translateY(24px); } }
@media (min-width: 700px) {
  .ueberlagerung { align-items: center; }
  .ueberlagerung .fenster { border-radius: 24px; }
}

/* ── Rechts-nach-links (Arabisch) ────────────────────────────────────────
   Die Seite schaltet automatisch um, sobald <html dir="rtl"> gesetzt ist (sprache.js, aus der Sprachdatei).
   Abstände und Positionen oben sind „logisch“ geschrieben (inline-start/-end), drehen also von selbst mit.
   Atkinson Hyperlegible hat keine arabischen Buchstaben: bis eine arabische Schrift im Ordner schrift/
   liegt, nimmt der Browser seine eigene (Segoe UI bzw. Noto). Kein Buchstaben-Zusammenrücken im Arabischen. */
html[lang="ar"] body { font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; line-height: 1.7; }
html[lang="ar"] h1, html[lang="ar"] .wochen-titel { letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .medium img.ende { opacity: 0; }
}
