/* Bewusst gross und kontrastreich – gut lesbar auch ohne Brille am Schiessstand. */
:root {
    --gruen: #1f4e3d;
    --gruen-hell: #e7f1ec;
    --akzent: #c8102e;
}

html { font-size: 18px; }
body { background: #f6f7f5; color: #1b1b1b; }

.kopf { background: var(--gruen); color: #fff; padding: .7rem 0; }
.kopf-titel { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.kopf-titel:hover { color: #fff; }

.karte { background: #fff; border-radius: 14px; padding: 1.25rem; box-shadow: 0 1px 4px rgba(0,0,0,.08); margin-bottom: 1rem; }
.schmal { max-width: 520px; margin: 0 auto; }

h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.25rem; font-weight: 700; margin-top: .5rem; }

/* ---------- Grosse Knöpfe ---------- */
.btn-gross { font-size: 1.35rem; padding: .9rem 1rem; border-radius: 12px; font-weight: 600; width: 100%; }
.btn-primary { background: var(--gruen); border-color: var(--gruen); }
.btn-primary:hover, .btn-primary:focus { background: #163a2d; border-color: #163a2d; }

/* ---------- PIN-Tastatur ---------- */
.pin-anzeige { font-size: 2.6rem; letter-spacing: .6rem; text-align: center; font-weight: 700;
               border: 3px solid var(--gruen); border-radius: 12px; padding: .3rem; background: #fff; width: 100%; }
.tastatur { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1rem; }
.tastatur button { font-size: 2rem; font-weight: 700; padding: .8rem 0; border-radius: 12px; border: 2px solid #c9d3cd; background: #fff; }
.tastatur button:active { background: var(--gruen-hell); }
.tastatur .t-loeschen { font-size: 1.2rem; }

/* ---------- Auswahl als grosse Kacheln (Radio-Buttons) ---------- */
.kacheln { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
.kacheln.drei { grid-template-columns: repeat(3, 1fr); }
.kacheln input { position: absolute; opacity: 0; pointer-events: none; }
.kacheln label { display: block; text-align: center; padding: .9rem .4rem; border: 3px solid #c9d3cd; border-radius: 12px;
                 background: #fff; font-size: 1.35rem; font-weight: 700; cursor: pointer; line-height: 1.15; }
.kacheln label small { display: block; font-size: .8rem; font-weight: 500; color: #555; }
.kacheln input:checked + label { border-color: var(--gruen); background: var(--gruen); color: #fff; }
.kacheln input:checked + label small { color: #e0eee7; }
.kacheln input:focus-visible + label { outline: 3px solid #f0b400; }

/* ---------- Schüsse-Zähler ---------- */
.zaehler { display: grid; grid-template-columns: 4rem 1fr 4rem; gap: .5rem; align-items: stretch; }
.zaehler button { font-size: 2rem; font-weight: 700; border-radius: 12px; border: 2px solid #c9d3cd; background: #fff; }
.zaehler input { font-size: 2.4rem; text-align: center; font-weight: 700; border: 3px solid var(--gruen); border-radius: 12px; width: 100%; }
.schnell { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.schnell button { flex: 1 1 18%; font-size: 1.1rem; padding: .5rem 0; border-radius: 10px; border: 2px solid #c9d3cd; background: #fff; font-weight: 600; }

.feld-titel { font-weight: 700; font-size: 1.1rem; margin: 1rem 0 .4rem; }
.bahn-fix { font-size: 1.5rem; font-weight: 700; background: var(--gruen-hell); border-radius: 12px; padding: .7rem 1rem; }

.erfolg { text-align: center; }
.erfolg .haken { font-size: 4rem; line-height: 1; }
.erfolg .zahl { font-size: 3rem; font-weight: 800; color: var(--gruen); }

/* ---------- Verwaltung ---------- */
.admin-nav .nav-link { color: var(--gruen); font-weight: 600; }
.admin-nav .nav-link.active { background: var(--gruen); }
.table { background: #fff; }
.table td, .table th { vertical-align: middle; }
.zahl-spalte { text-align: right; font-variant-numeric: tabular-nums; }
.kennzahl { font-size: 2rem; font-weight: 800; color: var(--gruen); }

/* ---------- QR-Code-Druck ---------- */
.qr-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.qr-karte { background: #fff; border: 2px dashed #999; border-radius: 10px; padding: 1rem; text-align: center; page-break-inside: avoid; break-inside: avoid; }
.qr-karte img { width: 100%; max-width: 240px; image-rendering: pixelated; }
.qr-karte .gross { font-size: 1.8rem; font-weight: 800; }

@media print {
    body { background: #fff; }
    .kopf, .d-print-none { display: none !important; }
    .karte { box-shadow: none; }
}
