/* UX enhancements: open tips, recap, bracket, sticky nav, skeletons */

:root {
    --sz-open-tips-bg: rgba(0, 40, 16, 0.88);
    --sz-open-tips-border: rgba(241, 116, 50, 0.35);
    --sz-open-tips-glow: rgba(241, 116, 50, 0.12);
    --sz-open-tips-urgent: #f17432;
    --sz-open-tips-complete: #6fcf97;
    --sz-open-tips-progress-bg: rgba(255, 255, 255, 0.1);
    --sz-open-tips-progress-fill: linear-gradient(90deg, #0a5c18, #f17432);
    --sz-sticky-top: calc(var(--sz-topbar-row-height, 3.25rem) + 0.35rem);
    --sz-recap-bg: rgba(0, 36, 14, 0.9);
    --sz-recap-border: rgba(130, 200, 150, 0.22);
    --sz-bracket-match-bg: rgba(0, 28, 12, 0.82);
    --sz-bracket-match-border: rgba(255, 255, 255, 0.1);
    --sz-skeleton-base: rgba(255, 255, 255, 0.08);
    --sz-skeleton-shine: rgba(255, 255, 255, 0.16);
}

html[data-theme="light"] {
    --sz-open-tips-bg: rgba(255, 255, 255, 0.96);
    --sz-open-tips-border: rgba(241, 116, 50, 0.45);
    --sz-open-tips-glow: rgba(241, 116, 50, 0.08);
    --sz-open-tips-progress-bg: rgba(0, 60, 10, 0.08);
    --sz-open-tips-progress-fill: linear-gradient(90deg, #0a5c18, #e86a28);
    --sz-recap-bg: #f4f8f4;
    --sz-recap-border: rgba(0, 60, 10, 0.12);
    --sz-bracket-match-bg: #fff;
    --sz-bracket-match-border: rgba(0, 60, 10, 0.12);
    --sz-skeleton-base: rgba(0, 60, 10, 0.07);
    --sz-skeleton-shine: rgba(0, 60, 10, 0.12);
}

/* —— Offene Tipps —— */
.sz-open-tips {
    position: relative;
    margin: 1rem 0 1.15rem;
    padding: 1rem 1.1rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid var(--sz-open-tips-border);
    background: var(--sz-open-tips-bg);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.sz-open-tips__glow {
    position: absolute;
    inset: -40% auto auto -20%;
    width: 70%;
    height: 120%;
    background: radial-gradient(ellipse at center, var(--sz-open-tips-glow), transparent 70%);
    pointer-events: none;
}

.sz-open-tips--urgent {
    border-color: var(--sz-open-tips-urgent);
}

.sz-open-tips--complete {
    border-color: var(--sz-open-tips-complete);
}

.sz-open-tips__head {
    position: relative;
}

.sz-open-tips__kicker {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sz-orange);
}

.sz-open-tips__title {
    margin: 0;
    font-size: clamp(1.15rem, 3.5vw, 1.45rem);
    line-height: 1.2;
    color: var(--sz-body-color);
}

.sz-open-tips__urgent {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sz-open-tips-urgent);
}

.sz-open-tips__urgent-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--sz-open-tips-urgent);
    animation: sz-open-pulse 1.4s ease-in-out infinite;
}

@keyframes sz-open-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.sz-open-tips__progress {
    position: relative;
    margin-top: 0.85rem;
}

.sz-open-tips__progress-track {
    height: 0.45rem;
    border-radius: 999px;
    background: var(--sz-open-tips-progress-bg);
    overflow: hidden;
}

.sz-open-tips__progress-bar {
    height: 100%;
    border-radius: inherit;
    background: var(--sz-open-tips-progress-fill);
    transition: width 0.35s ease;
}

.sz-open-tips__progress-label {
    display: flex;
    justify-content: space-between;
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: var(--sz-hint-color);
}

.sz-open-tips__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.sz-open-tips__chip {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    color: var(--sz-body-color);
}

html[data-theme="light"] .sz-open-tips__chip {
    background: rgba(0, 60, 10, 0.07);
}

