/* =========================================================================
   Metin2 P-Server — Modern UI 2026
   Wird NACH metin2.css geladen und überschreibt das Alt-Design.
   ========================================================================= */

/* ---------------------------------------------------------------- Tokens */
:root {
    --bg:            #07080c;
    --bg-2:          #0c0e15;
    --surface:       #12151f;
    --surface-2:     #171b28;
    --surface-3:     #1e2333;
    --border:        rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .14);

    --text:          #e8eaf0;
    --text-soft:     #b9bfd0;
    --muted:         #8b93a7;

    --gold:          #f0c05a;
    --gold-2:        #ffdc8a;
    --gold-dim:      rgba(240, 192, 90, .14);
    --red:           #d2372a;
    --red-2:         #ff5f49;
    --green:         #35d17f;
    --blue:          #4d8dff;

    --r-sm: 10px;
    --r:    14px;
    --r-lg: 20px;
    --r-xl: 26px;
    --pill: 999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .35);
    --shadow:    0 12px 34px rgba(0, 0, 0, .45);
    --shadow-lg: 0 26px 70px rgba(0, 0, 0, .55);
    --glow-gold: 0 0 0 1px rgba(240, 192, 90, .35), 0 10px 30px rgba(240, 192, 90, .18);

    --header-h: 88px;
    /* Auf die Bannerbreite (468px) abgestimmt, damit die Karten bündig sitzen */
    --maxw: 1200px;

    --ease: cubic-bezier(.22, .9, .3, 1);

    --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------------------------------------- Grundlage */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.site {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    background-image: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* dekorative Hintergrund-Ebenen */
.site-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 520px at 12% -8%,  rgba(210, 55, 42, .22),  transparent 62%),
        radial-gradient(820px 520px at 88% 2%,   rgba(240, 192, 90, .13), transparent 60%),
        radial-gradient(1200px 800px at 50% 110%, rgba(77, 141, 255, .10), transparent 65%),
        linear-gradient(180deg, #0a0c13 0%, #07080c 55%, #05060a 100%);
}
.site-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .5;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(closest-side at 50% 0%, #000 0%, transparent 85%);
    -webkit-mask-image: radial-gradient(closest-side at 50% 0%, #000 0%, transparent 85%);
}

.site-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1 0 auto; padding-bottom: 64px; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 22px;
}

/* Typo-Reset gegen Alt-CSS */
body.site h1, body.site h2, body.site h3, body.site h4, body.site h5 {
    display: block;
    margin: 0 0 .5em;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.02em;
    color: var(--text);
    text-shadow: none;
}
body.site h1 { font-size: clamp(26px, 3.4vw, 40px); }
body.site h2 { font-size: clamp(21px, 2.4vw, 28px); }
body.site h3 { font-size: 18px; }
body.site h4 { font-size: 16px; }
/* ohne body.site-Prefix, damit Komponenten-Regeln wie .sc-desc greifen
   (metin2.css definiert kein bare "p") */
p { margin: 0 0 1em; color: var(--text-soft); }

body.site a {
    font-family: inherit;
    font-size: inherit;
    color: var(--link);
    text-decoration: none;
    transition: color .18s var(--ease), opacity .18s var(--ease);
}
body.site a:hover { color: var(--link-hover); text-decoration: none; }
body.site a:active { color: var(--link-hover); }

/* Bewusst OHNE body.site-Prefix: sonst schlaegt diese Regel (0,1,2) alle
   Komponenten-Regeln wie .brand img (0,1,1) und erzwingt ueberall height:auto. */
img { max-width: 100%; height: auto; border: 0; }
body.site form { display: block; }
body.site hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }

::selection { background: rgba(240, 192, 90, .3); color: #fff; }

/* Scrollbar */
* { scrollbar-color: var(--scroll-thumb) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); background-clip: content-box; }

/* Fahnen-Sprite wieder brauchbar machen (Alt-CSS nutzt float) */
body.site .flag {
    float: none !important;
    display: inline-block;
    vertical-align: middle;
    margin: 0 4px 0 0;
    border-radius: 2px;
    box-shadow: 0 0 0 1px var(--flag-ring);
}

/* ================================================================ HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--border);
    transition: background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck {
    background: var(--header-bg-stuck);
    border-bottom-color: var(--border-strong);
    box-shadow: var(--header-shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
/* 65px Hoehe -> ca. 191px Breite (Seitenverhaeltnis 2125:724, unverzerrt) */
.brand img { display: block; height: 65px; width: auto; filter: drop-shadow(0 3px 14px rgba(210, 55, 42, .45)); }

.main-nav { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; }
.main-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: var(--pill);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-soft);
    white-space: nowrap;
}
.main-nav a:hover { color: var(--text-strong); background: var(--hover); }
.main-nav a.is-active { color: var(--text-strong); background: var(--gold-dim); box-shadow: inset 0 0 0 1px var(--gold-line); }
.main-nav a .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 10px var(--red-2); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

