/* =====================================================================
   Shaiya End of Dreams – Stylesheet
   Aufbau:
     1. Schriften
     2. Farben & Variablen  (hier kannst du das Design zentral anpassen)
     3. Grundlagen
     4. Header (Statusleiste, Logo, Navigation)
     5. Bausteine (Buttons, Panels, Tabellen, Formulare, Hinweise)
     6. Startseite
     7. Footer
     8. Responsive (Handy/Tablet)
   ===================================================================== */

/* ---------- 1. Schriften (lokal, keine externen Server) ---------- */
@font-face {
    font-family: "Cinzel";
    src: url("../fonts/cinzel-600.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "Cinzel";
    src: url("../fonts/cinzel-700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "Barlow";
    src: url("../fonts/barlow-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Barlow";
    src: url("../fonts/barlow-500.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "Barlow";
    src: url("../fonts/barlow-600.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "Barlow";
    src: url("../fonts/barlow-700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

/* ---------- 2. Farben & Variablen ---------- */
:root {
    /* Hintergründe */
    --c-bg:          #050505;
    --c-bg-2:        #0a0a0b;
    --c-surface:     #111113;
    --c-surface-2:   #18181b;
    --c-surface-3:   #202024;

    /* Linien */
    --c-border:      #26262b;
    --c-border-soft: rgba(255, 255, 255, 0.06);
    --c-border-red:  rgba(179, 0, 27, 0.55);

    /* Rot-Akzente */
    --c-red:         #b3001b;
    --c-red-bright:  #e10600;
    --c-red-dark:    #6d0010;
    --c-red-glow:    rgba(225, 6, 0, 0.35);
    --c-red-tint:    rgba(179, 0, 27, 0.12);

    /* Altes Gold (mystische Akzente: Ornamente, Ecken, Überschriften) */
    --c-gold-old:    #c9a24a;
    --c-gold-light:  #ead39a;
    --c-gold-dark:   #8a6a2a;
    --c-gold-line:   rgba(201, 162, 74, 0.38);
    --c-gold-faint:  rgba(201, 162, 74, 0.14);
    --glow-gold:     0 0 14px rgba(201, 162, 74, 0.35);

    /* Schrift (leicht warm, wie altes Pergament) */
    --c-parchment:   #efe4cc;
    --c-text:        #ece4d6;
    --c-text-muted:  #a39d99;
    --c-text-dim:    #6f6a67;

    /* Fraktionen */
    --c-aol:         #e8c46a; /* Allianz des Lichts – hell/gold */
    --c-aol-dark:    #a8843a;
    --c-uof:         #e2262e; /* Bund des Zorns – rot */
    --c-uof-dark:    #8a0f14;

    /* Status */
    --c-success:     #3ecf6e;
    --c-warning:     #f0b429;
    --c-danger:      #ff4d4d;
    --c-info:        #6aa9ff;

    /* Ränge 1–3 */
    --c-gold:        #f2c94c;
    --c-silver:      #c9ced6;
    --c-bronze:      #d08a4c;

    /* Schriftarten */
    --font-heading:  "Cinzel", "Times New Roman", serif;
    --font-body:     "Barlow", "Segoe UI", Roboto, Arial, sans-serif;

    /* Maße */
    --radius-sm:     4px;
    --radius:        8px;
    --radius-lg:     14px;
    --container:     1200px;
    --gutter:        16px;

    /* Schatten & Glow */
    --shadow:        0 10px 30px rgba(0, 0, 0, 0.55);
    --glow-red:      0 0 18px var(--c-red-glow);
    --transition:    180ms ease;
}

/* ---------- 3. Grundlagen ---------- */
*,
*::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;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--c-text);
    background-color: var(--c-bg);
    /* Dezenter roter Schein oben + feines Raster */
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(179, 0, 27, 0.22), transparent 70%),
        radial-gradient(ellipse 40% 30% at 100% 30%, rgba(109, 0, 16, 0.12), transparent 70%),
        linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-2) 100%);
    background-attachment: fixed;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--c-red-bright);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: #ff4a3d;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.6em;
    letter-spacing: 0.02em;
}

p {
    margin: 0 0 1em;
}

:focus-visible {
    outline: 2px solid var(--c-red-bright);
    outline-offset: 2px;
}

::selection {
    background: var(--c-red);
    color: #fff;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.site-main {
    flex: 1;
    padding-bottom: 48px;
}

.page {
    padding-top: 32px;
}

.page-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-transform: uppercase;
    text-shadow: 0 0 24px var(--c-red-glow);
}

.text-muted {
    color: var(--c-text-muted);
}

/* Nur für Screenreader sichtbar */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 8px;
    top: -60px;
    z-index: 100;
    padding: 8px 14px;
    background: var(--c-red);
    color: #fff;
    border-radius: var(--radius-sm);
}
.skip-link:focus {
    top: 8px;
    color: #fff;
}

/* ---------- 4. Header ---------- */
.site-header {
    position: relative;
    z-index: 20;
}

/* Statusleiste */
.topbar {
    background: rgba(0, 0, 0, 0.75);
    border-bottom: 1px solid var(--c-border-soft);
    font-size: 0.85rem;
}
.topbar__inner {
    display: flex;
    align-items: center;
    gap: 12px 24px;
    min-height: 40px;
    flex-wrap: wrap;
    padding-top: 6px;
    padding-bottom: 6px;
}
.topbar__status {
    display: flex;
    gap: 8px;
}
.topbar__online {
    color: var(--c-text-muted);
    white-space: nowrap;
}
.topbar__online i {
    color: var(--c-red-bright);
    margin-right: 4px;
}
.topbar__online strong {
    color: var(--c-text);
}
.topbar__clock {
    color: var(--c-text-muted);
    white-space: nowrap;
}
.topbar__clock i {
    color: var(--c-red-bright);
    margin-right: 4px;
}
.topbar__clock strong {
    color: var(--c-text);
    font-variant-numeric: tabular-nums;
}
.topbar__factions {
    margin-left: auto;
    min-width: 220px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    background: var(--c-surface);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-text-dim);
}
.status-pill[data-state="online"] .status-dot {
    background: var(--c-success);
    box-shadow: 0 0 8px var(--c-success);
}
.status-pill[data-state="offline"] .status-dot {
    background: var(--c-danger);
    box-shadow: 0 0 8px var(--c-danger);
}
/* Server-Modus "Wartung" (Admin → Server) */
.status-pill[data-state="maintenance"] {
    border-color: rgba(240, 180, 41, 0.45);
}
.status-pill[data-state="maintenance"] .status-dot {
    background: var(--c-warning);
    box-shadow: 0 0 8px var(--c-warning);
    animation: maintenance-blink 1.6s ease-in-out infinite;
}
.status-pill__note {
    color: var(--c-warning);
    font-weight: 700;
}
@keyframes maintenance-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}
/* "Closed Beta" / "Open Beta" in der Statusleiste */
.mode-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid var(--c-gold-line);
    border-radius: 999px;
    background: rgba(201, 162, 74, 0.1);
    color: var(--c-gold-light);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.mode-chip--open_beta {
    border-color: rgba(62, 207, 110, 0.45);
    background: rgba(62, 207, 110, 0.08);
    color: #8ff0b0;
}