.sz-open-tips__chip-muted {
    font-weight: 500;
    opacity: 0.75;
}

.sz-open-tips__next {
    margin: 0.65rem 0 0;
    font-size: 0.85rem;
    color: var(--sz-hint-color);
}

.sz-open-tips__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.85rem 0 0;
}

.sz-open-tips__layout--home {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
}

.sz-open-tips__layout--home .sz-open-tips__main {
    flex: 1 1 12rem;
    min-width: 0;
}

.sz-open-tips__aside {
    flex: 0 0 auto;
    align-self: center;
}

.sz-open-tips__cta-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    min-width: 9.5rem;
}

.sz-open-tips__cta-stack .sz-btn {
    justify-content: center;
    white-space: nowrap;
}

.sz-open-tips__cta-primary {
    font-weight: 700;
}

.sz-open-tips--board {
    margin-top: 0.5rem;
}

.page-home .sz-open-tips {
    width: min(40rem, 80%);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

/* Tippspiel-Wechsel im Hero */
.sz-home-brand__season-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 0.85rem;
}

.sz-home-brand__season-row .sz-home-brand__title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.sz-season-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.7rem 0.45rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(241, 116, 50, 0.55);
    background: linear-gradient(135deg, rgba(241, 116, 50, 0.22), rgba(10, 92, 24, 0.35));
    color: var(--sz-body-color);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.sz-season-switch__glow {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.sz-season-switch:hover .sz-season-switch__glow,
.sz-season-switch:focus-visible .sz-season-switch__glow {
    opacity: 1;
}

.sz-season-switch:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(241, 116, 50, 0.25);
    border-color: var(--sz-orange);
}

.sz-season-switch:focus-visible {
    outline: 2px solid var(--sz-orange);
    outline-offset: 2px;
}

.sz-season-switch__icon {
    display: flex;
    color: var(--sz-orange);
}

.sz-season-switch__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    text-align: left;
}

.sz-season-switch__label {
    font-weight: 700;
}

.sz-season-switch__meta {
    font-size: 0.68rem;
    font-weight: 500;
    opacity: 0.8;
}

.sz-season-switch__chev {
    display: flex;
    opacity: 0.75;
}

html[data-theme="light"] .sz-season-switch {
    background: linear-gradient(135deg, rgba(241, 116, 50, 0.12), rgba(10, 92, 24, 0.08));
    border-color: rgba(241, 116, 50, 0.45);
}

/* Regeln: Icon nur Desktop-Topbar */
.sz-nav-icon--desktop-only {
    display: none;
}

@media (min-width: 561px) {
    .sz-nav-icon--desktop-only {
        display: inline-flex;
    }
}

@media (max-width: 560px) {
    .sz-open-tips__layout--home {
        flex-direction: column;
        align-items: stretch;
    }

    .sz-open-tips__aside {
        width: 100%;
    }

    .sz-open-tips__cta-stack {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
    }

    .sz-open-tips__cta-stack .sz-btn {
        flex: 1 1 auto;
    }

    .page-home .sz-open-tips {
        width: min(40rem, 100%);
    }

    .sz-home-brand__season-row {
        flex-direction: column;
    }

    .sz-season-switch {
        width: 100%;
        justify-content: center;
    }

    .sz-season-switch__text {
        align-items: center;
    }
}

/* Spieltag-Badge */
.sz-st-select__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    margin-left: 0.25rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1;
    background: var(--sz-orange);
    color: #fff;
    vertical-align: middle;
}

/* Sticky Nav (Board) */
.sz-subnav--sticky,
.sz-st-select--sticky {
    position: sticky;
    z-index: 40;
    background: var(--sz-topbar-bg, rgba(0, 0, 0, 0.52));
    backdrop-filter: var(--sz-topbar-blur, blur(10px));
    -webkit-backdrop-filter: var(--sz-topbar-blur, blur(10px));
}

.sz-subnav--sticky {
    top: var(--sz-sticky-top);
    margin-bottom: 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--sz-subnav-border);
}

