﻿:root {
    /* Logo-Größe und Abstand zentral steuern */
    --logo-h: clamp(150px, 14vw, 240px); /* bisher war's 150–260px */
    --logo-gap: clamp(12px, 2vh, 24px); /* Abstand Logo → Content */
    --top-cut: calc(var(--logo-h) + var(--logo-gap));
    --mountain-h: clamp(100px, 20vh, 260px);
    --safe-bottom: env(safe-area-inset-bottom, 0);
}


@media (max-width: 600px) {
    :root {
        --logo-h: 200px; /* kleineres Logo */
        --logo-gap: 22px; /* knapperer Abstand */
    }
}

@media (min-width: 1400px) {
    :root {
        --logo-h: 200px; /* kleineres Logo */
        --logo-gap: 22px; /* knapperer Abstand */
    }
}

@media (min-width: 1800px) {
    :root {
        --logo-h: 180px;
        --logo-gap: 20px;
    }
}

.icon {
    width: 22px;
    height: 22px;
    display: inline-block;
}

/* Brandfarben passend zum Flyer */
:root {
    --brand-yg: #dbf201;
    --brand-green: #65d020;
    --brand-cyan: #02bde8;
    --brand-blue: #0285d5;
    --brand-magenta: #d51498;
}

/* Hero aus dem Flyer */
.hero {
    width: min(1100px, 100%);
    margin: 0 auto clamp(24px, 4vw, 48px);
}

.hero-card {
    border-radius: 20px;
    padding: clamp(16px, 3vw, 24px);
    background: radial-gradient(120% 120% at 0% 0%, rgba(2,189,232,.18), rgba(213,20,152,.12)), rgba(14,10,60,.6);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06) inset;
    color: #fff;
}

.hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 4.6vw, 3rem);
}

.hero .sub {
    opacity: .92;
    margin: 0 0 14px;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 14px;
}


.logo a.logo-link:hover {
    filter: brightness(1.20);
}


.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .02em;
}

    .badge.free {
        background: linear-gradient(90deg, var(--brand-yg), var(--brand-green));
        color: #0f0735;
    }

    .badge.age {
        border: 1px solid rgba(255,255,255,.25);
        background: rgba(255,255,255,.08);
    }

.hero .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}


.details {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    margin-top: 14px;
}

.detail {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    padding: 12px 14px;
}

    .detail h3 {
        margin: 0 0 6px;
        font-size: 1rem;
    }

    .detail p {
        margin: 0;
        opacity: .92;
    }

/* Anker exakt unter dem Cut landen lassen */
[id] {
    scroll-margin-top: var(--top-cut);
}


/* Sichtfenster = eigener Scroll-Container unter dem Logo */
.cut-viewport {
    position: fixed;
    top: var(--top-cut);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--top-cut) - var(--safe-bottom));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 2; /* vor Sternen/Bergen, unter Logo/Nav */
    padding: 0 16px;
}

/* Innenabstände im Scrollinhalt */
.cut-scroll {
    padding-bottom: 16px;
}


html, body {
    height: 100%;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}


* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient( to bottom, #08072f 0%, #2f0651 75%, #62067f 100% );
    background-attachment: fixed;
    overflow-x: hidden;
}

.page {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.stars, .pluses, .hearts {
    inset: 0;
    pointer-events: none;
    z-index: 0;
    position: fixed;
}

.star, .plus, .heart {
    position: absolute;
}

@keyframes twinkleStars {
    0%,100% {
        opacity: .85;
        transform: scale(1)
    }

    50% {
        opacity: .25;
        transform: scale(.8)
    }
}

@keyframes twinklePluses {
    0%,100% {
        opacity: .9;
        transform: scale(1)
    }

    50% {
        opacity: .5;
        transform: scale(.9)
    }
}

@keyframes twinkleHearts {
    0%,100% {
        opacity: .9;
        transform: scale(1)
    }

    50% {
        opacity: .5;
        transform: scale(.9)
    }
}

.star {
    width: 4px;
    height: 4px;
    opacity: .9;
    animation: twinkleStars 3s infinite ease-in-out;
}

.plus {
    opacity: .9;
    animation: twinklePluses 4.5s infinite ease-in-out;
}

    .plus::before, .plus::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        background: currentColor;
        border-radius: 1px;
    }

    .plus::before {
        width: var(--len);
        height: var(--thick);
    }

    .plus::after {
        width: var(--thick);
        height: var(--len);
    }

.heart {
    opacity: .9;
    animation: twinkleHearts 5s infinite ease-in-out;
}

.heart {
    width: calc(var(--u) * 5);
    height: calc(var(--u) * 4);
}

    .heart .px {
        position: absolute;
        width: var(--u);
        height: var(--u);
        background: currentColor;
    }

