/* ============================================================
   lasca.eu – Stylesheet (eigene Entwicklung, keine CDNs)
   ============================================================ */

:root {
    --bg: #f4f5fa;
    --bg-alt: #eaeef7;
    --surface: #ffffff;
    --surface-2: #f0f2f8;
    --text: #1b2233;
    --text-muted: #66708a;
    --border: #dbe0ee;
    --primary: #2f4b8f;
    --primary-hover: #263e78;
    --primary-soft: #e7edfa;
    --accent: #d98e2b;
    --accent-hover: #c07c20;
    --accent-soft: #faeeda;
    --accent-text: #a96410;   /* dunkleres Amber für Text (Kontrast ≥ 4.5:1 auf Weiß) */
    --success: #2c8a4f;
    --danger: #c0392b;
    --danger-soft: #f9e7e4;
    --shadow: 0 2px 10px rgba(27, 34, 51, 0.08);
    --shadow-lg: 0 10px 30px rgba(27, 34, 51, 0.14);
    --radius: 12px;
    --radius-sm: 8px;
    --header-h: 64px;
    --bsq: clamp(36px, 9vw, 58px);
}

[data-theme="dark"] {
    --bg: #12151f;
    --bg-alt: #171b29;
    --surface: #1a1f2e;
    --surface-2: #212736;
    --text: #e8ebf4;
    --text-muted: #9aa3b8;
    --border: #2c3347;
    --primary: #7d97d8;
    --primary-hover: #92a9e2;
    --primary-soft: #26334f;
    --accent: #e9a94e;
    --accent-hover: #f0b662;
    --accent-soft: #3a2d1a;
    --accent-text: #e9a94e;   /* helles Amber für Text (Kontrast ≥ 6:1 auf Dunkel) */
    --success: #4cae6f;
    --danger: #e0695c;
    --danger-soft: #3b2522;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; }

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary);
    color: #fff;
    padding: 8px 14px;
    z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 780px; }
.center { text-align: center; }
.dim { color: var(--text-muted); }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

/* -------------------------------------------------- Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.05s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-accent { background: var(--accent); color: #221703; }
.btn-accent:hover { background: var(--accent-hover); color: #221703; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-lg { padding: 13px 26px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.btn-xs { padding: 3px 10px; font-size: 0.8rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a93226; color: #fff; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.icon-btn .icon-sun { display: none; }
[data-theme="dark"] .icon-btn .icon-moon { display: none; }
[data-theme="dark"] .icon-btn .icon-sun { display: block; }

/* -------------------------------------------------- Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: var(--header-h);
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.25rem; }
.brand:hover { text-decoration: none; color: var(--text); }
.brand-logo { border-radius: 10px; }
/* Wortmarke: „lasca" + technisch abgesetztes, kleineres „.eu" */
.brand-name .accent {
    font-size: 0.6em;              /* 55–65 % der Wortmarken-Größe */
    vertical-align: super;          /* leicht hochgestellt */
    letter-spacing: 0;
    color: var(--accent-text);      /* hell: #a96410 · dunkel: #e9a94e – in beiden Themes lesbar */
    font-weight: 800;
}
.footer-name .accent {
    font-size: 0.6em;
    vertical-align: super;
    color: var(--accent-text);
    font-weight: 800;
}
/* Beta-Badge neben der Wortmarke (Kapsel, WCAG-AA in hell + dunkel) */
.beta-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
    padding: 1px 9px 2px;
    border: 1.5px solid var(--accent-text);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.35;
    color: var(--accent-text);       /* hell #a96410 ≈ 4.7:1 · dunkel #e9a94e ≈ 6:1 */
    background: transparent;
    white-space: nowrap;
}
.main-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav-link {
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}
.nav-link:hover { background: var(--surface-2); text-decoration: none; }
.nav-link.is-active { background: var(--primary-soft); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.lang-switch { display: inline-flex; align-items: center; gap: 4px; font-size: 0.82rem; font-weight: 700; color: var(--text-muted); }
.lang-link { color: var(--text-muted); padding: 2px 4px; }
.lang-link:hover { color: var(--primary); text-decoration: none; }
.lang-link.is-active { color: var(--primary); text-decoration: underline; }
.lang-sep { opacity: 0.5; }
.auth-area { display: inline-flex; align-items: center; gap: 8px; }
.logout-form { margin: 0; display: inline-flex; }
.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
}
.user-chip:hover { text-decoration: none; border-color: var(--primary); }
.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    flex: none;
}
.user-avatar-lg { width: 54px; height: 54px; font-size: 1.4rem; }
.user-elo { color: var(--text-muted); font-weight: 600; font-size: 0.8rem; }

