:root {
    --water: #005b75;
    --deep: #123849;
    --pool: #e8f4f7;
    --paper: #fff;
    --line: #b6d2db;
    --marker: #b43e27;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--pool); color: var(--deep); font: 16px/1.5 "Trebuchet MS", "Segoe UI", sans-serif; }
header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px max(20px, calc((100vw - 1200px) / 2)); background: var(--water); color: white; border-bottom: 6px solid var(--deep); }
header a { color: white; }
.brand { font-size: 25px; font-weight: 700; text-decoration: none; }
header p { margin: 0; font-size: 14px; }
nav { display: flex; flex-wrap: wrap; gap: 20px; }
main { max-width: 1240px; margin: auto; padding: 24px 20px 60px; }
h1 { font-size: clamp(26px, 5vw, 38px); line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: 27px; margin-top: 40px; }
h3 { font-size: 23px; }
h4 { font-size: 18px; margin-bottom: 8px; }
p { max-width: 78ch; }
a { color: var(--water); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #bb4b19; outline-offset: 3px; }
.stand, .hint, .refs { font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; padding: 16px 0; border-top: 2px solid var(--line); margin-top: 24px; }
label { display: block; font-weight: 700; }
input, select, button { font: inherit; }
input:not([type=checkbox]), select { display: block; width: 100%; padding: 10px 12px; border: 1px solid #688f9c; background: white; color: var(--deep); border-radius: 4px; min-height: 46px; }
.filters label { flex: 1 1 200px; }
.filters p { margin: 0 0 10px; min-width: 80px; }
.lane-head, .slot { display: grid; grid-template-columns: 65px 1fr 1fr; gap: 12px; }
.lane-head { padding: 12px 0; font-weight: 700; }
.slot { border-top: 2px solid var(--line); padding: 12px 0; }
.slot h3 { margin: 0; font-size: 16px; font-variant-numeric: tabular-nums; }
.lane { min-width: 0; display: flex; flex-direction: column; }
.lane > .match { flex: 1; }
.mobile-pool { display: none; }
.match { background: white; border-left: 6px solid var(--water); padding: 12px 14px; }
.match.offen { border-color: #347b3d; }
.match.jugend { border-color: #336cbb; }
.match.damen { border-color: #a1437b; }
.match.youngsters { border-color: #b47700; }
.match-meta { font-size: 13px; margin-bottom: 8px; }
.match-meta b { padding-right: 6px; }
.pairing { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.winner { font-weight: 700; }
.placeholder { font-style: italic; color: #526977; }
.score { font-size: 28px; line-height: 1.2; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.score small { display: block; font-size: 12px; }
.refs { margin: 10px 0 0; color: #405d69; }
.match > a { display: inline-block; margin-top: 10px; padding: 5px 0; }
.pause { grid-column: 2 / 4; margin: 0; }
.class-tables { margin: 28px 0; padding: 10px 20px 24px; background: white; }
.class-tables h3 { color: var(--water); margin-bottom: 12px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--pool); font-size: 14px; }
.entry { max-width: 720px; margin-top: 24px; background: white; padding: 24px; border-top: 6px solid var(--water); }
.entry h2 { margin-top: 0; }
.entry .match { background: var(--pool); }
.login { max-width: 440px; }
.login button { margin-top: 18px; }
.score-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 22px 0; }
.score-inputs input { margin-top: 8px; font-size: 30px; text-align: center; }
.checkbox { display: flex; gap: 10px; align-items: baseline; margin: 16px 0; }
input[type=checkbox] { width: 20px; height: 20px; flex-shrink: 0; }
button { cursor: pointer; border: 0; padding: 12px 20px; border-radius: 4px; background: var(--water); color: white; font-weight: 700; }
button:hover { background: var(--deep); }
.secondary { background: white; color: var(--water); border: 1px solid var(--water); }
.secondary:hover { color: white; }
.danger { background: #a82d22; }
.clear-form { margin-top: 32px; border-top: 1px solid var(--line); }
.notice { padding: 14px 18px; background: #fff3d3; border-left: 5px solid #a56800; }
.error { background: #ffebe8; border-color: #a82d22; }
.success { background: #e1f4e6; border-color: #347b3d; }
footer { background: var(--deep); color: white; padding: 20px; text-align: center; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
    header { align-items: start; flex-direction: column; padding: 16px 20px; gap: 12px; }
    .lane-head { display: none; }
    .slot { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
    .slot h3 { font-size: 20px; }
    .mobile-pool { display: block; font-size: 13px; margin: 4px 0; }
    .pause { grid-column: auto; }
    .score-inputs { grid-template-columns: 1fr; }
    .entry { padding: 16px; }
    th, td { padding: 8px; }
}
