/* DriftZone – Startseite. Farben wie im Spiel (HUD, Ladebildschirm). Bewusst ohne externe
   Schriftarten (Google Fonts o. Ä.), damit keine Daten an Dritte gehen. */
:root {
    --bg: #0b0c12;
    --bg-2: #11131c;
    --panel: #151826;
    --line: rgba(255, 255, 255, .08);
    --text: #f4f5f8;
    --muted: rgba(244, 245, 248, .62);
    --accent: #ff2d55;
    --accent-2: #00e5ff;
    --gold: #e7c26a;
    --radius: 14px;
    --font: 'Bahnschrift', 'DIN Alternate', 'Segoe UI', system-ui, -apple-system, 'Roboto', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-2); }
a:hover { color: #fff; }
img { display: block; }
ul, ol { list-style: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
/* nach oben statt zur Seite verstecken – sonst entsteht bei Arabisch (RTL) ein Querscrollen */
.skip { position: absolute; inset-inline-start: 8px; top: 8px; transform: translateY(-300%); background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

/* ─── Knöpfe ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
    transition: transform .12s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); color: #fff; }
.btn-primary { background: linear-gradient(135deg, #ff2d55, #c3002f); box-shadow: 0 10px 30px rgba(255, 45, 85, .35); }
.btn-primary:hover { box-shadow: 0 14px 38px rgba(255, 45, 85, .5); }
.btn-ghost { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-small { padding: 9px 16px; font-size: 13px; }

/* ─── Navigation ─────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 12, 18, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; letter-spacing: .14em; font-size: 18px; }
.brand b, h1 b { color: var(--accent); }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 6px; margin-inline-start: auto; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    padding: 110px 0 96px;
    background:
        radial-gradient(ellipse 70% 60% at 80% 20%, rgba(255, 45, 85, .22), transparent 60%),
        radial-gradient(ellipse 60% 60% at 10% 90%, rgba(0, 229, 255, .14), transparent 60%),
        linear-gradient(180deg, #0f1018, var(--bg));
    border-bottom: 1px solid var(--line);
}
/* Lichtstreifen wie Rücklichter beim Drift */
.streaks span {
    position: absolute;
    height: 2px;
    width: 46%;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    filter: drop-shadow(0 0 8px var(--accent));
    opacity: .55;
    transform: rotate(-12deg);
    animation: streak 7s linear infinite;
}
.streaks span:nth-child(1) { top: 22%; left: -50%; }
.streaks span:nth-child(2) { top: 48%; left: -60%; animation-delay: 2.2s; background: linear-gradient(90deg, transparent, var(--accent-2), transparent); filter: drop-shadow(0 0 8px var(--accent-2)); }
.streaks span:nth-child(3) { top: 68%; left: -55%; animation-delay: 4.1s; }
.streaks span:nth-child(4) { top: 86%; left: -70%; animation-delay: 5.6s; width: 30%; }
@keyframes streak { to { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .streaks span { animation: none; display: none; } .btn:hover { transform: none; } }

.hero-inner { position: relative; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #6b7280; }
.status.online .dot { background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
.status.online { color: var(--text); }
.status.offline .dot { background: var(--accent); }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } }
h1 { margin: 22px 0 12px; font-size: clamp(56px, 11vw, 132px); line-height: .95; font-weight: 900; letter-spacing: .06em; font-style: italic; text-shadow: 0 0 40px rgba(255, 45, 85, .25); }
.lead { max-width: 640px; font-size: 19px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 14px; margin-top: 44px; }
.hero-stats div { padding: 16px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.hero-stats dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-stats dd { margin-top: 4px; font-size: 26px; font-weight: 900; }
.event { margin-top: 18px; display: inline-block; padding: 10px 16px; border-radius: 10px; background: rgba(231, 194, 106, .12); border: 1px solid rgba(231, 194, 106, .4); color: var(--gold); font-weight: 700; }

/* ─── Abschnitte ─────────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
h2 { margin: 6px 0 32px; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; font-weight: 900; }
h3 { font-size: 19px; line-height: 1.3; }

.grid.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(255, 45, 85, .45); transform: translateY(-3px); }
.card .icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 12px; background: rgba(255, 45, 85, .12); font-size: 24px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ─── Bestenliste ────────────────────────────────────────────────────────── */
.board { border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { padding: 10px 16px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: rgba(255, 45, 85, .14); color: var(--text); }
.board-body { display: grid; grid-template-columns: 1fr 280px; }
.ranking { padding: 10px; counter-reset: rank; }
.ranking li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; counter-increment: rank; }
.ranking li:nth-child(odd) { background: rgba(255, 255, 255, .025); }
.ranking li::before { content: counter(rank); font-weight: 900; color: var(--muted); text-align: center; }
.ranking li:nth-child(1)::before { color: var(--gold); content: '🥇'; }
.ranking li:nth-child(2)::before { content: '🥈'; }
.ranking li:nth-child(3)::before { content: '🥉'; }
.ranking li.muted { display: block; }
.ranking li.muted::before { content: none; }
.ranking .who { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking .lvl { margin-inline-start: 8px; padding: 1px 8px; border-radius: 99px; background: rgba(0, 229, 255, .12); color: var(--accent-2); font-size: 12px; font-weight: 800; }
.ranking .score { font-weight: 900; font-variant-numeric: tabular-nums; }
.side { padding: 20px; border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.side h3 { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.online-list { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.online-list li { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.online-list li span:last-child { color: var(--muted); font-size: 13px; }

/* ─── Schritte ───────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.steps li { position: relative; padding: 26px 24px 24px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--accent); font-weight: 900; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ─── Fußzeile ───────────────────────────────────────────────────────────── */
.footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer ul { display: flex; gap: 18px; }
.footer a { color: var(--muted); }

/* ─── Sprachauswahl ──────────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang select {
    appearance: none;
    padding-block: 8px;
    padding-inline: 12px 30px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23f4f5f8' fill-opacity='.6'/%3E%3C/svg%3E") no-repeat right 11px center;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.lang select:hover { background-color: rgba(255, 255, 255, .12); }
.lang option { background: var(--panel); color: var(--text); }
[dir="rtl"] .lang select { background-position: left 11px center; }

/* ─── Rechts nach links (Arabisch) ───────────────────────────────────────── */
/* Arabische Schrift verträgt keine Sperrung, Kursiv oder Großbuchstaben */
[dir="rtl"] body { --font: 'Segoe UI', 'Noto Sans Arabic', 'Geeza Pro', Tahoma, system-ui, sans-serif; }
[dir="rtl"] :is(.btn, .eyebrow, .hero-stats dt, .side h3, .nav-links a) { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .lead, [dir="rtl"] .card p, [dir="rtl"] .steps p { line-height: 1.8; }

/* ─── Rechtliches (Datenschutz) ───────────────────────────────────────────── */
.legal { max-width: 760px; }
.legal h1 { font-size: 40px; font-style: normal; letter-spacing: 0; }
.legal h2 { font-size: 22px; margin: 28px 0 8px; }
.legal .note { margin-top: 12px; color: var(--muted); }
.legal .back { display: inline-block; margin-top: 28px; }

/* ─── Kleine Bildschirme ─────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-inner { gap: 10px; }
    .nav-inner .lang { margin-inline-start: auto; }
    .board-body { grid-template-columns: 1fr; }
    .side { border-inline-start: 0; border-top: 1px solid var(--line); }
    .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .brand span { display: none; } /* auf dem Handy reicht das Logo, der Name steht groß im Hero */
    .nav-inner .btn-small { padding-inline: 12px; }
    .hero { padding: 72px 0 64px; }
    .hero-stats { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}
