/* PRISMA Demo — dunkles UI, eine Akzentfarbe (Mint). Alle Daten fiktiv. */

:root {
  --bg: #0b0e12;
  --bg-panel: #12171e;
  --bg-panel-2: #161c25;
  --bg-inset: #0e1218;
  --line: #212a36;
  --line-soft: #1a212b;
  --text: #e9eef5;
  --muted: #8b96a5;
  --dim: #5d6774;
  --accent: #47e2b1;
  --accent-strong: #2fd3a0;
  --accent-soft: rgba(71, 226, 177, 0.11);
  --accent-line: rgba(71, 226, 177, 0.35);
  --ok: #3bd996;
  --warn: #eab84a;
  --bad: #f2685a;
  --radius: 16px;
  --radius-s: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { color-scheme: dark; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 480px at 50% -140px, rgba(71, 226, 177, 0.07), transparent 60%),
    radial-gradient(700px 500px at 90% 110%, rgba(71, 226, 177, 0.035), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.num { font-variant-numeric: tabular-nums; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

button {
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-s);
  transition: background 0.16s ease, border-color 0.16s ease,
    color 0.16s ease, transform 0.16s ease;
}
button:focus-visible,
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary {
  background: var(--accent);
  color: #06231a;
  font-weight: 600;
  padding: 11px 18px;
}
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 10px 16px;
}
.btn-secondary:hover { border-color: var(--accent-line); color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
}
.btn-ghost:hover { color: var(--text); }

/* ---------------------------------------------------------------- Topbar */

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 36px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.marke {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  background: none;
  padding: 0;
}
.marke svg { display: block; }
.marke-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.demo-pill {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  user-select: none;
}

/* ------------------------------------------------------------------ Hero */

main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 36px 48px;
}

.hero { text-align: center; padding: 42px 0 34px; }

.hero h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.12;
}
.hero h1 .akzent { color: var(--accent); }

.hero p.sub {
  margin: 14px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 16.5px;
}

/* -------------------------------------------------------------- Dropzone */

.dropzone {
  margin: 34px auto 0;
  max-width: 720px;
  border: 1.6px dashed #2c3745;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 28, 37, 0.65), rgba(18, 23, 30, 0.65));
  padding: 46px 30px 40px;
  text-align: center;
  cursor: default;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.dropzone .dz-icon { margin-bottom: 14px; }
.dropzone h2 { font-size: 19px; font-weight: 650; }
.dropzone p { color: var(--muted); margin-top: 6px; font-size: 14px; }
.dropzone .dz-formate {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.dropzone.drag-over,
body.drag-global .dropzone {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(71, 226, 177, 0.09), rgba(18, 23, 30, 0.7));
  transform: scale(1.008);
}
.dz-hinweis {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--dim);
}

/* Download-Hinweis unter der Dropzone: Beispiel-Anfragen als ZIP */
.testdaten {
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  text-align: center;
}
.testdaten a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 1px;
}
.testdaten a:hover { color: var(--accent-strong); border-bottom-color: var(--accent-strong); }
.testdaten-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  margin-left: 4px;
  white-space: nowrap;
  vertical-align: 1px;
}

.dateityp {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
  background: var(--bg-inset);
  white-space: nowrap;
}

/* ----------------------------------------------------------------- Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 30px auto 0;
}
.stats[hidden] { display: none; }
.stat {
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px 22px;
  text-align: left;
}
.stat .stat-wert {
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat .stat-wert .einheit { font-size: 18px; color: var(--muted); font-weight: 600; }
.stat .stat-label { color: var(--muted); font-size: 12.5px; margin-top: 4px; }

/* ---------------------------------------------------------------- Karten */

