/* ─────────────────────────────────────────────────────────────
   Olymp RP — öffentliche Seite

   Los Santos bei Nacht: tiefes Nachtblau, Natriumlicht-Gold wie
   die Straßenlaternen, die Skyline wird im Browser gezeichnet
   (site.js) — keine fremden Bilder. Schrift wie im Spiel: Exo 2.
   ───────────────────────────────────────────────────────────── */

@font-face {
    font-family: "Exo 2";
    src: url("Exo2.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --night:    #070a11;
    --night-2:  #0c111c;
    --panel:    #111827;
    --line:     rgba(160, 180, 220, 0.12);
    --text:     #edf0f6;
    --muted:    #8e97ab;
    --gold:     #f0b545;
    --gold-hi:  #ffcb66;
    --ink:      #1b1204;
    --green:    #46c98b;
    --red:      #ec5d62;
    --font:     "Exo 2", "Segoe UI", system-ui, sans-serif;
    --mono:     "Cascadia Mono", "Consolas", ui-monospace, monospace;
    --wrap:     1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    background: var(--night);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }

h1, h2, h3 { margin: 0; text-wrap: balance; }

p { margin: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

strong { color: var(--text); font-weight: 650; }

kbd {
    font-family: var(--mono);
    font-size: 0.85em;
    padding: 1px 6px;
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 4px;
    background: var(--panel);
}

/* ── Knöpfe ───────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 8px;
    font-weight: 650;
    font-size: 15px;
    letter-spacing: 0.02em;
    transition: background-color .2s, border-color .2s, transform .2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-solid { background: var(--gold); color: var(--ink); }
.btn-solid:hover { background: var(--gold-hi); }

.btn-ghost { border: 1px solid rgba(237, 240, 246, 0.28); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); }

.btn-lg { min-height: 54px; padding: 0 34px; font-size: 16px; }

/* ── Kopf ─────────────────────────────────────────────────── */

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 20;
    padding-inline: 20px;
    transition: background-color .3s, border-color .3s;
    border-bottom: 1px solid transparent;
}

.nav.is-solid {
    background: rgba(7, 10, 17, 0.86);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--line);
}

.nav-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }

.brand-mark { width: 30px; height: 30px; color: var(--gold); }

.brand-name { font-weight: 800; font-size: 19px; letter-spacing: 0.14em; }
.brand-name span { color: var(--gold); margin-left: 4px; font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 28px; }

.nav-links a { color: rgba(237, 240, 246, 0.82); font-size: 15px; font-weight: 550; }
.nav-links a:hover { color: var(--gold); }

.nav-links .nav-login {
    padding: 8px 16px;
    border: 1px solid rgba(240, 181, 69, 0.45);
    border-radius: 8px;
    color: var(--gold);
}

.nav-links .nav-login:hover { background: rgba(240, 181, 69, 0.1); }

.nav-links [hidden] { display: none; }

/* ── Auftakt ──────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: min(860px, 100svh);
    display: flex;
    align-items: center;
    padding: 120px 20px 90px;
    overflow: hidden;
    isolation: isolate;
}

.skyline {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    display: block;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(7, 10, 17, 0.92) 0%, rgba(7, 10, 17, 0.55) 45%, rgba(7, 10, 17, 0.1) 75%),
        linear-gradient(180deg, transparent 70%, var(--night) 100%);
}

.hero-inner {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr);
    gap: 48px;
    align-items: center;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.kicker::before {
    content: "";
    width: 22px;
    height: 2px;
    background: currentColor;
}

.hero-title {
    font-size: clamp(42px, 6.4vw, 80px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.hero-title em {
    font-style: normal;
    font-weight: 300;
    color: rgba(237, 240, 246, 0.9);
}

.hero-text {
    max-width: 52ch;
    margin-top: 24px;
    color: rgba(237, 240, 246, 0.74);
    font-size: 19px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Stadtfunk — der Status als kleines Funkgerät-Display */

.radio {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.78), rgba(10, 14, 23, 0.86));
    backdrop-filter: blur(8px);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.radio-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.radio-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.radio-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }

.radio-state.is-online { color: var(--green); }
.radio-state.is-online .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(70, 201, 139, 0.18); animation: pulse 2.4s infinite; }
.radio-state.is-offline { color: var(--red); }
.radio-state.is-offline .dot { background: var(--red); }

@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(70, 201, 139, 0.05); } }

.radio-count { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }

.radio-number {
    font-size: 64px;
    line-height: 1;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--gold);
}

.radio-max { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }

.radio-bar {
    height: 4px;
    margin-top: 16px;
    border-radius: 4px;
    background: rgba(160, 180, 220, 0.12);
    overflow: hidden;
}

.radio-bar span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-hi));
    transition: width .8s ease;
}

