/* Palette ohne Label (28.09.2026) - nur eingebunden bei APP_OHNELABEL.
   Handschuh-tauglich: große Flächen, eine Spalte, der nächste Schritt leuchtet. */
.ol-schritt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 76px;
  margin: 0 0 0.7rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  border: 1px dashed var(--color-surface-line);
  background: var(--color-bg-deep);
  color: var(--color-text);
  font: inherit;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.ol-schritt.ol-dran { border: 2px solid var(--color-accent-bright); }
.ol-schritt.ol-fertig { border-style: solid; border-color: #4ade80; }
.ol-schritt:focus-within { outline: 2px solid var(--color-accent-bright); outline-offset: 3px; }
.ol-schritt:active { transform: scale(0.99); }
.ol-datei { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.ol-nr {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-weight: 600;
  background: var(--color-surface-line);
  color: var(--color-text);
}
.ol-dran .ol-nr { background: var(--color-accent-bright); color: var(--color-accent-contrast); }
.ol-fertig .ol-nr { background: #4ade80; color: #0b1a10; }
.ol-text { flex: 1; min-width: 0; }
.ol-titel { display: block; font-size: 1.05rem; font-weight: 600; }
.ol-meta { display: block; font-size: 0.8rem; color: var(--color-text-muted); }
.ol-bild {
  flex: none;
  width: 58px; height: 58px;
  object-fit: cover;
  border-radius: 6px;
}

.ol-zahl-block { cursor: default; }
.ol-zahl-reihe { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.35rem; }
.ol-zahl {
  width: 5.5rem;
  min-height: 52px;
  text-align: center;
  font-size: 1.5rem;
  font-family: var(--font-mono);
  border-radius: var(--radius);
  border: 1px solid var(--color-surface-line);
  background: var(--color-bg);
  color: var(--color-text);
}
.ol-zahl:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.ol-zahl-reihe .ol-zahl { width: 100%; max-width: 12rem; font-size: 2rem; min-height: 60px; touch-action: manipulation; cursor: default; }
.ol-ansage { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Ziffernblock (Carsten 28.09.2026: Zahlenfeld statt −/+) – groß genug für Handschuhe */
.ol-tasten {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.7rem;
  max-width: 22rem;
}
.ol-taste {
  min-height: 58px;
  font-size: 1.6rem;
  font-family: var(--font-mono);
  border-radius: var(--radius);
  border: 1px solid var(--color-surface-line);
  background: var(--color-surface, rgba(255, 255, 255, 0.04));
  color: var(--color-text);
  touch-action: manipulation;          /* kein Doppeltipp-Zoom beim schnellen Tippen */
  -webkit-tap-highlight-color: transparent;
}
.ol-taste:active { background: var(--color-accent); color: var(--color-bg); }
.ol-taste:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.ol-taste-leise { font-size: 1.1rem; color: var(--color-text-muted); }

.ol-senden { margin-top: 0.3rem; font-size: 1.1rem; min-height: 58px; }
.ol-hinweis { font-size: 0.9rem; color: var(--color-text-muted); margin: 0 0 0.8rem; }
.ol-hinweis.fehler { color: #f5b14c; }

.ol-erfolg {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  margin: 0 0 0.9rem;
  border-radius: var(--radius);
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid #4ade80;
}
.ol-haken {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #4ade80; color: #0b1a10;
  font-size: 1.2rem; font-weight: 700;
}
.ol-liste { margin-top: 1.2rem; }
.ol-unter { margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--color-text-muted); }
/* Diana-Kiosk (03.10.2026): nur "Palette ohne Label" - keine Fussleiste, keine anderen Ansichten */
body.nur-ohnelabel #fussleiste { display: none; }
body.nur-ohnelabel #ansicht-ohnelabel { padding-bottom: 2rem; }
.ol-startkarte .schein-start-zahl { font-family: var(--font-mono); }
.ol-senden[disabled] { opacity: 0.4; }
.ol-senden + .knopf { margin-top: 0.6rem; }

/* Diana: Ergebnis-Karten über der Meldemaske (03.10.2026) */
.old-ergebnisse { display: grid; gap: 0.6rem; margin: 0 0 1rem; }
.old-karte { padding: 0.8rem 0.95rem; border-radius: var(--radius); border: 1px solid var(--color-surface-line);
  background: var(--color-surface, rgba(255, 255, 255, 0.04)); }
.old-kopf { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 0.3rem; }
.old-zeile { margin: 0.15rem 0; }
.old-gut { color: #4ade80; font-weight: 600; }
.old-gross { font-size: 1.1rem; }
.old-warten { color: var(--color-text-muted); }
.old-fehler { color: #f5b14c; }
.old-frage { font-weight: 600; margin-bottom: 0.4rem; }
.old-meta { font-size: 0.85rem; color: var(--color-text-muted); }
.old-platz-zeile { display: flex; gap: 0.5rem; align-items: center; margin: 0.3rem 0 0.5rem; }
.old-platz-zeile.old-pruefen span { color: #f5b14c; }
.old-platz { flex: 1; min-height: 46px; padding: 0 0.7rem; border-radius: var(--radius); border: 1px solid var(--color-surface-line);
  background: var(--color-bg); color: var(--color-text); font-family: var(--font-mono); font-size: 1.05rem; }
.old-wahl { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; gap: 0.15rem;
  margin: 0.35rem 0 0; padding: 0.7rem 0.85rem; min-height: 56px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--color-accent); background: transparent; color: var(--color-text); font: inherit; }
.old-wahl:active { background: var(--color-accent); color: var(--color-bg); }
.old-wahl-titel { font-weight: 600; }
.old-wahl-meta { font-size: 0.82rem; color: var(--color-text-muted); }
.old-knapp { padding: 0.5rem 0.85rem; font-size: 0.9rem; }

/* Diana: Weiter / Stammdaten nach der Heirat (03.10.2026) - grosse Daumen-Knoepfe */
.old-entscheidung { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.6rem; width: 100%; }
.old-knapp { flex-wrap: wrap; }
.old-weiter, .old-stamm { min-height: 52px; border-radius: var(--radius); font: inherit; font-weight: 600; cursor: pointer;
  border: 1px solid var(--color-accent); }
.old-weiter { background: transparent; color: var(--color-text); }
.old-stamm { background: var(--color-accent); color: var(--color-bg); }
.old-weiter:active, .old-stamm:active { transform: scale(0.98); }

/* Stammdaten-Maske: ersetzt waehrend der Eingabe Karten und Meldemaske */
#ansicht-ohnelabel.osd-aktiv > :not(.osd-panel) { display: none; }
.osd-panel { display: grid; gap: 0.55rem; padding-bottom: 2rem; }
.osd-titel { margin: 0; font-size: 1.35rem; }
.osd-bezug { margin: 0; font-family: var(--font-mono); font-size: 0.82rem; color: var(--color-text-muted); }
.osd-abschnitt { margin: 0.8rem 0 0.1rem; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text-muted); }
.osd-fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.osd-foto { position: relative; display: grid; place-items: center; gap: 0.2rem; aspect-ratio: 1; border-radius: var(--radius);
  border: 1px dashed var(--color-surface-line); cursor: pointer; overflow: hidden; }
.osd-foto-da { border-style: solid; border-color: #4ade80; }
.osd-datei { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.osd-foto-bild { font-size: 1.8rem; pointer-events: none; }
.osd-foto-bild img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.osd-foto-titel { position: relative; font-size: 0.85rem; font-weight: 600; pointer-events: none;
  background: rgba(0, 0, 0, 0.45); padding: 0 0.4rem; border-radius: 4px; }
.osd-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.osd-chip { min-height: 44px; padding: 0 0.9rem; border-radius: 999px; border: 1px solid var(--color-surface-line);
  background: transparent; color: var(--color-text); font: inherit; cursor: pointer; }
.osd-chip[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); }
.osd-frei, .osd-zahl { min-height: 48px; padding: 0 0.7rem; border-radius: var(--radius); border: 1px solid var(--color-surface-line);
  background: var(--color-bg); color: var(--color-text); font: inherit; font-size: 1.1rem; width: 100%; box-sizing: border-box; }
.osd-zahl { font-family: var(--font-mono); text-align: right; }
.osd-raster { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.osd-raster.osd-drei { grid-template-columns: repeat(3, 1fr); }
.osd-feld { display: grid; gap: 0.2rem; grid-template-columns: 1fr auto; align-items: center; }
.osd-feld-name { grid-column: 1 / -1; font-size: 0.8rem; color: var(--color-text-muted); }
.osd-einheit { font-size: 0.8rem; color: var(--color-text-muted); padding-left: 0.3rem; }
.osd-meldung { min-height: 1.2rem; color: #f5b14c; }
.osd-knoepfe { display: grid; gap: 0.5rem; }
.osd-speichern { min-height: 56px; font-size: 1.05rem; }
.osd-abbrechen { min-height: 44px; background: transparent; border: none; color: var(--color-text-muted); font: inherit; }
@media (min-width: 700px) {   /* iPad: Gebinde- und Palettenmasse nebeneinander lesbar */
  .osd-panel { max-width: 720px; }
  .osd-fotos { grid-template-columns: repeat(3, minmax(0, 180px)); }
}
.osd-hinweis { font-size: 0.82rem; color: #f5b14c; min-height: 1rem; }
.osd-zahl.osd-vorschlag { border-color: #f5b14c; border-style: dashed; }

/* Diana: Packstücke einzeln wählen (03.10.2026) */
.old-gruppe { display: grid; gap: 0.35rem; margin: 0.6rem 0 0.2rem; padding-top: 0.5rem; border-top: 1px solid var(--color-surface-line); }
.old-gruppe-kopf { display: grid; gap: 0.1rem; }
.old-packstueck { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.3rem 0.8rem;
  width: 100%; min-height: 50px; padding: 0.55rem 0.8rem; text-align: left; cursor: pointer; font: inherit;
  border-radius: var(--radius); border: 1px solid var(--color-surface-line); background: transparent; color: var(--color-text); }
.old-packstueck.old-passt { border-color: #4ade80; }
.old-packstueck[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); }
.old-packstueck[aria-pressed="true"] .old-wahl-meta { color: var(--color-bg); }
.old-pe { font-family: var(--font-mono); font-weight: 600; }
.old-zuordnen { width: 100%; min-height: 56px; margin-top: 0.7rem; border-radius: var(--radius); border: none; cursor: pointer;
  background: var(--color-accent); color: var(--color-bg); font: inherit; font-weight: 700; font-size: 1.05rem; }
.old-zuordnen:disabled { opacity: 0.45; cursor: default; }

/* ---- Zwischenspeicher (03.10.2026, Halle zu 80 % ohne Netz): Platz bestätigen + Ausgangsleiste ---- */
.ol-platz-block { cursor: default; }
.ol-platz-reihe { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; gap: 0.45rem; margin: 0.35rem 0 0.5rem; }
.ol-platzfeld { min-width: 0; min-height: 56px; padding: 0 0.6rem; text-align: center; text-transform: uppercase;
  font-family: var(--font-mono); font-size: 1.45rem; border-radius: var(--radius);
  border: 1px solid var(--color-surface-line); background: var(--color-bg); color: var(--color-text); }
.ol-platzfeld:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.ol-platz-schritt { min-height: 56px; border-radius: var(--radius); border: 1px solid var(--color-surface-line);
  background: var(--color-surface, rgba(255, 255, 255, 0.04)); color: var(--color-text); font-size: 1.6rem;
  font-family: var(--font-mono); cursor: pointer; touch-action: manipulation; }
.ol-platz-schritt:active { background: var(--color-accent); color: var(--color-bg); }
.ol-platz-ok { width: 100%; min-height: 56px; margin-bottom: 0.35rem; border-radius: var(--radius); border: none;
  background: var(--color-accent); color: var(--color-bg); font: inherit; font-weight: 700; font-size: 1.1rem;
  cursor: pointer; touch-action: manipulation; }
.ol-fertig .ol-platz-ok { background: transparent; color: var(--color-text); border: 1px solid var(--color-surface-line); font-weight: 600; }
.ol-platz-ok:disabled { opacity: 0.45; cursor: default; }
.ol-platz-ok:active:not(:disabled) { transform: scale(0.98); }
.ol-wie-eben { min-height: 48px; padding: 0 0.9rem; border-radius: var(--radius); border: 1px solid var(--color-accent);
  background: transparent; color: var(--color-text); font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; }
.ol-wie-eben:active { background: var(--color-accent); color: var(--color-bg); }

.ol-ausgang { display: grid; gap: 0.4rem; margin-bottom: 0.8rem; }
.ol-ausgang:empty { display: none; }
.ol-ausgang-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; padding: 0.65rem 0.8rem;
  border-radius: var(--radius); border: 1px solid var(--color-surface-line); background: var(--color-bg-deep); }
.ol-ausgang-wartet { border: 2px solid var(--color-accent-bright); }
.ol-ausgang-meta { font-size: 0.82rem; color: var(--color-text-muted); margin: 0; }
.ol-ausgang-kopf .ol-ausgang-knopf { margin-left: auto; }
.ol-ausgang-knopf { min-height: 44px; padding: 0 0.85rem; border-radius: var(--radius); border: 1px solid var(--color-accent);
  background: var(--color-accent); color: var(--color-bg); font: inherit; font-weight: 600; cursor: pointer; }
.ol-ausgang-knopf:disabled { opacity: 0.5; cursor: default; }
.ol-ausgang-leise { background: transparent; color: var(--color-text-muted); border-color: var(--color-surface-line); }
.ol-ausgang-klaer { padding: 0.55rem 0.8rem; border-radius: var(--radius); border: 1px solid var(--color-surface-line); }
.ol-ausgang-klaer summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.ol-ausgang-zeile { display: grid; gap: 0.3rem; padding: 0.55rem 0; border-top: 1px solid var(--color-surface-line); }
.ol-ausgang-zeile .ol-ausgang-knopf { width: 100%; }
.ol-ausgang-offen { width: 100%; min-height: 52px; border-radius: var(--radius); border: 1px solid var(--color-accent);
  background: transparent; color: var(--color-text); font: inherit; font-weight: 600; cursor: pointer; text-align: left;
  padding: 0 0.85rem; }
.ol-gleicher-platz { width: 100%; margin-bottom: 0.45rem; text-align: left; }
