/* ─────────────────────────────────────────────────────────────
   Olymp RP – Webseite

   Dasselbe Bild wie im Spiel: dunkle Flächen mit runden Ecken,
   Gold für alles, was man anklicken soll, Titel kursiv in
   Versalien. Die Statusseite, Impressum, Datenschutz und „Mein
   Konto“ (kommt vom Panel im FiveM-Server) nutzen diese Datei.

   Exo 2: SIL Open Font License 1.1, siehe Exo2.txt.
   ───────────────────────────────────────────────────────────── */

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

:root {
    --gold:      #f0b545;
    --gold-hi:   #ffc95e;
    --gold-soft: rgba(240, 181, 69, 0.14);
    --gold-line: rgba(240, 181, 69, 0.35);
    --on-gold:   #1b1204;
    --red:       #ff3b4e;
    --red-soft:  rgba(255, 59, 78, 0.12);
    --red-line:  rgba(255, 59, 78, 0.45);
    --green:     #3ddc84;
    --text:      #f3f5f9;
    --dim:       rgba(243, 245, 249, 0.62);
    --faint:     rgba(243, 245, 249, 0.14);
    --night:     #070a11;
    --panel:     rgba(9, 12, 19, 0.78);
    --tile:      rgba(255, 255, 255, 0.045);
    --line:      rgba(255, 255, 255, 0.08);
    --radius:    18px;
    --font:      "Exo 2", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--night);
    background-image:
        radial-gradient(ellipse 80% 55% at 50% -10%, rgba(39, 58, 104, 0.55), transparent 70%),
        radial-gradient(ellipse 60% 40% at 85% 110%, rgba(240, 181, 69, 0.07), transparent 70%),
        linear-gradient(180deg, #0b1020 0%, var(--night) 60%);
    background-attachment: fixed;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }

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

.hidden { display: none !important; }

.wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.top {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(7, 10, 17, 0.86);
    border-bottom: 1px solid var(--line);
}

.top .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 68px;
}

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

.brand:hover { color: var(--text); text-decoration: none; }

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

.brand-name {
    font-size: 21px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand-name b { color: var(--gold); font-weight: 900; margin-left: 0.3em; }

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.who {
    font-size: 14px;
    color: var(--dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.btn:hover { text-decoration: none; }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-gold {
    background: var(--gold);
    color: var(--on-gold);
    box-shadow: 0 0 22px rgba(240, 181, 69, 0.25);
}

.btn-gold:hover { background: var(--gold-hi); color: var(--on-gold); box-shadow: 0 0 28px rgba(240, 181, 69, 0.4); }

.btn-ghost {
    background: var(--tile);
    border-color: var(--line);
    color: var(--text);
}

.btn-ghost:hover { border-color: var(--gold-line); color: var(--text); }

.btn-small { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

.btn[disabled],
.btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.55;
    box-shadow: none;
}

/* Flächen und Bausteine ─────────────────────────────────────── */

main { flex: 1; padding: 32px 0 56px; }

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    padding: 28px;
    min-width: 0;
}

.cap {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--dim);
}

.title {
    margin: 4px 0 14px;
    font-size: clamp(30px, 4.6vw, 46px);
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.title span { color: var(--gold); }

/* Startseite: zwei Zeilen, die zweite ist der goldene Teil */
.title-home { font-size: clamp(18px, 4.4vw, 30px); }
.title-home span { display: block; }

.lead + .actions { margin-top: 24px; }

.subtitle {
    margin: 2px 0 12px;
    font-size: 22px;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.lead { font-size: 17px; color: var(--dim); max-width: 60ch; }
.lead strong { color: var(--text); font-weight: 600; }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 26px;
    list-style: none;
}

.chip {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 14px;
    border-radius: 99px;
    background: var(--tile);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--dim);
    white-space: nowrap;
}

.chip.gold { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold); }
.chip.red { background: var(--red-soft); border-color: var(--red-line); color: #ff8592; }
.chip.green { background: rgba(61, 220, 132, 0.12); border-color: rgba(61, 220, 132, 0.4); color: var(--green); }

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
}

.note {
    font-size: 14px;
    color: var(--dim);
}

