/**
 * ============================================
 * PROJEKT: site31-de (sport-als-berufung.de)
 * CSS ARCHITEKTUR: BEM (Block Element Modifier)
 * PALETTE: Stadium/Sport (field-green, stadium-white, energy-orange, track-blue)
 * EFFEKT: Glassmorphism (backdrop-filter, transparent cards)
 * TYPOGRAFIE: Inter + Roboto (Modern Sans)
 * KNOEPFE: 3D Effect (box-shadow depth, translateY)
 * ============================================
 */

* {
    box-sizing: border-box;
    max-width: 100%;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    width: 100% !important;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--stadium-white);
    background: var(--field-green);
}

.page-main {
    flex: 1 0 auto;
}

:root {
    /* Stadium/Sport Palette */
    --field-green: #1a472a;
    --stadium-white: #f5f5f5;
    --energy-orange: #e85d04;
    --track-blue: #0077b6;
    --pitch-dark: #0d2818;
    --line-white: rgba(255, 255, 255, 0.15);
    --accent-gold: #ffba08;

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --header-height: 70px;
}

@media (max-width: 600px) {
    :root { --header-height: 60px; }
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.is-hidden { display: none !important; }

/* ========== Layout ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ========== Header (BEM) ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(13, 40, 24, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--energy-orange);
    z-index: 1000;
}

.header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--stadium-white);
}

.header__brand { font-size: 1.25rem; font-weight: 700; font-family: var(--font-heading); }
.header__badge {
    background: var(--energy-orange);
    color: var(--pitch-dark);
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 6px;
}

.header__nav {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.nav-menu__link {
    color: var(--stadium-white);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.nav-menu__link:hover {
    background: var(--line-white);
    color: var(--energy-orange);
}
.nav-menu__link--active {
    background: var(--energy-orange);
    color: var(--pitch-dark);
}

.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: var(--energy-orange);
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
}
.header__burger span {
    width: 24px;
    height: 3px;
    background: var(--pitch-dark);
}

@media (max-width: 768px) {
    .header__burger { display: flex; }
    .header__nav {
        position: fixed;
        top: calc(var(--header-height) - 1px);
        left: 0;
        right: 0;
        background: rgba(13, 40, 24, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem;
        flex-direction: column;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        display: none;
        z-index: 999;
        border-bottom: 2px solid var(--energy-orange);
    }
    .header__nav.is-open { display: flex; }
    .nav-menu { flex-direction: column; align-items: stretch; }
}

/* ========== Modals ========== */
.age-modal {
    position: fixed;
    inset: 0;
    background: rgba(13, 40, 24, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.age-modal__content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line-white);
    border-radius: 12px;
    max-width: 420px;
    width: 100%;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.age-modal__title { margin: 0 0 1rem; color: var(--energy-orange); font-size: 1.25rem; }
.age-modal__text { margin: 0.5rem 0; color: var(--stadium-white); }
.age-modal__buttons { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
.age-modal__warning { font-size: 0.85rem; margin-top: 1rem !important; color: var(--accent-gold); }

.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background: rgba(13, 40, 24, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid var(--track-blue);
    border-radius: 12px;
    padding: 1rem;
    z-index: 9999;
}
.cookie-banner p { margin: 0 0 0.75rem; color: var(--stadium-white); font-size: 0.9rem; }
.cookie-banner a { color: var(--track-blue); }

/* ========== Buttons (3D Effect) ========== */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-body);
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.1s ease;
    text-align: center;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
}
.btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.btn--primary {
    background: var(--energy-orange);
    color: #ffffff;
}
.btn--primary:hover { background: #f48c06; color: #ffffff; }

.btn--secondary {
    background: var(--track-blue);
    color: var(--stadium-white);
}
.btn--secondary:hover { background: #0096c7; }

.btn--outline {
    background: transparent;
    color: var(--stadium-white);
    border: 2px solid var(--stadium-white);
    box-shadow: none;
}
.btn--outline:hover {
    background: var(--stadium-white);
    color: var(--pitch-dark);
}

.btn--large { padding: 0.85rem 1.75rem; font-size: 1.05rem; }
.btn--small { padding: 0.4rem 0.8rem; font-size: 0.9rem; }

/* ========== Hero ========== */
.hero {
    padding-top: 120px;
    min-height: calc(100vh - var(--header-height));
    background: var(--field-green);
    background-image: radial-gradient(ellipse at 20% 30%, rgba(232, 93, 4, 0.12) 0%, transparent 50%),
                      radial-gradient(ellipse at 80% 70%, rgba(0, 119, 182, 0.08) 0%, transparent 50%);
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero__inner { max-width: 700px; padding: 2rem 1rem; }
.hero__title { font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--stadium-white); margin: 0 0 0.5rem; line-height: 1.2; }
.hero__title-accent { color: var(--energy-orange); }
.hero__subtitle { color: var(--stadium-white); opacity: 0.9; margin: 0 0 1.5rem; font-size: 1.05rem; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 768px) {
    .hero { padding-top: 100px; min-height: calc(100vh - 60px); }
}

/* ========== Sections ========== */
.section {
    padding: 3rem 0;
    background: var(--field-green);
    border-top: 1px solid var(--line-white);
}

.section__title {
    text-align: center;
    color: var(--energy-orange);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 0.5rem;
}
.section__desc {
    text-align: center;
    color: var(--stadium-white);
    opacity: 0.9;
    margin: 0 0 2rem;
}

/* ========== Games grid ========== */
.games-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    flex: 0 0 auto;
    width: clamp(280px, 25vw, 350px);
    max-width: 350px;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.game-card__img-wrap {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
}
.game-card__img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
}
.game-card__body { padding: 1.25rem; }
.game-card__title { color: var(--stadium-white); margin: 0 0 0.5rem; font-size: 1.2rem; }
.game-card__desc { color: var(--stadium-white); opacity: 0.85; margin: 0 0 1rem; font-size: 0.95rem; line-height: 1.5; }
.game-card__btn { width: 100%; }

@media (max-width: 768px) {
    .games-grid { flex-direction: column; align-items: center; }
    .game-card { width: 100%; max-width: 400px; }
}

/* ========== Testimonials ========== */
.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    flex: 1 1 280px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.testimonial-card__text { color: var(--stadium-white); margin: 0 0 0.5rem; font-style: italic; }
.testimonial-card__author { color: var(--energy-orange); font-size: 0.9rem; }

/* ========== Leaderboard ========== */
.leaderboard-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.leaderboard-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line-white);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 200px;
    max-width: 320px;
}
.leaderboard-card__rank {
    font-weight: 700;
    color: var(--energy-orange);
    font-size: 1.25rem;
    min-width: 2rem;
}
.leaderboard-card__name { flex: 1; color: var(--stadium-white); }
.leaderboard-card .btn { flex-shrink: 0; }