.sz-st-select--sticky {
    top: calc(var(--sz-sticky-top) + 2.4rem);
    margin-bottom: 0.65rem;
    padding-bottom: 0.35rem;
}

@media (max-width: 560px) {
    .sz-st-select--sticky {
        top: var(--sz-sticky-top);
    }
    .sz-subnav--sticky {
        top: calc(var(--sz-sticky-top) + 3.5rem);
    }
}

/* Fremdtipp-Skeleton */
.sz-tips-skeleton {
    display: grid;
    gap: 0.55rem;
    padding: 0.35rem 0;
}

.sz-tips-skeleton__row {
    height: 2.1rem;
    border-radius: 0.45rem;
    background: linear-gradient(
        90deg,
        var(--sz-skeleton-base) 0%,
        var(--sz-skeleton-shine) 50%,
        var(--sz-skeleton-base) 100%
    );
    background-size: 200% 100%;
    animation: sz-skeleton-shimmer 1.1s ease-in-out infinite;
}

@keyframes sz-skeleton-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Runden-Recap */
.sz-round-recap {
    position: relative;
    margin: 1rem 0 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid var(--sz-recap-border);
    background: var(--sz-recap-bg);
    overflow: hidden;
}

.sz-round-recap__glow {
    position: absolute;
    right: -10%;
    top: -30%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(241, 116, 50, 0.1), transparent 65%);
    pointer-events: none;
}

.sz-round-recap__kicker {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sz-orange);
    font-weight: 700;
}

.sz-round-recap__title {
    margin: 0.15rem 0 0.75rem;
    font-size: 1.2rem;
    color: var(--sz-body-color);
}

.sz-round-recap__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: 0.55rem;
}

.sz-round-recap__card {
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .sz-round-recap__card {
    background: rgba(0, 60, 10, 0.05);
}

.sz-round-recap__card--total .sz-round-recap__value {
    color: var(--sz-orange);
}

.sz-round-recap__label {
    margin: 0;
    font-size: 0.72rem;
    color: var(--sz-hint-color);
}

.sz-round-recap__value {
    margin: 0.15rem 0 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--sz-body-color);
}

.sz-round-recap__hint {
    margin: 0.2rem 0 0;
    font-size: 0.72rem;
    color: var(--sz-hint-color);
}

/* Vergessene Tipps */
.sz-forgotten-tips__list {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.sz-forgotten-tips__link {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid var(--sz-match-card-border);
    background: var(--sz-match-card-bg);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.sz-forgotten-tips__link:hover,
.sz-forgotten-tips__link:focus-visible {
    border-color: var(--sz-orange);
    outline: none;
    transform: translateY(-1px);
}

.sz-forgotten-tips__teams {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.88rem;
}

.sz-forgotten-tips__logo {
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
}

.sz-forgotten-tips__vs {
    opacity: 0.6;
    font-weight: 500;
}

.sz-forgotten-tips__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.75rem;
    color: var(--sz-hint-color);
}

.sz-forgotten-tips__pts {
    font-weight: 800;
    font-size: 0.9rem;
    color: #e85d5d;
}

html[data-theme="light"] .sz-forgotten-tips__pts {
    color: #b91c1c;
}

@media (max-width: 520px) {
    .sz-forgotten-tips__link {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }
    .sz-forgotten-tips__pts {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: center;
    }
}

/* Turnierbaum */
.sz-bracket {
    display: grid;
    gap: 1.25rem;
    margin: 1rem 0 2rem;
}

.sz-bracket__phase-title {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--sz-orange);
    border-bottom: 2px solid var(--sz-open-tips-border);
    padding-bottom: 0.35rem;
}

.sz-bracket__matches {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .sz-bracket__matches {
        grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    }
}

.sz-bracket__match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.25rem 0.5rem;
    align-items: center;
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid var(--sz-bracket-match-border);
    background: var(--sz-bracket-match-bg);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sz-bracket__match:hover,
.sz-bracket__match:focus-visible {
    border-color: var(--sz-orange);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    outline: none;
}

.sz-bracket__team {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    min-width: 0;
}

