/* ==========================================================
   Lumura Network – CloudMaster Panel
   Stil "Erz": Nachthimmel über Obsidian, Licht wie aus einem Erzblock.
   - Jede Bereichsgruppe hat ihr Erz: Server = Diamant, Dienste = Amethyst, Verwaltung = Gold,
     Spezial-Plugins = Smaragd, Spezial-Config = Redstone
   - Schrift: Unbounded für Überschriften und Zahlen, Onest für alles andere (lokal, ~85 KB, ein Jahr gecacht)
   - Schnell: Unschärfe-Effekte nur in Kopfzeile und Meldungen, Animationen nur über transform/opacity
   ========================================================== */

@font-face {
    font-family: "Onest";
    src: url("/assets/fonts/onest.woff2?v=0078ac870dcb") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Unbounded";
    src: url("/assets/fonts/unbounded.woff2?v=0078ac870dcb") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #050713;
    --surface: rgba(17, 22, 46, 0.74);
    --surface-hi: rgba(24, 31, 62, 0.82);
    --well: rgba(4, 6, 18, 0.62);
    --stroke: rgba(160, 180, 255, 0.1);
    --stroke-hi: rgba(175, 198, 255, 0.22);
    --ink: #f1f4ff;
    --mute: #9aa3c6;
    --faint: #6a7399;
    --dark-ink: #07101f;
    --ok: #3fe39a;
    --bad: #ff5f7e;
    --warn: #ffc95c;
    /* Diamant (Standard) */
    --h1: #62f2e5;
    --h2: #4f9cff;
    --glow: rgba(79, 156, 255, 0.55);
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --font: "Onest", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Unbounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
    --r-lg: 22px;
    --r-md: 14px;
    --r-sm: 10px;
}

/* Erz je Bereichsgruppe */
[data-tone="server"] { --h1: #62f2e5; --h2: #4f9cff; --glow: rgba(79, 156, 255, 0.55); }
[data-tone="dienste"] { --h1: #c7a4ff; --h2: #7b68ff; --glow: rgba(123, 104, 255, 0.55); }
[data-tone="verwaltung"] { --h1: #ffd77e; --h2: #ff9a5f; --glow: rgba(255, 154, 95, 0.5); }
[data-tone="spezial"] { --h1: #8dfbb9; --h2: #18c27a; --glow: rgba(24, 194, 122, 0.5); }
[data-tone="redstone"] { --h1: #ffb0bf; --h2: #ff4f6e; --glow: rgba(255, 79, 110, 0.5); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { color-scheme: dark; -webkit-text-size-adjust: 100%; background: var(--bg); scrollbar-color: rgba(160, 180, 255, 0.25) transparent; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font: 400 15px/1.55 var(--font);
    font-feature-settings: "ss01";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}
a { color: color-mix(in srgb, var(--h1) 70%, #fff); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--h1); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--h2) 45%, transparent); }
kbd { font-family: var(--font); }

/* ---------------------------------------------------------- Hintergrund */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(70% 48% at 50% -14%, rgba(110, 140, 255, 0.24), transparent 72%),
        radial-gradient(60% 40% at 50% 112%, rgba(98, 242, 229, 0.06), transparent 70%),
        linear-gradient(180deg, #070a1a, var(--bg) 60%);
    contain: strict;
}
.aurora i {
    position: absolute;
    width: 64vmax;
    height: 64vmax;
    border-radius: 50%;
    will-change: transform;
    animation: drift 46s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { top: -32vmax; left: -24vmax; background: radial-gradient(closest-side, rgba(98, 242, 229, 0.2), transparent 70%); }
.aurora i:nth-child(2) { top: -14vmax; right: -30vmax; background: radial-gradient(closest-side, rgba(150, 110, 255, 0.2), transparent 70%); animation-duration: 58s; animation-delay: -20s; }
.aurora i:nth-child(3) { display: none; }
/* feines Korn – wirkt edler als glatte Verläufe, kostet nichts (statisch) */
.aurora::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(6vmax, 4vmax, 0) scale(1.06); }
    100% { transform: translate3d(-3vmax, 7vmax, 0) scale(0.97); }
}

/* ---------------------------------------------------------- Flächen */
.glass {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 42%),
        var(--surface);
    border: 1px solid var(--stroke);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 30px 60px -40px rgba(0, 0, 0, 0.9);
}

/* ---------------------------------------------------------- Kopfzeile */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(6, 9, 22, 0.72);
    border-bottom: 1px solid var(--stroke);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .topbar, .toast { -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
    .topbar { background: rgba(6, 9, 22, 0.58); }
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 28px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; border-radius: 12px; }
.brand img { display: block; filter: drop-shadow(0 6px 16px rgba(79, 156, 255, 0.4)); transition: transform 0.4s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.04); }
.brand-text { display: grid; line-height: 1.2; }
.brand-name { font: 600 14px/1.25 var(--font-display); letter-spacing: -0.01em; }
.brand-domain { color: var(--faint); font-size: 12.5px; }
.account { display: flex; align-items: center; gap: 12px; }
.account-name { display: inline-flex; align-items: center; gap: 10px; color: var(--mute); font-size: 14px; }
.avatar {
    width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center;
    font: 600 12px/1 var(--font-display); color: var(--dark-ink);
    background: linear-gradient(140deg, #62f2e5, #4f9cff 55%, #7b68ff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 0 3px rgba(98, 242, 229, 0.08);
}

#app { max-width: 1240px; margin: 0 auto; padding: 4px 28px 96px; outline: none; }
.loading { color: var(--mute); padding: 48px 0; }
.loading::before {
    content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px;
    border-radius: 50%; border: 2px solid var(--stroke-hi); border-top-color: var(--h1);
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------- Startseite */
.hero { padding: 64px 0 6px; }
.hero h1 {
    font: 600 clamp(30px, 4.6vw, 54px)/1.08 var(--font-display);
    letter-spacing: -0.035em;
    text-wrap: balance;
    background: linear-gradient(180deg, #ffffff 35%, #aebbe6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p { color: var(--mute); margin-top: 14px; font-size: 17px; max-width: 58ch; }

/* Status als eine Leiste statt einzelner Pillen */
.chips {
    display: inline-flex;
    flex-wrap: wrap;
    margin-top: 26px;
    min-height: 40px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.025);
    overflow: hidden;
}
.chip {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 9px 16px;
    font-size: 13.5px;
    color: var(--ink);
    border-left: 1px solid var(--stroke);
}
.chip:first-child { border-left: 0; }
.chip::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.chip.ok::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(63, 227, 154, 0.14), 0 0 12px rgba(63, 227, 154, 0.8); animation: pulse 2.8s ease-in-out infinite; }
.chip.warn::before { background: var(--warn); box-shadow: 0 0 10px rgba(255, 201, 92, 0.7); }
.chip.bad::before { background: var(--bad); box-shadow: 0 0 10px rgba(255, 95, 126, 0.7); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(63, 227, 154, 0), 0 0 14px rgba(63, 227, 154, 0.9); } }

.group { margin-top: 46px; }
.group-head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px;
    color: var(--mute);
    font: 500 13.5px/1 var(--font);
}
.group-head::before {
    content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg);
    background: linear-gradient(140deg, var(--h1), var(--h2));
    box-shadow: 0 0 10px var(--glow);
}
.group-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--stroke-hi), transparent 85%); }