/* Suche */
.header-search { position: relative; display: flex; align-items: center; }
.header-search input[type="text"],
.header-search input[type="search"] {
    width: 250px;
    height: 40px;
    padding: 0 38px 0 38px;
    border-radius: var(--pill);
    border: 1px solid var(--border);
    background: var(--ctrl);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    line-height: 40px;
    cursor: text;
    margin: 0;
    transition: border-color .2s var(--ease), background .2s var(--ease), width .25s var(--ease);
}
.header-search input::placeholder { color: var(--muted); }
.header-search input:focus {
    outline: none;
    width: 290px;
    border-color: var(--focus-line);
    background: var(--ctrl-focus);
    box-shadow: 0 0 0 4px var(--focus-glow);
}
.header-search .search-ico {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}
.header-search button {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    display: grid; place-items: center;
    width: 30px; height: 30px; padding: 0; margin: 0;
    border: 0; border-radius: 50%;
    background: linear-gradient(135deg, var(--red), #a3231a);
    color: #fff; cursor: pointer;
    transition: transform .18s var(--ease), filter .18s var(--ease);
}
.header-search button:hover { transform: translateY(-50%) scale(1.08); filter: brightness(1.15); }
.header-search button svg { width: 14px; height: 14px; }

/* Sprachwahl */
.lang-switch { position: relative; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 12px; margin: 0;
    border-radius: var(--pill);
    border: 1px solid var(--border);
    background: var(--ctrl);
    color: var(--text-soft);
    font: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; line-height: 1;
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.lang-btn:hover { background: var(--ctrl-hover); color: var(--text-strong); }
.lang-btn .chev { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.lang-switch.open .lang-btn .chev { transform: rotate(180deg); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 10px);
    min-width: 216px; padding: 7px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    z-index: 120;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 11px; border-radius: var(--r-sm);
    font-size: 14px; font-weight: 600; color: var(--text-soft);
}
.lang-menu a:hover { background: var(--hover); color: var(--text-strong); }
.lang-menu a.is-active { background: var(--gold-dim); color: var(--gold-ink); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 18px; margin: 0;
    border: 1px solid transparent; border-radius: var(--pill);
    font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1;
    white-space: nowrap; cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }

.btn-primary {
    background: linear-gradient(135deg, var(--red-2), var(--red) 55%, #8f1d15);
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(210, 55, 42, .35);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(210, 55, 42, .5); color: #fff !important; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, #c99425);
    color: #241a05 !important;
    box-shadow: 0 8px 22px rgba(240, 192, 90, .28);
}
.btn-gold:hover { box-shadow: 0 14px 32px rgba(240, 192, 90, .42); color: #241a05 !important; }

.btn-ghost {
    background: var(--ctrl);
    border-color: var(--border);
    color: var(--text-soft) !important;
}
.btn-ghost:hover { background: var(--ctrl-hover); color: var(--text-strong) !important; }

.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 26px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }

/* User-Chip */
.user-switch { position: relative; }

body.site .user-chip {
    display: inline-flex; align-items: center; gap: 9px;
    height: 40px; padding: 0 12px 0 6px; margin: 0;
    border-radius: var(--pill);
    border: 1px solid var(--border);
    background: var(--ctrl);
    font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1;
    color: var(--text-soft); cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease);
}
body.site .user-chip:hover { background: var(--ctrl-hover); color: var(--text-strong) !important; }
body.site .user-chip .chev { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.user-switch.open .user-chip .chev { transform: rotate(180deg); }
.user-switch.open .user-chip { background: var(--ctrl-hover); color: var(--text-strong); }

.user-menu {
    position: absolute; right: 0; top: calc(100% + 10px);
    min-width: 226px; padding: 7px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    z-index: 120;
}
.user-switch.open .user-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu .um-label {
    display: block; padding: 8px 11px 6px;
    font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted);
}
.user-menu a {
    display: block; padding: 9px 11px; border-radius: var(--r-sm);
    font-size: 14px; font-weight: 600; color: var(--text-soft);
}
.user-menu a:hover { background: var(--hover); color: var(--text-strong); }
.user-menu a.is-active { background: var(--gold-dim); color: var(--gold-ink); }
.user-menu .um-sep { display: block; height: 1px; margin: 7px 4px; background: var(--border); }
.user-menu a.um-logout { color: var(--red-ink); }
.user-menu a.um-logout:hover { background: rgba(210, 55, 42, .12); color: var(--red-ink); }
.user-chip .avatar {
    display: grid; place-items: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--red));
    color: #1a1206; font-size: 12px; font-weight: 800; text-transform: uppercase;
}

/* Burger + Mobile-Panel */
.nav-toggle {
    display: none; place-items: center;
    width: 42px; height: 42px; padding: 0; margin: 0;
    border-radius: 12px; border: 1px solid var(--border);
    background: var(--ctrl);
    color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-panel {
    position: fixed; inset: var(--header-h) 0 0 0;
    z-index: 99;
    padding: 20px 22px 40px;
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.mobile-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-panel nav { display: grid; gap: 4px; margin-bottom: 18px; }
.mobile-panel nav a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-radius: var(--r);
    font-size: 16px; font-weight: 700; color: var(--text-soft);
    background: var(--ctrl);
}
.mobile-panel nav a.is-active { background: var(--gold-dim); color: var(--gold-ink); }
.mobile-panel .mp-actions { display: grid; gap: 10px; }
.mobile-panel .mp-label { margin: 20px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mobile-panel .mp-langs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mobile-panel .mp-langs a {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 13px; border-radius: var(--r-sm);
    background: var(--ctrl); color: var(--text-soft);
    font-size: 14px; font-weight: 600;
}
body.nav-open { overflow: hidden; }

/* ================================================================ EYEBROW */
.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 14px; margin-bottom: 18px;
    border-radius: var(--pill);
    border: 1px solid var(--gold-line);
    background: var(--gold-dim);
    font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: var(--gold-ink);
}
.eyebrow .pulse {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(53, 209, 127, .7);
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    70%  { box-shadow: 0 0 0 9px rgba(53, 209, 127, 0); }
    100% { box-shadow: 0 0 0 0 rgba(53, 209, 127, 0); }
}

/* =============================================================== LAYOUT */
.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: start;
}
.layout-main { min-width: 0; }
.layout-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }

