/* FILE: /var/www/apps/wostehtdas/public/93458sjfds2935sjfd.css */

/* ==============================================================================
   BENCHMARK 2026 · DUAL-JUDGE THEME (Reines Helles Farbschema)
   ============================================================================== */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-subtle: #f9f9f9;
  --line: #e2e2e2;
  --line-soft: #eeeeee;
  --text: #111111;
  --text-pure: #000000;
  --text-muted: #777777;
  --text-faint: #b0b0b0;
  --accent: #111111;

  --chip-bg: #ffffff;
  --chip-border: #d4d4d4;
  --chip-active-bg: #111111;
  --chip-active-text: #ffffff;

  --track: #f0f0f0;

  /* Graustufen-Skala (für Score-Aufschlüsselung & Mini-Legende) */
  --c-4: #000000;
  --c-3: #888888;
  --c-2: #bbbbbb;
  --c-1: #dcdcdc;
  --c-0: #ececec;

  /* Zarte Ampelfarben für Antwort-Score (in "Alle Fragen") */
  --sc4-bg: #e6f2e9;
  --sc4-fg: #2f6b40;
  --sc4-bd: #4a8a5a;
  --sc3-bg: #f6f1dd;
  --sc3-fg: #6e5a1a;
  --sc3-bd: #b8a04a;
  --sc2-bg: #f8ecdd;
  --sc2-fg: #8a4f1a;
  --sc2-bd: #c78a4a;
  --sc1-bg: #f7e3da;
  --sc1-fg: #8a381a;
  --sc1-bd: #c06a4a;
  --sc0-bg: #f5dcdc;
  --sc0-fg: #8a2020;
  --sc0-bd: #c04a4a;

  /* Rangliste & Richter-Abweichung (grün/orange/rot) */
  --rank-4: #4a8a5a;
  --rank-3: #c78a4a;
  --rank-rest: #b84a4a;

  --sidebar-w: 220px;
  --content-max: 900px;
  --footer-h: 28px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
  min-width: 0;
  padding-bottom: var(--footer-h);
}

/* ==============================================================================
   LAYOUT
   ============================================================================== */
.app-layout {
  display: flex;
  min-height: calc(100vh - var(--footer-h));
  padding-left: var(--sidebar-w);
  overflow-x: clip;
  max-width: 100vw;
}

/* ==============================================================================
   SIDEBAR
   ============================================================================== */
.app-sidebar {
  width: var(--sidebar-w);
  background: var(--bg);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;                 /* <-- Läuft jetzt voll bis ganz unten durch */
  z-index: 50;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
  padding: 16px 14px 12px;
  border-bottom: 1px solid var(--line);
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.brand-icon {
  font-size: 19px;
  color: var(--text);
  line-height: 1;
}

.sidebar-nav {
  flex: 1;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6px 8px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.1s ease;
}

.nav-item:hover {
  color: var(--text);
  background: var(--line-soft);
}

.nav-item.active {
  color: var(--text);
  font-weight: 700;
  background: var(--line-soft);
}

.nav-count {
  font-size: 0.65rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
}

.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.68rem;
}

.sidebar-link-btn {
  display: block;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
  transition: all 0.12s ease;
  letter-spacing: 0.02em;
}

.sidebar-link-btn:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 48;
}

/* ==============================================================================
   MAIN CONTENT
   ============================================================================== */
.app-main {
  flex: 1;
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px 40px;
  min-width: 0;
}

.main-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  padding-top: 14px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  z-index: 30;
  border-bottom: 1px solid var(--line);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-with-icon {
  display: flex;
  align-items: center;
  gap: 7px;
}

.view-title-icon {
  font-size: 20px;
  color: var(--text);
  line-height: 1;
}

.menu-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text);
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.menu-toggle-btn:hover {
  background: var(--surface-subtle);
  border-color: var(--text-muted);
}

.menu-toggle-btn .menu-icon {
  font-size: 20px;
}

h1 {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
}

/* ==============================================================================
   VIEWS
   ============================================================================== */
