/* PRIMA-KI-Bench – Portal
   Schlicht und datenorientiert: neutrale Flächen mit leichtem Petrol-Stich, ein Akzent (Petrol),
   Rot nur für K.-o.-Kriterien. Tabellen sind das Hauptelement. */

/* Schriften (selbst gehostet, IBM Plex, SIL Open Font License; siehe fonts/OFL.txt) */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-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: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-italic.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: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-400-italic.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: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-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: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-500-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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-600-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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-ext-500-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; }

/* Tokens (nach dem abgestimmten Entwurf: Petrol-Akzent, Grautöne mit Petrol-Stich) */
:root {
  --seite: #f4f7f7;
  --flaeche: #ffffff;
  --flaeche-2: #edf2f2;
  --text: #15242a;
  --text-2: #5a6a6f;
  --linie: #dbe4e5;
  --linie-2: #c2cfd1;
  --akzent: #1c6970;
  --akzent-weich: #dcebec;
  --band: #b7d5d8;
  --auf-akzent: #ffffff;
  --ko: #b0392f;
  --ko-weich: #f7e1de;
  --punkt-aus: #a9b8ba;
  --schrift: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --rand: 24px;
  --breite: 1180px;
  --text-breite: 68ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --seite: #0e1517;
    --flaeche: #141d20;
    --flaeche-2: #1a2528;
    --text: #e1eaeb;
    --text-2: #95a7ab;
    --linie: #24333a;
    --linie-2: #314349;
    --akzent: #63b2ba;
    --akzent-weich: #1c3539;
    --band: #2b5157;
    --auf-akzent: #0e1517;
    --ko: #e47a6e;
    --ko-weich: #3b211e;
    --punkt-aus: #4a5c61;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --seite: #0e1517;
  --flaeche: #141d20;
  --flaeche-2: #1a2528;
  --text: #e1eaeb;
  --text-2: #95a7ab;
  --linie: #24333a;
  --linie-2: #314349;
  --akzent: #63b2ba;
  --akzent-weich: #1c3539;
  --band: #2b5157;
  --auf-akzent: #0e1517;
  --ko: #e47a6e;
  --ko-weich: #3b211e;
  --punkt-aus: #4a5c61;
  color-scheme: dark;
}

@media (max-width: 720px) { :root { --rand: 16px; } }

/* Grundlage */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--seite);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--akzent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--band); }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: 26px; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: 19px; margin-top: 44px; }
h3 { font-size: 16px; margin-top: 28px; }
h4 { font-size: 15px; margin-top: 18px; }
p { margin: 10px 0 0; max-width: var(--text-breite); }
ul, ol { padding-left: 1.3em; max-width: var(--text-breite); }
li + li { margin-top: 4px; }
code, .mono { font-family: var(--mono); font-size: 0.9em; }
.num, .zahl { font-variant-numeric: tabular-nums; }
.leise { color: var(--text-2); }
.klein { font-size: 13px; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: var(--rand); top: -60px; z-index: 10; background: var(--text); color: var(--seite); padding: 8px 12px; border-radius: 4px; }
.skip:focus { top: 8px; }

.innen { max-width: var(--breite); margin: 0 auto; padding-left: var(--rand); padding-right: var(--rand); }