.tiles { display: grid; gap: 16px; }
.tiles-lg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles-sm { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tiles-sm[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles-sm[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* 5 Kacheln: oben 3, unten 2 – so bleibt genug Platz für den Text */
.tiles-sm[data-count="5"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tiles-sm[data-count="5"] > .tile { grid-column: span 2; }
.tiles-sm[data-count="5"] > .tile:nth-child(n + 4) { grid-column: span 3; }
.sec-body .tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.tile {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-height: 190px;
    padding: 22px;
    border-radius: var(--r-lg);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.45s var(--ease), border-color 0.35s ease, box-shadow 0.45s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
/* Lichtreflex, folgt der Maus (--mx/--my setzt app.js) */
.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, -30%), color-mix(in srgb, var(--h1) 18%, transparent), transparent 64%);
    opacity: 0;
    transition: opacity 0.35s ease;
}
/* Lichtkante oben in der Erzfarbe */
.tile::after {
    content: "";
    position: absolute;
    left: 18%; right: 18%; top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--h1) 75%, #fff), transparent);
    opacity: 0.35;
    transition: opacity 0.35s ease, left 0.5s var(--ease), right 0.5s var(--ease);
}
.tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tile kbd {
    flex: none;
    font: 500 11.5px/1 var(--font);
    color: var(--faint);
    padding: 4px 7px;
    min-width: 22px;
    text-align: center;
    border-radius: 7px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.03);
    transition: color 0.3s ease, border-color 0.3s ease;
}
.tile-bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.tile-text { display: grid; gap: 2px; min-width: 0; }
.tile-name { font: 600 16px/1.3 var(--font-display); letter-spacing: -0.01em; }
.tile-fact { color: var(--mute); font-size: 13.5px; min-height: 1.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-go {
    flex: none;
    width: 34px; height: 34px;
    border-radius: 50%;
    display: grid; place-items: center;
    color: var(--mute);
    border: 1px solid var(--stroke);
    transition: transform 0.45s var(--ease), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.tile-go svg { width: 16px; height: 16px; }

/* Große Kachel: Live-Spielerzahl + ein Punkt je Instanz */
.tile-lg { min-height: 236px; }
.tile-stat { display: grid; gap: 2px; margin-top: 4px; }
.tile-stat b {
    font: 500 40px/1 var(--font-display);
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #fff 30%, color-mix(in srgb, var(--h1) 55%, #c9d4ff));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.tile-stat span { color: var(--faint); font-size: 12.5px; }
.tile-pips { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-height: 8px; margin-top: -8px; }
.tile-pips i { width: 8px; height: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); }
.tile-pips i.on { background: linear-gradient(140deg, var(--h1), var(--h2)); box-shadow: 0 0 8px var(--glow); }
.tile-pips em { font-style: normal; font-size: 11.5px; color: var(--faint); margin-left: 2px; }

/* Kompakte Kachel: Icon, Text, Taste in einer Zeile */
.tile-sm {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    min-height: 0;
    padding: 15px 16px;
    border-radius: 18px;
}
.tile-sm .lens { width: 42px; height: 42px; border-radius: 13px; }
.tile-sm .lens::after { border-radius: 12px 12px 50% 50% / 12px 12px 30% 30%; }
.tile-sm .lens svg { width: 21px; height: 21px; }
.tile-sm .tile-text { flex: 1; }
.tile-sm .tile-name { font: 600 15px/1.3 var(--font); letter-spacing: 0; }
.tile-sm .tile-fact { font-size: 13px; }
.tile-sm kbd { align-self: flex-start; }

@media (hover: hover) {
    .tile:hover {
        transform: translateY(-3px);
        border-color: color-mix(in srgb, var(--h1) 38%, transparent);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 60px -32px var(--glow);
    }
    .tile:hover::before { opacity: 1; }
    .tile:hover::after { opacity: 0.9; left: 8%; right: 8%; }
    .tile:hover .lens { transform: translateY(-2px) scale(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -10px 18px rgba(0, 0, 0, 0.16), 0 16px 30px -10px var(--glow); }
    .tile:hover kbd { color: var(--ink); border-color: var(--stroke-hi); }
    .tile:hover .tile-go { transform: translateX(3px); color: var(--dark-ink); border-color: transparent; background: linear-gradient(140deg, var(--h1), var(--h2)); }
}
.tile:active { transform: translateY(-1px) scale(0.995); }

/* Einziger Lade-Effekt der Startseite: Kacheln erscheinen nacheinander */
.hub.enter .tile { animation: rise 0.6s var(--ease) both; animation-delay: calc(60ms + var(--i) * 40ms); }
.hub.enter .group-head { animation: rise 0.6s var(--ease) both; }
.hero.enter > * { animation: rise 0.7s var(--ease) both; }
.hero.enter > :nth-child(2) { animation-delay: 60ms; }
.hero.enter > :nth-child(3) { animation-delay: 120ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------------------------------------------------------- Linsen (Icon-Kacheln) */
.lens {
    position: relative;
    flex: none;
    width: 50px; height: 50px;
    border-radius: 15px;
    display: grid; place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--h1), var(--h2));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -10px 18px rgba(0, 0, 0, 0.18), 0 12px 26px -14px var(--glow);
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.lens::after {
    content: "";
    position: absolute;
    inset: 1px 1px 52% 1px;
    border-radius: 14px 14px 50% 50% / 14px 14px 30% 30%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0));
    pointer-events: none;
}
.lens svg { position: relative; z-index: 1; width: 25px; height: 25px; color: #0a1630; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35)); }
[data-tone="dienste"] .lens svg, .lens[data-tone="dienste"] svg { color: #fff; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25)); }
.lens-xl { width: 72px; height: 72px; border-radius: 22px; }
.lens-xl::after { border-radius: 21px 21px 50% 50% / 21px 21px 30% 30%; }
.lens-xl svg { width: 36px; height: 36px; }

/* ---------------------------------------------------------- Bereichsseite */
.sec-nav { margin-top: 26px; }
.back {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 12px 7px 9px;
    border-radius: 12px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: border-color 0.3s ease;
}
.back svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.back kbd { font: 500 11px/1 var(--font); color: var(--faint); border: 1px solid var(--stroke); border-radius: 6px; padding: 3px 6px; }
@media (hover: hover) {
    .back:hover { border-color: var(--stroke-hi); }
    .back:hover svg { transform: translateX(-3px); }
}

.sec-head { display: flex; align-items: center; gap: 22px; margin-top: 28px; }
.sec-head h1 {
    font: 600 clamp(26px, 3.4vw, 40px)/1.1 var(--font-display);
    letter-spacing: -0.035em;
    background: linear-gradient(180deg, #ffffff 35%, color-mix(in srgb, var(--h1) 35%, #b9c5ee));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.sec-head p { color: var(--mute); margin-top: 8px; max-width: 66ch; font-size: 16px; }
.sec-body { min-height: 40vh; }

/* Kennzahlen */
.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-top: 30px;
    border-radius: 18px;
    overflow: hidden;
}
.fact { position: relative; padding: 18px 22px 16px; border-left: 1px solid var(--stroke); }
.fact:first-child { border-left: 0; }
.fact b { display: block; font: 500 24px/1.2 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fact span { color: var(--mute); font-size: 13px; }
.fact:first-child b {
    background: linear-gradient(180deg, #fff 30%, color-mix(in srgb, var(--h1) 55%, #c9d4ff));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.panel { border-radius: 20px; padding: 22px 24px; margin-top: 18px; }
.panel::after {
    content: "";
    position: absolute;
    left: 12%; right: 12%; top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    pointer-events: none;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; min-height: 32px; }
.panel h2 { font: 600 16.5px/1.3 var(--font); letter-spacing: -0.005em; }
.panel h3 { font: 600 15px/1.3 var(--font); }
.panel-note { color: var(--mute); font-size: 13.5px; margin-top: 14px; max-width: 78ch; }
.panels-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 18px; align-items: start; }
.panels-2 > .panel { margin-top: 18px; }

.empty { color: var(--mute); padding: 24px 2px; }

/* Einblenden beim ersten Öffnen eines Bereichs (Klasse setzt app.js) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease var(--d, 0ms), transform 0.65s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- Tabellen */
.table-wrap { overflow-x: auto; margin: 0 -8px; padding: 0 2px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
th, td { text-align: left; padding: 12px; vertical-align: middle; white-space: nowrap; }
th { color: var(--faint); font-weight: 500; font-size: 12.5px; border-bottom: 1px solid var(--stroke); }
td { border-bottom: 1px solid rgba(160, 180, 255, 0.06); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color 0.2s ease; }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
tbody tr:hover td:first-child { border-radius: 12px 0 0 12px; }
tbody tr:hover td:last-child { border-radius: 0 12px 12px 0; }
td.num { font-variant-numeric: tabular-nums; }
td.actions { text-align: right; }
td.actions .btn + .btn { margin-left: 6px; }
.kv td { white-space: normal; }
.kv td:first-child { color: var(--mute); width: 34%; }
.sub { color: var(--mute); font-size: 13.5px; }
.code { font-family: var(--mono); font-size: 13px; }

.state { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; white-space: nowrap; }
.state::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.state.ok::before { background: var(--ok); box-shadow: 0 0 10px rgba(63, 227, 154, 0.7); }
.state.bad::before { background: var(--bad); box-shadow: 0 0 10px rgba(255, 95, 126, 0.6); }
.state.warn::before { background: var(--warn); box-shadow: 0 0 10px rgba(255, 201, 92, 0.6); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

.meter { width: 130px; height: 6px; background: rgba(255, 255, 255, 0.07); border-radius: 99px; overflow: hidden; margin-bottom: 5px; }
.meter > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--h1), var(--h2)); box-shadow: 0 0 10px var(--glow); transform-origin: left; }

/* ---------------------------------------------------------- Formulare */
.field { display: grid; gap: 7px; align-content: start; }
label { font-size: 13.5px; color: var(--mute); }
input, select, textarea {
    width: 100%;
    background: var(--well);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 10px 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: var(--stroke-hi); }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--h1) 60%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--h1) 14%, transparent);
    background: rgba(4, 6, 18, 0.8);
}
input:disabled, select:disabled { opacity: 0.55; cursor: not-allowed; }
input[type="number"] { font-variant-numeric: tabular-nums; }
select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%);
    background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    padding-right: 34px;
}
select option { background: #11162e; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--h1); }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 16px 18px; }
.form-grid-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-top: 18px; }
.check { display: flex; align-items: center; gap: 10px; padding-top: 26px; color: var(--ink); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.form-error { color: var(--bad); font-size: 14px; margin-top: 12px; }
.form-hint { margin-top: 8px; }

.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 12px;
    border: 1px solid var(--stroke-hi);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.25s var(--ease), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease, color 0.2s ease;
}
.btn:hover { border-color: rgba(190, 210, 255, 0.34); background: rgba(255, 255, 255, 0.075); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn-primary {
    border-color: transparent;
    color: var(--dark-ink);
    background: linear-gradient(135deg, var(--h1), var(--h2));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 26px -12px var(--glow);
}
.btn-primary:hover {
    border-color: transparent;
    background: linear-gradient(135deg, color-mix(in srgb, var(--h1) 85%, #fff), color-mix(in srgb, var(--h2) 85%, #fff));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 14px 32px -12px var(--glow);
    transform: translateY(-1px);
}
.btn-primary:disabled { box-shadow: none; }
.btn-quiet { background: transparent; border-color: var(--stroke); }
.btn-danger { color: #ff9cb0; background: transparent; border-color: rgba(255, 95, 126, 0.22); }
.btn-danger:hover { color: #ffc2ce; border-color: rgba(255, 95, 126, 0.5); background: rgba(255, 95, 126, 0.09); }
.btn-go { color: #a9f7d0; border-color: rgba(63, 227, 154, 0.32); }
.btn-go:hover { color: #d2fde8; border-color: rgba(63, 227, 154, 0.6); background: rgba(63, 227, 154, 0.09); }
.btn-sm { min-height: 32px; padding: 5px 12px; font-size: 13px; border-radius: 10px; }
.btn-wide { width: 100%; min-height: 48px; margin-top: 6px; font-size: 15px; }

.secret { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.secret input { flex: 1 1 220px; font-family: var(--mono); font-size: 13px; }

/* ---------------------------------------------------------- Messages (Minecraft-Chat-Vorschau) */
.msg-row { display: grid; grid-template-columns: 230px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid rgba(160, 180, 255, 0.06); }
.msg-row:last-child { border-bottom: 0; }
.msg-row input:first-child { font-family: var(--mono); font-size: 13px; }
.msg-preview {
    grid-column: 2 / 3;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 6px 11px;
    border-radius: var(--r-sm);
    font-size: 14px;
    min-height: 33px;
    white-space: pre-wrap;
    word-break: break-word;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
}

.planned ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.planned li { position: relative; padding-left: 26px; color: var(--mute); }
.planned li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: linear-gradient(140deg, var(--h1), var(--h2)); }
.soon { font-size: 12.5px; color: var(--ink); border: 1px solid var(--stroke-hi); border-radius: 999px; padding: 4px 11px; background: rgba(255, 255, 255, 0.04); }

/* ---------------------------------------------------------- Meldung unten rechts */
.toast {
    position: fixed;
    right: 22px; bottom: 22px;
    z-index: 30;
    display: flex; align-items: center; gap: 10px;
    max-width: min(440px, calc(100vw - 44px));
    padding: 12px 18px 12px 14px;
    border-radius: 14px;
    background: rgba(20, 26, 54, 0.92);
    border: 1px solid var(--stroke-hi);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.85);
    animation: toast-in 0.4s var(--ease);
}
.toast::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.toast.bad::before { background: var(--bad); box-shadow: 0 0 12px var(--bad); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

/* ---------------------------------------------------------- Login */
.login-page { display: grid; place-items: center; min-height: 100vh; padding: 28px 18px; }
.login { width: min(410px, 100%); text-align: center; animation: rise 0.7s var(--ease) both; }
.login-logo { filter: drop-shadow(0 16px 36px rgba(79, 156, 255, 0.5)); }
.login h1 {
    font: 600 28px/1.15 var(--font-display);
    letter-spacing: -0.035em;
    margin-top: 24px;
    background: linear-gradient(180deg, #ffffff 35%, #aebbe6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.login-sub { color: var(--mute); margin-top: 8px; }
.login-form { text-align: left; display: grid; gap: 18px; margin-top: 32px; padding: 28px; border-radius: 24px; }
.login-form::after {
    content: ""; position: absolute; left: 14%; right: 14%; top: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(98, 242, 229, 0.8), transparent);
}

/* ---------------------------------------------------------- Seitenwechsel (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.2s; }
::view-transition-group(sec-icon) { animation-duration: 0.42s; animation-timing-function: var(--ease); }

/* ---------------------------------------------------------- Jar-Katalog */
.sw-head { font: 600 14px/1.3 var(--font); color: var(--ink); margin-top: 22px; }
.panel-head + .sw-head { margin-top: 0; }
.sw-hint { color: var(--mute); font-size: 13.5px; margin: 3px 0 10px; }
.sw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sw-row {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.018);
    border: 1px dashed rgba(160, 180, 255, 0.16);
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.35s var(--ease), transform 0.3s var(--ease);
}
.sw-row.is-present { border-style: solid; border-color: var(--stroke); background: rgba(255, 255, 255, 0.032); }
.sw-row.is-drop {
    border-style: solid;
    border-color: color-mix(in srgb, var(--h1) 70%, transparent);
    background: color-mix(in srgb, var(--h1) 9%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--h1) 14%, transparent);
    transform: scale(1.005);
}
.sw-row.is-done { box-shadow: 0 0 0 3px rgba(63, 227, 154, 0.25), 0 0 28px -6px rgba(63, 227, 154, 0.5); }
.sw-icon {
    width: 38px; height: 38px;
    border-radius: 11px;
    display: grid; place-items: center;
    color: var(--faint);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--stroke);
    transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.sw-icon svg { width: 19px; height: 19px; }
.sw-row.is-present .sw-icon {
    color: #0a1630;
    border-color: transparent;
    background: linear-gradient(145deg, var(--h1), var(--h2));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 18px -10px var(--glow);
}
[data-tone="dienste"] .sw-row.is-present .sw-icon { color: #fff; }
.sw-text { display: grid; gap: 2px; min-width: 0; }
.sw-name { font-weight: 600; }
.sw-meta { color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-progress { display: block; height: 4px; margin-top: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.sw-progress > i {
    display: block; height: 100%; width: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--h1), var(--h2));
    box-shadow: 0 0 12px var(--h1);
    transition: width 0.15s linear;
}
.sw-status { white-space: nowrap; }
.sw-actions { display: flex; gap: 6px; justify-content: flex-end; }
.page-note { color: var(--mute); font-size: 13.5px; margin-top: 18px; }

/* ---------------------------------------------------------- Dienste */
.lead { color: var(--mute); font-size: 16px; margin: 30px 0 16px; }
.sec-body > .tiles { margin-bottom: 4px; }
.tile-top .state { font-size: 13px; padding: 4px 10px 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--stroke); }
.sub-title { font: 600 20px/1.2 var(--font-display); letter-spacing: -0.03em; margin-top: 30px; }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; padding: 0 4px; }
.lock-hint { margin: 2px 0 0 58px; color: var(--warn); }
.codewrap { position: relative; margin-top: 4px; }
.codebar { position: absolute; top: 10px; right: 10px; }
.codeblock {
    margin: 0;
    padding: 16px 18px;
    padding-right: 110px;
    border-radius: var(--r-md);
    background: rgba(3, 5, 15, 0.75);
    border: 1px solid var(--stroke);
    color: #cfe0ff;
    font: 13px/1.6 var(--mono);
    overflow-x: auto;
    white-space: pre;
    tab-size: 4;
}

/* ---------------------------------------------------------- Schalter */
.switch { position: relative; display: flex; align-items: flex-start; gap: 14px; cursor: pointer; padding: 6px 0; color: var(--ink); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.switch-track {
    position: relative;
    flex: none;
    width: 44px; height: 26px;
    margin-top: 1px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--stroke);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.switch-track::after {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #dfe6ff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s var(--ease), background 0.3s ease;
}
.switch input:checked + .switch-track {
    border-color: transparent;
    background: linear-gradient(135deg, var(--h1), var(--h2));
    box-shadow: 0 0 18px -4px var(--glow);
}
.switch input:checked + .switch-track::after { transform: translateX(18px); background: #fff; }
.switch:has(input:disabled) { cursor: not-allowed; opacity: 0.55; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--h1); outline-offset: 3px; }
.switch-group { display: grid; gap: 2px; margin: 4px 0 6px 58px; padding-left: 14px; border-left: 1px solid var(--stroke); }
.switch-text { display: grid; gap: 2px; }
.switch-label { font-weight: 600; }
.panel > .switch + .picks, .panel > .switch + .form-grid { margin-top: 14px; }
.panel > .form-grid + .switch { margin-top: 16px; }
.switches { display: grid; gap: 4px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--stroke); }
.switch-row { display: flex; flex-wrap: wrap; gap: 4px 40px; }
.sub-block { display: grid; gap: 8px; margin: 2px 0 10px 58px; }

/* ---------------------------------------------------------- Auswahl (Plugins, Instanzen) */
.picks { border: 0; margin: 20px 0 0; padding: 0; min-width: 0; }
.picks legend { padding: 0; margin-bottom: 10px; font-size: 13.5px; color: var(--mute); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; }
.pick {
    min-width: 0;
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    border-radius: 11px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.022);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.pick:hover { border-color: var(--stroke-hi); }
.pick:has(input:checked) { border-color: color-mix(in srgb, var(--h1) 45%, transparent); background: color-mix(in srgb, var(--h1) 7%, transparent); }
.pick-text { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex: 1; min-width: 0; font-size: 14px; }
.pick-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-missing { flex: none; color: var(--faint); font-size: 12px; white-space: nowrap; }
.pick-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }

/* ---------------------------------------------------------- Instanzen: Reiter */
.tabs { position: relative; display: inline-flex; gap: 2px; padding: 4px; margin-top: 28px; border-radius: 15px; }
.tab {
    position: relative;
    padding: 9px 20px;
    border-radius: 11px;
    color: var(--mute);
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.3s ease;
}
.tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.tab.is-active {
    color: var(--dark-ink);
    background: linear-gradient(135deg, var(--h1), var(--h2));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 22px -10px var(--glow);
}

/* Hinweise (EULA, gespeichert, löschen) */
.notice, .danger { display: flex; align-items: center; justify-content: space-between; gap: 14px 22px; flex-wrap: wrap; }
.notice h2, .danger h2 { margin-bottom: 4px; }
.notice .sub, .danger .sub { max-width: 68ch; }
.notice-warn { border-color: rgba(255, 201, 92, 0.3); }
.notice-warn::after { background: linear-gradient(90deg, transparent, rgba(255, 201, 92, 0.7), transparent); }
.danger { border-color: rgba(255, 95, 126, 0.16); }
.callout { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 201, 92, 0.07); border: 1px solid rgba(255, 201, 92, 0.24); color: #ffe4ad; font-size: 14px; }
.callout a { color: #ffd27a; }

/* Liste */
.inst-name { display: grid; gap: 1px; min-width: 0; }
.inst-name strong { font-weight: 600; }
.inst-name h3 { font: 600 15px/1.3 var(--font-display); letter-spacing: -0.02em; }
.inst-state { display: grid; gap: 2px; }
.warn-text { color: var(--warn); font-size: 12.5px; }
.empty-cta { display: grid; justify-items: start; gap: 14px; padding: 14px 2px 4px; color: var(--mute); }

/* Formular */
.inst-form .form-grid { margin-top: 2px; }
.motd-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px 18px; margin-top: 18px; }
.motd-row textarea { resize: none; min-height: 70px; font-size: 14px; line-height: 1.5; }
.codeblock.is-wrap { white-space: pre-wrap; word-break: break-all; }
.field-label { font-size: 13.5px; color: var(--mute); }
.motd-preview {
    min-height: 70px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #aaaaaa;
    font-size: 14.5px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

/* Spielernamen (Whitelist, OPs) */
.tags {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    min-height: 44px;
    padding: 5px 7px;
    border-radius: 12px;
    background: var(--well);
    border: 1px solid var(--stroke);
    cursor: text;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tags:hover { border-color: var(--stroke-hi); }
.tags:focus-within { border-color: color-mix(in srgb, var(--h1) 60%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--h1) 14%, transparent); }
.tag {
    display: inline-flex; align-items: center; gap: 2px;
    padding: 2px 3px 2px 10px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--h2) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--h2) 32%, transparent);
    font-size: 13.5px;
    font-weight: 600;
}
.tag-x { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--mute); cursor: pointer; font-size: 16px; line-height: 1; }
.tag-x:hover { background: rgba(255, 255, 255, 0.1); color: var(--ink); }
.tags .tags-input { flex: 1 1 150px; min-width: 120px; width: auto; border: 0; background: transparent; box-shadow: none; padding: 6px 4px; }
.tags .tags-input:focus { background: transparent; box-shadow: none; }
.tags-err { color: var(--bad); font-size: 13px; margin-top: 6px; }
.tags-err:empty { display: none; }

/* Edit */
.edit-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.edit-side { position: sticky; top: 80px; padding: 14px; }
.panel .edit-side-head { margin: 4px 8px 10px; font: 500 13px/1.3 var(--font); color: var(--mute); }
.edit-list { display: grid; gap: 3px; }
.edit-item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 11px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ink);
    text-align: left;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.edit-item:hover { background: rgba(255, 255, 255, 0.04); }