.verlauf { max-width: 980px; margin: 46px auto 0; }
.verlauf h3 {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 650;
  margin-bottom: 14px;
}
.karten {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.karte {
  text-align: left;
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.karte:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.karte .karte-kopf { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.karte .karte-kunde { font-weight: 650; font-size: 15px; line-height: 1.3; }
.karte .karte-teil { color: var(--muted); font-size: 13px; margin-top: 2px; }
.karte .karte-meta {
  display: flex; gap: 6px 12px; flex-wrap: wrap;
  color: var(--dim); font-size: 12px;
}
.karte .karte-meta span { white-space: nowrap; }
.verlauf-leer {
  color: var(--dim);
  font-size: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}

.score-badge {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.score-badge.s-gut { color: var(--ok); background: rgba(59, 217, 150, 0.12); }
.score-badge.s-mittel { color: var(--warn); background: rgba(234, 184, 74, 0.12); }
.score-badge.s-niedrig { color: var(--bad); background: rgba(242, 104, 90, 0.12); }

/* ---------------------------------------------------------------- Footer */

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 26px 20px 30px;
  color: var(--dim);
  font-size: 12.5px;
  border-top: 1px solid var(--line-soft);
  margin-top: 30px;
}
footer .trenner { margin: 0 10px; opacity: 0.5; }
footer button { font-size: 12.5px; color: var(--dim); text-decoration: underline; background: none; padding: 0; }
footer button:hover { color: var(--muted); }

/* -------------------------------------------------------- Analyse-Overlay */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(7, 9, 12, 0.93);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.overlay.sichtbar {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s ease;
}

.analyse-panel {
  width: min(860px, 100%);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 30px 34px 26px;
}
.analyse-kopf { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.analyse-kopf h2 { font-size: 20px; font-weight: 700; }
.analyse-ordner {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 7px;
}
.analyse-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  margin-top: 22px;
  min-height: 300px;
}
@media (max-width: 760px) { .analyse-grid { grid-template-columns: 1fr; } }

.analyse-spalte h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
  font-weight: 650;
}

.datei-liste { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.datei-liste li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  padding: 7px 10px;
  background: var(--bg-inset);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  opacity: 0;
  transform: translateY(6px);
  animation: datei-rein 0.35s ease forwards;
}
.datei-liste .datei-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.datei-liste .datei-groesse { color: var(--dim); font-size: 12px; }
.datei-mehr { color: var(--dim); font-size: 12.5px; padding: 4px 10px; }
@keyframes datei-rein { to { opacity: 1; transform: none; } }

.schritte { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.schritt {
  display: flex;
  gap: 12px;
  padding: 8px 6px;
  border-radius: 9px;
  opacity: 0.32;
  transition: opacity 0.25s ease;
}
.schritt.aktiv, .schritt.fertig { opacity: 1; }
.schritt-status {
  width: 22px; height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
}
.schritt.aktiv .schritt-status { border-color: transparent; }
.schritt.aktiv .schritt-status::after {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  animation: drehen 0.8s linear infinite;
}
.schritt.fertig .schritt-status {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.schritt.fertig .schritt-status svg { display: block; }
.schritt-status svg { display: none; }
@keyframes drehen { to { transform: rotate(360deg); } }

.schritt-titel { font-size: 14.5px; font-weight: 600; }
.schritt-detail { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

.analyse-fuss { margin-top: 24px; }
.fortschritt {
  height: 5px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}
.fortschritt-balken {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  transition: width 0.45s ease;
}
.analyse-status {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--dim);
  display: flex;
  justify-content: space-between;
}

/* ---------------------------------------------------------- Ergebnisseite */

.zurueck-zeile { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 18px; }

.ergebnis-kopf {
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 30px;
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.ek-links { min-width: 260px; flex: 1; }
.ek-eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
}
.ek-links h2 { font-size: 26px; font-weight: 750; letter-spacing: -0.01em; margin-top: 6px; }
.ek-teil { color: var(--muted); font-size: 15.5px; margin-top: 3px; }
.ek-meta { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.meta-chip {
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  background: var(--bg-inset);
}
.ek-zusammenfassung {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  max-width: 560px;
}

.score-block { display: flex; align-items: center; gap: 18px; padding-right: 8px; }
.score-ring { position: relative; width: 132px; height: 132px; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .ring-rest { stroke: var(--line-soft); }
.score-ring .ring-wert {
  stroke-linecap: round;
  transition: stroke-dashoffset 1.15s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.score-ring .ring-wert.s-gut { stroke: var(--ok); }
.score-ring .ring-wert.s-mittel { stroke: var(--warn); }
.score-ring .ring-wert.s-niedrig { stroke: var(--bad); }
.score-zahl {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.score-zahl .num { font-size: 34px; font-weight: 750; line-height: 1; }
.score-zahl .prozent { font-size: 13px; color: var(--muted); margin-top: 3px; }
.score-text { max-width: 190px; }
.score-text .st-titel { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); font-weight: 650; }
.score-text .st-wert { font-size: 14px; margin-top: 6px; font-weight: 600; }

.ergebnis-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}
@media (max-width: 920px) { .ergebnis-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.panel + .panel { margin-top: 18px; }
.panel h3 {
  font-size: 13px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 650;
  margin-bottom: 16px;
}

/* Felder-Tabelle */
.feld-zeile {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 14px;
  padding: 11px 4px;
  border-top: 1px solid var(--line-soft);
}
.feld-zeile:first-of-type { border-top: none; }
.feld-label { color: var(--muted); font-size: 13px; padding-top: 2px; }
.feld-wert { font-size: 14.5px; font-weight: 550; }
.feld-wert.status-fehlt { color: var(--bad); }
.feld-wert.status-konflikt { color: var(--warn); }
.feld-quelle { margin-top: 5px; }

.quelle-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  font-size: 11.5px;
  font-family: var(--mono);
  color: var(--muted);
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px 9px;
  cursor: default;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.quelle-chip:hover { border-color: var(--accent-line); color: var(--accent); }
.quelle-chip .chip-datei {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

/* Quellen-Popover */
.popover {
  position: fixed;
  z-index: 80;
  width: 330px;
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}
.popover.sichtbar { opacity: 1; transform: none; }
.popover .pop-datei { font-family: var(--mono); font-size: 12px; color: var(--accent); word-break: break-all; }
.popover .pop-ort { color: var(--muted); margin-top: 3px; }
.popover .pop-snippet {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-inset);
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 9px 11px;
}
.popover .pop-fusszeile { margin-top: 9px; color: var(--dim); font-size: 11px; }

/* 3D-Viewer */
.viewer-wrap {
  position: relative;
  border-radius: 12px;
  background: radial-gradient(420px 260px at 50% 38%, #1a222d, var(--bg-inset) 78%);
  border: 1px solid var(--line-soft);
  height: 300px;
  overflow: hidden;
}
.viewer-wrap canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.viewer-wrap canvas:active { cursor: grabbing; }
.viewer-wrap img.viewer-fallback {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 16px;
}
.viewer-platzhalter {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  font-size: 13px;
}
.viewer-platzhalter .schimmer {
  width: 84px; height: 84px;
  border-radius: 20px;
  background: linear-gradient(110deg, #161d26 40%, #1d2732 50%, #161d26 60%);
  background-size: 220% 100%;
  animation: schimmern 2.2s linear infinite;
  display: grid; place-items: center;
}
@keyframes schimmern { to { background-position: -220% 0; } }
.viewer-leiste {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  color: var(--dim);
  font-size: 12px;
}
.viewer-leiste .modell-label { font-family: var(--mono); color: var(--muted); }

/* Vollständigkeit */
.check-fortschritt { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.check-fortschritt .balken {
  flex: 1; height: 6px;
  background: var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
}
.check-fortschritt .balken div { height: 100%; border-radius: 999px; transition: width 0.9s ease; }
.check-fortschritt .quote { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.check-liste { list-style: none; display: flex; flex-direction: column; }
.check-item {
  display: flex;
  gap: 11px;
  padding: 8px 2px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.check-item:first-child { border-top: none; }
.check-icon { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; }
.check-item .check-text { flex: 1; }
.check-item.st-fehlt .check-text, .check-item.st-konflikt .check-text { font-weight: 550; }
.check-rueckfrage {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
}
.check-rueckfrage b { color: var(--accent); font-weight: 600; }

.aktionen { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* Hinweise */
.hinweis-liste { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.hinweis-liste li {
  display: flex; gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}
.hinweis-liste li::before {
  content: "";
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
}

/* ------------------------------------------------------------------ Modal */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(7, 9, 12, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.modal-backdrop.sichtbar { display: flex; }
.modal {
  width: min(680px, 100%);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 26px 28px;
  max-height: 86vh;
  overflow: auto;
}
.modal-kopf { display: flex; justify-content: space-between; align-items: start; margin-bottom: 18px; }
.modal-kopf h3 { font-size: 18px; font-weight: 700; }
.modal-kopf .modal-sub { color: var(--dim); font-size: 12.5px; margin-top: 3px; }
.modal-zu { background: none; color: var(--dim); font-size: 20px; line-height: 1; padding: 4px 8px; }
.modal-zu:hover { color: var(--text); }

.mail-feld { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.mail-feld .mf-label { color: var(--dim); }
.mail-feld .mf-wert { font-family: var(--mono); font-size: 12.5px; }
.mail-text {
  width: 100%;
  margin-top: 14px;
  background: var(--bg-inset);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  padding: 14px;
  min-height: 300px;
  resize: vertical;
}
.mail-text:focus { outline: 1px solid var(--accent-line); }
.modal-aktionen { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* ------------------------------------------------------------------ Toast */

.toast-bereich {
  position: fixed;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-size: 13.5px;
  border-radius: 10px;
  padding: 11px 16px;
  box-shadow: var(--shadow);
  animation: toast-rein 0.25s ease;
  max-width: 480px;
}
@keyframes toast-rein { from { opacity: 0; transform: translateY(8px); } }

/* ------------------------------------------------------- Sichtbarkeiten */

.screen { display: none; }
.screen.aktiv { display: block; }

@media (max-width: 640px) {
  .topbar, main { padding-left: 20px; padding-right: 20px; }
  .stats { grid-template-columns: 1fr; }
  .feld-zeile { grid-template-columns: 1fr; gap: 3px; }
  .ergebnis-kopf { padding: 20px; }
}
