/* ==========================================================================
   LoiNetwork – Serverübersicht
   Farben angelehnt ans Logo: Tiefblau #0400b4 + Schwarz
   ========================================================================== */

:root {
    color-scheme: light;

    --brand: #0400b4;
    --brand-600: #0300a0;
    --brand-700: #02007a;
    --brand-900: #01003d;
    --brand-bright: #2c4bff;
    --brand-soft: #eceeff;
    --brand-text: #0400b4;      /* Markenblau als Textfarbe */

    --ink: #0b0d1f;
    --ink-2: #2a2e47;
    --muted: #61688a;
    --line: #e2e5f1;
    --line-strong: #cfd4e6;
    --bg: #eef1f8;
    --card: #ffffff;
    --card-border: #d8ddeb;
    --mix: #ffffff;             /* Basis zum Aufhellen von Spielfarben */
    --field-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, .86);
    --chip-active-bg: #0b0d1f;
    --chip-active-fg: #ffffff;
    --toast-bg: #0b0d1f;

    --ok: #12a150;
    --ok-soft: #e3f7eb;
    --ok-text: #0b7a3b;
    --ok-border: #bfe9cf;
    --bad: #dc3545;
    --bad-soft: #fde8ea;
    --bad-text: #b42332;
    --bad-border: #f6c4ca;
    --warn: #d99a00;
    --unk: #8a91ad;
    --unk-soft: #eef0f6;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(10, 14, 60, .06), 0 1px 1px rgba(10, 14, 60, .04);
    --shadow: 0 2px 4px rgba(10, 14, 60, .04), 0 12px 32px -12px rgba(10, 14, 60, .16);
    --shadow-lg: 0 4px 8px rgba(10, 14, 60, .05), 0 24px 56px -16px rgba(4, 0, 180, .28);
    --shadow-card: 0 1px 2px rgba(10, 14, 60, .07), 0 10px 28px -14px rgba(10, 14, 60, .22);

    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* ---------- Dark Mode ----------
   Automatisch nach Systemeinstellung, oder manuell über den Umschalter (data-theme). */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --brand-soft: rgba(96, 116, 255, .16);
        --brand-text: #9aa8ff;
        --ink: #e9ecf8;
        --ink-2: #c4c9e0;
        --muted: #8e95b5;
        --line: #252c4d;
        --line-strong: #333b63;
        --bg: #090c1c;
        --card: #121733;
        --card-border: #262e55;
        --mix: #121733;
        --field-bg: #0d1129;
        --header-bg: rgba(12, 15, 36, .82);
        --chip-active-bg: #e9ecf8;
        --chip-active-fg: #0b0d1f;
        --toast-bg: #2a3366;
        --ok: #3dd68c;
        --ok-soft: rgba(61, 214, 140, .14);
        --ok-text: #6fe3a9;
        --ok-border: rgba(61, 214, 140, .3);
        --bad: #ff6b78;
        --bad-soft: rgba(255, 107, 120, .14);
        --bad-text: #ff9aa3;
        --bad-border: rgba(255, 107, 120, .3);
        --warn: #f2b632;
        --unk: #8e95b5;
        --unk-soft: #1c2244;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
        --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
        --shadow-lg: 0 4px 8px rgba(0, 0, 0, .35), 0 24px 56px -16px rgba(44, 75, 255, .35);
        --shadow-card: 0 1px 2px rgba(0, 0, 0, .45), 0 12px 30px -14px rgba(0, 0, 0, .7);
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --brand-soft: rgba(96, 116, 255, .16);
    --brand-text: #9aa8ff;
    --ink: #e9ecf8;
    --ink-2: #c4c9e0;
    --muted: #8e95b5;
    --line: #252c4d;
    --line-strong: #333b63;
    --bg: #090c1c;
    --card: #121733;
    --card-border: #262e55;
    --mix: #121733;
    --field-bg: #0d1129;
    --header-bg: rgba(12, 15, 36, .82);
    --chip-active-bg: #e9ecf8;
    --chip-active-fg: #0b0d1f;
    --toast-bg: #2a3366;
    --ok: #3dd68c;
    --ok-soft: rgba(61, 214, 140, .14);
    --ok-text: #6fe3a9;
    --ok-border: rgba(61, 214, 140, .3);
    --bad: #ff6b78;
    --bad-soft: rgba(255, 107, 120, .14);
    --bad-text: #ff9aa3;
    --bad-border: rgba(255, 107, 120, .3);
        --warn: #f2b632;
    --unk: #8e95b5;
    --unk-soft: #1c2244;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, .35), 0 24px 56px -16px rgba(44, 75, 255, .35);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .45), 0 12px 30px -14px rgba(0, 0, 0, .7);
}

/* Logo: dunkle Variante im Dark Mode */
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo-light { display: none !important; }
    :root:not([data-theme="light"]) .logo-dark { display: block !important; }
}
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }

/* Umschalter hell/dunkel */
.theme-toggle {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    display: grid; place-items: center; cursor: pointer;
    color: var(--ink-2); background: transparent; border: 1px solid var(--line);
    transition: background .15s, color .15s, border-color .15s;
}
.theme-toggle:hover { background: var(--brand-soft); color: var(--brand-text); border-color: var(--brand-soft); }
/* Im hellen Modus Mond zeigen (→ dunkel), im dunklen Modus Sonne (→ hell) */
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
    :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
}
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

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

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
main { flex: 1; min-width: 0; width: 100%; }