/* Logo + Account */
.masthead {
    border-bottom: 1px solid var(--c-border-soft);
}
.masthead__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 88px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--c-text);
}
.logo:hover {
    color: var(--c-text);
}
.logo__img {
    flex-shrink: 0;
    width: 84px;
    height: 84px;
    margin: -10px 0;            /* darf etwas über den Kopfbereich hinausragen */
    filter: drop-shadow(0 0 12px rgba(179, 0, 27, 0.55));
    transition: filter 0.3s ease, transform 0.3s ease;
}
.logo:hover .logo__img {
    filter: drop-shadow(0 0 18px rgba(255, 90, 30, 0.7));
    transform: scale(1.04);
}
.logo__mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--c-border-red);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(225, 6, 0, 0.35), rgba(0, 0, 0, 0.8) 70%);
    color: #fff;
    font-size: 1.4rem;
    box-shadow: var(--glow-red);
}
.logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo__shaiya {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    margin-bottom: 4px;
}
.logo__name {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    text-shadow: 0 0 14px var(--c-red-glow), 0 0 2px var(--c-red-bright);
}
.masthead__account {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.nav-toggle {
    display: none;
    margin-left: 8px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-surface);
    color: var(--c-text);
    font-size: 1.2rem;
    cursor: pointer;
}

/* Navigation */
.main-nav {
    background: linear-gradient(180deg, rgba(20, 0, 4, 0.9), rgba(8, 0, 2, 0.95));
    border-bottom: 1px solid var(--c-border-red);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}
.main-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.main-nav__item {
    position: relative;
}
.main-nav__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border: 0;
    background: none;
    color: var(--c-text);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    position: relative;
    transition: color var(--transition), background var(--transition);
}
.main-nav__link i {
    color: var(--c-red-bright);
    font-size: 0.85em;
}
.main-nav__link::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 2px;
    background: var(--c-red-bright);
    box-shadow: 0 0 10px var(--c-red-bright);
    transform: scaleX(0);
    transition: transform var(--transition);
}
.main-nav__link:hover,
.main-nav__link.is-active {
    color: #fff;
    background: var(--c-red-tint);
}
.main-nav__link:hover::after,
.main-nav__link.is-active::after {
    transform: scaleX(1);
}
.main-nav__caret {
    font-size: 0.7em !important;
    transition: transform var(--transition);
}

/* Dropdown (Ranglisten) */
.dropdown {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--c-surface);
    border: 1px solid var(--c-border-red);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.has-dropdown:hover .main-nav__caret,
.has-dropdown.is-open .main-nav__caret {
    transform: rotate(180deg);
}
.dropdown__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--c-text);
    font-weight: 500;
}
.dropdown__link i {
    width: 16px;
    color: var(--c-red-bright);
    text-align: center;
}
.dropdown__link:hover,
.dropdown__link.is-active {
    background: var(--c-red-tint);
    color: #fff;
}

/* ---------- 5. Bausteine ---------- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.2;
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition), color var(--transition), border-color var(--transition);
    white-space: nowrap;
}
.btn:hover {
    transform: translateY(-1px);
}
.btn:active {
    transform: translateY(0);
}
.btn--primary {
    background: linear-gradient(180deg, var(--c-red-bright), var(--c-red));
    border-color: var(--c-red-bright);
    color: #fff;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.btn--primary:hover {
    color: #fff;
    box-shadow: var(--glow-red);
}
.btn--ghost {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--c-border-red);
    color: var(--c-text);
}
.btn--ghost:hover {
    color: #fff;
    border-color: var(--c-red-bright);
    background: var(--c-red-tint);
}
.btn--lg {
    padding: 13px 26px;
    font-size: 1rem;
}
.btn[disabled],
.btn.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Panels (Kästen) */
.panel {
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.92), rgba(14, 14, 16, 0.92));
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
}
.panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--c-border);
    border-left: 3px solid var(--c-red-bright);
    background: linear-gradient(90deg, rgba(179, 0, 27, 0.18), transparent 60%);
}
.panel__header h2 {
    margin: 0;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.panel__header h2 i {
    color: var(--c-red-bright);
    margin-right: 6px;
}
.panel__body {
    padding: 20px;
}
.panel__subtitle {
    margin: 18px 0 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-text-muted);
}
.panel__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Definitionsliste (Label : Wert) */
.info-list {
    margin: 0;
}
.info-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--c-border-soft);
}
.info-list > div:last-child {
    border-bottom: 0;
}
.info-list dt {
    color: var(--c-text-muted);
}
.info-list dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}

/* Tabellen (Ranglisten usw.) */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.table th,
.table td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--c-border-soft);
    white-space: nowrap;
}
.table th {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-text-muted);
    background: rgba(0, 0, 0, 0.45);
}
.table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}
.table tbody tr:hover {
    background: var(--c-red-tint);
}
.table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.table .center {
    text-align: center;
}
.rank-1 { color: var(--c-gold);   font-weight: 700; }
.rank-2 { color: var(--c-silver); font-weight: 700; }
.rank-3 { color: var(--c-bronze); font-weight: 700; }

/* Fraktionsfarben */
.aol { color: var(--c-aol); }
.uof { color: var(--c-uof); }

/* Formulare */
.form {
    max-width: 480px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}
.input,
.select,
.textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.55);
    color: var(--c-text);
    font: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--c-red-bright);
    box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.2);
}
.form-hint {
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--c-text-dim);
}