/* Kopf */
.kopf-innen { display: flex; align-items: center; gap: 12px 24px; padding-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.marke { display: flex; align-items: center; gap: 10px; margin-right: auto; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: var(--text); text-decoration: none; white-space: nowrap; }
.marke-quadrat { display: block; width: 10px; height: 10px; border-radius: 2px; background: var(--akzent); flex: none; }
.marke-zusatz { font-weight: 400; font-size: 13px; letter-spacing: 0; color: var(--text-2); padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--linie-2); white-space: normal; }
.navi { display: flex; flex-wrap: wrap; gap: 4px; }
.navi a { color: var(--text-2); text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: 14px; white-space: nowrap; }
.navi a:hover { color: var(--text); background: var(--akzent-weich); }
.navi a[aria-current="page"] { color: var(--akzent); font-weight: 500; }
.thema-knopf {
  display: inline-grid; place-items: center; width: 34px; height: 30px; padding: 0;
  border: 1px solid var(--linie); border-radius: 6px; background: var(--flaeche); color: var(--text-2); cursor: pointer;
}
.thema-knopf:hover { color: var(--text); }
.symbol { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.symbol-mond { fill: currentColor; stroke: none; }

@media (max-width: 680px) {
  .navi { order: 3; width: 100%; margin: 0 -10px; gap: 0 2px; }
  .marke-zusatz { display: none; }
}
@media (min-width: 681px) and (max-width: 1100px) { .marke-zusatz { display: none; } }

.demo-hinweis { margin-top: 16px; }
.demo-hinweis p { margin: 0; font-size: 13px; color: var(--ko); border-left: 2px solid var(--ko); padding: 2px 0 2px 10px; max-width: 75ch; }

/* Inhalt */
.blatt { padding-top: 36px; padding-bottom: 56px; outline: none; min-height: 60vh; }
.einleitung { font-size: 15px; color: var(--text-2); margin-top: 8px; }
.pfad { font-size: 13px; color: var(--text-2); margin: 0 0 6px; }
.pfad a { color: var(--text-2); }
.untertitel { margin-top: 2px; color: var(--text-2); font-size: 15px; }
.lade { color: var(--text-2); }
.fehler { border-left: 3px solid var(--ko); padding: 8px 14px; margin-top: 16px; color: var(--text); background: var(--ko-weich); }
.hinweis { font-size: 13px; color: var(--text-2); border-left: 2px solid var(--linie-2); padding: 2px 0 2px 10px; margin-top: 16px; max-width: 75ch; }

/* Startseite: Einordnung und Kennzahlenzeile */
.start { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.start > * { margin: 0; }
.start h1 { max-width: 30ch; }
.kennzeile { color: var(--text-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.kennzeile strong { color: var(--text); font-weight: 500; }
.start .hinweis { margin: 0; }

/* Formularelemente */
select, input[type="text"], input[type="search"], textarea {
  font: inherit; font-size: 15px; color: var(--text); background: var(--flaeche);
  border: 1px solid var(--linie-2); border-radius: 6px; max-width: 100%;
}
select, input[type="text"], input[type="search"] { height: 32px; padding: 0 8px; font-size: 14px; }
textarea { width: 100%; min-height: 4.5em; padding: 8px 10px; resize: vertical; line-height: 1.5; }
input[type="range"] { accent-color: var(--akzent); width: 100%; margin: 6px 0 0; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--akzent); width: 16px; height: 16px; margin: 0; flex: none; }
.feld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.feld-label { font-size: 13px; color: var(--text-2); }
.feld-inline { display: inline-flex; align-items: center; gap: 8px; }
.feld > .segment { align-self: flex-start; }
.haken { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }

.segment { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--linie-2); border-radius: 7px; overflow: hidden; background: var(--flaeche); max-width: 100%; }
.segment button { font: inherit; font-size: 13px; border: 0; background: transparent; color: var(--text-2); padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.segment button + button { border-left: 1px solid var(--linie-2); }
.segment button:hover { color: var(--text); }
.segment button[aria-pressed="true"] { background: var(--akzent); color: var(--auf-akzent); }
.segment button:focus-visible { outline: 2px solid var(--akzent); outline-offset: -2px; border-radius: 0; }

.knopf {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  font: inherit; font-size: 14px; font-weight: 500; border-radius: 6px; cursor: pointer; text-decoration: none;
  background: var(--akzent); color: var(--auf-akzent); border: 1px solid var(--akzent); white-space: nowrap;
}
.knopf:hover { filter: brightness(1.08); }
.knopf-zweit { background: var(--flaeche); color: var(--text); border-color: var(--linie-2); }
.knopf-zweit:hover { background: var(--flaeche-2); filter: none; }
.knopf[disabled] { opacity: 0.5; cursor: not-allowed; }
.knopf .symbol { width: 14px; height: 14px; }

/* Filterleiste */
.filter { display: flex; flex-direction: column; gap: 12px; }
.filter-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.filter-hinweis { font-size: 13px; color: var(--text-2); margin: 0; }
.filter-schalter { display: none; }
.gewichte { padding: 14px 0 4px; border-top: 1px solid var(--linie); }
.gewichte[hidden] { display: none; }
.gewichte-raster { display: grid; gap: 12px 28px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-top: 8px; }
.gewichte-ebene { grid-column: 1 / -1; font-size: 13px; font-weight: 600; margin-top: 6px; }
.gewicht { display: grid; grid-template-columns: 1fr auto; font-size: 13px; }
.gewicht input { grid-column: 1 / -1; }
.gewicht output { font-variant-numeric: tabular-nums; color: var(--text-2); }
.gewichte-fuss { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
.gewichte-fuss p { margin: 0; font-size: 13px; color: var(--text-2); flex: 1 1 320px; }
@media (max-width: 680px) {
  .filter-schalter { display: inline-flex; align-self: flex-start; }
  .filter[data-offen="false"] .filter-inhalt { display: none; }
  .filter-inhalt { display: flex; flex-direction: column; gap: 12px; }
  .filter-zeile { flex-direction: column; align-items: stretch; }
  .filter-zeile .feld-inline { justify-content: space-between; }
  .filter-zeile select { flex: 1 1 auto; min-width: 0; }
  .segment:not(.segment-kompakt) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--linie-2); }
  .segment:not(.segment-kompakt) button { background: var(--flaeche); white-space: normal; text-align: center; }
  .segment:not(.segment-kompakt) button + button { border-left: 0; }
  .segment:not(.segment-kompakt) button[aria-pressed="true"] { background: var(--akzent); }
}
@media (min-width: 681px) { .filter-inhalt { display: flex; flex-direction: column; gap: 12px; } }

/* Tabellen */
.tabelle-rahmen { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; overflow-x: auto; margin-top: 16px; max-width: 100%; }
.tabelle-rahmen:focus-visible { outline-offset: 2px; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tabelle th, .tabelle td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linie); }
.tabelle tbody tr:last-child > * { border-bottom: 0; }
.tabelle th { font-size: 12px; font-weight: 500; color: var(--text-2); letter-spacing: 0.02em; vertical-align: bottom; }
.tabelle .num { text-align: right; white-space: nowrap; }
.tabelle tr.gruppe th { padding-top: 18px; font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0; background: var(--flaeche-2); }
.tabelle caption.unter { caption-side: bottom; text-align: left; font-size: 13px; color: var(--text-2); padding: 10px 14px 12px; border-top: 1px solid var(--linie); }
.sortier { display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; }
.sortier:hover { color: var(--text); }
.sortier .pfeil { font-size: 10px; opacity: 0; }
.sortier:hover .pfeil, .sortier:focus-visible .pfeil { opacity: 0.5; }
th[aria-sort] .sortier { color: var(--text); }
th[aria-sort] .sortier .pfeil { opacity: 1; }
th.num .sortier { flex-direction: row-reverse; }

/* Rangliste */
.rangliste td { padding: 12px 10px; vertical-align: middle; }
.rangliste th { padding-left: 10px; padding-right: 10px; }
.tabelle-fuss { margin: 0; max-width: none; font-size: 13px; color: var(--text-2); padding: 10px 14px 12px; border-top: 1px solid var(--linie); }
.rangliste td.c-profil, .rangliste thead tr:not(.gruppen) th.num { padding-left: 8px; padding-right: 10px; }
.rangliste tbody tr:hover { background: color-mix(in srgb, var(--akzent-weich) 45%, transparent); }
.rangliste .c-stufe { width: 1%; }
.rangliste thead tr.gruppen th { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); padding-bottom: 0; border-bottom: 0; }
.rangliste thead tr.gruppen th span { display: block; border-bottom: 2px solid var(--akzent); padding-bottom: 6px; }
.rangliste thead tr.gruppen th.ohne span { border-bottom-color: transparent; }
.rangliste th.trenner, .rangliste td.trenner { border-left: 1px solid var(--linie); }
.rangliste thead tr:not(.gruppen) th, .rangliste thead tr:not(.gruppen) th .sortier { white-space: normal; hyphens: manual; }
.rangliste thead tr:not(.gruppen) th.num .sortier { text-align: right; }
.rangliste td.c-profil { color: var(--text-2); }
.rangliste td.c-profil.best, .rangliste .best { color: var(--text); font-weight: 600; }
.rangliste .c-profil-mobil { display: none; }
.modell-name { font-weight: 500; color: var(--text); text-decoration: none; }
.rangliste .c-modell { min-width: 168px; }
.rangliste .modell-name { white-space: nowrap; }
a.modell-name:hover { color: var(--akzent); text-decoration: underline; }
.modell-zusatz { display: block; font-size: 12px; color: var(--text-2); margin-top: 1px; }
.score { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.score-wert { font-weight: 600; font-size: 15px; width: 2.4em; text-align: right; flex: none; }
.score .balken { flex: 1 1 auto; min-width: 80px; }
.ko-hoch { color: var(--ko); font-weight: 500; }
.wert-zusatz { display: block; font-size: 12px; color: var(--text-2); }
.leer { color: var(--text-2); }
.sortier-mobil { display: none; }

/* Rangliste mobil: Zeilen als kompakte Blöcke */
@media (max-width: 680px) {
  .sortier-mobil { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); margin-top: 0; }
  .sortier-mobil select { flex: 1 1 auto; min-width: 0; }
  .rangliste-rahmen { overflow: visible; }
  .rangliste, .rangliste tbody, .rangliste tr, .rangliste td { display: block; }
  .rangliste thead { display: none; }
  .rangliste tr { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 6px 12px; padding: 14px; border-bottom: 1px solid var(--linie); }
  .rangliste tbody tr:last-child { border-bottom: 0; }
  .rangliste td { border: 0; padding: 0; }
  .rangliste .c-stufe { grid-column: 1; grid-row: 1 / span 2; width: auto; }
  .rangliste .c-modell, .rangliste .c-score { grid-column: 2 / -1; }
  .rangliste .c-profil-mobil { display: block; grid-column: 2 / -1; order: 1; font-size: 12.5px; color: var(--text-2); }
  .rangliste .c-klein { order: 2; font-size: 13px; text-align: left; }
  .rangliste .c-ko, .rangliste .c-zeit { grid-column: 2; }
  .rangliste .c-praeg, .rangliste .c-usd { grid-column: 3; }
  .rangliste td.c-profil { display: none; }
  .rangliste td.trenner { border-left: 0; }
  .rangliste .c-klein[data-label]::before { content: attr(data-label) ": "; color: var(--text-2); }
  .rangliste .wert-zusatz { display: block; }
  .rangliste .score { min-width: 0; }
  .rangliste .score .balken { min-width: 0; }

}

