/* clanwirtschaft.de -- Landingpage.
   Farbwelt bewusst dieselbe wie in der Anwendung selbst (Projekt/assets/css/
   style.css): Nachtblau mit Sternenhimmel, rote Bedienelemente, goldene
   Links und die bunten Retro-Menübuttons. Wer von hier in die App wechselt,
   soll sich sofort wiederfinden. Keine externen Schriften oder Skripte --
   die Seite lädt nichts von Dritten (DSGVO, Ladezeit). */

:root {
    --bg: #06071f;
    --surface: #12143c;
    --surface-2: #1b1e4d;
    --surface-3: #252964;
    --border: #2b2e63;
    --border-strong: #3d4187;
    --text: #eef0fb;
    --text-muted: #a9adda;

    --accent: #e8393c;
    --accent-hover: #ff4d50;
    --gold: #ffe9a8;
    --gold-strong: #ffd34d;
    --success: #4caf6d;
    --warning: #e0a63e;

    --retro-green: linear-gradient(180deg, #3f8f3f, #245c24);
    --retro-gold: linear-gradient(180deg, #8a6d1f, #5c4913);
    --retro-purple: linear-gradient(180deg, #5b3d8a, #3a2759);
    --retro-red: linear-gradient(180deg, #7a2e2e, #4e1c1c);
    --retro-blue: linear-gradient(180deg, #2c4f7a, #1c3350);
    --retro-slate: linear-gradient(180deg, #4a5568, #2d3340);

    --radius: 14px;
    --radius-sm: 8px;
    --gutter: clamp(16px, 4vw, 32px);
    --max: 1180px;

    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(1px 1px at 20% 15%, rgba(255,255,255,0.28) 0, transparent 100%),
        radial-gradient(1px 1px at 60% 40%, rgba(255,255,255,0.2) 0, transparent 100%),
        radial-gradient(1.5px 1.5px at 85% 10%, rgba(255,255,255,0.25) 0, transparent 100%),
        radial-gradient(1px 1px at 35% 75%, rgba(255,255,255,0.18) 0, transparent 100%),
        radial-gradient(1.5px 1.5px at 75% 65%, rgba(255,255,255,0.2) 0, transparent 100%),
        radial-gradient(1px 1px at 8% 55%, rgba(255,255,255,0.2) 0, transparent 100%),
        radial-gradient(1px 1px at 48% 90%, rgba(255,255,255,0.18) 0, transparent 100%);
    background-size: 640px 640px;
    overflow-x: hidden;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gold);
    text-decoration: none;
}

a:hover {
    color: #fff3cf;
    text-decoration: underline;
}

:focus-visible {
    outline: 3px solid var(--gold-strong);
    outline-offset: 2px;
    border-radius: 4px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--gold-strong);
    color: #1a1400;
    padding: 0.6rem 1rem;
    font-weight: 700;
}

.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.8em 1.5em;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 22px rgba(232, 57, 60, 0.35);
}

.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-gold {
    background: linear-gradient(180deg, #ffd34d, #e0a63e);
    color: #231a00;
}

.btn-gold:hover { color: #231a00; filter: brightness(1.06); }

.btn-sm { padding: 0.55em 1em; font-size: 0.92rem; }
.btn-lg { padding: 0.95em 1.8em; font-size: 1.1rem; }

/* ---------- Kopfzeile ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 7, 31, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text) !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.brand svg {
    width: 40px;
    height: 40px;
    flex: none;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.brand span b { color: var(--gold-strong); }

.main-nav {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
}

.main-nav a {
    color: var(--text);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.97rem;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    background: var(--surface-2);
    color: var(--gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-strong);
    color: var(--text);
    border-radius: 6px;
    padding: 0.45rem 0.6rem;
    cursor: pointer;
}

.nav-toggle svg { width: 22px; height: 22px; }

/* Sprachumschalter: <details> -- funktioniert ohne JavaScript. */
.lang-switch { position: relative; }

.lang-switch summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    user-select: none;
}

.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { border-color: var(--gold); }
.lang-switch summary::after { content: "▾"; font-size: 0.75em; opacity: 0.7; }

.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 190px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
}

.lang-menu a:hover { background: var(--surface-3); color: var(--gold); }
.lang-menu a[aria-current="true"] { color: var(--gold-strong); font-weight: 700; }

.flag {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    flex: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

@media (max-width: 980px) {

    .nav-toggle { display: inline-flex; }

    .main-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0.5rem var(--gutter) 1rem;
        background: rgba(6, 7, 31, 0.98);
        border-bottom: 1px solid var(--border);
    }

    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 0.8rem 0.5rem; border-bottom: 1px solid var(--border); border-radius: 0; }
    .header-actions { margin-left: auto; }
    .header-actions .btn-login { display: none; }
}

@media (max-width: 520px) {
    .brand span { display: none; }
}

/* ---------- Abschnitte ---------- */

.section {
    padding-block: clamp(56px, 9vw, 112px);
    position: relative;
}

.section-alt {
    background: linear-gradient(180deg, rgba(18, 20, 60, 0.55), rgba(18, 20, 60, 0.85));
    border-block: 1px solid var(--border);
}

.section-head {
    max-width: 760px;
    margin: 0 auto clamp(32px, 5vw, 56px);
    text-align: center;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.12rem;
    margin: 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255, 211, 77, 0.35);
    border-radius: 999px;
    background: rgba(255, 211, 77, 0.08);
    color: var(--gold-strong);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

/* ---------- Hero ---------- */

.hero {
    padding-block: clamp(40px, 7vw, 88px) clamp(48px, 8vw, 96px);
    position: relative;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20% 0 auto 0;
    height: 120%;
    z-index: -1;
    background:
        radial-gradient(520px 340px at 78% 38%, rgba(232, 57, 60, 0.2), transparent 70%),
        radial-gradient(620px 420px at 18% 20%, rgba(91, 61, 138, 0.35), transparent 70%),
        radial-gradient(500px 300px at 60% 90%, rgba(44, 79, 122, 0.35), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.hero h1 span { display: block; color: var(--gold-strong); }

.hero-lead {
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    color: var(--text-muted);
    max-width: 38em;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.75rem 0 1.25rem;
}

.hero-note {
    font-size: 0.93rem;
    color: var(--text-muted);
    margin: 0;
}

.hero-art {
    position: relative;
}

.hero-art svg {
    width: 100%;
    height: auto;
    border-radius: 22px;
    border: 3px solid rgba(255, 211, 77, 0.55);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 8px rgba(255, 211, 77, 0.07);
    transform: rotate(1.2deg);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: clamp(32px, 5vw, 56px);
    padding: 0;
    list-style: none;
}

.hero-stats li {
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(18, 20, 60, 0.7);
}

.hero-stats b {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    line-height: 1.1;
    color: var(--gold-strong);
}

.hero-stats span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { order: -1; max-width: min(420px, 86%); margin-inline: auto; }
    .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Zielgruppen: Retro-Buttons wie im App-Menü ---------- */

.retro-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.retro-chip {
    padding: 0.6rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 2px rgba(0, 0, 0, 0.4);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

a.retro-chip { text-decoration: none; }
a.retro-chip:hover { color: #fff; filter: brightness(1.2); text-decoration: none; }

.retro-chip:nth-child(6n+1) { background: var(--retro-green); }
.retro-chip:nth-child(6n+2) { background: var(--retro-gold); }
.retro-chip:nth-child(6n+3) { background: var(--retro-purple); }
.retro-chip:nth-child(6n+4) { background: var(--retro-red); }
.retro-chip:nth-child(6n+5) { background: var(--retro-blue); }
.retro-chip:nth-child(6n+0) { background: var(--retro-slate); }

/* ---------- Karten / Raster ---------- */

.grid {
    display: grid;
    gap: 18px;
}

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

.card {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(27, 30, 77, 0.85), rgba(18, 20, 60, 0.85));
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card h3 { margin-bottom: 0.45rem; }
.card p { color: var(--text-muted); margin: 0; font-size: 0.98rem; }
.card ul { margin: 0.7rem 0 0; padding-left: 1.1rem; color: var(--text-muted); font-size: 0.95rem; }
.card li { margin-bottom: 0.25rem; }

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: #fff;
}

.icon svg { width: 24px; height: 24px; }

.tone-green .icon, .icon.tone-green { background: var(--retro-green); }
.tone-gold .icon, .icon.tone-gold { background: var(--retro-gold); }
.tone-purple .icon, .icon.tone-purple { background: var(--retro-purple); }
.tone-red .icon, .icon.tone-red { background: var(--retro-red); }
.tone-blue .icon, .icon.tone-blue { background: var(--retro-blue); }
.tone-slate .icon, .icon.tone-slate { background: var(--retro-slate); }

.category-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: clamp(36px, 5vw, 56px) 0 1.1rem;
    font-size: 1.35rem;
}

.category-title:first-of-type { margin-top: 0; }

.category-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-strong), transparent);
}

/* ---------- Showcase: Text + Bild im Wechsel ---------- */

.showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    margin-bottom: clamp(56px, 8vw, 104px);
}

