/* Belege-OCR-Rangliste — ergänzt style.css (Nav/Hero/Footer/Farbvariablen)
   um die Kennzahlen-, Tabellen- und Upload-spezifischen Regeln. Extern statt
   <style>/style="", da die CSP von vtzr.de nur "style-src 'self'" erlaubt
   (kein 'unsafe-inline'). Kein separates Dark-Theme — der Rest der Website
   hat ebenfalls keins (style.css: ein einziges warmes Farbschema). */

/* ── Kennzahlen-Kacheln über der Tabelle ─────────────────────────────── */
.kennzahlen {
  display: grid; gap: 1rem; margin-bottom: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}
.kennzahl {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.3rem;
}
.kennzahl__wert {
  font-family: var(--serif); font-size: 1.9rem; font-weight: 700;
  line-height: 1.1; color: var(--olive-900); font-variant-numeric: tabular-nums;
}
.kennzahl__wert--klein { font-size: 1.15rem; }
.kennzahl__wert--gut { color: #1a7a3a; }
.kennzahl__wert--mittel { color: #a06a00; }
.kennzahl__wert--schlecht { color: #c0392b; }
.kennzahl__label { font-size: 0.82rem; line-height: 1.4; color: var(--muted); }
/* Stand-Kachel ist reine Metainformation, daher zurückgenommen */
.kennzahl--stand { background: transparent; box-shadow: none; border-style: dashed; }

/* ── Abschnitte (verschachtelte <section> — style.css gibt jedem <section>
      5.5rem Innenabstand, das hier ist ein reiner Inhaltsblock) ───────── */
.block { padding: 0; margin-bottom: 3rem; }
.block:last-child { margin-bottom: 0; }
.block__titel { font-size: 1.3rem; color: var(--olive-900); margin-bottom: 0.4rem; }
.block__intro {
  font-size: 0.92rem; color: var(--body); line-height: 1.6;
  max-width: 46rem; margin-bottom: 1.2rem;
}

/* ── Rangliste-Tabelle ───────────────────────────────────────────────── */
.tabelle-scroll {
  overflow-x: auto; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { padding: 0.55rem 0.75rem; text-align: right; white-space: nowrap; }
thead th { font-weight: 600; font-size: 0.82rem; color: var(--olive-900); vertical-align: bottom; }
thead tr:last-child th, thead th[rowspan] { border-bottom: 2px solid var(--line-2); }
.th-gruppe {
  text-align: center; font-size: 0.75rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line); padding-bottom: 0.25rem;
}
.th-haendler, td.haendler { text-align: left; }
.th-rang, td.rang { color: var(--muted); }
td.anzahl { color: var(--muted); font-variant-numeric: tabular-nums; }
tbody tr:nth-child(odd) td { background: var(--cream); }
tbody tr:hover td { background: var(--lime-soft); }
.zelle--gruppenstart { border-left: 1px solid var(--line-2); }
.haendler__name { vertical-align: middle; }
.tabelle-hinweis { font-size: 0.78rem; color: var(--muted); margin: 0.5rem 0 0; }
@media (min-width: 900px) { .tabelle-hinweis { display: none; } }

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  color: #fff; font-size: 0.9rem; font-weight: 600;
  margin-right: 0.6rem; vertical-align: middle;
}
.avatar--0 { background: #2d7a3a; }
.avatar--1 { background: #1f6f8b; }
.avatar--2 { background: #8b5a2d; }
.avatar--3 { background: #6b4c9a; }
.avatar--4 { background: #b5442e; }
.avatar--5 { background: #3a7a6b; }
.avatar--6 { background: #7a5a3a; }
.avatar--7 { background: #4a5a8b; }
.avatar--8 { background: #8b2d5a; }
.avatar--9 { background: #5a7a2d; }
.logo-img {
  width: 3.2rem; height: 2rem; object-fit: contain;
  border-radius: 0.3rem; background: #fff; padding: 0.15rem 0.3rem;
  box-shadow: 0 0 0 1px rgba(127,127,127,0.25);
  margin-right: 0.6rem; vertical-align: middle;
}
.rate { font-variant-numeric: tabular-nums; }
.rate--gesamt { font-weight: 700; }
.rate--gut { color: #1a7a3a; }
.rate--mittel { color: #a06a00; }
.rate--schlecht { color: #c0392b; }
.rate--leer { color: #999; }
.leer { color: var(--muted); }

/* ── Farb-Legende unter der Tabelle ──────────────────────────────────── */
.legende {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
  margin: 0.9rem 0 0; padding: 0; list-style: none;
  font-size: 0.82rem; color: var(--muted);
}
.legende li { display: inline-flex; align-items: center; gap: 0.4rem; }
.legende__punkt { flex: none; width: 0.7rem; height: 0.7rem; border-radius: 50%; }
.legende__punkt--gut { background: #1a7a3a; }
.legende__punkt--mittel { background: #a06a00; }
.legende__punkt--schlecht { background: #c0392b; }
.legende__strich { color: #999; font-weight: 700; }

/* ── Definitions-/Hinweisliste (Methodik, Upload-Hinweise) ───────────── */
.infoliste { display: grid; gap: 0.8rem; margin: 0; }
.infoliste__eintrag {
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--lime); border-radius: 0.5rem;
  padding: 0.85rem 1.1rem; box-shadow: var(--shadow-sm);
}
.infoliste dt { font-weight: 600; font-size: 0.95rem; color: var(--olive-900); margin-bottom: 0.25rem; }
.infoliste dd { margin: 0; font-size: 0.88rem; line-height: 1.65; color: var(--body); }
.infoliste a { color: var(--olive); text-decoration: underline; }

/* ── Upload-Aufruf ───────────────────────────────────────────────────── */
.upload-cta {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.25rem 1.5rem; margin-bottom: 1rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}
.upload-cta__text { flex: 1 1 20rem; }
.upload-schritte {
  margin: 0 0 0.9rem; padding-left: 1.2rem;
  font-size: 0.92rem; line-height: 1.75; color: var(--body);
}
.upload-cta__link { margin: 0; font-size: 0.85rem; word-break: break-all; }
.upload-cta__link a { color: var(--olive); }
.upload-cta__qr-box { margin: 0 0 0 auto; text-align: center; }
.upload-cta__qr {
  display: block; width: 7.5rem; height: 7.5rem;
  background: #fff; padding: 0.4rem; border-radius: 0.4rem;
  box-shadow: 0 0 0 1px rgba(127,127,127,0.25);
}
.upload-cta__qr-box figcaption { margin-top: 0.35rem; font-size: 0.75rem; color: var(--muted); }
.warnbox {
  margin-top: 1rem; padding: 0.85rem 1.1rem; border-radius: 0.5rem;
  background: #fef8ec; border: 1px solid #f0d9a8;
  color: #7a4e00; font-size: 0.85rem; line-height: 1.65;
}
.warnbox a { color: #7a4e00; text-decoration: underline; }