:root {
    color-scheme: dark;
    --page: #0b1120;
    --panel: #141e31;
    --line: #30405b;
    --ink: #f6f3f0;
    --muted: #b9c4d6;
    --accent: #f1b88e;
    font-family: system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); line-height: 1.5; }
.wrap { width: min(100% - 2rem, 66rem); margin-inline: auto; }
.site-banner { background: #10192b; }
.banner-brand { display: block; }
.banner-brand img { display: block; width: 100%; height: auto; max-height: 23rem; object-fit: cover; object-position: center; }
.top {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #101b30;
    border-block: 1px solid #314a70;
    box-shadow: 0 .2rem .65rem rgb(0 0 0 / 28%);
}
.nav { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.nav-links { display: flex; gap: .45rem; align-items: center; min-width: 0; overflow-x: auto; padding-block: .5rem; }
a { color: inherit; }
.nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: .45rem clamp(.55rem, 2vw, 1rem);
    border: 1px solid #43648f;
    border-radius: .55rem;
    background: #203657;
    color: #f6f8ff;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .16s ease, border-color .16s ease;
}
.nav a:is(:hover, :focus-visible) { background: #31578d; border-color: #93bbf7; }
.nav a:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.nav .nav-button { flex-shrink: 0; background: #8ab7ff; border-color: #accdff; color: #0b1932; }
.nav .nav-button:is(:hover, :focus-visible) { background: #b6d3ff; border-color: #e0ecff; }
.nav .nav-button:focus-visible { outline-color: #0b1932; }
@media (prefers-reduced-motion: reduce) {
    .nav a { transition: none; }
}
html { scroll-padding-top: 4.75rem; }
#konto, #leitung { margin-top: 1.25rem; }
#konto h1, #leitung h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
.hero { padding: clamp(2rem, 6vw, 4rem) 0 2rem; }
.mode, .points { color: var(--accent); font-weight: 750; }
h1 { font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1; margin: .35rem 0 1rem; letter-spacing: -.05em; overflow-wrap: anywhere; }
h2 { margin-top: 0; font-size: 1.5rem; }
h3 { margin-top: 1.75rem; }
progress { width: min(100%, 22rem); accent-color: var(--accent); }
.muted { color: var(--muted); font-size: .9rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(.9rem, 3vw, 1.7rem); margin-bottom: 1.25rem; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .7rem .65rem; border-bottom: 1px solid var(--line); }
thead { color: var(--muted); font-size: .85rem; }
.match { padding: .8rem 0; border-top: 1px solid var(--line); }
.match:target, .notice { background: #293650; border-radius: .5rem; padding: .8rem; }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: .65rem; align-items: center; overflow-wrap: anywhere; }
.pair strong { color: var(--accent); background: var(--page); padding: .25rem .6rem; border-radius: .4rem; }
.pair span:last-child { text-align: right; }
.result { display: flex; align-items: end; flex-wrap: wrap; gap: .65rem; margin-top: .65rem; }
.settings { display: grid; gap: .75rem; justify-items: start; margin-bottom: .8rem; }
label { display: grid; gap: .25rem; overflow-wrap: anywhere; min-width: 0; }
.check { display: flex; align-items: center; }
input, textarea, button { font: inherit; border-radius: .45rem; padding: .5rem .7rem; }
input, textarea { background: var(--page); color: var(--ink); border: 1px solid var(--line); max-width: 100%; }
textarea { width: min(25rem, 76vw); }
input[type=number] { width: 6rem; }
button { background: var(--accent); color: #21140f; border: 1px solid transparent; font-weight: 700; cursor: pointer; }
.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.board-link { display: inline-block; color: var(--accent); margin: .55rem .8rem 0 0; font-size: .9rem; }
button:disabled { opacity: .5; cursor: default; }
summary { cursor: pointer; }
details form { margin-top: .75rem; }
.match-time { margin: .6rem 0; color: var(--muted); }
.match-time strong { color: var(--accent); }
.appointment-form { margin: .65rem 0; }
.player-link { text-underline-offset: .2em; }
.player-link:hover { color: var(--accent); }
.player-profile { margin-top: 1.25rem; }
.player-profile h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
.player-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 1.25rem 0 1.75rem; }
.player-stats div { background: var(--page); border-radius: .5rem; padding: .7rem; overflow-wrap: anywhere; }
.player-stats dt { color: var(--muted); }
.player-stats dd { margin: .2rem 0 0; font-size: 1.4rem; font-weight: 750; color: var(--accent); }
@media (min-width: 40rem) {
    .player-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.season-trophy { display: inline-block; width: fit-content; margin: .25rem .35rem; padding: .15rem .45rem; border: 1px solid currentColor; border-radius: .45rem; font-size: .8rem; white-space: nowrap; }
th .season-trophy { display: block; margin-inline: 0; }
.trophy-1 { color: #f5ce71; }
.trophy-2 { color: #cdd8e5; }
.trophy-3 { color: #eab38b; }
.news-post { border-top: 1px solid var(--line); padding-block: .85rem; overflow-wrap: anywhere; }
.news-post h3 { margin: .2rem 0 .4rem; }
.news-post p { margin: 0; white-space: pre-wrap; }
.news-form label { width: min(100%, 34rem); }
.news-form textarea { width: 100%; }
.news-markup img { max-width: 100%; height: auto; display: block; }
.news-markup figure { margin-inline: 0; }
.news-markup p { white-space: normal; }
.message-post { border-top: 1px solid var(--line); padding: .75rem 0; overflow-wrap: anywhere; }
.message-post time { margin-left: .5rem; }
.message-post p { white-space: pre-wrap; margin: .35rem 0 0; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
