/* ============================================
   PROJECT: Rebenhain.de - Elegant Nature Theme
   
   CSS ARCHITECTURE: SMACSS (Scalable and Modular)
   PALETTE: Forest Elegance (emerald, golden, river, stone, moss, pearl)
   EFFECT: Animated Gradients (smooth background transitions)
   TYPOGRAPHY: Elegant Serif (Playfair Display + Lato)
   BUTTONS: Flat Style with smooth transitions
   ============================================ */

/* ============================================
   BASE: Core Element Styles
   ============================================ */

:root {
    /* Forest Elegance Palette */
    --emerald-forest: #2E7D32;
    --golden-autumn: #FF8F00;
    --river-blue: #1976D2;
    --stone-gray: #607D8B;
    --moss-green: #7CB342;
    --pearl-white: #FAFAFA;
    
    /* Accents */
    --sunset-orange: #F57C00;
    --lake-cyan: #00ACC1;
    --bark-brown: #5D4037;
    
    /* Text */
    --text-dark: #212121;
    --text-light: #757575;
    --text-white: #FFFFFF;
    
    /* System */
    --success-color: #4CAF50;
    --danger-color: #F44336;
    --info-color: #2196F3;
    --warning-color: #FF9800;
    
    /* Layout */
    --header-height: 70px;
    --container-max: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    max-width: 100%;
}

html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #e0f2f1 0%, #fff3e0 50%, #e1f5fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    word-wrap: break-word;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    margin: 0 0 1rem 0;
}

a {
    color: var(--river-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--emerald-forest);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    border: none;
    outline: none;
}

/* ============================================
   LAYOUT: Structural Components
   ============================================ */

.layout-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.layout-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: var(--header-height);
}

.layout-header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.layout-nav {
    display: flex;
}

.layout-nav__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.layout-nav__link {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.layout-nav__link:hover,
.layout-nav__link.state-active {
    color: var(--emerald-forest);
}

.layout-nav__link.state-active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--emerald-forest);
}

.layout-nav.is-mobile {
    display: none;
}

@media (max-width: 768px) {
    .layout-nav.is-desktop {
        display: none;
    }
    
    .layout-nav.is-mobile {
        display: flex;
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--pearl-white);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        z-index: 1001;
        flex-direction: column;
        padding: 2rem 1.5rem;
        transition: left 0.3s ease;
    }
    
    .layout-nav.is-mobile.state-active {
        left: 0;
    }
    
    .layout-nav.is-mobile .layout-nav__list {
        flex-direction: column;
        gap: 1rem;
    }
}

.layout-footer {
    background: linear-gradient(135deg, var(--emerald-forest), var(--moss-green));
    color: var(--text-white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.layout-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.layout-footer__title {
    color: var(--golden-autumn);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.layout-footer__text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.layout-footer__company {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.6;
}

.layout-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.layout-footer__list li {
    margin-bottom: 0.5rem;
}

.layout-footer__list a {
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.layout-footer__list a:hover {
    color: var(--golden-autumn);
    padding-left: 5px;
}

.layout-footer__hotline {
    color: var(--golden-autumn);
    font-weight: 700;
    margin: 1rem 0;
}

.layout-footer__hotline a {
    color: var(--golden-autumn);
    font-weight: 700;
}

.layout-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.layout-footer__copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* ============================================
   MODULES: Reusable Components
   ============================================ */

.module-logo {
    display: flex;
    align-items: center;
}

.module-logo__text {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--emerald-forest);
    letter-spacing: -0.5px;
}

.module-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    padding: 10px;
    cursor: pointer;
    z-index: 1002;
}

.module-burger__line {
    width: 25px;
    height: 3px;
    background: var(--emerald-forest);
    transition: var(--transition);
}

.module-burger.state-active .module-burger__line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.module-burger.state-active .module-burger__line:nth-child(2) {
    opacity: 0;
}

.module-burger.state-active .module-burger__line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .module-burger {
        display: flex;
    }
}

.module-hero {
    padding: 150px 0 100px;
    text-align: center;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(255, 143, 0, 0.1));
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
}

.module-hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.module-hero__title {
    color: var(--emerald-forest);
    margin-bottom: 1.5rem;
}

.module-hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.module-hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.module-section__title {
    text-align: center;
    color: var(--emerald-forest);
    margin-bottom: 3rem;
}

.module-benefits {
    padding: 4rem 0;
}

.module-benefits__grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.module-benefit-card {
    flex: 0 0 auto;
    width: clamp(280px, 30%, 350px);
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
}

.module-benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 25px rgba(46, 125, 50, 0.2);
}

.module-benefit-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.module-benefit-card__title {
    color: var(--emerald-forest);
    margin-bottom: 1rem;
}