/* -------------------------------------------------- Flash / Notices */
.flash {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
}
.flash-success { border-color: var(--success); color: var(--success); }
.flash-error { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.flash-info { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.notice {
    padding: 18px 20px;
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 1px solid var(--border);
    text-align: center;
}
.notice-error { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }

/* -------------------------------------------------- Hero */
.hero {
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(65, 83, 155, 0.14), transparent 60%),
        var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 48px 0 56px;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}
.hero-eyebrow {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.82rem;
    margin-bottom: 10px;
}
.hero-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 12px; }
.hero-cta.center { justify-content: center; }
.hero-note { color: var(--text-muted); font-size: 0.9rem; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { filter: drop-shadow(0 18px 30px rgba(27, 34, 51, 0.25)); border-radius: 20px; }

/* -------------------------------------------------- Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-cta { background: var(--bg-alt); border-top: 1px solid var(--border); }
.section-title { text-align: center; margin-bottom: 28px; }
.page-hero {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 40px 0 28px;
    text-align: center;
}
.page-lead { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 0; }

/* -------------------------------------------------- Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 18px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* -------------------------------------------------- Rules-Teaser / Quote */
.teaser-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.rules-teaser { padding-left: 1.4em; margin: 0 0 20px; }
.rules-teaser li { margin-bottom: 10px; padding-left: 6px; }
.rules-teaser li::marker { color: var(--accent); font-weight: 800; }
.column-figure { margin: 0; }
.column-figure img { filter: drop-shadow(0 10px 18px rgba(27, 34, 51, 0.18)); }
.about-text { font-size: 1.05rem; max-width: 62ch; }
.quote {
    margin: 28px 0 0;
    padding: 18px 24px;
    border-left: 4px solid var(--accent);
    background: var(--surface);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow);
}
.quote p { font-size: 1.1rem; font-style: italic; margin-bottom: 6px; }
.quote-source { color: var(--text-muted); font-size: 0.88rem; font-style: normal; }

/* -------------------------------------------------- Formulare */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.form-panel { max-width: 440px; margin: 0 auto; }
.field { display: block; margin-bottom: 16px; }
.field-label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 0.92rem; }
.field-hint { display: block; color: var(--text-muted); font-size: 0.82rem; margin-top: 4px; }
.input, .select {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
}
.input:focus, .select:focus { border-color: var(--primary); outline: none; }
.form-alt { text-align: center; color: var(--text-muted); margin: 14px 0 0; font-size: 0.92rem; }

