/* ============================================================
   Delivery Polish – einheitliches Layout & UX
   ============================================================ */

/* —— Unterseiten: Abstand & Hero —— */
.subpage-main {
    padding: 3.5rem 0 5rem;
}

.subpage-main > .section-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.page-hero {
    min-height: 38vh;
    padding-top: calc(5.5rem + env(safe-area-inset-top, 0px));
}

/* —— Mitgliedschaft: gleiche Kartenhöhe —— */
.membership-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 1.75rem);
    align-items: stretch;
    max-width: 1180px;
}

.membership-plan-card,
.membership-card.membership-plan-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.membership-plan-card .membership-features {
    flex: 1 1 auto;
    margin-bottom: 1.5rem;
}

.membership-plan-card .membership-btn {
    margin-top: auto;
}

@media (max-width: 1024px) {
    .membership-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .membership-card.featured,
    .membership-plan-card.featured {
        transform: none;
        order: -1;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .membership-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .membership-card.featured {
        transform: scale(1.02);
    }
}

/* —— Liga-Tabelle: Update-Hinweis —— */
.table-updated {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
    text-align: right;
}

/* —— Mitgliedschaft: Info-Band —— */
.membership-perks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
    padding: 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 179, 0, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.membership-perk {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

.membership-perk i {
    color: var(--gs-gold);
    font-size: 1.1rem;
    margin-top: 0.15rem;
}

/* —— Navigation: Toggle als Button (Enhancement nur, Layout in style.css) —— */
.nav-toggle {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease, border-color 0.35s ease;
}

.nav-toggle:hover {
    transform: translateY(-1px);
    background: rgba(255, 179, 0, 0.12);
    border-color: rgba(255, 179, 0, 0.3);
}

.nav-toggle span {
    transform-origin: center;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, background 0.25s ease;
}

/* NAV LAYOUT IS AUTHORITATIVE IN style.css — conflicting overrides removed here to prevent silver overlay / broken desktop nav */

/* —— Footer & Jahr —— */
.footer-social a {
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

/* —— WhatsApp Schnellkontakt —— */
.fab-whatsapp {
    position: fixed;
    left: 1.5rem;
    bottom: 1.5rem;
    z-index: 98;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fab-whatsapp:hover {
    transform: scale(1.08);
    color: #fff;
}

body.has-mobile-cta .fab-whatsapp {
    bottom: calc(var(--mobile-cta-h) + 1rem + env(safe-area-inset-bottom, 0px));
}

/* —— Skeleton beim Laden der Tarife —— */
.membership-grid.is-loading {
    min-height: 420px;
}

.membership-skeleton {
    border-radius: 1.5rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 179, 0, 0.08) 50%, rgba(255, 255, 255, 0.04) 100%);
    background-size: 200% 100%;
    animation: membershipShimmer 1.2s ease-in-out infinite;
    min-height: 380px;
}

@keyframes membershipShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* —— Spiele-Tabs —— */
.matches-header {
    align-items: flex-end;
}

.matches-tabs .match-tab {
    min-width: 8rem;
}

/* Gallery media feels softer and videos fit like images. */
.gallery-item {
    transform: translateZ(0);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sponsor logos must keep the fixed card image frame despite global img rules. */
.sponsor-logo-wrap img {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
}

/* —— Kontakt & Formulare —— */
.contact-grid {
    align-items: start;
}

.form-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* —— Reveal (einheitlich) —— */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* —— Modal auf Mobil —— */
/* Real data source badge */
.data-source {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 0.85rem;
}

.data-source a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.78rem;
}

.data-source-logo {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: #101f33;
    color: #72d0ff;
    border: 1px solid rgba(114, 208, 255, 0.35);
    font-weight: 800;
    letter-spacing: 0;
}

.api-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 0.35rem;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
    vertical-align: middle;
}

.data-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.api-fallback-note {
    margin-bottom: 0.25rem;
}

.star-stats.sourced .star-stat-value {
    font-size: 0.95rem;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.legal-check,
.newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.45;
}

.legal-check input,
.newsletter-consent input {
    width: 18px;
    height: 18px;
    margin-top: 0.1rem;
    flex: 0 0 auto;
}

.newsletter-consent {
    width: 100%;
    justify-content: center;
    max-width: 620px;
    margin: 0.75rem auto 0;
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1500;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 8px;
    background: #111;
    color: #fff;
    box-shadow: 0 24px 70px rgba(0,0,0,0.45);
}

body.menu-open .cookie-banner {
    z-index: 900;
}

.cookie-banner__text {
    display: grid;
    gap: 0.35rem;
    line-height: 1.45;
    font-size: 0.88rem;
}

.cookie-banner__text a {
    color: var(--gs-gold);
}

.cookie-banner__actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-banner__actions button {
    min-height: 42px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.24);
    background: transparent;
    color: #fff;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
}

