/* Shared club page hero surfaces */
.club-page-hero {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
    padding: clamp(1.35rem, 3vw, 2.15rem) clamp(1.15rem, 3vw, 2.25rem) 0;
}

.club-page-hero::before,
.club-page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.club-page-hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(18rem, 1fr) minmax(20rem, 28rem);
    gap: clamp(1.35rem, 4vw, 2.4rem);
    align-items: start;
}

.club-page-hero__copy {
    min-width: 0;
}

.club-page-hero__eyebrow {
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.club-page-hero__title {
    margin: 0.85rem 0 0.7rem;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(2.35rem, 5vw, 4.4rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.club-page-hero__description {
    max-width: 35rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.55;
}

/* Youth hero */
.youth-hero {
    --youth-hero-accent: #f5b84b;
    --youth-hero-accent-strong: #ffd36d;
    margin-bottom: 1rem;
    border-color: rgba(245, 184, 75, 0.25);
    background:
        radial-gradient(circle at 74% 28%, rgba(245, 184, 75, 0.18), transparent 34%),
        radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.07), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        color-mix(in srgb, var(--card-bg) 86%, #1b1306);
}

.youth-hero::before {
    background-image: url("../../assets/BG_Jugend.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    opacity: 0.86;
    mask-image: linear-gradient(90deg, transparent 0%, black 18%, black 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 18%, black 88%, transparent 100%);
}

.youth-hero::after {
    background:
        linear-gradient(90deg, rgba(14, 10, 6, 0.9), rgba(14, 10, 6, 0.5) 45%, rgba(14, 10, 6, 0.74) 100%),
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

.youth-hero__eyebrow {
    color: var(--youth-hero-accent);
}

.youth-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.15rem;
}

.youth-hero__chips span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.42rem 0.72rem;
    border: 1px solid rgba(245, 184, 75, 0.26);
    border-radius: 999px;
    background: rgba(245, 184, 75, 0.12);
    color: rgba(255, 245, 219, 0.9);
    font-size: 0.82rem;
    font-weight: 800;
}

.youth-intake-note {
    display: grid;
    gap: 0.2rem;
    width: fit-content;
    max-width: 38rem;
    margin-top: 1rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(245, 184, 75, 0.3);
    border-radius: 0.75rem;
    background: rgba(12, 18, 24, 0.38);
    color: var(--text-secondary, #c4ccd4);
    font-size: 0.86rem;
}

.youth-intake-note strong {
    color: var(--youth-hero-accent-strong);
}

.youth-intake-note__warning {
    color: #ffcf70;
}

.youth-hero__panel {
    justify-self: end;
    width: min(100%, 28rem);
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(12, 8, 4, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 34px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
}

.youth-hero__panel-label {
    margin-bottom: 0.75rem;
    color: var(--youth-hero-accent);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.light-mode .youth-hero {
    border-color: rgba(174, 117, 25, 0.2);
    background: #f8f2e7;
    box-shadow: 0 18px 42px rgba(101, 73, 28, 0.13);
}

body.light-mode .youth-hero::before {
    background-image: url("../../assets/BG_Jugend_lm.png");
    opacity: 0.92;
}

body.light-mode .youth-hero::after {
    background:
        linear-gradient(90deg, rgba(255, 252, 246, 0.95), rgba(255, 252, 246, 0.52) 46%, rgba(250, 245, 235, 0.78)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(226, 211, 184, 0.28));
}

body.light-mode .youth-hero .club-page-hero__title {
    color: #28231b;
}

body.light-mode .youth-hero .club-page-hero__description {
    color: #665d50;
}

body.light-mode .youth-hero__chips span {
    border-color: rgba(174, 117, 25, 0.22);
    background: rgba(245, 184, 75, 0.14);
    color: #714c13;
}

body.light-mode .youth-hero__panel {
    border-color: rgba(94, 72, 36, 0.12);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 14px 30px rgba(101, 73, 28, 0.11);
}

body.light-mode .youth-hero__metric {
    border-color: rgba(94, 72, 36, 0.09);
    background: rgba(250, 246, 238, 0.78);
}

body.light-mode .youth-hero__metric span {
    color: #756a5a;
}

body.light-mode .youth-hero__metric strong {
    color: #28231b;
}

.youth-hero__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.youth-hero__metric {
    display: grid;
    gap: 0.28rem;
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
}

.youth-hero__metric span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.youth-hero__metric strong {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.94);
    font-size: 1rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.youth-hero-tabs {
    position: relative;
    z-index: 1;
    display: flex;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    margin: clamp(1.7rem, 4vw, 3rem) 0 0;
    padding: 1.05rem 0 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.youth-hero-tabs .tab-btn {
    position: relative;
    flex: 0 0 auto;
    min-height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: none;
}

.youth-hero-tabs .tab-btn span {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.72rem;
}

.youth-hero-tabs .tab-btn:hover,
.youth-hero-tabs .tab-btn:focus-visible {
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
}

.youth-hero-tabs .tab-btn.active {
    color: var(--youth-hero-accent-strong);
    background: transparent;
    box-shadow: none;
}

.youth-hero-tabs .tab-btn.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.9rem;
    height: 3px;
    border-radius: 999px;
    background: var(--youth-hero-accent);
    box-shadow: 0 0 14px rgba(245, 184, 75, 0.55);
}

.youth-tabs.youth-hero-tabs {
    margin-bottom: 0;
}

@media (max-width: 980px) {
    .club-page-hero__content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .youth-hero {
        padding-top: 1.35rem;
    }

    .youth-hero::before {
        background-position: center center;
        background-size: cover;
        opacity: 0.34;
    }

    .youth-hero__panel {
        justify-self: stretch;
        width: 100%;
    }
}

@media (max-width: 720px) {
    .club-page-hero {
        border-radius: 14px;
        padding: 1rem 1rem 0;
    }

    .club-page-hero__title {
        font-size: clamp(2rem, 13vw, 3rem);
        line-height: 1;
        overflow-wrap: anywhere;
    }

    .club-page-hero__description {
        font-size: 0.96rem;
    }

    .youth-hero::before {
        background-position: center center;
        background-size: cover;
        opacity: 0.22;
    }

    .youth-hero::after {
        background: linear-gradient(90deg, rgba(14, 10, 6, 0.92), rgba(14, 10, 6, 0.74));
    }

    body.light-mode .youth-hero::before {
        opacity: 0.62;
    }

    body.light-mode .youth-hero::after {
        background: linear-gradient(90deg, rgba(255, 252, 246, 0.96), rgba(250, 245, 235, 0.8));
    }

    .youth-hero__panel {
        padding: 0.85rem;
    }

    .youth-hero__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .youth-hero-tabs {
        gap: 1rem;
        margin-top: 1.35rem;
        padding-bottom: 0.85rem;
    }

    .youth-hero-tabs .tab-btn {
        font-size: 0.72rem;
    }
}

@media (max-width: 420px) {
    .club-page-hero {
        margin-inline: -0.15rem;
        padding: 0.9rem 0.85rem 0;
    }

    .club-page-hero__title {
        font-size: clamp(1.8rem, 14vw, 2.45rem);
    }

    .youth-hero__panel {
        padding: 0.75rem;
        border-radius: 12px;
    }

    .youth-hero__metrics {
        grid-template-columns: 1fr;
    }

    .youth-hero__chips span {
        min-height: 1.85rem;
        font-size: 0.78rem;
    }

    .youth-hero-tabs {
        margin-top: 1.05rem;
        gap: 0.9rem;
        padding-top: 0.9rem;
    }

    .youth-hero-tabs .tab-btn {
        font-size: 0.68rem;
    }

    .youth-hero-tabs .tab-btn.active::after {
        bottom: -0.88rem;
    }
}
