body { font-family: system-ui, sans-serif; margin: 0; padding: 2rem 1rem; line-height: 1.4; }
main { max-width: 64rem; margin: 0 auto; }
a.button, button { display: inline-block; padding: .4rem .9rem; border: 1px solid #555; border-radius: .3rem; background: #f4f4f4; color: inherit; font: inherit; text-decoration: none; cursor: pointer; }
button.danger, a.button.danger { border-color: #a00; background: #fbeaea; color: #700; }
.actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; vertical-align: top; padding: .4rem .5rem; border-bottom: 1px solid #ddd; }
th.num, td.num { text-align: right; }
table.distribution { max-width: 34rem; }
td.nowrap { white-space: nowrap; }
td.nowrap a + a { margin-left: .6rem; }
.open { color: #a00; font-weight: 600; }
pre.message { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; background: #f7f7f7; border: 1px solid #ddd; border-radius: .3rem; padding: .6rem .8rem; max-width: 40rem; }
.schedule { list-style: none; padding: 0; margin: 0; max-width: 40rem; }
.schedule li { border: 1px solid #ddd; border-radius: .3rem; padding: .6rem .8rem; margin: 0 0 .8rem; }
.schedule p { margin: 0 0 .4rem; }
.schedule dl { display: grid; grid-template-columns: max-content 1fr; gap: .2rem .8rem; margin: 0; }
.schedule dd { margin: 0; }
input.link { font: inherit; width: 100%; max-width: 40rem; padding: .3rem; box-sizing: border-box; }
a.button.small { padding: .1rem .6rem; margin-left: .4rem; font-size: .9em; }
.clear-entry { margin: -.3rem 0 .8rem; }
.view-switch { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1rem; }
.view-switch a.active { background: #333; color: #fff; border-color: #333; }
.badge { background: #eef; padding: 0 .3rem; border-radius: .2rem; }
fieldset { border: 1px solid #ccc; border-radius: .3rem; margin: 0 0 1rem; padding: .5rem 1rem 1rem; }
.field { margin: .6rem 0; display: flex; flex-direction: column; max-width: 28rem; }
.field input, .field select { font: inherit; padding: .3rem; }
.has-error input, .has-error select { border: 2px solid #a00; }
.error { color: #a00; margin: .2rem 0; }
.ok { background: #e7f5e9; border-left: 4px solid #2e7d32; padding: .5rem .8rem; }
.warning { background: #fff4d6; border-left: 4px solid #d9a400; padding: .5rem .8rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-header { max-width: 64rem; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.site-header .logo { height: 4rem; width: auto; display: block; }
@media (max-width: 40rem) { .site-header .logo { height: 3rem; } }
.site-footer { max-width: 64rem; margin: 3rem auto 0; padding-top: .8rem; border-top: 1px solid #ddd; font-size: .9em; display: flex; gap: 1.2rem; }
.site-footer .version { margin-left: auto; color: #666; }
.legal { max-width: 44rem; }
.legal h2 { font-size: 1.1rem; margin-top: 1.6rem; }
.columns { columns: 14rem; padding-left: 1.2rem; }
.checkbox { display: flex; gap: .5rem; align-items: baseline; }
.badge.warn { background: #fff4d6; }
.review { border-top: 1px solid #ddd; padding-top: .4rem; }
.candidates { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
a.badge.warn { color: inherit; }
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); grid-auto-rows: 1fr; gap: .8rem; margin: .6rem 0 1.8rem; }
.tile { display: flex; flex-direction: column; gap: .4rem; padding: .9rem 1rem; border: 1px solid #ddd; border-radius: .6rem; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); transition: border-color .15s, box-shadow .15s; }
.tile:hover, .tile:focus { border-color: #888; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.tile-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.tile-title { font-weight: 600; font-size: 1.05rem; }
.tile-count { flex-shrink: 0; padding: .1rem .55rem; border-radius: 1rem; background: #eee; color: #444; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.tile-text { font-size: .9rem; color: #555; }
.tile.attention { border-left: 5px solid #d9a400; background: #fffaf0; }
.tile.attention .tile-count { background: #d9a400; color: #fff; }
.tile-group { margin: 1.4rem 0 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: #666; }
.admin-head { margin-bottom: 1rem; }
.admin-head .eyebrow { margin: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #666; }
.admin-head h1 { margin: .1rem 0 .2rem; }
.admin-date { margin: 0; color: #555; }
.status { margin: 0 0 .6rem; }
.todo { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.todo a { display: inline-block; padding: .35rem .8rem; border: 1px solid #d9a400; border-radius: 1rem; background: #fff4d6; color: #5a4300; font-weight: 600; text-decoration: none; }
.todo a:hover, .todo a:focus { background: #ffe9a8; }
.all-done { display: inline-block; margin: 0; padding: .35rem .8rem; border-radius: 1rem; background: #e7f5e9; color: #1e5a23; font-weight: 600; }
@media (max-width: 40rem) { .tiles { grid-template-columns: 1fr; grid-auto-rows: auto; } }
.site-footer { flex-wrap: wrap; }
.site-footer .cookie-note { color: #666; }
/* Namensfeld beim Eintragen: Beschriftung und Eingabefeld gut sichtbar (Wunsch 2026-10-04). */
.field.prominent label { font-weight: 700; font-size: 1.2rem; margin-bottom: .3rem; }
.field.prominent input { font-size: 1.15rem; padding: .6rem .7rem; border: 2px solid #555; border-radius: .4rem; background: #fff; }
.field.prominent input:focus { outline: 3px solid #d9a400; outline-offset: 1px; border-color: #333; }
.field.prominent.has-error input { border-color: #a00; }
/* Spielplan: «Keine … gefunden» gut sichtbar (Wunsch 2026-10-06). */
.ok.result { font-weight: 600; font-size: 1.05rem; max-width: 40rem; }
/* Offene Einsätze: «Alle … besetzt» soll ins Auge stechen (Wunsch 2026-10-30). */
.all-staffed { display: flex; align-items: center; gap: .7rem; max-width: 40rem; margin: 1rem 0; padding: .9rem 1.1rem; border: 2px solid #2e7d32; border-radius: .5rem; background: #e7f5e9; color: #1e5a23; font-weight: 700; font-size: 1.15rem; }
.all-staffed::before { content: "✓"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: #2e7d32; color: #fff; font-size: 1.2rem; }
/* Fairplay-Hinweis beim Austragen (Wunsch 2026-10-10). */
.fairplay { max-width: 40rem; margin: 1rem 0; }
.fairplay p { margin: .4rem 0; }
.inline-form select { font: inherit; padding: .2rem; }
.inline-form .filter { display: inline-flex; gap: .4rem; align-items: center; }
/* Anleitung Liveticker-Lizenz (Wunsch 2026-10-17). */
.license-help { margin-top: .3rem; }
.guide { max-width: 44rem; }
.guide .lead { font-size: 1.05rem; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.2rem 0; }
.steps li { counter-increment: step; position: relative; border: 1px solid #ddd; border-radius: .5rem; padding: .8rem 1rem .9rem 3.4rem; margin: 0 0 .9rem; background: #fafafa; }
.steps li::before { content: counter(step); position: absolute; left: .9rem; top: .75rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #c8102e; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps h2 { font-size: 1.1rem; margin: .15rem 0 .4rem; }
.steps p { margin: 0 0 .6rem; }
.steps .shot { display: block; overflow-x: auto; }
.steps img { display: block; max-width: 100%; height: auto; border: 1px solid #ccc; border-radius: .3rem; }
/* Lizenz-Zeile ist sehr breit: auf dem Handy lesbar gross, seitlich wischbar. */
.steps .shot.wide img { max-width: none; width: 100%; min-width: 34rem; }
.guide .warning p { margin: 0; }
.guide .done { color: #555; margin-top: 1.2rem; }
.guide .hint { color: #555; font-size: .9em; }
/* Startet rechts, damit «Datum bis» ohne Wischen sichtbar ist. */
@media (max-width: 40rem) { .steps .shot.wide { direction: rtl; } }
@media (max-width: 40rem) { .steps li { padding: .7rem .8rem .8rem 2.9rem; } .steps li::before { left: .6rem; top: .65rem; width: 1.6rem; height: 1.6rem; } }
/* Hinweis des Mandanten, z. B. Testbetrieb (Wunsch 2026-10-18). */
.tenant-banner { max-width: 64rem; margin: 0 auto 1rem; box-sizing: border-box; background: #fde8ec; border: 2px dashed #c8102e; border-radius: .4rem; padding: .6rem .9rem; font-weight: 600; color: #7a0019; }
/* Hinweis nach dem Austragen: Kalendereintrag selbst löschen (Wunsch 2026-10-18). */
.calendar-hint { background: #eef3fb; border-left: 4px solid #2f5ea8; padding: .5rem .8rem; max-width: 40rem; }
/* Vorschlag aus der Bemerkung auf dem Team-Link (Wunsch 2026-10-18). */
.game-note { display: inline-block; margin-top: .2rem; background: #eef; padding: 0 .4rem; border-radius: .2rem; font-size: .95em; }
/* Kopieren-Knopf bei den Nachrichten auf der Admin-Startseite (Wunsch 2026-10-22). */
.message-box { position: relative; max-width: 40rem; }
.message-box pre.message { padding-right: 6.5rem; }
.message-box button.copy { position: absolute; top: .4rem; right: .4rem; padding: .1rem .6rem; font-size: .9em; }
/* Spielplan: Pools für Spiele ohne Einsatz (Wunsch 2026-10-24). */
td.pools { min-width: 14rem; }
td.pools p { margin: 0 0 .2rem; }
.pool-list { margin: .3rem 0; padding-left: 1.1rem; }
.pool-list li { margin-bottom: .4rem; }
.pool-very_good strong, .pool-good strong { color: #2e7d32; }
.pool-blocked { color: #666; }
.pool-reason { font-size: .92em; }
.game-league { color: #555; font-size: .95em; }
.sources { margin: .6rem 0 1rem; padding: .5rem .8rem; border-left: 4px solid #2e7d32; background: #f3faf4; max-width: 46rem; }
.sources p { margin: 0 0 .3rem; }
.sources ul { margin: 0; padding-left: 0; list-style: none; }
.sources.warning { border-left-color: #d9a400; background: #fff4d6; }
.source-state { display: inline-block; width: 1.1em; font-weight: 700; color: #a00; }
.source-state.ok-state { color: #2e7d32; }
.row-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.row-actions a.button.small { margin-left: 0; }
.edit-history { padding-left: 1.2rem; }
.edit-history li { margin-bottom: .5rem; }
button.small { padding: .1rem .6rem; font-size: .9em; }