.note b { color: var(--text); font-weight: 600; }

.notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--gold-soft);
    border: 1px solid var(--gold-line);
    font-size: 15px;
}

.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--gold); }

.notice.red { background: var(--red-soft); border-color: var(--red-line); }
.notice.red svg { color: var(--red); }

/* Zustand mit Punkt */
.state {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: none;
    background: var(--dim);
}

.state.on .dot { background: var(--green); box-shadow: 0 0 0 5px rgba(61, 220, 132, 0.16); animation: pulse 2.4s infinite; }
.state.off .dot { background: var(--red); box-shadow: 0 0 0 5px rgba(255, 59, 78, 0.16); }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 5px rgba(61, 220, 132, 0.16); }
    50%      { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0.04); }
}

/* Schräger Balken wie das Gewicht im Inventar */
.bar {
    height: 8px;
    margin: 0 3px;
    border-radius: 8px;
    background: var(--faint);
    overflow: hidden;
    transform: skewX(-25deg);
}

.bar i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #f3f5f9, var(--gold));
    box-shadow: 0 0 12px rgba(240, 181, 69, 0.6);
    transition: width 0.4s ease;
}

/* Zeilen mit Bezeichnung und Wert */
.rows { display: grid; gap: 0; }

.rows > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    font-size: 15px;
}

.rows dt { color: var(--dim); }
.rows dd { text-align: right; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

/* Statusseite ───────────────────────────────────────────────── */

.hero {
    padding: 0;
    overflow: hidden;
    margin-bottom: 24px;
}

.hero img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 1;
    object-fit: cover;
}

.home {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.server .state { margin: 10px 0 18px; font-size: 16px; }

.count {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}

.count b {
    font-size: 48px;
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    color: var(--gold);
}

.count span { color: var(--dim); font-size: 15px; }

.server .bar { margin-bottom: 22px; }
.server .note { margin-top: 14px; }

/* Rechtliches ───────────────────────────────────────────────── */

.legal { max-width: 860px; margin: 0 auto; }
.legal .lead { margin-bottom: 22px; }

.legal h2 {
    margin: 34px 0 12px;
    font-size: 21px;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--gold);
}

.legal h2:first-of-type { margin-top: 8px; }

.legal h3 {
    margin: 20px 0 6px;
    font-size: 17px;
    font-weight: 700;
}

.legal p,
.legal li { color: rgba(243, 245, 249, 0.82); }

.legal p + p { margin-top: 10px; }

.legal ul { margin: 8px 0 10px 22px; }
.legal li + li { margin-top: 4px; }

.legal code {
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 0.92em;
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--tile);
    border: 1px solid var(--line);
    color: var(--text);
    overflow-wrap: anywhere;
}

.legal .basis { font-size: 14px; color: var(--dim); }

.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.toc a { font-size: 13px; }

/* Meldeseiten des Panels (Anmeldung abgelaufen usw.) */
.message { max-width: 720px; }
.message .actions { margin-top: 24px; }

.placeholder {
    padding: 0 6px;
    border-radius: 6px;
    border: 1px dashed var(--gold-line);
    color: var(--gold);
}

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

.foot {
    border-top: 1px solid var(--line);
    background: rgba(7, 10, 17, 0.6);
}

.foot .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    padding-top: 22px;
    padding-bottom: 22px;
    font-size: 13px;
    color: var(--dim);
}

.foot nav { display: flex; gap: 20px; }
.foot nav a { color: var(--dim); }
.foot nav a:hover,
.foot nav a[aria-current="page"] { color: var(--gold); }

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

@media (max-width: 860px) {
    .home { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
    .wrap { padding: 0 16px; }
    .top .wrap { height: 60px; }
    .brand-name { font-size: 18px; }
    .brand svg { width: 26px; height: 26px; }
    main { padding: 20px 0 40px; }
    .panel { padding: 20px; }
    .hero { margin-bottom: 16px; }
    .home { gap: 16px; }
    .lead { font-size: 16px; }
    .actions .btn { width: 100%; }
    .top .who { display: none; }
    .count b { font-size: 40px; }
    .foot .wrap { flex-direction: column; align-items: flex-start; }
}

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