.module-benefit-card__text {
    color: var(--text-light);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .module-benefits__grid {
        flex-direction: column;
        align-items: center;
    }
    
    .module-benefit-card {
        width: 100%;
        max-width: 400px;
    }
}

.module-games {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.8);
}

.module-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;
}

.module-game-card {
    flex: 0 0 auto;
    width: clamp(280px, 25vw, 350px);
    max-width: 350px;
    min-width: 280px;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.module-game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 25px rgba(46, 125, 50, 0.2);
}

.module-game-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.module-game-card__info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.module-game-card__title {
    color: var(--emerald-forest);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.module-game-card__description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.module-game-card__rating {
    color: var(--golden-autumn);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .module-games__grid {
        flex-direction: column;
        align-items: center;
    }
    
    .module-game-card {
        width: 100%;
        max-width: 400px;
    }
}

.module-testimonials {
    padding: 4rem 0;
}

.module-testimonials__grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.module-testimonial-card {
    flex: 0 0 auto;
    width: clamp(300px, 45%, 500px);
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.module-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.15);
}

.module-testimonial-card__rating {
    color: var(--golden-autumn);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.module-testimonial-card__text {
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.module-testimonial-card__author {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .module-testimonials__grid {
        flex-direction: column;
        align-items: center;
    }
    
    .module-testimonial-card {
        width: 100%;
        max-width: 500px;
    }
}

.module-faq {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.8);
}

.module-faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.module-faq-item {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.module-faq-item__question {
    width: 100%;
    background: transparent;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--emerald-forest);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.module-faq-item__question:hover {
    background: rgba(46, 125, 50, 0.05);
}

.module-faq-item__icon {
    font-size: 1.5rem;
    color: var(--golden-autumn);
    transition: var(--transition);
}

.module-faq-item.state-active .module-faq-item__icon {
    transform: rotate(45deg);
}

.module-faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.module-faq-item.state-active .module-faq-item__answer {
    max-height: 500px;
}

.module-faq-item__answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.module-disclaimer {
    padding: 3rem 0;
    background: linear-gradient(135deg, #fff3e0, #ffecb3);
    border-top: 4px solid var(--golden-autumn);
    border-bottom: 4px solid var(--golden-autumn);
}

.module-disclaimer__content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.module-disclaimer__title {
    color: var(--danger-color);
    margin-bottom: 1.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.module-disclaimer__content p {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.module-disclaimer__badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.module-compliance {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.module-compliance__link {
    display: block;
    transition: var(--transition);
}

.module-compliance__link:hover {
    transform: scale(1.05);
}

.module-compliance__logo {
    height: 40px !important;
    width: auto !important;
    max-width: 120px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 8px;
    opacity: 0.9;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.module-compliance__logo:hover {
    opacity: 1;
    border-color: var(--golden-autumn);
    box-shadow: 0 0 10px rgba(255, 143, 0, 0.3);
}

.module-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.module-cookie {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background: linear-gradient(135deg, var(--emerald-forest), var(--moss-green));
    border: 2px solid var(--golden-autumn);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
    color: white;
}

.module-cookie p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.module-cookie__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.module-cookie__link {
    color: var(--golden-autumn);
    font-size: 0.85rem;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .module-cookie {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }
}

.modal-age {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-age__content {
    background: white;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-age__header {
    background: linear-gradient(135deg, var(--emerald-forest), var(--moss-green));
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-age__header h2 {
    margin: 0;
    font-size: 1.75rem;
}

.modal-age__body {
    padding: 2rem;
    text-align: center;
}

.modal-age__body p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.modal-age__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.modal-age__warning {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* ============================================
   STATE: State-based Styles
   ============================================ */

.state-hidden {
    display: none !important;
}

.state-active {
    /* Applied via JavaScript */
}

/* ============================================
   THEME: Button Styles
   ============================================ */

.button-primary,
.button-secondary {
    padding: 12px 32px;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.button-primary {
    background: var(--emerald-forest);
    color: white;
}

.button-primary:hover {
    background: var(--moss-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.button-secondary {
    background: transparent;
    color: var(--emerald-forest);
    border: 2px solid var(--emerald-forest);
}

.button-secondary:hover {
    background: var(--emerald-forest);
    color: white;
}

.button-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.theme-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
}

.theme-success {
    background: var(--success-color);
    color: white;
}

.theme-danger {
    background: var(--danger-color);
    color: white;
}

.theme-info {
    background: var(--info-color);
    color: white;
}

.theme-warning {
    background: var(--warning-color);
    color: white;
}

/* ============================================
   RESPONSIVE: Mobile Adjustments
   ============================================ */

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .module-hero {
        padding: 120px 0 60px;
    }
    
    .module-hero__title {
        font-size: 2rem;
    }
    
    .module-hero__subtitle {
        font-size: 1rem;
    }
    
    .module-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .button-primary,
    .button-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .layout-container {
        padding: 0 1rem;
    }
}