/* Hinweise */
.flash-stack {
    padding-top: 20px;
}
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 1px solid;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}
.alert i {
    margin-top: 3px;
}
.alert span {
    flex: 1;
}
.alert__close {
    border: 0;
    background: none;
    color: inherit;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
}
.alert__close:hover {
    opacity: 1;
}
.alert--success { color: #8ff0b0; background: rgba(62, 207, 110, 0.1);  border-color: rgba(62, 207, 110, 0.4); }
.alert--error   { color: #ff8a8a; background: rgba(255, 77, 77, 0.1);   border-color: rgba(255, 77, 77, 0.45); }
.alert--warning { color: #ffd479; background: rgba(240, 180, 41, 0.1);  border-color: rgba(240, 180, 41, 0.45); }
.alert--info    { color: #a9cbff; background: rgba(106, 169, 255, 0.1); border-color: rgba(106, 169, 255, 0.4); }

/* Fraktionsbalken */
.faction-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.faction-bar__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 54px;
}
.faction-bar__label--aol { color: var(--c-aol); }
.faction-bar__label--uof { color: var(--c-uof); justify-content: flex-end; }
.faction-bar__track {
    flex: 1;
    display: flex;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--c-surface-3);
    border: 1px solid var(--c-border);
}
.faction-bar__fill {
    height: 100%;
    transition: width 600ms ease;
}
.faction-bar__fill--aol {
    background: linear-gradient(90deg, var(--c-aol-dark), var(--c-aol));
    box-shadow: 0 0 10px rgba(232, 196, 106, 0.45);
}
.faction-bar__fill--uof {
    background: linear-gradient(90deg, var(--c-uof), var(--c-uof-dark));
    box-shadow: 0 0 10px rgba(226, 38, 46, 0.45);
}
.faction-bar--empty .faction-bar__fill {
    background: var(--c-surface-3);
    box-shadow: none;
}
.faction-bar--compact {
    font-size: 0.8rem;
}
.faction-bar--compact .faction-bar__track {
    height: 8px;
}
.faction-bar--compact img {
    width: 16px;
    height: 16px;
}

/* Leerer Zustand / Platzhalter */
.empty-state {
    text-align: center;
    padding: 48px 20px;
}
.empty-state__icon {
    font-size: 2.6rem;
    color: var(--c-red-bright);
    text-shadow: var(--glow-red);
    margin-bottom: 16px;
}

/* Fehlerseiten */
.error-page__code {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 700;
    line-height: 1;
    margin: 0 0 8px;
    color: var(--c-red-bright);
    text-shadow: 0 0 30px var(--c-red-glow);
}
.debug-details {
    padding: 16px;
    overflow-x: auto;
    background: #000;
    border: 1px solid var(--c-border-red);
    border-radius: var(--radius-sm);
    color: #ffb3b3;
    font-size: 0.8rem;
    white-space: pre-wrap;
}

/* ---------- 6. Startseite ---------- */
.hero {
    position: relative;
    padding: 56px 0 40px;
    overflow: hidden;
}
.hero::before {
    /* Roter Lichtschein hinter dem Titel */
    content: "";
    position: absolute;
    inset: -40% 30% auto -10%;
    height: 420px;
    background: radial-gradient(closest-side, rgba(225, 6, 0, 0.18), transparent);
    pointer-events: none;
}
.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: center;
}
.hero__eyebrow {
    margin: 0 0 10px;
    color: var(--c-red-bright);
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.hero__title {
    margin: 0 0 14px;
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 30px var(--c-red-glow), 0 2px 0 #000;
}
.hero__title-small {
    display: block;
    font-size: 0.35em;
    letter-spacing: 0.6em;
    color: var(--c-text-muted);
    text-shadow: none;
    margin-bottom: 6px;
}
.hero__slogan {
    max-width: 560px;
    font-size: 1.15rem;
    color: var(--c-text-muted);
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.grb-card {
    padding: 22px;
    text-align: center;
    background: linear-gradient(180deg, rgba(40, 0, 6, 0.85), rgba(10, 10, 12, 0.92));
    border: 1px solid var(--c-border-red);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow), inset 0 0 40px rgba(179, 0, 27, 0.15);
}
.grb-card__title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}
.grb-card__title i {
    color: var(--c-red-bright);
    margin-right: 6px;
}
.grb-card__running {
    color: var(--c-red-bright);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    animation: pulse 1.6s ease-in-out infinite;
}
.grb-card__date {
    margin: 8px 0 14px;
    color: var(--c-text-muted);
    font-size: 0.9rem;
}
.grb-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.countdown {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 16px var(--c-red-glow);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}

/* Zweispaltiges Raster: Inhalt + Seitenleiste */
.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

/* Discord & TeamSpeak (Seitenleiste) */
.community-panel__text {
    margin: 0 0 14px;
    color: var(--c-text-muted);
    font-size: 0.92rem;
}
.community-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: #fff;
    box-shadow: var(--shadow);
    transition: filter 0.2s ease, transform 0.2s ease;
}
.community-card + .community-card {
    margin-top: 10px;
}
.community-card:hover {
    color: #fff;
    filter: brightness(1.1);
    transform: translateY(-1px);
}
.community-card i {
    width: 2.2rem;
    font-size: 2rem;
    text-align: center;
}
.community-card small {
    display: block;
    opacity: 0.85;
    word-break: break-all;
}
.community-card--discord {
    background: linear-gradient(135deg, #3b3fb8, #5865f2);
}
.community-card--teamspeak {
    background: linear-gradient(135deg, #1b3a5c, #2580c3);
}
.community-card--soon,
.community-card--soon:hover {
    filter: grayscale(0.6) brightness(0.75);
    transform: none;
    cursor: default;
}

/* ---------- 7. Footer ---------- */
.site-footer {
    border-top: 1px solid var(--c-border-red);
    background: rgba(0, 0, 0, 0.85);
    font-size: 0.9rem;
}
.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    padding-top: 28px;
    padding-bottom: 28px;
}
.site-footer__name {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.site-footer__note {
    margin: 4px 0 0;
    color: var(--c-text-dim);
    font-size: 0.82rem;
}
.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}
.site-footer__links a {
    color: var(--c-text-muted);
}
.site-footer__links a:hover {
    color: #fff;
}
.site-footer__copy {
    margin: 0;
    color: var(--c-text-dim);
    width: 100%;
}

/* ---------- 7b. Login, Registrierung, Mein Account ---------- */

/* Formular in einer Zeile (z. B. Logout-Button im Header) */
.inline-form {
    display: inline-flex;
    margin: 0;
}

/* Schmale, zentrierte Karte für Login/Registrierung */
.auth-card {
    max-width: 480px;
    margin: 0 auto;
}
.auth-card--wide {
    max-width: 760px;
}
.auth-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--c-border-soft);
    font-size: 0.92rem;
    text-align: center;
}

.form--full {
    max-width: none;
}
.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}
.input--short {
    max-width: 140px;
}
.input[aria-invalid="true"] {
    border-color: var(--c-danger);
}
.field-error {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: #ff8a8a;
}

/* Checkbox mit Text daneben */
.checkbox {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400 !important;
    cursor: pointer;
}
.checkbox input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--c-red-bright);
}

/* Honeypot-Feld: für Menschen unsichtbar */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Weitere Button-Varianten */
.btn--block {
    width: 100%;
}
.btn--sm {
    padding: 6px 12px;
    font-size: 0.75rem;
}
.btn--danger {
    background: rgba(255, 77, 77, 0.08);
    border-color: rgba(255, 77, 77, 0.5);
    color: #ff8a8a;
}
.btn--danger:hover {
    background: rgba(255, 77, 77, 0.18);
    border-color: var(--c-danger);
    color: #fff;
}
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

/* Roter Rahmen für Warn-Panels (z. B. gesperrt) */
.panel--danger {
    border-color: var(--c-border-red);
    box-shadow: var(--shadow), var(--glow-red);
}
.panel__note {
    margin: 0;
    padding: 12px 20px;
    font-size: 0.85rem;
    border-top: 1px solid var(--c-border-soft);
}