.mountains {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: var(--mountain-h); /* statt 20vh/min-height */
    pointer-events: none;
    z-index: 1;
}

    .mountains svg {
        display: block;
        width: 100%;
        height: 100%;
    }

.logo {
    position: fixed;
    top: clamp(12px, 3vh, 28px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: inline-block;
    line-height: 0;
}

    .logo svg {
        height: var(--logo-h);
        width: auto;
        display: block;
    }

    .logo.logo--flow {
        position: absolute;
        top: 24px;
    }

main.page {
    padding-top: 0;
}



/* ===================== */
/* NAVIGATION (neu) */
/* ===================== */
.skip-link {
    position: fixed;
    left: 8px;
    top: 8px;
    z-index: 5;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    transform: translateY(-150%);
    transition: transform .2s ease;
}

    .skip-link:focus {
        transform: translateY(0);
        outline: 2px solid #fff;
    }


.site-nav {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 7;
}


.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(8,7,47,.45);
    backdrop-filter: blur(8px);
    color: #fff;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08) inset;
}

    .nav-toggle svg {
        width: 20px;
        height: 20px;
    }

    .nav-toggle[aria-expanded="true"] {
        box-shadow: 0 0 0 1.5px #00f0ff, 0 10px 26px rgba(0,0,0,.45);
    }


.nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 420px);
    transform: translateX(105%);
    background: rgba(14, 10, 60, 0.72);
    backdrop-filter: blur(10px) saturate(1.1);
    border-left: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, -20px 0 60px rgba(0,0,0,.5);
    transition: transform .28s cubic-bezier(.2,.7,.3,1);
    z-index: 6;
    color: #fff;
}

    .nav-panel.open {
        transform: translateX(0);
    }


    .nav-panel header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 18px;
    }

.nav-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.nav-close {
    appearance: none;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    line-height: 0;
}

    .nav-close:hover, .nav-close:focus {
        outline: 2px solid rgba(255,255,255,.3);
    }


.nav-list {
    list-style: none;
    margin: 0;
    padding: 6px 10px 18px 10px;
    display: grid;
    gap: 6px;
}

    .nav-list a {
        display: grid;
        grid-template-columns: 28px 1fr;
        align-items: center;
        gap: 12px;
        padding: 12px 12px;
        border-radius: 14px;
        text-decoration: none;
        color: #fff;
        border: 1px solid rgba(255,255,255,.12);
        background: linear-gradient( to right, rgba(255,255,255,.04), rgba(255,255,255,.02) );
    }

        .nav-list a:hover {
            border-color: rgba(255,255,255,.3);
            box-shadow: 0 0 0 1.5px #ff3ed1 inset;
        }

    .nav-list svg {
        width: 22px;
        height: 22px;
    }


.nav-footer {
    padding: 16px 18px 22px;
    font-size: .85rem;
    opacity: .8;
}


.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.42);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 4;
}

    .nav-backdrop.show {
        opacity: 1;
        pointer-events: auto;
    }


@media (max-width: 520px) {
    .site-nav {
        top: auto;
        bottom: 16px;
        right: 16px;
    }
}



/* ===================== */
/* CONTENT AREA (neu) */
/* ===================== */
.content {
    position: relative;
    z-index: 2;
    padding: 0 16px 64px; /* top kommt gleich über die Maske */
}


.container {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.content h2 {
    color: #fff;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    margin: 0 0 16px;
    letter-spacing: .02em;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.content p.lead {
    color: #e9e9ff;
    opacity: .9;
    margin: 0 0 24px;
}

.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.grid-4 {
    display: grid;
    gap: 16px;
}

.span-2 {
    grid-column: 1 / -1;
}

@media (max-width: 820px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: auto;
    }
}

.actions-right {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.card {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(14,10,60,.6);
    backdrop-filter: blur(8px) saturate(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06) inset;
    color: #fff;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
    /*
    .card:hover {
        transform: translateY(-2px);
        border-color: rgba(255,255,255,.32);
        box-shadow: 0 14px 36px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.10) inset;
    }
*/

    .card .card-body {
        padding: 14px 16px 16px;
    }

    .card h3 {
        margin: 0 0 8px;
        font-size: 1.1rem;
    }

    .card h4 {
        margin: 0 0 8px;
        font-size: 1rem;
    }

    .card p {
        margin: 0;
        color: #e9e9ff;
        opacity: .92;
    }

    .card .tag {
        display: inline-block;
        font-size: .78rem;
        opacity: .85;
        padding: 4px 8px;
        border: 1px solid rgba(255,255,255,.25);
        border-radius: 999px;
        margin-bottom: 10px;
    }


    .card .thumb {
        width: 100%;
        aspect-ratio: 16/9;
        object-fit: cover;
        display: block;
        opacity: .95;
    }


.section {
    margin-top: clamp(24px, 6vw, 48px);
}

    .section + .section {
        margin-top: clamp(32px, 6.5vw, 56px);
    }

/* ===================== */
/* FOOTER */
/* ===================== */
.site-footer {
    position: relative;
    z-index: 2; /* vor Sternen/Bergen */
    margin-top: clamp(32px, 6vw, 64px);
    padding: 28px 16px 28px; /* vorher: calc(28px + 14vh) */
    color: #fff;
    background: rgba(14,10,60,.55);
    backdrop-filter: blur(8px) saturate(1.05);
    border-top: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 -10px 30px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06) inset;
}

    .site-footer .container {
        width: min(1100px, 100%);
        margin: 0 auto;
    }


.footer-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.site-footer h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    letter-spacing: .02em;
}

.site-footer p, .site-footer li, .site-footer a {
    color: #e9e9ff;
    opacity: .92;
}

.site-footer a {
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,.25);
}

    .site-footer a:hover {
        border-bottom-color: rgba(255,255,255,.6);
    }


