/**
 * ============================================
 * PROJEKT: site28-de (Grey-Is-Green.com)
 * CSS ARCHITEKTUR: BEM (Block Element Modifier)
 * PALETTE: Eco/Nature (forest-green, earth, sage)
 * EFFEKT: Gradient Mesh
 * TYPOGRAFIE: Quicksand + Source Sans Pro
 * KNOEPFE: Gradient Fill
 * ============================================
 */

* {
    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;
}

.page-main {
    flex: 1 0 auto;
}

:root {
    /* Eco/Nature Palette */
    --forest-green: #2d5a27;
    --earth-brown: #5c4033;
    --leaf-light: #8fbc8f;
    --moss-dark: #1a3d1a;
    --sage-gray: #9caa9c;
    --accent-gold: #c9a227;
    --paper-white: #f8faf8;
    --ink-dark: #1a2e1a;

    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Source Sans Pro', sans-serif;
    --header-height: 70px;
}

@media (max-width: 600px) {
    :root { --header-height: 60px; }
}

body {
    font-family: var(--font-body);
    color: var(--ink-dark);
    background: var(--paper-white);
    line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.hidden { display: none !important; }

/* ========== Page Header (BEM) ========== */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(135deg, var(--moss-dark) 0%, var(--forest-green) 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}

.page-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;
}

.page-header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--paper-white);
}

.page-header__brand { font-size: 1.25rem; font-weight: 700; }
.page-header__badge {
    background: var(--leaf-light);
    color: var(--moss-dark);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
}

.page-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(--paper-white);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: background 0.2s;
}
.nav-menu__link:hover { background: rgba(255,255,255,0.15); }
.nav-menu__link--active { background: rgba(255,255,255,0.2); }

.page-header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.page-header__burger span {
    width: 24px;
    height: 3px;
    background: var(--paper-white);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .page-header__burger { display: flex; }
    .page-header__nav {
        position: fixed;
        top: calc(var(--header-height) - 1px);
        left: 0;
        right: 0;
        background: var(--moss-dark);
        padding: 1rem;
        flex-direction: column;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        display: none;
        z-index: 999;
    }
    .page-header__nav.active { display: flex; }
    .nav-menu { flex-direction: column; align-items: stretch; }
}