/* Kleine Markierungen ("Online", "Admin" …) */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
}
.badge--ok     { color: #8ff0b0; border-color: rgba(62, 207, 110, 0.5); background: rgba(62, 207, 110, 0.08); }
.badge--danger { color: #ff8a8a; border-color: rgba(255, 77, 77, 0.5);  background: rgba(255, 77, 77, 0.08); }
.badge--staff  { color: var(--c-gold); border-color: rgba(242, 201, 76, 0.5); background: rgba(242, 201, 76, 0.08); }

.icon-sm {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    object-fit: contain;
}
.icon--grey {
    filter: grayscale(1);
    opacity: 0.6;
}

/* Mein Account */
.account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
}
.account-logout {
    margin-top: 18px;
}
.info-list dd.break {
    word-break: break-all;
}
.points {
    color: var(--c-gold);
}
.points i {
    margin-right: 4px;
}
.char-name,
.char-class {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.table .actions {
    text-align: right;
    width: 1%;
}
.table .actions form {
    margin: 0;
}
.table--muted td {
    color: var(--c-text-muted);
}
.table--muted del {
    color: #ff8a8a;
}
.empty-state--small {
    padding: 28px 20px;
}
.empty-state--small .empty-state__icon {
    font-size: 1.8rem;
}

/* ---------- 7c. News, Info, Download, Rechtliches ---------- */

.lead {
    font-size: 1.05rem;
    color: var(--c-text-muted);
    margin-bottom: 24px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-weight: 600;
}
.panel__more--header {
    margin-top: 0;
    font-size: 0.85rem;
}

/* News-Karten */
.news-list {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
}
.news-list--compact {
    gap: 0;
    margin-bottom: 0;
}
.news-list--compact .news-card {
    background: none;
    border: 0;
    border-bottom: 1px solid var(--c-border-soft);
    border-radius: 0;
    box-shadow: none;
    padding: 4px 0 18px;
    margin-bottom: 18px;
}
.news-list--compact .news-card:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
.news-list--compact .news-card__body {
    padding: 0;
}
.news-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.92), rgba(14, 14, 16, 0.92));
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: border-color var(--transition);
}
.news-card:hover {
    border-color: var(--c-border-red);
}
.news-card--hidden {
    opacity: 0.7;
    border-style: dashed;
}
.news-card__image img {
    display: block;
    width: 220px;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
}
.news-card__body {
    padding: 18px 20px 18px 0;
}
.news-card:not(:has(.news-card__image)) {
    grid-template-columns: minmax(0, 1fr);
}
.news-card:not(:has(.news-card__image)) .news-card__body {
    padding-left: 20px;
}
.news-card__title {
    margin: 8px 0;
    font-size: 1.2rem;
}
.news-card__title a {
    color: var(--c-text);
}
.news-card__title a:hover {
    color: var(--c-red-bright);
}
.news-card__excerpt {
    margin-bottom: 4px;
    color: var(--c-text-muted);
}
.news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    font-size: 0.85rem;
    color: var(--c-text-dim);
}
.news-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--c-red);
}
.news-tag--update  { background: #1f5fae; }
.news-tag--event   { background: #8a5a00; }
.news-tag--wartung { background: #4a4a52; }

.news-article__image {
    display: block;
    width: 100%;
    max-height: 380px;
    object-fit: cover;
}
.news-article__title {
    margin: 12px 0 18px;
    font-size: clamp(1.5rem, 3vw, 2rem);
}
.news-article__updated {
    margin-top: 24px;
    font-size: 0.85rem;
}

/* Fließtext (News, Datenschutz …) */
.prose {
    line-height: 1.75;
}
.prose h3 {
    margin: 1.4em 0 0.5em;
    font-size: 1.15rem;
    color: #fff;
}
.prose ul,
.prose ol {
    padding-left: 1.3em;
    margin: 0 0 1em;
}
.prose li {
    margin-bottom: 0.35em;
}
.prose li::marker {
    color: var(--c-red-bright);
}
.prose > :last-child {
    margin-bottom: 0;
}
.missing-value {
    color: var(--c-warning);
    font-style: italic;
}

/* Seitenwechsel */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 8px 0 24px;
}
.pagination__link,
.pagination__gap {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
}
.pagination__link {
    border: 1px solid var(--c-border);
    background: rgba(0, 0, 0, 0.4);
    color: var(--c-text);
}
.pagination__link:hover {
    color: #fff;
    border-color: var(--c-red-bright);
    background: var(--c-red-tint);
}
.pagination__link.is-current {
    background: linear-gradient(180deg, var(--c-red-bright), var(--c-red));
    border-color: var(--c-red-bright);
    color: #fff;
}
.pagination__gap {
    color: var(--c-text-dim);
}

/* Seitenleiste: Spielerzahl je Fraktion */
.faction-counts {
    display: flex;
    justify-content: space-between;
    margin: 8px 0 0;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Info-Seite */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px;
    text-align: center;
    border: 1px solid var(--c-border-red);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(40, 0, 6, 0.6), rgba(10, 10, 12, 0.9));
}
.stat-box__label {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-text-muted);
}
.stat-box__value {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}
.stat-box__sub {
    font-size: 0.85rem;
    color: var(--c-text-dim);
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}
.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.check-list li {
    position: relative;
    padding: 5px 0 5px 26px;
}
.check-list li::before {
    content: "\f00c"; /* Font-Awesome-Häkchen */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--c-red-bright);
}
.enchant-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.enchant-grid .panel__subtitle {
    margin-top: 0;
}
.table--compact th,
.table--compact td {
    padding: 7px 12px;
}
.rate--high { color: #8ff0b0; font-weight: 700; }
.rate--mid  { color: #ffd479; font-weight: 700; }
.rate--low  { color: #ff8a8a; font-weight: 700; }

/* Download */
.download-list {
    display: grid;
    gap: 12px;
}
.download-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.35);
    color: var(--c-text);
    transition: border-color var(--transition), background var(--transition);
}
.download-item:hover {
    color: var(--c-text);
    border-color: var(--c-red-bright);
    background: var(--c-red-tint);
}
.download-item__icon {
    font-size: 1.8rem;
    width: 36px;
    text-align: center;
    color: var(--c-red-bright);
}
.download-item__text {
    flex: 1;
}
.download-item__text small {
    display: block;
    color: var(--c-text-muted);
}
.step-list {
    counter-reset: step;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}
.step-list li {
    counter-increment: step;
    position: relative;
    padding: 8px 0 8px 46px;
    min-height: 40px;
}
.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 4px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 700;
    color: #fff;
    background: var(--c-red);
    box-shadow: var(--glow-red);
}

/* Account löschen */
.danger-zone p {
    color: var(--c-text-muted);
}
.check-list--danger li::before {
    content: "\f071"; /* Warn-Dreieck */
    color: var(--c-warning);
}

/* Regeln */
.rule-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rule-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--c-border-soft);
    line-height: 1.7;
}
.rule-list li:first-child {
    padding-top: 0;
}
.rule-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.rule-list strong {
    color: #fff;
}

/* Cookie-Hinweis unten */
.cookie-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 12px 0;
    background: rgba(10, 10, 11, 0.97);
    border-top: 1px solid var(--c-border-red);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
}
.cookie-notice[hidden] {
    display: none;
}
.cookie-notice__inner {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cookie-notice__inner p {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
}
.cookie-notice__icon {
    font-size: 1.4rem;
    color: var(--c-red-bright);
}

/* ---------- 7d. Ranglisten ---------- */

/* Reiter PvP / Gilden / GRB */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--c-border);
}
.tabs__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    margin-bottom: -1px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    color: var(--c-text-muted);
}
.tabs__link:hover {
    color: #fff;
}
.tabs__link.is-active {
    color: #fff;
    border-color: var(--c-border);
    border-bottom-color: var(--c-bg);
    background: linear-gradient(180deg, var(--c-red-tint), transparent);
    box-shadow: inset 0 2px 0 var(--c-red-bright);
}

/* Filter-Knöpfe (Alle / Licht / Zorn / Online) */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--c-border-soft);
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--c-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}
.filter-chip:hover {
    color: #fff;
    border-color: var(--c-red-bright);
}
.filter-chip.is-active {
    color: #fff;
    border-color: var(--c-red-bright);
    background: linear-gradient(180deg, var(--c-red-bright), var(--c-red));
}
.filter-chip--aol.is-active {
    color: #1a1305;
    border-color: var(--c-aol);
    background: linear-gradient(180deg, var(--c-aol), var(--c-aol-dark));
}
.filter-chip--uof.is-active {
    border-color: var(--c-uof);
    background: linear-gradient(180deg, var(--c-uof), var(--c-uof-dark));
}

/* Tabellen der Ranglisten */
.table--ranking td {
    vertical-align: middle;
}
.rank-cell {
    width: 64px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.rank-cell i {
    font-size: 0.8em;
}
.table .kills {
    color: #ffb3a8;
    font-weight: 700;
}
.table .points {
    color: var(--c-gold);
    font-weight: 700;
}
.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-text-dim);
    flex: 0 0 auto;
}
.online-dot.is-online {
    background: var(--c-success);
    box-shadow: 0 0 8px var(--c-success);
}
.rank-icon {
    display: inline-block;
    width: 32px;
    height: 16px;
    vertical-align: middle;
    background-repeat: no-repeat;
}
.ranking-note {
    font-size: 0.85rem;
}

/* Gilden: zwei Spalten nebeneinander */
.guild-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    align-items: start;
}
.panel--aol .panel__header {
    border-left-color: var(--c-aol);
    background: linear-gradient(90deg, rgba(232, 196, 106, 0.14), transparent 60%);
}
.panel--uof .panel__header {
    border-left-color: var(--c-uof);
}
.panel__header h2 .icon-sm {
    margin-right: 6px;
    vertical-align: -3px;
}

/* GRB */
.grb-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 20px 24px;
    margin-bottom: 24px;
    background: linear-gradient(90deg, rgba(40, 0, 6, 0.85), rgba(10, 10, 12, 0.92));
    border: 1px solid var(--c-border-red);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow), inset 0 0 40px rgba(179, 0, 27, 0.15);
}
.grb-banner .grb-card__title,
.grb-banner .grb-card__date,
.grb-banner .grb-card__running {
    margin: 0;
}
.week-select {
    margin: 0;
}
.select--sm {
    width: auto;
    padding: 6px 12px;
    font-size: 0.85rem;
}
.panel__note--top {
    border-top: 0;
    border-bottom: 1px solid var(--c-border-soft);
}
.panel--live {
    border-color: rgba(62, 207, 110, 0.35);
}