/* Score-Balken: Spur, Band (95-%-KI), Punkt (Score) */
.balken { position: relative; display: inline-block; width: 140px; height: 8px; border-radius: 4px; background: var(--linie); flex: none; vertical-align: middle; }
.balken-ki { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--band); }
.balken-punkt { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--akzent); box-shadow: 0 0 0 2px var(--flaeche); }
.balken-mini { width: 34px; }

/* Kleine Marken */
.stufe { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--akzent-weich); color: var(--akzent); }
.stufe.weiter { background: transparent; color: var(--text-2); border: 1px solid var(--linie-2); }
.ko-marke { display: inline-block; font-size: 12px; font-weight: 500; line-height: 18px; padding: 0 6px; border-radius: 4px; color: var(--ko); background: var(--ko-weich); white-space: nowrap; }
.marke-leise { display: inline-block; font-size: 12px; line-height: 18px; padding: 0 6px; border-radius: 4px; color: var(--text-2); border: 1px solid var(--linie-2); white-space: nowrap; }
.kreis { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.kreis-ja { background: var(--akzent); }
.kreis-nein { border: 1.5px solid var(--text-2); }
.kreis-offen { border: 1.5px dashed var(--linie-2); }
.kreise { display: inline-flex; gap: 4px; align-items: center; vertical-align: middle; }

.legende { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; font-size: 12.5px; color: var(--text-2); max-width: 100%; }
.legende > span { display: inline-flex; align-items: center; gap: 6px; }
.legende .balken { width: 34px; }
.legende .stufe { min-width: 18px; height: 18px; font-size: 11px; }

/* Raster */
.zwei-spalten { display: grid; gap: 8px 48px; }
@media (min-width: 960px) { .zwei-spalten { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.zwei-spalten > *, .item-layout > *, .experten-layout > *, .auswahl-layout > * { min-width: 0; }

/* Kennwertzeile der Modellseite */
.kennwerte { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 24px 0 0; }
.kennwerte div { display: flex; flex-direction: column; min-width: 7rem; }
.kennwerte dt { order: 2; font-size: 13px; color: var(--text-2); }
.kennwerte dd { order: 1; margin: 0; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; }
.kennwerte .zusatz { order: 3; font-size: 13px; color: var(--text-2); }

/* Dialoge und Antworten */
.zug { margin-top: 10px; }
.zug-rolle { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); }
.zug-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.zug-kind .zug-text { color: var(--text-2); border-left: 2px solid var(--linie-2); padding-left: 10px; }
.antworten { display: grid; gap: 16px; margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.antwort { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.antwort-kopf { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.antwort-kopf a { font-weight: 500; }
.antwort-score { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.antwort > .zug:first-of-type { margin-top: 0; }
.antwort-fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; font-size: 13px; color: var(--text-2); margin-top: auto; }
.kriterien-liste { list-style: none; padding: 0; margin: 0; font-size: 14px; max-width: none; }
.kriterien-liste > li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; align-items: start; padding: 3px 0; margin: 0; }
.kriterien-liste > li > .kreis { margin-top: 5px; }
.kriterien-liste details { margin-top: 2px; }
.kriterien-liste summary { cursor: pointer; color: var(--text-2); font-size: 13px; }
.urteile { list-style: none; padding: 0; margin: 6px 0 0; font-size: 13px; color: var(--text-2); }
.urteile li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; margin: 4px 0 0; }
.urteile .kreis { margin-top: 4px; }
.urteile b { font-weight: 500; color: var(--text); font-family: var(--mono); font-size: 12px; }

.beispiel { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 860px) { .beispiel { grid-template-columns: 1fr 1fr; } }

/* Code und Prompts */
.code { font-family: var(--mono); font-size: 13.5px; line-height: 1.6; background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 6px; padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 8px; max-width: 90ch; }

/* Steckbrief (Definitionsliste) */
.steckbrief { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 8px 20px; margin: 20px 0 0; max-width: 90ch; }
.steckbrief dt { color: var(--text-2); font-size: 14px; padding-top: 1px; }
.steckbrief dd { margin: 0; }
@media (max-width: 600px) { .steckbrief { grid-template-columns: 1fr; gap: 2px; } .steckbrief dd { margin-bottom: 10px; } }

/* Modellauswahl */
.auswahl-layout { display: grid; gap: 32px; margin-top: 24px; }
@media (min-width: 980px) { .auswahl-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.regler { display: grid; gap: 18px; }
.regler output { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Diagramme */
.diagramm { width: 100%; height: auto; display: block; font-family: var(--schrift); overflow: visible; }
.diagramm text { fill: var(--text-2); font-size: 12px; }
.diagramm.kompakt text { font-size: 13.5px; }
.diagramm .t-stark { fill: var(--text); }
.diagramm .t-label { fill: var(--text); font-size: 12.5px; paint-order: stroke; stroke: var(--seite); stroke-width: 4px; stroke-linejoin: round; }
.diagramm .gitter { stroke: var(--linie); stroke-width: 1; }
.diagramm .achse { stroke: var(--linie-2); stroke-width: 1; }
.diagramm .zone { fill: var(--akzent-weich); stroke: var(--akzent); stroke-width: 1; stroke-dasharray: 4 3; }
.diagramm .p-in { fill: var(--akzent); stroke: var(--seite); stroke-width: 1.5; }
.diagramm .p-aus { fill: var(--punkt-aus); stroke: var(--seite); stroke-width: 1.5; }
.diagramm .p-ring { stroke-width: 2; }
.diagramm .p-ring.p-in { stroke: var(--akzent); fill: var(--seite); }
.diagramm .p-ring.p-aus { stroke: var(--punkt-aus); fill: var(--seite); }
.diagramm .punkt { cursor: pointer; }
.diagramm .punkt:focus-visible { outline: none; stroke: var(--text); stroke-width: 3; }
.diagramm .balken-h { fill: var(--akzent); opacity: 0.75; }
.diagramm .linie-v { stroke: var(--linie-2); stroke-width: 2; }
.diagramm .p-voll { fill: var(--akzent); }
.diagramm .p-leer { fill: var(--seite); stroke: var(--akzent); stroke-width: 2; }
.diagramm-legende { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; color: var(--text-2); margin-top: 8px; }
.legende-punkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.legende-punkt.in { background: var(--akzent); }
.legende-punkt.aus { background: var(--punkt-aus); }
.legende-punkt.ring { border: 2px solid var(--text-2); }

/* Items */
.item-layout { display: grid; gap: 32px; margin-top: 24px; }
@media (min-width: 1000px) {
  .item-layout { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
  .item-spalte { position: sticky; top: 16px; }
  .item-navi .item-liste { max-height: calc(100vh - 290px); overflow-y: auto; }
}
.item-navi > summary { cursor: pointer; font-weight: 500; padding: 8px 0; }
@media (min-width: 1000px) { .item-navi > summary { display: none; } }
.item-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.item-filter .breit { grid-column: 1 / -1; }
.item-filter select, .item-filter input { width: 100%; }
.item-anzahl { font-size: 13px; color: var(--text-2); margin-top: 12px; }
.item-liste { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--linie); max-width: none; }
.item-liste li { margin: 0; }
.item-liste a { display: block; padding: 8px 8px 8px 10px; border-bottom: 1px solid var(--linie); text-decoration: none; color: var(--text); font-size: 14px; border-left: 2px solid transparent; }
.item-liste a:hover { background: var(--flaeche-2); }
.item-liste a[aria-current="true"] { border-left-color: var(--akzent); background: var(--akzent-weich); }
.item-liste .mono { display: block; font-size: 12px; color: var(--text-2); }
.item-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 10px; font-size: 14px; color: var(--text-2); }
.kriterien-tabelle td:nth-child(2) { min-width: 16em; }
.konstrukt-tabelle .balken { width: 100%; max-width: 420px; }
.tabelle .modell-name { white-space: nowrap; }

/* Expertenbewertung */
.experten-layout { display: grid; gap: 32px; margin-top: 24px; }
@media (min-width: 1000px) {
  .experten-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .experten-situation { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding-right: 8px; }
}
.formular { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; padding: 20px; }
.formular h2:first-child, .formular h3:first-child { margin-top: 0; }
.formular h3 { margin-top: 24px; }
.urteil-feld { border: 0; border-bottom: 1px solid var(--linie); padding: 12px 0; margin: 0; min-width: 0; }
.urteil-feld legend { float: left; width: 100%; font-family: var(--mono); font-size: 12px; color: var(--text-2); padding: 0; }
.urteil-feld p { clear: both; margin: 0; padding-top: 2px; }
.formular > p.klein { margin-bottom: 6px; }
.optionen { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; }
.abgleich { margin-top: 8px; font-size: 14px; padding: 6px 10px; border-left: 3px solid var(--akzent); background: var(--akzent-weich); }
.abgleich.anders { border-left-color: var(--ko); background: var(--ko-weich); }
.profil-zeile { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-top: 20px; padding: 12px 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.profil-zeile p { margin: 0; flex: 1 1 320px; font-size: 15px; }
.ergebnis { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--akzent); background: var(--akzent-weich); }
.ergebnis p:first-child { margin-top: 0; }

/* Text- und Methodikseiten */
.text-spalte { max-width: 820px; }
.schritte { list-style: none; padding: 0; margin: 16px 0 0; counter-reset: schritt; }
.schritte li { counter-increment: schritt; display: grid; grid-template-columns: 28px 1fr; gap: 0 12px; padding: 12px 0; border-bottom: 1px solid var(--linie); margin: 0; }
.schritte li::before { content: counter(schritt); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-2); grid-row: span 3; }
.schritte li.kritisch::before { color: var(--akzent); }
.schritte .leise { font-size: 14px; }
details.konstrukt { border-bottom: 1px solid var(--linie); padding: 8px 0; }
details.konstrukt summary { cursor: pointer; }
details.konstrukt summary .mono { color: var(--text-2); margin-right: 6px; }
details.konstrukt p, details.konstrukt ul { font-size: 15px; }
.glossar { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 8px 24px; margin-top: 16px; font-size: 15px; }
.glossar dt { font-weight: 500; }
.glossar dd { margin: 0; color: var(--text-2); }
@media (max-width: 600px) { .glossar { grid-template-columns: 1fr; gap: 2px; } .glossar dd { margin-bottom: 10px; } }

.md h1 { font-size: 28px; } .md h2 { font-size: 21px; } .md h3 { font-size: 17px; }
.md table { border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.md th, .md td { border-bottom: 1px solid var(--linie); padding: 6px 12px 6px 0; text-align: left; }
.md th { font-size: 13px; font-weight: 500; color: var(--text-2); border-bottom-color: var(--linie-2); }
.md code { background: var(--flaeche-2); padding: 0 4px; border-radius: 4px; }
.md blockquote { border-left: 2px solid var(--linie-2); margin: 12px 0; padding: 2px 14px; color: var(--text-2); }
.bericht-liste { list-style: none; padding: 0; margin-top: 20px; }
.bericht-liste li { padding: 12px 0; border-bottom: 1px solid var(--linie); margin: 0; }

/* Fuß */
.fuss .innen > div { border-top: 1px solid var(--linie); padding: 20px 0 28px; font-size: 13px; color: var(--text-2); }
.fuss p { margin: 2px 0 0; max-width: none; }
.fuss a { color: var(--text-2); }
.fuss a:hover { color: var(--akzent); }
