/* Ringbuch – Erscheinungsbild
   Autor: Michael Klefisch
   Richtung „Schießstand“: ruhige dunkle Fläche, die Scheibe in ihrem echten Chamois-Ton
   als einziger warmer Blickfang; Signalfarben nur für Werte. Hell für Tageslicht und Druck. */

:root {
  color-scheme: dark;
  --grund: #101418;
  --flaeche: #171d22;
  --flaeche-2: #1e262d;
  --linie: #2b353e;
  --text: #eef1f3;
  --text-2: #b4bec7;
  --text-3: #8794a0;
  --karte: #e8cfa3;      /* Chamois der DSB-Scheibe */
  --karte-linie: #3a3128;
  --spiegel: #121212;
  --akzent: #f0892b;     /* gewählter Schuss */
  --akzent-text: #1b1206;
  --r10: #e5533a;
  --r9: #3987e5;
  --r8: #c98500;
  --gut: #3fae7a;
  --warn: #e3a83a;
  --fehler: #ef6a5b;
  --schatten: 0 1px 2px rgb(0 0 0 / .35), 0 8px 24px rgb(0 0 0 / .25);
  --rund-s: 6px;
  --rund-m: 10px;
  --rund-l: 16px;
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --breite: 1180px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --grund: #f4f2ee;
  --flaeche: #ffffff;
  --flaeche-2: #f0ede7;
  --linie: #dcd6cc;
  --text: #16191c;
  --text-2: #444c54;
  --text-3: #6b737b;
  --akzent: #d9711a;
  --akzent-text: #ffffff;
  --r10: #e0452f;
  --r9: #2a78d6;
  --r8: #eda100;
  --gut: #1f8a57;
  --warn: #a86b00;
  --fehler: #c63b2c;
  --schatten: 0 1px 2px rgb(30 25 15 / .08), 0 6px 20px rgb(30 25 15 / .08);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --grund: #f4f2ee;
    --flaeche: #ffffff;
    --flaeche-2: #f0ede7;
    --linie: #dcd6cc;
    --text: #16191c;
    --text-2: #444c54;
    --text-3: #6b737b;
    --akzent: #d9711a;
    --akzent-text: #ffffff;
    --r10: #e0452f;
    --r9: #2a78d6;
    --r8: #eda100;
    --gut: #1f8a57;
    --warn: #a86b00;
    --fehler: #c63b2c;
    --schatten: 0 1px 2px rgb(30 25 15 / .08), 0 6px 20px rgb(30 25 15 / .08);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 16px/1.45 var(--schrift);
  font-variant-numeric: tabular-nums;
  min-height: 100vh;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 650; }
h3 { font-size: .8rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

/* ---------- Kopfleiste ---------- */
.kopf {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--grund) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linie);
}
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.marke svg { width: 28px; height: 28px; flex: none; }
.marke small { display: block; font-weight: 500; font-size: .72rem; color: var(--text-3); letter-spacing: .02em; }
.kopf nav { display: flex; gap: 4px; margin-left: auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.kopf nav::-webkit-scrollbar { display: none; }
.kopf nav a {
  flex: none; white-space: nowrap;
  text-decoration: none; padding: 8px 12px; border-radius: var(--rund-s); color: var(--text-2); font-size: .95rem;
}
.kopf nav a[aria-current="page"] { color: var(--text); background: var(--flaeche-2); }
.kopf nav a:hover { color: var(--text); }

.unten-nav { display: none; }
@media (max-width: 760px) {
  .kopf nav { display: none; }
  .unten-nav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--flaeche); border-top: 1px solid var(--linie);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .unten-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 4px 9px; text-decoration: none; color: var(--text-3); font-size: .72rem;
  }
  .unten-nav a svg { width: 22px; height: 22px; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
  .unten-nav a { transition: color .25s; }
  .unten-nav a[aria-current="page"] { color: var(--akzent); }
  /* 1.5.5: Die Welle wölbt die Leiste über dem aktiven Punkt und wandert beim Wechsel dorthin */
  .unten-nav a[aria-current="page"] svg { transform: translateY(-7px); }
  .unten-nav .nav-welle {
    position: absolute; top: -14px; width: calc(100% / var(--n, 5)); height: 16px; pointer-events: none; overflow: visible;
    left: calc(var(--i, 0) * 100% / var(--n, 5));
    transition: left .5s cubic-bezier(.3, 1.25, .5, 1), opacity .25s;
  }
  .unten-nav .nav-welle .grund { fill: var(--flaeche); }
  .unten-nav .nav-welle .linie { fill: none; stroke: var(--akzent); stroke-width: 2; stroke-linecap: round; }
  .unten-nav.ohne-welle .nav-welle { opacity: 0; }
  @media (prefers-reduced-motion: reduce) { .unten-nav .nav-welle, .unten-nav a, .unten-nav a svg { transition: none; } }
  main { padding-bottom: 90px !important; }
}

main { max-width: var(--breite); margin: 0 auto; padding: 20px 16px 48px; }

/* ---------- Bausteine ---------- */
.zeile { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.zeile.zwischen { justify-content: space-between; }
.stapel > * + * { margin-top: 16px; }
.leise { color: var(--text-3); }
.klein { font-size: .85rem; }
.feld {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund-m);
  padding: 16px;
}
.feld.eng { padding: 12px; }
.seitenkopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.seitenkopf p { color: var(--text-3); margin-top: 4px; }