/* ---------- 7e. Boss-Timer, Drop-Finder, Vote ---------- */

/* Kasten + Tabelle, aus denen ein Tooltip herausragen darf */
.panel--overflow,
.table-wrap--visible {
    overflow: visible;
}
.boss-table tr.is-due td {
    background: rgba(62, 207, 110, 0.05);
}
.boss-name {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
}
.boss-name i {
    color: var(--c-red-bright);
    margin-right: 4px;
}
.boss-timer {
    font-family: var(--font-heading);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #fff;
}
.boss-timer.is-done {
    color: var(--c-success);
    text-shadow: 0 0 10px rgba(62, 207, 110, 0.5);
}

/* Tooltip (CSS, öffnet bei Maus darüber und bei Fokus/Antippen) */
.tooltip {
    position: relative;
    display: inline-block;
}
.tooltip__trigger {
    padding: 0;
    border: 0;
    background: none;
    cursor: help;
    border-bottom: 1px dotted var(--c-border-red);
}
.tooltip__box {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 40;
    width: 320px;
    max-width: 80vw;
    padding: 14px;
    background: rgba(10, 10, 12, 0.98);
    border: 1px solid var(--c-border-red);
    border-radius: var(--radius);
    box-shadow: var(--shadow), var(--glow-red);
    white-space: normal;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--transition), visibility var(--transition);
}
.tooltip:hover .tooltip__box,
.tooltip:focus-within .tooltip__box {
    visibility: visible;
    opacity: 1;
}
.tooltip__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--c-border);
    font-weight: 700;
}
.drop-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 240px;
    overflow-y: auto;
}
.drop-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    border-bottom: 1px solid var(--c-border-soft);
    font-size: 0.88rem;
}
.drop-list a {
    color: var(--c-text);
}
.drop-list a:hover {
    color: var(--c-red-bright);
}
.drop-rate {
    color: #8ff0b0;
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Drop-Finder */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}
.search-bar .input {
    flex: 1;
}
.result-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.result-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 20px;
    border-bottom: 1px solid var(--c-border-soft);
}
.result-list li:last-child {
    border-bottom: 0;
}
.result-list li:hover {
    background: var(--c-red-tint);
}

/* Drop-Finder: Suchleiste */
.drop-tools {
    margin-bottom: 24px;
}
.drop-tools .search-bar {
    margin-bottom: 0;
}

