/* Polarwolke.de - gemeinsames Design aller Seiten (hell/dunkel automatisch).
   Wird ein Jahr lang gecacht: nach Änderungen ?v=N im <link> der Seiten erhöhen. */

:root {
    color-scheme: light dark;
    --bg: #f6f7f9;
    --surface: #ffffff;
    --text: #14171c;
    --muted: #5b6472;
    --line: #e1e5ea;
    --accent: #0b5fd0;
    --accent-soft: #e8f0fc;
    --ok: #1a7f37;
    --err: #b3261e;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
    --radius: 14px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1216;
        --surface: #171b21;
        --text: #e8ebf0;
        --muted: #9aa4b2;
        --line: #272d36;
        --accent: #6aa8ff;
        --accent-soft: #172437;
        --ok: #56d364;
        --err: #ff7b72;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, sans-serif;
}

h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: 1.2rem; line-height: 1.3; }
a { color: var(--accent); }
code { font: .9em ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Navigation */
.nav { border-bottom: 1px solid var(--line); background: var(--surface); }
.nav-inner {
    max-width: 1040px; margin: 0 auto; padding: 12px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.nav li a {
    display: block; padding: 6px 12px; border-radius: 8px;
    color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.nav li a:hover { color: var(--text); background: var(--bg); }
.nav li a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

/* Layout */
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px 64px; flex: 1; }
.center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 64px; }
.center > * + * { margin-top: 16px; }
.hero { padding: clamp(40px, 9vw, 88px) 0 clamp(28px, 5vw, 48px); max-width: 720px; }
.lead { margin-top: 16px; font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.section { margin-top: 40px; }
.section > h2 { margin-bottom: 16px; }
.muted { color: var(--muted); }

/* Karten */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
    display: block; padding: 24px; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    color: inherit; text-decoration: none;
}
.card p { margin-top: 8px; color: var(--muted); font-size: .98rem; }
.card .icon { display: block; font-size: 1.8rem; line-height: 1; margin-bottom: 14px; }
a.card { transition: transform .15s ease, border-color .15s ease; }
a.card:hover { transform: translateY(-2px); border-color: var(--accent); }
a.card h2::after { content: " →"; color: var(--accent); }

/* Kennzahlen */
.tile { padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tile .label { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tile .value { margin-top: 6px; font-size: 1.5rem; font-weight: 700; }
.online { color: var(--ok); }
.offline { color: var(--err); }

/* Server-Adresse mit Kopier-Knopf */
.addr {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 16px 20px; margin-bottom: 16px; background: var(--accent-soft);
    border: 1px solid var(--accent); border-radius: var(--radius);
}
.addr code { font-size: 1.25rem; font-weight: 700; color: var(--accent); }

.btn {
    display: inline-block; padding: 10px 18px; border: 1px solid var(--accent); border-radius: 10px;
    background: var(--accent); color: var(--surface); font: inherit; font-weight: 600;
    text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 6px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; }

.steps { margin: 0; padding-left: 1.3em; }
.steps li + li { margin-top: 6px; }

.note { padding: 14px 18px; border-left: 4px solid var(--accent); border-radius: 8px; background: var(--accent-soft); text-align: left; }

/* Listen (Mod-Downloads) */
.search {
    width: 100%; padding: 12px 16px; margin-bottom: 16px; font: inherit; color: inherit;
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.list { margin: 0; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list li + li { border-top: 1px solid var(--line); }
.list a { display: block; padding: 12px 18px; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.list a:hover { background: var(--accent-soft); color: var(--accent); }

.big { font-size: clamp(5rem, 22vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--accent); }

footer { padding: 24px 20px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