.sz-bracket__team span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sz-bracket__team--away {
    justify-content: flex-end;
    text-align: right;
}

.sz-bracket__team img {
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff;
}

.sz-bracket__score {
    grid-row: 1;
    grid-column: 2;
    font-weight: 800;
    font-size: 1rem;
    color: var(--sz-hint-color);
    text-align: center;
}

.sz-bracket__score.is-final {
    color: var(--sz-body-color);
}

.sz-bracket__time {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.72rem;
    color: var(--sz-hint-color);
}

/* Gruppenphase (Turnier) */
.sz-tournament-groups {
    margin: 1.25rem 0 1.75rem;
}

.sz-tournament-groups__title {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    color: var(--sz-body-color);
}

.sz-tournament-groups__rules {
    margin: 0 0 1rem;
    max-width: 42rem;
}

.sz-tournament-groups__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}

.sz-tournament-group-card {
    border-radius: 0.85rem;
    border: 1px solid var(--sz-bracket-match-border);
    background: var(--sz-bracket-match-bg);
    padding: 0.75rem 0.85rem 0.9rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.sz-tournament-group-card--pending {
    opacity: 0.92;
}

.sz-tournament-group-card__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.55rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sz-orange);
}

.sz-tournament-group-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    font-weight: 800;
    background: var(--sz-orange);
    color: #fff;
}

.sz-tournament-group-card__table-wrap {
    margin: 0;
}

.sz-tournament-group-table {
    font-size: 0.82rem;
}

.sz-tournament-group-table__team {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.sz-tournament-group-table__logo {
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
}

.sz-tournament-group-table__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 8rem;
}

.sz-tournament-group-table__qual {
    flex-shrink: 0;
    font-size: 0.7rem;
    color: var(--sz-open-tips-complete);
    font-weight: 800;
}

.sz-tournament-group-table__pts strong {
    color: var(--sz-orange);
}

.sz-tournament-group-table__row--qual {
    background: rgba(241, 116, 50, 0.1);
}

html[data-theme="light"] .sz-tournament-group-table__row--qual {
    background: rgba(241, 116, 50, 0.12);
}

.sz-tournament-group-card__pending {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
}

.sz-tournament-groups__legend {
    margin-top: 0.85rem;
}

.sz-tournament-groups__legend-mark {
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    margin-right: 0.25rem;
    vertical-align: middle;
    background: rgba(241, 116, 50, 0.35);
}

.sz-tournament-groups--compact .sz-tournament-groups__grid {
    grid-template-columns: 1fr;
}

.sz-tournament-groups--compact .sz-tournament-group-card {
    padding: 0.55rem 0.65rem;
}

.sz-board-group-standings {
    margin: 0.75rem 0 1rem;
}

.sz-board-group-standings__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
}

.sz-board-group-standings__link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sz-orange);
    text-decoration: none;
}

.sz-board-group-standings__link:hover {
    text-decoration: underline;
}

.sz-bracket-section__title {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    color: var(--sz-body-color);
}

@media (max-width: 480px) {
    .sz-tournament-group-table__name {
        max-width: 5.5rem;
    }
    .sz-tournament-groups--compact .sz-ranking-table__num:nth-child(n+4):nth-child(-n+6) {
        display: none;
    }
}

/* Admin: Tippspiele / OpenLiga */
.sz-admin-tippspiele__actions,
.sz-admin-tippspiele-form__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}