.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}


.footer-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #fff;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 2px 10px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.05) inset;
    text-decoration: none;
}

    .btn-ghost:hover {
        background: rgba(255,255,255,.12);
        border-color: rgba(255,255,255,.35);
    }


.footnote {
    margin-top: 18px;
    font-size: .85rem;
    opacity: .75;
}


@media (max-width: 520px) {
    .site-footer {
        padding-bottom: calc(24px + 18vh);
    }
}


/* ============ */
/* LINKS IM CONTENT (Footer bleibt unberührt) */
/* ============ */
.content .content-body a:not(.btn):not(.btn-ghost):not(.btn-link) {
    color: #e9f8ff;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(2,189,232,.7); /* cyan */
    transition: color .2s ease, text-underline-offset .2s ease, text-decoration-color .2s ease;
}

    .content .content-body a:not(.btn):not(.btn-ghost):not(.btn-link):visited {
        color: #dfe9ff;
        text-decoration-color: rgba(2,189,232,.55);
    }

    .content .content-body a:not(.btn):not(.btn-ghost):not(.btn-link):hover {
        color: #fff;
        text-underline-offset: 4px;
        text-decoration-color: #02bde8;
    }

    .content .content-body a:not(.btn):not(.btn-ghost):not(.btn-link):focus-visible {
        outline: 2px solid #00f0ff;
        outline-offset: 2px;
        border-radius: 6px;
        text-decoration-color: #00f0ff;
    }

/* Subtle-Variante – MEHR Spezifität + steht NACH der Basisregel */
.content .content-body a.link--subtle {
    color: #cfe6ff;
    text-decoration-color: rgba(255,255,255,.35);
}

    .content .content-body a.link--subtle:hover {
        color: #ffffff;
        text-decoration-color: rgba(255,255,255,.6);
    }

/* Pfeil-Link (optional) */
.content .content-body a.link--arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none; /* eigene Deko */
}

    .content .content-body a.link--arrow::after {
        content: "→";
        transform: translateX(0);
        transition: transform .2s ease;
        opacity: .9;
    }

    .content .content-body a.link--arrow:hover::after {
        transform: translateX(3px);
    }

    .content .content-body a.link--arrow:hover {
        text-decoration: underline;
        text-underline-offset: 4px;
    }

/* Button-Link (wirkt wie Button, bleibt aber <a>) */
.content .content-body a.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .02em;
    color: #0f0735;
    background: linear-gradient(90deg, var(--brand-cyan, #02bde8), var(--brand-blue, #0285d5));
    box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06) inset;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

    .content .content-body a.btn-link:hover {
        filter: brightness(1.05);
        transform: translateY(-1px);
    }

    .content .content-body a.btn-link:focus-visible {
        outline: 2px solid #00f0ff;
        outline-offset: 2px;
    }


/* --- Formular Layout --- */
.form-group {
    margin-bottom: 12px;
}

.form-control, .form-check-input {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.06);
    color: #fff;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.form-check-input {
    width: auto;
}

.form-check-label {
    user-select: none;
}

.validation-message {
    color: var(--brand-magenta);
}

/* =========================
   Buttons – Base + Variants
   ========================= */
:root {
    --btn-fg: #0f0735; /* Text auf hellen/gradient Buttons */
    --btn-fg-ghost: #ffffff;
    --btn-bg-ghost: rgba(255,255,255,.06);
    --btn-bd-ghost: rgba(255,255,255,.18);
    --btn-shadow: 0 8px 22px rgba(0,0,0,.35);
}