.edit-item.is-active { background: color-mix(in srgb, var(--h1) 8%, transparent); border-color: color-mix(in srgb, var(--h1) 40%, transparent); }
.edit-item .state { flex: none; font-size: 12.5px; font-weight: 500; color: var(--mute); }
.edit-item-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edit-main > :first-child:empty { display: none; }

/* Minecraft-Config: Standardwerte je Typ */
.defaults-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.default-col { display: grid; gap: 12px; align-content: start; padding: 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.022); border: 1px solid var(--stroke); }
.default-col h3 { font: 600 15px/1.3 var(--font-display); letter-spacing: -0.02em; }
.default-col textarea { resize: none; min-height: 64px; }
.default-col .motd-preview { min-height: 58px; font-size: 13.5px; }

/* Monitoring */
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); font-size: 13px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(63, 227, 154, 0.16); animation: pulse 2.8s ease-in-out infinite; }
.mon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.mon-card {
    border-radius: 18px;
    padding: 16px 18px;
    display: grid;
    gap: 14px;
    align-content: start;
    min-width: 0;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--stroke);
}
.mon-card.is-up { border-color: rgba(63, 227, 154, 0.2); }
.mon-card.is-down { border-color: rgba(255, 95, 126, 0.32); background: rgba(255, 95, 126, 0.035); }
.mon-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mon-stats { display: grid; gap: 11px; }
.gauge-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 13px; color: var(--mute); }
.gauge-top b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.gauge .meter { width: 100%; margin: 0; }
.meter.hot > i { background: linear-gradient(90deg, #ffc95c, #ff5f7e); box-shadow: 0 0 12px rgba(255, 95, 126, 0.6); }
.mon-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; color: var(--mute); font-size: 13px; }
.mon-card { cursor: pointer; transition: border-color 0.25s ease, transform 0.35s var(--ease); }
@media (hover: hover) { .mon-card:hover { border-color: var(--stroke-hi); transform: translateY(-2px); } }

/* Konsolen-Vorschau auf der Monitoring-Karte */
.mon-console {
    display: grid; gap: 6px;
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, 0.42);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.mon-console:hover { border-color: color-mix(in srgb, var(--h1) 45%, transparent); background: rgba(0, 0, 0, 0.55); }
.mon-console-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--mute); }
.mon-console-open { color: var(--h1); font-weight: 600; }
.mon-console-tail { display: grid; font: 12px/1.55 var(--mono); color: #cfe0ff; min-width: 0; }
.mon-console-tail .ln { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------- Live-Konsole (Fenster) */
.ln.cmd { color: var(--h1); }
.ln.sys { color: var(--faint); }
.ln.warn { color: #ffd98a; }
.ln.err { color: #ff97ab; }

.console {
    width: min(1120px, calc(100vw - 32px));
    height: min(780px, calc(100vh - 32px));
    max-width: none;
    max-height: none;
    padding: 0;
    border: 1px solid var(--stroke-hi);
    border-radius: 22px;
    background: #060914;
    color: var(--ink);
    box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 80px -40px var(--glow);
    overflow: hidden;
}
.console[open] { display: flex; flex-direction: column; animation: console-in 0.32s var(--ease); }
.console::backdrop { background: rgba(3, 5, 14, 0.66); }
@keyframes console-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } }
.console-head {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
    padding: 14px 14px 14px 22px;
    border-bottom: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0));
}
.console-id { display: grid; gap: 2px; min-width: 0; }
.console-title { font: 600 18px/1.2 var(--font-display); letter-spacing: -0.03em; }
.console-meta { color: var(--mute); font-size: 13px; }
.console-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.console-close {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 11px;
    border: 1px solid var(--stroke);
    background: transparent;
    color: var(--mute);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.console-close:hover { color: var(--ink); border-color: var(--stroke-hi); background: rgba(255, 255, 255, 0.05); }
.console-body { position: relative; flex: 1; min-height: 0; }
.console-out {
    position: absolute;
    inset: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 14px 22px 18px;
    font: 13px/1.6 var(--mono);
    color: #d4e0ff;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background:
        radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, var(--h2) 6%, transparent), transparent 70%),
        #060914;
    contain: content;
}
.console-out:focus-visible { outline: none; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--h1) 50%, transparent); }
.console-out .ln { padding: 0 2px; border-radius: 4px; }
.console-out .ln:hover { background: rgba(255, 255, 255, 0.03); }
.console-wait { color: var(--mute); font-family: var(--font); }
.console-jump {
    position: absolute; right: 22px; bottom: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 0;
    font-weight: 600; font-size: 13px;
    color: var(--dark-ink);
    background: linear-gradient(135deg, var(--h1), var(--h2));
    box-shadow: 0 10px 26px -10px var(--glow);
    cursor: pointer;
}
.console-foot { display: grid; gap: 10px; padding: 12px 14px 14px; border-top: 1px solid var(--stroke); background: rgba(255, 255, 255, 0.02); }
.console-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.console-chip {
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.03);
    color: var(--mute);
    font: 500 12.5px/1.4 var(--mono);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.console-chip:hover { color: var(--ink); border-color: color-mix(in srgb, var(--h1) 45%, transparent); }
