/* =====================================================================
   Klartext – Gestaltung der App
   Farben: Tinte, Papier, Violett, Lavendel, Textmarker-Gelb, Minze
   ===================================================================== */
:root {
  --tinte: #1B1730;
  --text: #4A4660;
  --leise: #66627C;
  --papier: #F6F5F9;
  --weiss: #FFFFFF;
  --violett: #5B3DF5;
  --violett-tief: #4527D9;
  --lavendel: #EEEAFE;
  --marker: #FFE45C;
  --minze: #DCF5E7;
  --minze-text: #0B6638;
  --linie: #E4E1ED;
  --linie-stark: #CDC9DB;
  --rot: #C42B1C;
  --rot-hell: #FDEEEC;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --unten: 0px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--schrift); color: var(--tinte); background: var(--papier); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--violett-tief); text-underline-offset: 3px; }
a:hover { color: var(--tinte); }
h1, h2, h3 { color: var(--tinte); }
h1 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 8px; font-weight: 750; }
h2 { font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 12px; font-weight: 700; }
p { margin: 0 0 12px; }
code { font-size: 15px; background: var(--lavendel); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
strong { font-weight: 650; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprung { position: absolute; left: 12px; top: -60px; background: var(--tinte); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 50; }
.sprung:focus { top: 12px; color: #fff; }
.leise { color: var(--leise); font-size: 15px; }
.meta { color: var(--leise); font-size: 15px; }
.klein { font-size: 14px; color: var(--leise); margin: 14px 0 0; }
.optional { font-weight: 400; color: var(--leise); font-size: 14px; }
.mt { margin-top: 24px; }
.untertitel { color: var(--text); font-size: 18px; margin: 0 0 20px; }
.icon { width: 22px; height: 22px; flex: none; }
.icon.klein { width: 18px; height: 18px; }
.icon.gross { width: 40px; height: 40px; }
:focus-visible { outline: 3px solid var(--violett); outline-offset: 2px; }

/* ---------------------------------------------------------------------
   Kopf und Navigation
   --------------------------------------------------------------------- */
.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 20; }
.kopf-in { max-width: 1080px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinte); font-weight: 750; font-size: 21px; letter-spacing: -0.02em; min-height: 44px; }
.logo:hover { color: var(--tinte); }
.nav-oben { display: flex; align-items: center; gap: 4px; }
.nav-oben a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav-oben a:hover { background: var(--papier); color: var(--tinte); }
.nav-oben a.aktiv { background: var(--lavendel); color: var(--tinte); }
.nav-unten { display: none; }
.zaehler { display: inline-block; min-width: 20px; text-align: center; background: var(--marker); color: var(--tinte); border-radius: 999px; padding: 0 6px; font-size: 12px; line-height: 20px; font-weight: 700; }

/* ---------------------------------------------------------------------
   Grundgerüst
   --------------------------------------------------------------------- */
main.wrap { max-width: 1080px; margin: 0 auto; padding: 32px 24px 80px; }
.schmal { max-width: 520px; }
.schmal-breit { max-width: 720px; }
.seitenkopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.seitenkopf h1 { margin: 0; }
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: 20px; padding: 24px; margin: 0 0 16px; }
.karte > :last-child { margin-bottom: 0; }
.abschnitt { margin-top: 40px; }
.zurueck { margin: 0 0 16px; }
.zurueck a { display: inline-flex; align-items: center; gap: 4px; color: var(--leise); font-size: 15px; font-weight: 600; text-decoration: none; min-height: 36px; }
.zurueck a:hover { color: var(--tinte); }
.zurueck .icon { width: 18px; height: 18px; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 12px; border: 1.5px solid var(--violett); background: var(--violett); color: #fff; font: inherit; font-size: 16px; font-weight: 650; text-decoration: none; cursor: pointer; text-align: center; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--violett-tief); border-color: var(--violett-tief); color: #fff; }
.btn-sek { background: var(--weiss); color: var(--tinte); border-color: var(--linie-stark); }
.btn-sek:hover { background: var(--papier); color: var(--tinte); border-color: var(--tinte); }
.btn-rot { background: var(--rot); border-color: var(--rot); }
.btn-rot:hover { background: #9E2216; border-color: #9E2216; }
.btn-klein { min-height: 38px; padding: 6px 14px; font-size: 15px; border-radius: 10px; }
.btn-voll { width: 100%; }
.linkbtn { background: none; border: 0; padding: 8px 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--tinte); }
.linkbtn.rot { color: var(--rot); }
.reihe { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
form.inline { display: inline; margin: 0; }

/* Hinweise */
.hinweis { display: block; padding: 13px 16px; border-radius: 14px; margin: 0 0 18px; background: var(--minze); color: var(--minze-text); font-weight: 550; font-size: 16px; }
.hinweis.fehler { background: var(--rot-hell); color: var(--rot); }
.hinweis.info { background: var(--lavendel); color: var(--tinte); }
.hinweis-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.hinweis-link span { flex: 1; }
.hinweis-link:hover { color: var(--tinte); background: #E3DDFD; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; font-size: 13px; font-weight: 550; line-height: 1.3; padding: 3px 10px; border-radius: 999px; background: var(--papier); color: var(--text); border: 1px solid var(--linie); }
.chip.gruen { background: var(--minze); color: var(--minze-text); border-color: transparent; }
.chip.grau { background: #EDECF1; color: var(--leise); }

/* ---------------------------------------------------------------------
   Formulare
   --------------------------------------------------------------------- */
.feld { margin: 0 0 18px; }
label { display: block; font-weight: 650; font-size: 15px; margin-bottom: 6px; color: var(--tinte); }
input[type=text], input[type=email], input[type=number], input[type=search], select, textarea {
  font: inherit; width: 100%; padding: 10px 14px; min-height: 48px;
  border: 1.5px solid var(--linie-stark); border-radius: 12px; background: var(--weiss); color: var(--tinte);
  appearance: none; -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1730' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
input:hover, select:hover, textarea:hover { border-color: #A9A4BD; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--lavendel); outline-offset: 0; border-color: var(--violett); }
textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.kurz { max-width: 180px; }
.code-eingabe { font-size: 30px; letter-spacing: 0.35em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 650; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 650; font-size: 15px; padding: 0; color: var(--tinte); }
.hilfe { font-size: 14px; color: var(--leise); margin: 6px 0 0; }
.hilfe.rechts { text-align: right; }
.haken { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; font-size: 16px; cursor: pointer; }
.haken input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--violett); flex: none; }
.feld-fehler { color: var(--rot); font-size: 14px; font-weight: 650; margin: 8px 0 0; }
.hat-fehler input, .hat-fehler select, .hat-fehler textarea, .hat-fehler .auswahl span { border-color: var(--rot); }
.zweispaltig { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 16px; }
.mt.zweispaltig { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.mehrere { margin: 4px 0 20px; }
.mehrere summary { color: var(--violett-tief); font-weight: 650; font-size: 15px; cursor: pointer; min-height: 32px; }
.mehrere .feld { margin-top: 12px; }

/* Bewertungsformular */
.formular { padding-top: 8px; }
.frage { padding: 22px 0; border-top: 1px solid var(--linie); margin: 0; }
.formular > input[type=hidden] + .frage { border-top: 0; }
.frage > label, .frage > legend { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; line-height: 1.35; margin-bottom: 8px; }
.frage > .hilfe { margin: 0 0 12px 38px; }
.frage .nr { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lavendel); color: var(--violett-tief); font-size: 14px; font-weight: 750; margin-top: -1px; }
.frage > select, .frage > textarea, .frage > .mit-einheit, .frage > .auswahl, .frage > .skala-enden, .frage > .feld-fehler, .frage > .hilfe.rechts { margin-left: 38px; width: calc(100% - 38px); }
.frage > .feld-fehler { width: auto; }
.mit-einheit { display: flex; align-items: center; gap: 12px; }
.mit-einheit input { max-width: 120px; font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.mit-einheit span { color: var(--leise); font-weight: 550; }
.auswahl { display: grid; gap: 8px; }
.auswahl.fuenf { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 420px; }
.auswahl.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 280px; }
.auswahl label { position: relative; margin: 0; cursor: pointer; }
.auswahl input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.auswahl span { display: flex; align-items: center; justify-content: center; min-height: 50px; border: 1.5px solid var(--linie-stark); border-radius: 12px; background: var(--weiss); font-size: 18px; font-weight: 650; color: var(--tinte); transition: background .12s, border-color .12s, color .12s; }
.auswahl label:hover span { border-color: var(--violett); }
.auswahl input:checked + span { background: var(--violett); border-color: var(--violett); color: #fff; }
.auswahl input:focus-visible + span { outline: 3px solid var(--violett); outline-offset: 2px; }
.skala-enden { display: flex; justify-content: space-between; max-width: 420px; color: var(--leise); font-size: 13px; margin-top: 6px; }
.loeschen-form { margin-top: 12px; }

/* ---------------------------------------------------------------------
   Anmelden
   --------------------------------------------------------------------- */
.anmelden { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; min-height: calc(100vh - 260px); }
.anmelden-text h1 { font-size: clamp(36px, 5.4vw, 60px); letter-spacing: -0.04em; margin-bottom: 18px; }
.gross { font-size: 19px; color: var(--text); max-width: 34em; margin-bottom: 28px; }
.vorteile { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vorteile li { display: flex; gap: 14px; align-items: flex-start; color: var(--text); font-size: 16px; }
.vorteile .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--weiss); border: 1px solid var(--linie); color: var(--violett); }
.vorteile strong { color: var(--tinte); }
.anmelden-form .karte { padding: 28px; }
.anmelden-form h2 { font-size: 24px; margin-bottom: 6px; }

/* ---------------------------------------------------------------------
   Startseite
   --------------------------------------------------------------------- */
.begruessung { margin-bottom: 22px; }
.begruessung h1 { font-size: clamp(38px, 6.4vw, 60px); letter-spacing: -0.045em; margin-bottom: 12px; }
.profilzeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 15px; }
.profilzeile span { background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: 5px 12px; color: var(--text); font-weight: 550; }
.profilzeile a { font-weight: 650; padding: 5px 4px; }

.suche-gross { display: flex; align-items: center; gap: 10px; background: var(--weiss); border: 1.5px solid var(--linie-stark); border-radius: 18px; padding: 6px 6px 6px 18px; margin: 0 0 22px; }
.suche-gross:focus-within { border-color: var(--violett); box-shadow: 0 0 0 4px var(--lavendel); }
.suche-gross > .icon { color: var(--leise); }
.suche-gross input { border: 0; padding: 8px 4px; min-height: 52px; font-size: 18px; background: transparent; }
.suche-gross input:focus-visible { outline: none; }
.suche-gross .btn { border-radius: 13px; }

.aktionen { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: repeat(3, auto); gap: 12px; margin-bottom: 40px; }
.aktion { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--weiss); border: 1px solid var(--linie); border-radius: 18px; text-decoration: none; color: var(--tinte); transition: border-color .15s; }
.aktion:hover { border-color: var(--violett); color: var(--tinte); }
.aktion-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: var(--lavendel); color: var(--violett-tief); }
.aktion-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aktion-text strong { font-size: 17px; font-weight: 700; }
.aktion-text span { font-size: 15px; color: var(--leise); }
.aktion.haupt { grid-row: 1 / span 3; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 28px; padding: 28px; background: var(--violett); border-color: var(--violett); color: #fff; border-radius: 26px; min-height: 240px; }
.aktion.haupt:hover { background: var(--violett-tief); border-color: var(--violett-tief); color: #fff; }
.aktion.haupt .aktion-icon { background: rgba(255, 255, 255, 0.16); color: #fff; width: 54px; height: 54px; border-radius: 16px; }
.aktion.haupt .aktion-text { gap: 8px; margin-top: auto; }
.aktion.haupt .aktion-text strong { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.1; letter-spacing: -0.025em; }
.aktion.haupt .aktion-text span { color: #E4DEFF; font-size: 16px; max-width: 30em; }
.schritte-balken { display: flex; gap: 6px; width: 100%; max-width: 280px; }
.schritte-balken span { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); }
.schritte-balken span.voll { background: var(--marker); }

/* Studienplan: das Raster der eigenen Module */
.plan { background: var(--weiss); border: 1px solid var(--linie); border-radius: 26px; padding: 26px 28px 18px; margin-bottom: 24px; }
.abschnitt-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 10px; }
.abschnitt-kopf h2 { margin: 0; font-size: 22px; }
.legende { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; font-size: 13px; color: var(--leise); }
.legende li { display: inline-flex; align-items: center; gap: 6px; }
.punkt { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.punkt.bewertet { background: var(--minze); border: 1.5px solid #7FD3A6; }
.punkt.hat { background: var(--lavendel); border: 1.5px solid #C9BEFB; }
.punkt.leer { background: var(--weiss); border: 1.5px dashed var(--linie-stark); }
.plan-zeile { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px dashed var(--linie-stark); }
.plan-zeile:first-child { border-top: 0; }
.plan-sem { color: var(--leise); font-size: 14px; font-weight: 550; padding-top: 2px; line-height: 1.2; }
.plan-sem strong { display: block; color: var(--tinte); font-size: 26px; font-weight: 750; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan-module { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.modulchip { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 12px; border-radius: 10px; font-size: 14px; font-weight: 550; line-height: 1.3; text-decoration: none; color: var(--tinte); border: 1.5px solid transparent; transition: border-color .12s; }
.modulchip.leer { background: var(--weiss); border: 1.5px dashed var(--linie-stark); color: var(--text); }
.modulchip.hat { background: var(--lavendel); }
.modulchip.bewertet { background: var(--minze); color: var(--minze-text); }
.modulchip:hover { border-color: var(--violett); color: var(--tinte); }
.modulchip.leer:hover { border-style: solid; }
.plan-fuss { margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--linie); }
.plan-fuss a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 650; text-decoration: none; min-height: 36px; }

.auffaellig { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.top { background: var(--weiss); border: 1px solid var(--linie); border-radius: 22px; padding: 22px 24px; }
.top h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 8px; }
.top h2 .icon { color: var(--violett); }
.top ol { list-style: none; counter-reset: platz; margin: 0; padding: 0; }
.top li { counter-increment: platz; display: flex; align-items: baseline; gap: 12px; padding: 11px 0; border-top: 1px solid var(--linie); }
.top li:first-child { border-top: 0; }
.top li::before { content: counter(platz); flex: none; width: 18px; color: var(--leise); font-weight: 700; font-variant-numeric: tabular-nums; }
.top li a { flex: 1; color: var(--tinte); font-weight: 600; text-decoration: none; }
.top li a:hover { text-decoration: underline; }
.top-wert { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------------------------------------------------------------------
   Modulliste
   --------------------------------------------------------------------- */
.filterleiste { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: flex-end; margin: 4px 0 6px; }
.filterleiste .feld { margin-bottom: 12px; }
.sg-feld { flex: 2 1 320px; min-width: 0; }
.such-feld { flex: 1 1 200px; }
.knopf-feld { flex: 0 0 auto; }
.chipreihe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.chipreihe-titel { font-size: 14px; font-weight: 650; color: var(--leise); min-width: 74px; }
.chipreihe-titel.abstand { margin-left: 12px; min-width: 0; }
.filterchip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--linie-stark); background: var(--weiss); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.filterchip:hover { border-color: var(--tinte); color: var(--tinte); }
.filterchip.an { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.ergebniszahl { color: var(--leise); font-size: 14px; margin: 18px 0 4px; }
h2.gruppe { font-size: 15px; font-weight: 700; color: var(--leise); letter-spacing: 0; margin: 26px 0 10px; }
legend.gruppe { font-size: 15px; font-weight: 700; color: var(--leise); margin: 26px 0 10px; }
.liste { list-style: none; margin: 0; padding: 0; background: var(--weiss); border: 1px solid var(--linie); border-radius: 20px; overflow: hidden; }
.zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "haupt werte aktion"; gap: 10px 24px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--linie); }
.zeile:first-child { border-top: 0; }
.zeile-haupt { grid-area: haupt; min-width: 0; }
.zeile-werte { grid-area: werte; display: flex; gap: 22px; }
.zeile-aktion { grid-area: aktion; display: flex; justify-content: flex-end; }
.zeile-titel { color: var(--tinte); font-weight: 650; font-size: 17px; text-decoration: none; line-height: 1.35; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
a.zeile-titel:hover { text-decoration: underline; }
.zeile-titel.aus { color: var(--leise); text-decoration: line-through; }
.zeile .leise { font-size: 14px; }
.kennzahl { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; min-width: 64px; }
.kennzahl strong { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kennzahl span { font-size: 12px; color: var(--leise); }
.status-bewertet { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; border-radius: 10px; background: var(--minze); color: var(--minze-text); font-size: 15px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.status-bewertet:hover { color: var(--minze-text); text-decoration: underline; }

/* ---------------------------------------------------------------------
   Modulseite
   --------------------------------------------------------------------- */
.modulkopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.modulkopf > div { flex: 1 1 420px; min-width: 0; }
.modulkopf .chips { margin-top: 10px; }
.basis { color: var(--leise); font-size: 14px; margin-bottom: 10px; }
.kennzahlen { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "empf auf auf" "empf verst pruef"; gap: 12px; }
.kz { background: var(--weiss); border: 1px solid var(--linie); border-radius: 20px; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kz:nth-child(2) { grid-area: auf; }
.kz:nth-child(3) { grid-area: verst; }
.kz:nth-child(4) { grid-area: pruef; }
.kz-titel { display: flex; align-items: center; gap: 6px; color: var(--leise); font-size: 14px; font-weight: 650; }
.kz strong { font-size: 32px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kz small { font-size: 15px; font-weight: 550; color: var(--leise); letter-spacing: 0; }
.kz-text { font-size: 14px; color: var(--text); }
.kz-empfehlung { grid-area: empf; background: var(--marker); border-color: var(--marker); justify-content: flex-end; padding: 26px; border-radius: 24px; min-height: 220px; }
.kz-empfehlung strong { font-size: clamp(56px, 8vw, 84px); letter-spacing: -0.05em; line-height: 0.9; }
.kz-empfehlung span { font-size: 18px; font-weight: 650; color: var(--tinte); max-width: 12em; }
.bar { height: 8px; background: #E7E4F0; border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--violett); border-radius: 4px; }
.bar.dunkel span { background: var(--tinte); }
.b0{width:0}.b1{width:5%}.b2{width:10%}.b3{width:15%}.b4{width:20%}.b5{width:25%}.b6{width:30%}.b7{width:35%}.b8{width:40%}.b9{width:45%}.b10{width:50%}
.b11{width:55%}.b12{width:60%}.b13{width:65%}.b14{width:70%}.b15{width:75%}.b16{width:80%}.b17{width:85%}.b18{width:90%}.b19{width:95%}.b20{width:100%}
.tipps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.tipp { background: var(--weiss); border: 1px solid var(--linie); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.tipp > p { white-space: pre-line; margin: 0; font-size: 16px; line-height: 1.6; }
.tipp-fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: flex-start; }
.melden summary { color: var(--leise); font-size: 14px; font-weight: 600; cursor: pointer; }
.melden form { margin-top: 10px; }
.melden textarea { min-height: 80px; margin-bottom: 8px; }
.stellungnahme { background: var(--lavendel); border-radius: 20px; padding: 22px; }
.stellungnahme p { margin: 0 0 8px; }
.stellungnahme p:last-child { margin: 0; }

/* Leere und gesperrte Bereiche */
.leerzustand { background: var(--weiss); border: 1.5px dashed var(--linie-stark); border-radius: 24px; padding: 40px 24px; text-align: center; margin: 8px 0 16px; }
.leerzustand h2 { font-size: 22px; margin-bottom: 8px; }
.leerzustand p { max-width: 34em; margin-left: auto; margin-right: auto; color: var(--text); }
.leerzustand p:last-child { margin-bottom: 0; margin-top: 18px; }
.leerzustand .icon.gross { color: var(--violett); margin-bottom: 8px; }

/* Tabellen und Vergleich */
.tabelle-box { overflow-x: auto; background: var(--weiss); border: 1px solid var(--linie); border-radius: 20px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 13px 18px; text-align: left; border-top: 1px solid var(--linie); vertical-align: top; }
thead th, thead td { border-top: 0; background: var(--papier); }
tbody th { font-weight: 600; color: var(--text); white-space: nowrap; }
td { font-variant-numeric: tabular-nums; }
.vergleich thead th { min-width: 170px; }
.vergleich thead th a { color: var(--tinte); font-weight: 700; text-decoration: none; }
.vergleich thead th a:hover { text-decoration: underline; }
.summe { margin-top: 14px; background: var(--lavendel); border-radius: 20px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.summe strong { font-size: 20px; }
.summe span { color: var(--text); font-size: 15px; }
.auswahlliste fieldset { margin-bottom: 4px; }
.kaestchen { background: var(--weiss); border: 1px solid var(--linie); border-radius: 20px; overflow: hidden; }
.kaestchen-zeile { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 2px 14px; margin: 0; padding: 14px 20px; border-top: 1px solid var(--linie); cursor: pointer; font-weight: 550; font-size: 16px; }
.kaestchen-zeile:first-child { border-top: 0; }
.kaestchen-zeile:hover { background: var(--papier); }
.kaestchen-zeile:has(input:checked) { background: var(--lavendel); }
.kaestchen-zeile input { width: 22px; height: 22px; accent-color: var(--violett); flex: none; margin: 0; }
.kaestchen-name { min-width: 0; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.leiste-unten { position: sticky; bottom: var(--unten); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; padding: 14px 0; background: var(--papier); border-top: 1px solid var(--linie); z-index: 5; }

/* Konto */
.menuezeile { display: flex; align-items: center; gap: 14px; padding: 14px 2px; border-top: 1px solid var(--linie); color: var(--tinte); text-decoration: none; font-weight: 600; min-height: 52px; }
.karte h2 + .menuezeile, .karte > .menuezeile:first-child { border-top: 0; }
.menuezeile > span:first-of-type { flex: 1; }
.menuezeile .icon { color: var(--violett); }
.menuezeile .icon.klein { color: var(--leise); }
.menuezeile:hover { color: var(--violett-tief); }
.gefahr summary { color: var(--rot); font-weight: 650; cursor: pointer; }
.gefahr form { margin-top: 14px; }

/* ---------------------------------------------------------------------
   Verwaltung
   --------------------------------------------------------------------- */
.tabs { display: flex; gap: 6px; margin: 0 0 24px; overflow-x: auto; padding-bottom: 4px; }
.tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 7px 14px; border-radius: 999px; background: var(--weiss); border: 1px solid var(--linie); color: var(--tinte); text-decoration: none; font-weight: 600; font-size: 15px; }
.tabs a:hover { border-color: var(--tinte); }
.tabs a.aktiv { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.zahlenreihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 32px; }
.zahl { background: var(--weiss); border: 1px solid var(--linie); border-radius: 18px; padding: 18px 20px; }
.zahl strong { display: block; font-size: 32px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.zahl span { color: var(--leise); font-size: 14px; }
.punkte { margin: 0; padding-left: 20px; }
.punkte li { margin: 6px 0; }
.pruefen-kopf { display: flex; flex-direction: column; gap: 2px; }
.pruefen blockquote { margin: 12px 0 16px; padding: 14px 16px; background: var(--papier); border-radius: 12px; }
.zeile.verw { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "haupt aktion"; }
.bearbeiten { margin-top: 8px; }
.bearbeiten summary { color: var(--violett-tief); font-size: 14px; font-weight: 650; cursor: pointer; min-height: 30px; }
.raster-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 16px; margin-top: 12px; }
.raster-form .breit { grid-column: 1 / -1; }

/* ---------------------------------------------------------------------
   Fuß
   --------------------------------------------------------------------- */
.fuss { border-top: 1px solid var(--linie); color: var(--leise); font-size: 14px; }
.fuss-in { max-width: 1080px; margin: 0 auto; padding: 22px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; align-items: center; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.fuss a { color: var(--leise); text-decoration: none; padding: 8px 0; display: inline-block; }
.fuss a:hover { color: var(--tinte); text-decoration: underline; }

/* ---------------------------------------------------------------------
   Handy und Tablet
   --------------------------------------------------------------------- */
@media (max-width: 860px) {
  .anmelden { grid-template-columns: 1fr; gap: 28px; min-height: 0; }
  .kennzahlen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "empf empf" "auf auf" "verst pruef"; }
  .kz-empfehlung { min-height: 0; flex-direction: row; align-items: flex-end; gap: 16px; }
}

@media (max-width: 760px) {
  :root { --unten: calc(66px + env(safe-area-inset-bottom)); }
  body { font-size: 16px; }
  body.mit-nav { padding-bottom: var(--unten); }
  .kopf { position: static; }
  .kopf-in { padding: 8px 16px; min-height: 56px; }
  .nav-oben { display: none; }
  .nav-unten { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--weiss); border-top: 1px solid var(--linie); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(27, 23, 48, 0.06); }
  .nav-unten a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; color: var(--leise); text-decoration: none; font-size: 11px; font-weight: 650; border-radius: 12px; }
  .nav-unten a .icon { width: 24px; height: 24px; }
  .nav-unten a.aktiv { color: var(--violett-tief); }
  .nav-unten a.aktiv .icon { stroke-width: 2.3; }
  main.wrap { padding: 22px 16px 48px; }
  .karte { padding: 20px 18px; border-radius: 18px; }
  .anmelden-text h1 { font-size: 34px; }
  .gross { font-size: 17px; margin-bottom: 20px; }
  .anmelden-form .karte { padding: 22px 18px; }

  .begruessung h1 { font-size: 38px; }
  .suche-gross { padding: 4px 4px 4px 14px; border-radius: 16px; }
  .suche-gross input { font-size: 17px; min-height: 48px; }
  .suche-gross .btn { padding: 8px 14px; }
  .aktionen { grid-template-columns: 1fr; grid-template-rows: none; margin-bottom: 28px; }
  .aktion.haupt { grid-row: auto; min-height: 0; gap: 20px; padding: 22px; border-radius: 22px; }
  .aktion { padding: 14px 16px; }
  .plan { padding: 20px 16px 12px; border-radius: 22px; margin-left: -4px; margin-right: -4px; }
  .plan-zeile { grid-template-columns: 1fr; gap: 10px; padding: 14px 0; }
  .plan-sem strong { display: inline; font-size: 18px; margin-right: 4px; }
  .modulchip { font-size: 13px; min-height: 34px; padding: 6px 10px; }
  .plan-module { gap: 6px; }

  .zeile { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "haupt aktion" "werte werte"; padding: 14px 16px; gap: 10px 14px; }
  .zeile-werte { gap: 18px; }
  .zeile-werte:empty { display: none; }
  .kennzahl { align-items: flex-start; min-width: 0; }
  .chipreihe { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 2px 16px 4px; scrollbar-width: none; }
  .chipreihe::-webkit-scrollbar { display: none; }
  .chipreihe > * { flex: none; }
  .chipreihe-titel { min-width: 0; }
  .chipreihe-titel.abstand { margin-left: 10px; }
  .filterleiste { gap: 0 10px; }
  .sg-feld { flex-basis: 100%; }
  .modulkopf .btn { width: 100%; }
  .kennzahlen { grid-template-columns: 1fr 1fr; }
  .kz { padding: 16px; }
  .kz strong { font-size: 26px; }
  .kz-empfehlung { padding: 20px; align-items: center; }
  .kz-empfehlung strong { font-size: 48px; white-space: nowrap; }
  .kz-empfehlung span { font-size: 16px; }
  .frage > .hilfe, .frage > select, .frage > textarea, .frage > .mit-einheit, .frage > .auswahl, .frage > .skala-enden, .frage > .feld-fehler, .frage > .hilfe.rechts { margin-left: 0; width: 100%; }
  .auswahl.fuenf { max-width: none; }
  .kaestchen-zeile { grid-template-columns: 22px minmax(0, 1fr); padding: 13px 16px; }
  .kaestchen-zeile .leise { grid-column: 2; font-size: 13px; }
  .skala-enden { max-width: none; }
  .fuss-in { padding: 18px 16px; }
}

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