a { color: var(--brand-text); text-decoration: none; }
a:hover { color: var(--brand-bright); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
code { font-family: var(--mono); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

:focus-visible { outline: 3px solid rgba(44, 75, 255, .45); outline-offset: 2px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand-badge {
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    color: #fff; background: var(--brand); padding: 3px 8px; border-radius: 999px;
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a, .nav-button {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 10px;
    color: var(--ink-2); font-weight: 600; font-size: .95rem;
    background: none; border: 0; cursor: pointer; font-family: inherit;
    transition: background .15s, color .15s;
}
.main-nav a:hover, .nav-button:hover { background: var(--brand-soft); color: var(--brand-text); }
.main-nav a.is-active { color: var(--brand-text); background: var(--brand-soft); }
.nav-admin { border: 1px solid var(--line); }
.inline-form { display: inline; margin: 0; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; isolation: isolate;
    color: #fff;
    padding: 40px 0 92px;
}
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(80, 110, 255, .55), transparent 60%),
        radial-gradient(700px 380px at 0% 110%, rgba(0, 200, 255, .18), transparent 60%),
        linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 35%, var(--brand) 70%, #1530e6 100%);
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 70%);
}
.hero-inner { position: relative; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
    font-size: .85rem; font-weight: 600; letter-spacing: .02em;
}
.pulse {
    width: 8px; height: 8px; border-radius: 50%; background: #3ee08a;
    box-shadow: 0 0 0 0 rgba(62, 224, 138, .7);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(62, 224, 138, .6); }
    70% { box-shadow: 0 0 0 10px rgba(62, 224, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(62, 224, 138, 0); }
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin: 12px 0 6px; letter-spacing: -.025em; }
.lead { font-size: 1.08rem; max-width: 620px; color: rgba(255, 255, 255, .82); margin: 0; }

.stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.stat {
    min-width: 140px; padding: 11px 18px; border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; flex-direction: column;
}
.stat-value { font-size: 1.6rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .85rem; color: rgba(255, 255, 255, .72); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Toolbar ---------- */
.servers-section { margin-top: -64px; position: relative; padding-bottom: 64px; }
.toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 12px; box-shadow: var(--shadow); margin-bottom: 24px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.chip {
    --game: var(--brand);
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; border-radius: 999px;
    background: transparent; border: 1px solid var(--line);
    font: 600 .9rem var(--font); color: var(--ink-2); cursor: pointer;
    transition: all .15s;
}
.chip svg { color: var(--game); }
.chip:hover { border-color: var(--line-strong); background: var(--bg); }
.chip.is-active { background: var(--chip-active-bg); color: var(--chip-active-fg); border-color: var(--chip-active-bg); }
.chip.is-active svg { color: var(--chip-active-fg); }
.chip-count {
    font-size: .75rem; min-width: 20px; padding: 1px 6px; border-radius: 999px;
    background: var(--unk-soft); color: var(--muted); text-align: center;
}
.chip.is-active .chip-count { background: rgba(127, 127, 127, .25); color: var(--chip-active-fg); }

.search {
    display: flex; align-items: center; gap: 8px; color: var(--muted);
    background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
    padding: 0 14px; min-width: 240px; flex: 0 1 300px;
    transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--brand-bright); box-shadow: 0 0 0 4px rgba(44, 75, 255, .12); }
.search input { border: 0; outline: 0; background: transparent; font: inherit; padding: 9px 0; width: 100%; color: var(--ink); }

/* ---------- Server-Karten ---------- */
.server-grid {
    display: grid; gap: 28px;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
}
.server-card {
    --game: var(--brand);
    position: relative;
    display: flex; flex-direction: column; gap: 16px;
    background: var(--card);
    /* Rahmen: oben dick in Spielfarbe, Rest dünn in Statusfarbe (siehe data-status) */
    border: 1.5px solid var(--card-border);
    border-top: 7px solid var(--game);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-card);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
    overflow: hidden;
    animation: card-in .45s ease backwards;
}
.server-card > :empty:not(.featured-badge) { display: none; }

/* Gleiche Höhen über alle Karten einer Reihe: Jede Karte hat 8 Bereiche
   (Kopf, Beschreibung, Adresse, Infos, Balken, Tags, Buttons, Hinweis),
   die per Subgrid an gemeinsamen Zeilen ausgerichtet werden. */
@supports (grid-template-rows: subgrid) {
    .server-card {
        display: grid;
        grid-row: span 8;
        grid-template-rows: subgrid;
        row-gap: 0;
    }
    .server-card > :not(.featured-badge) { margin-top: 14px; }
    .server-card > .card-head { margin-top: 0; }
    .server-card > :empty:not(.featured-badge) { display: block; margin-top: 0; }
    .server-card > .players-bar { margin-top: 12px; align-self: start; }
    .server-card > .card-actions { margin-top: 18px; padding-top: 0; }
    .server-card > .card-hint { margin-top: 12px; }
}
.server-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.server-card:nth-child(2) { animation-delay: .04s; }
.server-card:nth-child(3) { animation-delay: .08s; }
.server-card:nth-child(4) { animation-delay: .12s; }
.server-card:nth-child(5) { animation-delay: .16s; }
.server-card:nth-child(n+6) { animation-delay: .2s; }

.featured-badge {
    position: absolute; top: 14px; right: -34px; z-index: 2;
    transform: rotate(35deg);
    background: linear-gradient(90deg, var(--brand), var(--brand-bright));
    color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 4px 38px; display: flex; align-items: center; gap: 4px;
    box-shadow: 0 4px 12px rgba(4, 0, 180, .3);
}
.server-card.is-featured .card-head { padding-right: 46px; }

/* Oben ausgerichtet: Icon, Spielname, Titel und Status beginnen bei allen Karten auf derselben Höhe –
   auch wenn ein Servername über mehrere Zeilen geht */
.card-head { display: flex; align-items: flex-start; gap: 14px; }
.card-head .card-title { padding-top: 3px; }
.card-head .status-pill, .card-head-badges { margin-top: 4px; }
.card-head-badges .status-pill { margin-top: 0; }
.game-icon {
    flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center;
    color: var(--game);
    background: color-mix(in srgb, var(--game) 12%, var(--mix));
    border: 1px solid color-mix(in srgb, var(--game) 22%, var(--mix));
}
.game-icon.small { width: 38px; height: 38px; border-radius: 10px; }
.card-title { flex: 1; min-width: 0; }
.game-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--game); }
.card-title h2 { font-size: 1.25rem; font-weight: 750; overflow-wrap: anywhere; line-height: 1.25; margin-top: 2px; }