button, .knopf {
  appearance: none; font: inherit; font-size: .95rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: var(--rund-s);
  border: 1px solid var(--linie); background: var(--flaeche-2); color: var(--text);
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
button:hover, .knopf:hover { border-color: var(--text-3); }
button.haupt, .knopf.haupt { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
button.haupt:hover, .knopf.haupt:hover { filter: brightness(1.06); }
button.still { background: transparent; border-color: transparent; color: var(--text-2); }
button.still:hover { color: var(--text); background: var(--flaeche-2); }
button.gefahr { color: var(--fehler); }
button:disabled { opacity: .5; cursor: default; }
button svg, .knopf svg { width: 18px; height: 18px; flex: none; }
.symbol { width: 44px; padding: 0; }

label { display: block; font-size: .85rem; color: var(--text-2); font-weight: 550; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; color: var(--text); background: var(--grund);
  border: 1px solid var(--linie); border-radius: var(--rund-s);
  min-height: 44px; padding: 8px 12px;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--akzent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 30%, transparent); }
.formular { display: grid; gap: 14px; }
.formular.zwei { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.formular .ganz { grid-column: 1 / -1; }
.meldung { padding: 10px 12px; border-radius: var(--rund-s); font-size: .92rem; border: 1px solid var(--linie); background: var(--flaeche-2); }
.meldung.fehler { border-color: color-mix(in srgb, var(--fehler) 60%, transparent); color: var(--fehler); }
.meldung.warn { border-color: color-mix(in srgb, var(--warn) 60%, transparent); }
.meldung.gut { border-color: color-mix(in srgb, var(--gut) 60%, transparent); }

.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px;
  border: 1.5px solid var(--linie); background: var(--flaeche-2);
  font-weight: 700; font-size: .9rem; color: var(--text); cursor: pointer;
}
.chip.w10 { border-color: var(--r10); }
.chip.w9 { border-color: var(--r9); }
.chip.w8 { border-color: var(--r8); }
.chip[aria-pressed="true"] { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.chip.zweifel { border-style: dashed; }

.marke-punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; }

/* ---------- Anmeldung ---------- */
.anmeldung { max-width: 420px; margin: 8vh auto 0; }
.anmeldung .feld { padding: 24px; }
.anmeldung h1 { margin-bottom: 6px; }
.anmeldung .einleitung { color: var(--text-3); margin-bottom: 20px; }
.anmeldung .scheibenbild { width: 76px; margin-bottom: 16px; }

/* ---------- Übersicht ---------- */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund-m); overflow: hidden; }
.kennzahlen > div { background: var(--flaeche); padding: 12px 14px; box-shadow: 1px 0 0 var(--linie), 0 1px 0 var(--linie); }
.kennzahlen dt { font-size: .78rem; color: var(--text-3); }
.kennzahlen dd { margin: 2px 0 0; font-size: 1.35rem; font-weight: 700; }
.kennzahlen dd small { font-size: .8rem; font-weight: 500; color: var(--text-3); margin-left: 4px; }

.liste { list-style: none; margin: 0; padding: 0; border: 1px solid var(--linie); border-radius: var(--rund-m); overflow: hidden; background: var(--flaeche); }
.liste > li + li { border-top: 1px solid var(--linie); }
.liste a.eintrag { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; text-decoration: none; }
.liste a.eintrag:hover { background: var(--flaeche-2); }
.eintrag .mini { width: 56px; height: 56px; }
.eintrag .titel { font-weight: 650; }
.eintrag .unter { font-size: .85rem; color: var(--text-3); }
.eintrag .wert { text-align: right; font-weight: 750; font-size: 1.25rem; }
.eintrag .wert small { display: block; font-size: .78rem; font-weight: 500; color: var(--text-3); }
.marker-art { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: var(--flaeche-2); color: var(--text-2); margin-left: 6px; vertical-align: 2px; }
.marker-art.wettkampf { background: color-mix(in srgb, var(--akzent) 22%, transparent); color: var(--akzent); }

.leer { text-align: center; padding: 48px 16px; color: var(--text-3); }
.leer svg { width: 96px; margin-bottom: 12px; }
.leer h2 { color: var(--text); margin-bottom: 6px; }

/* ---------- Auswertung einer Scheibe ---------- */
.auswertung { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .auswertung { grid-template-columns: 1fr; } }
.scheiben-feld { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund-m); padding: 10px; position: relative; }
.scheiben-feld svg.scheibe { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--rund-s); touch-action: none; }
.scheiben-feld .ecke { position: absolute; top: 18px; left: 18px; font-size: .75rem; color: var(--karte-linie); font-weight: 650; pointer-events: none; }
.zoomknopf { display: flex; justify-content: flex-end; align-items: center; gap: 6px; padding: 8px 2px 0; }
.zoomknopf span { margin-right: auto; font-size: .8rem; color: var(--text-3); }
.zoomknopf button { min-height: 36px; width: 40px; padding: 0; }

