/* Serie erfassen – Bausteine 1:1 nach dem UI-Entwurf (docs/entwuerfe/ui-entwurf.html):
   Schrittleiste, Feld, Segment, Wahl-Knöpfe, Fotoraster, Spiegelreihe, Streifenliste, Wertwahl.
   Baut auf bsg/basis.css (Design-Tokens) auf. */
.klein { font-size: .85rem; }
.verborgen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.reihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.formular { display: grid; gap: 18px; }
.karte.formular { padding: 18px; }

/* Schrittleiste */
.schrittfolge { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.schrittfolge li { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text-leise); font-size: .92rem;
  min-height: 40px; }
.schrittfolge li a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.schrittfolge .nr { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--linie); font-family: var(--schrift-zahl); }
.schrittfolge li[aria-current="step"] { color: var(--text); }
.schrittfolge li[aria-current="step"] .nr { background: var(--primaer); color: var(--auf-primaer); border-color: var(--primaer); }
.schrittfolge li.fertig .nr { background: var(--ok-grund); color: var(--ok); border-color: var(--ok-grund); }
.schrittfolge li + li::before { content: ""; width: 22px; height: 2px; background: var(--linie); }
@media (max-width: 359px) { .schrittfolge li + li::before { display: none; } }   /* „Kontrollieren“ passt sonst nicht (E-234) */
/* Handy: alle Schritte in einer Reihe, Beschriftung bricht im Schritt um (Wunsch D. Damaschke 04.11.2026) */
@media (max-width: 600px) {
  .schrittfolge { flex-wrap: nowrap; }
  .schrittfolge li { gap: 6px; font-size: .8rem; line-height: 1.2; }
  .schrittfolge li + li::before { width: 10px; flex: none; }
  .schrittfolge .nr { flex: none; }
  /* Zwischensumme: Platz für zwei Zeilen fest, sonst springt die Scheibe beim ersten Tipp unter dem Finger (04.11.2026) */
  .streifen .seitenkopf { flex-wrap: nowrap; }
  .streifen .seitenkopf > div:first-child { flex: 1; min-width: 0; }
  .streifen #zwischensumme { font-size: 1.1rem; line-height: 1.3; min-height: 2.6em; }
}

/* Felder */
.feld { display: grid; gap: 6px; }
.feld label, .feldname { font-weight: 700; margin: 0; }
.feld input:not([type=radio]), .feld select { min-height: 48px; border-radius: 10px; border: 2px solid var(--linie);
  background: var(--flaeche); padding: 8px 12px; }
.schmal-feld { max-width: 260px; }
.feld .knopf.text { justify-self: start; padding-left: 0; }
.klasse { margin: 0; }

/* Schütze suchen */
.namenswahl { display: grid; gap: 6px; max-width: 460px; }
.namenswahl-feld { position: relative; }
.namenswahl-feld input { padding-left: 38px !important; width: 100%; }
.namenswahl-feld::before { content: ""; position: absolute; left: 13px; top: 50%; width: 11px; height: 11px;
  border: 2px solid var(--text-leise); border-radius: 50%; transform: translateY(-62%); pointer-events: none; }
.namenswahl-feld::after { content: ""; position: absolute; left: 24px; top: 58%; width: 6px; height: 2px;
  background: var(--text-leise); transform: rotate(45deg); pointer-events: none; }
.namenswahl { position: relative; }
/* wie im Entwurf: Liste klappt unter dem Feld auf und liegt über dem Inhalt */
.namensliste { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px;
  list-style: none; background: var(--flaeche); border: 2px solid var(--linie); border-radius: 12px;
  box-shadow: var(--schatten); max-height: 260px; overflow-y: auto; }
.namensliste a { display: block; padding: 10px 12px; border-radius: 8px; min-height: 44px; color: var(--text); text-decoration: none; }
.namensliste a:hover, .namensliste a:focus-visible, .namensliste a.aktiv { background: var(--flaeche-zart); box-shadow: inset 3px 0 0 var(--akzent); }
.kein-treffer { padding: 10px 12px; color: var(--text-leise); }

/* Segment (Bereich) und Wahl-Knöpfe (Disziplin, Variante): echte Radio-Knöpfe, sichtbar als Knöpfe */
.segment { display: inline-flex; background: var(--flaeche-zart); border-radius: 10px; padding: 3px; flex-wrap: wrap;
  justify-self: start; }