.view-section {
  display: none;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

.view-section.active {
  display: flex;
}

.section-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cat-title {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 4px;
  padding-left: 2px;
}

.cat-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.cat-title-sub {
  font-size: 0.62rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==============================================================================
   BENCHMARK / ERGEBNISSE
   ============================================================================== */
/* Intro-Text steht vor der Winner-Row und ist rein schwarz */
.intro-text {
  font-size: 0.77rem;
  color: var(--text-pure);
  font-weight: 400;
  line-height: 1.6;
  padding: 0 2px;
}

.winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-subtle);
}

.winner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.winner-left img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.winner-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.winner-tag {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.winner-stats {
  display: flex;
  gap: 14px;
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

/* Ausklappbarer Bewertungsmaßstab */
.scale-definition-box {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-subtle);
  overflow: hidden;
}

.scale-summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  user-select: none;
  transition: color 0.1s ease, background 0.1s ease;
}

.scale-summary::-webkit-details-marker { display: none; }
.scale-summary::marker { content: ""; }

.scale-summary-content {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.scale-toggle-icon {
  font-size: 16px;
  line-height: 1;
  color: var(--text-muted);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform: rotate(-90deg);
}

.scale-definition-box[open] .scale-summary {
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.scale-definition-box[open] .scale-toggle-icon {
  transform: rotate(0deg);
}

.scale-summary:hover {
  color: var(--text);
  background: var(--line-soft);
}

.scale-items-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
}

.scale-def-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.scale-dot {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  flex-shrink: 0;
  margin-top: 4px;
}

.scale-def-text strong {
  color: var(--text);
}

/* Leaderboard */
.table-wrap {
  border-top: 1px solid var(--line);
  overflow-x: auto;
}

.leaderboard-table {
  display: flex;
  flex-direction: column;
  min-width: 540px;
}

.lb-row {
  display: grid;
  grid-template-columns: 28px 160px 1fr 80px 85px;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  column-gap: 8px;
}

.lb-row.header {
  border-bottom: 1px solid var(--line);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  padding: 5px 4px;
}

.lb-rank {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.lb-model {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 400;
  color: var(--text);
  min-width: 0;
}

.lb-model img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
}

.lb-model span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-score {
  font-weight: 600;
  text-align: left;
}

.lb-pass {
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

/* Balken */
.bar-track {
  height: 14px;
  background: var(--track);
  display: flex;
  border-radius: 2px;
  overflow: hidden;
  margin-right: 4px;
  border: 1px solid var(--line);
}

.seg-4 { background: var(--c-4); }
.seg-3 { background: var(--c-3); }
.seg-2 { background: var(--c-2); }
.seg-1 { background: var(--c-1); }
.seg-0 { background: var(--c-0); }

.rseg-4   { background: var(--rank-4); border-right: 2px solid white;}
.rseg-3   { background: var(--rank-3); }
.rseg-rest { background: var(--rank-rest); }

.mini-legend {
  display: flex;
  gap: 8px;
}

.leg-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  color: var(--text-muted);
}

.leg-dot {
  width: 6px;
  height: 6px;
  border-radius: 1px;
}
.c-4 { background: var(--c-4); }
.c-3 { background: var(--c-3); }
.c-2 { background: var(--c-2); }
.c-1 { background: var(--c-1); }
.c-0 { background: var(--c-0); }

/* Score-Aufschlüsselung */
.distribution-list {
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.dist-row {
  display: grid;
  grid-template-columns: 160px 1fr 75px;
  align-items: center;
  column-gap: 12px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.dist-model {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--text);
}

.dist-model img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
}

.dist-model span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dist-counts {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

/* ==============================================================================
   VIEW: ERKENNTNISSE (KEY FACTS)
   ============================================================================== */
.insights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0;
}

.insights-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text);
}

.insights-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-muted);
  font-weight: 700;
}

/* ==============================================================================
   KOSTEN VS. QUALITÄT DIAGRAMM
   ============================================================================== */
.cost-quality-chart-wrapper {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px;
  background: var(--surface-subtle);
  overflow: hidden;
  user-select: none;
}

.cost-quality-chart-wrapper canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  cursor: crosshair;
}

.chart-tooltip {
  position: absolute;
  display: none;
  pointer-events: none;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.78rem;
  line-height: 1.4;
  z-index: 99;
  white-space: nowrap;
  transition: opacity 0.1s ease;
}