.console-conn { margin-left: auto; font-size: 13px; color: var(--mute); }
.console-conn.bad { color: var(--warn); }
.console-line {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 4px 4px 14px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: var(--well);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.console-line:focus-within { border-color: color-mix(in srgb, var(--h1) 60%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--h1) 14%, transparent); }
.console-prompt { color: var(--h1); font: 600 16px/1 var(--mono); }
.console .console-input { flex: 1; min-width: 0; padding: 9px 0; border: 0; background: transparent; box-shadow: none; font: 14px/1.4 var(--mono); }
.console .console-input:focus { background: transparent; box-shadow: none; }

/* ---------------------------------------------------------- Responsive */
@media (max-width: 980px) {
    .tiles-lg { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .tile-lg { min-height: 210px; padding: 18px; }
    .tile-stat b { font-size: 32px; }
    .tiles-sm, .tiles-sm[data-count] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tiles-sm[data-count="3"] > .tile:last-child { grid-column: 1 / -1; }
    .tiles-sm[data-count="5"] > .tile, .tiles-sm[data-count="5"] > .tile:nth-child(n + 4) { grid-column: auto; }
    .tiles-sm[data-count="5"] > .tile:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .edit-layout { grid-template-columns: minmax(0, 1fr); }
    .edit-side { position: static; }
    .edit-list { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 2px; }
    .edit-item { width: auto; flex: none; }
    .msg-row { grid-template-columns: minmax(0, 1fr) auto; }
    .msg-row input:first-child { grid-column: 1 / -1; }
    .msg-preview { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .tiles-lg { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .tile-lg { min-height: 0; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "top top top" "stat stat pips" "bottom bottom bottom"; gap: 14px; }
    .tile-lg .tile-top { grid-area: top; }
    .tile-lg .tile-stat { grid-area: stat; margin: 0; }
    .tile-lg .tile-pips { grid-area: pips; align-self: end; justify-content: flex-end; margin: 0 0 6px; max-width: 140px; }
    .tile-lg .tile-bottom { grid-area: bottom; }
}
@media (max-width: 620px) {
    .topbar-inner { padding: 10px 16px; }
    .brand-domain, .account-name .name { display: none; }
    #app { padding: 0 16px 80px; }
    .hero { padding-top: 36px; }
    .hero p { font-size: 15.5px; }
    .chips { display: flex; }
    .chip { flex: 1 1 50%; border-left: 0; border-top: 1px solid var(--stroke); }
    .chip:nth-child(-n + 2) { border-top: 0; }
    .chip:nth-child(even) { border-left: 1px solid var(--stroke); }
    .group { margin-top: 34px; }
    .tiles-sm, .tiles-sm[data-count] { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .tiles-sm[data-count] > .tile, .tiles-sm[data-count] > .tile:nth-child(n + 4), .tiles-sm[data-count] > .tile:last-child { grid-column: auto; }
    .tile-sm { padding: 12px 14px; border-radius: 16px; }
    .sec-head { gap: 16px; margin-top: 22px; }
    .lens-xl { width: 56px; height: 56px; border-radius: 18px; }
    .lens-xl svg { width: 28px; height: 28px; }
    .sec-head p { font-size: 15px; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fact, .fact:first-child { border-left: 0; padding: 14px 16px; }
    .fact:nth-child(even) { border-left: 1px solid var(--stroke); }
    .fact:nth-child(n + 3) { border-top: 1px solid var(--stroke); }
    .fact b { font-size: 20px; }
    .panel { padding: 18px 16px; border-radius: 18px; }
    .sw-row { grid-template-columns: auto minmax(0, 1fr); row-gap: 10px; }
    .sw-status { grid-column: 2; }
    .sw-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .sw-meta { white-space: normal; }
    .switch-group { margin-left: 22px; }
    .lock-hint { margin-left: 0; }
    .tabs { display: flex; }
    .tab { flex: 1; text-align: center; padding: 9px 6px; }
    .sub-block { margin-left: 0; }
    .switch-row { gap: 4px 24px; }
    .codeblock { padding-right: 18px; padding-top: 52px; }
    .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
    .console { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
    .console-head { padding: 12px 12px 12px 16px; }
    .console-tools { width: 100%; margin-left: 0; }
    .console-close { margin-left: auto; }
    .console-out { padding: 12px 14px; font-size: 12.5px; }
    .console-line .btn { padding: 5px 10px; }
}
@media (hover: none) {
    .keys-hint, .tile kbd, .back kbd { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Vote: Serverlisten-Editor */
.vote-sites { display: grid; gap: 12px; margin-top: 14px; }
.vote-site {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr) 110px auto; align-items: end; gap: 10px 12px;
    padding: 14px; border-radius: 14px; border: 1px solid var(--stroke); background: rgba(255, 255, 255, 0.02);
}
.vote-site .btn { margin-bottom: 2px; }
.vote-sites + .btn { margin-top: 12px; }
.field-label { margin-top: 16px; margin-bottom: 8px; color: var(--mute); font-size: 13px; font-weight: 600; }
.steps-list { margin: 16px 0 0; padding-left: 20px; color: var(--mute); display: grid; gap: 6px; font-size: 14px; }
@media (max-width: 900px) {
    .vote-site { grid-template-columns: minmax(0, 1fr) 96px; grid-template-areas: "name hours" "url url" "service service" "btn btn"; }
    .vote-site > :nth-child(1) { grid-area: name; }
    .vote-site > :nth-child(2) { grid-area: url; }
    .vote-site > :nth-child(3) { grid-area: service; }
    .vote-site > :nth-child(4) { grid-area: hours; }
    .vote-site .btn { grid-area: btn; justify-self: start; }
}

/* ---------- Nur Premium (fest, Proxy bearbeiten) */
.premium-note {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 14px; border-radius: 14px;
    border: 1px solid rgba(98, 242, 229, 0.25); background: rgba(98, 242, 229, 0.06);
}
.premium-note p { margin: 0; color: var(--mute); font-size: 13.5px; line-height: 1.5; }
.premium-badge {
    flex: none; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
    color: #062a28; background: linear-gradient(135deg, #62f2e5, #4f9cff);
}

/* ---------- Discord: Einladungslink */
.invite-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }

.field-full { margin-top: 14px; }
.field-full input { width: 100%; }
