/* CSS Design System for Laufhauss */

:root {
    --primary-color: #A67C52;
    /* Timberland Wheat/Beige */
    --secondary-color: #2D2D2D;
    --accent-color: #C19A6B;
    --text-color: #333333;
    --light-text: #666666;
    --bg-color: #FFFFFF;
    --section-bg: #F9F7F5;
    --footer-bg: #1A1A1A;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Page Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loader-text {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary-color);
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

/* Advertisement Top Bar */
.top-ad-bar {
    background-color: #fff8f0;
    color: #856404;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid #ffeeba;
    position: relative;
    z-index: 1001;
}

/* Gallery Section Styles */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.gallery-item {
    background: var(--section-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.specs-box {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    box-shadow: var(--shadow);
}

.spec-column h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spec-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-column ul li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
}

.spec-column ul li strong {
    color: var(--secondary-color);
}

/* Header & Navigation */
.main-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-decoration: none;
    letter-spacing: -1px;
}

.brand-logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item .nav-link {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-item .nav-link:hover {
    color: var(--primary-color);
}

.header-cta {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(166, 124, 82, 0.3);
}

.header-cta:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(166, 124, 82, 0.4);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 5px;
}

/* Mobile Menu Fixes & Enhancements */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    /* Exactly 75% as requested */
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    align-self: flex-end;
    cursor: pointer;
    background: #f5f5f5;
    border: none;
    padding: 12px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.close-menu svg {
    width: 24px;
    height: 24px;
    fill: var(--secondary-color);
}

.mobile-menu .nav-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    display: block;
    text-decoration: none;
}

/* Mobile Responsive Improvements */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .header-cta {
        display: none;
    }

    .hamburger {
        display: flex;
        order: 2;
    }

    .brand-logo {
        order: 1;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .specs-box {
        grid-template-columns: 1fr;
        padding: 25px;
        gap: 25px;
    }

    .section {
        padding: 60px 20px;
    }

    .hero-section {
        padding: 40px 20px;
    }
}

/* Hero Section */
.hero-section {
    padding: 80px 20px;
    background: radial-gradient(circle at 70% 50%, #fdfcfb, #f5f0eb);
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-tagline {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--secondary-color);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-image-wrapper {
    position: relative;
    animation: fadeIn 1.2s ease-out;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    transform: rotate(-5deg);
    transition: var(--transition);
}

.hero-image:hover {
    transform: rotate(0) scale(1.05);
}

/* Section Common Styling */
.section {
    padding: 100px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 50px;
    display: block;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(166, 124, 82, 0.1);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    color: var(--primary-color);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--section-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    position: relative;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--secondary-color);
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--secondary-color);
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
    color: var(--light-text);
}

/* Cookies Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 450px;
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    z-index: 5000;
    display: none;
}

.cookie-content h3 {
    margin: 0 0 10px;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.cookie-btn {
    flex: 1;
    padding: 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.accept-cookies {
    background: var(--primary-color);
    color: var(--white);
}

.reject-cookies {
    background: #eee;
    color: var(--secondary-color);
}

/* Footer Styles */
.main-footer {
    background: var(--footer-bg);
    color: var(--white);
    padding: 80px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-item {
    margin-bottom: 12px;
}

.footer-link {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-ad-note {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #999;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #777;
    font-size: 0.85rem;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 6000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    border-radius: var(--border-radius);
    width: 80%;
    max-width: 800px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.legal-text-container h2 {
    color: var(--secondary-color);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}

.legal-text-container h3 {
    margin-top: 30px;
    color: var(--primary-color);
}

.legal-text-container p {
    margin-bottom: 15px;
    color: var(--light-text);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .header-cta {
        display: none;
    }
}