.chart-tooltip.active {
  display: block;
}

.chart-tooltip-header {
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-soft);
}

.chart-tooltip-header img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.chart-tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.chart-tooltip-row strong {
  color: var(--text);
}

/* ==============================================================================
   PERFORMANCE-HEATMAP MATRIX (300 Fragen x N Modelle)
   ============================================================================== */
.heatmap-chart-wrapper {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px;
  background: var(--surface-subtle);
  overflow-x: auto;
  user-select: none;
  max-width: 100%;
}

.heatmap-header-labels {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-soft);
  min-width: max-content;
}

.hm-col-header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.hm-col-header img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  opacity: 0.9;
}

.heatmap-canvas-container {
  position: relative;
  min-width: max-content;
  display: block;
}

#heatmap-canvas {
  display: block;
  cursor: crosshair;
}

#heatmap-tooltip {
  white-space: normal;
  width: 290px;
  max-width: 90vw;
}

.hm-tooltip-qtext {
  font-size: 0.72rem;
  color: var(--text);
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--line-soft);
}

/* ==============================================================================
   RICHTER-DIVERGENZ
   ============================================================================== */
.divergence-summary-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.div-card {
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.div-card-label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.div-card-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.div-card-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.canvas-chart-wrap {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px;
  background: var(--surface-subtle);
  overflow-x: auto;
  max-height: 240px;
}

.canvas-chart-wrap canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 180px;
}

/* ==============================================================================
   FRAGEN-ITEMS ("Alle Fragen")
   ============================================================================== */
.questions-container {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.q-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  max-width: 100%;
}

.q-top-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.q-idx {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.q-kontext {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 6px;
  overflow-wrap: anywhere;
}

.q-title {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.q-truth-box {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text);
  padding: 0px 0px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.q-truth-label {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

/* ==============================================================================
   EINHEITLICHER STEPPER: [<] [🏆] [Modell] [🙁] [>] (DESKTOP & MOBILE)
   ============================================================================== */
.q-stepper-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 4px 6px;
  /* background: var(--surface-subtle); */
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 38px;
  gap: 6px;
  margin: 2px 0;
}

.q-mstep-btn,
.q-mstep-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  transition: background 0.1s ease, border-color 0.1s ease;
}

.q-mstep-btn:hover,
.q-mstep-quick-btn:hover {
  background: var(--line-soft);
  border-color: var(--chip-border);
}

.q-mstep-btn:active,
.q-mstep-quick-btn:active {
  background: var(--line);
}

.q-mstep-quick-btn.best {
  color: #b8860b;
  border-color: #e5d28d;
  background: #fffdf5;
}

.q-mstep-quick-btn.worst {
  color: #a03030;
  border-color: #e6b0b0;
  background: #fff8f8;
}

.q-mstep-btn .material-symbols-outlined,
.q-mstep-quick-btn .material-symbols-outlined {
  font-size: 18px;
}

.q-mstep-current {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  flex: 1;
  min-width: 0;
  padding: 0 6px;
}

.q-mstep-current img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.q-mstep-current span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.q-answer-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}

.q-answer-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  gap: 8px;
}

.q-answer-text {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text);
  padding: 8px 10px;
  background: var(--surface-subtle);
  border-left: 3px solid var(--line);
  white-space: pre-wrap;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.q-score-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.q-score-pill.sc-4 { background: var(--sc4-bg); color: var(--sc4-fg); }
.q-score-pill.sc-3 { background: var(--sc3-bg); color: var(--sc3-fg); }
.q-score-pill.sc-2 { background: var(--sc2-bg); color: var(--sc2-fg); }
.q-score-pill.sc-1 { background: var(--sc1-bg); color: var(--sc1-fg); }
.q-score-pill.sc-0 { background: var(--sc0-bg); color: var(--sc0-fg); }

.q-answer-text.sc-4 { border-left-color: var(--sc4-bd); }
.q-answer-text.sc-3 { border-left-color: var(--sc3-bd); }
.q-answer-text.sc-2 { border-left-color: var(--sc2-bd); }
.q-answer-text.sc-1 { border-left-color: var(--sc1-bd); }
.q-answer-text.sc-0 { border-left-color: var(--sc0-bd); }