.sz-admin-tippspiele-edit__grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 960px) {
    .sz-admin-tippspiele-edit__grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.sz-admin-tippspiele-form__subtitle {
    margin: 1.25rem 0 0.35rem;
    font-size: 1rem;
}

.sz-admin-openliga-preview {
    margin: 0.75rem 0;
    padding: 0.75rem 1rem;
    border-radius: var(--sz-radius, 8px);
    background: var(--sz-surface-2, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--sz-border, rgba(255, 255, 255, 0.08));
}

.sz-admin-openliga-preview--err {
    border-color: var(--sz-danger, #e55);
}

.sz-admin-tippspiele-stats {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
}

.sz-admin-liga-browser {
    margin-top: 1rem;
}

.sz-admin-league-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    max-height: 240px;
    overflow-y: auto;
}

.sz-admin-league-list li {
    margin-bottom: 0.35rem;
}

.sz-admin-league-pick {
    background: none;
    border: none;
    color: var(--sz-link, #6cf);
    cursor: pointer;
    padding: 0;
    text-align: left;
    font: inherit;
}

.sz-admin-league-pick:hover {
    text-decoration: underline;
}

.sz-form--inline {
    margin-bottom: 0.75rem;
}

/* —— Barrierefreiheit & Navigation —— */
.sz-skip-link {
    position: absolute;
    left: -9999px;
    top: 0.5rem;
    z-index: 10000;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: var(--sz-orange);
    color: #111;
    font-weight: 700;
    text-decoration: none;
}

.sz-skip-link:focus {
    left: 0.5rem;
}

.sz-nav-drawer__link-sub {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    opacity: 0.75;
    margin-top: 0.1rem;
}

/* —— Startseite: Onboarding —— */
.sz-onboarding {
    margin: 0.5rem 0 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(130, 200, 150, 0.28);
    background: rgba(0, 36, 14, 0.75);
}

html[data-theme="light"] .sz-onboarding {
    background: #f4f8f4;
    border-color: rgba(0, 60, 10, 0.12);
}

.sz-onboarding__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.sz-onboarding__kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sz-orange);
}

.sz-onboarding__close {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    padding: 0 0.25rem;
}

.sz-onboarding__steps {
    margin: 0.5rem 0 0.35rem;
    padding-left: 1.15rem;
    line-height: 1.45;
}

.sz-onboarding__more {
    margin: 0;
    font-size: 0.88rem;
}

/* —— Rangliste: Suche & Top-3 —— */
.sz-ranking-search {
    margin: 0 0 0.75rem;
}

.sz-ranking-search__label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sz-small);
}

.sz-ranking-search__input {
    width: min(100%, 22rem);
    padding: 0.5rem 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid var(--sz-border, rgba(255, 255, 255, 0.15));
    background: var(--sz-input-bg, rgba(0, 0, 0, 0.25));
    color: inherit;
}

.sz-ranking-search__empty {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--sz-small);
}

.sz-ranking-table__row--top1 {
    background: rgba(255, 210, 80, 0.08);
}

.sz-ranking-table__row--top2 {
    background: rgba(200, 200, 210, 0.06);
}

.sz-ranking-table__row--top3 {
    background: rgba(205, 140, 80, 0.07);
}

/* —— Board: KO-Zusatz, Legende, Filter —— */
.sz-match--ko-extra {
    border-color: rgba(120, 180, 255, 0.45);
    box-shadow: inset 0 0 0 1px rgba(120, 180, 255, 0.12);
}

.sz-match--ko-extra .sz-my-tipp__ko-meta,
.sz-match--ko-extra .sz-tipp-form__ko-block {
    border-left: 3px solid rgba(120, 180, 255, 0.55);
    padding-left: 0.65rem;
}

.sz-score-legend {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    opacity: 0.8;
}

.sz-tips-spoiler__filter-empty {
    margin: 0.5rem 0 0;
    font-size: 0.88rem;
    color: var(--sz-small);
}

.sz-tipp-view-bar__hint--pulse {
    color: var(--sz-orange);
    animation: sz-hint-pulse 1.2s ease-in-out 3;
}

@keyframes sz-hint-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.55;
    }
}

/* —— Live-Aktivitäts-Feed —— */
.sz-live-feed {
    position: relative;
    margin: 1.25rem 0 1.5rem;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid rgba(100, 180, 255, 0.28);
    background: linear-gradient(145deg, rgba(0, 28, 48, 0.9), rgba(0, 36, 14, 0.85));
    overflow: hidden;
}

