/*
Theme Name: HOT GYM
Theme URI: https://hotgym.de
Author: MENG GmbH
Description: Custom Theme für HOT GYM Ahlerstedt & Harsefeld
Version: 1.0.0
Text Domain: hotgym
*/

:root {
    --color-primary: #F5B800;
    --color-primary-dark: #D9A400;
    --color-dark: #1A1A1A;
    --color-darker: #111111;
    --color-gray: #2A2A2A;
    --color-gray-light: #F5F5F5;
    --color-white: #FFFFFF;
    --color-text: #333333;
    --color-text-light: #CCCCCC;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --header-height: 90px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================
   HEADER & NAVIGATION
   ===================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    transition: background 0.3s ease;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 40px;
}

.site-logo {
    flex-shrink: 0;
    display: block;
}

.site-logo img {
    height: 70px;
    width: auto;
    max-width: none;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
}

.main-nav .nav-cta {
    color: var(--color-dark);
    padding: 10px 24px;
    font-size: 0.85rem;
    margin-left: 8px;
}

.main-nav .nav-cta:hover {
    color: var(--color-dark);
}

.main-nav .location-switcher {
    margin-right: 8px;
}

/* Standort-Switcher */
.location-switcher {
    display: flex;
    background: var(--color-gray);
    border-radius: 50px;
    padding: 4px;
    gap: 4px;
}

.location-switcher button {
    background: none;
    border: none;
    color: var(--color-text-light);
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.location-switcher button.active {
    background: var(--color-primary);
    color: var(--color-dark);
}

.location-switcher button:hover:not(.active) {
    color: var(--color-white);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s ease;
}

/* =====================
   HERO SECTION
   ===================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-darker);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    background: rgba(245, 184, 0, 0.15);
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.hero-content h1 .highlight {
    color: var(--color-primary);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-dark);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 184, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-dark);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================
   SECTIONS
   ===================== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.section-dark {
    background: var(--color-darker);
    color: var(--color-white);
}

.section-dark .section-header h2 {
    color: var(--color-white);
}

.section-dark .section-header p {
    color: var(--color-text-light);
}

.section-gray {
    background: var(--color-gray-light);
}

/* =====================
   FEATURES / ANGEBOT
   ===================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--color-gray);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg) center/cover no-repeat;
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 0.2;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--color-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--color-white);
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* =====================
   GALLERY / STUDIOS
   ===================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Video Play Button */
.gallery-video {
    cursor: pointer;
}

.gallery-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(245, 184, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-dark);
    z-index: 2;
    transition: all 0.3s ease;
    padding-left: 5px;
}

.gallery-video:hover .gallery-play {
    background: var(--color-primary);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 30px rgba(245, 184, 0, 0.5);
}

/* Video Lightbox */
.video-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

.video-lightbox.active {
    display: flex;
}

.video-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 900px;
}

.video-lightbox-content video {
    width: 100%;
    border-radius: 12px;
    background: #000;
}

.video-lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.video-lightbox-close:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-play {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* =====================
   PARTNER
   ===================== */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.partner-card {
    text-align: center;
}

.partner-logo {
    background: var(--color-white);
    border-radius: 16px;
    padding: 30px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 130px;
    margin-bottom: 18px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.partner-card:hover .partner-logo {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(245, 184, 0, 0.2);
}

.partner-logo img {
    max-height: 60px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .partner-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* =====================
   PRICING / PREISE
   ===================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border: 3px solid var(--color-primary);
}

.pricing-card.featured::before {
    content: 'Beliebt';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--color-primary);
    color: var(--color-dark);
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 20px 0;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.pricing-features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    padding-left: 30px;
    position: relative;
    color: #555;
}

.pricing-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* =====================
   LOCATION INFO
   ===================== */
.location-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.location-details h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.location-details .address,
.location-details .hours,
.location-details .contact-info {
    margin-bottom: 25px;
}

.location-details h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.location-details p {
    color: var(--color-text);
    line-height: 1.8;
}

.section-gray .location-details h3 {
    color: var(--color-dark);
}

.section-gray .location-details p {
    color: #444;
}

.location-map {
    border-radius: 16px;
    overflow: hidden;
    height: 400px;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Location-specific content toggle */
.location-content {
    display: none;
}

.location-content.active {
    display: block;
}

/* =====================
   CONTACT / CTA
   ===================== */
.cta-section {
    background: var(--color-primary);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 800;
}

.cta-section p {
    color: var(--color-dark);
    opacity: 0.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-section .btn-dark {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 16px 40px;
}

.cta-section .btn-dark:hover {
    background: var(--color-gray);
    transform: translateY(-2px);
}

/* =====================
   CONTACT FORM
   ===================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 16px;
    transition: border-color 0.3s ease;
    background: var(--color-white);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* =====================
   MAP CONSENT
   ===================== */
.map-consent {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    height: 100%;
    min-height: 400px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}

.map-consent::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 184, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 184, 0, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.map-consent-content {
    text-align: center;
    color: var(--color-white);
    max-width: 320px;
    position: relative;
    z-index: 1;
}

.map-consent-content strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.map-consent-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.map-consent-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.map-consent-btn {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* =====================
   COOKIE BANNER
   ===================== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 9998;
    max-width: 580px;
    margin-left: auto;
    background: rgba(17, 17, 17, 0.97);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 184, 0, 0.25);
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: cookieSlideUp 0.4s ease;
}

.cookie-banner[hidden] {
    display: none;
}

@keyframes cookieSlideUp {
    from { transform: translateY(120%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 240px;
    color: var(--color-text-light);
    font-size: 0.82rem;
    line-height: 1.5;
}

.cookie-banner-text strong {
    display: block;
    color: var(--color-white);
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.cookie-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.cookie-btn-decline:hover {
    border-color: var(--color-white);
}

.cookie-btn-accept {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-dark);
}

.cookie-btn-accept:hover {
    background: var(--color-primary-dark);
}

@media (max-width: 600px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 14px 16px;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1;
    }
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
    background: var(--color-darker);
    color: var(--color-text-light);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: var(--color-text-light);
    padding: 5px 0;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid var(--color-gray);
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--color-primary);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .location-info,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

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

    .site-header .container {
        gap: 16px;
    }

    .site-logo img {
        height: 56px;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-darker);
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 4px;
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
        padding: 14px 12px;
        font-size: 1rem;
    }

    .main-nav .location-switcher {
        width: 100%;
        justify-content: center;
        margin: 0 0 14px;
        padding: 6px;
    }

    .main-nav .location-switcher button {
        flex: 1;
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .main-nav .nav-cta {
        margin: 12px 0 4px;
        padding: 14px 24px;
        font-size: 0.9rem;
        align-self: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 76px;
    }

    .site-logo img {
        height: 48px;
    }

    .site-header .container {
        gap: 12px;
        padding: 0 16px;
    }
}