.segment label { margin: 0; }
.segment input, .wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segment span { display: inline-flex; align-items: center; border-radius: 8px; padding: 6px 14px; min-height: 40px;
  cursor: pointer; font-weight: 700; font-size: .92rem; color: var(--text-leise); }
.segment input:checked + span { background: var(--flaeche); color: var(--text); box-shadow: var(--schatten); }
.segment input:focus-visible + span, .wahl input:focus-visible + span { outline: 3px solid var(--fokus); outline-offset: 2px; }
.wahl { display: flex; flex-wrap: wrap; gap: 10px; }
.wahl label { margin: 0; position: relative; }
.wahl span { display: block; border: 2px solid var(--linie); background: var(--flaeche); border-radius: 12px;
  padding: 10px 16px; min-height: 52px; font-weight: 700; cursor: pointer; }
.wahl small { display: block; font-weight: 400; color: var(--text-leise); font-size: .82rem; }
.wahl input:checked + span { border-color: var(--akzent); background: var(--flaeche-zart); box-shadow: inset 0 0 0 1px var(--akzent); }
details.gesperrt summary { cursor: pointer; color: var(--akzent); font-weight: 700; }
details.gesperrt ul { margin: 6px 0 0; padding-left: 20px; }
details.anpassen summary { list-style: none; justify-content: flex-start; padding-left: 0; }
details.anpassen summary::-webkit-details-marker { display: none; }
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 8px 0; }

