/* Bewegig · Stil auf Basis von entspannig.ch
   Layout: eine ruhige Spalte (max. 760px) für Abläufe, breiter (1080px) für Start und Bibliothek. Handy zuerst. */
:root {
  --canvas: #F7F5F2; --weiss: #FFFFFF; --ink: #0E1B2E; --navy: #1B2F52; --t2: #3D5475; --t3: #7A96B8;
  --blau: #2B5BA8; --blau-h: #7AAEE8; --puder: #E8F2FB; --frost: #F2F8FD; --linie: #D4E5F5;
  --akzent: #D4835A; --akzent-h: #FBEDE4;
  --rot: #B23A3A; --rot-h: #F8E3E0; --gelb: #A86E10; --gelb-h: #FBF0D9; --gruen: #3E8A5C; --gruen-h: #E3F2E8;
  --f-titel: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-text: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-marke: "Megrim", var(--f-text);
  --r: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 16px/1.6 var(--f-text); }
a { color: var(--blau); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--blau); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Kopf */
.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 10; }
.kopf-in, .wegleiste, .seite, .fuss-in, .start, .block { max-width: 1080px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.kopf-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.marke { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.05; }
.marke-wort { font: 400 22px var(--f-marke); letter-spacing: .06em; }
.marke-von { font-size: 11px; color: var(--t3); letter-spacing: .04em; }
.kopf-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.kopf-nav a { color: var(--t2); text-decoration: none; }
.fach-schalter { display: inline-flex; align-items: center; gap: 8px; }
.schalter { width: 32px; height: 18px; border-radius: 9px; background: var(--linie); position: relative; transition: background .2s; }
.schalter::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--weiss); transition: transform .2s; }
.ist-fach .schalter { background: var(--blau); }
.ist-fach .schalter::after { transform: translateX(14px); }
.wegleiste { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px; border-top: 1px solid var(--linie); font-size: 13px; }
.wegleiste ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; min-width: 0; }
.wegleiste li + li::before { content: "›"; color: var(--t3); margin-right: 4px; }
.wegleiste a { color: var(--t2); text-decoration: none; }
.wegleiste [aria-current] { color: var(--ink); font-weight: 500; }
.warn-link { color: var(--rot); font-weight: 500; text-decoration: none; white-space: nowrap; }

/* Seite & Typografie */
.seite { max-width: 760px; padding-block: 28px 56px; }
body:has(.start) .seite, body:has(.bib) .seite { max-width: 1080px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--akzent); margin: 0 0 6px; }
h1 { font: 500 clamp(32px, 6vw, 46px)/1.08 var(--f-titel); color: var(--navy); margin: 0 0 12px; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--blau); }
h2 { font: 500 26px/1.2 var(--f-titel); color: var(--navy); margin: 0 0 10px; text-wrap: balance; }
h3 { font: 600 18px/1.3 var(--f-titel); color: var(--navy); margin: 16px 0 6px; }
.klein-titel { font: 600 12px var(--f-text); letter-spacing: .1em; text-transform: uppercase; color: var(--t2); margin-bottom: 8px; }
.lead, .lead-md p { font: 400 21px/1.45 var(--f-titel); color: var(--t2); margin: 0 0 20px; max-width: 62ch; }
.klein { font-size: 13px; color: var(--t2); }
p, li { max-width: 68ch; }
ul { padding-left: 20px; }
.text p { margin: 0 0 14px; }

/* Knöpfe & Chips */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px;
  background: var(--blau); color: var(--weiss); font: 600 15px var(--f-text); text-decoration: none; border: 0; cursor: pointer; }
