/* ============================================
   УНИКАЛИЗАЦИЯ ПРОЕКТА: site24-de (derstadtbestes.de)
   
   CSS АРХИТЕКТУРА: BEM (Block Element Modifier)
   ПАЛИТРА: Vintage Collection (retro-radio theme)
   ЭФФЕКТ: Brutalism (bold, contrast, raw design)
   ТИПОГРАФИКА: Technical (Space Mono + IBM Plex Sans)
   КНОПКИ: Glitch Effect
   HTML СТРУКТУРА: Semantic
   JS NAMING: camelCase
   ============================================ */

/* ============================================
   CSS VARIABLES - VINTAGE COLLECTION PALETTE
   ============================================ */
:root {
    /* Vintage Radio Theme Colors */
    --vintage-wood: #8b6f47;
    --radio-brass: #b8860b;
    --retro-cream: #f5e6d3;
    --sepia-brown: #704214;
    --antique-gold: #cd853f;
    --vintage-black: #1a1a1a;
    --warm-beige: #e8dcc6;
    --rust-orange: #c4621a;
    
    /* Brutalism Accents */
    --brutal-red: #ff0000;
    --brutal-blue: #0000ff;
    --brutal-yellow: #ffff00;
    
    /* Typography */
    --font-heading: 'Space Mono', monospace;
    --font-body: 'IBM Plex Sans', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Header */
    --header-height: 70px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--vintage-black);
    background-color: var(--retro-cream);
    word-wrap: break-word;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 2rem);
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--radio-brass);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--rust-orange);
}

/* ============================================
   HEADER - BEM STRUCTURE
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--vintage-black);
    border-bottom: 5px solid var(--brutal-yellow);
    z-index: 1000;
    height: var(--header-height);
    box-shadow: 0 10px 0 var(--brutal-red);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--spacing-md);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--retro-cream);
    text-transform: uppercase;
}

.logo-text span {
    color: var(--brutal-yellow);
}

.free-badge {
    background: var(--brutal-red);
    color: white;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: bold;
    border: 2px solid var(--brutal-yellow);
    transform: rotate(-2deg);
}

/* Navigation - BEM */
.main-nav {
    display: flex;
    flex: 1;
    justify-content: flex-start;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-link {
    color: var(--retro-cream);
    font-weight: 600;
    padding: 8px 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: inline-block;
    text-align: left;
    white-space: normal;
    line-height: 1.3;
    min-width: fit-content;
    box-sizing: border-box;
    position: relative;
    word-break: normal;
    text-indent: 0;
    margin: 0;
    vertical-align: middle;
    hyphens: auto;
}

.nav-link:hover,
.nav-link.active {
    border: 2px solid var(--brutal-yellow) !important;
    background: var(--vintage-black) !important;
    color: var(--brutal-yellow) !important;
    outline: none;
    box-shadow: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 3px solid var(--brutal-yellow);
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--brutal-yellow);
    display: block;
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION - BRUTALISM STYLE
   ============================================ */
.hero {
    padding-top: calc(var(--header-height) + 50px);
    min-height: calc(100vh - var(--header-height));
    background: var(--retro-cream);
    border: 10px solid var(--vintage-black);
    margin: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: scroll;
}

.hero::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--brutal-red);
    z-index: -1;
    transform: rotate(1deg);
}

.hero-content {
    max-width: 800px;
    text-align: center;
    padding: var(--spacing-xl);
    background: white;
    border: 5px solid var(--vintage-black);
    box-shadow: 15px 15px 0 var(--brutal-blue);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--vintage-black);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--sepia-brown);
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   BUTTONS - GLITCH EFFECT
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    border: 4px solid var(--vintage-black);
    background: var(--brutal-yellow);
    color: var(--vintage-black);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
    font-size: 1rem;
}

.btn:hover {
    animation: glitch 0.3s infinite;
    background: var(--brutal-red);
    color: white;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--vintage-black);
}

.btn:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0 var(--vintage-black);
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(2px, 2px); }
}

.btn--primary {
    background: var(--brutal-yellow);
    color: var(--vintage-black);
}

.btn--secondary {
    background: var(--vintage-black);
    color: var(--brutal-yellow);
    border-color: var(--brutal-yellow);
}

/* ============================================
   GAMES SECTION - BEM
   ============================================ */
.games-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--warm-beige);
    border-top: 10px solid var(--vintage-black);
}

.games-section__title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--vintage-black);
    margin-bottom: var(--spacing-xl);
    text-transform: uppercase;
    border: 5px solid var(--vintage-black);
    padding: var(--spacing-md);
    background: var(--brutal-yellow);
    box-shadow: 10px 10px 0 var(--brutal-red);
}

.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: white;
    border: 5px solid var(--vintage-black);
    box-shadow: 10px 10px 0 var(--brutal-blue);
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.game-card:hover {
    transform: rotate(1deg) translateY(-5px);
    box-shadow: 15px 15px 0 var(--brutal-red);
}

.game-card__image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 5px solid var(--vintage-black);
}

.game-card__content {
    padding: var(--spacing-md);
}

