/* Tool „Turnier & Spielplan“ – Verwaltung (index.php), auf buchung.css/werk.css; Tabelle/Spiel/Baum aus tu-basis.css. */
.wz-turnier { --akzent: var(--wz); }
.tu-unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Startseite */
.tu-attrappe { display: grid; gap: .55rem; padding: 1.1rem; }
.tu-a-kopf { display: flex; align-items: center; gap: .6rem; margin-bottom: .2rem; }
.tu-a-kopf span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(37, 99, 235, .14); font-size: 1.3rem; }
.tu-a-live { margin-left: auto; padding: .15rem .55rem; border-radius: 99px; background: #ef4444; color: #fff; font-size: .7rem; font-style: normal; font-weight: 850; letter-spacing: .08em; animation: tu-puls 1.6s ease-in-out infinite; }
.tu-a-spiel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem; padding: .7rem .8rem; border-radius: 14px; background: #0f172a; color: #fff; font-weight: 700; }
.tu-a-spiel span:first-child { text-align: right; } .tu-a-spiel b { padding: .15rem .6rem; border-radius: 8px; background: #ef4444; font-variant-numeric: tabular-nums; }
.tu-a-spiel.klein { background: rgba(15, 23, 42, .06); color: #0f172a; font-size: .9rem; } .tu-a-spiel.klein b { background: rgba(15, 23, 42, .1); }
.tu-a-tab { width: 100%; border-collapse: collapse; color: #334155; font-size: .88rem; }
.tu-a-tab td { padding: .3rem .4rem; border-bottom: 1px solid rgba(15, 23, 42, .08); } .tu-a-tab td:last-child { text-align: right; font-weight: 800; color: #0f172a; } .tu-a-tab td:first-child { width: 1.4rem; color: #94a3b8; }

/* Neues Turnier */
.tu-sporte { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .4rem; max-height: 236px; overflow-y: auto; padding: 2px; }
.tu-sporte label, .tu-modi label { position: relative; cursor: pointer; }
.tu-sporte input, .tu-modi input { position: absolute; opacity: 0; }
.tu-sporte span { display: grid; justify-items: center; gap: .1rem; height: 100%; padding: .5rem .3rem; border-radius: 13px; border: 1.5px solid var(--rand-2); background: var(--flaeche); font-size: .74rem; font-weight: 650; text-align: center; line-height: 1.2; transition: border-color .2s, transform .2s var(--feder); }
.tu-sporte b { font-size: 1.4rem; }
.tu-modi { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .5rem; margin-bottom: .8rem; }
.tu-modi span { display: grid; gap: .2rem; height: 100%; padding: .75rem .85rem; border-radius: 15px; border: 1.5px solid var(--rand-2); background: var(--flaeche); transition: border-color .2s, transform .2s var(--feder); }
.tu-modi i { color: var(--text-3); font-size: 1.15rem; } .tu-modi small { color: var(--text-3); font-size: .76rem; line-height: 1.4; }
.tu-sporte input:checked + span, .tu-modi input:checked + span { border-color: var(--wz); background: color-mix(in srgb, var(--wz) 14%, var(--flaeche)); transform: translateY(-2px); }
.tu-modi input:checked + span i { color: var(--wz); }
.tu-sporte input:focus-visible + span, .tu-modi input:focus-visible + span { outline: 2px solid var(--wz); outline-offset: 2px; }
.tu-start { max-width: 760px; }
dialog.tu-neu-dialog { width: min(720px, calc(100vw - 24px)); }

/* Kacheln */
.tu-kachel-live { margin-left: auto; padding: .15rem .55rem; border-radius: 99px; background: #ef4444; color: #fff; font-size: .7rem; font-weight: 850; letter-spacing: .08em; }
.tu-pille-live { padding: .1rem .6rem; border-radius: 99px; background: rgba(239, 68, 68, .16); color: #f87171; font-weight: 800; }

/* Teams */
.tu-anzahl { margin-left: .3rem; padding: .05rem .55rem; border-radius: 99px; background: var(--flaeche); color: var(--text-2); font-size: .85rem; vertical-align: middle; }
.tu-teams { display: grid; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; counter-reset: t; }
.tu-teams li { display: flex; align-items: center; gap: .4rem; counter-increment: t; }
.tu-teams li::before { content: counter(t); width: 1.6rem; color: var(--text-3); font-size: .8rem; font-weight: 700; text-align: right; }
.tu-team-form { display: flex; flex: 1; align-items: center; gap: .5rem; min-width: 0; padding: .3rem .35rem .3rem .45rem; border: 1px solid var(--rand); border-radius: 14px; background: var(--flaeche); }
.tu-team-form .tu-wappen { font-size: .9rem; }
.tu-team-form input, .tu-team-form select { min-width: 0; padding: .45rem .55rem; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text); font: inherit; font-weight: 650; }
.tu-team-form input { flex: 1; } .tu-team-form select { max-width: 9.5rem; color: var(--text-2); font-size: .85rem; background: rgba(0, 0, 0, .18); }
.tu-team-form input:focus, .tu-team-form select:focus { outline: none; border-color: var(--wz); }
.tu-teams-neu { display: grid; gap: .5rem; margin-bottom: .6rem; } .tu-teams-neu .t-knopf { justify-self: start; }
.tu-eckdaten { display: grid; gap: .45rem; margin: .2rem 0 .4rem; padding: 0; list-style: none; color: var(--text-2); font-size: .92rem; }
.tu-eckdaten i { width: 1.3rem; color: var(--wz); text-align: center; }
.tu-vorschau { margin: 1rem 0; padding: .7rem .9rem; border-radius: 12px; background: color-mix(in srgb, var(--wz) 10%, transparent); color: var(--text); font-weight: 600; }
.tu-vorschau i { color: var(--wz); }
.tu-leer { display: grid; justify-items: center; gap: .5rem; padding: 2.4rem 1rem; text-align: center; } .tu-leer > span { font-size: 3rem; }

/* Spielplan */
.tu-werkzeuge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1rem; }
.tu-filter { display: flex; flex-wrap: wrap; gap: .4rem; }
.tu-filter select { padding: .5rem 2rem .5rem .75rem; border: 1px solid var(--rand-2); border-radius: 11px; background: var(--flaeche) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2394a3b8' stroke-width='2'/%3E%3C/svg%3E") no-repeat right .7rem center; color: var(--text); font: inherit; font-size: .9rem; -webkit-appearance: none; appearance: none; }
.tu-plan-raster { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 1050px) { .tu-plan-raster { grid-template-columns: 1fr; } }
.tu-seite { display: grid; gap: 1rem; } .tu-seite .t-karte h2 { font-size: 1.05rem; margin-bottom: .6rem; }
.tu-tab-box { font-size: .9rem; overflow-x: auto; }
.tu-baum-box { font-size: .82rem; }
.tu-ergebnisse { display: grid; gap: .35rem; }
.tu-slot { display: flex; align-items: baseline; gap: .6rem; margin: .9rem 0 .2rem; font-size: .95rem; } .tu-slot:first-child { margin-top: 0; }
.tu-slot small { color: var(--text-3); font-size: .78rem; font-weight: 600; }
.tu-e-zeile { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .45rem .55rem; border: 1px solid var(--rand); border-radius: 14px; background: var(--flaeche); scroll-margin-top: 120px; }
.tu-e-zeile.st-fertig { background: transparent; }
.tu-e-zeile.st-laeuft { border-color: rgba(239, 68, 68, .55); background: rgba(239, 68, 68, .07); }
.tu-e-zeile.wartet { opacity: .7; }
.tu-e-zeile:target { box-shadow: 0 0 0 2px var(--wz); }
.tu-e-info { display: grid; line-height: 1.2; } .tu-e-info b { font-size: .85rem; } .tu-e-info small { color: var(--text-3); font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tu-e-team { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; } .tu-e-team.heim { text-align: right; } .tu-e-team.sieg { color: var(--wz); }
.wartet .tu-e-team { color: var(--text-3); font-style: italic; font-weight: 500; }
.tu-e-stand { display: flex; align-items: center; gap: .25rem; } .tu-e-stand i { color: var(--text-3); font-style: normal; font-weight: 800; }
.tu-e-stand input { width: 3.1rem; padding: .45rem .2rem; border: 1px solid var(--rand-2); border-radius: 10px; background: rgba(0, 0, 0, .25); color: var(--text); font: 800 1.05rem 'Exo 2', sans-serif; text-align: center; -moz-appearance: textfield; }
.tu-e-stand input::-webkit-outer-spin-button, .tu-e-stand input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tu-e-stand input:focus { outline: none; border-color: var(--wz); }
.tu-e-knoepfe { display: flex; align-items: center; justify-content: flex-end; gap: .3rem; min-width: 6.4rem; }
.tu-e-knopf { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border: 1px solid var(--rand-2); border-radius: 10px; background: transparent; color: var(--text-2); cursor: pointer; transition: background .2s, color .2s; }
.tu-e-knopf.ok { background: var(--wz); border-color: var(--wz); color: #0b1020; } .tu-e-knopf.live:hover { color: #ef4444; border-color: #ef4444; } .tu-e-knopf.weg:hover { color: #f87171; }
.tu-e-sieger { max-width: 7.5rem; padding: .35rem .4rem; border: 1px solid var(--rand-2); border-radius: 9px; background: rgba(0, 0, 0, .25); color: var(--text-2); font: inherit; font-size: .75rem; }
.tu-wartet { color: var(--text-3); font-size: .78rem; }
.tu-nichts { color: var(--text-3); text-align: center; }
@media (max-width: 720px) {
    .tu-e-zeile { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); row-gap: .4rem; }
    .tu-e-info { grid-column: 1 / -1; grid-template-columns: auto 1fr; gap: .5rem; align-items: baseline; }
    .tu-e-knoepfe { grid-column: 1 / -1; justify-content: center; }
}
.tu-podest-karte h2 { text-align: center; }
.tu-podest { display: flex; justify-content: center; align-items: flex-end; gap: .8rem; margin: .4rem 0 0; padding: 0; list-style: none; }
.tu-podest li { display: grid; justify-items: center; gap: .3rem; min-width: 7rem; padding: .9rem .8rem; border-radius: 16px 16px 6px 6px; background: var(--flaeche); text-align: center; }
.tu-podest li span { font-size: 2rem; } .tu-podest .p1 { order: 2; padding-top: 1.6rem; background: color-mix(in srgb, #fbbf24 16%, var(--flaeche)); } .tu-podest .p2 { order: 1; } .tu-podest .p3 { order: 3; }

/* Teilen & Anzeigen */
.tu-anzeigen { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; margin: .8rem 0 1.2rem; }
.tu-anzeige-karte { display: grid; gap: .25rem; align-content: start; padding: .9rem; border: 1px solid var(--rand); border-radius: 16px; background: var(--flaeche); }
.tu-anzeige-karte > i { color: var(--wz); font-size: 1.3rem; } .tu-anzeige-karte small { color: var(--text-3); font-size: .78rem; } .tu-anzeige-karte .bu-knopfreihe { margin-top: .4rem; }
.tu-h3 { margin: .4rem 0 .2rem; font-size: 1rem; }
.tu-feld-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.tu-helfer { display: grid; gap: .4rem; margin: .6rem 0 1rem; padding: 0; list-style: none; }
.tu-helfer li { display: flex; align-items: center; gap: .4rem; padding: .4rem .5rem .4rem .8rem; border-radius: 12px; background: var(--flaeche); } .tu-helfer li span { flex: 1; font-weight: 650; }
.tu-punkte { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.tu-motiv-feld input { font-size: 1.3rem; }