html[data-theme="light"] .sz-live-feed {
    background: linear-gradient(145deg, #eef6ff, #f4f8f4);
    border-color: rgba(0, 80, 140, 0.18);
}

.sz-live-feed__glow {
    position: absolute;
    inset: -20% auto auto -15%;
    width: 50%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(100, 180, 255, 0.14), transparent 70%);
    pointer-events: none;
}

.sz-live-feed__kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7ec8ff;
}

.sz-live-feed__title {
    margin: 0.15rem 0 0.25rem;
    font-size: clamp(1.05rem, 3vw, 1.25rem);
}

.sz-live-feed__presence {
    margin: 0;
    font-size: 0.82rem;
    opacity: 0.85;
}

.sz-live-feed__list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    max-height: 14rem;
    overflow-y: auto;
}

.sz-live-feed__item {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.92rem;
    line-height: 1.4;
}

html[data-theme="light"] .sz-live-feed__item {
    border-bottom-color: rgba(0, 60, 10, 0.08);
}

.sz-live-feed__item--new {
    animation: sz-live-feed-in 0.55s ease-out;
}

@keyframes sz-live-feed-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sz-live-feed__dot {
    flex-shrink: 0;
    width: 0.45rem;
    height: 0.45rem;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: var(--sz-orange);
    box-shadow: 0 0 8px rgba(241, 116, 50, 0.55);
}

.sz-live-feed__time {
    flex-shrink: 0;
    min-width: 2.6rem;
    margin-top: 0.05rem;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(126, 200, 255, 0.95);
    opacity: 0.9;
}

html[data-theme="light"] .sz-live-feed__time {
    color: rgba(0, 90, 160, 0.85);
}

.sz-live-feed__empty {
    margin: 0.65rem 0 0;
    font-size: 0.88rem;
    opacity: 0.75;
}

.sz-live-feed__list--panel {
    max-height: min(50vh, 22rem);
}

/* —— Language switcher —— */
.sz-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .sz-lang-switch {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.04);
}

.sz-lang-switch__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.28rem 0.45rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: inherit;
    opacity: 0.65;
}

.sz-lang-switch__link:hover {
    opacity: 1;
}

.sz-lang-switch__link.is-active {
    opacity: 1;
    background: rgba(126, 200, 255, 0.25);
    color: #7ec8ff;
}

html[data-theme="light"] .sz-lang-switch__link.is-active {
    background: rgba(0, 100, 180, 0.12);
    color: rgba(0, 90, 160, 0.95);
}

.sz-lang-switch--compact {
    flex-shrink: 0;
}

.sz-nav-drawer__icons .sz-lang-switch {
    margin-right: 0.35rem;
}