/* Grundstil */
.btn {
    --_pad-y: 12px;
    --_pad-x: 16px;
    --_radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: var(--_pad-y) var(--_pad-x);
    border-radius: var(--_radius);
    font-weight: 800;
    letter-spacing: .02em;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    user-select: none;
    transition: transform .15s ease, box-shadow .15s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
    will-change: transform, box-shadow;
    line-height: 1.05;
}

    .btn svg {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
    }

    /* Fokus & Tastatur-Navi */
    .btn:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 2px;
    }

    /* Hover-Effekt (leichtes Heben) */
    .btn:hover {
        transform: translateY(-1px);
    }

    .btn:active {
        transform: translateY(0);
    }

    /* Disabled-Zustand */
    .btn[disabled], .btn:disabled {
        opacity: .6;
        pointer-events: none;
    }

/* Größen */
.btn--sm {
    --_pad-y: 8px;
    --_pad-x: 12px;
    --_radius: 12px;
    font-size: .95rem;
}

.btn--lg {
    --_pad-y: 14px;
    --_pad-x: 20px;
    --_radius: 16px;
    font-size: 1.05rem;
}

.btn--block {
    display: inline-flex;
    width: 100%;
}

/* Primary (Gradient cyan→blue) */
.btn--primary {
    color: var(--btn-fg);
    background: linear-gradient(90deg, var(--brand-cyan), var(--brand-blue));
    box-shadow: var(--btn-shadow), 0 0 0 1px rgba(255,255,255,.08) inset;
    border-color: rgba(255,255,255,.08);
}

    .btn--primary:hover {
        box-shadow: 0 10px 28px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.10) inset;
    }

/* Accent (gelb→grün, für „Call to Action“) */
.btn--accent {
    color: #0f0735;
    background: linear-gradient(90deg, var(--brand-yg), var(--brand-green));
    box-shadow: var(--btn-shadow), 0 0 0 1px rgba(0,0,0,.06) inset;
}

/* Ghost (glasig, wie deine Footer-Buttons) */
.btn--ghost {
    color: var(--btn-fg-ghost);
    background: var(--btn-bg-ghost);
    border-color: var(--btn-bd-ghost);
    box-shadow: 0 2px 10px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.05) inset;
}

    .btn--ghost:hover {
        background: rgba(255,255,255,.12);
        border-color: rgba(255,255,255,.35);
    }

/* Outline */
.btn--outline {
    color: #fff;
    background: transparent;
    border-color: rgba(255,255,255,.35);
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

    .btn--outline:hover {
        border-color: #fff;
    }

/* Link-Button (Textlink, aber Button-Logik) */
.btn--link {
    color: #a5e6ff;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    gap: .5ch;
    text-decoration: underline;
    text-underline-offset: .18em;
    text-decoration-thickness: 1.5px;
}

    .btn--link:hover {
        color: #c6f0ff;
    }

/* Icon-only (runde Fab) */
.btn--icon {
    --_pad-y: 10px;
    --_pad-x: 10px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 999px;
    justify-content: center;
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
    }

        .btn:hover, .btn:active {
            transform: none;
        }
}

.table-wrap {
    width: 100%;
    overflow-x: auto; /* mobil scrollbar bei vielen Spalten */
    margin-top: 8px;
}

