/* Seiten frontend/turniere.php und frontend/turnier.php */
body { margin: 0; color: #e5e7eb; min-height: 100vh; background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%); background-attachment: fixed; }
main { max-width: 1200px; margin: 20px auto; padding: 0 16px 84px 16px; }
.t-card { background: #fff; color: #111827; border-radius: 14px; padding: 16px 18px; margin: 0 0 16px 0; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15); }
.t-card h2 { margin: 0 0 10px 0; font-size: 19px; color: #0f172a; }
.t-note { color: #52606d; font-size: 13px; margin: 0 0 10px 0; }
.t-muted { color: #6b7280; font-size: 13px; }
.t-back { margin: 0 0 10px 0; } .t-back a { color: #fde68a; font-weight: 600; text-decoration: none; }
.t-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.t-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #52606d; }
/* Feldname + Markierung (*/optional) immer in einer Zeile über dem Eingabefeld */
.t-form .t-flabel { font-size: 12px; color: #52606d; }
.t-form .t-flabel .t-req-star, .t-form .t-flabel .t-opt { margin-left: 2px; }
.t-form label.check { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; color: #1f2937; }
.t-form .full { grid-column: 1 / -1; }
.t-form textarea { border: 1px solid #dfe3ea; border-radius: 10px; padding: 8px 10px; font-family: inherit; font-size: 14px; resize: vertical; }
@media (max-width: 640px) { .t-form { grid-template-columns: 1fr; } }
.t-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.t-table th { text-align: left; color: #52606d; font-size: 12px; font-weight: 600; padding: 6px; border-bottom: 1px solid #e5e7eb; }
.t-table td { padding: 6px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.t-table a { color: #1d4ed8; font-weight: 600; }
.t-scroll { overflow-x: auto; }
.t-classes td input[type=text] { min-width: 150px; }
.t-num { width: 80px; }
.t-ages { display: grid; grid-template-columns: repeat(4, max-content); gap: 2px 12px; font-size: 12px; }
.t-ages label { display: flex; align-items: center; gap: 4px; white-space: nowrap; color: #1f2937; }
.t-ages input { height: auto; }
.t-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.t-btn { padding: 9px 16px; border-radius: 10px; border: 0; font-weight: 700; cursor: pointer; background: #2563eb; color: #fff; }
.t-btn.ghost { background: #e2e8f0; color: #1f2937; }
.t-btn.danger { background: #b91c1c; }
.t-leaders { margin: 0 0 10px 0; padding-left: 18px; }
.t-inline { display: inline; }
/* Text in einer Spalte mit Auswahlfeldern: auf Höhe und Einzug des Textes im Feld (Rahmen, Innenabstand, Abstand des Browsers) */
.t-select-text { display: inline-block; line-height: var(--control-height, 42px); padding-left: 15px; }
.t-link { background: none; border: 0; color: #b91c1c; cursor: pointer; padding: 0 4px; font-size: 13px; height: auto; }
.t-danger { background: #fff5f5; }
.msg { margin: 0 0 14px 0; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.msg.ok { background: rgba(22, 163, 74, 0.25); color: #bbf7d0; }
.msg.bad { background: rgba(239, 68, 68, 0.25); color: #fecaca; }
/* Meldungen auf weißen Karten: dunkle Schrift auf heller Tönung (die hellen Farben oben sind für dunkle Flächen) */
.t-card .msg.ok { background: #dcfce7; color: #14532d; }
.t-card .msg.bad { background: #fee2e2; color: #7f1d1d; }
/* Knöpfe zum Bestätigen je gleich breit und hoch, egal wie lang der Text ist */
.t-pay-action .t-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 200px; min-height: 44px; box-sizing: border-box; }
.inline-confirm { flex: 1 0 100%; margin: 8px 0 0 0; padding: 8px 12px; border-radius: 10px; background: #fef3c7; border: 1px solid #facc15; color: #78350f; font-size: 14px; }
.inline-confirm[hidden] { display: none !important; }
.t-card button[hidden] { display: none !important; }
/* Ausschreibung / Turnier-Dashboard */
.t-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.t-facts dt { color: #52606d; } .t-facts dd { margin: 0; font-weight: 600; color: #1f2937; }
.t-facts a { color: #1d4ed8; }
@media (max-width: 520px) { .t-facts { grid-template-columns: 1fr; gap: 2px; } .t-facts dd { margin-bottom: 8px; } }
.t-sub { margin: 14px 0 6px 0; font-size: 15px; color: #0f172a; }
.t-right { text-align: right; font-weight: 700; }
.t-text { margin: 0; line-height: 1.5; }
.t-pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #e5e7eb; color: #374151; }
.t-pill.on { background: #dcfce7; color: #166534; }
.t-back .t-pill { background: rgba(255,255,255,.18); color: #fff; } .t-back .t-pill.on { background: #22c55e; color: #052e16; }
.t-public { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; } .t-public .t-row { margin-top: 0; } .t-public form { margin: 0; }
/* Meldungen */
.t-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px 0; }
.t-pill.warn { background: #fef3c7; color: #92400e; }
.t-warn { color: #b45309; font-weight: 600; font-size: 13px; }
.t-entries td { vertical-align: middle; }
/* Meldungen: Kern-Tabelle (Name, Status, Klasse · Bogen, Scheibe, Startgeld); Zusatzspalten je Ansicht, Rest in den Details */
.t-entries { min-width: 680px; }
.t-entries td select { width: 100%; }
.t-entries tr.t-erow td select { width: auto; min-width: 118px; }
.t-det-in select { width: 100%; max-width: 220px; }
.t-c { text-align: center; }
.t-nowrap { white-space: nowrap; }
.t-sort { color: inherit !important; font-weight: 600 !important; text-decoration: none; white-space: nowrap; }
.t-sort:hover { color: #1d4ed8 !important; text-decoration: underline; }
.t-sort.on { color: #1d4ed8 !important; }
/* Spalte „Bestätigt“: ✓ versendet · Kreis mit Strich = noch nicht · ✕ keine E-Mail */
.t-conf { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; font-weight: 800; font-size: 16px; line-height: 1; text-decoration: none !important; box-sizing: border-box; padding: 0; vertical-align: middle; }
.t-conf.ok { background: #dcfce7; color: #15803d !important; }
.t-conf.claimed { background: #fef3c7; color: #b45309 !important; }
.t-fee { font-size: 14px; margin: 6px 0 4px; color: #334155; }
.t-fee-open { color: #92400e; }
.t-fee-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.t-conf.no { background: #fee2e2; color: #dc2626 !important; }
button.t-conf.no { border: 0; cursor: pointer; }
.t-conf.open { border: 2.5px solid #2563eb; background: #fff; position: relative; height: 28px; min-height: 0; }
.t-conf.open::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2.5px; margin-top: -1.25px; background: #2563eb; transform: rotate(-45deg); }
button.t-conf.open { cursor: pointer; }
button.t-conf.open:hover { background: #eff6ff; }
.t-dialog-small { max-width: 420px; text-align: left; }
.t-conf-mail { margin: 8px 0 14px 0; padding: 8px 12px; border-radius: 10px; background: #f1f5f9; font-weight: 600; overflow-wrap: anywhere; }
.t-off td { color: #9ca3af; } .t-off b { text-decoration: line-through; }
.t-edit summary { cursor: pointer; color: #1d4ed8; font-size: 13px; }
.t-edit[open] { min-width: 520px; }
/* Ändern als kleines Overlay-Fenster */
.t-link-btn { background: none; border: 0; padding: 0; height: auto; color: #1d4ed8; font-size: 13px; cursor: pointer; text-decoration: underline; }
.t-dialog { border: 0; border-radius: 16px; padding: 16px 18px; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); color: #111827; }
.t-dialog::backdrop { background: rgba(15, 23, 42, 0.55); }
.t-dialog [hidden] { display: none !important; }
/* QR-Code zum Nachtragen der E-Mail (frontend/turnier-email-qr.php): groß, damit das Handy ihn vom Bildschirm liest */
.t-qr-card { text-align: center; }
.t-qr-big { display: block; width: min(320px, 80vw); height: auto; margin: 12px auto; image-rendering: pixelated; }
.t-qr-actions { justify-content: center; }
.t-qr-link { overflow-wrap: anywhere; }
.t-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.t-dialog-head h3 { margin: 0; font-size: 18px; color: #0f172a; }
.t-dialog-close { background: #e2e8f0; border: 0; border-radius: 999px; width: 32px; height: 32px; cursor: pointer; font-size: 15px; color: #334155; }
.t-dialog .t-form { margin-top: 0; }
.t-form-small { margin-top: 8px; gap: 6px 10px; }
.t-row input[type=search] { min-width: 240px; flex: 1; }
.t-btn { text-decoration: none; display: inline-block; }
/* Scheibenplan */
.t-form label small { color: #6b7280; font-size: 11px; }
.t-targets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.t-target { border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px 12px; background: #f8fafc; }
.t-target.bad { border-color: #f59e0b; background: #fffbeb; }
.t-target-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; color: #0f172a; }
.t-target-head span { color: #52606d; font-size: 13px; font-weight: 600; }
.t-slot { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; border-top: 1px solid #eef2f7; font-size: 14px; line-height: 1.3; }
.t-slot small { color: #6b7280; font-size: 12px; }
.t-pos { flex: 0 0 22px; height: 22px; border-radius: 6px; background: #1e3a8a; color: #fff; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.t-row a.t-btn { text-decoration: none; display: inline-block; }
.t-row-top { margin: 0 0 12px 0; }
/* Scheibenplan: Ziehen und Ablegen */
.t-drag { display: flex; gap: 8px; align-items: flex-start; flex: 1; cursor: grab; user-select: none; -webkit-user-select: none; }
.t-grip { color: #64748b; font-size: 18px; line-height: 1; padding: 2px 4px; touch-action: none; cursor: grab; }
.t-dragging { opacity: .35; }
.t-ghost { position: fixed; z-index: 1000; pointer-events: none; background: #fff; color: #111827; border-radius: 10px; padding: 6px 10px; box-shadow: 0 12px 28px rgba(0,0,0,.3); font-size: 14px; }
.t-drop.t-over { background: #dbeafe; border-radius: 8px; }
.t-target.t-nogo { opacity: .45; }
.t-target.empty { border-style: dashed; background: #fff; }
.t-pool { border-style: dashed; background: #fff; }
.t-busy { opacity: .6; pointer-events: none; }
/* Ergebnis-Eingabe je Scheibe */
.t-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px 0; }
.t-tabs a { background: rgba(255,255,255,.14); color: #fff; padding: 6px 12px; border-radius: 999px; text-decoration: none; font-size: 14px; }
.t-scorecard h2 { display: flex; align-items: center; gap: 8px; }
.t-sum b { font-size: 14px; }
.t-rounds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 700px) { .t-rounds { grid-template-columns: 1fr; } }
.t-ends td { padding: 3px 4px; vertical-align: middle; }
.t-endno { color: #52606d; font-weight: 700; width: 28px; text-align: right; }
.t-arrow { width: 100%; min-width: 44px; height: 40px; text-align: center; font-size: 18px; font-weight: 700; text-transform: uppercase; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0; }
.t-arrow.bad { border-color: #dc2626; background: #fee2e2; }
.t-endsum { width: 40px; text-align: right; font-weight: 700; color: #0f172a; }
/* Pfeil-Eingabe wie der Zettel: Summe je zwei Passen und Übertrag (laufende Summe) */
.t-pairsum, .t-carry { width: 44px; text-align: center; font-size: 18px; font-weight: 700; color: #0f172a; vertical-align: middle; border-left: 1px solid #e2e8f0; font-variant-numeric: tabular-nums; }
.t-carry { color: #1d4ed8; }
/* Vergleich mit den Summen vom Zettel (Fotoerkennung): nicht nur Farbe, auch Zeichen */
.t-pairsum.t-sum-ok, .t-carry.t-sum-ok { background: #dcfce7; color: #166534; }
.t-pairsum.t-sum-bad, .t-carry.t-sum-bad { background: #fee2e2; color: #b91c1c; }
.t-sum-ok::after { content: '✓'; font-size: 11px; margin-left: 2px; }
.t-sum-bad::after { content: '!'; font-size: 12px; margin-left: 2px; }
.t-endhead th { font-size: 12px; font-weight: 600; color: #64748b; text-align: center; padding: 2px 4px; }
/* schmal (Handy): Summe je Passe weglassen – Summe je zwei Passen und Übertrag zeigen dasselbe, sonst passt „Übertrag“ nicht */
@media (max-width: 480px) {
    .t-ends .t-endsum, .t-endhead .t-h-endsum { display: none; }
    .t-ends td { padding: 3px 2px; }
    .t-pairsum, .t-carry { width: 42px; }
    .t-endhead th { font-size: 11px; padding: 2px 1px; }
}
.t-savebar { position: sticky; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.t-hostlogo { height: 48px; width: auto; }
/* Rangliste / Finalgruppen */
.t-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.t-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.t-check input { width: 18px; height: 18px; }
.t-rank td { vertical-align: middle; }
.t-final td { background: #f0fdf4; }
.t-seeding { margin: 10px 0 6px 0; padding: 10px 12px; border-radius: 10px; background: #f8fafc; display: grid; gap: 4px; font-size: 14px; }
.t-seeding .t-warn { margin: 4px 0 0 0; }
/* Finale */
.t-bracket { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 6px 0 4px 0; }
.t-match { border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px 12px; background: #f8fafc; }
.t-match.gold { border-color: #eab308; background: #fefce8; } .t-match.bronze { border-color: #d97706; background: #fff7ed; }
.t-match-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 14px; }
.t-match-row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid #eef2f7; font-size: 15px; }
.t-match-row.won { font-weight: 700; color: #166534; }
.t-match-actions { margin-top: 8px; }
.t-match-score { display: grid; gap: 6px; margin: 0 0 8px 0; }
.t-match-score div { display: flex; justify-content: space-between; font-size: 18px; padding: 6px 10px; border-radius: 10px; background: #f1f5f9; }
.t-match-score div.won { background: #dcfce7; color: #166534; font-weight: 700; }
.t-fix { text-decoration: underline; cursor: pointer; } .t-fix:hover { color: #92400e; }
.t-chip { text-decoration: none; cursor: pointer; }
.t-chip:hover { filter: brightness(0.95); }
.t-chip.sel { outline: 2px solid #1d4ed8; outline-offset: 1px; }
.t-pill.bad { background: #fee2e2; color: #b91c1c; }
/* Filterzeile der Meldungen (wie Userübersicht): Suche + Auswahlfelder, auf dem Handy untereinander */
.t-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 10px 0; }
.t-filter input[type=search] { flex: 1 1 240px; min-width: 0; }
.t-filter select { flex: 0 1 auto; max-width: 220px; }
.t-filter-reset { color: #1d4ed8; font-size: 14px; }
@media (max-width: 520px) { .t-filter input[type=search] { flex: 1 1 100%; } .t-filter select { flex: 1 1 calc(50% - 4px); min-width: 0; width: 0; max-width: none; } .t-filter .t-btn { flex: 1 1 calc(50% - 4px); } }
/* Mannschaften */
.t-team-members { font-size: 13px; line-height: 1.5; }
.t-row-inline label { display: flex; align-items: center; gap: 8px; }
.t-target .t-edit { margin-top: 8px; }
.t-target .t-edit[open] { min-width: 0; }
/* Online-Anmeldung (turniere.php) */
.t-aktion { white-space: nowrap; }
.t-aktion .t-btn { font-size: 14px; line-height: 18px; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; box-sizing: border-box; text-decoration: none; }
.t-oeffnen { width: 120px; }
.t-oeffnen form.t-inline { display: inline-flex; }
.t-anmelden { white-space: normal; }
.t-btn-reg { background: #16a34a; }
/* Turnierliste: „Öffnen/Geöffnet“ als Hauptknopf */
.t-aktion .t-btn-open { background: #2563eb; color: #fff; }
.t-aktion .t-btn-open.is-open { background: #16a34a; }
/* Klickbare Spaltensortierung im Kopf */
.t-sort { color: #1d4ed8; font-weight: 600; text-decoration: none; white-space: nowrap; }
.t-sort:hover { text-decoration: underline; }
.t-sort.active { color: #111827; }
.t-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.t-dialog .t-warn { margin: 0 0 8px 0; }
/* Pflichtfeld im Anmeldedialog (turniere.php) */
.t-opt { font-weight: normal; }
.t-req-star { color: #b91c1c; font-weight: 700; }
.t-req-note { color: #52606d; font-size: 12px; margin: 0 0 10px 0; }
.t-req td { background: #fffbeb; }
/* Turnierliste am Handy als Karten (sonst zu breit für 390 px) */
@media (max-width: 640px) {
    .t-list, .t-list tbody, .t-list tr, .t-list td { display: block; width: 100%; }
    .t-list tr:first-child { display: none; }
    .t-list tr { border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
    .t-list td { border: 0; padding: 2px 0; }
    .t-list td:first-child { font-size: 16px; margin-bottom: 4px; }
    .t-list td[data-label]::before { content: attr(data-label) ": "; color: #6b7280; font-size: 12px; }
    .t-list td.t-aktion { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; white-space: normal; box-sizing: border-box; justify-content: flex-start; width: 100%; }
    .t-oeffnen, .t-anmelden { width: 100%; }
    .t-list td.t-aktion .t-btn, .t-list td.t-aktion form { flex: 0 0 auto; min-width: 0; }
    .t-list td.t-aktion .t-btn { white-space: nowrap; margin: 0; height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; }
    .t-list td.t-aktion .t-self { flex: 1 0 100%; }
    .t-list td.t-aktion form .t-btn { width: auto; }
}
.t-self { padding: 6px 12px; font-size: 13px; }
/* Urkunden */
.t-dash-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.t-cert-group h2 { justify-content: space-between; }
.t-cert-group a { text-decoration: none; }
.t-member { display: block; white-space: nowrap; }
@media (max-width: 640px) {
    .t-teamrank th:nth-child(5), .t-teamrank td:nth-child(5), .t-teamrank th:nth-child(6), .t-teamrank td:nth-child(6) { display: none; }
    .t-teamrank td, .t-teamrank th { padding: 6px 4px; }
    .t-member { white-space: normal; }
}

/* Ausschreibung / Dashboard vor dem Meldeschluss (frontend/turnier-ausschreibung.php) */
.ta-hero { display: flex; gap: 20px; align-items: center; background: #fff; border-radius: 16px; padding: 20px 22px; margin: 0 0 16px 0; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15); }
.ta-date { flex: 0 0 auto; width: 108px; text-align: center; border-radius: 14px; overflow: hidden; background: #eff6ff; color: #1e3a8a; }
.ta-date span { display: block; font-size: 14px; font-weight: 600; padding: 4px 0; }
.ta-date span:first-child { background: #1d4ed8; color: #fff; }
.ta-date b { display: block; font-size: 44px; line-height: 1.1; }
/* Mehrere Termine: Karte mit Anzahl oben, Jahr unten, je Termin ein Blatt (leicht gefächert, überlappend) */
.ta-dates { flex: 0 0 auto; text-align: center; border-radius: 14px; overflow: hidden; background: #eff6ff; color: #1e3a8a; }
.ta-dates > span { display: block; }
.ta-dates > .ta-dates-sheets { display: flex; justify-content: center; padding: 10px 12px 6px; }
.ta-dates-head { background: #1d4ed8; color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; }
.ta-sheet { width: 54px; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 2px 6px rgba(30, 58, 138, 0.22); border: 2px solid #eff6ff; transform: rotate(-3deg); }
.ta-sheet + .ta-sheet { margin-left: -12px; }
.ta-sheet:nth-child(even) { transform: translateY(4px) rotate(3deg); }
.ta-sheet i { display: block; font-style: normal; background: #3b5bdb; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 0; }
.ta-sheet b { display: block; font-size: 25px; line-height: 1.15; }
.ta-sheet em { display: block; font-style: normal; font-size: 11px; font-weight: 700; padding-bottom: 3px; }
.ta-dates-year { font-size: 11px; font-weight: 700; color: #64748b; padding: 2px 0 7px; }
.ta-hero-main { min-width: 0; flex: 1; }
.ta-hero-main h2 { margin: 0; font-size: 28px; color: #0f172a; }
.ta-kicker { margin: 0; color: #1d4ed8; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.ta-hero-sub { margin: 4px 0 12px 0; color: #475569; font-size: 17px; }
.ta-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ta-chip { display: inline-block; padding: 5px 10px; border-radius: 999px; background: #f1f5f9; color: #334155; font-size: 15px; font-weight: 600; }
.ta-chip.on { background: #dcfce7; color: #166534; }
.ta-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ta-hero-actions:empty { display: none; }
.ta-hero-actions .t-btn { font-size: 16px; padding: 10px 18px; }
.ta-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 22px 0; }
.ta-fact { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); }
.ta-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: #eff6ff; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.ta-fact small { display: block; color: #64748b; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.ta-fact b { display: block; color: #0f172a; font-size: 17px; overflow-wrap: anywhere; }
.ta-head { color: #fff; font-size: 22px; margin: 0 0 10px 2px; }
.ta-bows { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 0 0 6px 0; }
.ta-bow h3 { margin: 0 0 8px 0; font-size: 20px; color: #1d4ed8; }
.ta-class { padding: 10px 0; border-top: 1px solid #eef2f7; }
.ta-class:first-of-type { border-top: 0; }
.ta-names { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.ta-names span { padding: 3px 8px; border-radius: 8px; background: #f1f5f9; color: #1f2937; font-size: 15px; font-weight: 600; }
.ta-meta { color: #475569; font-size: 16px; }
.ta-meta b { color: #0f172a; }
.ta-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.ta-two .t-card { margin: 0; }
.ta-fees { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 10px; }
.ta-fee { border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; text-align: center; }
.ta-fee b { display: block; font-size: 24px; color: #0f172a; }
.ta-fee span { display: block; color: #475569; font-size: 15px; margin-top: 2px; }
.ta-notes { margin-top: 16px; }
.ta-two h2, .ta-notes h2 { font-size: 21px; }
.ta-two .t-text, .ta-notes .t-text { font-size: 17px; }
.ta-two .t-note { font-size: 15px; }
@media (max-width: 520px) {
    .ta-hero { flex-direction: column; align-items: stretch; text-align: left; padding: 16px; }
    .ta-date, .ta-dates { display: none; }
    .ta-fees { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
    .ta-fee { padding: 10px 6px; }
    .ta-fee b { font-size: 20px; }
    .ta-fee span { font-size: 13px; }
    .ta-hero-main h2 { font-size: 24px; }
    .ta-chip { font-size: 14px; border-radius: 10px; }
}

/* Pfeil-Eingabe einer Scheibe mit Fotos vom Zettel (frontend/turnier-scheibe.php): am großen Bildschirm Fotos rechts, mitlaufend */
.t-scan-layout { display: flex; flex-direction: column; gap: 0; }
.t-photos h3 { margin: 8px 0 4px 0; font-size: 15px; }
.t-photo img { display: block; width: 100%; max-width: 420px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; }
/* Foto in der Vorschau (auch hochkant ganz sichtbar), darunter Drehen um 90° und die Leiste der gespeicherten Fotos */
.t-photo-stage { display: flex; justify-content: center; align-items: center; background: #0f172a; border-radius: 10px; padding: 8px; }
.t-photo .t-photo-stage img { width: auto; max-width: 100%; max-height: 460px; border: 0; border-radius: 6px; }
.t-photo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 10px 0; }
.t-rot { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid #cbd5e1; background: #fff; color: #0f172a; font-weight: 700; font-size: 14px; cursor: pointer; }
.t-rot svg { width: 22px; height: 22px; fill: #2563eb; }
.t-rot-r svg { transform: scaleX(-1); }
.t-photo-thumbs { display: flex; gap: 8px; margin: 0 0 10px 0; padding: 2px; overflow-x: auto; }
.t-thumb { flex: 0 0 auto; width: 92px; padding: 4px; border-radius: 10px; border: 2px solid #e2e8f0; background: #f8fafc; color: #334155; cursor: pointer; text-align: center; font-weight: 600; font-size: 12px; line-height: 1.25; }
.t-photo .t-thumb img { width: 100%; height: 60px; object-fit: cover; border: 0; border-radius: 6px; margin: 0 0 4px 0; }
.t-thumb small { display: block; font-weight: 400; color: #64748b; }
.t-thumb.is-active { border-color: #2563eb; background: #dbeafe; color: #1e3a8a; }
.t-thumb.is-active small { color: #1e40af; }
.t-photo-older { background: #fef9c3; color: #713f12; border-radius: 10px; padding: 8px 12px; margin: 0 0 10px 0; font-size: 13px; font-weight: 600; line-height: 1.4; }
.t-photo-older[hidden], .t-photo-newest-info[hidden] { display: none; }
.t-hints { background: #fef9c3; border: 2px solid #facc15; color: #713f12; border-radius: 12px; padding: 10px 14px; margin: 0 0 12px 0; font-size: 14px; line-height: 1.5; }
.t-hints ul { margin: 4px 0 0 0; padding-left: 20px; }
.t-hints[hidden] { display: none; }
@media (min-width: 1100px) {
    .t-scan-layout { flex-direction: row; align-items: flex-start; gap: 16px; }
    .t-scan-main { flex: 1 1 auto; min-width: 0; }
    .t-photos { flex: 0 0 440px; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; order: 2; }
}

/* Vorschläge der Fotoerkennung (js/foto-vorschlag.js): blau = erkannt, gelb = unsicher; gültig erst nach „Speichern“ */
.t-arrow.sugg { background: #dbeafe; border-color: #60a5fa; }
.t-arrow.sugg-unsure { background: #fef08a; border-color: #ca8a04; }

/* Mannschaften: einklappbare Karten (frontend/turnier-mannschaften.php, js/turnier-mannschaften.js) */
.t-fold > summary { cursor: pointer; list-style: none; }
.t-fold > summary::-webkit-details-marker { display: none; }
.t-fold > summary b::before { content: '▾'; display: inline-block; width: 1.1em; color: #64748b; transition: transform 0.15s; }
.t-fold:not([open]) > summary b::before { transform: rotate(-90deg); }
.t-fold:not([open]) > summary { margin-bottom: 0; }
.t-fold-all { margin-bottom: 8px; }
/* Fenster „Mannschaft anlegen“: Person zur Startnummer */
.t-starthint { display: block; min-height: 1.3em; margin-top: 3px; font-size: 13px; font-weight: 600; }
.t-starthint.ok { color: #15803d; }
.t-starthint.warn { color: #b45309; }
.t-fold-all .t-btn { padding: 4px 10px; font-size: 13px; min-height: 0; }
/* Startliste: Umschalter Scheibenplan / Startliste (auf weißer Karte) */
.t-view { display: inline-flex; border: 1px solid #cbd5e1; border-radius: 999px; overflow: hidden; }
.t-view a { padding: 7px 14px; color: #1e293b; text-decoration: none; font-size: 14px; font-weight: 600; background: #fff; }
.t-view a + a { border-left: 1px solid #cbd5e1; }
.t-view a.on { background: #2563eb; color: #fff; }
/* Startliste nach Klassen: eine Tabelle mit festen Spalten (alle Klassen bündig), Klasse als graue Zwischenzeile */
@media (min-width: 641px) {
  .t-startlist { table-layout: fixed; }
  .t-startlist col.sl-t { width: 80px; } .t-startlist col.sl-d { width: 70px; } .t-startlist col.sl-f { width: 170px; }
  .t-startlist col.sl-c { width: 26%; } .t-startlist col.sl-m { width: 20%; }
}
/* Spalte „Mannschaft“ (nur freigegebene Mannschaften) und Mannschaftsliste am Ende der Startliste */
.t-startlist .sl-team-inline { display: none; color: #1e40af; font-weight: 600; }
.sl-teams-head { margin: 22px 0 8px 0; font-size: 19px; color: #0f172a; }
.t-startlist tr.sl-class th { background: #eef2f7; color: #0f172a; font-size: 15px; padding: 10px 6px 6px; border-bottom: 1px solid #cbd5e1; }
.t-startlist tr.sl-class th span { color: #64748b; font-weight: 600; }
.t-startlist .sl-club-inline { display: none; color: #64748b; font-weight: 400; }
@media (max-width: 640px) {
  /* Handy: Verein unter dem Namen statt eigener Spalte; eine Tabelle, daher trotzdem bündig */
  .t-startlist .sl-club, .t-startlist .sl-team { display: none; }
  .t-startlist .sl-club-inline, .t-startlist .sl-team-inline { display: block; }
  .t-startlist th, .t-startlist td { padding-left: 4px; padding-right: 4px; }
  .t-startlist .sl-face { font-size: 13px; hyphens: none; }
}
.t-startlist .sl-nw { white-space: nowrap; }

/* Startgeld bezahlen (frontend/turnier-zahlung.php): QR-Code neben den Angaben, auf dem Handy untereinander */
.t-pay { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; margin: 10px 0 12px; }
.t-pay-qr { width: 220px; height: 220px; max-width: 100%; border: 0; background: #fff; flex: 0 0 auto; }
.t-pay-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 15px; flex: 1 1 220px; min-width: 0; }
.t-pay-list dt { color: #475569; }
.t-pay-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.t-pay-list .t-iban { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
/* Startgeld-Zeile in der Turnierliste: über die volle Breite, Knöpfe untereinander, wenn sie nicht passen */
.t-actions > .t-fee, .t-actions > .t-fee-actions { grid-column: 1 / -1; }
.t-fee-actions { flex-direction: column; align-items: stretch; }
.t-fee-actions .t-btn { white-space: normal; text-align: center; width: 100%; }
.t-fee-actions form { margin: 0; width: 100%; }
.t-fee-actions .t-btn { min-height: 40px; }

/* Regeln für Mannschaften in den Turnier-Einstellungen (frontend/turnier.php) */
.t-team-rules, .t-bank { border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; margin: 4px 0 8px; }
.t-team-rules legend, .t-bank legend { font-weight: 700; padding: 0 6px; }
.t-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 6px 0 10px; }
.t-checks > span { font-weight: 600; color: #334155; }

.t-search { margin-top: 8px; }
.t-covered { opacity: .6; }
.t-search select { min-height: 40px; }

/* Turnier einstellen: einklappbare Abschnitte (frontend/turnier.php) – Kopfzeile mit Titel, Anzahl und Pfeil */
/* Bereiche in turnier.php (Wertungsklassen, Startgeld, Leitung): immer offen, Kopf mit Titel und Anzahl */
.t-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.t-section-head h2 { margin: 0; }
.t-section-head .t-muted { margin-left: auto; font-size: 13px; white-space: nowrap; }
.t-section[open] > summary { margin-bottom: 10px; }
.t-team-rules[open] > summary, .t-bank[open] > summary { margin-bottom: 8px; }
.t-team-rules > summary, .t-bank > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }

/* Turnier einstellen: Erklärungen einklappbar, kurze Felder auf dem Handy zu zweit (frontend/turnier.php) */
.t-explain { margin-top: 6px; }
.t-explain > summary { cursor: pointer; list-style: none; display: flex; align-items: center; min-height: 44px; color: #1d4ed8; font-size: 14px; }
.t-explain > summary::-webkit-details-marker { display: none; }
.t-explain > summary b::before { content: '▾'; display: inline-block; width: 1.1em; color: #64748b; transition: transform 0.15s; }
.t-explain:not([open]) > summary b::before { transform: rotate(-90deg); }
@media (max-width: 640px) {
    .t-form-2 { grid-template-columns: 1fr 1fr; }
    .t-form-2 .full { grid-column: 1 / -1; }
}

/* Reiter wie auf der Profilseite (frontend/turnier.php, Durchgang in frontend/turnier-scheibe.php) */
.t-seg { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px 0; background: rgba(255, 255, 255, 0.14); padding: 5px; border-radius: 14px; width: fit-content; max-width: 100%; }
.t-tab { border: 0; background: transparent; color: #fff; min-height: 44px; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; }
.t-tab.on { background: #fff; color: #1e3a8a; }
.t-tab:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.t-js .t-panel[data-hidden] { display: none; }
@media (max-width: 640px) { .t-seg { width: 100%; } .t-tab { flex: 1 1 auto; padding: 8px 10px; } }

/* Feldbreite nach dem Inhalt: Zahlen, Uhrzeiten und Datum brauchen keine volle Spalte */
.t-form input[name="max_targets"] { max-width: 10em; }
.t-form input[name="greeting_time"], .t-form input[name="start_time"], .t-form input[name="entry_deadline_time"] { max-width: 7.5em; }
.t-form input[name="event_date"], .t-form input[name="entry_deadline"] { max-width: 10.5em; }
.t-form input[name="team_fee"] { max-width: 7em; }
.t-form input[name="season"] { max-width: 9em; }
.t-form input[name="max_targets"], .t-form input[name="greeting_time"], .t-form input[name="start_time"],
.t-form input[name="event_date"], .t-form input[name="entry_deadline"], .t-form input[name="team_fee"], .t-form input[name="season"] { width: 100%; }

/* Pfeil-Eingabe: Umschalter 1. / 2. Durchgang (js/turnier-scheibe.js); ohne JavaScript stehen beide nebeneinander */
.t-round-switch { margin-bottom: 12px; }
.t-round-switch[hidden] { display: none; }
.t-round-off { display: none !important; }
.t-round-one .t-rounds { grid-template-columns: 1fr; }

/* Turnier einstellen, Eckdaten: Gruppen (Felder so breit wie ihr Inhalt) und Vorschau der Ausschreibung (js/turnier-eckdaten.js) */
.t-eck { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.t-eck > .t-card { margin: 0; }
.t-form.t-eck-groups { display: flex; flex-direction: column; gap: 16px; }
.t-grp { border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px 14px; background: #f8fafc; }
.t-grp h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #64748b; }
.t-grp-row { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.t-grp-row > label { min-width: 0; }
.t-f-xs { flex: 0 1 7.5em; } .t-f-sm { flex: 0 1 10.5em; } .t-f-md { flex: 1 1 13em; } .t-f-lg { flex: 3 1 20em; } .t-f-full { flex: 1 1 100%; }
.t-eck-preview { position: sticky; top: 12px; }
.t-eck-preview h2 { font-size: 13px; color: #64748b; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.t-eck-title { font-size: 21px; font-weight: 800; color: #0f172a; margin: 0 0 12px; line-height: 1.25; overflow-wrap: anywhere; }
.t-eck-preview dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; margin: 0; font-size: 15px; }
.t-eck-preview dt { color: #64748b; } .t-eck-preview dd { margin: 0; color: #0f172a; font-weight: 600; overflow-wrap: anywhere; }
.t-eck-warn { list-style: none; margin: 12px 0 0; padding: 8px 10px; font-size: 14px; color: #92400e; background: #fef3c7; border-radius: 10px; }
.t-eck-warn li + li { margin-top: 4px; }
@media (max-width: 900px) {
    .t-eck { grid-template-columns: minmax(0, 1fr); } /* 1fr wüchse auf die Mindestbreite des Inhalts (Handy: seitlich verschoben) */
    .t-eck-preview { position: static; order: -1; }
    .t-eck-title { font-size: 18px; }
    .t-eck-preview dl { font-size: 14px; gap: 4px 10px; }
}
@media (max-width: 640px) { .t-grp { padding: 10px 12px 12px; } .t-f-md, .t-f-lg { flex-basis: 100%; } }

/* Ergebnisse eintragen: Stand je Scheibe als linker Rand (blau = nichts, gelb = neues Foto, grün = gespeichert) */
.t-status { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-left: 6px solid #93c5fd; color: #0f172a; text-decoration: none; min-height: 44px; }
.t-status.st-gelb { border-left-color: #f59e0b; background: #fffbeb; }
.t-status.st-gruen { border-left-color: #22c55e; background: #f0fdf4; }
.t-status-label { color: #52606d; font-size: 13px; font-weight: 600; }
.t-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.t-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: #93c5fd; vertical-align: middle; margin-right: 4px; }
.t-dot.st-gelb { background: #f59e0b; }
.t-dot.st-gruen { background: #22c55e; }
/* vollständig: alle gewerteten Pfeile der Scheibe eingetragen – kräftiges Grün mit Häkchen */
.t-status.st-voll { border-left-color: #15803d; background: #dcfce7; }
.t-status.st-voll .t-status-label { color: #15803d; font-weight: 800; }
.t-dot.st-voll { background: #15803d; }

/* Pfeil-Eingabe: Speichern-Knopf oben links in jeder Schützen-Kachel (speichert die ganze Scheibe, zurück zur Kachel) */
.t-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.t-card-head h2 { margin: 0; min-width: 0; flex: 1 1 160px; }
.t-card-save { min-height: 44px; padding: 8px 14px; flex: 0 0 auto; }

/* Pfeil-Eingabe: Pfeilverteilung je Kachel (js/turnier-scheibe.js drawPie), Farben wie player-stats.css */
.t-top { margin-bottom: 10px; }
.t-top-left { min-width: 0; }
.t-pie-box { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: #f1f5f9; }
.t-pie-box[hidden] { display: none; }
.t-pie { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; position: relative; background: #e2e8f0; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.t-pie::after { content: attr(data-avg); position: absolute; inset: 27%; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: #1e293b; font-variant-numeric: tabular-nums; }
.t-pie-legend { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 4px 8px; font-size: 13px; color: #334155; }
.t-pie-legend span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.t-pie-legend .t-pie-cap { grid-column: 1 / -1; font-size: 13px; color: #475569; }
.t-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.t-dot-M, .t-dot-3, .t-dot-4 { background: #111; border: 1px solid #999; }
.t-dot-1, .t-dot-2 { background: #fff; border: 1px solid #999; }
.t-dot-5, .t-dot-6 { background: #1e4fa1; }
.t-dot-7, .t-dot-8 { background: #d31f1f; }
.t-dot-9, .t-dot-10, .t-dot-X { background: #f1c40f; }
.t-dot-X { box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #b8860b; }
.t-dot-7, .t-dot-9 { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.85) 0 2px, transparent 2px 5px); }
@media (min-width: 900px) {
  .t-top { display: flex; gap: 16px; align-items: flex-start; }
  .t-top-left { flex: 1; }
  .t-pie-box { margin-top: 0; flex: 0 0 340px; }
}

/* Meldungen, Spalte „Für Gäste“: sieht ein Besucher ohne Anmeldung den Namen? Auge = ja; 🙈 mit Grund und Vorschau der Anzeige */
.t-vis { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; background: #e0f2fe; font-size: 15px; line-height: 1; vertical-align: middle; }
.t-vis.hide { width: auto; height: auto; min-height: 28px; gap: 6px; padding: 3px 10px 3px 6px; text-align: left; border: 1px solid transparent; text-decoration: none; color: inherit; }
.t-vis.hide .t-vis-ico { font-size: 17px; }
.t-vis-txt { display: flex; flex-direction: column; line-height: 1.15; }
.t-vis-txt b { font-size: 12px; }
.t-vis-txt small { font-size: 11px; opacity: .75; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.t-vis.minderjaehrig { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.t-vis.wahl { background: #ede9fe; border-color: #ddd6fe; color: #5b21b6; }
.t-vis.pruefen { background: #fee2e2; border-color: #fecaca; color: #b91c1c; cursor: pointer; animation: t-vis-pulse 2.4s ease-in-out infinite; }
a.t-vis.pruefen:hover { background: #fecaca; }
@keyframes t-vis-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } 50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, .18); } }
@media (prefers-reduced-motion: reduce) { .t-vis.pruefen { animation: none; } }

/* Meldungen als Kern-Tabelle (Entwurf C): Zusatzspalten je Ansicht, Details zum Aufklappen (js/turnier-teilnehmer.js) */
.t-views { display: flex; gap: 4px; background: #f1f5f9; border-radius: 12px; padding: 4px; margin: 0 0 12px; width: max-content; max-width: 100%; overflow-x: auto; }
.t-views[hidden] { display: none; }
.t-views button { border: 0; background: transparent; border-radius: 9px; padding: 8px 14px; min-height: 40px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; color: #334155; }
.t-views button.on { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); color: #1e3a8a; }
.t-entries.t-js .t-col-geld, .t-entries.t-js .t-col-druck { display: none; }
.t-entries.t-js.t-view-geld .t-col-geld, .t-entries.t-js.t-view-druck .t-col-druck { display: table-cell; }
.t-entries tr.t-erow { cursor: pointer; }
.t-entries tr.t-erow:hover > td { background: #f8fafc; }
.t-entries tr.t-erow.open > td { background: #eff6ff; border-bottom-color: transparent; }
.t-ename { white-space: normal; }
.t-etog { border: 0; background: none; color: #64748b; width: 24px; height: 28px; padding: 0; margin-right: 4px; font-size: 13px; cursor: pointer; transition: transform .2s; vertical-align: middle; }
tr.open .t-etog { transform: rotate(90deg); color: #1e3a8a; }
.t-entries.t-js tr.t-det { display: none; }
.t-entries.t-js tr.t-det.open { display: table-row; }
.t-det > td { background: #f8fafc; padding: 0 !important; }
.t-det-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 18px; padding: 12px 16px 14px 40px; font-size: 13px; }
.t-det-in > div > small { display: block; color: #64748b; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.t-det-act { display: flex; align-items: flex-end; }
.t-wertung { white-space: nowrap; }
.t-vis-mini { display: inline-block; border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 700; vertical-align: middle; white-space: nowrap; }
.t-vis-mini.minderjaehrig { background: #fef3c7; color: #92400e; }
.t-vis-mini.wahl { background: #ede9fe; color: #5b21b6; }
.t-vis-mini.pruefen { background: #fee2e2; color: #b91c1c; }
@media (max-width: 640px) { .t-det-in { padding-left: 16px; } }

/* Zwei Karten nebeneinander (Scheiben + Startliste veröffentlichen, turnier-scheibenplan.php) */
.t-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: stretch; margin-bottom: 16px; }
.t-split > .t-card { margin: 0; }
/* Startliste-Karte füllt die Höhe der Scheiben-Karte und bringt den Knopf unten auf gleiche Höhe */
.t-split .t-card.t-public { display: flex; flex-direction: column; align-items: stretch; }
.t-split .t-card.t-public > div { flex: 1 1 auto; }
.t-split .t-card.t-public form { margin-top: 0; }
.t-split .t-card.t-public .t-row { margin-top: 40px; }

/* Scheiben-Aktionen: einheitliche Schrift, 2 Spalten (2×2 bei vier Knöpfen), auf dem Handy 1 Spalte */
.t-actions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.t-actions-grid .t-btn { font-size: 14px; width: 100%; text-align: center; box-sizing: border-box; }
/* Startliste-Button: gleiche Schrift und Breite wie die Scheiben-Aktionen */
.t-split .t-card.t-public form .t-btn { font-size: 14px; width: 100%; text-align: center; box-sizing: border-box; }
@media (max-width: 640px) {
    .t-actions-grid { grid-template-columns: 1fr; }
}

/* Wertungsklassen abschalten (frontend/turnier.php): ausgeschaltete Zeilen gedämpft, Kästchen „an“ */
.t-class-off td { opacity: .55; }
.t-off-check { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; }

/* Meldungen: NDSB-Nr. unter dem Namen – in „Verein & Scheiben“ und beim Filter „ohne NDSB-Nr.“ */
/* Spalte NDSB-Nr. (bzw. DBS-Startpass): Nummer oder Feld zum Nachtragen, ohne Verein mit Vereinsauswahl */
.t-entries td.t-ndsb { white-space: nowrap; }
.t-ndsb-no { font-variant-numeric: tabular-nums; }
.t-ndsb-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.t-ndsb-form input { width: 10.5em; padding: 4px 8px; }
.t-ndsb-form select { max-width: 12em; padding: 4px 6px; }
.t-ndsb-form .t-btn { padding: 4px 10px; }

/* Newsletter (turnier.php, Reiter „Veröffentlichen“) und Link auf turniere.php */
.t-nl-preview { margin-top: 8px; font-size: 14px; }
.t-nl-preview summary { cursor: pointer; color: #2563eb; }
.t-nl-preview pre { white-space: pre-wrap; word-break: break-word; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; font-size: 13px; max-height: 360px; overflow: auto; }
.t-nl-link { margin: 0 0 10px; }

/* Schieberegler mit Ergebniszeilen (allgemeiner Baustein, z. B. Zulassung: Scheiben je Scheibenart → Plätze je Klasse) */
.t-range { border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px 12px; margin: 10px 0 0 0; }
.t-range-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.t-range-head b, .t-range-head .t-muted { grid-column: 1 / -1; }
.t-range-head .t-muted { font-size: 13px; }
.t-range-head input[type=range] { grid-column: 1; width: 100%; min-height: 44px; accent-color: #2563eb; }
.t-range-head output { grid-column: 2; font-weight: 600; white-space: nowrap; }
.t-range-classes { list-style: none; margin: 6px 0 0 0; padding: 0; }
.t-range-classes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 6px 0; border-top: 1px solid #f1f5f9; font-size: 14px; }
.t-range-label { font-weight: 600; }
.t-range-q input { width: 64px; min-height: 36px; }
.t-range-out { grid-column: 1 / -1; color: #52606d; font-size: 13px; }
.t-js .t-js-hide { display: none; }
.t-inline-h { display: inline; font-size: 17px; margin: 0; }
details > summary { cursor: pointer; }
[data-panel][hidden] { display: none !important; }

.ta-days { margin: 4px 0 12px; padding: 0; list-style: none; color: #334155; font-size: 16px; }
.ta-days li { margin: 2px 0; }
.t-sub-link { margin: 8px 0 12px; }

/* Weitere Termine: „entfernen“ und „+ Weiteren Termin“ auf die Höhe der Eingabefelder bringen */
.t-day-row .t-check { align-self: flex-end; min-height: 46px; }
[data-add-day] { min-height: 46px; box-sizing: border-box; }

/* Zulassung nach Ringzahl als Link in der Reiterleiste der Turnier-Einstellungen */
.t-seg a.t-tab-link { text-decoration: none; display: inline-flex; align-items: center; color: inherit; }

/* Eckdaten: Hinweis zum Klassenwechsel unter der Zeile „Sportjahr / Meldeschluss“ */
.t-grp > .t-sy-change { margin: 8px 0 0; }
.t-grp > .t-grp-row ~ .t-grp-row { margin-top: 12px; }
/* Felder einer Zeile an der Unterkante ausrichten: Feldnamen mit ⓘ oder Umbruch schieben die Eingabe nicht nach unten */
.t-eck-groups .t-grp-row { align-items: flex-end; }

.t-day-bulk { margin: 6px 0 10px; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.t-day-bulk label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }

/* Reiter als Link (Termine im Scheibenplan): wie die Knopf-Reiter, ohne Unterstreichung */
.t-seg a.t-tab { text-decoration: none; display: inline-flex; align-items: center; }
/* Meldeliste, Ansicht „Termine“: Bereiche ohne Termin / Tag 1 / Tag 2 …, Personen per Ziehen verschieben (js/turnier-scheibenplan.js) */
.t-day-board { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 6px; }
.t-day-board .t-target { min-height: 120px; }
.t-day-board .t-slot { padding: 4px 0; }
.t-day-board .t-target-head span { white-space: nowrap; }
.t-target-head span.t-warn { color: #b45309; } /* Termin überbucht: mehr Personen als Plätze */
/* Ansicht „Termine“: Kästchen zum Auswählen (role=checkbox), ausgewählte Zeile hervorgehoben */
.t-day-board .t-slot { display: flex; align-items: flex-start; gap: 8px; }
.t-pick { flex: none; width: 22px; height: 22px; margin-top: 2px; border: 2px solid #94a3b8; border-radius: 6px; background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.t-pick[aria-checked="true"] { background: #2563eb; border-color: #2563eb; }
.t-pick[aria-checked="true"]::after { content: "✓"; color: #fff; font-size: 14px; font-weight: 800; line-height: 1; }
.t-pick:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.t-slot.t-picked { background: #eff6ff; border-radius: 8px; }
#dayPickForm { margin: 4px 0 10px; }

/* Eckdaten: Hinweis „📍 Ort mit Kartenpunkt“ unter dem Feld zählt nicht zur Höhe – sonst steht das Ort-Feld höher als die
   anderen (Zeile ist unten ausgerichtet). Platz dafür schafft die Zeile selbst. */
.t-eck-groups .place-field .place-state { position: absolute; left: 0; top: 100%; margin-top: 3px; white-space: nowrap; }
.t-eck-groups .t-grp-row:has(.place-field) { padding-bottom: 16px; }
/* „entfernen“ neben dem Kästchen, nicht darunter (.t-form label ist sonst eine Spalte) */
.t-form .t-day-row label.t-check { flex-direction: row; align-items: center; font-size: 13px; }
/* Ort bekommt den übrigen Platz der Zeile (lange Adressen), ohne „Scheiben“ in die nächste Zeile zu schieben */
.t-eck-groups .t-f-md.place-field { flex: 4 1 13em; }

/* Meldungen: Zugang per QR-Code an der Person (wie „Spieler verwalten“ in der Liga) */
.t-qr-btn { margin-left: 6px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: #2563eb; font-size: 16px; line-height: 1.4; cursor: pointer; vertical-align: middle; }
.t-qr-btn:hover { background: #e1effe; }
@media (max-width: 640px) { .t-qr-btn { min-width: 36px; min-height: 36px; font-size: 18px; } }

/* Hallen-Notebooks (admin-halle.php): Schlüssel einmal anzeigen */
.halle-token { border: 2px solid #f59e0b; }
.halle-cmd { background: #0f172a; color: #e2e8f0; padding: 10px 12px; border-radius: 8px; overflow-x: auto; font-size: 13px; user-select: all; }
.t-row-spread { justify-content: space-between; align-items: center; flex-wrap: wrap; }
