/* LNL-Erhebung – perinnova-Farbschema (identisch mit dem Auswertungsportal) */
:root {
  --blau: #02377B; --blau2: #1B5F98; --blau3: #2872A6; --hellblau: #EAF0F8; --box: #9DB4D3;
  --orange: #E07B24; --gruen: #5C8F65; --gruen-hell: #EAF1E8; --gruen-dunkel: #2C5530;
  --rot: #B85050; --ocker: #D49B6A; --braun: #C0713A; --violett: #7B3FA0;
  --text: #1F2A37; --grau: #6B7280; --grau2: #888; --linie: #E5E7EB; --linie2: #D5DDEA;
  --flaeche: #F8F9FB; --weiss: #fff; --eigen: #EEF4EA; --eigen-kopf: #E1ECDA;
  --sidebar-b: 17.5rem; --radius: 10px;
  --schrift: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--schrift); color: var(--text); background: var(--weiss); font-size: 15.5px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; }
a { color: var(--blau2); }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--blau); line-height: 1.2; margin: .4em 0; }
code { background: #F3F4F6; padding: 1px 5px; border-radius: 3px; font-size: .86em; color: #444; }
.klein { font-size: .82em; color: var(--grau); }
.caption { font-size: .82em; color: var(--grau); margin: 4px 0 10px; }
.versteckt { display: none !important; }
.nowrap { white-space: nowrap; }

/* ----------------------------------------------------------- Laden */
.laden-voll { position: fixed; inset: 0; display: flex; flex-direction: column; gap: 14px; align-items: center;
  justify-content: center; color: var(--blau); font-weight: 600; background: #fff; z-index: 50; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--hellblau); border-top-color: var(--blau);
  border-radius: 50%; animation: dreh 0.9s linear infinite; }
.spinner.klein { width: 16px; height: 16px; border-width: 2px; display: inline-block; vertical-align: -3px; }
@keyframes dreh { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------- Login */
.login-seite { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #F3F6FB 0%, #fff 60%); padding: 24px 16px; }
.login-karte { width: 100%; max-width: 440px; }
.login-karte .logo { display: block; width: 190px; margin: 0 auto 18px; }
.login-ueber { text-align: center; margin-bottom: 22px; }
.login-ueber .firma { font-size: .82em; color: var(--grau2); text-transform: uppercase; letter-spacing: .15em; font-weight: 600; }
.login-ueber .titel { font-size: 1.6em; line-height: 1.2; font-weight: 700; color: var(--blau); letter-spacing: -.02em; margin-top: 4px; }
.login-ueber .unter { color: #555; margin-top: 6px; }
.login-form { background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 22px 24px;
  box-shadow: 0 4px 24px rgba(2, 55, 123, .07); }
.login-form label { display: block; font-size: .86em; font-weight: 600; color: #333; margin: 10px 0 4px; }
.login-fuss { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--linie); text-align: center;
  font-size: .85em; color: var(--grau2); }

/* ----------------------------------------------------------- Formular */
.eingabe, select.eingabe, textarea.eingabe { width: 100%; padding: 8px 11px; border: 1px solid #CDD5E0; border-radius: 7px;
  background: #fff; transition: border-color .15s, box-shadow .15s; }
.eingabe:focus { outline: none; border-color: var(--blau2); box-shadow: 0 0 0 3px rgba(27, 95, 152, .15); }
textarea.eingabe { min-height: 90px; resize: vertical; line-height: 1.4; }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px;
  border: 1px solid #C9D3E3; border-radius: 7px; background: #fff; color: var(--text); cursor: pointer;
  font-weight: 500; line-height: 1.25; transition: background .12s, border-color .12s; text-decoration: none; }
.knopf:hover { background: #F3F6FB; border-color: var(--blau2); }
.knopf:disabled { opacity: .55; cursor: not-allowed; }
.knopf.primaer { background: var(--blau); border-color: var(--blau); color: #fff; }
.knopf.primaer:hover { background: var(--blau2); }
.knopf.gefahr { color: var(--rot); border-color: #E3B5B5; }
.knopf.gefahr:hover { background: #FBEDED; }
.knopf.breit { width: 100%; }
.knopf.klein { padding: 3px 9px; font-size: .82em; }
.knopf.pille { border-radius: 999px; background: var(--hellblau); border-color: var(--box); color: var(--blau); font-size: .8em; padding: 2px 12px; }
.knopf.pille:hover { background: #D6E4F5; }
.knopf-reihe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.schalter { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; background: #F3F6FB;
  border: 1px solid var(--linie2); border-radius: 999px; padding: .25rem .85rem; font-size: .8rem; color: var(--blau);
  user-select: none; }
.schalter:has(input:checked) { background: var(--blau); color: #fff; border-color: var(--blau); }
.schalter input { accent-color: var(--blau); margin: 0; }
.radio-gruppe { display: flex; flex-direction: column; gap: 5px; }
.radio-gruppe.quer { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
.radio-gruppe label, .check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .92em; }
.radio-gruppe input, .check input { accent-color: var(--blau); width: 15px; height: 15px; margin: 0; flex: 0 0 auto; }
.feld { margin: 8px 0; }
.feld > label { display: block; font-size: .84em; font-weight: 600; color: #444; margin-bottom: 4px; }
.reihe { display: flex; gap: 14px; flex-wrap: wrap; }
.reihe > * { flex: 1 1 220px; min-width: 0; }

/* ----------------------------------------------------------- Rahmen */
.rahmen { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-b); flex: 0 0 var(--sidebar-b); background: #F7F8FA; border-right: 1px solid var(--linie);
  padding: 18px 16px 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 20; }
.sidebar .logo { display: block; width: 150px; margin: 4px auto 12px; }
.sb-hero { background: linear-gradient(135deg, var(--blau) 0%, var(--blau2) 100%); color: #fff; padding: 13px 15px;
  border-radius: 10px; margin: 6px 0 16px; box-shadow: 0 2px 8px rgba(2, 55, 123, .2); }
.sb-hero .ueber { font-size: .68em; opacity: .78; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 3px; }
.sb-hero .name { font-weight: 700; line-height: 1.3; }
.sb-titel { font-size: .72em; color: var(--grau2); text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
  margin: 20px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--linie); }
.sb-titel:first-of-type { margin-top: 6px; }
.sb-anzahl { padding: 6px 2px 0; margin-top: 4px; font-size: .82em; color: #555; }
.info-k { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid var(--blau2); color: var(--blau2); font: 600 10px/1 Georgia, "Times New Roman", serif; font-style: italic;
  cursor: help; vertical-align: 1px; margin-left: 3px; background: #fff; text-transform: none; letter-spacing: 0; }
.info-k:hover { background: var(--blau2); color: #fff; }
.sb-fuss { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--linie); text-align: center; font-size: .74em; color: var(--grau2); }
.sb-admin { background: #FFF7E5; border-left: 3px solid var(--ocker); padding: 7px 11px; border-radius: 4px; margin-bottom: 8px;
  font-size: .8em; color: #666; }
.mehrfach { max-height: 220px; overflow-y: auto; background: #fff; border: 1px solid #CDD5E0; border-radius: 7px; padding: 6px 8px; }
.mehrfach label { display: flex; gap: 7px; align-items: flex-start; font-size: .84em; padding: 2px 0; cursor: pointer; line-height: 1.25; }
.mehrfach input { margin-top: 2px; accent-color: var(--blau); }
.haupt { flex: 1; min-width: 0; padding: 18px 34px 60px; }
.haupt-innen { max-width: 2600px; margin: 0 auto; }
.menue-knopf { display: none; }

/* Reiter */
.reiter { display: flex; gap: 2px; border-bottom: 1px solid var(--linie); margin: 4px 0 18px; overflow-x: auto;
  scrollbar-width: thin; position: sticky; top: 0; background: #fff; z-index: 15; }
.reiter button { background: none; border: none; padding: 10px 13px 9px; cursor: pointer; color: #444; font-size: .95em;
  border-bottom: 2px solid transparent; white-space: nowrap; }
.reiter button:hover { color: var(--blau); }
.reiter button.aktiv { color: var(--blau); border-bottom-color: var(--blau); font-weight: 600; }
.unterreiter { display: flex; gap: 1.2rem; border-bottom: 1px solid var(--linie); margin: 2px 0 12px; flex-wrap: wrap; }
.unterreiter button { background: none; border: none; padding: 6px 2px; cursor: pointer; color: #444; font-size: .92em;
  border-bottom: 2px solid transparent; }
.unterreiter button.aktiv { color: var(--blau); border-bottom-color: var(--blau); font-weight: 600; }

/* Admin-Banner */
.admin-banner { background: linear-gradient(135deg, #B85050 0%, #A84848 100%); color: #fff; border-radius: 10px;
  padding: 12px 18px; margin-bottom: 12px; display: flex; gap: 14px; align-items: center; }
.admin-banner .klein-t { font-size: .68em; opacity: .85; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.admin-wahl { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.admin-wahl select { flex: 1 1 320px; }

/* ----------------------------------------------------------- Bausteine */
.hero { background: linear-gradient(135deg, #eef3fa 0%, #f6f9fd 100%); color: var(--blau);
  padding: 28px 34px; border-radius: 14px; border: 1px solid #d5e0ef; margin-bottom: 20px;
  position: relative; overflow: hidden; }
.hero .ueber { font-size: .74em; color: var(--blau2); text-transform: uppercase; letter-spacing: .15em; font-weight: 600; margin-bottom: 8px; }
.hero .titel { font-size: 2.1em; font-weight: 700; line-height: 1.1; margin-bottom: 10px; letter-spacing: -.02em; }
.hero .unter { color: var(--text2, #4a5568); }
.hero .leiste { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid #d5e0ef; }
.hero .leiste .k { font-size: .7em; color: var(--text2, #4a5568); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.hero .leiste .w { font-size: 1.3em; font-weight: 700; }
.hero.klein { padding: 20px 24px; border-radius: 12px; }
.hero.klein .titel { font-size: 1.45em; margin-bottom: 4px; }
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 16px; }
.karte { background: #fff; padding: 17px 19px; border-radius: 10px; border: 1px solid var(--linie);
  box-shadow: none; border-top-color: var(--linie) !important; border-top-width: 1px !important; }
.karte .k { display: flex; justify-content: space-between; font-size: .72em; color: var(--grau2); text-transform: uppercase;
  letter-spacing: .05em; font-weight: 600; }
.karte .w { font-size: 2em; font-weight: 700; line-height: 1.1; margin: 6px 0 4px; }
.karte .u { font-size: .78em; color: var(--grau2); }
.insight { padding: 14px 18px; border-radius: 8px; border-left: 4px solid; }
.insight .k { font-size: .76em; color: var(--grau2); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.insight .t { font-weight: 600; }
.insight .d { font-size: .86em; color: #555; margin-top: 3px; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.drei { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.abschnitt-titel { font-size: .76em; color: var(--grau2); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin: 20px 0 8px; }
.hinweis-box { padding: 11px 15px; border-radius: 8px; background: var(--hellblau); color: #23436B; margin: 8px 0 12px; font-size: .92em; }
.hinweis-box.erfolg { background: #E7F2E6; color: #2C5530; }
.hinweis-box.warnung { background: #FFF5E0; color: #7A5410; }
.hinweis-box.fehler { background: #F8E6E6; color: #8A3434; }
details.aufklapp { border: 1px solid var(--linie); border-radius: 8px; margin: 8px 0; background: #fff; }
details.aufklapp > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; color: #333; list-style: none; }
details.aufklapp > summary::-webkit-details-marker { display: none; }
details.aufklapp > summary::before { content: "▸"; color: #999; margin-right: 8px; font-size: .8em; }
details.aufklapp[open] > summary::before { content: "▾"; }
details.aufklapp > .inhalt { padding: 4px 14px 14px; }
.fortschritt { background: #F3F4F6; height: 9px; border-radius: 5px; overflow: hidden; }
.fortschritt > div { height: 100%; border-radius: 5px; }

/* Thema-Kopf */
.tk { background: var(--kf, var(--blau)); color: #fff; border-radius: 6px; padding: 7px 13px; margin: 18px 0 6px; font-size: .92em; }
.tk .k { opacity: .75; }
.tk b { margin-left: .6em; }
.th-hinweis { font-size: .82em; color: #555; margin: -2px 0 6px 2px; line-height: 1.4; }
.frage-titel { font-weight: 650; color: var(--blau); margin: 12px 0 3px; font-size: .96em; }
.frage-titel .einh, .frage-titel .tb { color: var(--grau2); font-weight: 400; }
.frage-titel .tb { font-size: .85em; color: #999; }

/* Filterleiste */
.filter-leiste { margin: 0 0 10px; }
.filter-leiste .k { font-size: .7rem; color: var(--grau2); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; }
.filter-leiste .pillen { display: flex; gap: 6px; flex-wrap: wrap; }

/* ----------------------------------------------------------- Modal, Toast */
.modal-hg { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: 12px; max-width: min(1100px, 94vw); width: 100%; max-height: 90vh; overflow: auto; padding: 20px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal h3 { margin-top: 0; }
#toasts { position: fixed; bottom: 18px; right: 18px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #1F2A37; color: #fff; padding: 10px 14px; border-radius: 8px; font-size: .88em; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); max-width: 380px; }
.toast.ok { background: #2C5530; } .toast.fehler { background: #8A3434; }

/* ----------------------------------------------------------- Druck */
@media print {
  .sidebar, .reiter, .toc, .toc-knopf, .knopf, .admin-banner, .admin-wahl, .filter-leiste { display: none !important; }
  .haupt { padding: 0 !important; }
  body { font-size: 12px; }
}

/* ----------------------------------------------------------- Handy / schmal */
@media (max-width: 900px) {
  .rahmen { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-105%); transition: transform .2s; box-shadow: 4px 0 24px rgba(0, 0, 0, .15); width: 85vw; max-width: 320px; }
  body.menue-offen .sidebar { transform: none; }
  .menue-knopf { display: inline-flex; position: fixed; left: 10px; top: 8px; z-index: 31; }
  .haupt { padding: 52px 16px 50px; }
  .zwei, .drei { grid-template-columns: 1fr; }
  .hero { padding: 24px 20px; } .hero .titel { font-size: 1.7em; }
  .box-label, .auswahl-zeile .lab { flex-basis: 8.5rem; }
  .anteil-leg { padding-left: 0; }
  .region-raster { grid-template-columns: 1fr; }
  .toc { width: 85vw; }
  body.toc-offen .haupt { padding-right: 16px; }
  body.toc-offen .toc-knopf { right: 86vw; }
  .matrix-labels { flex-basis: 7rem; }
}

/* Navigation Kapitel / Thema / Frage (im Hauptbereich, für alle Tabs gleich) */
.nav-leiste { margin: 0 0 8px; position: sticky; top: 40px; z-index: 11; background: #fff; padding: 6px 0; }
.nav-kaps { display: flex; flex-wrap: wrap; gap: 4px; }
.nav-detail { margin-bottom: 10px; }
.nav-kaps button { border: 1px solid var(--linie2); background: #fff; color: var(--blau); border-radius: 14px; padding: 3px 11px; font-size: .82rem; font-weight: 600; cursor: pointer; }
.nav-kaps button:hover { background: var(--hellblau); }
.nav-kaps button.aktiv { background: var(--blau); border-color: var(--blau); color: #fff; }
.nav-detail { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 8px; padding: 8px 12px; background: var(--hellblau); border-radius: 8px; font-size: .86rem; }
.nav-detail .nav-titel { font-weight: 700; color: var(--blau); }
.nav-detail label { display: flex; align-items: center; gap: 6px; color: #444; }
.nav-detail select { max-width: 380px; padding: 3px 6px; font-size: .86rem; }

/* Admin: Präsentation – Auswahlbaum */
.pr-baum { border: 1px solid var(--linie2); border-radius: 8px; padding: 6px 10px; max-height: 480px; overflow: auto; background: #fff; }
.pr-kap { border-left: 4px solid var(--kf, var(--blau)); padding-left: 8px; margin: 4px 0; }
.pr-kap > summary, .pr-thema > summary { cursor: pointer; padding: 3px 0; }
.pr-thema { margin-left: 18px; }
.pr-fragen { margin-left: 26px; display: flex; flex-direction: column; gap: 2px; padding: 2px 0 6px; }
.pr-frage { font-size: .86rem; }

/* Übersicht: Score-Ring, Spinnennetz, Heatmap */
.ueb-oben { display: grid; grid-template-columns: 1fr; gap: 14px; }
.ueb-score { text-align: center; display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; align-items: center; text-align: left; }
.ueb-score .k { grid-column: 1 / -1; }
.ueb-score .score-ring { grid-row: 2 / span 4; }
.score-ring { --p: 50; width: 110px; height: 110px; border-radius: 50%; margin: 4px 0; display: grid; place-items: center;
  background: conic-gradient(var(--blau) calc(var(--p) * 1%), #E5E9F0 0); }
.score-ring .score-zahl { width: 86px; height: 86px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.7em; font-weight: 700; color: var(--blau); }
.score-ring small { font-size: .4em; color: #888; margin-left: 2px; }
.sterne { color: #D4A73C; font-size: 1.5em; letter-spacing: 2px; }
.ueb-spider .spider { max-width: 460px; }
.spider { width: 100%; max-width: 420px; display: block; margin: 14px auto 22px; overflow: visible; }
.heat { display: flex; flex-direction: column; gap: 8px; }
.heat-zeile { display: grid; grid-template-columns: 230px 1fr; gap: 10px; align-items: start; }
.heat-kap { border-left: 4px solid var(--kf, var(--blau)); padding: 4px 8px; font-size: .86rem; }
.heat-kacheln { display: flex; flex-wrap: wrap; gap: 4px; }
.heat-k { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-size: .74rem; padding: 3px 8px; border-radius: 4px; font-weight: 600; text-shadow: 0 1px 1px rgba(0,0,0,.15); }
.heat-k span { background: rgba(255,255,255,.3); border-radius: 3px; padding: 0 5px; font-variant-numeric: tabular-nums; }
.heat-k:hover { filter: brightness(1.08); }
.heat-leg i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; margin: 0 2px 0 8px; }
@media (max-width: 900px) { .heat-zeile { grid-template-columns: 1fr; } }
.lt tr.lt-gruppe td { background: #FAFBFD; color: #333; font-weight: 600; padding-left: 14px; border-top: none; }

/* Direktvergleich: Säulen pro Spital */
.vg tr.dv-graf td { background: #FAFBFD; padding: 6px 10px 4px; border-bottom: 1px solid var(--linie); }
.dv-saeulen { display: flex; gap: 10px; align-items: flex-end; }
.dv-s { flex: 1; max-width: 140px; text-align: center; font-size: .72rem; color: #555; }
.dv-s .dv-wert { font-weight: 600; color: var(--blau); margin-bottom: 2px; }
.dv-s .dv-balken { height: 54px; display: flex; align-items: flex-end; background: #EEF1F6; border-radius: 3px; }
.dv-s .dv-balken > div { width: 100%; background: #7FA7C9; border-radius: 3px 3px 0 0; }
.dv-s.ich .dv-balken > div { background: #E07B24; }
.dv-s.ich .dv-wert { color: #B35A0E; }
.dv-s .dv-name { margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-liste { max-height: 200px; overflow: auto; border: 1px solid var(--linie2); border-radius: 6px; padding: 4px 8px; display: flex; flex-direction: column; gap: 2px; font-size: .86rem; background: #fff; }
.bem-liste { margin-top: 6px; }
.bem-eintrag { padding: 5px 0; border-top: 1px solid #EEF1F6; font-size: .9em; line-height: 1.45; }
.bem-eintrag b { color: var(--blau); }

/* Inhalt-Knopf in der Navigationsleiste */
.nav-kaps { align-items: center; }
.nav-toc-platz { margin-left: auto; }
.toc-knopf.inline { position: static; border-radius: 14px; padding: 3px 12px; font-size: .82rem; font-weight: 600; box-shadow: none; }
body.toc-offen .toc-knopf.inline { right: auto; }

/* Eigene Antwort im Anteils-Balken */
.anteil-balken > div.eig { outline: 2px solid #E07B24; outline-offset: -2px; position: relative; }
.anteil-balken > div.eig::before { content: "◆ "; color: #E07B24; }
.anteil-eig { flex: 0 0 150px; font-size: .72rem; color: #B35A0E; font-weight: 600; padding-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Breite von Tabellen und Grafiken: Standard = volle Breite; per Griff unten rechts verkleinerbar, bleibt gespeichert */
.lt-wrap, .gr-wrap { resize: horizontal; max-width: 100%; min-width: 320px; }
.lt-wrap.manuell .lt { min-width: 0 !important; width: 100%; }
.gr-wrap { overflow: auto; padding-bottom: 4px; }
/* Kapitel einfarbig (Schalter links) */
body.einfarbig .tk { background: var(--blau); }
body.einfarbig .vg-kap { background: linear-gradient(135deg, var(--blau) 0%, var(--blau2) 100%); }
body.einfarbig .pr-kap, body.einfarbig .heat-kap { border-left-color: var(--blau); }
.pdf-vorschau-knopf { margin-top: 8px; }
.pdf-vorschau { margin-top: 8px; }
.pdf-vorschau img { width: 100%; border: 1px solid #D5DDEA; border-radius: 6px; cursor: zoom-in; background: #fff; }

/* Admin › Nutzung */
.nz-wochen { display: flex; gap: 8px; align-items: flex-end; height: 150px; padding: 8px 4px 0; border-bottom: 1px solid var(--linie); max-width: 720px; }
.nz-w { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: .72rem; }
.nz-b { width: 70%; background: var(--blau2); border-radius: 3px 3px 0 0; min-height: 2px; order: 2; }
.nz-z { order: 1; color: #444; margin-bottom: 3px; font-weight: 600; }
.nz-l { order: 3; color: #888; margin-top: 4px; white-space: nowrap; }

/* Grafiken kompakt: nur die Grafiken, halbe Höhe, ohne Erklärtexte */
.gr-kompakt #gr-tab-aus, .gr-kompakt .gr-tab, .gr-kompakt .tb-bem, .gr-kompakt .anteil-leg, .gr-kompakt .frage-titel .tb { display: none !important; }
.gr-kompakt .box-feld, .gr-kompakt .matrix-labels div { height: .9rem; }
.gr-kompakt .box-label, .gr-kompakt .matrix-labels div { font-size: .66rem; }
.gr-kompakt .box-feld .iw { width: 8px; height: 8px; margin-top: -4px; margin-left: -4px; }
.gr-kompakt .anteil-zeile { margin: 0; }
.gr-kompakt .anteil-balken { height: .9rem; } .gr-kompakt .anteil-balken > div { line-height: .9rem; font-size: .58rem; }
.gr-kompakt .box-grafik, .gr-kompakt .matrix-grafik { margin: 0 0 .3rem; }
.gr-kompakt .frage-titel { margin: 5px 0 0; font-size: .84em; }
.gr-kompakt .tk { padding: 3px 10px; margin: 8px 0 2px; font-size: .82em; }
.gr-kompakt .achse { font-size: .6rem; }

.gr-spider { max-width: 560px; margin: 4px auto 14px; }
/* dezenter Text-Knopf (z.B. Breite zurücksetzen) */
button.leise { background: none; border: none; padding: 4px 6px; color: var(--blau2); font-size: .8rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #B9CBE3; align-self: center; }
button.leise:hover { color: var(--blau); text-decoration-color: var(--blau); }

/* Schwerpunktthemen (Übersicht) */
.th-zeile { display: grid; grid-template-columns: 240px 1fr 130px; gap: 14px; align-items: center; padding: 7px 0; border-bottom: 1px solid #EEF1F5; }
.th-zeile:last-of-type { border-bottom: none; }
.th-zeile.th-aus { opacity: .45; }
.th-name { font-weight: 600; font-size: .9rem; }
.th-punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: 0; }
.th-balken { position: relative; height: 14px; background: #F1F3F6; border-radius: 7px; overflow: hidden; }
.th-fuell { height: 100%; border-radius: 7px; opacity: .85; }
.th-mitte { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px solid #777; z-index: 1; }
.th-wert { font-weight: 700; font-size: 1.1rem; text-align: right; color: var(--blau); }
.th-wert .klein { font-weight: 400; }