/* ========== Age Modal ========== */
.age-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.age-modal__content {
    background: var(--paper-white);
    border-radius: 16px;
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.age-modal__header h2 { margin: 0 0 1rem; color: var(--moss-dark); }
.age-modal__body p { margin: 0.5rem 0; }
.age-modal__buttons { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.age-modal__warning { font-size: 0.9rem; color: var(--earth-brown); margin-top: 1rem !important; }

/* ========== Cookie Banner ========== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 340px;
    background: linear-gradient(135deg, var(--moss-dark), var(--forest-green));
    color: var(--paper-white);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.cookie-banner a { color: var(--leaf-light); text-decoration: underline; }

@media (max-width: 480px) {
    .cookie-banner { left: 10px; right: 10px; max-width: none; }
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn--primary {
    background: linear-gradient(135deg, var(--forest-green), var(--leaf-light));
    color: var(--paper-white);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(45,90,39,0.4); }
.btn--secondary { background: var(--sage-gray); color: var(--ink-dark); }
.btn--outline {
    background: transparent;
    border: 2px solid var(--forest-green);
    color: var(--forest-green);
}
.btn--outline:hover { background: var(--forest-green); color: var(--paper-white); }
.btn--large { padding: 0.75rem 1.5rem; font-size: 1rem; }

/* ========== Hero ========== */
.hero {
    padding-top: 120px;
    min-height: calc(100vh - var(--header-height));
    background: linear-gradient(160deg, var(--leaf-light) 0%, var(--paper-white) 40%, var(--sage-gray) 100%);
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero__inner { max-width: 640px; padding: 2rem 1rem; }
.hero__title { font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--moss-dark); margin: 0 0 0.5rem; }
.hero__title-accent { color: var(--forest-green); }
.hero__subtitle { font-size: 1.1rem; color: var(--earth-brown); margin: 0 0 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

@media (max-width: 768px) {
    .hero { padding-top: 100px; min-height: auto; padding-bottom: 2rem; }
}

/* ========== Container ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.section-title { text-align: center; color: var(--moss-dark); margin: 0 0 0.5rem; font-size: 1.75rem; }
.section-desc { text-align: center; color: var(--earth-brown); margin: 0 0 2rem; }

/* ========== Blog / Guides / Reviews content sections ========== */
.blog-content-section,
.guides-content-section,
.reviews-content-section {
    padding: calc(var(--header-height) + 3rem) 1rem 3rem;
    background: var(--paper-white);
    flex: 1 0 auto;
}
.blog-content-section .container,
.guides-content-section .container,
.reviews-content-section .container {
    max-width: 1200px;
    margin: 0 auto;
}
.blog-articles-grid,
.guides-list-grid,
.reviews-list-grid {
    display: flex;
    gap: 1.5rem 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}
.blog-article-card,
.guide-item-card,
.review-item-card {
    flex: 1 1 280px;
    max-width: 350px;
    background: var(--paper-white);
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid var(--sage-gray);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.blog-article-card:hover,
.guide-item-card:hover,
.review-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.blog-article-card__icon,
.guide-item-card__icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}
.blog-article-card h3,
.guide-item-card h3,
.review-item-card h3 {
    color: var(--moss-dark);
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
}
.blog-article-card p,
.guide-item-card p,
.review-item-card p {
    color: var(--earth-brown);
    line-height: 1.6;
    margin: 0 0 1rem;
    font-size: 0.95rem;
}
.review-item-card__img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 1rem;
    background: var(--sage-gray);
    border-radius: 12px;
    padding: 0.5rem;
}
.review-item-card__rating {
    text-align: center;
    color: var(--accent-gold);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.blog-article-card .btn,
.guide-item-card .btn,
.review-item-card .btn {
    width: 100%;
    margin-top: 0.5rem;
    text-align: center;
}

/* ========== Article / Guide / Review inner page content ========== */
.content-page-section {
    padding: calc(var(--header-height) + 2rem) 1rem 3rem;
    flex: 1 0 auto;
    background: var(--paper-white);
}
.content-page-section .content-inner {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.75;
}
.content-page-section .content-inner h1 {
    color: var(--moss-dark);
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
}
.content-page-section .content-inner h2 {
    color: var(--forest-green);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.25rem;
    border-bottom: 2px solid var(--leaf-light);
    padding-bottom: 0.35rem;
}
.content-page-section .content-inner p {
    margin: 0.75rem 0;
    color: var(--earth-brown);
}
.content-page-section .breadcrumb {
    max-width: 720px;
    margin: 0 auto 1rem;
    font-size: 0.9rem;
}
.content-page-section .breadcrumb a { color: var(--forest-green); }
.content-page-section .article-meta {
    color: var(--earth-brown);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
/* Page main content block (e.g. responsible-play, about) */
.page-main .content-inner {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.75;
}
.page-main .content-inner h2 {
    color: var(--forest-green);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.25rem;
    border-bottom: 2px solid var(--leaf-light);
    padding-bottom: 0.35rem;
}
.page-main .content-inner p,
.page-main .content-inner ul {
    margin: 0.75rem 0;
    color: var(--earth-brown);
}
.page-main .content-inner ul {
    padding-left: 1.5rem;
}
.page-main .content-inner li {
    margin: 0.5rem 0;
}
.page-main .info-box {
    background: rgba(45, 90, 39, 0.08);
    border-left: 4px solid var(--forest-green);
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: 8px;
}
.page-main .info-box p { margin: 0; }
.page-main .warning-box {
    background: rgba(201, 162, 39, 0.12);
    border-left: 4px solid var(--accent-gold);
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: 8px;
}
.page-main .warning-box p { margin: 0; }
.page-main .resource-links {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}
.page-main .resource-links li { margin: 0.75rem 0; }
.page-main .resource-links a {
    color: var(--forest-green);
    font-weight: 600;
}
.page-main .resource-links a:hover { text-decoration: underline; }

.content-list { list-style: none; padding: 0; margin: 0 auto; max-width: 560px; }
.content-list li { margin: 0.75rem 0; padding: 0.5rem 0; border-bottom: 1px solid var(--sage-gray); }
.content-list a { color: var(--forest-green); font-weight: 600; }
.content-list a:hover { text-decoration: underline; }

/* ========== Account page: tabs & forms ========== */
.account-tabs { margin-top: 1.5rem; }
.account-tabs__buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.account-tabs__btn {
    padding: 0.6rem 1.25rem;
    border: 2px solid var(--sage-gray);
    background: var(--paper-white);
    color: var(--moss-dark);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.account-tabs__btn:hover {
    border-color: var(--forest-green);
    color: var(--forest-green);
}
.account-tabs__btn--active {
    background: linear-gradient(135deg, var(--forest-green), var(--leaf-light));
    border-color: var(--forest-green);
    color: var(--paper-white);
}
.account-tabs__panel { display: none; }
.account-tabs__panel.account-tabs__panel--active { display: block; }
.account-form-block { max-width: 480px; margin: 0 auto; }
.account-form__row { margin-bottom: 1.25rem; }
.account-form__label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: var(--moss-dark);
    font-size: 0.95rem;
}
.account-form__input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--sage-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--paper-white);
    box-sizing: border-box;
}
.account-form__input:focus {
    outline: none;
    border-color: var(--forest-green);
    box-shadow: 0 0 0 2px rgba(45, 90, 39, 0.15);
}
.account-form__textarea { min-height: 120px; resize: vertical; }
.account-form__row--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.account-form__checkbox { margin-top: 0.35rem; }
.account-form__label-inline { font-size: 0.9rem; color: var(--earth-brown); }
.account-form__label-inline a { color: var(--forest-green); }
.account-form__submit { width: 100%; margin-top: 0.5rem; }
.account-form__success {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(45, 90, 39, 0.12);
    border-left: 4px solid var(--forest-green);
    border-radius: 8px;
    color: var(--moss-dark);
    font-weight: 600;
}
.account-form__success.hidden { display: none !important; }
.hidden { display: none !important; }

/* ========== Games Grid ========== */
.games-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.game-card {
    flex: 0 0 auto;
    width: clamp(280px, 25vw, 350px);
    max-width: 350px;
    min-width: 280px;
    background: var(--paper-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 1px solid var(--sage-gray);
    transition: transform 0.2s, box-shadow 0.2s;
}
.game-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }

.game-card__img-wrap { padding: 1rem; background: linear-gradient(180deg, var(--leaf-light) 0%, var(--paper-white) 100%); }
.game-card__img { width: 100%; height: auto; border-radius: 8px; display: block; }
.game-card__body { padding: 1rem 1.25rem; }
.game-card__title { margin: 0 0 0.5rem; color: var(--moss-dark); font-size: 1.15rem; }
.game-card__desc { margin: 0 0 1rem; font-size: 0.9rem; color: var(--earth-brown); line-height: 1.5; }
.game-card__btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, var(--forest-green), var(--leaf-light));
    color: var(--paper-white);
    border-radius: 8px;
    font-weight: 600;
    transition: opacity 0.2s;
}
.game-card__btn:hover { opacity: 0.9; }