/* —— Live: Menü-Schalter (Burger / Desktop-Werkzeuge) —— */
.sz-live-feed-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.sz-live-feed-menu-toggle--drawer {
    padding: 0.85rem 1rem;
    margin: 0 0.65rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .sz-live-feed-menu-toggle--drawer {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

.sz-live-feed-menu-toggle--toolbar {
    flex-shrink: 0;
}

.sz-live-feed-menu-toggle--toolbar .sz-live-feed-menu-toggle__copy {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sz-live-feed-menu-toggle__label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.sz-live-feed-menu-toggle__hint {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.78rem;
    opacity: 0.75;
    line-height: 1.35;
}

.sz-live-feed-switch {
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.sz-live-feed-switch__track {
    display: block;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="light"] .sz-live-feed-switch__track {
    background: rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.14);
}

.sz-live-feed-switch__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
}

.sz-live-feed-switch--on .sz-live-feed-switch__track {
    background: rgba(126, 200, 255, 0.45);
    border-color: rgba(126, 200, 255, 0.75);
    box-shadow: 0 0 12px rgba(126, 200, 255, 0.35);
}

.sz-live-feed-switch--on .sz-live-feed-switch__thumb {
    transform: translateX(20px);
}

.sz-live-feed-switch--pending .sz-live-feed-switch__track {
    animation: sz-live-nav-pulse 1.1s ease-in-out 3;
    border-color: rgba(241, 116, 50, 0.9);
    box-shadow: 0 0 14px rgba(241, 116, 50, 0.5);
}

.sz-nav-drawer__live {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.35rem 0 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.35rem;
}

html[data-theme="light"] .sz-nav-drawer__live {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.sz-nav-drawer__link--live-open {
    margin: 0 0.65rem;
    width: calc(100% - 1.3rem);
}

.sz-burger--live-pending {
    animation: sz-live-nav-pulse 1.1s ease-in-out 3;
    border-color: rgba(241, 116, 50, 0.85) !important;
    box-shadow: 0 0 14px rgba(241, 116, 50, 0.45);
}

@media (max-width: 560px) {
    .sz-live-feed-menu-toggle--toolbar {
        display: none !important;
    }
}

@media (min-width: 561px) {
    .sz-nav-drawer__live,
    .sz-live-feed-menu-toggle--drawer {
        display: none !important;
    }
}

/* —— Live: Nav-Toggle (Gäste) —— */
.sz-nav-icon--live {
    position: relative;
}

.sz-nav-icon--live .sz-nav-icon__live-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid transparent;
    pointer-events: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sz-nav-icon--live-on .sz-nav-icon__live-ring {
    border-color: rgba(126, 200, 255, 0.75);
    box-shadow: 0 0 12px rgba(126, 200, 255, 0.45);
}

.sz-nav-icon--live-on .sz-nav-icon__inner {
    color: #7ec8ff;
}

.sz-nav-icon--live-pending .sz-nav-icon__live-ring {
    animation: sz-live-nav-pulse 1.1s ease-in-out 3;
    border-color: rgba(241, 116, 50, 0.9);
    box-shadow: 0 0 16px rgba(241, 116, 50, 0.55);
}

@keyframes sz-live-nav-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.12);
        opacity: 0.65;
    }
}

/* —— Live: Toasts unten —— */
.sz-live-toast-stack {
    position: fixed;
    bottom: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9500;
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.55rem;
    width: min(26rem, calc(100vw - 1.5rem));
    pointer-events: none;
}

.sz-live-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    width: 100%;
    margin: 0;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(126, 200, 255, 0.45);
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgba(8, 32, 52, 0.96), rgba(0, 40, 16, 0.94));
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    color: var(--sz-body-color);
    text-align: left;
    cursor: pointer;
    opacity: 0;
    transform: translateY(1.25rem) scale(0.96);
    transition:
        opacity 0.35s ease,
        transform 0.38s cubic-bezier(0.22, 1.1, 0.36, 1);
}

html[data-theme="light"] .sz-live-toast {
    background: linear-gradient(135deg, #eef6ff, #f4f8f4);
    border-color: rgba(0, 100, 180, 0.25);
    box-shadow: 0 10px 28px rgba(0, 60, 10, 0.12);
}

.sz-live-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.sz-live-toast__icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    line-height: 1.3;
    filter: drop-shadow(0 0 6px rgba(241, 116, 50, 0.6));
}

.sz-live-toast__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    min-width: 0;
    flex: 1;
}

.sz-live-toast__time {
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: rgba(126, 200, 255, 0.95);
    opacity: 0.92;
}

html[data-theme="light"] .sz-live-toast__time {
    color: rgba(0, 90, 160, 0.85);
}

.sz-live-toast__text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.sz-live-toast:hover {
    border-color: rgba(241, 116, 50, 0.55);
}

/* —— Live: Panel —— */
.sz-live-feed-panel {
    position: fixed;
    inset: 0;
    z-index: 9600;
    display: none !important;
    pointer-events: none;
    visibility: hidden;
}

.sz-live-feed-panel[hidden] {
    display: none !important;
}

.sz-live-feed-panel.is-open {
    display: flex !important;
    align-items: flex-end;
    justify-content: center;
    padding: 0.75rem;
    pointer-events: auto;
    visibility: visible;
}

.sz-live-feed-panel__backdrop {
    position: absolute;
    inset: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
}

.sz-live-feed-panel.is-open .sz-live-feed-panel__backdrop {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: auto;
}