.table-frost {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
    color: #e9e9ff;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    overflow: hidden; /* für runde Ecken */
}

    .table-frost caption {
        text-align: left;
        padding: 10px 12px;
        font-weight: 700;
        color: #fff;
        background: rgba(255,255,255,.06);
        border-bottom: 1px solid rgba(255,255,255,.10);
    }

    .table-frost thead th {
        text-align: left;
        padding: 10px 12px;
        letter-spacing: .02em;
        background: rgba(255,255,255,.06);
        border-bottom: 1px solid rgba(255,255,255,.12);
    }

    .table-frost tbody td {
        padding: 10px 12px;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .table-frost tbody tr:nth-child(odd) {
        background: rgba(255,255,255,.03);
    }

    .table-frost tbody tr:hover {
        background: rgba(255,255,255,.08);
    }

    /* Kompakte Variante */
    .table-frost.table--compact thead th,
    .table-frost.table--compact tbody td {
        padding: 8px 10px;
    }

.badge-live {
    margin-left: .4rem;
    padding: .05rem .35rem;
    border-radius: .35rem;
    background: var(--brand-yg);
    color: black;
    font-size: .75rem;
    font-weight: 700;
}

.badge-final {
    margin-left: .4rem;
    padding: .05rem .35rem;
    border-radius: .35rem;
    background: white;
    color: black;
    font-size: .75rem;
    font-weight: 700;
}

.standing-row.live .points {
    color: var(--brand-yg);
    white-space: nowrap;
}

.standing-row.live .goals {
    color: var(--brand-yg);
    white-space: nowrap;
}

.standing-row.live .goal-diff {
    color: var(--brand-yg);
    white-space: nowrap;
}

.match-row.live .points {
    color: var(--brand-yg);
    white-space: nowrap;
}

.match-row.live .goals {
    color: var(--brand-yg);
    white-space: nowrap;
}

.match-row .goals {
    white-space: nowrap;
}

.match-row.live .goal-diff {
    color: var(--brand-yg);
    white-space: nowrap;
}




/* ========= BRACKET (Turnierbaum) ========= */
/* Slot-/Linien-Variablen */
:root {
    --cell-h: 150px; /* Höhe je Match-Zelle */
    --gap-v: 22px; /* vertikaler Abstand zw. Matches */
    --gap-h: 42px; /* horizontaler Abstand zw. Matches */
    --link-w: 0px; /* Länge Horizontal-Link */
    --line: rgba(255,255,255,.28); /* Linienfarbe */
}

/* 4 Runden-Spalten nebeneinander */
.bracket {
    display: grid;
    grid-template-columns: repeat(4, minmax(260px, 1fr));
    gap: var(--gap-h);
    align-items: start;
}

.round {
    display: flex;
    flex-direction: column;
    position: relative;
}

    .round > h3 {
        margin: 0 0 10px;
        font-size: 1.3rem;
        color: var(--brand-cyan);
    }

/* Jede Matchzelle hat eine feste Slot-Höhe – so sitzen Verbinder genau */
.match-cell {
    position: relative;
    height: var(--cell-h);
    margin-bottom: var(--gap-v);
    display: flex;
}

/* Deine vorhandenen Card-Styles nutzen – nur etwas kompakter */
.match.card {
    width: 100%;
    display: flex;
}

    .match.card .card-body {
        flex: 1 1 auto;
        padding: 12px 12px 10px;
    }

/* Teams/Score/Meta wie gehabt */
.match .teams {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .35rem;
}

.match .vs {
    opacity: .72;
}

.match .score {
    font-size: 1.35rem;
    font-weight: 800;
    margin: .2rem 0 .4rem;
}

.match .meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    opacity: .9;
    font-size: .95rem;
}

.match.live .score {
    color: var(--brand-yg);
}

/* ---------------------------------------
   Viertelfinale (QF) → Halbfinale (SF)
   --------------------------------------- */



/* Von jeder QF-Zelle geht rechts ein kurzer Strich zur SF-Spalte */
.round--qf .match-cell::after {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    right: calc(-1 * var(--link-w));
    width: var(--link-w);
    height: 2px;
    background: var(--line);
    pointer-events: none;
}

/* SF-Zellen stehen jeweils zwischen zwei QF-Zellen.
   Der vertikale Abstand entspricht genau einem QF-Slot inkl. Gap. */
@media (min-width: 981px) {

    .round--sf .match-cell {
        margin-bottom: calc(var(--cell-h) + var(--gap-v) * 2);
    }

    .round--sf > .match-cell:first-of-type {
        margin-top: calc((var(--cell-h) + var(--gap-v)) / 2);
    }
}
/* Rechts aus SF heraus zum Finale ein kurzer Strich */
.round--sf .match-cell::after {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    right: calc(-1 * var(--link-w));
    width: var(--link-w);
    height: 2px;
    background: var(--line);
    pointer-events: none;
}

/* ---------------------------------------
   Halbfinale (SF) → Finale
   --------------------------------------- */

/* Finale mittig zwischen den beiden SF-Zentren positionieren */

@media (min-width: 981px) {
    .round--final .match-cell {
        margin-top: calc(((var(--cell-h) + var(--gap-v)) / 2) + (var(--cell-h) + (var(--gap-v))));
    }
}


/* ---------------------------------------
   Spiel um Platz 3 – separat, ohne Verbinder
   --------------------------------------- */
@media (min-width: 981px) {

    .round--third > .match-cell {
        margin-top: calc((var(--cell-h) + var(--gap-v)) / 2);
    }
}

/* Responsive: Spalten untereinander – Verbinder ausblenden */
@media (max-width: 980px) {
    .bracket {
        grid-template-columns: 1fr;
    }

    .round .match-cell::before,
    .round .match-cell::after {
        display: none;
    }
}