/* Vorschläge unter dem Suchfeld */
.suggest {
    position: relative;
    flex: 1;
}
.suggest .input {
    width: 100%;
}
.suggest__list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 60;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    max-height: 360px;
    overflow-y: auto;
    background: rgba(14, 9, 10, 0.98);
    border: 1px solid var(--c-gold-line, rgba(201, 162, 74, 0.38));
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow), 0 0 18px rgba(179, 0, 27, 0.25);
}
.suggest__group {
    padding: 8px 14px 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-gold-old, #c9a24a);
}
.suggest__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
}
.suggest__item i {
    width: 16px;
    text-align: center;
    color: var(--c-red-bright);
    font-size: 0.85em;
}
.suggest__item:hover,
.suggest__item.is-active {
    background: var(--c-red-tint);
    color: var(--c-gold-light, #ead39a);
}
.suggest__item mark {
    background: none;
    color: var(--c-gold-light, #ead39a);
    font-weight: 700;
}
.suggest__empty {
    padding: 8px 14px;
    color: var(--c-text-dim);
    font-size: 0.88rem;
}
.result-list__maps {
    display: block;
    font-size: 0.78rem;
}

/* Minimap mit Spawn-Bereichen */
.spawn-map {
    margin: 0;
}
.spawn-map--sm {
    width: 260px;
    max-width: 70vw;
}
.spawn-map__canvas {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--c-gold-faint, rgba(201, 162, 74, 0.14));
    border-radius: var(--radius-sm);
    background: #17110e;
}
.spawn-map__canvas img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Karten ohne Minimap-Grafik: dunkler Hintergrund mit feinem Raster */
.spawn-map__canvas--blank {
    background:
        linear-gradient(rgba(201, 162, 74, 0.07) 1px, transparent 1px) 0 0 / 10% 10%,
        linear-gradient(90deg, rgba(201, 162, 74, 0.07) 1px, transparent 1px) 0 0 / 10% 10%,
        radial-gradient(circle, #2a1f19, #120d0b);
}
.spawn-map__no-image {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--c-text-dim);
}
/* Spawn-Bereiche als verschmolzene Flecken (SVG über der Minimap) */
.spawn-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* sanftes Leuchten um die Flecken */
    filter: drop-shadow(0 0 4px rgba(225, 6, 0, 0.7));
    animation: spawn-pulse 3s ease-in-out infinite;
}
.spawn-area {
    fill: #ff2a1a;
    transition: fill 200ms ease;
}
@keyframes spawn-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.7; }
}
.spawn-map__caption {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--c-text-muted);
}
.spawn-map__caption i {
    color: var(--c-gold-old, #c9a24a);
    margin-right: 4px;
}

/* Karten-Knöpfe in der Item-Tabelle (mit Minimap-Tooltip) */
.map-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.map-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid rgba(201, 162, 74, 0.3);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--c-text);
    font: inherit;
    font-size: 0.82rem;
    cursor: help;
}
.map-chip i {
    color: var(--c-red-bright);
}
.map-chip:hover,
.map-chip:focus-visible {
    border-color: var(--c-gold-old, #c9a24a);
    color: var(--c-gold-light, #ead39a);
}
.map-chips__more {
    font-size: 0.8rem;
}
.tooltip__box--map {
    width: auto;
    max-width: none;
    padding: 10px;
}

/* Monster-Seite: Karten, auf denen es vorkommt (Klick = vergrößern) */
.spawn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
.spawn-grid__item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: var(--c-text);
    font: inherit;
    text-align: left;
    cursor: zoom-in;
}
.spawn-grid__item .spawn-map__canvas {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.spawn-grid__item:hover .spawn-map__canvas,
.spawn-grid__item:focus-visible .spawn-map__canvas {
    border-color: var(--c-gold-old, #c9a24a);
    box-shadow: 0 0 14px rgba(201, 162, 74, 0.25);
}
.spawn-grid__item:focus-visible {
    outline: none;
}
/* Lupe oben rechts auf der Karte */
.spawn-grid__zoom {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--c-gold-line, rgba(201, 162, 74, 0.35));
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: var(--c-gold-light, #ead39a);
    font-size: 0.85rem;
    opacity: 0.75;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.spawn-grid__item:hover .spawn-grid__zoom,
.spawn-grid__item:focus-visible .spawn-grid__zoom {
    opacity: 1;
    transform: scale(1.1);
}

/* Vergrößerte Karte (Fenster über der Seite) */
.map-zoom {
    padding: 18px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    border: 1px solid var(--c-gold-line, rgba(201, 162, 74, 0.35));
    border-radius: var(--radius);
    background: linear-gradient(180deg, #1c0609, #0b0304);
    color: var(--c-text);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(179, 0, 27, 0.35);
    overflow: visible;
}
.map-zoom::backdrop {
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(2px);
}
.map-zoom[open] {
    animation: map-zoom-in 0.18s ease-out;
}
@keyframes map-zoom-in {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}
.spawn-map--zoom {
    /* so groß wie möglich, aber immer ganz sichtbar (Platz für Beschriftung abgezogen) */
    width: min(760px, calc(100vw - 72px), calc(100vh - 110px));
}
.map-zoom__close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--c-gold-line, rgba(201, 162, 74, 0.35));
    border-radius: 50%;
    background: #12040a;
    color: var(--c-gold-light, #ead39a);
    font-size: 1.05rem;
    cursor: pointer;
}
.map-zoom__close:hover,
.map-zoom__close:focus-visible {
    border-color: var(--c-gold-old, #c9a24a);
    color: #fff;
    background: var(--c-red, #8b0000);
}

/* Vote */
.vote-balance {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    margin-bottom: 24px;
    border: 1px solid rgba(242, 201, 76, 0.4);
    border-radius: var(--radius);
    background: rgba(242, 201, 76, 0.07);
}
.vote-balance i,
.vote-balance strong {
    color: var(--c-gold);
}
/* Karten nebeneinander und immer MITTIG – egal ob 1, 2 oder 3 Vote-Seiten */
.vote-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}
.vote-card {
    flex: 1 1 260px;   /* mindestens 260 px breit, darf wachsen … */
    max-width: 360px;  /* … aber nicht breiter als 360 px */
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.92), rgba(14, 14, 16, 0.92));
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: border-color var(--transition), transform var(--transition);
}
.vote-card:hover {
    border-color: var(--c-border-red);
    transform: translateY(-2px);
}
.vote-card.is-cooldown {
    opacity: 0.8;
}
/* Weißer Logo-Kasten mit FESTER Höhe – das Bild wird immer hineingepasst
   (Flexbox statt Grid, damit max-height: 100% wirklich greift). */
.vote-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 14px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
}
.vote-card__logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.vote-card__logo i {
    font-size: 3rem;
    color: var(--c-red);
}
.vote-card__title {
    margin: 0;
    font-size: 1.15rem;
}
.vote-card__status {
    margin: 0;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
}
.vote-card__status.is-ready {
    color: #8ff0b0;
    background: rgba(62, 207, 110, 0.1);
}
.vote-card__status.is-waiting {
    color: #ffd479;
    background: rgba(240, 180, 41, 0.1);
}
.vote-card form {
    margin-top: auto;
}

/* ---------- 7f. Admin-Bereich ---------- */
.textarea--tall {
    min-height: 320px;
    resize: vertical;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.92rem;
    line-height: 1.6;
}
.current-image {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}
.current-image img {
    width: 160px;
    height: 90px;
    object-fit: cover;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
}
.action-row {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}
.action-row form {
    margin: 0;
}
.table .cell-wrap {
    white-space: normal;
    min-width: 220px;
}
.button-row--top {
    margin: 0 0 16px;
}
.format-help code {
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.5);
    color: #ffb3a8;
    font-size: 0.85rem;
}
.admin-log li {
    align-items: baseline;
    font-size: 0.9rem;
}
.admin-log time {
    white-space: nowrap;
    font-size: 0.8rem;
}

/* Admin: Aktivitäten */
.activity-search {
    display: inline-flex;
    gap: 6px;
    margin: 0 0 0 auto;
}
.input--sm {
    width: 200px;
    padding: 6px 10px;
    font-size: 0.85rem;
}
.activity-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.activity-tag--ok     { color: #8ff0b0; border-color: rgba(62, 207, 110, 0.45); background: rgba(62, 207, 110, 0.08); }
.activity-tag--info   { color: #a9cbff; border-color: rgba(106, 169, 255, 0.45); background: rgba(106, 169, 255, 0.08); }
.activity-tag--warn   { color: #ffd479; border-color: rgba(240, 180, 41, 0.45); background: rgba(240, 180, 41, 0.08); }
.activity-tag--danger { color: #ff8a8a; border-color: rgba(255, 77, 77, 0.5);  background: rgba(255, 77, 77, 0.08); }
.activity-tag--gold   { color: var(--c-gold-light, #ead39a); border-color: rgba(201, 162, 74, 0.5); background: rgba(201, 162, 74, 0.08); }
.activity-tag--muted  { color: var(--c-text-muted); border-color: var(--c-border); background: rgba(255, 255, 255, 0.03); }

/* Kleine PvP-Rangliste in der Seitenleiste */
.mini-ranking {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mini-ranking__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--c-border-soft);
    font-size: 0.92rem;
}
.mini-ranking__item:last-child {
    border-bottom: 0;
}
.mini-ranking__rank {
    flex: 0 0 22px;
    text-align: right;
    font-weight: 700;
    color: var(--c-text-dim);
    font-variant-numeric: tabular-nums;
}
.mini-ranking__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}
.mini-ranking__kills {
    color: #ffb3a8;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* =====================================================================
   9. MYSTISCHES DESIGN – Blutrot + altes Gold
   ---------------------------------------------------------------------
   Dieser Abschnitt legt die mystische Optik über die Grundbausteine oben:
   Goldstaub im Hintergrund, goldene Ecken an den Kästen, Runenkreise,
   verzierte Überschriften. Animationen sind bewusst langsam und dezent.
   Wer das alte, schlichtere Aussehen zurück will: diesen Abschnitt löschen.
   ===================================================================== */

/* --- Hintergrund: Goldstaub, roter Schein, dunkle Ränder (Vignette) --- */
body {
    background-image:
        radial-gradient(ellipse 120% 90% at 50% 35%, transparent 55%, rgba(0, 0, 0, 0.8) 100%),
        url("../img/gold-dust.svg"),
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(179, 0, 27, 0.3), transparent 70%),
        radial-gradient(ellipse 40% 30% at 100% 30%, rgba(109, 0, 16, 0.16), transparent 70%),
        radial-gradient(ellipse 35% 30% at 0% 75%, rgba(201, 162, 74, 0.06), transparent 70%),
        linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-2) 100%);
    background-size: auto, 240px 240px, auto, auto, auto, auto;
}

::selection {
    background: #8e0716;
    color: var(--c-parchment);
}

/* Bildlaufleiste in Rot/Gold */
html {
    scrollbar-color: #6d0a14 #0a0607;
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #0a0607; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8e0716, #4e030d);
    border: 2px solid #0a0607;
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #b3001b, #6d0010); }

a:hover {
    color: var(--c-gold-light);
}
/* "Weiter"-Links in Kästen in Gold statt Rot (Buttons bleiben rot) */
.panel__more,
.auth-links a,
.grb-card__link {
    color: var(--c-gold-old);
}
.panel__more:hover,
.auth-links a:hover,
.grb-card__link:hover {
    color: var(--c-gold-light);
    text-shadow: var(--glow-gold);
}

/* --- Seitentitel: goldene Schrift mit Raute und Ziellinie darunter --- */
.page-title {
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
    letter-spacing: 0.08em;
    color: var(--c-gold-old); /* falls der Farbverlauf nicht unterstützt wird */
    background: linear-gradient(180deg, var(--c-gold-light) 0%, var(--c-gold-old) 55%, var(--c-gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 16px rgba(179, 0, 27, 0.5));
}
.page-title::before {
    content: "";
    position: absolute;
    left: 1px;
    bottom: 1px;
    width: 8px;
    height: 8px;
    background: var(--c-gold-old);
    transform: rotate(45deg);
    box-shadow: var(--glow-gold);
}
.page-title::after {
    content: "";
    position: absolute;
    left: 16px;
    bottom: 4px;
    width: min(260px, 70vw);
    height: 1px;
    background: linear-gradient(90deg, var(--c-gold-old), rgba(179, 0, 27, 0.6) 60%, transparent);
}

/* --- Statusleiste, Kopf, Navigation --- */
.topbar {
    border-bottom-color: var(--c-gold-faint);
}
.masthead {
    border-bottom: 0;
}

/* Logo-Zeichen mit langsam drehendem Runenkreis */
.logo__mark {
    position: relative;
    border-color: var(--c-gold-line);
    color: var(--c-gold-light);
    background: radial-gradient(circle, rgba(179, 0, 27, 0.6), rgba(0, 0, 0, 0.88) 70%);
    box-shadow: var(--glow-red), inset 0 0 12px rgba(0, 0, 0, 0.8);
}
.logo__mark::before {
    content: "";
    position: absolute;
    inset: -11px;
    background: url("../img/rune-circle.svg") center / contain no-repeat;
    opacity: 0.85;
    animation: rune-spin 90s linear infinite;
    pointer-events: none;
}
.logo__shaiya {
    color: var(--c-gold-old);
}
.logo__name {
    color: var(--c-gold-light);
    background: linear-gradient(180deg, #fff3d6 0%, var(--c-gold-light) 45%, var(--c-gold-old) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 10px rgba(179, 0, 27, 0.65));
}

.main-nav {
    background: linear-gradient(180deg, rgba(28, 4, 9, 0.96), rgba(8, 2, 3, 0.97));
    border-top: 1px solid var(--c-gold-faint);
    border-bottom: 1px solid var(--c-gold-line);
}
.main-nav__link i,
.dropdown__link i {
    color: var(--c-gold-old);
}
.main-nav__link::after {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-gold-light), transparent);
    box-shadow: 0 0 10px rgba(201, 162, 74, 0.7);
}
.main-nav__link:hover,
.main-nav__link.is-active {
    color: var(--c-gold-light);
    background: radial-gradient(ellipse 80% 120% at 50% 100%, rgba(179, 0, 27, 0.32), transparent 70%);
}
.dropdown {
    background: rgba(14, 8, 9, 0.98);
    border-color: var(--c-gold-line);
}
.dropdown__link:hover,
.dropdown__link.is-active {
    color: var(--c-gold-light);
}

/* --- Kästen: Pergament-dunkel, roter Schein oben, goldene Ecken --- */
.panel,
.news-card,
.vote-card {
    position: relative;
    border-color: var(--c-gold-faint);
    background:
        radial-gradient(ellipse 120% 60% at 50% 0%, rgba(179, 0, 27, 0.1), transparent 60%),
        linear-gradient(180deg, rgba(22, 16, 16, 0.94), rgba(10, 8, 9, 0.96));
    box-shadow: var(--shadow), inset 0 0 30px rgba(0, 0, 0, 0.55);
}
/* Goldene Ecken oben links und unten rechts */
.panel::before,
.panel::after,
.news-card::before,
.news-card::after,
.vote-card::before,
.vote-card::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    pointer-events: none;
    z-index: 2;
}
.panel::before,
.news-card::before,
.vote-card::before {
    top: 5px;
    left: 5px;
    border-top: 1px solid var(--c-gold-old);
    border-left: 1px solid var(--c-gold-old);
}
.panel::after,
.news-card::after,
.vote-card::after {
    bottom: 5px;
    right: 5px;
    border-bottom: 1px solid var(--c-gold-old);
    border-right: 1px solid var(--c-gold-old);
}
/* Kompakte News auf der Startseite stehen schon in einem Kasten → keine Ecken */
.news-list--compact .news-card {
    background: none;
    box-shadow: none;
}
.news-list--compact .news-card::before,
.news-list--compact .news-card::after {
    display: none;
}
.news-card:hover,
.vote-card:hover {
    border-color: var(--c-gold-line);
}

/* Kopfzeile der Kästen: goldene Linie statt rotem Balken */
.panel__header {
    border-left: 0;
    border-bottom: 0;
    background:
        linear-gradient(90deg, var(--c-gold-line), rgba(179, 0, 27, 0.55) 45%, transparent) bottom / 100% 1px no-repeat,
        linear-gradient(90deg, rgba(179, 0, 27, 0.18), transparent 70%);
}
.panel__header h2 {
    color: var(--c-parchment);
    letter-spacing: 0.1em;
}
.panel__header h2 i {
    color: var(--c-gold-old);
    text-shadow: var(--glow-gold);
}
/* Fraktions-Kästen behalten ihren farbigen Rand */
.panel--aol .panel__header { border-left: 3px solid var(--c-aol); }
.panel--uof .panel__header { border-left: 3px solid var(--c-uof); }
.panel--danger {
    border-color: var(--c-border-red);
}

/* --- Buttons --- */
.btn--primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #c3121f 0%, #8e0716 55%, #5e0410 100%);
    border-color: var(--c-gold-line);
    color: var(--c-parchment);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
    box-shadow: inset 0 1px 0 rgba(234, 211, 154, 0.25), inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
/* Goldener Schimmer, der beim Drüberfahren einmal über den Button läuft */
.btn--primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(234, 211, 154, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 700ms ease;
    pointer-events: none;
}
.btn--primary:hover {
    color: #fff;
    border-color: var(--c-gold-old);
    box-shadow: inset 0 1px 0 rgba(234, 211, 154, 0.3), 0 0 18px rgba(225, 6, 0, 0.35), var(--glow-gold);
}
.btn--primary:hover::after {
    left: 120%;
}
.btn--ghost {
    background: rgba(10, 6, 6, 0.55);
    border-color: var(--c-gold-line);
}
.btn--ghost:hover {
    color: var(--c-gold-light);
    border-color: var(--c-gold-old);
    background: rgba(201, 162, 74, 0.08);
}

/* --- Formulare --- */
.input,
.select,
.textarea {
    border-color: rgba(201, 162, 74, 0.2);
    background: rgba(5, 3, 3, 0.65);
}
.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--c-gold-old);
    box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.14), 0 0 14px rgba(179, 0, 27, 0.25);
}
.checkbox input {
    accent-color: #b3001b;
}