.showcase:last-child { margin-bottom: 0; }
.showcase.is-flipped .showcase-text { order: 2; }

.showcase-text p { color: var(--text-muted); }

.checklist {
    list-style: none;
    padding: 0;
    margin: 1.1rem 0 0;
}

.checklist li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: 0.55rem;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 3px;
    background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 85% no-repeat;
}

@media (max-width: 900px) {
    .showcase { grid-template-columns: 1fr; }
    .showcase.is-flipped .showcase-text { order: 0; }
}

/* ---------- Bildschirm-Attrappen (reines HTML/CSS/SVG) ---------- */

.screen {
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: var(--bg);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    font-size: 0.8rem;
    line-height: 1.35;
}

.screen-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.screen-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3d4187;
}

.screen-bar i:nth-child(1) { background: #e8393c; }
.screen-bar i:nth-child(2) { background: #e0a63e; }
.screen-bar i:nth-child(3) { background: #4caf6d; }

.screen-bar span {
    margin-left: 8px;
    padding: 2px 10px;
    flex: 1;
    border-radius: 4px;
    background: rgba(6, 7, 31, 0.7);
    color: var(--text-muted);
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.screen-body { padding: 14px; }

.screen figure,
figure.screen { margin: 0; }

.screen img { width: 100%; }

.mock-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.mock-menu span {
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
}

.mock-menu span:nth-child(6n+1) { background: var(--retro-green); }
.mock-menu span:nth-child(6n+2) { background: var(--retro-gold); }
.mock-menu span:nth-child(6n+3) { background: var(--retro-purple); }
.mock-menu span:nth-child(6n+4) { background: var(--retro-red); }
.mock-menu span:nth-child(6n+5) { background: var(--retro-blue); }
.mock-menu span:nth-child(6n+0) { background: var(--retro-slate); }

/* Turnierbaum */
.mock-bracket {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: center;
}

.mock-round { display: grid; gap: 10px; }
.mock-round.r2 { gap: 46px; }

.mock-match {
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: var(--surface);
    overflow: hidden;
}

.mock-match div {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    padding: 4px 8px;
    color: var(--text-muted);
}

.mock-match div + div { border-top: 1px solid var(--border); }
.mock-match .win { color: var(--gold); font-weight: 700; }
.mock-match b { color: inherit; }

.mock-cup {
    text-align: center;
    padding: 12px 6px;
    border: 1px dashed rgba(255, 211, 77, 0.5);
    border-radius: 8px;
    color: var(--gold-strong);
    font-weight: 700;
}

.mock-cup svg { width: 34px; height: 34px; margin: 0 auto 4px; }

/* Tabelle */
.mock-table {
    width: 100%;
    border-collapse: collapse;
}

.mock-table th,
.mock-table td {
    padding: 5px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.mock-table th {
    color: var(--text-muted);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.mock-table td:last-child,
.mock-table th:last-child { text-align: right; }

.mock-table .gold { color: var(--gold); font-weight: 700; }

/* Kalender */
.mock-cal {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.mock-cal div {
    min-height: 44px;
    padding: 3px 4px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.66rem;
}

.mock-cal .head {
    min-height: 0;
    border: 0;
    background: none;
    text-align: center;
    font-weight: 700;
}

.mock-cal em {
    display: block;
    margin-top: 2px;
    padding: 1px 3px;
    border-radius: 3px;
    font-style: normal;
    font-size: 0.58rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-cal .ev-red { background: #a3181a; }
.mock-cal .ev-green { background: #2f7d48; }
.mock-cal .ev-blue { background: #2c4f7a; }
.mock-cal .ev-purple { background: #5b3d8a; }

/* Kanban */
.mock-kanban {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.mock-col {
    padding: 8px;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.mock-col h5 {
    margin: 0 0 8px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.mock-ticket {
    margin-bottom: 6px;
    padding: 6px 7px;
    border-radius: 5px;
    border-left: 3px solid var(--accent);
    background: var(--surface-2);
    font-size: 0.7rem;
}

.mock-ticket:last-child { margin-bottom: 0; }
.mock-ticket.t-gold { border-left-color: var(--warning); }
.mock-ticket.t-green { border-left-color: var(--success); }
.mock-ticket.t-blue { border-left-color: #4f8fd6; }
.mock-ticket small { display: block; color: var(--text-muted); font-size: 0.6rem; }

/* Kassenbuch */
.mock-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 96px;
    margin-bottom: 12px;
    padding: 0 2px;
    border-bottom: 1px solid var(--border-strong);
}

.mock-bars i {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, #5cc47f, #2f7d48);
}

.mock-bars i.neg { background: linear-gradient(180deg, #ff6a6d, #a3181a); }

.mock-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.mock-kpis div {
    padding: 8px;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.mock-kpis small { display: block; color: var(--text-muted); font-size: 0.62rem; }
.mock-kpis b { font-size: 0.95rem; }
.mock-kpis .pos { color: #5cc47f; }
.mock-kpis .neg { color: #ff6a6d; }

/* Taktiktafel */
.mock-pitch {
    position: relative;
    aspect-ratio: 3 / 2;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 6px;
    background:
        repeating-linear-gradient(90deg, #2d7a35 0 12.5%, #296f30 12.5% 25%);
}

.mock-pitch::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.55);
}

.mock-pitch::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
}

.mock-pitch b {
    position: absolute;
    z-index: 1;
    width: 8%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--accent);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}

.mock-pitch b.gk { background: var(--gold-strong); }

/* ---------- Spiele ---------- */

.game-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.game-card:hover { border-color: var(--gold); transform: translateY(-3px); }

.game-card-media {
    aspect-ratio: 16 / 9;
    background: var(--surface-2);
    overflow: hidden;
    position: relative;
}

.game-card-media img,
.game-card-media svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.3rem 1.4rem 1.5rem;
}

.game-card-body p { color: var(--text-muted); font-size: 0.97rem; flex: 1; }

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 0.8rem;
    padding: 0;
    list-style: none;
}

.tag {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.tag-gold { border-color: rgba(255, 211, 77, 0.45); color: var(--gold-strong); }
.tag-steam { border-color: rgba(102, 192, 244, 0.5); color: #9fd3f5; }

.more-link {
    font-weight: 700;
}

.more-link::after { content: " →"; }

/* ---------- Spielseite ---------- */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1.4rem;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; opacity: 0.6; }

.game-hero {
    padding-block: clamp(28px, 5vw, 56px) clamp(32px, 5vw, 64px);
}

.game-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

.game-hero-media {
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    background: var(--surface-2);
}

.game-hero-media img,
.game-hero-media svg { width: 100%; }

@media (max-width: 900px) {
    .game-hero-grid { grid-template-columns: 1fr; }
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin: 1.5rem 0 0;
    padding: 0;
}

.facts div {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(18, 20, 60, 0.7);
}

.facts dt {
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.facts dd { margin: 0.15rem 0 0; font-weight: 700; }

.prose {
    max-width: 820px;
}

.prose section + section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 2.8vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; color: var(--gold); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--gold-strong); font-weight: 700; }

.rules-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.toc {
    position: sticky;
    top: 92px;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(18, 20, 60, 0.75);
    font-size: 0.93rem;
}

.toc strong {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.toc ol { margin: 0; padding-left: 1.1rem; }
.toc li { margin-bottom: 0.35rem; }

@media (max-width: 900px) {
    .rules-layout { grid-template-columns: 1fr; }
    .toc { position: static; }
}

.rule-table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }

.rule-table {
    width: 100%;
    min-width: 460px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.rule-table th,
.rule-table td {
    padding: 0.6rem 0.8rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.rule-table th {
    background: var(--surface-2);
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rule-table tr:nth-child(even) td { background: rgba(18, 20, 60, 0.5); }

.callout {
    margin: 1.5rem 0;
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--gold-strong);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: rgba(255, 211, 77, 0.07);
}

.callout p:last-child { margin-bottom: 0; }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin: 1.5rem 0;
}

.gallery figure {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
}

.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.gallery figcaption {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- Schritte ---------- */

.steps {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 1.6rem 1.5rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.steps li::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--accent);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
}

.steps p { color: var(--text-muted); margin: 0; font-size: 0.98rem; }

@media (max-width: 800px) {
    .steps { grid-template-columns: 1fr; }
}

/* ---------- Preise ---------- */

.pricing {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 880px;
    margin-inline: auto;
}

.price-card {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.price-card.is-featured {
    border-color: rgba(255, 211, 77, 0.6);
    background: linear-gradient(180deg, rgba(255, 211, 77, 0.08), var(--surface) 45%);
}

.price {
    margin: 0.4rem 0 1rem;
    font-family: var(--font-display);
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--gold-strong);
    line-height: 1.1;
}

.price small { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }
.price-card .checklist { flex: 1; margin-bottom: 1.5rem; }

@media (max-width: 720px) {
    .pricing { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */

.faq {
    max-width: 820px;
    margin-inline: auto;
}

.faq details {
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.faq details[open] { border-color: var(--border-strong); }

.faq summary {
    position: relative;
    padding: 1.05rem 3rem 1.05rem 1.25rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--gold-strong);
    line-height: 1;
}

.faq details[open] summary::after { content: "–"; }

.faq details > div {
    padding: 0 1.25rem 1.2rem;
    color: var(--text-muted);
}

.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Abschluss-CTA ---------- */

.cta-band {
    padding: clamp(36px, 6vw, 64px);
    border: 1px solid rgba(255, 211, 77, 0.4);
    border-radius: 22px;
    background:
        radial-gradient(500px 260px at 85% 0%, rgba(232, 57, 60, 0.28), transparent 70%),
        radial-gradient(500px 260px at 10% 100%, rgba(91, 61, 138, 0.45), transparent 70%),
        var(--surface);
    text-align: center;
}

.cta-band p {
    max-width: 640px;
    margin: 0 auto 1.6rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.cta-band .hero-cta { justify-content: center; margin-bottom: 0; }

/* ---------- Fußzeile ---------- */

.site-footer {
    padding-block: 48px 32px;
    border-top: 1px solid var(--border);
    background: rgba(6, 7, 31, 0.9);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.footer-grid h4 {
    margin-bottom: 0.8rem;
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-grid p { color: var(--text-muted); max-width: 32em; }

.footer-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 32px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--border);
    list-style: none;
}

.footer-langs a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-langs a[aria-current="true"] { color: var(--gold-strong); }

.footer-bottom {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Sprachvorschlag (nur mit JavaScript) ---------- */

.lang-hint {
    display: none;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.6rem var(--gutter);
    background: var(--surface-3);
    border-bottom: 1px solid var(--border-strong);
    font-size: 0.93rem;
}

.lang-hint.is-visible { display: flex; }

.lang-hint button {
    background: none;
    border: 0;
    color: var(--text-muted);
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}