/* -------------------------------------------------- Tabellen */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.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(--border); }
.table thead th { background: var(--surface-2); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--surface-2); }
.table tbody tr.is-you td { background: var(--primary-soft); }
.rank-pos { font-weight: 800; color: var(--text-muted); width: 64px; }
.rank-player { display: flex; align-items: center; gap: 10px; }
.elo-cell { font-weight: 700; }
.badge {
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
}
.result-pill { font-weight: 700; padding: 2px 10px; border-radius: 999px; font-size: 0.85rem; }
.result-win { background: var(--success); color: #fff; }
.result-lose { background: var(--danger); color: #fff; }
.result-draw { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.elo-up { color: var(--success); font-weight: 700; }
.elo-down { color: var(--danger); font-weight: 700; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.page-link, .page-current {
    min-width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-weight: 600; font-size: 0.9rem;
    text-decoration: none;
}
.page-link { background: var(--surface); color: var(--text); }
.page-link:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.page-current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* -------------------------------------------------- Profil */
.profile-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 34px; }
.profile-identity { display: flex; align-items: center; gap: 16px; }
.profile-name { font-size: 1.4rem; font-weight: 800; margin: 0; }
.profile-meta { color: var(--text-muted); margin: 0; font-size: 0.9rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin: 0; }
.stat { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.stat dt { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat dd { margin: 4px 0 0; font-size: 1.3rem; font-weight: 800; }
.stat-elo { color: var(--primary); }
.stat-win { color: var(--success); }
.stat-loss { color: var(--danger); }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* -------------------------------------------------- Arena & Brett */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-bottom: 26px; }
.mode-card { display: flex; flex-direction: column; }
.mode-form { margin-top: auto; }
.mode-note { color: var(--text-muted); font-size: 0.9rem; }

.arena-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.arena-title { margin: 0; font-size: 1.2rem; }
.arena-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}
.arena-board-wrap { display: flex; flex-direction: column; align-items: center; }
.board-hint { color: var(--text-muted); font-size: 0.88rem; min-height: 1.4em; text-align: center; margin-top: 10px; }

.board {
    --frame: #6b5d44;
    --tile: #efe3c4;
    --tile-hover: #f7edcf;
    display: inline-block;
    background: #f2ead2;
    border-radius: 14px;
    padding: 10px;
    border: 2px solid var(--frame);
    box-shadow: var(--shadow-lg);
    user-select: none;
    -webkit-user-select: none;
}
.brow { display: flex; justify-content: flex-start; }
.brow.indent { padding-left: calc(var(--bsq) / 2); }
.bsq {
    position: relative;
    width: var(--bsq);
    height: var(--bsq);
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    cursor: pointer;
}
.bsq::before {
    content: "";
    position: absolute;
    inset: 6%;
    background: var(--tile);
    border-radius: 14%;
    transition: background-color 0.12s, box-shadow 0.12s;
}
.bsq:hover::before { background: var(--tile-hover); }
.bsq.is-selected::before { box-shadow: inset 0 0 0 3px var(--accent); }
.bsq.is-target::before { box-shadow: inset 0 0 0 3px var(--primary); }
.bsq.is-capture::before { box-shadow: inset 0 0 0 3px var(--danger); }
.bsq .dot::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 26%; height: 26%;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.75;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.bsq.is-capture .dot::after { background: var(--danger); width: 34%; height: 34%; }

.pce {
    position: absolute;
    width: 78%;
    height: 78%;
    border-radius: 50%;
    z-index: 3;
    transition: left 0.15s, bottom 0.15s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.pce-w {
    background: radial-gradient(circle at 32% 28%, #fffdf4, #d9d2be 78%);
    border: 2px solid #a49b82;
}
.pce-b {
    background: radial-gradient(circle at 32% 28%, #3d4352, #171b24 78%);
    border: 2px solid #0c0f16;
}
.pce-officer::after {
    content: "";
    position: absolute;
    inset: 14%;
    border-radius: 50%;
    border: 3px solid #e8a33d;
}
.pce-officer::before {
    content: "★";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -58%);
    color: #e8a33d;
    font-size: 0.95em;
    line-height: 1;
    z-index: 1;
}
.pce.is-top { cursor: pointer; }
.pce.is-top:hover { filter: brightness(1.08); }

/* -------------------------------------------------- Arena-Seitenleiste */
.arena-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.players-panel, .controls, .movelist { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.player-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
}
.player-row.is-turn { background: var(--primary-soft); }
.player-row + .player-row { margin-top: 6px; }
.player-name { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-elo { color: var(--text-muted); font-size: 0.85rem; }
.turn-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); flex: none; }
.is-turn .turn-dot { background: var(--success); }
.clocks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.clock {
    text-align: center;
    padding: 10px 6px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 1.05rem;
}
.clock.is-running { border-color: var(--success); color: var(--success); }
.clock.is-low { border-color: var(--danger); color: var(--danger); }
.clock-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; }
.panel-title { margin: 0 0 8px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.move-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; font-size: 0.9rem; }
.move-list li { display: flex; gap: 8px; padding: 3px 0; border-bottom: 1px dashed var(--border); }
.move-num { color: var(--text-muted); width: 30px; flex: none; }
.move-notation { font-weight: 600; }
.game-over-panel { text-align: center; padding: 14px; border-radius: var(--radius); font-weight: 700; }
.game-over-win { background: var(--success); color: #fff; }
.game-over-lose { background: var(--danger); color: #fff; }
.game-over-draw { background: var(--surface-2); border: 1px solid var(--border); }

/* -------------------------------------------------- Lobby */
.lobby-status { text-align: center; margin: 14px 0 0; }
.lobby-status .spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: lsc-spin 0.9s linear infinite;
    vertical-align: -4px;
    margin-right: 8px;
}
@keyframes lsc-spin { to { transform: rotate(360deg); } }

/* -------------------------------------------------- Legal */
.legal-content h2 { margin-top: 1.6em; font-size: 1.15rem; }
.legal-content address { font-style: normal; line-height: 1.7; margin-bottom: 1em; }
.rules-content h2 { margin-top: 1.6em; }
.rules-content ul { padding-left: 1.3em; }
.rules-content li { margin-bottom: 6px; }
.rules-cta { margin-top: 28px; }

/* -------------------------------------------------- Footer */
.site-footer {
    margin-top: 40px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 36px 0 20px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-brand .footer-name { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; margin: 0 0 8px; }
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--primary); }
.footer-heading { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin: 4px 0 8px; }
.footer-bottom {
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.footer-tactara { margin: 0; }
.footer-copy { margin: 0; }
.footer-beta { margin: 3px 0 0; font-size: 0.85rem; color: var(--text-muted); }

/* -------------------------------------------------- Cookie-Banner */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 14px 18px;
    max-width: 720px;
    margin: 0 auto;
}
.cookie-text { margin: 0; flex: 1; min-width: 220px; font-size: 0.92rem; }
.cookie-more { font-size: 0.88rem; white-space: nowrap; }

/* -------------------------------------------------- 404 */
.error-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 900; color: var(--primary-soft); margin: 0; line-height: 1; }

/* -------------------------------------------------- Responsive */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .teaser-grid { grid-template-columns: 1fr; }
    .column-figure { text-align: center; }
    .arena-grid { grid-template-columns: 1fr; }
    .arena-side { order: 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .header-inner { gap: 10px; }
    .main-nav { order: 3; width: 100%; justify-content: center; }
    .header-actions { gap: 6px; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 38px 0; }
    .cookie-banner { left: 10px; right: 10px; bottom: 10px; }
}

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