.cookie-banner__actions button:last-child {
    background: var(--gs-gold);
    color: #111;
    border-color: var(--gs-gold);
    font-weight: 800;
}

@media (max-width: 760px) {
    .cookie-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-banner__actions button {
        flex: 1 1 100%;
    }
}

.premium-hero {
    min-height: 52vh;
    display: flex;
    align-items: flex-end;
    padding: 8rem 1.25rem 4rem;
    background: linear-gradient(135deg, rgba(165,0,52,0.82), rgba(0,0,0,0.96)), url('../images/gallery/instagram/instagram-10.jpg') center/cover;
}

.premium-hero__inner {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.premium-hero h1 {
    font-size: clamp(2.4rem, 7vw, 5.8rem);
    line-height: 0.95;
    max-width: 860px;
}

.premium-hero p {
    max-width: 720px;
    color: rgba(255,255,255,0.84);
    font-size: 1.05rem;
    line-height: 1.7;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.premium-card {
    padding: 1.4rem;
}

.premium-card h3 {
    margin-bottom: 0.55rem;
}

.premium-card p,
.premium-card li {
    color: var(--text-secondary);
    line-height: 1.65;
}

.premium-card ul {
    padding-left: 1.1rem;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.trust-strip div {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 1rem;
    background: rgba(255,255,255,0.04);
}

.digital-card {
    max-width: 380px;
    min-height: 230px;
    border-radius: 16px;
    padding: 1.4rem;
    color: white;
    background: linear-gradient(135deg, #A50034, #111 52%, #FFB300);
    box-shadow: 0 24px 70px rgba(0,0,0,0.35);
}

.digital-card__brand,
.digital-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.digital-card__brand img {
    width: 46px;
    height: 46px;
}

.digital-card__name {
    font-size: 1.7rem;
    font-weight: 900;
    margin: 2rem 0 1rem;
}

.digital-card__code {
    font-family: monospace;
    letter-spacing: 0.08em;
    margin-top: 1.5rem;
}

.sponsor-output {
    display: grid;
    gap: 0.35rem;
    margin-top: 1rem;
    color: var(--text-secondary);
}

.legal-page {
    max-width: 900px;
}

.legal-card {
    padding: 2.5rem;
    line-height: 1.75;
}

.legal-card h2 {
    margin-top: 2rem;
    margin-bottom: 0.7rem;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-stand {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .modal {
        max-height: calc(100dvh - 1rem);
        margin: 0.5rem;
    }

    .page-hero__title {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }
}

/* —— Subpage-Helfer: Check-Listen, Step-Nummern, Fakten-Tabelle —— */
.check-list { list-style: none; padding: 0; margin: 0.6rem 0 0; }
.check-list li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text-secondary); font-size: 0.93rem; line-height: 1.5; padding: 0.3rem 0; }
.check-list li i { color: var(--gs-gold); margin-top: 0.2rem; flex-shrink: 0; }

.step-num {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--grad-gold, linear-gradient(135deg, #ffb300, #ff8f00));
    color: #000; font-weight: 800; font-size: 1.15rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.9rem;
}

.facts-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.facts-table th, .facts-table td { text-align: left; padding: 0.7rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.95rem; vertical-align: top; }
.facts-table th { color: var(--gs-gold); font-weight: 700; width: 38%; }
.facts-table td { color: var(--text-secondary); }

/* —— Link-Karten ("Mehr vom Fanclub" auf der Startseite) — verhindern nackte Standard-Links —— */
a.glass-card, a.premium-card, a.link-card { text-decoration: none; color: inherit; }
.link-card { display: flex; flex-direction: column; transition: transform 0.2s ease, border-color 0.2s ease; }
.link-card:hover { transform: translateY(-4px); border-color: rgba(255, 179, 0, 0.4); }
.link-card h3 { color: #fff; }
.link-card p { color: var(--text-secondary); }
.link-card-icon { font-size: 1.7rem; color: var(--gs-gold); margin-bottom: 0.7rem; }
.link-card-go { margin-top: auto; padding-top: 0.9rem; display: flex; align-items: center; gap: 0.45rem; color: var(--gs-gold); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.03em; }
.link-card-arrow { font-size: 0.8rem; transition: transform 0.2s ease; }
.link-card:hover .link-card-arrow { transform: translateX(4px); }