.knopf:hover { background: var(--navy); }
.knopf.hell { background: var(--puder); color: var(--blau); }
.knopf.rot { background: var(--weiss); color: var(--rot); box-shadow: inset 0 0 0 1.5px var(--rot); }
.knopf.gross { width: 100%; min-height: 58px; font-size: 17px; margin: 8px 0 22px; }
.knopf.klein-k { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { display: inline-block; font: 600 11px var(--f-text); letter-spacing: .04em; padding: 2px 9px; border-radius: 999px; background: var(--puder); color: var(--t2); vertical-align: middle; text-decoration: none; }
.chip.akzent { background: var(--akzent-h); color: #9A4E26; }

/* Hinweise */
.hinweis { border-radius: var(--r); padding: 16px 18px; margin: 16px 0; background: var(--puder); }
.hinweis h2 { font-size: 21px; margin-bottom: 6px; }
.hinweis p { margin: 0 0 8px; } .hinweis p:last-child { margin: 0; }
.hinweis.warn { background: var(--gelb-h); }
.hinweis.ok { background: var(--gruen-h); color: #23573A; }
.hinweis.notfall { background: var(--rot-h); }
.hinweis.notfall h2 { color: var(--rot); }
.gross-nr { font: 600 56px/1 var(--f-titel); color: var(--rot); }
.fehler { color: var(--rot); font-weight: 500; }

/* Start */
.start { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding-block: 36px 24px; }
.start-text { min-width: 0; }
.suche { display: flex; gap: 8px; margin: 18px 0; }
.suche input { flex: 1; min-width: 0; min-height: 50px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--linie); background: var(--weiss); font: 400 16px var(--f-text); color: var(--ink); }
.suche input:focus { border-color: var(--blau); outline: none; }
.suche button { min-height: 50px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--navy); color: var(--weiss); font: 600 15px var(--f-text); cursor: pointer; }
.start-karte { background: var(--weiss); border-radius: 22px; padding: 22px 18px; border: 1px solid var(--linie); text-align: center; }
.weiter-mit { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--navy); color: var(--weiss); border-radius: var(--r); padding: 14px 18px; text-decoration: none; margin: 8px 0; }
.weiter-mit small { display: block; color: var(--blau-h); font-size: 12px; }
.weiter-mit b { font-weight: 600; }
.block { padding-block: 28px 56px; }
.modul-raster { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.modul-karte { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; height: 100%; padding: 14px 16px; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.modul-karte:hover { border-color: var(--blau); }
.modul-karte .nr { grid-row: span 3; font: 500 28px/1 var(--f-titel); color: var(--blau-h); }
.modul-karte .mt { font-weight: 600; }
.modul-karte .mf { font-size: 13px; color: var(--t2); }
.modul-karte .chip { justify-self: start; margin-top: 4px; }
.leise { opacity: .62; }

/* Auswahllisten */
.wahl-liste, .fall-raster, .uebungs-liste, .bib, .verwendung, .verlauf { list-style: none; padding: 0; margin: 14px 0; }
.wahl-liste { display: grid; gap: 10px; }
.wahl { position: relative; display: block; padding: 16px 48px 16px 18px; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.wahl:hover { border-color: var(--blau); }
.wahl .wt { display: block; font-weight: 600; }
.wahl .wf { display: block; font-size: 14px; color: var(--t2); }
.wahl .pfeil { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--blau); font-size: 18px; }

/* Schritte der Fallfindung */
.schritte { display: flex; gap: 6px; list-style: none; padding: 0; margin: 4px 0 22px; font-size: 12px; color: var(--t3); flex-wrap: wrap; }
.schritte li { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--weiss); border: 1px solid var(--linie); }
.schritte span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--puder); font-weight: 600; }
.schritte .erledigt { color: var(--t2); } .schritte .erledigt span { background: var(--blau-h); color: var(--weiss); }
.schritte .jetzt { color: var(--ink); border-color: var(--blau); font-weight: 500; } .schritte .jetzt span { background: var(--blau); color: var(--weiss); }

/* Warnzeichen */
.frage-karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: 18px; padding: 20px; }
.wz-titel { font: 600 12px var(--f-text); letter-spacing: .1em; text-transform: uppercase; color: var(--t2); margin: 16px 0 6px; }
.wz-titel.notfall { color: var(--rot); }
.wz-liste { margin: 0; padding-left: 20px; } .wz-liste li { margin-bottom: 6px; } .wz-liste li.notfall { color: var(--rot); }
.mehr { margin-top: 22px; font-size: 15px; }
.mehr summary { cursor: pointer; color: var(--t2); }

/* Fälle */
.fall-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.fall-karte { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; height: 100%; padding: 18px; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.fall-karte:hover { border-color: var(--blau); }
.fall-karte .fc { grid-row: span 3; font: 500 38px/1 var(--f-titel); color: var(--blau); }
.fall-karte .ft { font: 600 19px/1.25 var(--f-titel); color: var(--navy); }
.fall-karte .fk { font-size: 13px; font-weight: 500; color: var(--akzent); }
.fall-karte .fe { font-size: 14px; color: var(--t2); margin-top: 4px; }
.zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r); padding: 16px 18px; min-width: 0; }
.karte ul { margin: 0; } .karte p { margin: 0; }