/* Sektions-Kopf */
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
    margin: 34px 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.section-head:first-child { margin-top: 0; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 12px; }
.section-head h2 .badge-num {
    display: grid; place-items: center;
    width: 34px; height: 34px; border-radius: 11px;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    color: #241a05; font-size: 15px; font-weight: 900;
    box-shadow: 0 6px 18px rgba(240, 192, 90, .3);
}
.section-head .sub { margin: 0; font-size: 13px; color: var(--muted); }
.section-head .head-meta { display: flex; gap: 22px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ========================================================= SERVER-KARTE */
.server-list { display: grid; gap: 18px; }

.server-card {
    position: relative;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 164px;
    gap: 18px;
    padding: 18px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: linear-gradient(160deg, var(--raise-4), var(--raise-1));
    box-shadow: var(--shadow-sm);
    transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease);
    overflow: hidden;
}
.server-card::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    background: radial-gradient(520px 220px at 20% 0%, rgba(240, 192, 90, .1), transparent 70%);
    opacity: 0; transition: opacity .3s var(--ease); pointer-events: none;
}
.server-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
    background: linear-gradient(160deg, var(--raise-5), var(--raise-2));
}
.server-card:hover::after { opacity: 1; }

/* Podest-Karten */
.server-card.rank-1 { border-color: rgba(240, 192, 90, .38); background: linear-gradient(160deg, rgba(240, 192, 90, .1), var(--raise-2)); }
.server-card.rank-2 { border-color: rgba(200, 208, 224, .3);  background: linear-gradient(160deg, rgba(200, 208, 224, .07), var(--raise-2)); }
.server-card.rank-3 { border-color: rgba(205, 127, 50, .3);   background: linear-gradient(160deg, rgba(205, 127, 50, .08), var(--raise-2)); }

