/* Idee: eine Seekarte bei Nacht. Nur Karte, Schraffuren und Wappen sind bunt, alles andere bleibt ruhig. */
:root {
  --sea: #0c1f27; --surface: #132a33; --raised: #1c3842; --line: #2d4d57;
  --ink: #eef1e6; --muted: #a3b8b8; --gold: #f0bd57; --rose: #f08cae; --focus: #8fc0f7;
  --display: "Palatino Linotype", Palatino, "URW Palladio L", P052, "Book Antiqua", Georgia, serif;
  --body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Noto Sans", sans-serif;
  color-scheme: dark; accent-color: var(--gold);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--sea); color: var(--ink); font: 1rem/1.6 var(--body); display: flex; flex-direction: column; min-height: 100vh; overflow-wrap: anywhere; }
h1, h2 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; font-weight: 700; }
h1 { font-size: 2.2rem; } h2 { font-size: 1.3rem; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: .2em; } a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
p { margin: 0; } main p { max-width: 65ch; }
.defs { position: absolute; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: .5rem; background: var(--ink); color: var(--sea); padding: .4rem .8rem; z-index: 20; }

.top, footer, main.wide, main.narrow, main.full > .wide, main.full > .notice { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.6rem; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.brand { font: 700 1.35rem var(--display); color: var(--gold); text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; flex: 1; }
.top nav a, .subnav a { text-decoration: none; padding: .35rem 0; color: var(--muted); } .top nav a:hover, .subnav a:hover { color: var(--ink); }
[aria-current="page"] { color: var(--ink) !important; border-bottom-color: var(--gold) !important; }
.who { display: flex; align-items: center; gap: 1rem; } .who .lang { color: var(--muted); font-size: .9rem; padding: .35rem 0; }
.me { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; max-width: 14rem; } .me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link { background: none; border: 0; padding: .35rem 0; color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); }
.shield { width: 1.5rem; height: 1.75rem; flex: none; } .shield .rim { fill: none; stroke: #d6cdac; stroke-width: 1.6; }

main { flex: 1; display: flex; flex-direction: column; gap: 1.2rem; width: 100%; }
main.narrow { max-width: 46rem; margin-inline: auto; padding-block: 2.5rem; }
main.wide, main.full > .wide { max-width: 76rem; margin-inline: auto; padding-block: 2rem; width: 100%; }
main.full > .wide { display: flex; flex-direction: column; gap: 1rem; }
footer { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; padding-block: 1.5rem; color: var(--muted); font-size: .875rem; border-top: 1px solid var(--line); } footer p { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }

.hero { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 66% 50%, #163a47, var(--sea) 70%); border-bottom: 1px solid var(--line); }
.hero canvas { display: block; width: 100%; max-width: 1500px; margin-inline: auto; } .hero canvas.hot { cursor: pointer; }
.hero-text { position: absolute; left: max(1rem, calc((100% - 76rem) / 2 + 1rem)); top: 50%; transform: translateY(-50%); width: min(22rem, 31%); display: flex; flex-direction: column; gap: 1.1rem; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.9rem); line-height: 1; }
.hero .legend { position: absolute; right: 1rem; bottom: .8rem; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .875rem; }
.status { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; white-space: nowrap; } .swatch { width: 15px; height: 15px; flex: none; }
.tip { position: fixed; z-index: 30; pointer-events: none; max-width: 18rem; padding: .35rem .7rem; background: var(--ink); color: #0c1f27; border-radius: 3px; font-size: .875rem; line-height: 1.35; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; padding: .4rem 1.1rem; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; } .btn:hover { border-color: var(--muted); }
.btn.small { min-height: 2.2rem; padding: .2rem .8rem; font-size: .9rem; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #1d1503; } .btn.primary:hover { background: #ffd27c; }
.btn.gold { border-color: #c98500; } .btn.rose, .btn.warn { border-color: #b0466d; } .btn.warn { color: var(--rose); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; } .count { margin-right: .5rem; }
.meta, small { color: var(--muted); font-size: .9rem; } .num { font-variant-numeric: tabular-nums; }
.notice { padding: .7rem 1rem; background: var(--raised); border: 1px solid #c98500; border-radius: 3px; max-width: none; } .notice.bad { border-color: #d55181; }
main.full > .notice { border-width: 0 0 1px; border-radius: 0; margin-bottom: -1.2rem; }
.empty { padding: 2.5rem 0; color: var(--muted); font: italic 1.15rem var(--display); }
.head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }

.rows { list-style: none; margin: 0; padding: 0; } .row { border-top: 1px solid var(--line); }
.row a { display: flex; align-items: center; gap: 1rem; padding: .9rem .2rem; text-decoration: none; } .row a:hover { background: var(--surface); }
.row .shield { width: 2.1rem; height: 2.4rem; } .row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; } .row strong { font: 700 1.12rem/1.3 var(--display); }
.row-side { display: flex; align-items: center; gap: 1.2rem; } .row .row-side .meta { min-width: 5.2rem; text-align: right; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; } .filters label { flex: 1 1 10rem; }
label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; min-width: 0; } label small { font-weight: 400; }
input, select, textarea { font: inherit; width: 100%; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: .55rem .7rem; min-height: 2.75rem; } textarea { resize: vertical; } ::placeholder { color: #84999b; }
[aria-invalid="true"] { border-color: #f08cae; } .err { color: var(--rose); font-size: .9rem; font-weight: 400; }
input[type="checkbox"], input[type="radio"] { width: 1.1rem; height: 1.1rem; min-height: 0; flex: none; margin: 0; }
.check { flex-direction: row; align-items: center; gap: .6rem; font-weight: 400; }
.stack { display: flex; flex-direction: column; gap: 1.4rem; } fieldset { border: 0; padding: 0; margin: 0; min-width: 0; } legend { font-weight: 600; padding: 0; margin-bottom: .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; } .chips label { font-weight: 400; } .chips input { position: absolute; opacity: 0; }
.chips span { padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; } .chips span:hover { border-color: var(--muted); } .chips input:checked + span { background: var(--ink); color: #0c1f27; border-color: var(--ink); } .chips input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; padding-top: 1rem; }

.idea { display: flex; flex-direction: column; gap: 1.2rem; } .idea > header, .crest { display: flex; gap: 1.2rem; align-items: center; } .idea > header .shield, .crest .shield { width: 4rem; height: 4.6rem; }
.facts { display: flex; flex-wrap: wrap; gap: .8rem 2.5rem; margin: 0; } dt { color: var(--muted); font-size: .9rem; } dd { margin: 0; } dd .status { font-size: 1rem; }
.text { white-space: pre-line; } .reply { background: var(--surface); padding: 1.2rem; border-radius: 3px; display: flex; flex-direction: column; gap: .6rem; }
.danger summary { color: var(--muted); cursor: pointer; width: fit-content; } .danger form { display: flex; flex-direction: column; align-items: start; gap: .8rem; padding-top: .8rem; }

.review .meta { max-width: none; } .subnav a, .top nav a { border-bottom: 2px solid transparent; }
.subnav { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; } .ranges { display: flex; gap: .3rem; } .ranges a { padding: .3rem .7rem; text-decoration: none; border-radius: 3px; color: var(--muted); } .ranges [aria-current] { background: var(--raised); color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tile { display: flex; flex-direction: column; padding: 1rem 1.1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; min-width: 0; } .tile strong { font-size: 2rem; line-height: 1.25; font-weight: 600; } .tile .meta { font-size: .82rem; } a.tile { background: var(--surface); } a.tile:hover { background: var(--raised); }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem 2.5rem; padding-top: 1rem; }
.chart { margin: 0; display: flex; flex-direction: column; gap: .8rem; min-width: 0; } .chart figcaption { font: 700 1.2rem var(--display); } .chart > svg { width: 100%; height: auto; display: block; }
.grid { stroke: var(--line); fill: none; } .tick, .cat, .val { font: 13px var(--body); fill: var(--muted); font-variant-numeric: tabular-nums; } .cat, .val { fill: var(--ink); font-size: 14px; } .bar { fill: #c98500; } .hit { fill: transparent; } [data-tip]:hover .bar, rect[data-tip]:hover { filter: brightness(1.25); }
.table summary { color: var(--muted); font-size: .9rem; cursor: pointer; width: fit-content; } .scroll { overflow-x: auto; max-width: 100%; } table { border-collapse: collapse; width: 100%; font-size: .92rem; } th, td { text-align: left; padding: .5rem .8rem .5rem 0; border-bottom: 1px solid var(--line); white-space: nowrap; } th { color: var(--muted); font-weight: 400; } .users form { display: flex; align-items: center; gap: .8rem; }
.mini { list-style: none; margin: 0; padding: 0; } .mini a { display: flex; gap: .7rem; align-items: center; padding: .35rem 0; text-decoration: none; } .mini span { flex: 1; min-width: 0; } .mini b { font-weight: 400; color: var(--muted); white-space: nowrap; }
.review { border-top: 1px solid var(--line); padding-top: 1.4rem; display: flex; flex-direction: column; gap: .8rem; } .review > header { display: flex; gap: 1rem; align-items: start; } .review > header > div:nth-child(2) { flex: 1; min-width: 0; } .review > header .shield { width: 2.4rem; height: 2.8rem; } .review .how { color: var(--muted); } .decide { display: flex; flex-direction: column; gap: .8rem; }

@media (max-width: 900px) { .charts { grid-template-columns: minmax(0, 1fr); } .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 759px) {
  h1 { font-size: 1.8rem; } .top nav { order: 3; flex-basis: 100%; } .who { margin-left: auto; gap: .8rem; } .top .me span { display: none; }
  .hero { display: flex; flex-direction: column; } .hero-text { position: static; transform: none; width: auto; padding: 1.8rem 1rem .4rem; order: -1; } .hero h1 { font-size: 2.6rem; } .hero .legend { position: static; padding: 0 1rem 1.2rem; }
  .row a { flex-wrap: wrap; gap: .4rem 1rem; } .row-side { flex-basis: 100%; padding-left: 3.1rem; } .row .row-side .meta { text-align: left; }
  .review > header { flex-wrap: wrap; } .tile strong { font-size: 1.6rem; } .tick, .cat, .val { font-size: 19px; } .actions .btn { flex: 1 1 auto; } .actions form { flex: 1 1 auto; display: flex; }
}
