/* ==========================================================================
   Frank Gaming – Basis (gemeinsam für Website, Dashboard und Docs)
   Neon-Palette aus dem Frank-Gaming-Logo: Cyan + Magenta auf tiefem Violett.
   ========================================================================== */

@font-face { font-family: "Chakra Petch"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/chakra-petch-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"); }

:root {
    color-scheme: dark;
    --void: #07060d;
    --deck: #100e1a;
    --deck-2: #161328;
    --deck-3: #1e1a36;
    --line: #2a2645;
    --line-strong: #3d3766;
    --text: #eeebfb;
    --muted: #a6a1c4;
    --faint: #706a93;
    --cyan: #3be8ff;
    --cyan-soft: rgba(59, 232, 255, .12);
    --cyan-ink: #03171c;
    --magenta: #ff3fd1;
    --magenta-soft: rgba(255, 63, 209, .12);
    --violet: #9a7bff;
    --ok: #3df5a0;
    --warn: #ffc24b;
    --bad: #ff5470;
    --font-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
    --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
    --r-shell: 20px;
    --r-panel: 14px;
    --r-control: 10px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --glow-cyan: 0 0 0 1px rgba(59, 232, 255, .45), 0 0 18px rgba(59, 232, 255, .22);
    /* Aliase für ältere Stylesheets (Newsletter) */
    --border: var(--line);
    --muted-2: var(--faint);
    --primary: var(--cyan);
    --secondary: var(--magenta);
    --danger: var(--bad);
    --shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--void);
    color: var(--text);
    font: 400 16px/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
code, kbd { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .86em; }
code { background: var(--deck-2); border: 1px solid var(--line); border-radius: 6px; padding: .08em .4em; color: var(--text); word-break: break-all; }
kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 0 .4em; color: var(--muted); background: var(--deck-2); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
::selection { background: var(--magenta); color: #fff; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.icon { flex: none; }

/* ---------- Buttons ---------- */
.button {
    --b-bg: var(--cyan); --b-fg: var(--cyan-ink); --b-line: var(--cyan);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 0 18px;
    border: 1px solid var(--b-line); border-radius: var(--r-control);
    background: var(--b-bg); color: var(--b-fg);
    font: 600 15px/1 var(--font-body);
    cursor: pointer; white-space: nowrap; text-decoration: none;
    transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s;
}
.button:hover { text-decoration: none; box-shadow: 0 0 22px rgba(59, 232, 255, .35); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled, .button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.button-secondary, .button-ghost { --b-bg: var(--deck-2); --b-fg: var(--text); --b-line: var(--line-strong); }
.button-secondary:hover, .button-ghost:hover { --b-line: var(--cyan); box-shadow: none; }
.button-magenta { --b-bg: var(--magenta); --b-fg: #1d0218; --b-line: var(--magenta); }
.button-magenta:hover { box-shadow: 0 0 22px rgba(255, 63, 209, .38); }
.button-danger { --b-bg: transparent; --b-fg: var(--bad); --b-line: rgba(255, 84, 112, .5); }
.button-danger:hover { --b-bg: rgba(255, 84, 112, .1); box-shadow: none; }
.button-small, .compact-button { min-height: 34px; padding: 0 12px; font-size: 14px; }
.button-large { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.button-full { width: 100%; }

/* ---------- Flash / Notices ---------- */
.flash {
    position: relative; display: flex; align-items: flex-start; gap: 12px;
    padding: 13px 44px 13px 16px; margin: 0 0 16px;
    border: 1px solid var(--line-strong); border-left: 3px solid var(--cyan);
    border-radius: var(--r-control); background: var(--deck-2); color: var(--text); font-weight: 500;
}
.flash-success { border-left-color: var(--ok); }
.flash-error { border-left-color: var(--bad); }
.flash-warning { border-left-color: var(--warn); }
.flash button { position: absolute; right: 8px; top: 7px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
.flash button:hover { background: var(--deck-3); color: var(--text); }

/* ---------- Error page ---------- */
.fg-error { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 32px 16px; text-align: center; }
.fg-error img { border-radius: 22px; margin-bottom: 8px; }
.fg-error-code { font: 700 15px var(--font-display); color: var(--magenta); letter-spacing: .08em; }
.fg-error h1 { font-size: clamp(28px, 5vw, 40px); }
.fg-error p { color: var(--muted); max-width: 46ch; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Verfügbarkeitsbalken (Dashboard + öffentliche Statusseite) */
.uptime-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; height: 30px; margin-top: 12px; }
.uptime-bars i { display: block; border-radius: 3px; background: var(--line); transition: transform .15s var(--ease); }
.uptime-bars i:hover { transform: scaleY(1.12); }
.uptime-bars i.is-up { background: var(--ok); opacity: .85; }
.uptime-bars i.is-warn { background: var(--warn); }
.uptime-bars i.is-down { background: var(--bad); }
.uptime-bars i.is-empty { background: var(--deck-3); }