/* --- Tabellen --- */
.table th {
    color: var(--c-gold-old);
    background: rgba(0, 0, 0, 0.55);
    border-bottom: 1px solid var(--c-gold-faint);
}
.table tbody tr:hover {
    background: linear-gradient(90deg, rgba(179, 0, 27, 0.2), rgba(179, 0, 27, 0.04));
}
.rank-1 { text-shadow: 0 0 10px rgba(242, 201, 76, 0.6); }

/* --- Reiter und Filter --- */
.tabs {
    border-bottom-color: var(--c-gold-faint);
}
.tabs__link.is-active {
    color: var(--c-gold-light);
    border-color: var(--c-gold-faint);
    box-shadow: inset 0 2px 0 var(--c-gold-old);
}
.filter-chip {
    border-color: rgba(201, 162, 74, 0.2);
}
.pagination__link {
    border-color: rgba(201, 162, 74, 0.2);
}
.pagination__link.is-current {
    border-color: var(--c-gold-old);
    color: var(--c-parchment);
}

/* --- Startseite: goldener Titel, Runenkreis hinter dem GRB-Countdown --- */
.hero__eyebrow {
    color: var(--c-gold-old);
    text-shadow: var(--glow-gold);
}
.hero__title {
    color: var(--c-gold-light);
    background: linear-gradient(180deg, #fff3d6 0%, var(--c-gold-light) 40%, var(--c-gold-old) 75%, var(--c-gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 16px rgba(179, 0, 27, 0.5));
    animation: title-glow 7s ease-in-out infinite;
}
.hero__title-small {
    -webkit-text-fill-color: var(--c-text-muted);
}
.hero__card {
    position: relative;
    isolation: isolate;
}
.hero__card::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 560px;
    height: 560px;
    margin: -280px 0 0 -280px;
    background: url("../img/rune-circle.svg") center / contain no-repeat;
    opacity: 0.17;
    z-index: -1;
    animation: rune-spin 240s linear infinite;
    pointer-events: none;
}
.grb-card {
    border-color: var(--c-gold-line);
    background: linear-gradient(180deg, rgba(40, 4, 10, 0.88), rgba(10, 8, 9, 0.94));
}
.grb-card__title i,
.grb-banner .grb-card__title i {
    color: var(--c-gold-old);
}
.grb-banner {
    border-color: var(--c-gold-line);
}
.countdown {
    color: var(--c-gold-light);
    text-shadow: 0 0 16px rgba(179, 0, 27, 0.6);
}