/* ========== Benefits ========== */
.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    flex: 1 1 280px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line-white);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.benefit-card__icon { font-size: 2rem; margin-bottom: 0.5rem; }
.benefit-card__title { color: var(--energy-orange); margin: 0 0 0.5rem; }
.benefit-card__text { color: var(--stadium-white); opacity: 0.9; margin: 0; font-size: 0.95rem; }

/* ========== FAQ ========== */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line-white);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}
.faq-item__question {
    width: 100%;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--stadium-white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item__question span { color: var(--energy-orange); font-size: 1.25rem; transition: transform 0.2s; }
.faq-item.is-open .faq-item__question span { transform: rotate(45deg); }
.faq-item__answer { display: none; padding: 0 1.25rem 1rem; }
.faq-item__answer p { margin: 0; color: var(--stadium-white); opacity: 0.9; line-height: 1.6; }
.faq-item.is-open .faq-item__answer { display: block; }

/* ========== Disclaimer ========== */
.disclaimer {
    background: linear-gradient(135deg, var(--energy-orange) 0%, #dc2f02 100%);
    padding: 2rem 0;
    border-top: 3px solid var(--accent-gold);
    border-bottom: 3px solid var(--accent-gold);
}
.disclaimer__title { color: var(--pitch-dark); margin: 0 0 1rem; font-size: 1.1rem; text-align: center; }
.disclaimer__text { color: var(--pitch-dark); margin: 0.5rem 0; font-size: 0.95rem; }
.disclaimer__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}
.disclaimer__badge {
    background: var(--pitch-dark);
    color: var(--stadium-white);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}
.compliance-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}
.compliance-logos a { display: flex; align-items: center; }
.compliance-logos__img {
    height: 35px !important;
    width: auto !important;
    max-width: 120px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 8px;
    object-fit: contain;
}
.compliance-logos__img:hover { opacity: 1; }

/* ========== Footer ========== */
.footer {
    background: var(--pitch-dark);
    padding: 2rem 0 1rem;
    border-top: 2px solid var(--energy-orange);
}
.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}
.footer__title { color: var(--energy-orange); margin: 0 0 1rem; font-size: 1rem; }
.footer__text { color: var(--stadium-white); opacity: 0.9; margin: 0; font-size: 0.9rem; }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: 0.5rem; }
.footer__links a { color: var(--stadium-white); opacity: 0.9; }
.footer__links a:hover { color: var(--energy-orange); }
.footer__bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--line-white);
    color: var(--stadium-white);
    font-size: 0.85rem;
    opacity: 0.9;
}
.footer__bottom p { margin: 0.25rem 0; }

/* ========== Inner pages content ========== */
.inner-content {
    padding-top: 120px;
    padding-bottom: 2rem;
    min-height: 60vh;
}
.inner-content .container { max-width: 800px; }
.inner-content .section__title { text-align: left; margin-bottom: 1rem; }
.inner-content p { color: var(--stadium-white); opacity: 0.9; line-height: 1.6; margin-bottom: 1rem; }
.inner-content a { color: var(--energy-orange); }
.inner-content a:hover { text-decoration: underline; }
.inner-content a.btn--primary,
.inner-content a.btn--primary:hover { color: #ffffff; text-decoration: none; }
.inner-content a.btn--secondary,
.inner-content a.btn--secondary:hover { color: var(--stadium-white); text-decoration: none; }

@media (max-width: 768px) {
    .inner-content { padding-top: 100px; }
}