.radio-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
    padding: 16px 0;
    border-block: 1px solid var(--line);
}

.radio-facts dt { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.radio-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }

.connect {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px dashed rgba(240, 181, 69, 0.4);
    border-radius: 8px;
    background: rgba(240, 181, 69, 0.06);
    color: var(--text);
    font: 14px var(--mono);
    cursor: pointer;
    text-align: left;
    transition: background-color .2s;
}

.connect:hover { background: rgba(240, 181, 69, 0.12); }

.connect-cmd { overflow-wrap: anywhere; }

.connect-prompt {
    margin-right: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(240, 181, 69, 0.18);
    color: var(--gold);
    font-size: 12px;
}

.connect-hint { color: var(--gold); font-family: var(--font); font-size: 13px; font-weight: 600; white-space: nowrap; }

/* ── Abschnitte ───────────────────────────────────────────── */

.section {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 110px 20px 0;
}

.section-title {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    font-weight: 750;
}

.section-lead { margin-top: 12px; color: var(--muted); }

/* Über Olymp */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
}

.about-body { display: grid; gap: 18px; color: rgba(237, 240, 246, 0.76); max-width: 62ch; }

.notice {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding: 20px 22px;
    border: 1px solid rgba(240, 181, 69, 0.3);
    border-radius: 12px;
    background: radial-gradient(400px 120px at 0% 0%, rgba(240, 181, 69, 0.12), transparent 70%), var(--night-2);
}

.notice-tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

/* Die Stadt */

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--line);
}

.feature {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 30px 28px 34px;
    background: var(--night);
    transition: background-color .25s;
}

.feature:hover { background: var(--night-2); }

.feature-where {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--gold);
    opacity: 0.85;
}

.feature h3 { font-size: 21px; font-weight: 700; }

.feature p { color: var(--muted); font-size: 16px; }

/* Einstieg — echte Reihenfolge, daher nummeriert */

.steps {
    list-style: none;
    counter-reset: step;
    margin: 44px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.step {
    counter-increment: step;
    position: relative;
    display: grid;
    align-content: start;
    gap: 10px;
    padding-top: 30px;
    border-top: 2px solid var(--line);
}

.step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: -2px;
    left: 0;
    width: 44px;
    border-top: 2px solid var(--gold);
    padding-top: 8px;
    font: 700 13px var(--mono);
    color: var(--gold);
}

.step h3 { font-size: 20px; font-weight: 700; margin-top: 10px; }

.step p { color: var(--muted); font-size: 16px; }

.step-link { font-weight: 650; font-size: 15px; }

/* Regeln */

.rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 56px;
    margin: 36px 0 0;
}

.rule {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.rule dt { font-weight: 700; }
.rule dd { margin: 0; color: var(--muted); font-size: 16px; }

/* Aufruf */

.finale {
    position: relative;
    margin-top: 130px;
    padding: 110px 20px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(700px 300px at 50% 120%, rgba(240, 181, 69, 0.2), transparent 70%),
        linear-gradient(180deg, var(--night), var(--night-2));
    border-top: 1px solid var(--line);
}

.finale-inner { max-width: 640px; margin: 0 auto; display: grid; justify-items: center; gap: 18px; }

.finale-title { font-size: clamp(34px, 5vw, 58px); font-weight: 800; line-height: 1.05; }

.finale p { color: var(--muted); font-size: 18px; margin-bottom: 10px; }

/* ── Fuß ──────────────────────────────────────────────────── */

.foot { border-top: 1px solid var(--line); padding: 56px 20px 64px; background: var(--night-2); }

.foot-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.foot-brand { display: grid; gap: 12px; align-content: start; }
.foot-brand p { color: var(--muted); font-size: 14px; max-width: 42ch; }

.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-col a { color: rgba(237, 240, 246, 0.75); font-size: 15px; }
.foot-col a:hover { color: var(--gold); }

.foot-head {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

/* ── Schmal ───────────────────────────────────────────────── */

@media (max-width: 980px) {
    .hero-inner, .about-grid { grid-template-columns: 1fr; }
    .radio { max-width: 460px; }
    .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
    .rules { grid-template-columns: 1fr; }
    .hero-shade { background: linear-gradient(180deg, rgba(7, 10, 17, 0.55) 0%, rgba(7, 10, 17, 0.88) 60%, var(--night) 100%); }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .nav-links a:not(.nav-login) { display: none; }
    .hero { padding-top: 104px; }
    .section { padding-top: 80px; }
    .features, .steps { grid-template-columns: 1fr; }
    .rule { grid-template-columns: 1fr; gap: 4px; }
    .foot-inner { grid-template-columns: 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; }
    .radio-number { font-size: 52px; }
}

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