/* Kleine Zahlenkästen (Info, Admin) */
.stat-box {
    border-color: var(--c-gold-line);
}
.stat-box__value {
    color: var(--c-gold-light);
}

/* --- Footer mit goldener Raute in der Mitte --- */
.site-footer {
    position: relative;
    border-top-color: var(--c-gold-line);
    background: linear-gradient(180deg, rgba(12, 4, 6, 0.94), #000);
}
.site-footer::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    width: 11px;
    height: 11px;
    margin-left: -6px;
    background: var(--c-bg);
    border: 1px solid var(--c-gold-old);
    transform: rotate(45deg);
    box-shadow: var(--glow-gold);
}
.site-footer__name {
    color: var(--c-gold-old);
}
.cookie-notice {
    border-top-color: var(--c-gold-line);
}

/* --- Animationen (langsam, dezent) --- */
@keyframes rune-spin {
    to { transform: rotate(360deg); }
}
@keyframes title-glow {
    0%, 100% { filter: drop-shadow(0 0 14px rgba(179, 0, 27, 0.45)); }
    50%      { filter: drop-shadow(0 0 26px rgba(225, 6, 0, 0.65)); }
}

/* Handy: Linie im aufgeklappten Menü einfarbig gold */
@media (max-width: 860px) {
    .main-nav__link::after {
        width: 1px;
        background: var(--c-gold-old);
    }
}

/* Wer im System "weniger Bewegung" eingestellt hat: alles steht still */
@media (prefers-reduced-motion: reduce) {
    .logo__mark::before,
    .hero__card::before,
    .hero__title,
    .spawn-layer {
        animation: none !important;
    }
}

/* ---------- 8. Responsive ---------- */

/* Tablet */
@media (max-width: 1000px) {
    .hero__inner,
    .page-grid,
    .account-grid,
    .guild-columns {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero__card {
        max-width: 420px;
    }
}

/* Handy: Navigation wird zum aufklappbaren Menü */
@media (max-width: 860px) {
    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }
    .masthead__inner {
        min-height: 72px;
    }
    .masthead__account .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .main-nav {
        display: none;
    }
    .main-nav.is-open {
        display: block;
    }
    .main-nav__list {
        flex-direction: column;
        padding: 8px 0;
    }
    .main-nav__link {
        width: 100%;
        padding: 12px 4px;
    }
    .main-nav__link::after {
        left: 0;
        right: auto;
        top: 8px;
        bottom: 8px;
        width: 2px;
        height: auto;
        transform: scaleY(0);
    }
    .main-nav__link:hover::after,
    .main-nav__link.is-active::after {
        transform: scaleY(1);
    }
    /* Dropdown im Handy-Menü einfach eingerückt darunter */
    .dropdown {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        border-left: 1px solid var(--c-border-red);
        border-radius: 0;
        margin-left: 12px;
        background: transparent;
    }
    .has-dropdown.is-open .dropdown {
        display: block;
    }
    .has-dropdown:hover .main-nav__caret {
        transform: none;
    }
    .has-dropdown.is-open .main-nav__caret {
        transform: rotate(180deg);
    }
}

@media (max-width: 560px) {
    .topbar__factions {
        margin-left: 0;
        width: 100%;
    }
    .logo__name {
        font-size: 1.2rem;
    }
    .logo__mark {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    .logo__img {
        width: 56px;
        height: 56px;
        margin: -4px 0;
    }
    /* Account-Buttons nur als Icons */
    .masthead__account .btn {
        font-size: 0;
        gap: 0;
        padding: 10px 12px;
    }
    .masthead__account .btn i {
        font-size: 1rem;
    }
    .hero {
        padding-top: 36px;
    }
    .hero__actions .btn {
        width: 100%;
    }
    .panel__body {
        padding: 16px;
    }
    .form-row,
    .feature-grid,
    .enchant-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .news-card {
        grid-template-columns: minmax(0, 1fr);
    }
    .news-card__image img {
        width: 100%;
        height: 160px;
        min-height: 0;
    }
    .news-card__body {
        padding: 16px;
    }
    .download-item {
        flex-wrap: wrap;
    }
    .search-bar {
        flex-direction: column;
    }
    /* Auf dem Handy braucht die Boss-Tabelle wieder Scrollen */
    .table-wrap--visible {
        overflow-x: auto;
    }
    .cookie-notice__inner {
        flex-wrap: wrap;
    }
    .cookie-notice__icon {
        display: none;
    }
}

/* Sehr schmale Handys (z. B. 360–400 px): Kopfzeile kompakter */
@media (max-width: 420px) {
    .logo {
        gap: 10px;
    }
    .logo__img {
        width: 46px;
        height: 46px;
        margin: 0;
    }
    .logo__shaiya {
        display: none;
    }
    .logo__name {
        font-size: 1rem;
    }
    .masthead__account {
        gap: 6px;
    }
    .masthead__account .btn {
        padding: 9px 10px;
    }
}

/* Weniger Bewegung, wenn im System so eingestellt */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =====================================================================
   10. SERVER-MODUS (Hinweis-Leiste + Auswahl im Admin-Bereich)
   ===================================================================== */
.mode-banner {
    border-bottom: 1px solid var(--c-gold-line);
    background: linear-gradient(90deg, rgba(109, 0, 16, 0.55), rgba(20, 6, 9, 0.9) 50%, rgba(109, 0, 16, 0.55));
    color: var(--c-gold-light);
    font-size: 0.9rem;
}
.mode-banner__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 9px;
    padding-bottom: 9px;
    text-align: center;
}
.mode-banner--maintenance {
    background: linear-gradient(90deg, rgba(120, 80, 0, 0.45), rgba(20, 12, 4, 0.92) 50%, rgba(120, 80, 0, 0.45));
    border-bottom-color: rgba(240, 180, 41, 0.45);
    color: #ffd479;
}
.mode-banner--open_beta {
    background: linear-gradient(90deg, rgba(20, 90, 45, 0.4), rgba(6, 16, 10, 0.92) 50%, rgba(20, 90, 45, 0.4));
    border-bottom-color: rgba(62, 207, 110, 0.4);
    color: #8ff0b0;
}

.mode-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.mode-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 14px 44px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.mode-option input {
    position: absolute;
    top: 17px;
    left: 16px;
    accent-color: var(--c-red);
}
.mode-option:hover {
    border-color: var(--c-gold-line);
}
.mode-option:has(input:checked) {
    border-color: var(--c-gold-old);
    background: rgba(201, 162, 74, 0.08);
    box-shadow: var(--glow-gold);
}
.mode-option__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--c-text);
    font-weight: 700;
}
.mode-option__title i {
    color: var(--c-gold-old);
}
.mode-option--maintenance .mode-option__title i {
    color: var(--c-warning);
}
.mode-option--open_beta .mode-option__title i {
    color: var(--c-success);
}
.mode-option__text {
    color: var(--c-text-muted);
    font-size: 0.88rem;
}

/* Admin → Server: Accounts zum Freischalten auswählen */
.bulk-table__check {
    width: 44px;
    text-align: center;
}
.bulk-table input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--c-red);
    cursor: pointer;
}
.bulk-table label {
    cursor: pointer;
}
.bulk-table tr.is-selected td {
    background: rgba(201, 162, 74, 0.09);
}
.bulk-panel {
    margin: 0 20px 18px;
    padding: 16px 18px;
    border: 1px solid var(--c-gold-line);
    border-radius: var(--radius);
    background: rgba(201, 162, 74, 0.06);
    animation: bulk-in 0.18s ease-out;
}
.bulk-panel[hidden] {
    display: none;
}
.bulk-panel textarea {
    resize: vertical;
    min-height: 60px;
}
.bulk-panel__hint {
    margin: 0 0 14px;
    font-size: 0.88rem;
}
@keyframes bulk-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}