/* Bessere Team-Ausrichtung im Match-Header */
.match .teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* A | vs | B */
    align-items: center;
    gap: 8px;
    margin-bottom: .35rem;
    min-height: 1.8em; /* verhindert Hüpfer bei langen Namen */
}

    /* Team A links, Team B rechts */
    .match .teams strong:first-of-type {
        justify-self: start;
        text-align: left;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .match .teams strong:last-of-type {
        justify-self: end;
        text-align: right;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    /* „vs“ zentriert und optisch ruhiger */
    .match .teams .vs {
        grid-column: 2;
        opacity: .7;
        font-weight: 700;
        letter-spacing: .02em;
    }

/* Optional: etwas kompaktere Typografie in den Match-Karten */
.match.card .card-body {
    padding: 12px 14px 12px;
}

/* Score selbst zentriert */
.match .score {
    text-align: center;
    position: relative; /* Referenz für absolute Kinder */
    margin: .25rem 0 .45rem;
    font-variant-numeric: tabular-nums;
}

    /* Der reine Zahlenwert wird der Anker */
    .match .score .val {
        display: inline-block;
        position: relative; /* Referenz für das Badge */
        line-height: 1.2;
    }

    /* Badge “klebt” rechts an der Zahl, beeinflusst nicht die Zentrierung */
    .match .score .badge-live,
    .match .score .badge-final {
        position: absolute;
        left: 100%; /* direkt rechts vom Zahlen-Text */
        top: 50%;
        transform: translateY(-50%);
        margin-left: 8px; /* Abstand Zahl ↔ Badge */
        display: inline-flex;
        align-items: center;
        height: 1.6em; /* optisch harmonische Höhe */
        padding: 0 .45rem;
        border-radius: .5rem;
        white-space: nowrap;
    }








/* ---- Podium Layout ---- */
.podium {
    position: relative;
    z-index: 2; /* vor Bergen/Sternen */
    padding: 0 16px 48px;
}

    .podium .container {
        width: min(1100px, 100%);
        margin: 0 auto;
    }

.podium-head {
    display: grid;
    gap: 10px;
    align-items: end;
    grid-template-columns: 1fr auto 1fr;
    margin-bottom: 16px;
}

    .podium-head h2 {
        color: #fff;
        margin: 0;
        text-align: center;
        letter-spacing: .02em;
        text-shadow: 0 2px 12px rgba(0,0,0,.35);
    }

.trophy {
    margin-top: 50px;
    width: 154px;
    height: 154px;
    border-radius: 14px;
    background: radial-gradient(120% 120% at 0% 0%, rgba(219,242,1,.25), rgba(101,208,32,.18));
    box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08) inset;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.22);
}

    .trophy svg {
        width: 128px;
        height: 128px;
        fill: url(#grad-yg-base);
    }

.podium-grid {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 1.2fr) 1fr;
    gap: 16px;
    align-items: stretch;
}

@media (max-width: 860px) {
    .podium-grid {
        grid-template-columns: 1fr;
    }
}

/* Karten */
.place-card, .champion-card {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(14,10,60,.6);
    backdrop-filter: blur(8px) saturate(1.05);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06) inset;
}

.champion-card {
    background: radial-gradient(120% 120% at 0% 0%, rgba(219,242,1,.16), rgba(2,189,232,.08)), rgba(14,10,60,.6);
    border: 1px solid rgba(255,255,255,.18);
}

.place-body, .champion-body {
    padding: 16px 18px;
}

.place-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: .02em;
}

.badge-place {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 6px 10px;
    color: #0f0735;
    background: #fff;
}

.badge-place--1 {
    background: linear-gradient(90deg, var(--brand-yg), var(--brand-green));
}

.badge-place--2 {
    background: linear-gradient(90deg, var(--brand-cyan), var(--brand-blue));
    color: #0f0735;
}

.badge-place--3 {
    background: linear-gradient(90deg, #ffd089, #ffb443);
    color: #0f0735;
}

.team-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
}

.team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-weight: 800;
}

.team--left {
    justify-content: flex-end;
    text-align: right;
}

.team--right {
    justify-content: flex-start;
    text-align: left;
}

.score-stack {
    min-width: 90px;
    display: grid;
    place-items: center;
}

.score {
    font-size: clamp(1.6rem, 3.8vw, 2.2rem);
    font-weight: 900;
    letter-spacing: .02em;
    line-height: 1;
    margin: 0;
}

.status {
    margin-top: 6px;
    font-size: .8rem;
    opacity: .9;
    border: 1px solid rgba(255,255,255,.22);
    padding: 2px 8px;
    border-radius: 999px;
}

.status--live {
    background: var(--brand-yg);
    color: #0f0735;
    border-color: transparent;
}