@media (max-width: 768px) {
    .games-grid { flex-direction: column; align-items: center; }
    .game-card { width: 100%; max-width: 400px; }
}

/* ========== Testimonials ========== */
.testimonials-section { background: linear-gradient(180deg, var(--paper-white) 0%, var(--sage-gray) 15%, var(--paper-white) 30%); padding: 2rem 1rem; }
.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
.testimonial-card {
    flex: 1 1 280px;
    max-width: 320px;
    padding: 1.5rem;
    background: var(--paper-white);
    border-radius: 12px;
    border: 1px solid var(--sage-gray);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.testimonial-card__text { margin: 0 0 0.75rem; font-style: italic; color: var(--earth-brown); }
.testimonial-card__author { font-size: 0.9rem; color: var(--moss-dark); }

/* ========== Leaderboard ========== */
.leaderboard-section { padding: 2rem 1rem; background: var(--paper-white); }
.leaderboard-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}
.leaderboard-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 180px;
    max-width: 280px;
    padding: 1rem 1.25rem;
    background: var(--paper-white);
    border: 1px solid var(--sage-gray);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.leaderboard-card__rank { font-weight: 700; font-size: 1.25rem; color: var(--forest-green); min-width: 1.5rem; }
.leaderboard-card__name { flex: 1; font-weight: 600; color: var(--moss-dark); }
.btn--small { padding: 0.4rem 0.8rem; font-size: 0.9rem; }

