/* erkennen.css — Richtung „Sortieranlage“: heller Grund, Indigo mit warmem Senf, Einwurfschlitz, breite Trefferkarten.
   Schriften lokal: Archivo (Überschriften, variabel) und Jost (Text, 400/500). */
@font-face { font-family: "Archivo"; src: url("../../schrift/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../../schrift/muster/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../../schrift/muster/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

:root, :root[data-theme="light"] {
  color-scheme: light;
  --flaeche-0: #f5f4fc;
  --flaeche-1: #ffffff;
  --flaeche-2: #ebe9f8;
  --linie: #d6d3ef;
  --raster: #e6e4f6;
  --text-1: #16133d;
  --text-2: #49456f;
  --text-3: #6a6690;
  --akzent: #3a33a8;
  --akzent-text: #2f2995;
  --indigo: #3a33a8;
  --indigo-tief: #1f1a66;
  --indigo-mittel: #6c66d4;
  --indigo-hell: #e7e5fb;
  --senf: #dda21c;
  --senf-hell: #fbefcb;
  --senf-text: #6e4f00;
  --kaum: #bdb9dc;
  --kritisch-text: #a3222a;
}

html, body { overflow-x: clip; }
h1, h2, h3 { text-wrap: balance; }
.knopf:active { transform: translateY(1px); filter: brightness(.95); }
body { font-family: "Jost", system-ui, sans-serif; font-size: 17px; }
h1, h2, h3, .a-kopf .a-name, .knopf { font-family: "Archivo", "Jost", system-ui, sans-serif; }
.a-kopf { background: color-mix(in srgb, var(--flaeche-0) 94%, transparent); }

/* ---------- Kopf ---------- */
.e-kopf { padding: 56px 0 26px; }
.e-kopf h1 { font-weight: 800; font-stretch: normal; letter-spacing: -.025em; max-width: 16ch; color: var(--indigo-tief); }
.e-kopf p { font-size: 19px; max-width: 58ch; }

/* ---------- Einwurfschlitz ---------- */
.ablage.e-schlitz {
  grid-template-columns: 1fr auto; grid-template-areas: "text knoepfe" "oeffnung oeffnung" "fehler fehler";
  gap: 22px 28px; padding: 34px 36px 30px; margin: 6px 0 12px;
  border: 3px solid var(--indigo); border-radius: 22px; background: var(--indigo); color: #fbfaff;
}
.e-schlitz-text { grid-area: text; }
.ablage.e-schlitz b { font-family: "Archivo", sans-serif; font-size: clamp(24px, 2.6vw, 34px); font-weight: 750; letter-spacing: -.015em; line-height: 1.1; overflow-wrap: anywhere; }
.ablage.e-schlitz span { display: block; margin-top: 8px; color: #dcd9fb; font-size: 16px; max-width: 60ch; }
.e-schlitz .knoepfe { grid-area: knoepfe; align-self: center; }
.e-oeffnung { grid-area: oeffnung; position: relative; height: 26px; border-radius: 13px; background: var(--indigo-tief); box-shadow: inset 0 4px 0 rgb(0 0 0 / .25); overflow: hidden; transition: background-color .25s ease; }
.e-oeffnung i { position: absolute; inset: 9px 14px auto 14px; height: 4px; border-radius: 2px; background: var(--senf); transform: scaleX(.12); transform-origin: left; transition: transform .5s ease; }
.ablage.e-schlitz.drueber { background: var(--indigo-tief); border-color: var(--senf); }
.ablage.e-schlitz.drueber .e-oeffnung { background: #120f45; }
.ablage.e-schlitz.drueber .e-oeffnung i, .ablage.e-schlitz.gefuellt .e-oeffnung i { transform: scaleX(1); }
.ablage.e-schlitz .fehler { grid-area: fehler; color: #fbfaff; background: var(--kritisch-text); padding: 10px 14px; border-radius: 10px; font-size: 15px; }
.knopf.e-haupt { background: var(--senf); color: var(--indigo-tief); font-weight: 700; min-height: 50px; padding: 0 24px; font-size: 16px; }
.knopf.e-leise { background: transparent; color: #fbfaff; border: 1.5px solid #a9a4ef; font-weight: 600; min-height: 50px; }
.knopf.e-leise:hover { background: rgb(255 255 255 / .08); }
.e-schlitz :focus-visible, .e-schlitz label:focus-within { outline: 3px solid var(--senf); outline-offset: 3px; }
.e-schutz { margin: 0 0 40px; color: var(--text-2); font-size: 15px; max-width: 80ch; }

/* ---------- Ergebnis ---------- */
.e-ergebnis { margin-bottom: 56px; }
.e-band { background: var(--flaeche-1); border: 1px solid var(--linie); border-radius: 18px; padding: 24px 26px 22px; }
.e-band-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-bottom: 16px; }
.e-band h2, .e-zwischen, .e-alle h2 { margin: 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 750; letter-spacing: -.015em; color: var(--indigo-tief); }
.e-band-kopf p { margin: 0; color: var(--text-2); font-size: 15px; overflow-wrap: anywhere; }
.e-spalten { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.e-spalten li { display: inline-flex; flex-direction: column; gap: 4px; padding: 8px 12px 9px; border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche-0); max-width: 100%; }
.e-spalten b { font-family: "Archivo", sans-serif; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.e-art { align-self: flex-start; padding: 1px 8px; border-radius: 6px; font-size: 13px; font-weight: 500; background: var(--senf-hell); color: var(--senf-text); }
.e-art-datum { background: var(--indigo-hell); color: var(--akzent-text); }
.e-art-zahl { background: #e3f0ec; color: #1f5547; }
.e-mehr { justify-content: center; color: var(--text-2); }
.e-hinweis { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--senf-hell); color: var(--senf-text); font-size: 15px; }

.e-zwischen { margin: 40px 0 16px !important; }
.e-treffer { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.e-karte {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 8px 26px; align-items: center;
  padding: 22px 26px; background: var(--flaeche-1); border: 1px solid var(--linie); border-left: 10px solid var(--farbe, var(--indigo)); border-radius: 16px;
}
.e-karte.e-sehr { --farbe: var(--indigo); --wortfarbe: var(--akzent-text); }
.e-karte.e-gut { --farbe: var(--indigo-mittel); --wortfarbe: var(--akzent-text); }
.e-karte.e-teil { --farbe: var(--senf); --wortfarbe: var(--senf-text); }
.e-karte.e-kaum { --farbe: var(--kaum); --wortfarbe: var(--text-2); }
.e-karte.e-allg { --farbe: var(--senf); --wortfarbe: var(--senf-text); }
.e-platz { margin: 0; align-self: start; padding-top: 4px; font-family: "Archivo", sans-serif; font-weight: 700; font-size: 15px; color: var(--text-2); }
.e-karte h3 { margin: 0; font-size: clamp(21px, 2vw, 26px); font-weight: 750; letter-spacing: -.01em; color: var(--text-1); }
.e-was { margin: 2px 0 12px; color: var(--text-2); font-size: 16px; }
.e-balken { height: 14px; border-radius: 7px; background: var(--flaeche-2); overflow: hidden; max-width: 560px; }
.e-balken i { display: block; height: 100%; border-radius: 7px; background: var(--farbe); }
.e-wort { margin: 8px 0 4px; color: var(--wortfarbe); font-size: 16px; }
.e-wort b { font-family: "Archivo", sans-serif; font-weight: 700; }
.e-grund, .e-fehlt { margin: 2px 0 0; font-size: 15px; color: var(--text-2); overflow-wrap: anywhere; }
.e-fehlt { color: var(--senf-text); }
.e-oeffnen { white-space: nowrap; background: var(--indigo); }
.e-karte.e-teil .e-oeffnen, .e-karte.e-kaum .e-oeffnen { background: var(--flaeche-2); color: var(--indigo-tief); border-color: var(--linie); }

.e-allgemein { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 26px; margin-top: 14px; padding: 20px 26px; border: 2px dashed var(--senf); border-radius: 16px; background: #fffaf0; }
.e-allgemein h3 { margin: 0 0 4px; font-size: 20px; font-weight: 750; }
.e-allgemein p { margin: 0; color: var(--text-2); font-size: 16px; max-width: 70ch; }

/* ---------- alle 26 ---------- */
.e-alle { margin-top: 24px; }
.e-alle-unter { margin: 6px 0 18px; color: var(--text-2); }
.e-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; border-top: 2px solid var(--indigo-tief); }
.e-liste li { border-bottom: 1px solid var(--linie); }
.e-liste a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 14px 6px; min-height: 44px; color: var(--text-1); text-decoration: none; border-radius: 6px; }
.e-liste a:hover { background: var(--indigo-hell); }
.e-liste b { font-family: "Archivo", sans-serif; font-weight: 650; font-size: 17px; }
.e-liste span { grid-column: 1; color: var(--text-2); font-size: 14.5px; line-height: 1.4; }
.e-liste em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: 13px; color: var(--senf-text); white-space: nowrap; }

@media (max-width: 1000px) { .e-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .e-kopf { padding-top: 36px; }
  .ablage.e-schlitz { grid-template-areas: "text" "oeffnung" "knoepfe" "fehler"; grid-template-columns: 1fr; padding: 24px 20px; }
  .e-schlitz .knoepfe .knopf { width: 100%; }
  .e-karte { grid-template-columns: 1fr; padding: 18px 18px 20px; border-left-width: 8px; }
  .e-oeffnen { width: 100%; white-space: normal; }
  .e-band { padding: 18px; }
  .e-liste { grid-template-columns: 1fr; }
  .e-liste em { grid-column: 1; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .e-oeffnung, .e-oeffnung i, .ablage.e-schlitz { transition: none; }
}