/* Rang-Spalte */
.sc-rank { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.rank-badge {
    position: relative;
    display: grid; place-items: center;
    width: 58px; height: 58px;
    border-radius: 18px;
    background: linear-gradient(150deg, var(--surface-3), var(--surface));
    border: 1px solid var(--border-strong);
    font-size: 21px; font-weight: 900; letter-spacing: -.02em;
    color: var(--text);
}
.rank-1 .rank-badge { background: linear-gradient(150deg, #ffdc8a, #e0a831 60%, #b07d16); color: #2a1d02; border-color: rgba(255, 220, 138, .6); box-shadow: 0 10px 26px rgba(240, 192, 90, .35); }
.rank-2 .rank-badge { background: linear-gradient(150deg, #e9edf5, #b6bfd2 60%, #8b95ab); color: #1a1e28; border-color: rgba(233, 237, 245, .55); box-shadow: 0 10px 26px rgba(200, 208, 224, .22); }
.rank-3 .rank-badge { background: linear-gradient(150deg, #f0b078, #c87c34 60%, #96591f); color: #2a1704; border-color: rgba(240, 176, 120, .5); box-shadow: 0 10px 26px rgba(205, 127, 50, .25); }

.trend {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: var(--pill);
    font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
.trend.up   { background: rgba(53, 209, 127, .14); color: var(--green); }
.trend.down { background: rgba(210, 55, 42, .14);  color: var(--red-ink); }
.trend svg  { width: 11px; height: 11px; }

.lvl-chip {
    padding: 5px 10px;
    border-radius: var(--pill);
    border: 1px solid var(--border);
    background: var(--ctrl);
    font-size: 11px; font-weight: 700; text-align: center; color: var(--text-soft);
    white-space: nowrap;
}
.lvl-chip b { color: var(--gold-ink); }

/* Body */
.sc-body { min-width: 0; display: flex; flex-direction: column; }
.sc-title {
    display: block;
    margin-bottom: 10px;
    font-size: 18px; font-weight: 800; letter-spacing: -.015em;
    text-align: center;
    color: var(--text-strong) !important;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sc-title:hover { color: var(--gold-ink) !important; }

.sc-banner {
    position: relative;
    display: block;
    /* Original-Bannerformat 468 x 190 – auf kleinen Displays proportional kleiner */
    width: 468px;
    max-width: 100%;
    aspect-ratio: 468 / 190;
    overflow: hidden;
    border-radius: var(--r);
    border: 1px solid var(--border);
    background: var(--media-bg);
    box-shadow: var(--shadow-sm);
}
.sc-banner img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s var(--ease);
}
.sc-banner:hover img { transform: scale(1.045); }
.sc-banner::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px var(--inset-line);
    pointer-events: none;
}
.sc-desc {
    margin: 12px 0 0;
    font-size: 13.5px;
    color: var(--muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

.sc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; }
.tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px;
    border-radius: var(--pill);
    border: 1px solid var(--border);
    background: var(--ctrl);
    font-size: 11.5px; font-weight: 700; color: var(--text-soft);
    white-space: nowrap;
}
.tag.gold { border-color: var(--gold-line); background: var(--gold-dim); color: var(--gold-ink); }
.tag.flags { gap: 3px; padding: 5px 9px; }

/* Seiten-Spalte – Boxen mittig zwischen oben und unten */
.sc-side { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.stat-box {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px 13px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--raise-3);
}
.stat-box .sb-l { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.stat-box .sb-l svg { width: 14px; height: 14px; }
.stat-box .sb-v { font-size: 16px; font-weight: 800; color: var(--text-strong); }
.stat-box.votes { border-color: rgba(53, 209, 127, .25); background: rgba(53, 209, 127, .07); }
.stat-box.votes .sb-v, .stat-box.votes .sb-l { color: var(--green); }

/* ============================================================= SIDEBAR */
.card {
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: linear-gradient(160deg, var(--raise-5), var(--raise-1));
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card-head {
    display: flex; align-items: center; gap: 10px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--raise-3);
}
.card-head h3 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.card-head .ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--gold-dim); color: var(--gold-ink); }
.card-head .ico svg { width: 15px; height: 15px; }
.card-body { padding: 16px 18px; }
.card-body.tight { padding: 10px; }

.side-links { display: grid; gap: 2px; }
.side-links a {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 12px;
    border-radius: var(--r-sm);
    font-size: 14px; font-weight: 600; color: var(--text-soft);
    transition: background .18s var(--ease), color .18s var(--ease), padding-left .18s var(--ease);
}
.side-links a:hover { background: var(--hover); color: var(--text-strong); padding-left: 16px; }
.side-links a.is-active { background: var(--gold-dim); color: var(--gold-ink); box-shadow: inset 0 0 0 1px var(--gold-line); }
.side-links a .lead-ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--ctrl); color: var(--gold-ico); flex: 0 0 auto; }
.side-links a .lead-ico svg { width: 14px; height: 14px; }
.side-links a .count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); }

.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
body.site .chip {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 14px;
    border-radius: var(--pill);
    border: 1px solid var(--border);
    background: var(--ctrl);
    font-size: 13px; font-weight: 700; color: var(--text-soft);
}
body.site .chip:hover { background: var(--ctrl-hover); color: var(--text-strong); }
body.site .chip.is-active {
    border-color: rgba(240, 192, 90, .45);
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    color: #241a05 !important;
    box-shadow: 0 6px 18px rgba(240, 192, 90, .25);
}

.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.info-note {
    display: flex; gap: 10px;
    padding: 14px 16px;
    border-radius: var(--r);
    border: 1px solid rgba(77, 141, 255, .22);
    background: rgba(77, 141, 255, .07);
    font-size: 13px; color: var(--text-soft);
}
.info-note svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--blue); margin-top: 1px; }
.info-note b { color: var(--text-strong); }

/* =========================================================== PAGINATION */
body.site .pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 34px 0 10px; }
body.site .pager a, body.site .pager span {
    display: grid; place-items: center;
    min-width: 42px; height: 42px; padding: 0 13px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--ctrl);
    box-shadow: none;
    font-size: 14px; font-weight: 700; color: var(--text-soft);
    text-shadow: none;
    transition: all .18s var(--ease);
}
body.site .pager a:hover { background: var(--ctrl-hover); border-color: var(--border-strong); color: var(--text-strong); transform: translateY(-2px); }
body.site .pager .current {
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    border-color: transparent; color: #241a05;
    box-shadow: 0 8px 20px rgba(240, 192, 90, .28);
}
body.site .pager .disabled { opacity: .35; pointer-events: none; }

.pager-note { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }
.pager-note b { color: var(--text-soft); }

/* =============================================================== TABELLE */
.data-table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--raise-2); }
body.site table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
body.site table.data-table th {
    padding: 14px 18px;
    text-align: left;
    font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted);
    background: var(--raise-4);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