/* ========== Benefits ========== */
.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-card {
    flex: 1 1 280px;
    max-width: 320px;
    padding: 1.5rem;
    background: var(--paper-white);
    border-radius: 12px;
    border: 1px solid var(--sage-gray);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.benefit-card__icon { font-size: 2rem; margin-bottom: 0.5rem; }
.benefit-card__title { margin: 0 0 0.5rem; color: var(--forest-green); }
.benefit-card__text { margin: 0; font-size: 0.95rem; color: var(--earth-brown); }

/* ========== FAQ ========== */
.faq-list { max-width: 640px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--sage-gray); }
.faq-item__question {
    width: 100%;
    padding: 1rem 0;
    text-align: left;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--moss-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item__icon { font-size: 1.25rem; color: var(--forest-green); }
.faq-item__answer { display: none; padding: 0 0 1rem; }
.faq-item__answer.active { display: block; }
.faq-item__answer p { margin: 0; color: var(--earth-brown); }

/* ========== Disclaimer ========== */
.disclaimer-section {
    background: linear-gradient(135deg, var(--moss-dark), var(--forest-green));
    color: var(--paper-white);
    padding: 2rem 1rem;
}
.disclaimer-section__title { text-align: center; margin: 0 0 1rem; font-size: 1.1rem; }
.disclaimer-section__text { margin: 0.5rem 0; font-size: 0.95rem; }
.disclaimer-section__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0;
}
.badge {
    background: rgba(255,255,255,0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.compliance-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.compliance-logos a { display: flex; align-items: center; }
.compliance-logos__img {
    height: 35px !important;
    width: auto !important;
    max-width: 120px !important;
    background: rgba(255,255,255,0.95);
    padding: 6px;
    border-radius: 8px;
}
/* Gambling Therapy: чуть больше места для читаемости текста */
.compliance-logos__img--gambling-therapy {
    max-width: 140px !important;
    padding: 8px;
}

/* ========== Footer ========== */
.page-footer {
    background: var(--ink-dark);
    color: var(--paper-white);
    padding: 2rem 1rem 1rem;
}
.page-footer__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 2rem;
    justify-content: center;
}
.page-footer__col { flex: 1 1 200px; max-width: 280px; }
.page-footer__title { margin: 0 0 0.75rem; font-size: 1rem; }
.page-footer__text { margin: 0; font-size: 0.9rem; opacity: 0.9; }
.page-footer__links { list-style: none; margin: 0; padding: 0; }
.page-footer__links li { margin: 0.4rem 0; }
.page-footer__links a { color: var(--leaf-light); }
.page-footer__links a:hover { text-decoration: underline; }
.page-footer__bottom { text-align: center; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.2); }
.page-footer__copyright { margin: 0 0 0.5rem; font-size: 0.85rem; opacity: 0.9; }
.page-footer__disclaimer { margin: 0; font-size: 0.9rem; font-weight: 600; }