.schuss-gross { display: flex; align-items: center; gap: 16px; }
.schuss-gross .zahl { font-size: 4rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.schuss-gross .pfeil { width: 44px; height: 44px; color: var(--text-2); transition: transform .2s; }
.schuss-gross .text { color: var(--text-2); }
.schuss-gross .text strong { color: var(--text); display: block; font-size: 1.05rem; }
.hinweis-zweifel { color: var(--fehler); font-size: .88rem; margin-top: 8px; display: flex; gap: 6px; align-items: flex-start; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.foto-vorschau { position: relative; border-radius: var(--rund-s); overflow: hidden; background: #000; }
.foto-vorschau svg { display: block; width: 100%; height: auto; }

.werte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
.werte dt { font-size: .76rem; color: var(--text-3); }
.werte dd { margin: 0; font-weight: 700; font-size: 1.15rem; }
.werte dd small { font-weight: 500; font-size: .78rem; color: var(--text-3); }

.blaettern { display: flex; align-items: center; gap: 6px; }
.blaettern .stand { font-weight: 700; min-width: 64px; text-align: center; }

/* ---------- Einheit ---------- */
.raster-schuesse { display: grid; grid-template-columns: repeat(var(--spalten, 10), minmax(0, 1fr)) minmax(56px, auto); border: 1px solid var(--linie); border-radius: var(--rund-m); overflow: hidden; background: var(--linie); gap: 1px; }
.raster-schuesse > div { background: var(--flaeche); padding: 4px 6px 6px; min-height: 56px; position: relative; }
.raster-schuesse .nr { font-size: .68rem; color: var(--text-3); }
.raster-schuesse .zt { position: absolute; top: 4px; right: 6px; font-size: .68rem; color: var(--text-3); }
.raster-schuesse .rw { display: block; text-align: center; font-size: 1.35rem; font-weight: 750; margin-top: 2px; }
.raster-schuesse .summe { background: var(--flaeche-2); }
.raster-schuesse .summe .rw { color: var(--text); }
.raster-schuesse button { all: unset; display: block; width: 100%; cursor: pointer; }
@media (max-width: 640px) {
  .raster-schuesse { grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(52px, auto); }
}

.scheibenreihe { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.scheibenkachel { display: block; text-decoration: none; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund-m); padding: 8px; }
.scheibenkachel:hover { border-color: var(--text-3); }
.scheibenkachel svg { display: block; width: 100%; height: auto; border-radius: 4px; }
.scheibenkachel .unter { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 4px 0; font-size: .85rem; }
.scheibenkachel .unter strong { font-size: 1.05rem; }

/* ---------- Erfassen ---------- */
.erfassen-wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.wahl { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; min-height: 0; padding: 18px; border-radius: var(--rund-m); background: var(--flaeche); white-space: normal; }
.wahl svg { width: 28px; height: 28px; color: var(--akzent); }
.wahl strong { font-size: 1.05rem; }
.wahl span { font-weight: 450; color: var(--text-3); font-size: .9rem; }

.warteliste { display: grid; gap: 10px; }
.erfasst { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; align-items: center; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund-m); padding: 10px; }
.erfasst img, .erfasst .platz { width: 88px; height: 88px; object-fit: cover; border-radius: var(--rund-s); background: var(--flaeche-2); display: block; }
.erfasst .titel { font-weight: 650; }
.erfasst .summe { font-size: 1.6rem; font-weight: 800; text-align: right; }
.erfasst .summe small { display: block; font-size: .75rem; font-weight: 500; color: var(--text-3); }
.erfasst.problem { border-color: color-mix(in srgb, var(--warn) 55%, var(--linie)); }
.nummer-eingabe { width: 9.5em; display: inline-block; margin: 0 0 0 6px; min-height: 34px; padding: 4px 8px; font-weight: 650; letter-spacing: .04em; }

/* Kamera */
.kamera { position: fixed; inset: 0; z-index: 50; background: #000; display: flex; flex-direction: column; }
.kamera video { flex: 1; width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.kamera .rahmen { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; }
.kamera .rahmen svg { width: min(86vw, 70vh); height: auto; }
.kamera .leiste { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px calc(24px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgb(0 0 0 / .7)); color: #fff; }
.kamera .ausloeser { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff; background: rgb(255 255 255 / .2); padding: 0; min-height: 0; }
.kamera .ausloeser:active { background: rgb(255 255 255 / .6); }
.kamera .leiste button.still { color: #fff; }
.kamera .tipp { position: absolute; top: calc(16px + env(safe-area-inset-top)); left: 16px; right: 16px; text-align: center; color: #fff; font-size: .92rem; text-shadow: 0 1px 3px #000; }
.kamera .zaehler { min-width: 88px; text-align: right; font-weight: 700; }
.blitz { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 60; transition: opacity .25s; }
.blitz.an { opacity: .7; transition: none; }

/* Prüf-Editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 860px) { .editor { grid-template-columns: 1fr; } }
.editor-flaeche { background: #000; border-radius: var(--rund-m); overflow: hidden; position: relative; }
.editor-flaeche svg { display: block; width: 100%; height: auto; max-height: 78vh; touch-action: none; user-select: none; -webkit-user-select: none; }
.werkzeuge { display: flex; flex-wrap: wrap; gap: 6px; }
.werkzeuge button[aria-pressed="true"] { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.schubsen { display: grid; grid-template-columns: repeat(3, 44px); gap: 4px; justify-content: start; }
.schubsen button { padding: 0; }

/* Tabelle */
.tabelle { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabelle th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--linie); }
.tabelle td { padding: 10px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle .zahl { text-align: right; }
.tabelle-huelle { overflow-x: auto; border: 1px solid var(--linie); border-radius: var(--rund-m); background: var(--flaeche); }

/* Diagramme */
.diagramme { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.diagramm { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund-m); padding: 14px 14px 8px; position: relative; }
.diagramm .kopfzeile { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.diagramm .kopfzeile strong { font-size: .95rem; }
.diagramm .kopfzeile span { color: var(--text-3); font-size: .82rem; }
.diagramm svg { display: block; width: 100%; height: auto; overflow: visible; }
.diagramm svg.waerme { overflow: hidden; border-radius: var(--rund-s); max-width: 420px; margin: 0 auto; }
.diagramm .achse { stroke: var(--linie); }
.diagramm .gitter { stroke: var(--linie); stroke-dasharray: 2 4; }
.diagramm .achstext { fill: var(--text-3); font-size: 11px; }
.diagramm .linie { fill: none; stroke: var(--r9); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.diagramm .punkt { fill: var(--r9); stroke: var(--flaeche); stroke-width: 2; }
.diagramm .balken { fill: var(--r9); }
.diagramm .ziel { fill: transparent; cursor: crosshair; }
.tooltip { position: absolute; pointer-events: none; background: var(--text); color: var(--grund); font-size: .8rem; padding: 6px 8px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); z-index: 5; }
.filterleiste { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.filterleiste button[aria-pressed="true"] { background: var(--text); color: var(--grund); border-color: var(--text); }

/* Hinweisleiste */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--grund); padding: 10px 16px; border-radius: 999px; font-size: .92rem; z-index: 70; box-shadow: var(--schatten); }
@media (max-width: 760px) { .toast { bottom: 84px; } }

.lade { display: inline-block; width: 18px; height: 18px; border: 2.5px solid var(--linie); border-top-color: var(--akzent); border-radius: 50%; animation: drehen .8s linear infinite; vertical-align: -3px; }
@keyframes drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lade { animation-duration: 3s; } .schuss-gross .pfeil { transition: none; } }

.fuss { max-width: var(--breite); margin: 0 auto; padding: 8px 16px 32px; color: var(--text-3); font-size: .8rem; display: flex; gap: 16px; flex-wrap: wrap; }
.fuss a { color: var(--text-3); }

/* ---------- Bericht (Druck, immer hell) ---------- */
.bericht {
  --b-text: #16191c; --b-leise: #5d646b; --b-linie: #cfc9bf;
  background: #fff; color: var(--b-text); max-width: 210mm; margin: 0 auto; padding: 14mm 14mm 10mm;
  border-radius: var(--rund-m); box-shadow: var(--schatten);
}
.bericht h1 { font-size: 22pt; }
.bericht .b-kopf { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--b-text); padding-bottom: 8px; margin-bottom: 10px; }
.bericht .b-kopf p { color: var(--b-leise); }
.bericht .b-ergebnis { display: grid; grid-template-columns: auto 1fr; gap: 4px 24px; align-items: baseline; margin-bottom: 10px; }
.bericht .b-ringe { font-size: 40pt; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.bericht .b-ringe small { font-size: 12pt; font-weight: 600; color: var(--b-leise); margin-left: 4px; }
.bericht .b-fakten { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 10.5pt; }
.bericht .b-fakten b { font-weight: 700; }
.bericht .raster-schuesse { --flaeche: #fff; --flaeche-2: #f3efe8; --linie: var(--b-linie); --text: var(--b-text); --text-3: var(--b-leise); border-radius: 4px; }
.bericht .raster-schuesse > div { min-height: 13mm; }
.bericht .b-bilder { display: grid; grid-template-columns: 78mm 1fr; gap: 6mm; margin-top: 6mm; align-items: start; }
.bericht .b-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3mm; }
.bericht .b-mini figure { margin: 0; text-align: center; font-size: 8.5pt; color: var(--b-leise); }
.bericht .b-mini svg, .bericht .b-gesamt svg { width: 100%; height: auto; display: block; }
.bericht .b-gesamt figcaption { text-align: center; font-size: 9pt; color: var(--b-leise); margin-top: 2mm; }
.bericht .b-legende { display: flex; gap: 14px; font-size: 9pt; color: var(--b-leise); margin: 5mm 0 2mm; }
.bericht .b-fuss { display: flex; justify-content: space-between; margin-top: 8mm; font-size: 8pt; color: var(--b-leise); border-top: 1px solid var(--b-linie); padding-top: 3mm; }
.bericht .b-hinweis { font-size: 8.5pt; color: var(--b-leise); margin-top: 3mm; }
.bericht h2 { font-size: 11pt; margin: 5mm 0 2mm; }

/* ---------- Ergänzungen 1.1: Disziplinen, Analyse, Schießbuch ---------- */
fieldset { border: 1px solid var(--linie); border-radius: var(--rund-m); padding: 12px 14px 14px; margin: 0; min-width: 0; }
legend { font-size: .8rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 0 6px; }
.gross-zahl { font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.gross-zahl span { font-size: 1rem; font-weight: 600; color: var(--text-3); margin-left: 8px; letter-spacing: 0; }
.teil-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 26px 0 10px; padding-top: 14px; border-top: 1px solid var(--linie); }
.teil-kopf span { color: var(--text-3); font-size: .88rem; }
.werte.teil-summen dd { font-size: 1.5rem; }
.werte dd small.darunter { display: block; margin-top: -2px; }
@media (max-width: 640px) { .filterleiste { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px; } .filterleiste::-webkit-scrollbar { display: none; } .filterleiste button { flex: none; } }
.werte.zwei-spalten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.werte dd.klein { font-size: .95rem; font-weight: 600; line-height: 1.3; }
.marker-art.bestaetigt { background: color-mix(in srgb, var(--gut) 20%, transparent); color: var(--gut); }
.marker-art svg { width: 11px; height: 11px; vertical-align: -1px; }
.mini-buch { width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--rund-s); background: var(--flaeche-2); color: var(--text-3); }
.mini-buch svg { width: 26px; height: 26px; }
.kachel-link { display: block; text-decoration: none; }
.status { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; margin-top: 4px; }
.status svg { width: 13px; height: 13px; }
.status.gut { color: var(--gut); background: color-mix(in srgb, var(--gut) 16%, transparent); }
.status.offen { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); }
.diagramm .kopfzeile .status { margin-top: 0; white-space: nowrap; flex: none; }
.diagramm .kopfzeile { gap: 10px; }
@media (max-width: 640px) {
  .erfassen-wahl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wahl { padding: 12px; gap: 4px; }
  .wahl svg { width: 22px; height: 22px; }
  .wahl strong { font-size: .95rem; line-height: 1.2; }
  .wahl span { font-size: .78rem; line-height: 1.3; }
}
.diagramm .linie.mittel { stroke: var(--akzent); stroke-width: 2.5; stroke-dasharray: 6 4; }
.strich-mittel { display: inline-block; width: 16px; border-top: 2.5px dashed var(--akzent); vertical-align: 3px; }
.diagramm svg.scheibe.klein { max-width: 300px; margin: 0 auto; border-radius: var(--rund-s); overflow: hidden; }
.diagramm svg.rose { max-width: 260px; margin: 4px auto; }
.diagramm svg.rose .gitter { fill: none; }
.diagramm svg.rose .achstext { font-size: 7.5px; }
.streu-feld { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.streu-feld .werte { grid-template-columns: 1fr; gap: 8px; }
@media (max-width: 420px) { .streu-feld { grid-template-columns: 1fr; } .streu-feld .werte { grid-template-columns: repeat(2, 1fr); } }
.verlust-balken { display: flex; height: 18px; border-radius: 4px; overflow: hidden; background: var(--flaeche-2); gap: 2px; margin: 6px 0 10px; }
.verlust-balken span { display: block; height: 100%; }
.verlust-balken .lage, .punkt.lage { background: var(--r9); }
.verlust-balken .streu, .punkt.streu { background: var(--r8); }
.verlust-werte { display: flex; gap: 24px; margin: 0; }
.verlust-werte dt { font-size: .8rem; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.verlust-werte dd { margin: 0; font-size: 1.5rem; font-weight: 750; }
i.punkt { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.tabelle.vergleich td, .tabelle.vergleich th { padding: 7px 8px; }
.tabelle.vergleich tbody th { text-transform: none; letter-spacing: 0; font-size: .85rem; color: var(--text-2); font-weight: 550; }
.bestaetigung { display: flex; gap: 14px; align-items: center; padding: 10px; border: 1px solid color-mix(in srgb, var(--gut) 45%, var(--linie)); border-radius: var(--rund-m); background: var(--flaeche-2); }
.bestaetigung img { width: 150px; height: 50px; object-fit: contain; background: #fff; border-radius: 4px; flex: none; }
.bestaetigung strong { display: flex; align-items: center; gap: 4px; color: var(--gut); }
.bestaetigung span { display: block; }
canvas.unterschrift { display: block; width: 100%; aspect-ratio: 3 / 1; background: #fff; border: 2px dashed var(--linie); border-radius: var(--rund-m); touch-action: none; cursor: crosshair; }
.eingabe-tasten { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 12px; align-items: start; }
@media (max-width: 560px) { .eingabe-tasten { grid-template-columns: 1fr; } }
.pfeilblock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pfeilblock button { padding: 0; font-size: 1.35rem; min-height: 52px; }
.ziffernblock { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ziffernblock button { padding: 0; font-size: 1.15rem; min-height: 52px; }
@media (max-width: 480px) { .ziffernblock { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.monate { display: grid; grid-template-columns: repeat(var(--n, 12), minmax(0, 1fr)); gap: 3px; margin-top: 10px; }
.monate > div.teil { opacity: .55; }
.monate.quartale { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.monate > div { border-radius: 4px; padding: 4px 2px; text-align: center; background: var(--flaeche-2); border: 1px solid var(--linie); }
.monate > div.belegt { background: color-mix(in srgb, var(--gut) 22%, var(--flaeche)); border-color: color-mix(in srgb, var(--gut) 50%, var(--linie)); }
.monate > div.leer { border-style: dashed; }
.monate span { display: block; font-size: .62rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: clip; }
.monate b { display: block; font-size: .95rem; }
@media (max-width: 560px) { .monate { grid-template-columns: repeat(var(--n-schmal, 6), minmax(0, 1fr)); } .monate.quartale { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Schießbuch-Blatt (Bildschirm und Druck) */
.schiessbuch-blatt { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund-m); padding: 16px; }
.sb-kopf { display: grid; gap: 12px; margin-bottom: 14px; }
.sb-kopf h1 { font-size: 1.25rem; }
.sb-kopf p { color: var(--text-3); margin-top: 2px; font-size: .9rem; }
.sb-person { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 45%), 1fr)); gap: 6px 16px; margin: 0; }
.sb-person dt { font-size: .72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.sb-person dd { margin: 0; font-weight: 600; }
.tabelle.schiessbuch td { vertical-align: top; }
.tabelle.schiessbuch .aufsicht { min-width: 150px; }
.tabelle.schiessbuch .aufsicht img { width: 130px; height: 43px; object-fit: contain; background: #fff; border-radius: 3px; display: block; }
.unterschrift-feld { height: 30px; border-bottom: 1px solid var(--text-3); min-width: 130px; }
.sb-zusammenfassung { margin-top: 14px; display: grid; gap: 6px; font-size: .92rem; }
.sb-verein { margin-top: 18px; }
.sb-felder { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 16px; margin-top: 26px; }
.sb-felder div { border-top: 1px solid var(--text-3); padding-top: 4px; font-size: .78rem; color: var(--text-3); min-height: 48px; }
.schiessbuch-blatt .b-fuss { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: .78rem; color: var(--text-3); border-top: 1px solid var(--linie); padding-top: 8px; }
@media (max-width: 700px) {
  .tabelle.schiessbuch thead { display: none; }
  .tabelle.schiessbuch, .tabelle.schiessbuch tbody, .tabelle.schiessbuch tr, .tabelle.schiessbuch td { display: block; width: 100%; }
  .tabelle.schiessbuch tr { padding: 10px 12px; border-bottom: 1px solid var(--linie); display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .tabelle.schiessbuch td { border: 0; padding: 0; text-align: left; }
  .tabelle.schiessbuch td::before { content: attr(data-k); display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
  .tabelle.schiessbuch td.zahl { text-align: left; }
  .tabelle.schiessbuch td[data-k="Disziplin"], .tabelle.schiessbuch td[data-k="Waffe"], .tabelle.schiessbuch td.aufsicht { grid-column: 1 / -1; }
  .sb-felder { grid-template-columns: 1fr; }
}
.bericht .b-teil { font-size: 12pt; margin: 6mm 0 2mm; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bericht .b-teil span { font-size: 9pt; font-weight: 500; color: var(--b-leise); }
.bericht .b-bestaetigung { display: flex; align-items: center; gap: 4mm; margin-top: 4mm; font-size: 9pt; color: var(--b-leise); }
.bericht .b-bestaetigung img { width: 45mm; height: 15mm; object-fit: contain; }
@media (max-width: 640px) {
  .bericht { padding: 16px 12px; }
  .bericht .b-kopf { flex-direction: column; }
  .bericht .b-kopf > div:last-child { text-align: left !important; }
  .bericht .b-bilder { grid-template-columns: 1fr; }
  .bericht .b-mini { grid-template-columns: repeat(3, 1fr); }
  .bericht h1 { font-size: 1.35rem; }
  .bericht .b-ringe { font-size: 2.6rem; }
  .bericht .b-ergebnis { grid-template-columns: 1fr; }
  .bericht .b-legende { flex-wrap: wrap; }
}

@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff; }
  .kopf, .unten-nav, .fuss, .nicht-drucken, .toast { display: none !important; }
  main { padding: 0; max-width: none; }
  .bericht { box-shadow: none; border-radius: 0; padding: 0; max-width: none; }
  .schiessbuch-blatt { border: 0; padding: 0; background: #fff; color: #16191c;
    --flaeche: #fff; --flaeche-2: #f3efe8; --linie: #cfc9bf; --text: #16191c; --text-2: #333; --text-3: #5d646b; }
  .schiessbuch-blatt .tabelle-huelle { border: 0; overflow: visible; }
  .tabelle.schiessbuch { font-size: 8.5pt; }
  .tabelle.schiessbuch th, .tabelle.schiessbuch td { padding: 4px 5px; }
  .tabelle.schiessbuch tr { break-inside: avoid; }
  .tabelle.schiessbuch a { text-decoration: none; }
  .sb-verein { break-inside: avoid; }
}

/* Auswahl Präzision / Duell als Segmentschalter */
.segment { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: var(--rund-m); margin: 4px 0 14px; max-width: 520px; }
.segment button { border: 0; background: transparent; min-height: 46px; flex-direction: column; gap: 0; line-height: 1.15; }
.segment button span { font-size: .75rem; font-weight: 500; color: var(--text-3); }
.segment button[aria-pressed="true"] { background: var(--flaeche); box-shadow: var(--schatten); color: var(--text); outline: 2px solid var(--akzent); outline-offset: -2px; }

/* Einladung und Rangliste */
.einladung { display: grid; gap: 8px; }
.einladung:empty { display: none; }
.einladung .code { font-size: 1.6rem; font-weight: 800; letter-spacing: .1em; }
.rangliste-blatt { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund-m); padding: 16px; }
.tabelle.rangliste td { vertical-align: top; }
.tabelle.rangliste .platz { font-size: 1.25rem; font-weight: 800; width: 56px; }
.tabelle.rangliste .ergebnis b { font-size: 1.3rem; }
.tabelle.rangliste tr.ich td { background: color-mix(in srgb, var(--akzent) 10%, transparent); }
.rangliste-blatt .b-fuss { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: .78rem; color: var(--text-3); border-top: 1px solid var(--linie); padding-top: 8px; }
@media (max-width: 640px) {
  .tabelle.rangliste thead { display: none; }
  .tabelle.rangliste, .tabelle.rangliste tbody { display: block; }
  .tabelle.rangliste tr { display: grid; grid-template-columns: 44px 1fr auto; gap: 2px 10px; padding: 10px 12px; border-bottom: 1px solid var(--linie); }
  .tabelle.rangliste td { border: 0; padding: 0; }
  .tabelle.rangliste td[data-k="Platz"] { grid-row: span 2; width: auto; font-size: 1.15rem; }
  .tabelle.rangliste tr.ich { background: color-mix(in srgb, var(--akzent) 10%, transparent); }
  .tabelle.rangliste tr.ich td { background: none; }
  .tabelle.rangliste td[data-k="Ergebnis"] { grid-column: 3; grid-row: 1 / span 2; text-align: right; }
  .tabelle.rangliste td[data-k="Serien"], .tabelle.rangliste td[data-k="Teile"] { grid-column: 2; }
  .tabelle.rangliste td[data-k="Innenzehner"] { display: none; }
  .tabelle.rangliste td.nicht-drucken { grid-column: 2 / -1; }
}
@media print {
  .rangliste-blatt { border: 0; padding: 0; background: #fff; color: #16191c; --flaeche: #fff; --linie: #cfc9bf; --text: #16191c; --text-3: #5d646b; }
  .tabelle.rangliste tr.ich td { background: none; }
}

/* ---------- Ergänzungen 1.3 ---------- */
/* Serienuhr */
.uhr { display: grid; justify-items: center; gap: 14px; padding: 24px 16px; }
.uhr-kreis { width: min(72vw, 300px); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; color: #fff; transition: background .15s; }
.uhr-kreis span { font-size: clamp(4rem, 22vw, 7rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.uhr-kreis small { font-size: 1.05rem; font-weight: 650; opacity: .9; margin-top: 4px; }
.uhr-kreis.warten { background: #b3261e; }
.uhr-kreis.frei { background: #1f8a57; }
@media (prefers-reduced-motion: reduce) { .uhr-kreis { transition: none; } }

/* Standaufsicht */
.aufsicht-liste li + li { border-top: 1px solid var(--linie); }
.aufsicht-zeile { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; font-size: .95rem; color: var(--text); font-weight: 500; cursor: pointer; }
.aufsicht-zeile input { width: 22px; height: 22px; min-height: 0; margin: 0; }

/* Kommentare */
.kommentar-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kommentar-liste li { border-left: 3px solid var(--akzent); padding: 4px 0 4px 12px; }
.kommentar-liste p { margin-top: 4px; }

/* Ziele */
.ziel-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ziel-balken { height: 10px; border-radius: 5px; background: var(--flaeche-2); overflow: hidden; margin: 6px 0 4px; border: 1px solid var(--linie); }
.ziel-balken span { display: block; height: 100%; background: var(--gut); border-radius: 5px; }
.ziele-kurz { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; margin-bottom: 20px; }
.ziel-kachel { display: block; text-decoration: none; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund-m); padding: 10px 12px; }
.ziel-kachel svg { width: 13px; height: 13px; vertical-align: -1px; color: var(--gut); }

/* Wettkampf: Klassen */
.klassen-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; }
.klassen-wahl label { display: flex; gap: 6px; align-items: center; font-weight: 500; color: var(--text); }
.klassen-wahl input { width: auto; min-height: 0; margin: 0; }
/* Wochenübersicht: am Handy stehen Schuss und Schnitt unter der Disziplin, damit die Ringe sichtbar bleiben */
.tabelle.woche .sp-schmal { display: none; }
@media (max-width: 640px) {
  .tabelle.woche .sp-breit { display: none; }
  .tabelle.woche .sp-schmal { display: block; margin-top: 2px; }
  .tabelle.woche td, .tabelle.woche th { padding: 8px; }
}
@media print { .tabelle.woche .sp-breit { display: table-cell; } .tabelle.woche .sp-schmal { display: none; } }
.klasse-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 18px 0 8px; font-size: 1.05rem; }
.klasse-kopf span { font-size: .82rem; font-weight: 500; color: var(--text-3); }

/* Urkunde: je eine A4-Seite */
.urkunde { background: #fff; color: #16191c; max-width: 190mm; margin: 0 auto 24px; padding: 28mm 20mm; text-align: center; border: 6px double #b9a27a; border-radius: 4px; box-shadow: var(--schatten); }
.urkunde h1 { font-size: 40pt; letter-spacing: .14em; text-transform: uppercase; margin: 10mm 0 8mm; font-weight: 800; }
.urkunde .u-verein { font-size: 13pt; letter-spacing: .08em; text-transform: uppercase; color: #6b5a3a; }
.urkunde .u-text { font-size: 13pt; margin: 3mm 0; color: #333; }
.urkunde .u-name { font-size: 28pt; font-weight: 750; margin: 4mm 0 8mm; }
.urkunde .u-titel { font-size: 17pt; font-weight: 650; margin: 3mm 0; }
.urkunde .u-platz { font-size: 30pt; font-weight: 800; margin: 10mm 0 2mm; color: #8a6a1f; }
.urkunde .u-datum { margin-top: 12mm; font-size: 11pt; color: #555; }
.urkunde .u-unterschriften { display: grid; grid-template-columns: 1fr 1fr; gap: 20mm; margin-top: 26mm; }
.urkunde .u-unterschriften span { border-top: 1px solid #555; padding-top: 2mm; font-size: 10pt; color: #555; }
@media (max-width: 640px) { .urkunde { padding: 16mm 8mm; } .urkunde h1 { font-size: 26pt; } .urkunde .u-name { font-size: 20pt; } }

@media print {
  .urkunde { box-shadow: none; margin: 0; max-width: none; min-height: 270mm; break-after: page; page-break-after: always; }
  .urkunde:last-of-type { break-after: auto; }
  .aushang .tabelle.rangliste { font-size: 12pt; }
  .aushang .tabelle.rangliste .platz { font-size: 16pt; }
  .erinnerung, .ziele-kurz { display: none !important; }
}

/* ---------- ab 1.4: Verein, Termine, Bestenliste, Profilbild, Flamme ---------- */
@media (max-width: 760px) {
  .unten-nav.sechs { grid-template-columns: repeat(6, 1fr); }
  .unten-nav.sechs a { font-size: .66rem; padding-left: 1px; padding-right: 1px; }
}
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.avatar { border-radius: 50%; flex: none; object-fit: cover; vertical-align: middle; background: var(--flaeche-2); }
.logo { object-fit: contain; vertical-align: middle; }
.person { display: inline-flex; align-items: center; gap: 8px; }
.personen { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.personen li { display: flex; align-items: center; gap: 10px; }
.personen.wahl-liste li { justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--linie); }
.personen.wahl-liste label { display: flex; align-items: center; gap: 8px; flex: 1; font-weight: 500; }
.personen.wahl-liste input[type=checkbox] { width: auto; min-height: 0; margin: 0; }
.personen.wahl-liste select { width: auto; min-height: 36px; padding-top: 4px; padding-bottom: 4px; }
label.haken { display: flex; gap: 8px; align-items: flex-start; }
label.haken input { width: auto; min-height: 0; margin: 3px 0 0; }
label.haken span { font-weight: 450; }
.feldersatz { display: block; padding: 10px 0 4px; font-weight: 450; }
.flamme { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.flamme svg { width: 1.05em; height: 1.05em; }
.flamme b { font-weight: 750; }
.flamme.aus { color: var(--text-3); }
.flammen-reihe { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.flammen-reihe .flamme { padding: 2px 8px; border-radius: 999px; border: 1px solid transparent; }
.flammen-reihe .flamme.ist { border-color: var(--linie); background: var(--flaeche-2); font-weight: 650; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 8px; }
.kachel { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--linie); border-radius: var(--rund-m); background: var(--flaeche); text-decoration: none; }
.kachel:hover { background: var(--flaeche-2); }
.kachel svg { width: 26px; height: 26px; color: var(--akzent); }
.kachel strong { font-size: 1.02rem; }
.kachel span { color: var(--text-3); font-size: .86rem; }
.start-leiste { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.start-karte { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1px solid var(--linie); border-radius: var(--rund-m); background: var(--flaeche); text-decoration: none; min-width: 150px; flex: 1 1 150px; max-width: 320px; }
.start-karte:hover { background: var(--flaeche-2); }
.start-karte .flamme { font-size: 1.25rem; }
.chip { display: inline-block; font-size: .74rem; font-weight: 650; padding: 1px 8px; border-radius: 999px; align-self: flex-start; }
.chip.eingeplant { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); }
.chip.zugesagt { color: var(--gut); background: color-mix(in srgb, var(--gut) 16%, transparent); }
.chip.abgesagt { color: var(--text-3); background: var(--flaeche-2); text-decoration: line-through; }
.marker-art.training { background: var(--flaeche-2); color: var(--text-2); }
.marker-art.laser { background: color-mix(in srgb, var(--r10) 16%, transparent); color: var(--r10); }
.liste a.eintrag.termin { grid-template-columns: 52px 1fr; }
.datum-block { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--rund-m); background: var(--flaeche-2); line-height: 1.1; }
.datum-block b { font-size: 1.3rem; }
.datum-block span { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
.werte.termin-werte { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.werte.termin-werte dd { font-size: 1rem; font-weight: 600; }
.verein-karte { padding: 12px 0; border-bottom: 1px solid var(--linie); display: grid; gap: 8px; }
.verein-karte:last-of-type { border-bottom: 0; }
.verein-karte .klassen-wahl { margin-top: 8px; }
.avatar-wahl { display: flex; flex-wrap: wrap; gap: 6px; }
.avatar-wahl button { padding: 4px; min-height: 0; border-radius: 50%; border: 2px solid transparent; background: none; }
.avatar-wahl button.ist { border-color: var(--akzent); }
.liste.aufgaben li.aufgabe { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.liste.aufgaben li.erledigt b { font-weight: 500; color: var(--text-3); text-decoration: line-through; }
.tabelle.bestenliste .platz { width: 54px; font-weight: 750; }
.tabelle.bestenliste tr.ich td { background: color-mix(in srgb, var(--akzent) 10%, transparent); }
.tabelle.bestenliste .sp-schmal { display: none; }
@media (max-width: 640px) {
  .tabelle.bestenliste .sp-breit { display: none; }
  .tabelle.bestenliste .sp-schmal { display: block; }
  .tabelle.bestenliste td, .tabelle.bestenliste th { padding: 8px; }
  .tabelle.bestenliste .platz { width: 34px; }
}
.jahrzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.jahrzahlen > div { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund-m); padding: 12px 14px; display: flex; flex-direction: column; }
.jahrzahlen b { font-size: 1.7rem; font-weight: 750; line-height: 1.15; }
.jahrzahlen span { color: var(--text-2); font-size: .88rem; }
.jahrzahlen small { color: var(--text-3); font-size: .76rem; }
.monatsbalken { width: 100%; border-collapse: collapse; font-size: .88rem; }
.monatsbalken th { text-align: left; font-weight: 500; color: var(--text-3); width: 44px; padding: 3px 0; }
.monatsbalken td { padding: 3px 0; }
.monatsbalken td.zahl { text-align: right; width: 64px; font-variant-numeric: tabular-nums; }
.monatsbalken .balken { display: block; height: 14px; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--akzent); }
.urkunde .logo { display: block; margin: 0 auto 6mm; }
@media print { .kacheln, .start-leiste { display: none; } }
#inhalt > .feld + .feld, #inhalt > .feld + .liste, #inhalt > .liste + .feld, #inhalt > .kacheln + .feld { margin-top: 16px; }

/* Station (Lasertraining): Scheibe so groß, wie der Bildschirm hergibt; Werte daneben oder darunter */
.station-flaeche { display: grid; gap: 16px; }
#st-arbeit { scroll-margin-top: 88px; }
/* hochkant bleibt unter der Scheibe Platz für Werte und Knöpfe, quer stehen sie daneben */
.station-scheibe { width: 100%; max-width: min(100%, 60vh); margin-inline: auto; }
.station-scheibe svg.scheibe { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--rund-s); }
.station-gross { font-size: 2.6rem; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.station-gross span { font-size: 1rem; font-weight: 600; color: var(--text-2); }
@media (min-width: 900px) and (orientation: landscape) {
  .station-flaeche { grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); align-items: start; }
  .station-scheibe { max-width: min(100%, 100vh - 150px); }
}

/* Lasertraining an der Station: Live-Anzeige, Serien, Schussliste */
.station-leiste { display: grid; gap: 10px; }
.station-leiste #st-stand { font-size: .9rem; color: var(--text-2); }
.station-leiste #st-stand.meldung { padding: 6px 10px; }
.station-links { display: grid; gap: 10px; min-width: 0; }
.station-start { font-size: 1.05rem; padding: 14px 20px; }
.station-titel { margin: 4px 0 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 650; }
.station-live { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.station-live > div:first-child dd { font-size: 2.1rem; line-height: 1.05; }
.station-live dd { font-variant-numeric: tabular-nums; }
.station-blaettern, .blaettern { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: .92rem; text-align: center; }
.station-blaettern button, .blaettern button { min-width: 44px; min-height: 44px; font-size: 1.3rem; line-height: 1; padding: 0; }
.serienblick .blaettern { margin-bottom: 8px; }
.station-serien { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.station-serien button { display: grid; gap: 3px; padding: 8px 6px; text-align: left; font-size: .78rem; color: var(--text-3); min-height: 0; }
.station-serien button b { font-size: 1.1rem; color: var(--text); font-variant-numeric: tabular-nums; }
.station-serien button[aria-pressed="true"] { border-color: var(--akzent); box-shadow: inset 0 0 0 1px var(--akzent); }
.station-serien button:disabled { opacity: .55; }
.balken { display: block; height: 6px; border-radius: 3px; background: var(--flaeche-2); overflow: hidden; }
.balken i { display: block; height: 100%; background: var(--akzent); border-radius: 3px; }
.balken i.w10 { background: var(--r10); } .balken i.w9 { background: var(--r9); } .balken i.w8 { background: var(--r8); }
.station-schuesse { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; font-size: .92rem; font-variant-numeric: tabular-nums; }
.station-schuesse li { display: grid; grid-template-columns: 26px 48px 1fr; align-items: baseline; padding: 5px 0; border-bottom: 1px solid var(--linie); }
.station-schuesse .nr { color: var(--text-3); font-size: .8rem; }
.station-schuesse li span:last-child { color: var(--text-2); text-align: right; }
.station-unten { display: grid; gap: 16px; margin-top: 4px; }
.station-unten > div { display: grid; gap: 8px; min-width: 0; align-content: start; }
.tabelle.station-karte { font-variant-numeric: tabular-nums; }
.tabelle.station-karte td, .tabelle.station-karte th { padding: 7px 8px; }
.tabelle.station-karte tbody th { color: var(--text-2); }
.tabelle.station-karte tr.probe td, .tabelle.station-karte tr.probe th { color: var(--text-3); font-style: italic; }
.tabelle.station-karte tr.aktiv td, .tabelle.station-karte tr.aktiv th { background: color-mix(in srgb, var(--akzent) 10%, transparent); }
.station-verteilung { display: grid; gap: 5px; font-size: .88rem; font-variant-numeric: tabular-nums; }
.station-verteilung > div { display: grid; grid-template-columns: 44px 1fr 28px; align-items: center; gap: 8px; }
.station-verteilung .balken { height: 12px; }
.station-verteilung b { text-align: right; }
.kb-sicht canvas { display: block; width: 100%; max-width: 480px; height: auto; border-radius: var(--rund-m); background: #000; }
.kb-dz { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.kb-dz select { width: auto; min-height: 40px; max-width: 240px; }
.station-null { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--linie); }
.station-null .segment { margin: 2px 0 4px; max-width: 620px; grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.station-null .segment button { min-width: 0; white-space: normal; padding: 6px 4px; text-align: center; }
@media (max-width: 480px) { .station-null .segment button { font-size: .86rem; } .station-null .segment button span { font-size: .7rem; } }
.station-null .segment button:disabled { opacity: .5; }
/* 1.5.1: ohne neues Einschießen starten */
.station-ohne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; max-width: 760px; margin-top: 6px; }
.station-ohne span { flex: 1 1 260px; }
label.haken { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
label.haken input { width: 20px; height: 20px; flex: none; }
@media (min-width: 900px) { .station-unten { grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); } }
@media (min-width: 900px) and (orientation: landscape) { .station-flaeche { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); } .station-scheibe { max-width: min(100%, 100vh - 210px); } }

/* ---------- 1.5.0: Auswertung je Serie (vergrößertes Trefferbild, Lage, Streuung, Zeiten) ---------- */
.serienkarten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 12px; }
.serienkarte { display: grid; grid-template-columns: minmax(96px, 132px) minmax(0, 1fr); gap: 14px; align-items: start; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund-m); padding: 12px; break-inside: avoid; }
.serienkarte .sk-bild svg { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--rund-s); }
.serienkarte .sk-text { display: grid; gap: 8px; min-width: 0; }
.serienkarte .sk-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; }
.serienkarte .sk-kopf span { color: var(--text-2); font-size: .88rem; }
.serienkarte .sk-kopf span b { font-size: 1.15rem; color: var(--text); font-variant-numeric: tabular-nums; }
.serienkarte .sk-schuesse { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 9px; font-variant-numeric: tabular-nums; font-size: .92rem; font-weight: 600; }
.serienkarte .sk-schuesse .w10 { color: var(--r10); } .serienkarte .sk-schuesse .w9 { color: var(--r9); } .serienkarte .sk-schuesse .w8 { color: var(--r8); }
.serienkarte .sk-werte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; margin: 0; }
.serienkarte .sk-werte .breit { grid-column: 1 / -1; }
.serienkarte .sk-werte dt { font-size: .72rem; color: var(--text-3); }
.serienkarte .sk-werte dd { margin: 0; font-size: .9rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.bericht .serienkarten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3mm; margin-top: 5mm; }
.bericht .serienkarte { --flaeche: #fff; --linie: var(--b-linie); --text: var(--b-text); --text-2: var(--b-text); --text-3: var(--b-leise); grid-template-columns: 30mm minmax(0, 1fr); gap: 3mm; padding: 2.5mm; border-radius: 4px; font-size: 9pt; }
@media (max-width: 640px) { .bericht .serienkarten { grid-template-columns: 1fr; } }
@media print { .bericht .serienkarten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* schmal: Werte über die ganze Breite der Karte, sonst stoßen die Spalten aneinander */
@media (max-width: 640px) {
  .serienkarte .sk-text { display: contents; }
  .serienkarte .sk-bild { grid-row: span 2; }
  .serienkarte .sk-werte { grid-column: 1 / -1; }
}
@media print { .serienkarte .sk-text { display: grid; } .serienkarte .sk-bild { grid-row: auto; } .serienkarte .sk-werte { grid-column: auto; } }