.sz-live-feed-panel__dialog {
    position: relative;
    width: min(32rem, 100%);
    max-height: min(85vh, 36rem);
    display: flex;
    flex-direction: column;
    border-radius: 1rem 1rem 0.75rem 0.75rem;
    border: 1px solid rgba(126, 200, 255, 0.35);
    background: linear-gradient(160deg, rgba(0, 28, 48, 0.98), rgba(0, 36, 14, 0.97));
    box-shadow: 0 -8px 48px rgba(0, 0, 0, 0.45);
    transform: translateY(110%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.sz-live-feed-panel.is-open .sz-live-feed-panel__dialog {
    transform: translateY(0);
}

html[data-theme="light"] .sz-live-feed-panel__dialog {
    background: linear-gradient(160deg, #f8fbff, #f4f8f4);
    border-color: rgba(0, 80, 140, 0.2);
}

.sz-live-feed-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.5rem;
}

.sz-live-feed-panel__kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7ec8ff;
}

.sz-live-feed-panel__title {
    margin: 0.1rem 0 0;
    font-size: 1.15rem;
}

.sz-live-feed-panel__presence {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    opacity: 0.85;
}

.sz-live-feed-panel__close {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
    padding: 0.15rem 0.35rem;
}

.sz-live-feed-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: 0 1rem;
}

.sz-live-feed-panel__foot {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .sz-live-feed-panel__foot {
    border-top-color: rgba(0, 60, 10, 0.1);
}

.sz-live-feed-panel__hint {
    margin: 0.55rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    opacity: 0.8;
}

.sz-nav-drawer__link--button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.sz-check {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin: 0.65rem 0;
    line-height: 1.4;
    cursor: pointer;
}

.sz-check input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* —— Startseite: NEW-News zwischen Tippspiel und Tipp-Status —— */
.sz-home-news-spotlight {
    position: relative;
    margin: 0.65rem 0 0.95rem;
    padding: 0.85rem 1rem 0.95rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 210, 80, 0.42);
    background: linear-gradient(145deg, rgba(48, 28, 0, 0.92), rgba(0, 36, 12, 0.9));
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

html[data-theme="light"] .sz-home-news-spotlight {
    border-color: rgba(200, 120, 0, 0.45);
    background: linear-gradient(145deg, #fff9ee, #f4f8f4);
    box-shadow: 0 10px 24px rgba(0, 60, 10, 0.1);
}

.sz-home-news-spotlight__glow {
    position: absolute;
    inset: -30% -10% auto auto;
    width: 55%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(255, 196, 64, 0.18), transparent 68%);
    pointer-events: none;
}

.sz-home-news-spotlight__details {
    position: relative;
}

.sz-home-news-spotlight__summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.sz-home-news-spotlight__summary::-webkit-details-marker {
    display: none;
}

.sz-home-news-spotlight__summary-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    min-width: 0;
    flex: 1;
}

.sz-home-news-spotlight__title {
    margin: 0;
    font-size: clamp(1.05rem, 3.2vw, 1.28rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--sz-body-color);
}

.sz-home-news-spotlight__toggle {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sz-orange);
    opacity: 0.9;
    padding-top: 0.15rem;
}

.sz-home-news-spotlight__details[open] .sz-home-news-spotlight__toggle-closed {
    display: none;
}

.sz-home-news-spotlight__details:not([open]) .sz-home-news-spotlight__toggle-open {
    display: none;
}

.sz-home-news-spotlight__panel {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .sz-home-news-spotlight__panel {
    border-top-color: rgba(0, 60, 10, 0.1);
}

.sz-home-news-spotlight__time {
    display: block;
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    opacity: 0.72;
}

.sz-home-news-spotlight__body {
    max-height: min(42vh, 20rem);
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.5;
    padding-right: 0.15rem;
}

.sz-home-news-spotlight__body p:first-child {
    margin-top: 0;
}

.sz-home-news-spotlight .sz-new-badge {
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    .sz-open-tips__urgent-dot,
    .sz-tips-skeleton__row {
        animation: none;
    }
    .sz-forgotten-tips__link:hover {
        transform: none;
    }
}