.meta {
    margin-top: 10px;
    opacity: .85;
    font-size: .92rem;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---- Confetti (nur auf Winners-Seite) ---- */


/* 1) Karte als Bezugskante für das absolute Konfetti */
.champion-card {
    position: relative;
}

/* 2) Fall-Animation nur am Elternelement <i>, Rotation auf ::after,
      damit sich die transform() nicht gegenseitig überschreiben */
.confetti {
    position: absolute;
    inset: -8px -8px auto -8px;
    height: 160px;
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}

    .confetti i {
        position: absolute;
        top: -12px;
        width: 8px;
        height: 14px;
        border-radius: 2px;
        opacity: .95;
        will-change: transform;
        animation: confetti-fall linear infinite;
    }

        /* Das sichtbare „Schnipsel“-Rechteck steckt im ::after und rotiert separat */
        .confetti i::after {
            content: "";
            position: absolute;
            inset: 0;
            background: currentColor; /* übernimmt die Farbe vom i */
            border-radius: inherit;
            will-change: transform;
            animation: confetti-spin linear infinite;
        }

/* Farben wie gehabt */
:root {
    --confetti-a: var(--brand-yg);
    --confetti-b: var(--brand-green);
    --confetti-c: var(--brand-cyan);
    --confetti-d: var(--brand-blue);
    --confetti-e: var(--brand-magenta);
    --confetti-f: #FFD089;
}

/* 3) Verteilung + leichte Varianz (auch Drift links/rechts, nicht nur +14px) */
.confetti i:nth-child(6n+1) {
    left: 8%;
    color: var(--confetti-a);
    animation-duration: 1400ms;
    animation-delay: 0ms;
}

.confetti i:nth-child(6n+2) {
    left: 20%;
    color: var(--confetti-b);
    animation-duration: 1700ms;
    animation-delay: 80ms;
}

.confetti i:nth-child(6n+3) {
    left: 34%;
    color: var(--confetti-c);
    animation-duration: 1600ms;
    animation-delay: 120ms;
}

.confetti i:nth-child(6n+4) {
    left: 50%;
    color: var(--confetti-d);
    animation-duration: 1800ms;
    animation-delay: 40ms;
}

.confetti i:nth-child(6n+5) {
    left: 66%;
    color: var(--confetti-e);
    animation-duration: 1500ms;
    animation-delay: 100ms;
}

.confetti i:nth-child(6n+6) {
    left: 82%;
    color: var(--confetti-f);
    animation-duration: 1650ms;
    animation-delay: 60ms;
}

/* Größen-Streuung */
.confetti i:nth-child(odd) {
    width: 7px;
    height: 12px;
}

.confetti i:nth-child(3n) {
    width: 9px;
    height: 16px;
}

/* Unterschiedliche Drift-Richtungen für natürlicheren Fall */
.confetti i:nth-child(4n+1) {
    --dx: -12px;
}

.confetti i:nth-child(4n+2) {
    --dx: 10px;
}

.confetti i:nth-child(4n+3) {
    --dx: -6px;
}

.confetti i:nth-child(4n+4) {
    --dx: 14px;
}

/* Keyframes: nur Translate/Rotate hier – Dauer/Delay kommen aus oben */
@keyframes confetti-fall {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translate(var(--dx, 12px), 160px) rotate(220deg);
        opacity: 1;
    }
}

/* Spin separat auf dem ::after → keine Transform-Kollision */
@keyframes confetti-spin {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(720deg);
    }
}

/* Motion-Preference respektieren */
@media (prefers-reduced-motion: reduce) {
    .confetti i, .confetti i::after {
        animation: none;
    }
}


/* ===== Sieger hervorheben ===== */

/* Mitte breiter gewichten */
.podium-grid {
    grid-template-columns: .9fr 1.6fr .9fr; /* vorher: 1fr 1.2fr 1fr */
}

/* Seitenplätze zurücknehmen */
.place-card {
    transform: translateY(4px) scale(.985);
    opacity: .92;
    filter: saturate(.92);
}

/* Champion boost */
.champion-card {
    margin: 0px 20px;
    position: relative;
    transform: translateY(-2px) scale(1.045);
    border-color: rgba(255,255,255,.28);
    box-shadow: 0 14px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.10) inset, 0 0 0 2px rgba(219,242,1,.18); /* feine Außenlinie */
    isolation: isolate; /* für Pseudo-Elemente */
}

    /* Goldenes Halo/Spotlight hinter der Karte */
    .champion-card::before {
        content: "";
        position: absolute;
        inset: -16px -18px -20px -18px;
        z-index: -1;
        background: radial-gradient(120% 80% at 50% -20%, rgba(219,242,1,.30) 0%, rgba(101,208,32,.14) 35%, rgba(2,189,232,.08) 55%, transparent 70%);
        filter: blur(6px) saturate(1.1);
        pointer-events: none;
    }

@keyframes champ-sheen {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mehr Luft + stärkere Typo im Champion */
.champion-body {
    padding: 20px 22px;
}

.champion-card .place-title {
    font-size: 1.08rem;
}

.champion-card .badge-place--1 {
    box-shadow: 0 4px 16px rgba(219,242,1,.45);
}

/* Krönchen am Titel (ohne HTML) */
.champion-card .place-title #champTitle::before {
    content: "👑";
    margin-right: .5ch;
    filter: saturate(1.2);
}