/* Selbsttest */
.selbsttest { margin-top: 28px; background: var(--weiss); border-radius: 18px; border: 1px solid var(--linie); padding: 22px 20px; }
.selbsttest fieldset { border: 0; padding: 0; margin: 18px 0; }
.selbsttest legend { display: flex; gap: 10px; font-weight: 600; margin-bottom: 10px; }
.selbsttest legend span { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--puder); color: var(--blau); font-size: 13px; }
.option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--linie); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.option input { accent-color: var(--blau); width: 18px; height: 18px; flex: 0 0 auto; }
.option:has(input:checked) { border-color: var(--blau); background: var(--frost); }

/* Stufe */
.stufen-kopf { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: end; margin: 8px 0 18px; }
.treppe { display: flex; align-items: flex-end; gap: 6px; }
.tritt { display: flex; flex-direction: column; justify-content: flex-end; width: 74px; padding: 8px; border-radius: 10px 10px 4px 4px; background: var(--puder); color: var(--t2); text-decoration: none; }
.tritt.t1 { height: 56px; } .tritt.t2 { height: 84px; } .tritt.t3 { height: 112px; }
.tritt.unten { background: var(--blau-h); color: var(--weiss); }
.tritt.jetzt { background: var(--blau); color: var(--weiss); }
.tritt-nr { font: 500 22px/1 var(--f-titel); }
.tritt-name { font-size: 10.5px; line-height: 1.2; }
.ziel p { margin: 0 0 4px; }
.uebungs-liste { display: grid; gap: 8px; counter-reset: u; }
.ue { display: flex; align-items: center; gap: 14px; padding: 10px; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.ue:hover { border-color: var(--blau); }
.ue-bild { flex: 0 0 76px; height: 56px; border-radius: 10px; background: var(--puder); display: grid; place-items: center; font: 600 12px var(--f-text); color: var(--t3); letter-spacing: .05em; }
.klein-bild { flex-basis: 54px; height: 40px; font-size: 11px; }
.ue-text { display: flex; flex-direction: column; min-width: 0; }
.ue-name { font-weight: 600; }
.ue-dosis { font-size: 14px; color: var(--blau); }
.ue-vorsicht { font-size: 13px; color: var(--gelb); }
.platzhalter { border: 1.5px dashed var(--akzent); border-radius: var(--r); padding: 12px 16px; font-size: 14px; color: var(--t2); }
.kriterien { margin-top: 24px; padding: 18px 20px; border-radius: var(--r); background: var(--puder); }
.kriterien h2 { font-size: 21px; }
.kriterien ul { margin: 0 0 10px; }

/* Check-in & Empfehlung */
.checkin, .empfehlung { border-radius: var(--r); padding: 16px 18px; margin: 0 0 16px; background: var(--weiss); border: 1px solid var(--linie); }
.checkin h2, .empfehlung h2 { font-size: 21px; }
.checkin .knoepfe { margin-top: 10px; }
.empfehlung.gruen { background: var(--gruen-h); border-color: transparent; }
.empfehlung.gelb { background: var(--gelb-h); border-color: transparent; }
.empfehlung.rot { background: var(--rot-h); border-color: transparent; }
.ampel { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.ampel.gruen { background: var(--gruen); } .ampel.gelb { background: var(--gelb); } .ampel.rot { background: var(--rot); }

/* Fachansicht */
.fach-block { margin-top: 26px; border-radius: var(--r); padding: 18px 20px; background: var(--weiss); border: 1.5px solid var(--blau); }
.fach-block h2 { font-size: 20px; color: var(--blau); }
.linkzeile { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.linkzeile code { font: 500 16px ui-monospace, Menlo, Consolas, monospace; background: var(--puder); color: var(--navy); padding: 8px 12px; border-radius: 8px; }
.quellen { font-size: 14px; padding-left: 20px; } .quellen li { margin-bottom: 6px; }

/* Übung */
.ue-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.video { aspect-ratio: 16 / 9; max-width: 100%; border-radius: 16px; background: var(--navy); display: grid; place-items: center; color: var(--blau-h); font-size: 14px; }
.ue-info { min-width: 0; }
.ue-gross { font-size: 18px; }
.eckdaten { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0 0; }
.eckdaten dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--t3); }
.eckdaten dd { margin: 0; font-weight: 500; }
.verwendung li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.verwendung span { color: var(--t2); font-size: 14px; }

/* Bibliothek */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.filter a { padding: 6px 14px; border-radius: 999px; background: var(--weiss); border: 1px solid var(--linie); text-decoration: none; color: var(--t2); font-size: 14px; }
.filter a.an { background: var(--navy); color: var(--weiss); border-color: var(--navy); }
.bib { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.bib a { display: flex; align-items: center; gap: 12px; padding: 8px; background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; }
.verlauf li { display: grid; grid-template-columns: 100px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.verlauf time { font-variant-numeric: tabular-nums; color: var(--t2); font-size: 14px; }
.verlauf p { margin: 4px 0 0; }

/* Fuss */
.fuss { background: var(--navy); color: var(--puder); }
.fuss-in { padding-block: 32px; font-size: 14px; }
.fuss-marke { font: 400 18px var(--f-marke); letter-spacing: .05em; color: var(--weiss); margin: 0 0 8px; }
.fuss-marke em { font-style: normal; color: var(--blau-h); }
.fuss a { color: var(--weiss); }
.fuss-links { display: flex; flex-wrap: wrap; gap: 16px; }
.fuss-klein { color: var(--t3); font-size: 12px; }

/* Übungsmodus */
body.ruhig { background: #0F1D36; color: var(--weiss); }
.training { min-height: 100dvh; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column;
  padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.tr-kopf { display: flex; justify-content: space-between; font-size: 14px; color: var(--blau-h); }
.tr-ende { color: var(--blau-h); text-decoration: none; }
.tr-balken { display: flex; gap: 4px; margin: 10px 0 14px; }
.tr-balken span { flex: 1; height: 4px; border-radius: 2px; background: #2B3F66; }
.tr-balken span.fertig, .tr-balken span.jetzt { background: var(--blau-h); }
.tr-balken span.jetzt { opacity: .6; }
.tr-buehne { flex: 1; display: flex; flex-direction: column; }
.tr-video { aspect-ratio: 16 / 10; border-radius: 16px; background: var(--navy); display: grid; place-items: center; color: var(--blau-h); font-size: 13px; }
.tr-name { font: 500 30px/1.15 var(--f-titel); margin: 16px 0 4px; }
.tr-dosis { color: var(--blau-h); font-weight: 600; margin: 0 0 6px; }
.tr-text { color: #C9DAEE; font-size: 15px; margin: 0 0 6px; }
.tr-vorsicht { color: #F2C98A; font-size: 14px; }
.tr-mitte { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 0; }
.ring { position: relative; width: 132px; height: 132px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .bahn { stroke: #2B3F66; } .ring .lauf { stroke: var(--blau-h); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.ring-zahl { position: absolute; inset: 0; display: grid; place-items: center; font: 500 34px var(--f-titel); }
.tr-info { color: #C9DAEE; font-size: 14px; text-align: center; }
.tr-knoepfe { display: grid; gap: 10px; }
.tr-knoepfe .knopf { min-height: 56px; font-size: 17px; }
.knopf.weiss { background: var(--weiss); color: var(--navy); }
.knopf.dunkel { background: #23365C; color: var(--weiss); }
.skala { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; margin: 14px 0; }
.skala button { min-height: 46px; border-radius: 10px; border: 0; background: #23365C; color: var(--weiss); font: 600 15px var(--f-text); cursor: pointer; }
.skala button[aria-pressed="true"] { background: var(--blau-h); color: var(--navy); }
.skala-ende { display: flex; justify-content: space-between; font-size: 12px; color: var(--blau-h); }
.tr-ergebnis { border-radius: 16px; padding: 18px; margin: 16px 0; }
.tr-ergebnis.gruen { background: #1C3A2C; } .tr-ergebnis.gelb { background: #3A3020; } .tr-ergebnis.rot { background: #3D2026; }
.tr-ergebnis h2 { color: var(--weiss); font-size: 24px; }

@media (max-width: 760px) {
  .start { grid-template-columns: 1fr; gap: 20px; padding-top: 22px; }
  .stufen-kopf { grid-template-columns: 1fr; }
  .ue-detail { grid-template-columns: 1fr; }
  .kopf-nav a:first-child { display: none; }
  .verlauf li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.link-knopf { background: none; border: 0; padding: 0; color: var(--blau); text-decoration: underline; font: inherit; cursor: pointer; }
.ruhig h1, .ruhig .tr-name { color: var(--weiss); }
.hinweis .klein-titel { font: 600 12px var(--f-text); letter-spacing: .1em; color: var(--t2); }
.tritt-name { hyphens: auto; overflow-wrap: break-word; }
.modul-karte { align-content: start; }