body.site table.data-table td {
    padding: 14px 18px;
    color: var(--text-soft);
    border-bottom: 1px solid var(--line-soft);
    vertical-align: middle;
    font-family: inherit; font-size: 14px;
}
body.site table.data-table tbody tr { transition: background .18s var(--ease); }
body.site table.data-table tbody tr:hover { background: var(--hover); }
body.site table.data-table tbody tr:last-child td { border-bottom: 0; }
body.site table.data-table .t-rank { width: 64px; text-align: center; }
body.site table.data-table .t-rank span {
    display: inline-grid; place-items: center;
    width: 32px; height: 32px; border-radius: 10px;
    background: var(--ctrl);
    font-size: 13px; font-weight: 800; color: var(--text);
}
body.site table.data-table tr:nth-child(1) .t-rank span { background: linear-gradient(135deg, #ffdc8a, #e0a831); color: #2a1d02; }
body.site table.data-table tr:nth-child(2) .t-rank span { background: linear-gradient(135deg, #e9edf5, #b6bfd2); color: #1a1e28; }
body.site table.data-table tr:nth-child(3) .t-rank span { background: linear-gradient(135deg, #f0b078, #c87c34); color: #2a1704; }
body.site table.data-table .t-name a { font-weight: 700; color: var(--text-strong); }
body.site table.data-table .t-name a:hover { color: var(--gold-ink); }
body.site table.data-table .t-desc { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
body.site table.data-table .t-time { white-space: nowrap; font-weight: 700; color: var(--text); }
body.site table.data-table .t-time small { display: block; font-weight: 600; color: var(--green); }

.empty-state { padding: 46px 24px; text-align: center; color: var(--muted); }
.empty-state svg { width: 44px; height: 44px; margin-bottom: 12px; color: var(--icon-dim); }

/* ================================================================= PROSE */
.prose { max-width: 76ch; font-size: 15px; color: var(--text-soft); }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose p { margin: 0 0 1.05em; }
.prose b, .prose strong { color: var(--text); }
.prose i, .prose em { color: var(--text-soft); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.seo-block {
    margin-top: 46px;
    padding: 30px 34px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--raise-2);
}
.seo-toggle { margin-top: 6px; }

/* ============================================================== DETAIL */
.detail-hero {
    display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
    padding: 26px 28px;
    margin-bottom: 22px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: radial-gradient(600px 240px at 0% 0%, rgba(210, 55, 42, .16), transparent 65%), var(--raise-3);
}
.detail-hero .dh-main { min-width: 0; flex: 1 1 320px; }
.detail-hero h1 { margin-bottom: 8px; font-size: clamp(23px, 3vw, 33px); }
.detail-hero .dh-sub { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-hero .dh-cta { display: flex; flex-wrap: wrap; gap: 10px; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 20px; }

.spec-list { display: grid; gap: 1px; background: var(--border); border-radius: var(--r); overflow: hidden; }
.spec-list .row {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px 16px;
    background: var(--surface);
}
.spec-list .row .k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.spec-list .row .v { font-size: 14px; font-weight: 700; color: var(--text-strong); text-align: right; }

.grade { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.grade.g-top  { color: var(--green); }
.grade.g-mid  { color: var(--gold-ink); }
.grade.g-low  { color: var(--red-ink); }

.media-frame { border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); background: #000; aspect-ratio: 16/9; }
.media-frame iframe, .media-frame img { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }

.comment-item {
    display: flex; gap: 14px;
    padding: 16px;
    border-radius: var(--r);
    border: 1px solid var(--border);
    background: var(--raise-3);
}
.comment-item + .comment-item { margin-top: 12px; }
.comment-item .c-avatar { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; flex: 0 0 auto; background: var(--surface-3); }
.comment-item .c-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-item .c-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 5px; }
.comment-item .c-name { font-weight: 800; color: var(--text-strong); }
.comment-item .c-date { font-size: 12px; color: var(--muted); }
.comment-item .c-text { font-size: 14px; color: var(--text-soft); overflow-wrap: anywhere; }
.comment-item .c-answer {
    margin-top: 10px; padding: 10px 13px;
    border-left: 2px solid var(--gold);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    background: rgba(240, 192, 90, .07);
    font-size: 13.5px;
}
.comment-item .c-answer b { color: var(--gold-ink); }

/* =============================================================== ALERTS */
body.site .alert {
    display: flex; gap: 11px; align-items: flex-start;
    padding: 14px 17px; margin: 0 0 16px;
    border-radius: var(--r);
    border: 1px solid var(--border);
    background: var(--raise-4);
    font-size: 14px; color: var(--text-soft);
    text-align: left;
}
body.site .alert b { color: var(--text-strong); }
body.site .alert center { text-align: left; }
body.site .alert-success { border-color: rgba(53, 209, 127, .3); background: rgba(53, 209, 127, .09); }
body.site .alert-info    { border-color: rgba(77, 141, 255, .3); background: rgba(77, 141, 255, .09); }
body.site .alert-error, body.site .alert.error { border-color: rgba(210, 55, 42, .35); background: rgba(210, 55, 42, .1); }
body.site .alert ul { margin: 0; padding: 0; list-style: none; text-align: left !important; }

/* ================================================================ FOOTER */
.site-footer {
    position: relative;
    margin-top: auto;
    padding: 54px 0 30px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, var(--raise-2), transparent 40%), var(--footer-bg);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 38px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--border);
}
.footer-brand img { height: 56px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 13.5px; color: var(--muted); max-width: 42ch; }
.footer-col h4 { margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { font-size: 14px; color: var(--muted); }
.footer-col a:hover { color: var(--gold-ink); }
.footer-col .flag-link { display: inline-flex; align-items: center; gap: 8px; }
.footer-col .flag-link img { width: 16px; height: auto; border-radius: 2px; }

.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; }
.footer-bottom .copy { font-size: 12.5px; color: var(--muted); }
.footer-legal { max-width: 92ch; margin-top: 14px; font-size: 11.5px; line-height: 1.65; color: var(--muted-2); }
.footer-legal b { color: var(--muted); }

body.site .to-top {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--ctrl);
    color: var(--text-soft);
}
body.site .to-top:hover { background: var(--ctrl-hover); color: var(--text-strong); }
.to-top svg { width: 17px; height: 17px; }

/* ====================================================== LEGACY-CONTAINER
   Alte, noch tabellenbasierte Seiten bekommen eine helle „Papier“-Fläche,
   damit sie im Dark-Layout weiterhin sauber lesbar sind.
   ==================================================================== */
.legacy-shell { padding-top: 30px; }

body.site .legacy-paper {
    padding: 30px;
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    background: #f4f5f7;
    box-shadow: var(--shadow);
    overflow-x: auto;
    color: #1b1e26;
}
body.site .legacy-paper td, body.site .legacy-paper th,
body.site .legacy-paper p, body.site .legacy-paper li,
body.site .legacy-paper div, body.site .legacy-paper span,
body.site .legacy-paper font, body.site .legacy-paper b,
body.site .legacy-paper i, body.site .legacy-paper label,
body.site .legacy-paper strong, body.site .legacy-paper em {
    color: #1b1e26;
}
body.site .legacy-paper h1, body.site .legacy-paper h2,
body.site .legacy-paper h3, body.site .legacy-paper h4 {
    display: block; color: #10131a; text-shadow: none;
}
body.site .legacy-paper a { color: #b3261e; font-weight: 700; text-shadow: none !important; }
body.site .legacy-paper a:hover { color: #7d1912; }
body.site .legacy-paper .deepshadow, body.site .legacy-paper .deepshadow2,
body.site .legacy-paper .darklink, body.site .legacy-paper .darklink2 { text-shadow: none !important; }
body.site .legacy-paper table { max-width: 100%; }
body.site .legacy-paper img { max-width: 100%; height: auto; }
body.site .legacy-paper pre, body.site .legacy-paper code {
    max-width: 100%; overflow-x: auto; white-space: pre-wrap; word-break: break-word;
}

body.site .legacy-paper input[type="text"], body.site .legacy-paper input[type="email"],
body.site .legacy-paper input[type="password"], body.site .legacy-paper input[type="url"],
body.site .legacy-paper input[type="number"], body.site .legacy-paper select,
body.site .legacy-paper textarea {
    height: auto; min-height: 42px; padding: 10px 13px; line-height: 1.4;
    border: 1px solid #cfd3dc; border-radius: 10px; background: #fff; color: #1b1e26;
    font: inherit; cursor: text; box-shadow: none; display: inline-block;
}
body.site .legacy-paper textarea { min-height: 130px; width: 100%; }
body.site .legacy-paper input[type="submit"], body.site .legacy-paper button,
body.site .legacy-paper input[type="button"] {
    height: 42px; padding: 0 22px; border: 0; border-radius: 999px;
    background: linear-gradient(135deg, #ff5f49, #d2372a);
    color: #fff; font: inherit; font-weight: 700; cursor: pointer; line-height: 42px;
    box-shadow: 0 8px 20px rgba(210, 55, 42, .28);
}
body.site .legacy-paper input[type="submit"]:hover,
body.site .legacy-paper button:hover { filter: brightness(1.08); }
body.site .legacy-paper #navigation a { border-radius: 10px; border-color: #dcdfe6; box-shadow: none; background: #fff; }

.page-head { margin-bottom: 22px; }
.page-head h1 { margin-bottom: 8px; }
.page-head p { max-width: 70ch; color: var(--muted); margin: 0; }

/* =============================================================== ACCOUNT */
.account-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    margin-bottom: 20px;
}
.account-head h1 { margin: 0 0 4px; font-size: clamp(24px, 3vw, 32px); }
.account-head .ah-sub { margin: 0; font-size: 14px; color: var(--muted); }

.account-tabs {
    display: flex; gap: 6px;
    margin-bottom: 26px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}
.account-tabs::-webkit-scrollbar { display: none; }
body.site .account-tabs a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: var(--pill);
    font-size: 14px; font-weight: 700; white-space: nowrap;
    color: var(--text-soft);
    transition: background .18s var(--ease), color .18s var(--ease);
}
body.site .account-tabs a:hover { background: var(--hover); color: var(--text-strong); }
body.site .account-tabs a.is-active {
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    color: #241a05;
    box-shadow: 0 6px 18px rgba(240, 192, 90, .25);
}
.account-tabs a svg { width: 15px; height: 15px; }

/* --- Formulare --- */
.field { margin-bottom: 20px; }
.field > label,
.field .field-label {
    display: block; margin-bottom: 7px;
    font-size: 13px; font-weight: 700; color: var(--text);
}
.field .hint { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }

body.site .input,
body.site .acc-form input[type="text"],
body.site .acc-form input[type="password"],
body.site .acc-form input[type="email"],
body.site .acc-form input[type="url"],
body.site .acc-form input[type="number"],
body.site .acc-form select,
body.site .acc-form textarea {
    display: block; width: 100%;
    height: auto; min-height: 44px;
    padding: 11px 14px; margin: 0;
    border: 1px solid var(--border); border-radius: 12px;
    background: var(--ctrl);
    color: var(--text);
    font-family: inherit; font-size: 15px; line-height: 1.45;
    cursor: text;
    transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
body.site .acc-form select { cursor: pointer; }
body.site .acc-form textarea { min-height: 110px; resize: vertical; }
body.site .input:focus,
body.site .acc-form input:focus,
body.site .acc-form select:focus,
body.site .acc-form textarea:focus {
    outline: none;
    border-color: var(--focus-line);
    background: var(--ctrl-focus);
    box-shadow: 0 0 0 4px var(--focus-glow);
}
body.site .input.is-narrow { max-width: 160px; }
body.site .input.is-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13.5px;
}

body.site .acc-form input[type="file"] {
    display: block; width: 100%; height: auto;
    padding: 11px 14px; margin: 0;
    border: 1px dashed var(--border-strong); border-radius: 12px;
    background: var(--raise-3);
    color: var(--text-soft); font-family: inherit; font-size: 14px; cursor: pointer;
}
body.site .acc-form input[type="file"]::file-selector-button {
    margin-right: 12px; padding: 7px 14px;
    border: 0; border-radius: 999px;
    background: var(--ctrl-hover);
    color: var(--text); font: inherit; font-weight: 700; cursor: pointer;
}

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.form-actions {
    display: flex; flex-wrap: wrap; gap: 12px;
    margin-top: 26px; padding-top: 22px;
    border-top: 1px solid var(--border);
}

/* Sprachen als Checkbox-Kacheln (ersetzt das alte msDropdown-Plugin) */
.lang-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lang-opt { position: relative; }
.lang-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.lang-opt span {
    display: flex; align-items: center; gap: 9px;
    padding: 11px 14px;
    border: 1px solid var(--border); border-radius: 12px;
    background: var(--ctrl);
    font-size: 14px; font-weight: 600; color: var(--text-soft);
    cursor: pointer;
    transition: all .18s var(--ease);
}
.lang-opt span:hover { background: var(--ctrl-hover); }
.lang-opt input:checked + span {
    border-color: var(--focus-line);
    background: var(--gold-dim);
    color: var(--gold-ink);
}
.lang-opt input:focus-visible + span { outline: 2px solid var(--gold-ink); outline-offset: 2px; }

/* --- Banner-Vorschau --- */
.banner-preview {
    width: 468px; max-width: 100%;
    aspect-ratio: 468 / 190;
    margin-top: 14px;
    border-radius: var(--r); overflow: hidden;
    border: 1px solid var(--border);
    background: var(--media-solid);
}
.banner-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Kopierbare Codeblöcke --- */
.copy-box { position: relative; }
body.site .copy-box textarea {
    width: 100%; min-height: 82px;
    padding: 14px 16px;
    border: 1px solid var(--border); border-radius: 12px;
    background: var(--code-bg); color: var(--code-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px; line-height: 1.6;
    resize: vertical; cursor: text;
}
.copy-btn {
    position: absolute; top: 9px; right: 9px;
    height: 30px; padding: 0 13px; margin: 0;
    border: 1px solid var(--border-strong); border-radius: 999px;
    background: var(--ctrl);
    color: var(--text); font: inherit; font-size: 12px; font-weight: 700;
    cursor: pointer; line-height: 28px;
}
.copy-btn:hover { background: var(--ctrl-hover); }
.copy-btn.done { background: rgba(53, 209, 127, .2); border-color: rgba(53, 209, 127, .4); color: var(--green); }

.asset-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
    padding: 16px; margin-bottom: 14px;
    border: 1px solid var(--border); border-radius: var(--r);
    background: var(--raise-3);
}

/* --- Status-Banner (Backlink) --- */
.status-note {
    display: flex; gap: 13px;
    padding: 16px 18px;
    border-radius: var(--r);
    border: 1px solid var(--border);
    background: var(--raise-4);
}
.status-note.ok   { border-color: rgba(53, 209, 127, .32); background: rgba(53, 209, 127, .08); }
.status-note.warn { border-color: rgba(210, 55, 42, .32);  background: rgba(210, 55, 42, .08); }
.status-note .sn-ico { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; }
.status-note.ok .sn-ico   { color: var(--green); }
.status-note.warn .sn-ico { color: var(--red-ink); }
.status-note h4 { margin: 0 0 5px; font-size: 15px; }
.status-note p { margin: 0; font-size: 13.5px; color: var(--text-soft); }

/* --- Shoutbox --- */
.shout-log {
    max-height: 380px; overflow-y: auto;
    padding: 16px;
    border-radius: var(--r);
    border: 1px solid var(--border);
    background: var(--code-bg);
}
.shout-log p { margin: 0 0 9px; font-size: 13.5px; line-height: 1.6; color: var(--text-soft); }
.shout-log p:last-child { margin-bottom: 0; }
.shout-log .st { color: var(--muted); font-variant-numeric: tabular-nums; }
.shout-log .sn { font-weight: 700; }
.shout-log .sn a { color: var(--gold-ink); }

/* --- Kommentar-Antwort-Dialog --- */
.answer-dialog {
    width: min(560px, calc(100vw - 32px));
    padding: 0; border: 1px solid var(--border-strong); border-radius: var(--r-lg);
    background: var(--surface-2); color: var(--text);
    box-shadow: var(--shadow-lg);
}
.answer-dialog::backdrop { background: rgba(4, 5, 8, .72); backdrop-filter: blur(4px); }
.answer-dialog .ad-head { padding: 18px 22px; border-bottom: 1px solid var(--border); }
.answer-dialog .ad-head h3 { margin: 0; font-size: 16px; }
.answer-dialog .ad-body { padding: 20px 22px; }
.answer-dialog .ad-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 22px 22px; }

.rules-list { counter-reset: r; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rules-list li {
    position: relative; counter-increment: r;
    padding: 14px 18px 14px 54px;
    border: 1px solid var(--border); border-radius: var(--r);
    background: var(--raise-3);
    font-size: 14.5px; color: var(--text-soft);
}
.rules-list li::before {
    content: counter(r);
    position: absolute; left: 16px; top: 13px;
    display: grid; place-items: center;
    width: 26px; height: 26px; border-radius: 8px;
    background: var(--gold-dim); color: var(--gold-ink);
    font-size: 12px; font-weight: 800;
}

/* ================================================================= TOOLS */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tool-card {
    display: flex; flex-direction: column;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: linear-gradient(160deg, var(--raise-5), var(--raise-1));
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}

.tool-card .tc-media {
    position: relative;
    display: block;
    aspect-ratio: 290 / 200;
    overflow: hidden;
    background: var(--media-bg);
}
.tool-card .tc-media img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .5s var(--ease);
}
.tool-card:hover .tc-media img { transform: scale(1.05); }
.tool-card .tc-media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(7, 8, 12, .8) 100%);
    pointer-events: none;
}

.tool-card .tc-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.tool-card h3 { margin: 0 0 8px; font-size: 17px; }
.tool-card h3 a { color: var(--text-strong) !important; }
.tool-card h3 a:hover { color: var(--gold-ink) !important; }
.tool-card p { margin: 0 0 18px; font-size: 13.5px; color: var(--muted); }
.tool-card .btn { margin-top: auto; }

/* Kachel ohne Bild (z. B. Guides) */
.tool-card .tc-icon {
    display: grid; place-items: center;
    aspect-ratio: 290 / 200;
    background: var(--icon-tile-bg);
    color: var(--gold-ico);
}
.tool-card .tc-icon svg { width: 60px; height: 60px; }

/* ========================================================== RECHTSTEXTE */
.legal-toc { display: grid; gap: 2px; }
body.site .legal-toc a {
    display: block; padding: 10px 12px; border-radius: var(--r-sm);
    font-size: 13.5px; font-weight: 600; color: var(--text-soft);
}
body.site .legal-toc a:hover { background: var(--hover); color: var(--text-strong); }

.legal-section { scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-section + .legal-section { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--border); }
.legal-section h2 {
    display: flex; align-items: center; gap: 11px;
    margin: 0 0 12px; font-size: 18px;
}
.legal-section h2 .n {
    display: grid; place-items: center;
    width: 28px; height: 28px; border-radius: 9px;
    background: var(--gold-dim); color: var(--gold-ink);
    font-size: 13px; font-weight: 800; flex: 0 0 auto;
}
.legal-section p { margin: 0 0 1em; font-size: 14.5px; color: var(--text-soft); }
.legal-section p:last-child { margin-bottom: 0; }

.lead-box {
    padding: 18px 20px; margin-bottom: 26px;
    border-radius: var(--r);
    border: 1px solid var(--gold-line);
    background: var(--gold-dim);
    font-size: 14.5px; line-height: 1.65; color: var(--text);
}
.lead-box p { margin: 0; color: var(--text); }

.contact-card { display: grid; gap: 4px; font-size: 14.5px; color: var(--text-soft); }
.contact-card .cc-name { font-weight: 800; color: var(--text-strong); }

/* ============================================================ RESPONSIVE */
@media (max-width: 1180px) {
    .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
    .main-nav a { padding: 9px 10px; font-size: 13.5px; }
    .header-search input[type="text"] { width: 165px; }
    .header-search input:focus { width: 200px; }
}

@media (max-width: 1024px) {
    .nav-toggle { display: grid; }
    .main-nav, .header-search, .lang-switch, .header-actions .btn-desktop { display: none; }
    .header-inner { justify-content: space-between; }
    .layout { grid-template-columns: minmax(0, 1fr); }
    .layout-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-side .card-full { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
    .detail-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
    .container { padding-inline: 16px; }

    .server-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
    }
    .sc-rank {
        flex-direction: row; align-items: center; gap: 10px;
        order: -1;
    }
    .rank-badge { width: 44px; height: 44px; border-radius: 14px; font-size: 17px; }
    .sc-side { flex-direction: row; flex-wrap: wrap; }
    .sc-side .stat-box { flex: 1 1 130px; }

    .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .section-head .head-meta { gap: 14px; }

    .layout-side { grid-template-columns: minmax(0, 1fr); }

    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .field-row { grid-template-columns: minmax(0, 1fr); }
    .account-head { flex-direction: column; align-items: flex-start; }
    .form-actions .btn { flex: 1 1 100%; }
    .seo-block { padding: 22px 18px; }
    .legacy-paper { padding: 18px 14px; border-radius: var(--r-lg); }
    .detail-hero { padding: 20px 18px; }
}

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

body.site a:focus-visible,
body.site button:focus-visible,
body.site input:focus-visible,
body.site select:focus-visible,
body.site textarea:focus-visible {
    outline: 2px solid var(--gold-ink);
    outline-offset: 2px;
    border-radius: 8px;
}

body.site .skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    padding: 12px 18px; border-radius: 0 0 12px 0;
    background: var(--gold); color: #241a05; font-weight: 800;
}
body.site .skip-link:focus { left: 0; }

.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;
}