.status-pill {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 11px; border-radius: 999px;
    font-size: .8rem; font-weight: 700; white-space: nowrap;
    background: var(--unk-soft); color: var(--unk);
}
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
/* Online/Offline als kräftige, farbige Pillen */
.status-pill.is-online {
    color: #fff; background: linear-gradient(135deg, #1fbf6a, #0f9a52);
    box-shadow: 0 4px 14px -4px rgba(18, 161, 80, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.status-pill.is-online i { background: #fff; animation: pulse-white 2s infinite; }
.status-pill.is-offline {
    color: #fff; background: linear-gradient(135deg, #f0475a, #c9283b);
    box-shadow: 0 4px 14px -4px rgba(220, 53, 69, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.status-pill.is-offline i { background: #fff; }
@keyframes pulse-white {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); }
    70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Status: Rahmen links/unten/rechts grün bzw. rot, oben bleibt die Spielfarbe */
.server-card { transition: transform .2s ease, box-shadow .2s ease, border-color .4s ease; }
.server-card[data-status="online"] {
    border-color: var(--game) var(--ok) var(--ok) var(--ok);
    box-shadow: var(--shadow-card), 0 12px 30px -20px color-mix(in srgb, var(--ok) 70%, transparent);
}
.server-card[data-status="offline"] {
    border-color: var(--game) var(--bad) var(--bad) var(--bad);
    box-shadow: var(--shadow-card), 0 12px 30px -20px color-mix(in srgb, var(--bad) 70%, transparent);
}
.server-card[data-status="online"]:hover { box-shadow: var(--shadow-lg), 0 16px 36px -18px color-mix(in srgb, var(--ok) 80%, transparent); }
.server-card[data-status="offline"]:hover { box-shadow: var(--shadow-lg), 0 16px 36px -18px color-mix(in srgb, var(--bad) 80%, transparent); }
.server-card[data-status="offline"] .game-icon { color: var(--unk); background: var(--unk-soft); border-color: var(--line); }

.game-icon { position: relative; }
.server-card[data-status="online"] .game-icon::after,
.server-card[data-status="offline"] .game-icon::after {
    content: ""; position: absolute; right: -4px; bottom: -4px;
    width: 15px; height: 15px; border-radius: 50%;
    border: 3px solid var(--card);
}
.server-card[data-status="online"] .game-icon::after { background: var(--ok); box-shadow: 0 0 10px color-mix(in srgb, var(--ok) 80%, transparent); }
.server-card[data-status="offline"] .game-icon::after { background: var(--bad); }
.status-pill.is-loading i { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25; } }
@keyframes pulse-ok {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
    70% { box-shadow: 0 0 0 7px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

.card-desc { margin: 0; color: var(--ink-2); font-size: .95rem; }

.address {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
    padding: 8px 8px 8px 14px;
}
.address-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.address-value { flex: 1; min-width: 0; font-size: .98rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; line-height: 1.35; }
.icon-btn {
    flex-shrink: 0; width: 36px; height: 36px; display: grid; place-items: center;
    border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
    cursor: pointer; transition: all .15s;
}
.icon-btn:hover { color: var(--brand-text); border-color: var(--brand-text); }
.icon-btn.is-copied { color: #fff; background: var(--ok); border-color: var(--ok); }

.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin: 0; }
.meta-item { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg); }
.meta dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.meta dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.players-bar { height: 6px; border-radius: 999px; background: var(--unk-soft); overflow: hidden; margin-top: -6px; }
.players-bar span {
    display: block; height: 100%; width: 0; border-radius: inherit;
    background: linear-gradient(90deg, var(--game), color-mix(in srgb, var(--game) 55%, var(--mix)));
    transition: width .8s cubic-bezier(.2, .8, .2, 1);
}

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.tags li {
    font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
    color: var(--brand-text); background: var(--brand-soft);
}

.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.card-actions .btn-primary { flex: 1; }
.card-hint { margin: -6px 0 0; font-size: .8rem; color: var(--muted); display: flex; align-items: flex-start; gap: 6px; }
.card-hint svg { flex-shrink: 0; margin-top: 3px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
    font: 650 .95rem var(--font); cursor: pointer; white-space: nowrap;
    transition: transform .1s, box-shadow .15s, background .15s, color .15s, border-color .15s;
    text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #1a1cd0, var(--brand));
    box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 6px 16px -6px rgba(4, 0, 180, .6);
}
.btn-primary:hover { color: #fff; background: linear-gradient(180deg, #2a31ff, #0806c8); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 10px 22px -8px rgba(4, 0, 180, .7); }
.btn-ghost { color: var(--ink-2); background: var(--card); border-color: var(--line); }
.btn-ghost:hover { color: var(--brand-text); border-color: var(--brand-text); background: var(--brand-soft); }
.btn-icon { padding: 10px; }
.btn-danger:hover { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); }
.btn-block { width: 100%; }

/* ---------- Leer-Zustand / Hinweise ---------- */
.empty-state {
    text-align: center; padding: 56px 24px; color: var(--muted);
    background: var(--card); border: 1px dashed var(--line-strong); border-radius: var(--radius);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.empty-state h3 { color: var(--ink); font-size: 1.2rem; margin-top: 6px; }
.empty-state p { margin: 0 0 10px; }
.refresh-note { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: .82rem; margin-top: 28px; }

.toast {
    position: fixed; left: 50%; bottom: 28px; z-index: 100;
    transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    background: var(--toast-bg); color: #fff; padding: 12px 20px; border-radius: 12px;
    font-weight: 600; font-size: .92rem; box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
    transition: all .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Detail-Popup ---------- */
html.modal-open { overflow: hidden; }
.server-card { cursor: pointer; }
.server-card:focus-visible { outline: 3px solid rgba(44, 75, 255, .55); outline-offset: 3px; border-radius: var(--radius); }

.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.modal-backdrop {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(20, 24, 120, .45), rgba(2, 1, 30, .72));
    backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
    opacity: 0; transition: opacity .3s ease;
}
.modal-dialog {
    --game: var(--brand);
    position: relative; width: 100%; max-width: 660px;
    max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
    display: flex; flex-direction: column;
    background: var(--card); border-radius: 26px; overflow: hidden; outline: none;
    box-shadow: 0 50px 120px -30px rgba(2, 0, 60, .75), 0 0 0 1px rgba(255, 255, 255, .08);
    opacity: 0; transform: translateY(28px) scale(.95);
    transition: opacity .25s ease, transform .45s cubic-bezier(.2, 1, .3, 1);
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-dialog { opacity: 1; transform: none; }

/* Kopfbereich in Spielfarbe */
.modal-hero {
    position: relative; isolation: isolate; overflow: hidden; flex-shrink: 0;
    color: #fff; padding: 30px 30px 24px;
    background:
        radial-gradient(420px 220px at 100% 0%, rgba(255, 255, 255, .22), transparent 70%),
        linear-gradient(135deg, color-mix(in srgb, var(--game) 70%, #02003d) 0%, color-mix(in srgb, var(--game) 25%, var(--brand-700)) 55%, var(--brand) 100%);
}
.modal-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: linear-gradient(200deg, #000 10%, transparent 75%);
    mask-image: linear-gradient(200deg, #000 10%, transparent 75%);
}
.modal-hero::after {
    content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; right: -60px; bottom: -140px;
    border-radius: 50%; background: var(--game); filter: blur(70px); opacity: .55;
}
.modal-close {
    position: absolute; top: 16px; right: 16px; z-index: 2;
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    color: #fff; cursor: pointer;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
    transition: background .2s, transform .3s;
}
.modal-close:hover { background: rgba(255, 255, 255, .26); transform: rotate(90deg); }
.modal-hero-inner { display: flex; align-items: center; gap: 18px; padding-right: 44px; }
.modal-icon {
    flex-shrink: 0; width: 76px; height: 76px; border-radius: 22px;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(145deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .08));
    border: 1px solid rgba(255, 255, 255, .3);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
    animation: float 6s ease-in-out infinite;
}
.modal-icon svg { width: 38px; height: 38px; }
@keyframes float { 50% { transform: translateY(-5px) rotate(-2deg); } }
.modal-heading { min-width: 0; }
.modal-game { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.modal-heading h2 { font-size: clamp(1.45rem, 4.2vw, 2rem); font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; margin-top: 2px; }
.modal-motd { margin: 6px 0 0; font-size: .95rem; opacity: .82; overflow-wrap: anywhere; }
.modal-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.modal-badge, .status-pill.on-dark {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700;
    color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .24);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.status-pill.on-dark.is-unknown { color: #fff; background: rgba(255, 255, 255, .14); }
.status-pill.on-dark.is-online { background: linear-gradient(135deg, #1fbf6a, #0f9a52); border-color: rgba(120, 255, 180, .45); }
.status-pill.on-dark.is-offline { background: linear-gradient(135deg, #f0475a, #c9283b); border-color: rgba(255, 150, 160, .45); }
.status-pill.on-dark.is-unknown i { background: #c6cae0; }

/* Inhalt */
.modal-body {
    flex: 1; overflow-y: auto; overscroll-behavior: contain;
    padding: 26px 30px; display: flex; flex-direction: column; gap: 24px;
}
.modal-connect {
    display: grid; gap: 14px; padding: 18px;
    border-radius: 18px; border: 1px solid var(--line);
    background:
        linear-gradient(var(--card), var(--card)) padding-box,
        linear-gradient(135deg, color-mix(in srgb, var(--game) 45%, var(--line)), var(--line) 60%) border-box;
    border: 1.5px solid transparent;
    box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--game) 60%, transparent);
}
.modal-address { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.modal-address span { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.modal-address code { font-size: 1.3rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; line-height: 1.3; }
.modal-connect-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.modal-connect-actions .btn { flex: 1 1 140px; }
.modal-connect-actions .btn-primary { flex-grow: 2; }

.modal-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stat-tile {
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
    padding: 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line);
}
.stat-tile-icon {
    grid-row: span 2; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
    color: var(--game); background: color-mix(in srgb, var(--game) 13%, var(--mix));
}
.stat-tile-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.stat-tile-value { font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.25; }
.stat-tile.is-online .stat-tile-value { color: var(--ok); }
.stat-tile.is-online .stat-tile-icon { color: var(--ok); background: var(--ok-soft); }
.stat-tile.is-offline .stat-tile-value { color: var(--bad); }
.stat-tile.is-offline .stat-tile-icon { color: var(--bad); background: var(--bad-soft); }

.modal-capacity { padding: 16px 18px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.cap-head { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.cap-head span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.cap-bar { height: 10px; border-radius: 999px; background: var(--unk-soft); overflow: hidden; margin: 10px 0; }
.cap-bar span {
    display: block; height: 100%; width: 0; border-radius: inherit;
    background: linear-gradient(90deg, var(--game), color-mix(in srgb, var(--game) 50%, var(--mix)));
    box-shadow: 0 0 12px color-mix(in srgb, var(--game) 60%, transparent);
    transition: width 1.1s cubic-bezier(.2, .8, .2, 1);
}
.modal-capacity p { margin: 0; font-size: .92rem; color: var(--ink-2); }

.modal-section h3 {
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
    font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--muted);
}
.modal-section h3 svg { color: var(--game); }
.modal-desc { margin: 0; color: var(--ink-2); line-height: 1.7; }
.modal-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: none; }
.modal-steps li { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--ink-2); }
.step-num {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    font-size: .85rem; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--game), color-mix(in srgb, var(--game) 55%, var(--brand)));
    box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--game) 70%, transparent);
}
.modal-steps code { background: var(--brand-soft); color: var(--brand-text); padding: 2px 7px; border-radius: 6px; font-size: .9em; overflow-wrap: anywhere; }

.modal-foot {
    flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 14px 30px; border-top: 1px solid var(--line); background: var(--bg);
}
.modal-foot:not(:has(> :not([hidden]))) { display: none; }
.modal-updated { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); }
.modal-foot .btn { padding: 9px 14px; font-size: .88rem; }

@media (max-width: 600px) {
    .modal { padding: 0; align-items: end; }
    .modal-dialog {
        max-width: none; border-radius: 24px 24px 0 0;
        max-height: 92vh; max-height: 92dvh;
        transform: translateY(100%);
    }
    .modal-dialog::before {
        content: ""; position: absolute; top: 8px; left: 50%; z-index: 3;
        width: 42px; height: 5px; margin-left: -21px; border-radius: 999px; background: rgba(255, 255, 255, .55);
    }
    .modal-hero { padding: 26px 20px 20px; }
    .modal-hero-inner { gap: 14px; }
    .modal-icon { width: 60px; height: 60px; border-radius: 18px; }
    .modal-icon svg { width: 30px; height: 30px; }
    .modal-body { padding: 20px; gap: 20px; }
    .modal-foot { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
    .modal-stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- Ankündigungs-Banner (im blauen Kopfbereich) ---------- */
.announcement {
    --ann: #8fa6ff;
    position: relative; display: flex; align-items: center; gap: 14px;
    margin-bottom: 22px; padding: 14px 16px 14px 14px;
    border-radius: 16px; color: #fff;
    background: linear-gradient(100deg, color-mix(in srgb, var(--ann) 22%, rgba(255, 255, 255, .08)), rgba(255, 255, 255, .06) 60%);
    border: 1px solid color-mix(in srgb, var(--ann) 45%, rgba(255, 255, 255, .15));
    box-shadow: 0 12px 30px -16px color-mix(in srgb, var(--ann) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    animation: ann-in .5s cubic-bezier(.2, .9, .3, 1) both;
    transition: opacity .25s ease, transform .25s ease;
}
.announcement::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--ann); box-shadow: 0 0 14px var(--ann);
}
.announcement.is-leaving { opacity: 0; transform: translateY(-6px) scale(.98); }
@keyframes ann-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.ann-info { --ann: #8fa6ff; }
.ann-maintenance { --ann: #ffb547; }
.ann-warning { --ann: #ff6b7a; }
.ann-success { --ann: #44e09a; }
.ann-icon {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    color: #0b0d1f; background: var(--ann);
    box-shadow: 0 6px 16px -6px var(--ann);
}
.ann-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ann-kicker { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ann); }
.ann-title { font-size: 1.02rem; line-height: 1.3; }
.ann-text { margin: 2px 0 0; font-size: .93rem; color: rgba(255, 255, 255, .85); white-space: pre-line; overflow-wrap: anywhere; }
.ann-link {
    flex-shrink: 0; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: .88rem; white-space: nowrap;
    color: #0b0d1f; background: #fff; transition: transform .15s, box-shadow .15s;
}
.ann-link:hover { color: #0b0d1f; transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); }
.ann-close {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; cursor: pointer;
    color: rgba(255, 255, 255, .8); background: transparent; border: 1px solid transparent;
}
.ann-close:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); }

/* Admin: Vorschau & Art-Auswahl */
.ann-preview-wrap { margin-bottom: 22px; }
.ann-preview-label { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ann-preview-stage {
    position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); padding: 22px 20px 4px;
    background:
        radial-gradient(600px 200px at 90% -10%, rgba(80, 110, 255, .55), transparent 60%),
        linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 40%, var(--brand) 100%);
}
.ann-preview-stage .announcement.is-off { opacity: .45; filter: grayscale(.6); }
.ann-type-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ann-type { cursor: pointer; }
.ann-type input { position: absolute; opacity: 0; pointer-events: none; }
.ann-type-inner {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--line); background: var(--field-bg); font-weight: 650; font-size: .92rem; transition: all .15s;
}
.ann-type .ann-icon { width: 30px; height: 30px; border-radius: 9px; box-shadow: none; }
.ann-type input:checked + .ann-type-inner { border-color: var(--ann); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ann) 25%, transparent); }
.ann-type input:focus-visible + .ann-type-inner { outline: 3px solid rgba(44, 75, 255, .45); }
.badge-ok { background: var(--ok-soft); color: var(--ok-text); }
.badge-lg { font-size: .85rem; padding: 6px 12px; }

/* ---------- Statistiken im Popup ---------- */
.stats-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.stats-head h3 { margin: 0; }
.range-tabs { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--bg); border: 1px solid var(--line); }
.range-tabs button {
    border: 0; background: transparent; cursor: pointer; font: 700 .8rem var(--font); color: var(--muted);
    padding: 6px 11px; border-radius: 8px; transition: background .15s, color .15s;
}
.range-tabs button:hover { color: var(--ink); }
.range-tabs button.is-active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }

.history { position: relative; display: flex; flex-direction: column; gap: 16px; transition: opacity .2s; }
.history.is-loading { opacity: .45; pointer-events: none; }
.history-skeleton {
    height: 290px; border-radius: 16px;
    background: linear-gradient(90deg, var(--bg) 25%, color-mix(in srgb, var(--line) 70%, var(--bg)) 50%, var(--bg) 75%) 0 0 / 300% 100%;
    animation: skeleton 1.3s linear infinite;
}
@keyframes skeleton { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.history-empty {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
    padding: 28px 18px; border-radius: 16px; border: 1px dashed var(--line-strong); color: var(--muted);
}
.history-empty svg { color: var(--game); }
.history-empty strong { color: var(--ink); }
.history-empty p { margin: 0; font-size: .9rem; }

.history-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.h-tile { padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.h-tile-label { display: flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.h-tile-label svg { color: var(--game); flex-shrink: 0; }
.h-tile strong { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.h-tile small { font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-tile.is-good .h-tile-label svg { color: var(--ok); }
.h-tile.is-warn .h-tile-label svg { color: var(--warn); }
.h-tile.is-bad .h-tile-label svg { color: var(--bad); }

.chart-block { padding: 14px 14px 12px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.chart-title { font-size: .78rem; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.chart { width: 100%; }
.chart svg { display: block; overflow: visible; touch-action: pan-y; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { fill: var(--muted); font: 600 11px var(--font); font-variant-numeric: tabular-nums; }
.chart-line { fill: none; stroke: var(--game); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-grad-top { stop-color: var(--game); stop-opacity: .32; }
.chart-grad-bottom { stop-color: var(--game); stop-opacity: 0; }
.chart-cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-dot { fill: var(--game); stroke: var(--bg); stroke-width: 2; }
.chart-hit { fill: transparent; cursor: crosshair; }

.uptime-strip { display: flex; gap: 2px; height: 28px; }
.uptime-strip span { flex: 1; min-width: 2px; border-radius: 4px; transition: transform .15s, filter .15s; cursor: default; }
.uptime-strip span:hover { transform: scaleY(1.15); filter: brightness(1.1); }
.seg-up { background: var(--ok); }
.seg-partial { background: var(--warn); }
.seg-down { background: var(--bad); }
.seg-none { background: var(--unk-soft); box-shadow: inset 0 0 0 1px var(--line-strong); }
.uptime-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.uptime-legend span { display: inline-flex; align-items: center; gap: 6px; }
.uptime-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.chart-tooltip {
    position: absolute; z-index: 5; pointer-events: none; min-width: 140px; max-width: 260px;
    padding: 9px 12px; border-radius: 11px; font-size: .82rem; line-height: 1.45; color: var(--ink);
    background: var(--card); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.tip-time { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.tip-muted { color: var(--muted); }

@media (max-width: 600px) {
    .announcement { flex-wrap: wrap; padding: 12px; gap: 10px 12px; }
    .ann-body { flex-basis: calc(100% - 100px); }
    .ann-link { order: 3; margin-left: 52px; }
    .ann-close { position: absolute; top: 8px; right: 8px; }
    .history-tiles { grid-template-columns: 1fr 1fr; }
    .history-tiles .h-tile:first-child { grid-column: span 2; }
}

/* ---------- Countdown bis zur nächsten Aktualisierung ---------- */
.live-eyebrow { flex-wrap: wrap; }
.refresh-timer {
    display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, .25); font-weight: 600; color: rgba(255, 255, 255, .82);
}
.refresh-timer b { font-variant-numeric: tabular-nums; color: #fff; min-width: 2.6ch; display: inline-block; }
.refresh-ring { width: 16px; height: 16px; transform: rotate(-90deg); }
.refresh-ring circle { fill: none; stroke-width: 2.5; stroke: rgba(255, 255, 255, .22); }
.refresh-ring .refresh-ring-fill {
    stroke: #3ee08a; stroke-linecap: round; stroke-dasharray: 50.27; stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}
.refresh-timer.is-loading .refresh-ring { animation: spin .8s linear infinite; }
.refresh-timer.is-loading .refresh-ring-fill { stroke-dashoffset: 35 !important; transition: none; }
@keyframes spin { to { transform: rotate(270deg); } }
@media (max-width: 480px) { .refresh-label { font-size: .8rem; } }

/* ---------- Animation bei Statuswechsel ---------- */
/* Druckwelle, die sich von der Status-Pille aus über die Karte ausbreitet */
.status-burst {
    position: absolute; z-index: 3; width: 24px; height: 24px; margin: -12px 0 0 -12px;
    border-radius: 50%; pointer-events: none;
}
.status-burst::before, .status-burst::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 3px solid var(--burst); animation: burst 1.3s cubic-bezier(.15, .7, .3, 1) forwards;
}
.status-burst::after { border-width: 0; background: radial-gradient(circle, color-mix(in srgb, var(--burst) 45%, transparent), transparent 70%); animation-duration: 1s; }
.status-burst.is-online { --burst: #22c46e; }
.status-burst.is-offline { --burst: #ef4456; }
@keyframes burst {
    0% { transform: scale(.4); opacity: 1; }
    100% { transform: scale(22); opacity: 0; }
}

/* Lichtstreifen, der einmal schräg über die Karte läuft */
.server-card.flash-online, .server-card.flash-offline { --flash: #22c46e; }
.server-card.flash-offline { --flash: #ef4456; }
.server-card.flash-online::after, .server-card.flash-offline::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
    background: linear-gradient(105deg, transparent 30%, color-mix(in srgb, var(--flash) 28%, transparent) 50%, transparent 70%);
    background-size: 250% 100%;
    animation: sweep 1.2s ease-out .15s both;
}
@keyframes sweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.server-card.flash-online, .server-card.flash-offline { animation: card-in .45s ease backwards, card-glow 2.4s ease-out; animation-delay: 0s, 0s; }
@keyframes card-glow {
    0% { box-shadow: var(--shadow-card), 0 0 0 0 color-mix(in srgb, var(--flash) 70%, transparent); }
    18% { box-shadow: var(--shadow-card), 0 0 0 6px color-mix(in srgb, var(--flash) 35%, transparent), 0 0 40px 4px color-mix(in srgb, var(--flash) 45%, transparent); }
    100% { box-shadow: var(--shadow-card), 0 0 0 0 transparent; }
}
/* Status-Pille dreht sich um, der Punkt am Icon ploppt auf */
.flash-online .status-pill, .flash-offline .status-pill { animation: pill-flip .7s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes pill-flip {
    0% { transform: perspective(300px) rotateX(90deg) scale(.8); }
    100% { transform: perspective(300px) rotateX(0) scale(1); }
}
.flash-online .game-icon::after, .flash-offline .game-icon::after { animation: dot-pop .6s cubic-bezier(.3, 1.8, .5, 1) .2s both; }
@keyframes dot-pop { from { transform: scale(0); } to { transform: scale(1); } }
.flash-offline .game-icon { animation: shake .5s ease-in-out .1s; }
@keyframes shake { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }

/* Zähler im blauen Kopfbereich hüpfen kurz, wenn sich die Zahl ändert */
.stat-value.is-bump { animation: bump .6s ease; }
@keyframes bump { 30% { transform: translateY(-4px) scale(1.08); color: #b9c6ff; } }

/* Live-Meldungen oben rechts */
.live-feed {
    position: fixed; z-index: 120; top: 84px; right: 20px; width: min(360px, calc(100vw - 32px));
    display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.live-item {
    --c: #22c46e;
    position: relative; overflow: hidden; pointer-events: auto; cursor: pointer; text-align: left;
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 100%;
    font: inherit; color: var(--ink);
    background: color-mix(in srgb, var(--card) 88%, transparent);
    border: 1px solid color-mix(in srgb, var(--c) 45%, var(--card-border));
    border-radius: 16px;
    box-shadow: var(--shadow-lg), 0 10px 30px -12px color-mix(in srgb, var(--c) 60%, transparent);
    backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
    opacity: 0; transform: translateX(40px) scale(.96);
    transition: opacity .35s ease, transform .5s cubic-bezier(.2, 1.2, .3, 1);
}
.live-item.is-offline { --c: #ef4456; }
.live-item.is-visible { opacity: 1; transform: none; }
.live-item.is-leaving { opacity: 0; transform: translateX(30px); transition-duration: .3s; }
.live-item:hover { border-color: var(--c); }
.live-icon {
    position: relative; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    color: var(--game); background: color-mix(in srgb, var(--game) 13%, var(--mix));
}
.live-icon svg { width: 22px; height: 22px; }
.live-icon i {
    position: absolute; right: -4px; bottom: -4px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--c); border: 3px solid var(--card);
    animation: dot-pop .5s cubic-bezier(.3, 1.8, .5, 1) .3s both;
}
.live-item.is-online .live-icon i { box-shadow: 0 0 10px var(--c); }
.live-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.live-text b { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-text small { font-size: .8rem; color: var(--muted); }
.live-text em { font-style: normal; font-weight: 800; color: var(--c); }
.live-time { font-size: .72rem; color: var(--muted); align-self: flex-start; white-space: nowrap; }
.live-progress {
    position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
    background: var(--c); transform-origin: left; animation: live-progress 7s linear forwards;
}
@keyframes live-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 600px) {
    .live-feed { top: 72px; right: 16px; left: 16px; width: auto; }
}

/* ---------- Whitelist ---------- */
/* Badge auf der Server-Karte: rechts unter der Online/Offline-Anzeige */
.card-head-badges { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.wl-badge {
    display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
    padding: 2px 9px 2px 7px; border-radius: 999px;
    font-size: .66rem; font-weight: 800; letter-spacing: .05em;
    color: var(--ok-text); background: var(--ok-soft); border: 1px solid var(--ok-border);
}
/* Kasten im Server-Popup */
.wl-box {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 14px 16px; border-radius: 16px;
    background: linear-gradient(120deg, color-mix(in srgb, var(--ok) 12%, var(--card)), var(--card) 70%);
    border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line));
}
.wl-box-icon {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    color: #fff; background: linear-gradient(135deg, #1fbf6a, #0f9a52);
    box-shadow: 0 8px 18px -8px rgba(18, 161, 80, .7);
}
.wl-box-text { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.wl-box-text strong { font-size: .98rem; }
.wl-box-text span { font-size: .86rem; color: var(--muted); }
.wl-box-btn { background: linear-gradient(180deg, #1fbf6a, #0f9a52); box-shadow: 0 8px 18px -8px rgba(18, 161, 80, .7); }
.wl-box-btn:hover { background: linear-gradient(180deg, #2bd27a, #12a85a); }
@media (max-width: 600px) { .wl-box-btn { width: 100%; } }

/* Formular im Whitelist-Modus */
.modal .fb-icon-wl { display: none; }
.modal.is-whitelist .fb-icon-default { display: none; }
.modal.is-whitelist .fb-icon-wl { display: grid; }
#feedback-modal.is-whitelist .modal-hero { --game: #12a150; }
.fb-wl-target {
    display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px;
    font-size: .9rem; color: var(--ok-text); background: var(--ok-soft); border: 1px solid var(--ok-border);
}
.modal.is-whitelist .fb-submit { background: linear-gradient(180deg, #1fbf6a, #0f9a52); box-shadow: 0 6px 16px -6px rgba(18, 161, 80, .6); }

/* Admin: Whitelist-Anfragen */
.fb-username { font-family: var(--mono); font-size: .98rem; padding: 1px 8px; border-radius: 7px; background: var(--bg); border: 1px solid var(--line); }
.fb-msg-label { font-weight: 700; color: var(--ink); }
.fb-msg-empty { font-style: italic; color: var(--muted); }

/* ---------- Feedback ---------- */
.feedback-fab {
    position: fixed; z-index: 90; right: 22px; bottom: 22px;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 18px 12px 15px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18);
    font: 700 .92rem var(--font); color: #fff; cursor: pointer;
    background: linear-gradient(135deg, #2a33ff, var(--brand) 55%, var(--brand-700));
    box-shadow: 0 12px 28px -10px rgba(4, 0, 180, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform .2s, box-shadow .2s;
    animation: fab-in .6s cubic-bezier(.2, 1, .3, 1) .8s both;
}
.feedback-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(4, 0, 180, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.feedback-fab svg { transition: transform .3s; }
.feedback-fab:hover svg { transform: rotate(-12deg) scale(1.1); }
@keyframes fab-in { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
html.modal-open .feedback-fab { opacity: 0; pointer-events: none; }

#feedback-modal .modal-hero { --game: #5b6cff; }
.fb-form { gap: 18px; }
.fb-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fb-type { cursor: pointer; }
.fb-type input { position: absolute; opacity: 0; pointer-events: none; }
.fb-type-inner {
    height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--field-bg);
    transition: border-color .15s, box-shadow .15s, transform .15s, background .15s;
}
.fb-type:hover .fb-type-inner { border-color: var(--line-strong); transform: translateY(-1px); }
.fb-type-icon {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 6px;
    color: var(--fb); background: color-mix(in srgb, var(--fb) 14%, var(--mix));
}
.fb-type b { font-size: .95rem; }
.fb-type small { font-size: .76rem; color: var(--muted); line-height: 1.3; }
.fb-type input:checked + .fb-type-inner {
    border-color: var(--fb); background: color-mix(in srgb, var(--fb) 7%, var(--field-bg));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--fb) 22%, transparent);
}
.fb-type input:checked + .fb-type-inner .fb-type-icon { color: #fff; background: var(--fb); }
.fb-type input:focus-visible + .fb-type-inner { outline: 3px solid rgba(44, 75, 255, .45); outline-offset: 2px; }
.fb-count { align-self: flex-end; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: -2px; }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-privacy { margin: 0; font-size: .8rem; color: var(--muted); }
.fb-privacy svg { vertical-align: -2px; margin-right: 2px; }
.field .field-error { color: var(--bad); font-weight: 600; }
.field .field-error:empty { display: none; }
.fb-submit { padding: 13px 18px; font-size: 1rem; }
.fb-submit.is-loading { opacity: .7; cursor: wait; }
.fb-submit.is-loading svg { animation: fb-fly .8s ease-in-out infinite; }
@keyframes fb-fly { 50% { transform: translate(3px, -3px); } }
.fb-form .alert { margin: 0; }
.fb-success { align-items: center; text-align: center; padding-top: 40px; padding-bottom: 40px; }
.fb-success h3 { font-size: 1.5rem; font-weight: 800; }
.fb-success p { margin: 0; color: var(--ink-2); max-width: 360px; }
.fb-success-icon {
    width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, #1fbf6a, #0f9a52);
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--ok) 15%, transparent), 0 16px 36px -12px rgba(18, 161, 80, .7);
    animation: fb-pop .6s cubic-bezier(.2, 1.6, .4, 1) both;
}
@keyframes fb-pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-foot-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.btn-report:hover { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); }

@media (max-width: 600px) {
    .feedback-fab { right: 16px; bottom: 16px; padding: 14px; }
    .feedback-fab span { display: none; }
    .fb-types { grid-template-columns: 1fr; }
    .fb-type-inner { flex-direction: row; align-items: center; gap: 10px; }
    .fb-type-icon { margin: 0; }
    .fb-type small { margin-left: auto; text-align: right; }
}

/* Admin-Menü: bei mittlerer Breite nur Icons zeigen, damit alles in eine Zeile passt */
@media (max-width: 1100px) {
    .admin-header .hide-sm { display: none; }
}

/* Admin: Feedback-Liste */
.nav-count {
    min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center;
    font-size: .72rem; font-weight: 800; color: #fff; background: var(--bad);
}
.fb-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.seg a { padding: 7px 13px; border-radius: 9px; font-weight: 700; font-size: .88rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.seg a:hover { color: var(--ink); }
.seg a.is-active { background: var(--brand-soft); color: var(--brand-text); }
.seg .chip-count { font-size: .72rem; }
.fb-day { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 10px; }
.fb-day:first-of-type { margin-top: 0; }
.fb-list { display: flex; flex-direction: column; gap: 10px; }
.fb-item {
    --fb: var(--brand);
    position: relative; display: flex; gap: 14px; padding: 16px; border-radius: var(--radius-sm);
    background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--fb);
}
.fb-item.is-done { opacity: .62; }
.fb-item.is-done .fb-msg { text-decoration: none; }
.fb-item-icon {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    color: var(--fb); background: color-mix(in srgb, var(--fb) 13%, var(--mix));
}
.fb-item-main { flex: 1; min-width: 0; }
.fb-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.fb-item-head strong { font-size: 1rem; }
.fb-badge { font-size: .72rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; color: var(--fb); background: color-mix(in srgb, var(--fb) 13%, var(--mix)); }
.fb-new-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.fb-server {
    display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; padding: 2px 9px 2px 6px; border-radius: 999px;
    color: var(--ink-2); background: var(--bg); border: 1px solid var(--line);
}
.fb-server svg { color: var(--game); }
.fb-time { font-size: .8rem; color: var(--muted); margin-left: auto; }
.fb-msg { margin: 8px 0 0; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; line-height: 1.6; }
.fb-item-actions { display: flex; flex-direction: column; gap: 6px; }
.btn-done:hover { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); }
@media (max-width: 600px) {
    .fb-item { flex-wrap: wrap; }
    .fb-item-actions { flex-direction: row; width: 100%; justify-content: flex-end; }
    .fb-time { margin-left: 0; width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
    color: rgba(255, 255, 255, .7); padding: 40px 0; margin-top: auto;
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer-logo { height: 46px; width: auto; opacity: .95; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255, 255, 255, .8); font-weight: 600; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.copyright { width: 100%; margin: 0; font-size: .82rem; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }

/* ==========================================================================
   Admin
   ========================================================================== */
.admin-main { padding-top: 36px; padding-bottom: 64px; }
.admin-main.narrow { max-width: 860px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head h1 { font-size: 1.9rem; font-weight: 800; }
.page-head p { margin: 4px 0 0; }
.back-link { display: inline-block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 600; font-size: .94rem; border: 1px solid; }
.alert-success { background: var(--ok-soft); color: var(--ok-text); border-color: var(--ok-border); }
.alert-error { background: var(--bad-soft); color: var(--bad-text); border-color: var(--bad-border); }
.alert-list { margin: 6px 0 0; padding-left: 20px; font-weight: 500; }

.admin-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.admin-row {
    --game: var(--brand);
    display: flex; align-items: center; gap: 14px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 12px 12px 12px 14px; box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--game);
    transition: box-shadow .15s;
}
.admin-row:hover { box-shadow: var(--shadow); }
.admin-row.is-hidden { opacity: .62; }
.admin-row-main { flex: 1; min-width: 0; }
.admin-row-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-row-title a { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.admin-row-title a:hover { color: var(--brand-text); }
.admin-row-sub { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .86rem; color: var(--muted); margin-top: 2px; }
.admin-row-sub code { color: var(--ink-2); font-size: .85rem; }
.admin-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px;
}
.badge-brand { background: var(--brand-soft); color: var(--brand-text); }
.badge-muted { background: var(--unk-soft); color: var(--muted); }

/* ---------- Formulare ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-card { padding: 28px; gap: 8px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
legend { font-weight: 800; font-size: 1.05rem; padding: 0; margin-bottom: 12px; color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-weight: 650; font-size: .9rem; color: var(--ink-2); }
.field small, .field-help { font-weight: 500; color: var(--muted); font-size: .8rem; }
.field input, .field textarea, .field select {
    font: inherit; color: var(--ink);
    padding: 11px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong); background: var(--field-bg);
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--brand-bright); box-shadow: 0 0 0 4px rgba(44, 75, 255, .14); }
.has-error input, .has-error textarea { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: .82rem; font-weight: 600; }
.game-picker.has-error { outline: 2px solid var(--bad); border-radius: var(--radius-sm); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.game-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.game-option { --game: var(--brand); cursor: pointer; }
.game-option input { position: absolute; opacity: 0; pointer-events: none; }
.game-option-inner {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--line); background: var(--field-bg);
    font-weight: 650; font-size: .9rem; transition: all .15s;
}
.game-option:hover .game-option-inner { border-color: var(--line-strong); }
.game-option input:checked + .game-option-inner {
    border-color: var(--game);
    background: color-mix(in srgb, var(--game) 8%, var(--mix));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--game) 18%, transparent);
}
.game-option input:focus-visible + .game-option-inner { outline: 3px solid rgba(44, 75, 255, .45); }

.toggles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.toggle {
    display: flex; align-items: center; gap: 12px; cursor: pointer;
    padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg);
}
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle strong { display: block; font-size: .92rem; }
.toggle small { display: block; color: var(--muted); font-size: .8rem; }
.toggle-ui {
    flex-shrink: 0; width: 42px; height: 24px; border-radius: 999px; background: var(--line-strong);
    position: relative; transition: background .2s;
}
.toggle-ui::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s;
}
.toggle input:checked + .toggle-ui { background: var(--brand); }
.toggle input:checked + .toggle-ui::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle-ui { outline: 3px solid rgba(44, 75, 255, .45); outline-offset: 2px; }

.advanced { border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 8px; }
.advanced summary { cursor: pointer; font-weight: 700; color: var(--ink-2); margin-bottom: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- Login ---------- */
.page-auth { background: var(--brand-900); }
.auth-wrap { position: relative; isolation: isolate; min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; overflow: hidden; }
.auth-card {
    width: 100%; max-width: 420px; background: var(--card); border-radius: 22px;
    padding: 36px 32px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
}
.auth-logo { width: 230px; height: auto; margin: 0 auto 22px; }
.auth-card h1 { font-size: 1.5rem; font-weight: 800; text-align: center; }
.auth-card > .muted { text-align: center; margin: 6px 0 22px; }
.auth-card .back-link { display: block; text-align: center; margin: 20px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .container { padding: 0 16px; }
    .header-inner { height: 60px; }
    .brand img { height: 22px; }
    .main-nav a, .nav-button { padding: 8px 10px; }
    .hide-sm { display: none; }
    .hero { padding: 28px 0 84px; }
    .stats { gap: 8px; margin-top: 18px; }
    .stat { min-width: 0; flex: 1; padding: 10px 12px; }
    .stat-value { font-size: 1.3rem; }
    .stat-label { font-size: .7rem; }
    .toolbar { display: grid; grid-template-columns: minmax(0, 1fr); }
    .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px; }
    .chips::-webkit-scrollbar { display: none; }
    .chip { flex-shrink: 0; }
    .search { min-width: 0; flex: 1 1 auto; }
    .server-grid { grid-template-columns: 1fr; gap: 20px; }
    .grid-2 { grid-template-columns: 1fr; }
    .form-card { padding: 20px; }
    .admin-row { flex-wrap: wrap; }
    .admin-row-actions { width: 100%; justify-content: flex-end; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
    .page-public .main-nav > a:first-child { display: none; }
}

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

/* ---------- Rechtliche Seiten (Datenschutz) ---------- */
.legal { max-width: 820px; padding-top: 40px; padding-bottom: 72px; line-height: 1.7; color: var(--ink); }
.legal .back-link { display: inline-block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.02em; }
.legal-lead { font-size: 1.08rem; color: var(--muted); margin: 0 0 28px; }
.legal-toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 36px; box-shadow: var(--shadow-sm); }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal-toc li { break-inside: avoid; padding: 2px 0; }
.legal section { padding-top: 8px; margin-bottom: 30px; scroll-margin-top: 90px; }
.legal h2 { font-size: 1.25rem; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.legal p, .legal ul { margin: 0 0 12px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 4px; }
.legal address { font-style: normal; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: 14px 18px; margin: 0 0 12px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal .back-link, .legal-toc a { text-decoration: none; }
.legal code { font-size: .9em; background: var(--line); padding: 1px 6px; border-radius: 6px; }
.legal-updated { color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 640px) {
    .legal { padding-top: 24px; }
    .legal-toc ol { columns: 1; }
}

/* ==========================================================================
   Gemeinsamer Admin-Bereich (Serverübersicht + Minecraft-Seite): Reiter
   ========================================================================== */
.admin-tabs { border-top: 1px solid var(--line); }
.admin-tabs-inner { display: flex; align-items: stretch; gap: 6px; height: 46px; }
.admin-tab {
    display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; margin-bottom: -1px;
    font-weight: 700; font-size: .92rem; color: var(--muted);
    border-bottom: 2.5px solid transparent; transition: color .15s, border-color .15s;
}
.admin-tab:hover { color: var(--ink); }
.admin-tab.is-active { color: var(--brand-text); border-bottom-color: var(--brand); }
@media (max-width: 720px) {
    .admin-tabs-inner { height: 42px; }
    .admin-tab { padding: 0 10px; font-size: .88rem; }
}
.fb-toolbar-src { margin-top: -6px; }.admin-tabs-site {
    margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: 9px; font-weight: 600; font-size: .86rem; color: var(--muted);
    transition: background .15s, color .15s;
}
.admin-tabs-site:hover { color: var(--brand-text); background: var(--brand-soft); }
.admin-header .main-nav a, .admin-header .nav-button { white-space: nowrap; }
@media (max-width: 520px) { .admin-tabs-site { font-size: 0; gap: 0; padding: 8px; } .admin-tabs-site svg { width: 17px; height: 17px; } }
@media (max-width: 1240px) { .admin-header .hide-md { display: none; } }
/* Admin-Menü auf schmalen Bildschirmen: waagerecht wischbar statt die Seite zu verbreitern */
@media (max-width: 720px) {
    .admin-header .header-inner { gap: 10px; }
    .admin-header .main-nav { min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .admin-header .main-nav::-webkit-scrollbar { display: none; }
    .admin-header .main-nav > * { flex-shrink: 0; }
}
@media (max-width: 480px) { .admin-header .brand-badge { display: none; } }
/* Serverübersicht: Kasten „Eigene Minecraft-Seite“ im Server-Popup (Verknüpfung mit /minecraft) */
.mcp-box {
    background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 10%, var(--card)), var(--card) 70%);
    border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}
.mcp-box-icon { background: linear-gradient(135deg, var(--brand-700), var(--brand)); box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
@media (max-width: 600px) { .mcp-box-btn { width: 100%; } }
.btn-mc-page { color: var(--game); }
.btn-mc-page:hover { color: var(--game); border-color: color-mix(in srgb, var(--game) 45%, var(--line)); background: color-mix(in srgb, var(--game) 10%, transparent); }