/* Teams & Score in der Mitte kräftiger */
.champion-card .team {
    font-weight: 900;
    text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

.champion-card .score {
    font-size: clamp(1.9rem, 4.6vw, 2.6rem); /* größer als Standard */
    letter-spacing: .02em;
}

/* Confetti dichter und etwas höher über dem Champion */
.champion-card .confetti {
    inset: -18px -10px auto -10px; /* breiter + höher */
    height: 190px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
}
    /* optional: 1.2x Dichte ohne Markup – doppelte Animation auf jedem zweiten Teilchen */
    .champion-card .confetti i:nth-child(2n)::after {
        animation-duration: calc(var(--spin) * .85);
    }

/* Mobile: nicht zu dominant werden */
@media (max-width: 860px) {
    .podium-grid {
        grid-template-columns: 1fr;
    }

    .place-card {
        transform: none;
        opacity: 1;
        filter: none;
    }

    .champion-card {
        transform: none;
    }

        .champion-card .score {
            font-size: clamp(1.8rem, 6vw, 2.2rem);
        }

        .champion-card::before {
            inset: -10px;
        }
}




/* === Podium: Teamnamen zentriert & größer === */


/* Gewinnername unter der Karte ebenfalls größer */
.place-body > strong, .champion-body > strong {
    display: block;
    margin-top: 8px;
    font-size: 1.6rem;
    text-align: center;
}

.champion-body > strong {
    font-size: 2.5rem;
}






/* Orbs */
.saver-orb {
    position: absolute;
    filter: blur(14px);
    opacity: .35;
    pointer-events: none;
    border-radius: 50%;
}

.orb1 {
    width: 28vmin;
    height: 28vmin;
    left: 8%;
    top: 18%;
    background: radial-gradient(circle at 30% 30%, #02bde8 0%, transparent 60%);
    animation: saver-float-1 var(--cycle) ease-in-out infinite;
}

.orb2 {
    width: 20vmin;
    height: 20vmin;
    right: 10%;
    top: 24%;
    background: radial-gradient(circle at 70% 40%, #d51498 0%, transparent 60%);
    animation: saver-float-2 var(--cycle) ease-in-out infinite;
}

.orb3 {
    width: 34vmin;
    height: 34vmin;
    left: 20%;
    bottom: 10%;
    background: radial-gradient(circle at 40% 60%, #dbf201 0%, transparent 60%);
    animation: saver-float-3 var(--cycle) ease-in-out infinite;
}

/* Admin Import */
.page .lead {
    opacity: .9;
    margin-bottom: 10px;
}

.pages-admin-import h3 {
    margin: 0 0 8px;
}

.null-value {
    font-style: italic;
    font-weight: 700;
    color: slategrey;
}



.badge-qualified {
    margin-left: .4rem;
    padding: .05rem .35rem;
    border-radius: .35rem;
    background: var(--brand-green);
    color: black;
    font-size: .75rem;
    font-weight: 700;
}

.badge-not-qualified {
    margin-left: .4rem;
    padding: .05rem .35rem;
    border-radius: .35rem;
    background: red;
    color: white;
    font-size: .75rem;
    font-weight: 700;
}

.marioTeam {
    color: grey;
    padding-left: 5px;
    font-style: italic;
}


.status-badge {
    display: inline-block;
    padding: .25rem .5rem;
    border-radius: .5rem;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
    color: #fff;
}

.status-badge--live {
    background: var(--brand-yg);
    color: #0f0735;
    border-color: transparent;
}

.status-badge--done {
    background: linear-gradient(90deg, var(--brand-cyan), var(--brand-blue));
    color: #0f0735;
    border-color: transparent;
}

.status-badge--idle {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
}


.color-badge-red {
    margin-left: .4rem;
    padding: .05rem .35rem;
    border-radius: .35rem;
    background: red;
    color: black;
    font-size: .75rem;
    font-weight: 700;
}

.color-badge-blue {
    margin-left: .4rem;
    padding: .05rem .35rem;
    border-radius: .35rem;
    background: var(--brand-blue);
    color: black;
    font-size: .75rem;
    font-weight: 700;
}

.color-badge-yellow {
    margin-left: .4rem;
    padding: .05rem .35rem;
    border-radius: .35rem;
    background: var(--brand-yg);
    color: black;
    font-size: .75rem;
    font-weight: 700;
}

.color-badge-green {
    margin-left: .4rem;
    padding: .05rem .35rem;
    border-radius: .35rem;
    background: var(--brand-green);
    color: black;
    font-size: .75rem;
    font-weight: 700;
}