/* Paginierung & Nachlade-Button */
.q-load-more-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0 16px;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--chip-border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-load-more:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ==============================================================================
   KILLERFRAGEN & ALLGEMEIN
   ============================================================================== */
.notice-strip {
  font-size: 0.74rem;
  color: var(--text-muted);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
}

.notice-tag {
  font-size: 0.58rem;
  font-weight: 700;
  background: var(--text);
  color: var(--bg);
  padding: 1px 4px;
  border-radius: 2px;
  flex-shrink: 0;
}

.killer-container {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.killer-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  max-width: 100%;
}

.content-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.plain-item {
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 12px;
  min-width: 0;
  max-width: 100%;
}

.plain-q {
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.plain-a {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.prompt-code-block {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.dl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}

.dl-name {
  font-weight: 600;
  display: block;
  font-size: 0.8rem;
}

.dl-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn-action {
  background: var(--bg);
  border: 1px solid var(--chip-border);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn-action:hover {
  background: var(--text);
  color: var(--bg);
}

/* ==============================================================================
   VIEW: DATENPIPELINE FLOW
   ============================================================================== */
.pipeline-flow {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  min-width: 0;
  max-width: 100%;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.flow-step-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line);
  background: var(--bg);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flow-step-body {
  flex: 1;
  min-width: 0;
}

.flow-step-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.flow-step-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.flow-crit-list {
  margin-top: 8px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flow-crit-list li {
  font-size: 0.74rem;
  line-height: 1.4;
}

.flow-crit-list strong {
  color: var(--text);
}

.flow-highlight-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--sc4-bg);
  color: var(--sc4-fg);
  border: 1px solid var(--sc4-bd);
  font-weight: 600;
  font-size: 0.72rem;
}

.flow-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 0;
}

.flow-arrow {
  font-size: 18px;
  color: var(--text-faint);
}

.flow-text-hint {
  display: inline-block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
}

/* ==============================================================================
   FIXED FOOTER (Alex Worobjow, 2026 - IMMER UNTEN SICHTBAR)
   ============================================================================== */
.app-fixed-footer {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-w);  /* Beginnt erst rechts neben der Sidebar */
  right: 0;
  height: var(--footer-h);
  background: var(--bg);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: var(--text-muted);
  z-index: 40;             /* Unter dem mobilen Sidebar-Z-Index (50) */
  user-select: none;
}

@media (max-width: 800px) {
  .app-fixed-footer {
    left: 0;               /* Auf Mobilgeräten volle Breite */
  }
}
/* ==============================================================================
   RESPONSIVITÄT & MOBILE VIEW
   ============================================================================== */