.game-card__title {
    font-size: 1.5rem;
    color: var(--vintage-black);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    line-height: 1.2;
}

.game-card__title span {
    flex: 1;
    min-width: 0;
}

.game-card__logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    border: 3px solid var(--vintage-black);
    background: white;
    padding: 4px;
    box-sizing: border-box;
    display: block;
}

.game-card__description {
    color: var(--sepia-brown);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.game-card__button {
    width: 100%;
    text-align: center;
}

/* ============================================
   MODAL - BRUTALISM STYLE
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--retro-cream);
    border: 10px solid var(--vintage-black);
    box-shadow: 20px 20px 0 var(--brutal-red);
    max-width: 500px;
    width: 90%;
    padding: var(--spacing-xl);
    transform: rotate(-1deg);
}

.modal-header h2 {
    color: var(--vintage-black);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
}

.modal-body {
    color: var(--sepia-brown);
}

.modal-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    justify-content: center;
}

/* ============================================
   COOKIE CONSENT
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background: var(--vintage-black);
    border: 5px solid var(--brutal-yellow);
    padding: var(--spacing-md);
    z-index: 9999;
    box-shadow: 10px 10px 0 var(--brutal-red);
}

.cookie-consent.hidden {
    display: none;
}

.cookie-consent p {
    color: var(--retro-cream);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--vintage-black);
    border-top: 10px solid var(--brutal-yellow);
    padding: var(--spacing-xl) var(--spacing-md);
    color: var(--retro-cream);
    margin-top: var(--spacing-xl);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.footer-section h3 {
    color: var(--brutal-yellow);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: var(--retro-cream);
}

.footer-section a:hover {
    color: var(--brutal-yellow);
}

.compliance-badges {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    align-items: center;
}

.compliance-badge {
    background: var(--retro-cream);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 35px;
    max-width: 40%;
    width: fit-content;
}

.compliance-badge:hover {
    background: var(--vintage-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 18+ Badge */
.compliance-badge--age {
    justify-content: center;
    padding: 8px;
}

.badge-circle {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #ff4500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-circle .badge-text {
    color: white;
    font-weight: 700;
    font-size: 0.6rem;
    font-family: var(--font-heading);
}

/* CHECK DEIN SPIEL Badge */
.compliance-badge--check {
    justify-content: space-between;
}

.compliance-badge--check .badge-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

.badge-text-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.badge-text-left .badge-line {
    color: #105882;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
    line-height: 1.2;
}

.badge-arrow {
    background: #105882;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: bold;
}

.compliance-badge--check:hover .badge-arrow {
    background: var(--brutal-yellow);
    color: var(--vintage-black);
}

/* GORDON MOODY Badge */
.compliance-badge--gordon {
    justify-content: flex-start;
    gap: 12px;
}

.compliance-badge--gordon .badge-content {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.badge-logo {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    object-fit: contain;
}

.badge-text-right {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.badge-text-right .badge-line {
    color: #ff5f00;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
    line-height: 1.2;
}
.compliance-badge--gordon .badge-text-right .badge-line {
    color: #8b0000;
}

.compliance-logos {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    margin-top: var(--spacing-md);
}

.compliance-logo {
    height: 35px !important;
    width: auto !important;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 8px;
    border: 2px solid var(--brutal-yellow);
    transition: all 0.3s ease;
}

.compliance-logo:hover {
    opacity: 1;
    border-color: var(--brutal-red);
    box-shadow: 0 0 10px var(--brutal-yellow);
    transform: scale(1.05);
}

/* ============================================
   RESPONSIVE - MOBILE FIRST
   ============================================ */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: calc(var(--header-height) - 1px);
        left: 0;
        right: 0;
        background: var(--vintage-black);
        border-bottom: 5px solid var(--brutal-yellow);
        display: none;
        z-index: 999;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: var(--spacing-sm);
        border: 2px solid var(--brutal-yellow);
    }
    
    .hero {
        margin: 10px;
        padding-top: calc(var(--header-height) + 30px);
        min-height: calc(100vh - var(--header-height));
    }
    
    .hero-content {
        padding: var(--spacing-md);
        margin: var(--spacing-md);
    }
    
    .games-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .game-card {
        width: 100%;
        max-width: 400px;
    }
    
    .cookie-consent {
        right: 10px;
        left: 10px;
        max-width: none;
        bottom: 10px;
    }
    
    .modal-content {
        padding: var(--spacing-md);
        margin: var(--spacing-md);
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .compliance-badges {
        gap: var(--spacing-xs);
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .compliance-badge {
        padding: 6px 10px;
        min-height: 30px;
        max-width: 45%;
    }
    
    .badge-circle {
        width: 22px;
        height: 22px;
    }
    
    .badge-circle .badge-text {
        font-size: 0.55rem;
    }
    
    .badge-text-left .badge-line,
    .badge-text-right .badge-line {
        font-size: 0.7rem;
    }
    
    .badge-arrow {
        width: 17px;
        height: 17px;
        font-size: 0.65rem;
    }
    
    .badge-logo {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
