/* =====================================================================
   Gästefeedback-Portal – Gestaltungssystem „Tafel“ (Genuss & Harmonie)
   Shell (Leiste, Kopfzeile, Bühne, Anmeldung) 1:1 wie im Intranet;
   Fraunces (Serif) für Überschriften und Zahlen, Instrument Sans für Text.
   Farben: Genussgrün #465726, Harmoniebeige #ca9e67, Waldgrün für die Leiste.
   Diagrammfarben liegen in palette.css (--viz-*, --grade-*).
   ===================================================================== */

@font-face { font-family: "Fraunces Variable"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/fraunces-latin-wght-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: "Fraunces Variable"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/fraunces-latin-wght-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: "Fraunces Variable"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/fraunces-latin-ext-wght-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: "Instrument Sans Variable"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/instrument-sans-latin-wght-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: "Instrument Sans Variable"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("../fonts/instrument-sans-latin-wght-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: "Instrument Sans Variable"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light dark;
  --gruen: #465726;
  --gruen-hell: #5f7433;
  --wald: #2b3817;
  --wald-tief: #1e2810;
  --beige: #ca9e67;
  --beige-tinte: #9f7442;
  --schwarz: #111410;

  --bg: #f3efe6;
  --panel: #fffdf9;
  --panel-2: #f6f1e7;
  --panel-3: #ebe4d6;
  --text: #1d2116;
  --text-2: #4d5245;
  --muted: #7f857a;
  --line: #e2dbcc;
  --line-strong: #c9bfab;
  --accent: #465726;
  --accent-hover: #34431c;
  --accent-soft: #e4ead4;
  --accent-text: #ffffff;
  --beige-soft: #f2e7d5;
  --danger: #a8352b;
  --danger-soft: #f4e0db;
  --warn: #8f6510;
  --warn-soft: #f3e7c9;
  --ok: #465726;
  --schatten: 0 1px 2px rgba(60, 45, 20, 0.05), 0 14px 34px -22px rgba(60, 45, 20, 0.35);
  --schatten-hoch: 0 30px 60px -30px rgba(40, 30, 10, 0.45);

  --kpi-betont-text: #ece7db;
  --kpi-betont-muted: #c9ccbd;
  --kpi-betont-better: #b9dba6;
  --kpi-betont-worse: #f2b3a8;
  --rail-w: 92px;
  --kopf-h: 64px;
  --radius: 12px;
  --radius-klein: 8px;
  --serif: "Fraunces Variable", "Fraunces", Georgia, "Times New Roman", serif;
  --font: "Instrument Sans Variable", "Instrument Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14170f; --panel: #1c2016; --panel-2: #23291c; --panel-3: #2d3424;
    --text: #ece7db; --text-2: #bdb8aa; --muted: #8a8f82; --line: #2f362a; --line-strong: #4a5242;
    --accent: #a4bb6e; --accent-hover: #bcd088; --accent-soft: #2a3420; --accent-text: #10150a;
    --beige: #d6b083; --beige-tinte: #d6b083; --beige-soft: #33291b;
    --danger: #e27f74; --danger-soft: #3c211d; --warn: #dfb455; --warn-soft: #3a3118; --ok: #a4bb6e;
    --wald: #0f1409; --wald-tief: #0a0d06;
    --schatten: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 34px -22px rgba(0, 0, 0, 0.8);
    --schatten-hoch: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  }
}
:root[data-theme="dark"] {
  --bg: #14170f; --panel: #1c2016; --panel-2: #23291c; --panel-3: #2d3424;
  --text: #ece7db; --text-2: #bdb8aa; --muted: #8a8f82; --line: #2f362a; --line-strong: #4a5242;
  --accent: #a4bb6e; --accent-hover: #bcd088; --accent-soft: #2a3420; --accent-text: #10150a;
  --beige: #d6b083; --beige-tinte: #d6b083; --beige-soft: #33291b;
  --danger: #e27f74; --danger-soft: #3c211d; --warn: #dfb455; --warn-soft: #3a3118; --ok: #a4bb6e;
  --wald: #0f1409; --wald-tief: #0a0d06;
  --schatten: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 34px -22px rgba(0, 0, 0, 0.8);
  --schatten-hoch: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}