@media (max-width: 800px) {
  :root {
    --sidebar-w: 280px;
    --footer-h: 30px;
  }

  html {
    font-size: 16px;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    overflow-x: clip;
  }

  body {
    font-size: 1rem;
    line-height: 1.5;
    overflow-x: clip;
    max-width: 100vw;
  }

  .app-layout {
    padding-left: 0;
    overflow-x: clip;
    max-width: 100vw;
  }

  .app-sidebar {
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: 6px 0 24px rgba(0, 0, 0, 0.25);
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop.active {
    display: block;
  }

  .sidebar-header {
    padding: 20px 18px 16px;
  }

  .brand-title {
    font-size: 18px;
    line-height: 1.2;
  }

  .brand-icon {
    font-size: 22px;
  }

  .sidebar-nav {
    padding: 12px 10px;
    gap: 4px;
  }

  .nav-item {
    padding: 14px 14px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.25;
    border-radius: 8px;
    min-height: 48px;
  }

  .nav-item.active {
    font-weight: 700;
  }

  .nav-count {
    font-size: 15px;
    font-weight: 500;
  }

  .sidebar-footer {
    font-size: 15px;
    gap: 8px;
    padding: 16px 18px;
  }

  .sidebar-link-btn {
    font-size: 15px;
    padding: 11px 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .app-main {
    margin-left: 0;
    margin-right: 0;
    max-width: 100vw;
    padding: 0 16px 60px;
    min-width: 0;
  }

  .main-header {
    padding-top: 12px;
    padding-bottom: 12px;
    margin-bottom: 16px;
  }

  .menu-toggle-btn {
    display: inline-flex;
    padding: 8px;
    border-radius: 8px;
  }

  .menu-toggle-btn .menu-icon {
    font-size: 28px;
  }

  h1 {
    font-size: 1.05rem;
  }

  .view-title-icon {
    font-size: 24px;
  }

  .top-bar-right {
    font-size: 0.78rem;
  }

  .cat-title {
    font-size: 0.74rem;
  }

  .winner-row {
    padding: 14px;
  }

  .winner-name {
    font-size: 1.05rem;
  }

  .winner-tag {
    font-size: 0.68rem;
  }

  .winner-stats {
    display: none;
  }

  .intro-text {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .insights-list li {
    font-size: 0.92rem;
    line-height: 1.6;
    padding-left: 24px;
  }

  .scale-summary {
    padding: 14px 16px;
    font-size: 0.78rem;
    min-height: 44px;
  }

  .scale-toggle-icon {
    font-size: 22px;
  }

  .scale-items-grid {
    padding: 12px 16px;
  }

  .scale-def-item {
    font-size: 0.86rem;
    gap: 10px;
    line-height: 1.45;
  }

  .scale-dot {
    width: 10px;
    height: 10px;
    margin-top: 5px;
  }

  .divergence-summary-cards {
    grid-template-columns: 1fr;
  }

  .canvas-chart-wrap {
    max-height: 200px;
  }

  .canvas-chart-wrap canvas {
    max-height: 160px;
  }

  .lb-row {
    font-size: 0.88rem;
    padding: 10px 4px;
    column-gap: 6px;
  }

  .lb-row.header {
    font-size: 0.72rem;
  }

  .dist-row {
    grid-template-columns: 120px 1fr 50px;
    column-gap: 8px;
    font-size: 0.86rem;
  }

  .dist-counts {
    font-size: 0.8rem;
  }

  .leg-item {
    font-size: 0.72rem;
  }

  .q-row {
    padding: 20px 2px;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
  }

  .q-idx {
    font-size: 0.9rem;
  }

  .q-kontext {
    font-size: 0.85rem;
  }

  .q-title {
    font-size: 1.08rem;
    line-height: 1.5;
  }

  .q-truth-box {
    font-size: 1rem;
    line-height: 1.55;
    padding: 12px 14px;
  }

  .q-truth-label {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .q-stepper-control {
    max-width: 100%;
    min-height: 46px;
  }

  .q-mstep-btn,
  .q-mstep-quick-btn {
    width: 34px;
    height: 34px;
  }

  .q-mstep-btn .material-symbols-outlined,
  .q-mstep-quick-btn .material-symbols-outlined {
    font-size: 20px;
  }

  .q-mstep-current {
    font-size: 0.92rem;
  }

  .q-mstep-current img {
    width: 18px;
    height: 18px;
  }

  .q-answer-header {
    font-size: 0.88rem;
    gap: 10px;
  }

  .q-score-pill {
    font-size: 0.85rem;
    padding: 3px 8px;
    border-radius: 8px;
  }

  .q-answer-text {
    font-size: 1rem;
    line-height: 1.55;
    padding: 12px 14px;
  }

  .btn-load-more {
    font-size: 0.92rem;
    padding: 12px 20px;
    width: 100%;
  }

  .killer-row {
    padding: 18px 2px;
    gap: 10px;
  }

  .flow-step {
    padding: 14px;
    gap: 12px;
  }

  .flow-step-title {
    font-size: 0.95rem;
  }

  .flow-step-desc {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .flow-crit-list li {
    font-size: 0.85rem;
  }

  .plain-q {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .plain-a {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .prompt-code-block {
    font-size: 0.85rem;
    padding: 12px 14px;
  }

  .dl-name {
    font-size: 0.95rem;
  }

  .dl-desc {
    font-size: 0.85rem;
  }

  .btn-action {
    font-size: 0.9rem;
    padding: 8px 14px;
  }
}

.btn-goto-questions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: #707070;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    vertical-align: middle;
    transition: background 0.15s ease;
}


.btn-goto-questions .material-symbols-outlined {
    font-size: 1rem;
    line-height: 1;
}