/* Fotos */
.fotoraster { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.fotofeld { border: 2px dashed var(--linie); border-radius: 12px; padding: 12px; display: grid; gap: 6px; justify-items: center;
  text-align: center; min-height: 150px; align-content: center; background: var(--flaeche); }
.fotofeld.fertig { border-style: solid; border-color: var(--ok-grund); }
.fotofeld.aktiv { border-color: var(--akzent); border-style: solid; background: var(--flaeche-zart); }
.fotofeld img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.fotofeld { min-width: 0; grid-template-columns: minmax(0, 1fr); }   /* T-0003: sonst wird die Spalte so breit wie der Knopf */
.fotofeld .knopf { cursor: pointer; max-width: 100%; padding-inline: 8px; }
.fotofeld.gewaehlt { border-style: solid; border-color: var(--akzent); }
.fotofeld:not(.aktiv) .fototipp { display: none; }
.fotofeld .knopf.klein { min-height: 36px; padding: 4px 8px; font-size: .85rem; }

/* Prüfen */
.zweispaltig { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.streifen, .summe { display: grid; gap: 10px; }
.unterreiter { display: flex; gap: 6px; flex-wrap: wrap; }
.unterreiter button { border: 0; background: var(--flaeche-zart); border-radius: 999px; padding: 8px 16px; font-weight: 700;
  min-height: 44px; cursor: pointer; color: var(--text); font-family: var(--schrift-text); }
.unterreiter button[aria-pressed="true"] { background: var(--primaer); color: var(--auf-primaer); }
.blaettern .knopf { min-height: 44px; min-width: 44px; padding: 4px 12px; font-size: 1.3rem; }
.spiegelreihe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.spiegel-karte { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 6px; border-radius: 10px;
  border: 2px solid transparent; background: none; cursor: pointer; color: var(--text); font-family: var(--schrift-text); }
.spiegel-karte svg { width: 100%; height: auto; max-width: 150px; }
.spiegel-karte .zahl { font-size: 1.35rem; }
.spiegel-karte.unsicher { border-color: var(--pruefen); background: var(--pruefen-grund); }
.spiegel-karte[aria-pressed="true"] { border-color: var(--akzent); background: var(--flaeche-zart); }
/* Einzeichnen mit dem Finger (E-217, Entwurf C): Griffring zum Anfassen neben dem Loch, Lupe beim Ziehen.
   Gilt auch für „Referenzsatz prüfen“ (lädt diese Datei mit). */
.griff { fill: rgba(200, 200, 200, .28); stroke: rgba(110, 110, 110, .8); stroke-width: 1.5px; stroke-dasharray: 5 4;
  vector-effect: non-scaling-stroke; }
.lupe { position: absolute; top: 4%; right: 4%; width: 45%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 3px solid #c9a227; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); background-color: #111; background-repeat: no-repeat;
  pointer-events: none; }
.lupe.links { right: auto; left: 4%; }
.lupe.unten { top: auto; bottom: 4%; }
.lupe[hidden] { display: none; }
.lupe svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.lupe .kreis { fill: none; stroke: #3b7dd8; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.lupe .kreuz { stroke: #3b7dd8; stroke-width: 1.5px; vector-effect: non-scaling-stroke; fill: none; }
/* Prüfen wie „Referenzsatz prüfen“ (E-227): Nahansicht oben, ganze Scheibe unten, Foto links, Zeichnung rechts */
.treffer-liste { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); margin: 8px 0; }
.treffer-liste .fall { padding: 6px 10px; text-align: left; cursor: pointer; font: inherit; color: var(--text); }
.treffer-liste .fall .zahl { color: var(--text); }
.treffer-liste .fall.pruefgrund { background: #fdf0e0; box-shadow: inset 0 0 0 2px #d9822b; color: #1d1d1b; }
.treffer-liste .fall.pruefgrund .zahl, .treffer-liste .fall.pruefgrund .leise { color: #a85a10; }
.treffer-liste .fall[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--akzent); }
#fotorahmen [hidden] { display: none; }
/* Solange nichts verschoben ist, bleibt das Loch im Foto frei sichtbar (wie in „Referenzsatz prüfen“) */
.foto-nummern[data-klick="verschieben"]:not(.setzt) .einzeichnen .kreis { fill: none; }
.foto-nummern[data-klick="verschieben"]:not(.setzt) .einzeichnen .kreuz { display: none; }
.ganzescheibe { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--linie); }
.vergleich.allein { grid-template-columns: minmax(0, 1fr); max-width: 460px; width: 100%; margin-inline: auto; }
#ganzebild { cursor: pointer; }
.foto-nummern > svg:first-child { width: 100%; height: auto; aspect-ratio: 1; display: block; border-radius: 10px; }
.wertwahl { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; }
.wertwahl button { min-height: 52px; border-radius: 10px; border: 2px solid var(--linie); background: var(--flaeche);
  color: var(--text); font-family: var(--schrift-zahl); font-weight: 700; font-size: 1.3rem; cursor: pointer; }
.wertwahl button[aria-pressed="true"] { border-color: var(--akzent); background: var(--flaeche-zart); }
.wertwahl button:disabled { opacity: .4; cursor: default; }
#fotorahmen { margin: 0; } #fotorahmen img { width: 100%; max-height: 320px; object-fit: contain; border-radius: 8px; }
.streifenliste { display: grid; gap: 6px; margin-top: 10px; }
.streifenliste .etikett { margin-top: 6px; }
.streifenzeile { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; border: 0;
  background: var(--flaeche-zart); border-radius: 10px; padding: 8px 12px; min-height: 48px; cursor: pointer; text-align: left;
  color: var(--text); font-family: var(--schrift-text); font-size: 1rem; }
.streifenzeile[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--akzent); }
.streifenzeile .leise { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-size: .88rem; }
.zt { display: grid; justify-items: end; line-height: 1.05; }
.zt .zahl { font-size: 1.5rem; }
.zt small { color: var(--text-leise); font-family: var(--schrift-zahl); font-weight: 600; font-size: .9rem; }
.summe .knopf.breit { margin-top: 12px; }
.summe .knopf.text { justify-self: center; }
.haken { margin: 6px 0 0; }

@media (max-width: 1099px) { .zweispaltig { grid-template-columns: 1fr; } }
@media (min-width: 1100px) { .zweispaltig:has(#fallliste) { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); } }
@media (max-width: 560px) {
  .fotoraster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fotofeld .knopf svg { display: none; }           /* zwei Spalten: Symbol und Text passen nicht nebeneinander */
  .wertwahl { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .spiegelreihe { gap: 4px; }
  .spiegel-karte { padding: 2px; }
  .spiegel-karte .zahl { font-size: 1.1rem; }
  .spiegel-karte .klein { font-size: .7rem; line-height: 1.2; }
}

/* Prüffälle – wie im Entwurf: Fallliste links, Fall rechts, Vergleich „Foto | Darstellung“ */
.ohne-abstand { margin: 0; }
.titel-klein { font-family: var(--schrift-titel); font-size: 1.3rem; margin: 0; }
.zweispaltig.faelle { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.fallliste { display: grid; gap: 8px; }
.fall { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 10px 12px; border-radius: 10px; border: 0;
  background: var(--flaeche-zart); text-align: left; color: var(--text); text-decoration: none; }
.fall b, .fall .leise { grid-column: 2; }
.fall[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--akzent); }
.fall .zahl { grid-row: span 2; font-size: 1.5rem; align-self: center; color: var(--pruefen); }
.fallkarte { display: grid; gap: 14px; }
.vergleich-zeile { display: grid; gap: 8px; border-top: 1px solid var(--linie); padding-top: 12px; }
.vergleich-zeile .seitenkopf .zahl { font-size: 1.3rem; }
.vergleich { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.vergleich figure { margin: 0; display: grid; gap: 6px; }
.vergleich figcaption { font-weight: 700; font-size: .9rem; }
.vergleich img { width: 100%; border-radius: 10px; max-height: 260px; object-fit: contain; background: var(--flaeche-zart); }
.darstellung { display: grid; gap: 4px; }
.darstellung svg { width: 100%; height: auto; border-radius: 8px; }
.schussreihe { display: flex; flex-wrap: wrap; gap: 4px; }
.schuss { border: 1px solid var(--linie); border-radius: 6px; background: var(--flaeche-zart); color: var(--text);
  padding: 2px 10px; font: 600 15px var(--schrift-zahl); cursor: pointer; min-height: 36px; }
.schuss.offen { background: var(--pruefen-grund); color: var(--pruefen); border-color: var(--pruefen); }
.schuss.gestrichen { text-decoration: line-through; opacity: .7; }
.schuss.aktiv { outline: 2px solid var(--fokus); }
#wertform { display: grid; gap: 8px; background: var(--flaeche-zart); border-radius: 10px; padding: 10px 12px; }
#wertform[hidden] { display: none; }
.hinweiskasten .wertwahl { margin-top: 8px; }
@media (max-width: 1099px) { .zweispaltig.faelle { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .vergleich { grid-template-columns: 1fr; } }
details.zurueck summary { list-style: none; justify-self: start; }
details.zurueck summary::-webkit-details-marker { display: none; }
details.zurueck[open] summary { margin-bottom: 10px; }
details.zurueck textarea { width: 100%; border-radius: 10px; border: 2px solid var(--linie); background: var(--flaeche);
  color: var(--text); padding: 8px 12px; font: inherit; resize: vertical; }

/* Ergebnisse (Schießkladde) – wie im Entwurf */
.etikett.block { display: block; }
.filterleiste { display: grid; gap: 14px; }
.filtergruppe { display: grid; gap: 6px; }
.unterreiter a, .segment-links a { text-decoration: none; }
.unterreiter a { background: var(--flaeche-zart); border-radius: 999px; padding: 8px 16px; font-weight: 700;
  min-height: 44px; color: var(--text); display: inline-flex; align-items: center; }
/* Handy: Filter bündig unter dem rechten Knopf des Seitenkopfs (Wunsch D. Damaschke 04.11.2026) */
@media (max-width: 819px) { .seitenkopf:has(.rechts > *) + .unterreiter { justify-content: flex-end; } }
.unterreiter a[aria-pressed="true"] { background: var(--primaer); color: var(--auf-primaer); }
.segment-links a, .segment-links button { display: inline-flex; align-items: center; border-radius: 8px; padding: 6px 14px; min-height: 40px;
  font-weight: 700; font-size: .92rem; color: var(--text-leise); }
.segment-links a[aria-pressed="true"], .segment-links button[aria-pressed="true"] { background: var(--flaeche); color: var(--text); box-shadow: var(--schatten); }
.datumsfelder { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.datumsfelder label { margin: 0; font-weight: 700; }
.datumsfelder input { width: auto; min-height: 44px; border-radius: 10px; border: 2px solid var(--linie); padding: 6px 10px; }
.filter-summe { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; border-top: 1px solid var(--linie); padding-top: 12px; }
.filter-summe .zahl { font-size: 1.3rem; }
.filter-summe .knopf { margin-left: auto; }
.tabelle-huelle { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th { text-align: left; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-leise);
  padding: 8px 10px; border-bottom: 2px solid var(--linie); }
td { padding: 10px; border-bottom: 1px solid var(--linie); }
td.z, th.z { text-align: right; }
td.z { font-family: var(--schrift-zahl); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.1rem; }
th.z { white-space: nowrap; }
tr.klickbar { cursor: pointer; position: relative; }
tr.klickbar:hover td { background: var(--flaeche-zart); }
.zeilenlink { color: var(--text); text-decoration: none; font-weight: 700; }
.zeilenlink::after { content: ""; position: absolute; inset: 0; }
.spo { font-family: var(--schrift-text); font-size: .62em; font-weight: 700; color: var(--gold-text); letter-spacing: .04em; white-space: nowrap; vertical-align: middle; }
.spo-zelle { color: var(--gold-text); font-weight: 700; white-space: nowrap; }
.schnitt-zelle { color: var(--text-leise); }
.ganz-zelle { font-size: 1.3rem !important; font-weight: 800 !important; }
.schnitt { color: var(--text-leise); font-weight: 700; }
.schnitt .zahl { font-size: 1.6rem; color: var(--text); margin-right: 4px; }
.liste-handy { display: grid; gap: 8px; }
.listeneintrag { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; background: var(--flaeche);
  border-radius: 12px; box-shadow: var(--schatten); color: var(--text); text-decoration: none; }
.listeneintrag .zt { grid-row: span 2; align-self: center; }
.nur-handy { display: none; }
@media (max-width: 819px) { .nur-gross { display: none; } .nur-handy { display: grid; } }
.zurueck-link { padding: 0 !important; min-height: 32px !important; }
.ergebnis-kopf { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; }
.ergebnis-kopf .ringzahl .gross { font-size: 5.5rem; }
.ergebnis-werte { display: grid; gap: 4px; }
.gesamtbild { margin-left: auto; width: 150px; }
.gesamtbild svg { width: 100%; height: auto; display: block; border-radius: 8px; }
.traeger-kachel { display: grid; gap: 6px; justify-items: center; padding: 10px; }
.traeger-kachel .darstellung { width: 100%; }

/* Wettkämpfe – wie im Entwurf */
.wk-kachel { color: var(--text); text-decoration: none; }
.wk-kachel .status { justify-self: start; }
a.wk-kachel:hover { box-shadow: inset 0 0 0 2px var(--linie), var(--schatten); }
.art-wahl { cursor: pointer; position: relative; font-weight: 400; margin: 0; }
.art-wahl input { position: absolute; opacity: 0; }
.art-wahl:has(input:checked) { box-shadow: inset 0 0 0 2px var(--akzent), var(--schatten); }
.art-wahl.folgt { opacity: .55; cursor: not-allowed; }
.formraster { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.einstellzeile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0;
  border-bottom: 1px solid var(--linie); font-weight: 400; margin: 0; }
.einstellzeile input[type=checkbox] { width: 20px; height: 20px; min-height: 20px; vertical-align: -4px; margin-right: 6px; }
.status.archiv { background: var(--flaeche-zart); color: var(--text-leise); }
.knopf-beenden { border-color: var(--fehler) !important; color: var(--fehler) !important; }
.beenden-frage { display: grid; gap: 8px; border: 2px solid var(--fehler); }
.platz { font-family: var(--schrift-zahl); font-weight: 800; font-size: 1.3rem; width: 2.2em; }
tr.platz-1 .platz { color: var(--gold-text); }
.platz-zeile { grid-template-columns: auto 1fr auto !important; }
.platz-zeile .platz { grid-row: span 2; align-self: center; }
td select { min-height: 40px; border-radius: 8px; border: 2px solid var(--linie); background: var(--flaeche); padding: 4px 8px; width: auto; }
.stornieren { color: var(--fehler) !important; min-height: 40px !important; padding-left: 0 !important; }
.filterzeile { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.filterzeile .feld { min-width: 260px; max-width: 420px; flex: 1; }

/* Freier Wettkampf: Disziplinkarten wie im Entwurf („gaeste-disz-zeile“) */
.gaeste-disz { display: grid; gap: 10px; }
.gaeste-disz-zeile { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end;
  padding: 12px; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche-zart); }
.gaeste-disz-zeile .gross, .gaeste-disz-zeile .haken { grid-column: 1 / -1; }
.gaeste-disz-zeile textarea { width: 100%; border-radius: 10px; border: 2px solid var(--linie); background: var(--flaeche);
  color: var(--text); padding: 8px 12px; font: inherit; resize: vertical; }
.gaeste-disz-zeile select, .gaeste-disz-zeile input:not([type=checkbox]):not([type=radio]) { width: 100%; }
.gaeste-disz-zeile .entfernen { color: var(--fehler); justify-self: start; }
.gaeste-disz-zeile.fest > span:first-child { grid-column: 1 / -1; }
[inert] { opacity: .6; }                                        /* gesperrt nach Beginn (E-196) */
.op-zeile select { max-width: 120px; font-size: 1.2rem; font-weight: 700; }
.formel { font-family: var(--schrift-zahl); font-size: 1.15rem; }
.gesamt-zelle { font-size: 1.45rem !important; font-family: var(--schrift-zahl); font-weight: 800; }

/* Gästeschießen */
.datei-knopf { cursor: pointer; }
.datei-knopf.gesperrt { opacity: .45; cursor: not-allowed; }
.freigabe { gap: 0; }
.freigabe .knopf { min-height: 36px; padding: 2px 8px; font-size: .85rem; }
.klein-knopf { min-height: 40px !important; padding: 4px 12px !important; font-size: .9rem !important; }
.stechen { display: grid; gap: 8px; border: 2px solid var(--gold); }
.status.fehler { color: var(--fehler); background: var(--fehler-grund); }
.status.umbruch { white-space: normal; align-items: flex-start; border-radius: 10px; }
.stechen-eingabe { display: grid; gap: 8px; }
.stechen-zeile { display: grid; grid-template-columns: minmax(140px, 1fr) repeat(3, 80px) auto; gap: 8px; align-items: center; }
.stechen-zeile input { min-height: 44px; border-radius: 10px; border: 2px solid var(--linie); background: var(--flaeche);
  color: var(--text); padding: 6px 10px; text-align: center; font: 700 1.1rem var(--schrift-zahl); }
.stechen-erg { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
@media (max-width: 560px) { .stechen-zeile { grid-template-columns: repeat(3, 1fr); } .stechen-zeile b { grid-column: 1 / -1; } }
/* Ausschnitte in den Prüffällen wie im UI-Entwurf (E-156, E-233) */
.pruef-lupe { margin: 0 0 10px; }
.pruef-lupe .ausschnitt { aspect-ratio: 1; width: 100%; max-width: 320px; border-radius: 10px; border: 2px solid var(--gold);
  background-color: var(--flaeche-zart); background-repeat: no-repeat; display: grid; place-items: center; overflow: hidden;
  text-align: center; padding: 0; }
.pruef-lupe .ausschnitt > svg { width: 100%; height: 100%; display: block; background: #fff; }
/* Ring wie auf „Kontrollieren“ (E-235): die Knöpfe stehen unter dem Foto, deshalb trägt das Foto selbst den Rahmen */
.pruef-lupe .ausschnitt.mit-foto { aspect-ratio: auto; display: block; border: 0; background: none; overflow: visible; }
.mit-foto .foto-nummern { border: 2px solid var(--gold); border-radius: 10px; overflow: hidden; }
.mit-foto .foto-nummern img { display: block; width: 100%; height: auto; }
.mit-foto .einzeichnen-leiste { flex-wrap: nowrap; }
.mit-foto .einzeichnen-leiste .knopf { flex: 1 1 auto; padding-inline: 10px; white-space: nowrap; }
.foto-lupe { position: relative; cursor: crosshair; }
.foto-lupe .marke { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  border: 3px solid var(--gold); box-shadow: 0 0 0 2px rgba(0, 0, 0, .45); pointer-events: none; }
.foto-lupe .marke[hidden] { display: none; }
.segment-links button { border: 0; background: none; font: inherit; cursor: pointer; }
/* Bericht per E-Mail / Sammel-Mail (E-092, E-094), wie mailBereich im Entwurf */
.mail-bereich { display: grid; gap: 10px; }
.mail-bereich .formularzeile { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.mail-bereich .formularzeile .feld { min-width: 240px; flex: 1; }
.mail-bereich label input[type=checkbox] { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.mail-bereich .reihe label { display: inline-flex; align-items: center; gap: 6px; }
.mail-bereich label input[type=checkbox] { margin: 0; }

/* Scheiben-Nr. bei der Aufsicht (E-172): ein kompakter Block unter den Vergleichen */
.scheiben-nr-block { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; border-top: 1px solid var(--linie); padding-top: 12px; }
.scheiben-nr-block > b { flex-basis: 100%; }
.scheiben-nr { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; }
.scheiben-nr input { width: 7.5em; }

/* Auswertung läuft (E-223): Absehen wandert über die Scheibe, Löcher erscheinen. Reine Animation, keine echten Werte. */
.auswerten { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 24px; text-align: center;
  background: radial-gradient(circle at 50% 38%, var(--buehne-innen), var(--buehne-aussen) 78%); }
.auswerten::after { content: ""; position: absolute; inset: 10px; border: 1px solid var(--gold); border-radius: 8px; opacity: .55; pointer-events: none; }
.auswerten[hidden] { display: none; }
.auswerten p { margin: 0; }
.auswerten-bild { width: min(70vw, 280px); height: auto; overflow: visible; }
.auswerten-spruch { font: 700 1.35rem/1.25 var(--schrift-titel); color: var(--spruch); margin-top: 8px !important; min-height: 1.7em; }
.fototausch { margin-top: 6px; cursor: pointer; }
.scheibenbild { transform-origin: 100px 100px; animation: scheibe-wackeln 8s infinite; }
.absehen { animation: absehen-wandern 8s infinite ease-in-out; }
.auswerten-bild .loch { fill: #0C0603; stroke: #F0D6A4; stroke-width: 1.1; opacity: 0; }
.l1 { animation: loch-1 8s infinite; } .l2 { animation: loch-2 8s infinite; }
.l3 { animation: loch-3 8s infinite; } .l4 { animation: loch-4 8s infinite; }
.ruf { opacity: 0; }
.ruf rect { fill: #0B3B1E; stroke: #D9B867; stroke-width: .8; }
.ruf text { font: 700 11.5px var(--schrift-titel); fill: #F3E3B5; text-anchor: middle; }
.r1 { animation: ruf-1 8s infinite; } .r2 { animation: ruf-2 8s infinite; }
.r3 { animation: ruf-3 8s infinite; } .r4 { animation: ruf-4 8s infinite; }
@keyframes absehen-wandern {
  0% { transform: translate(-70px, -50px); } 8% { transform: translate(14px, -11px); } 12%, 14% { transform: translate(10px, -7px); }
  28% { transform: translate(-14px, 12px); } 34%, 36% { transform: translate(-10px, 8px); }
  50% { transform: translate(8px, 24px); } 56%, 58% { transform: translate(4px, 20px); }
  70% { transform: translate(20px, -20px); } 78%, 80% { transform: translate(66px, -52px); }
  100% { transform: translate(-70px, -50px); }
}
@keyframes scheibe-wackeln {
  0%, 12%, 14%, 34%, 36%, 56%, 58%, 78%, 81%, 100% { transform: rotate(0); }
  13%, 35%, 57% { transform: rotate(1.5deg); } 79% { transform: rotate(-3deg); }
}
@keyframes loch-1 { 0%, 12% { opacity: 0; } 13%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes loch-2 { 0%, 34% { opacity: 0; } 35%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes loch-3 { 0%, 56% { opacity: 0; } 57%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes loch-4 { 0%, 78% { opacity: 0; } 79%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ruf-1 { 0%, 12% { opacity: 0; } 14%, 22% { opacity: 1; } 26%, 100% { opacity: 0; } }
@keyframes ruf-2 { 0%, 34% { opacity: 0; } 36%, 44% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes ruf-3 { 0%, 56% { opacity: 0; } 58%, 66% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes ruf-4 { 0%, 78% { opacity: 0; } 80%, 90% { opacity: 1; } 94%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .scheibenbild, .absehen { animation: none; } /* Löcher und Rufe blenden weiter nur ein (Deckkraft) */
}