/* ---- Grundlagen (wie Intranet) ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15.5px; line-height: 1.55; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
input, select, textarea, button { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -0.02em; font-variation-settings: "opsz" 120, "SOFT" 40, "WONK" 1; }
h1 { font-size: 2rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
em, .kursiv { font-style: italic; }
h1 em, h2 em, .akzent { font-style: italic; color: var(--beige-tinte); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a.still { color: inherit; text-decoration: none; }
a.still:hover { text-decoration: underline; }
table { border-collapse: collapse; }
strong, b { font-weight: 600; }
::selection { background: var(--beige); color: #111410; }
.klein-kapitaelchen, .eyebrow, .label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow { color: var(--beige-tinte); }
.label { color: var(--muted); }
.zahl { font-family: var(--serif); font-weight: 600; font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 72, "SOFT" 0, "WONK" 0; letter-spacing: -0.02em; }
.num, .tabellarisch { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.klein { font-size: 0.85rem; }
.rechts { text-align: right; }
.mitte { text-align: center; }
.nowrap { white-space: nowrap; }
.beige { color: var(--beige); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Bewegung (wie Intranet) ---- */
.reveal { opacity: 0; transform: translateY(16px) scale(0.995); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }
.seite { animation: seite-ein 0.5s var(--ease); }
@keyframes seite-ein { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-96px, -56px, 0); } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .seite { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---- Leiste (Rail) – identisch mit dem Intranet ---- */
.app-shell { min-height: 100vh; display: flex; }
.nav-icon { flex-shrink: 0; }
.rail { position: sticky; top: 0; height: 100vh; width: var(--rail-w); flex-shrink: 0; background: var(--wald); color: #d9dccf; display: flex; flex-direction: column; align-items: stretch; padding: 0.8rem 0.5rem 0.6rem; gap: 0.4rem; z-index: 30; }
.rail-logo { display: flex; justify-content: center; padding: 0.1rem 0 0.5rem; color: #fff; }
/* Logo-„Fenster": kleiner Ausschnitt, hinter dem das groß (und damit scharf) gezeichnete Logo langsam und
   verspielt vorbeizieht – wie ein Auto, das an einem Fenster vorbeifährt. Der sichtbare Teil bleibt gestochen
   scharf, und über die Zeit fährt das ganze Logo durch. */
.logo-fenster { width: 42px; height: 42px; overflow: hidden; border-radius: 10px; display: block; }
.logo-voll { width: 120px; height: 120px; display: block; will-change: transform; animation: logo-fahrt 17s ease-in-out infinite; }
.rail-logo:hover .logo-voll, .mobile-marke:hover .logo-voll { animation-play-state: paused; }
@keyframes logo-fahrt {
  0%   { transform: translate(-8px, -8px); }
  22%  { transform: translate(-70px, -14px); }
  44%  { transform: translate(-64px, -68px); }
  66%  { transform: translate(-12px, -58px); }
  84%  { transform: translate(-20px, -18px); }
  100% { transform: translate(-8px, -8px); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-voll { animation: none; transform: translate(-39px, -39px); }
}
.rail-nav { display: flex; flex-direction: column; gap: 0.2rem; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(202, 158, 103, 0.5) transparent; }
.rail-gruppe { display: flex; flex-direction: column; gap: 1px; padding-top: 0.4rem; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.rail-gruppe:first-child { border-top: 0; padding-top: 0; }
.rail-gruppe-label { font-size: 0.52rem; font-weight: 700; letter-spacing: 0.07em; white-space: nowrap; overflow: hidden; text-transform: uppercase; color: var(--beige); text-align: center; padding: 0.1rem 0 0.25rem; opacity: 0.9; }
.rail-item { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.4rem 0.2rem 0.38rem; border-radius: 10px; color: #b9bfae; text-decoration: none; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1; transition: background 0.25s, color 0.25s, transform 0.3s var(--ease); position: relative; }
.rail-item .nav-icon { width: 20px; height: 20px; transition: transform 0.35s var(--ease); }
.rail-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.rail-item:hover .nav-icon { transform: translateY(-1px); }
.rail-item.active { background: rgba(202, 158, 103, 0.16); color: var(--beige); }
.rail-item.active::before { content: ""; position: absolute; left: -0.55rem; top: 22%; bottom: 22%; width: 3px; border-radius: 0 3px 3px 0; background: var(--beige); }
.rail-fuss { display: flex; flex-direction: column; gap: 0.15rem; padding-top: 0.4rem; border-top: 1px solid rgba(255, 255, 255, 0.09); flex-shrink: 0; }
.rail-knopf { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.4rem 0.2rem; border-radius: 10px; border: 0; background: none; color: #a4aa99; font-size: 0.6rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: background 0.25s, color 0.25s; }
.rail-knopf:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
@media (min-width: 961px) and (max-height: 820px) {
  .rail { padding-top: 0.5rem; }
  .rail-logo .logo-fenster { width: 34px; height: 34px; }
  .rail-logo { padding-bottom: 0.3rem; }
  .rail-item { padding: 0.3rem 0.2rem 0.28rem; gap: 0.2rem; font-size: 0.6rem; }
  .rail-item .nav-icon { width: 18px; height: 18px; }
  .rail-gruppe { padding-top: 0.3rem; }
  .rail-gruppe-label { padding: 0.05rem 0 0.15rem; }
  .rail-knopf { padding: 0.3rem 0.2rem; }
}
@media (min-width: 961px) and (max-height: 660px) {
  .rail-item span, .rail-knopf span, .rail-gruppe-label { display: none; }
  .rail-item { padding: 0.45rem 0.2rem; }
}

/* ---- Kopfzeile + Inhalt (wie Intranet) ---- */
.app-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.kopfleiste { position: sticky; top: 0; z-index: 25; height: var(--kopf-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 2.4rem; background: var(--bg); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.kopf-pfad { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--muted); flex-shrink: 0; white-space: nowrap; }
.kopf-pfad b { color: var(--text); font-weight: 600; }
.kopf-pfad .punkt { width: 4px; height: 4px; border-radius: 50%; background: var(--beige); }
.kopf-rechts { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.kopf-rechts .jahr-wahl select { min-height: 36px; padding: 0.3rem 2rem 0.3rem 0.8rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; }
.benutzer { display: flex; align-items: center; gap: 0.65rem; padding: 0.3rem 0.9rem 0.3rem 0.3rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.benutzer-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--wald); color: var(--beige); font-family: var(--serif); font-weight: 600; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.benutzer-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.benutzer-name { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.benutzer-rolle { font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.benutzer-dunkel { margin-bottom: 0.5rem; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.15); color: #fff; }
.benutzer-dunkel .benutzer-rolle { color: #a4aa99; }
.app-main, .seite { flex: 1 1 auto; min-width: 0; padding: 1.8rem 2.4rem 5rem; width: 100%; max-width: none; }
.mobile-bar { display: none; }
.rail-hintergrund { display: none; }
.mobil-nur { display: none; }

@media (max-width: 960px) {
  .app-shell { flex-direction: column; }
  .mobile-bar { display: flex; align-items: center; gap: 0.7rem; position: sticky; top: 0; z-index: 40; height: 56px; background: var(--wald); color: #fff; padding: 0 0.8rem; }
  .mobile-marke { display: flex; align-items: center; gap: 0.6rem; flex: 1 1 auto; min-width: 0; overflow: hidden; text-decoration: none; color: #fff; font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
  .mobile-marke .logo-fenster { width: 32px; height: 32px; flex-shrink: 0; }
  .mobile-marke-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .menue-knopf { width: 40px; height: 40px; border: 0; background: none; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; cursor: pointer; }
  .menue-knopf span { display: block; height: 1.5px; background: #fff; border-radius: 2px; }
  .rail { position: fixed; inset: 56px auto 0 0; width: min(280px, 84vw); height: auto; z-index: 60; transform: translateX(-100%); transition: transform 0.35s var(--ease); padding: 1rem 0.8rem; box-shadow: var(--schatten-hoch); }
  .rail.offen { transform: translateX(0); }
  .rail-logo { display: none; }
  .rail-gruppe-label { text-align: left; padding-left: 0.6rem; }
  .rail-item { flex-direction: row; gap: 0.8rem; padding: 0.6rem 0.7rem; font-size: 0.92rem; font-weight: 500; }
  .rail-item.active::before { left: -0.8rem; }
  .rail-knopf { flex-direction: row; gap: 0.8rem; padding: 0.6rem 0.7rem; font-size: 0.85rem; }
  .rail-hintergrund { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(17, 20, 16, 0.5); border: 0; }
  .rail-hintergrund[hidden] { display: none; }
  .kopfleiste { display: none; }
  .app-main, .seite { padding: 1rem 1rem 4rem; }
  .mobil-nur { display: block; }
}
@media (max-width: 520px) {
  .mobile-bar { gap: 0.5rem; }
  .mobile-marke-text { display: none; }
}

/* ---- Seitenkopf ---- */
.seitenkopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.6rem; }
.seitenkopf h1 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); margin-top: 0.4rem; }
.seitenkopf .untertitel { color: var(--text-2); font-size: 0.98rem; margin-top: 0.6rem; max-width: 66ch; }
.seitenkopf .aktionen { margin-left: auto; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

/* ---- Bühne (Übersicht) – identisch mit dem Intranet ---- */
.buehne { position: relative; overflow: hidden; border-radius: 22px; background: radial-gradient(70% 120% at 50% 0%, #3d5022 0%, var(--wald) 55%, var(--wald-tief) 100%); color: #fff; padding: 3rem 3.2rem 5.4rem; box-shadow: var(--schatten-hoch); }
.buehne::after { content: ""; position: absolute; left: 20%; right: 20%; top: -60%; height: 140%; background: radial-gradient(closest-side, rgba(202, 158, 103, 0.18), transparent 70%); pointer-events: none; }
.buehne-deco { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.buehne-rahmen { position: absolute; inset: 14px; border: 1px solid rgba(202, 158, 103, 0.35); border-radius: 12px; pointer-events: none; }
.buehne-rahmen::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(202, 158, 103, 0.16); border-radius: 8px; }
.buehne-rahmen::after { content: "◆ ◆"; position: absolute; left: 50%; top: -0.55rem; transform: translateX(-50%); padding: 0 0.6rem; background: var(--wald); color: var(--beige); font-size: 0.55rem; letter-spacing: 0.6em; }
.buehne-inhalt { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); gap: 2rem; align-items: end; }
.buehne-titel { font-size: clamp(2.8rem, 5.6vw, 5rem); line-height: 0.95; letter-spacing: -0.03em; font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1; }
.buehne-titel em { color: var(--beige); font-style: italic; font-weight: 400; }
.buehne-text { font-size: 1.08rem; color: rgba(255, 255, 255, 0.8); max-width: 50ch; margin: 1.1rem 0 1.5rem; }
.buehne-aktionen { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.buehne-zitat { justify-self: end; max-width: 320px; border-left: 2px solid var(--beige); padding-left: 1.2rem; }
.buehne-zitat blockquote { margin: 0; font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; font-weight: 400; font-style: italic; font-variation-settings: "opsz" 60, "SOFT" 80; }
.buehne-zitat cite { display: block; font-style: normal; margin-top: 0.7rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--beige); }
.buehne-eyebrow { color: var(--beige); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.8rem; }
.buehne-eyebrow::after { content: ""; flex: 0 0 48px; height: 1px; background: rgba(255, 255, 255, 0.3); }
.kacheln { position: relative; margin: -3rem 2rem 1.6rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.8rem; }
.kachel { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 0.95rem; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 0.35rem; box-shadow: var(--schatten); transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.2s; overflow: hidden; }
.kachel .n { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 72, "SOFT" 20; }
.kachel .n small { font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: 0.15rem; font-family: var(--font); letter-spacing: 0; }
.kachel .l { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.kachel .l .delta { font-size: 0.72rem; letter-spacing: 0.04em; }
.kachel .index { position: absolute; right: 0.9rem; top: 0.8rem; font-size: 0.66rem; font-weight: 600; color: var(--beige-tinte); letter-spacing: 0.08em; }
a.kachel:hover { transform: translateY(-3px); box-shadow: var(--schatten-hoch); border-color: var(--beige); }
@media (max-width: 900px) { .buehne { padding: 2rem 1.4rem 4rem; border-radius: 18px; } .buehne-inhalt { grid-template-columns: 1fr; } .buehne-zitat { justify-self: start; } .kacheln { margin: -2.4rem 0.8rem 1.4rem; } }

/* ---- Filterleiste ---- */
.filter { display: flex; flex-wrap: wrap; gap: 0.6rem 0.9rem; align-items: flex-end; padding: 0.85rem 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.25rem; box-shadow: var(--schatten); }
.filter label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.filter .zeile { display: flex; gap: 0.5rem; align-items: center; }

/* ---- Karten ---- */
.karte { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--schatten); padding: 1.3rem 1.4rem; }
.karte + .karte { margin-top: 1.2rem; }
.karte-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.karte-kopf h2, .karte-kopf h3 { margin: 0; }
.karte-kopf h2 { font-size: 1.35rem; }
.karte-kopf .mehr { font-size: 0.85rem; }
.raster { display: grid; gap: 1rem; }
.raster-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.raster-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.raster-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.raster + .raster, .raster + .karte, .karte + .raster { margin-top: 1.2rem; }

/* ---- Kennzahl-Kacheln (Unterseiten) ---- */
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; box-shadow: var(--schatten); display: flex; flex-direction: column; gap: 0.3rem; min-height: 112px; position: relative; overflow: hidden; }
.kpi .label { font-size: 0.68rem; }
.kpi .wert { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 72, "SOFT" 0, "WONK" 0; letter-spacing: -0.03em; }
.kpi .wert small { font-size: 0.95rem; font-weight: 500; color: var(--muted); margin-left: 0.3rem; font-family: var(--font); letter-spacing: 0; }
.kpi .neben { font-size: 0.82rem; color: var(--text-2); display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.kpi.betont { background: var(--wald); color: var(--kpi-betont-text); border-color: transparent; }
.kpi.betont .label { color: var(--beige); }
.kpi.betont .neben { color: var(--kpi-betont-muted); }
.kpi.betont .delta-better { color: var(--kpi-betont-better); }
.kpi.betont .delta-worse { color: var(--kpi-betont-worse); }
.kpi.betont .delta-neutral { color: var(--kpi-betont-muted); }

/* ---- Noten-Chips (Status: gut ≤ 2,5 · mittel ≤ 3,5 · kritisch > 3,5) ---- */
.note-chip { display: inline-flex; align-items: center; gap: 0.3rem; min-width: 3.4em; justify-content: center; padding: 0.12rem 0.5rem; border-radius: 999px; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.9em; line-height: 1.4; border: 1px solid transparent; }
.note-chip::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: currentColor; opacity: 0.85; }
.note-gut { background: var(--grade-good-soft, #e4ead4); color: var(--grade-good-ink, #2f4414); border-color: color-mix(in srgb, var(--grade-good, #4f8a2e) 35%, transparent); }
.note-mittel { background: var(--grade-warn-soft, #f6ead0); color: var(--grade-warn-ink, #6b4a0a); border-color: color-mix(in srgb, var(--grade-warn, #d19a1e) 45%, transparent); }
.note-kritisch { background: var(--grade-bad-soft, #f6dfdb); color: var(--grade-bad-ink, #7a1f17); border-color: color-mix(in srgb, var(--grade-bad, #c0392b) 40%, transparent); }
.note-leer { background: var(--panel-3); color: var(--muted); }
.note-leer::before { display: none; }
.delta { font-variant-numeric: tabular-nums; font-size: 0.85em; white-space: nowrap; }
.delta-better { color: var(--grade-good-ink, #2f4414); }
.delta-worse { color: var(--grade-bad-ink, #7a1f17); }
.delta-neutral { color: var(--muted); }
.legende-noten { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; font-size: 0.78rem; color: var(--text-2); align-items: center; }

/* ---- Tabellen ---- */
.tabelle-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--schatten); }
.tabelle { width: 100%; font-size: 0.9rem; }
.tabelle th, .tabelle td { padding: 0.5rem 0.7rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.tabelle th { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--panel-2); position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.tabelle th.sortierbar { cursor: pointer; user-select: none; }
.tabelle th.sortierbar:hover { color: var(--text); }
.tabelle th.sortierbar[aria-sort="ascending"]::after { content: " ▲"; font-size: 0.6rem; }
.tabelle th.sortierbar[aria-sort="descending"]::after { content: " ▼"; font-size: 0.6rem; }
.tabelle td.num, .tabelle th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tabelle tbody tr:hover { background: color-mix(in srgb, var(--beige-soft) 60%, transparent); }
.tabelle tr.gruppe td { background: var(--panel-2); font-weight: 600; }
.tabelle tr.gruppe td:first-child { font-family: var(--serif); font-size: 1rem; font-weight: 600; }
.tabelle td.einzug { padding-left: 1.6rem; }
.tabelle tfoot td { font-weight: 600; background: var(--panel-2); border-top: 2px solid var(--line-strong); }
.tabelle .leer { text-align: center; color: var(--muted); padding: 2rem; }
.tabelle-kompakt th, .tabelle-kompakt td { padding: 0.32rem 0.55rem; }

/* ---- Buttons (wie Intranet) & Formulare ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.55rem 1.1rem; min-height: 42px; border-radius: 999px; cursor: pointer; font-size: 0.88rem; font-weight: 600; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); text-decoration: none; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s; line-height: 1.2; }
.btn:hover { border-color: var(--text); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[disabled] { opacity: 0.45; cursor: default; transform: none; }
.btn.primaer, .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primaer:hover, .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 10px 24px -14px var(--accent); }
.btn-beige { background: var(--beige); border-color: var(--beige); color: #111410; }
.btn-beige:hover { background: #d8ad78; border-color: #d8ad78; box-shadow: 0 10px 24px -14px var(--beige); }
.btn-hell { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-hell:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; }
.btn.gefahr, .btn-danger { color: var(--danger); border-color: var(--danger); }
.btn.gefahr:hover, .btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn.klein, .btn-sm { min-height: 32px; padding: 0.3rem 0.8rem; font-size: 0.8rem; }
.btn-gross { min-height: 50px; padding: 0.7rem 1.5rem; font-size: 0.95rem; }
.btn.leise { border-color: transparent; background: transparent; }
.btn.leise:hover { background: var(--panel-2); border-color: transparent; }
.btn.aktiv { background: var(--beige-soft); border-color: var(--beige); color: var(--text); }
.btn svg { width: 16px; height: 16px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input[type="date"], select, textarea { padding: 0.55rem 0.85rem; min-height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); min-width: 0; transition: border-color 0.2s, box-shadow 0.2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--beige); outline-offset: 2px; }
select:not([size]):not([multiple]) { appearance: none; -webkit-appearance: none; padding-right: 2.2rem; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%237f857a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 0.85rem center; cursor: pointer; }
::placeholder { color: var(--muted); }
textarea { min-height: 5rem; resize: vertical; }
.feld { display: flex; flex-direction: column; gap: 0.3rem; }
.feld label, .feld .label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.feld .hinweis { font-size: 0.8rem; color: var(--muted); }
.formular { display: flex; flex-direction: column; gap: 1rem; max-width: 520px; }
.formular .zeile { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.formular .zeile .feld { flex: 1 1 200px; }
.schalter { display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer; font-size: 0.9rem; }
.schalter input { width: 17px; height: 17px; margin: 0; accent-color: var(--gruen); min-height: 0; }
.pill-gruppe { display: inline-flex; gap: 0.25rem; padding: 0.2rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; }
.pill-gruppe a, .pill-gruppe button { padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: var(--text-2); text-decoration: none; border: 0; background: transparent; cursor: pointer; }
.pill-gruppe .active { background: var(--panel); color: var(--text); box-shadow: var(--schatten); }
.chip-liste { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 0.8rem; }
.chip.aktiv { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* ---- Meldungen ---- */
.flash { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.8rem 1rem; border-radius: var(--radius); margin-bottom: 1.25rem; border: 1px solid; font-size: 0.92rem; }
.flash-ok { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--text); }
.flash-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.flash-error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.flash .schliessen { margin-left: auto; border: 0; background: none; cursor: pointer; font-size: 1.1rem; line-height: 1; color: inherit; }
.hinweis-box { padding: 0.75rem 1rem; border-radius: var(--radius-klein); background: var(--beige-soft); border: 1px solid color-mix(in srgb, var(--beige) 50%, transparent); font-size: 0.9rem; }
.warn-liste { margin: 0.4rem 0 0; padding-left: 1.2rem; font-size: 0.85rem; color: var(--text-2); }

/* ---- Leere Zustände ---- */
.leer-zustand { text-align: center; padding: 3rem 1.5rem; color: var(--text-2); }
.leer-zustand h2 { margin-bottom: 0.5rem; }

/* ---- Diagramm-Container ---- */
.chart-box { position: relative; width: 100%; height: 320px; }
.chart-box.hoch { height: 420px; }
.chart-box.flach { height: 200px; }
.chart-box canvas { width: 100% !important; height: 100% !important; }
.chart-legende { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.8rem; color: var(--text-2); margin-top: 0.6rem; }
.chart-legende .farbe { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 0.35rem; vertical-align: -1px; }
.chart-hinweis { font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; }

/* ---- Heatmap-Zellen (Sequential-Ramp aus palette.css) ---- */
.heat { font-variant-numeric: tabular-nums; text-align: center; font-size: 0.8rem; font-weight: 600; border-radius: 6px; padding: 0.25rem 0.3rem; min-width: 3.2em; display: inline-block; }
.heat-leer { color: var(--muted); background: transparent; }

/* ---- Anmeldung – identisch mit dem Intranet ---- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--bg); }
.auth-buehne { position: relative; overflow: hidden; background: radial-gradient(90% 120% at 100% 0%, #3d5022 0%, var(--wald) 45%, var(--wald-tief) 100%); color: #fff; padding: 2.6rem 3.2rem; display: flex; flex-direction: column; justify-content: space-between; min-height: 380px; }
.auth-raster { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.auth-buehne::after { content: ""; position: absolute; right: -10%; top: -30%; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(202, 158, 103, 0.2), transparent 70%); pointer-events: none; }
.auth-buehne > * { position: relative; }
.auth-kopf { display: flex; justify-content: space-between; align-items: flex-start; }
.auth-zeile { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.auth-logo { width: clamp(110px, 12vw, 176px); height: auto; aspect-ratio: 1; color: #fff; flex-shrink: 0; margin-bottom: 0.4rem; }
.auth-titel { font-size: clamp(2.8rem, 5.6vw, 5.6rem); line-height: 0.92; letter-spacing: -0.035em; color: #fff; white-space: nowrap; font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1; }
.auth-titel em { color: var(--beige); font-weight: 400; }
.auth-claim { font-size: 1.1rem; color: rgba(255, 255, 255, 0.78); max-width: 44ch; margin: 1.3rem 0 0; }
.auth-fakten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.2rem; }
.auth-fakten div { border-top: 1px solid rgba(255, 255, 255, 0.25); padding-top: 0.9rem; }
.auth-fakten .label { color: var(--beige); display: block; margin-bottom: 0.3rem; }
.auth-fakten b { font-size: 0.95rem; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-card { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 1.1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 2.4rem; box-shadow: var(--schatten-hoch); }
.auth-card h2 { font-size: 2rem; }
.auth-card .btn-gross { align-self: flex-start; }
.auth-card .formular { max-width: none; }
.auth-fuss { font-size: 0.74rem; color: var(--muted); margin: 0.4rem 0 0; }
.auth-fehler { background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); padding: 0.7rem 0.9rem; border-radius: var(--radius-klein); font-size: 0.9rem; }
.auth-trenner { display: flex; align-items: center; gap: 0.75rem; color: var(--muted); font-size: 0.8rem; }
.auth-trenner::before, .auth-trenner::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 800px) { .auth-page { grid-template-columns: 1fr; } .auth-buehne { min-height: 0; padding: 1.6rem 1.4rem; } .auth-logo { width: 84px; } .auth-fakten { grid-template-columns: 1fr; } }

/* ---- Upload ---- */
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; background: var(--panel); transition: border-color 0.2s, background 0.2s; }
.dropzone.aktiv { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input[type="file"] { display: none; }
.datei-liste { list-style: none; margin: 0.8rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; text-align: left; }
.datei-liste li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0.6rem; background: var(--panel-2); border-radius: 6px; }

/* ---- Fortschritt / Balken ---- */
.balken { height: 8px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.balken > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }

/* ---- Responsiv (Unterseiten) ---- */
@media (max-width: 960px) {
  .seitenkopf h1 { font-size: 1.7rem; }
  .kpi .wert { font-size: 1.8rem; }
}
@media print {
  .rail, .kopfleiste, .mobile-bar, .filter, .aktionen, .flash, .btn { display: none !important; }
  .seite, .app-main { padding: 0; max-width: none; }
  .karte, .tabelle-wrap, .kpi, .kachel { box-shadow: none; break-inside: avoid; }
  body { background: #fff; color: #000; }
}

/* ---- Notenspiegel: Punkte auf der Notenskala (serverseitig, siehe templates/_charts.html) ---- */
.ns { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.85rem; }
.ns-kopf, .ns-zeile { display: grid; grid-template-columns: minmax(140px, 220px) minmax(160px, 1fr) minmax(150px, auto); gap: 0.8rem; align-items: center; }
.ns-kopf { padding-bottom: 0.4rem; border-bottom: 1px solid var(--line); margin-bottom: 0.2rem; }
.ns-kopf .label { font-size: 0.66rem; }
.ns-ticks { position: relative; height: 1rem; font-size: 0.68rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ns-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ns-ticks span:first-child { transform: none; }
.ns-ticks span:last-child { transform: translateX(-100%); }
.ns-zeile { min-height: 26px; }
.ns-zeile:hover { background: color-mix(in srgb, var(--beige-soft) 60%, transparent); border-radius: 6px; }
.ns-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-label a { color: inherit; }
.ns-sub { color: var(--muted); font-size: 0.78em; }
.ns-spur { position: relative; height: 18px; border-radius: 999px; background: linear-gradient(to right, var(--grade-good-soft) 0 var(--ns-gut), var(--grade-warn-soft) var(--ns-gut) var(--ns-mittel), var(--grade-bad-soft) var(--ns-mittel) 100%); overflow: visible; }
.ns-seg { position: absolute; top: 50%; height: 3px; transform: translateY(-50%); border-radius: 2px; background: var(--line-strong); }
.ns-seg.besser { background: var(--grade-good); }
.ns-seg.schlechter { background: var(--grade-bad); }
.ns-prev { position: absolute; top: 50%; width: 10px; height: 10px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--panel); border: 2px solid var(--text-2); box-sizing: border-box; }
.ns-dot { position: absolute; top: 50%; width: 14px; height: 14px; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid var(--panel); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.band-gut { background: var(--grade-good); }
.band-mittel { background: var(--grade-warn); }
.band-kritisch { background: var(--grade-bad); }
.ns-zeile.blass .ns-dot { opacity: 0.55; }
.ns-zeile.blass .ns-label { color: var(--text-2); }
.ns-wert { display: flex; align-items: center; gap: 0.45rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ns-legende { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin-top: 0.7rem; }
.ns-lg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; margin-right: 0.3rem; }
.ns-lg.hohl { background: var(--panel); border: 2px solid var(--text-2); box-sizing: border-box; }
.ns-lg.blass { background: var(--grade-good); opacity: 0.55; }
@media (max-width: 700px) {
  .ns-kopf, .ns-zeile { grid-template-columns: minmax(100px, 1fr) minmax(120px, 2fr); }
  .ns-wert { grid-column: 1 / -1; padding-left: 0; font-size: 0.8rem; }
  .ns-kopf .ns-wert { display: none; }
}

/* ---- Notenverteilung: Histogramm (serverseitig) ---- */
.nv { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.5rem; align-items: end; }
.nv-bin { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; min-width: 0; }
.nv-anzahl { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.nv-balken { width: 100%; max-width: 64px; display: flex; align-items: flex-end; background: var(--panel-2); border-radius: 6px; overflow: hidden; }
.nv-seg { display: block; width: 100%; min-height: 2px; border-radius: 6px 6px 0 0; }
.nv-label { font-size: 0.66rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; white-space: normal; line-height: 1.15; }
@media (max-width: 600px) { .nv-label { font-size: 0.58rem; } }

/* ---- Gemeinsame Diagramm-Ergänzungen ---- */
/* [hidden] gegen eigene display-Werte durchsetzen (Umschalter kommen mit hidden vom Server, JS blendet sie ein) */
.pill-gruppe[hidden], .ns-zeile[hidden] { display: none; }
/* Vorwochenpunkt über dem gefüllten Punkt: bei kleinen Veränderungen bleibt er als Ring sichtbar */
.ns-dot { z-index: 1; }
.ns-prev { z-index: 2; }
/* Werte jenseits des Achsenendes: Dreieck am rechten Rand (Farbe = Notenband) */
.ns-dot.jenseits { width: 12px; height: 16px; border: 0; border-radius: 0; box-shadow: none; clip-path: polygon(0 0, 100% 50%, 0 100%); transform: translate(-100%, -50%); }
.ns-prev.jenseits { transform: translate(-100%, -50%); border-style: dashed; }
.ns-lg.jenseits { width: 9px; height: 11px; border-radius: 0; background: var(--text-2); clip-path: polygon(0 0, 100% 50%, 0 100%); }
/* Referenzzeile (z. B. Gesamtnote) im Notenspiegel hervorheben: rows[].cls = 'bezug' */
.ns-zeile.bezug { background: color-mix(in srgb, var(--beige-soft) 45%, transparent); border-radius: 6px; }
.ns-zeile.bezug .ns-label { font-weight: 600; }
/* Eingeklappte Tabellenalternative neben einem Diagramm: <details class="chart-tabelle"><summary>Werte als Tabelle</summary>… */
.chart-tabelle { margin-top: 0.9rem; }
.chart-tabelle summary { cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.chart-tabelle summary:hover { text-decoration: underline; }
.chart-tabelle .tabelle-wrap { margin-top: 0.6rem; box-shadow: none; }
.chart-tabelle .tabelle th[scope="row"] { font-size: 0.9rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text); background: transparent; position: static; white-space: normal; }
/* Anzahl Rückmeldungen bei weniger als vier Wochen: Zahlen als Chips statt Säulen (GFP.countChart → onFew) */
.anzahl-chips[hidden], [data-anzahl-chart][hidden], [data-anzahl-chips][hidden] { display: none !important; }
.anzahl-chips .chip-liste { list-style: none; margin: 0; padding: 0; gap: 0.5rem; }
.anzahl-chip { font-size: 0.95rem; padding: 0.4rem 0.95rem; gap: 0.45rem; font-variant-numeric: tabular-nums; }
.anzahl-chip .anzahl-woche, .anzahl-chip .anzahl-trenner { color: var(--muted); }
.anzahl-chip strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1; color: var(--text); }
.anzahl-chip .anzahl-delta { font-size: 0.78rem; }
.anzahl-chips .chart-hinweis { margin-top: 0.7rem; }
@media print {
  .chart-tabelle[open] summary { display: none; }
}
