/* Root Variables */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #333333;
    --text-gray: #666666;
    --bg-light-gray: #f5f5f5;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --transition-speed: 0.3s;
}

/* 
   RESET - Using specific class .el-reset 
   Added to all elements in HTML to avoid using standard universal selector *
*/
.el-reset {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

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

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--primary-color);
}

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

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

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

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

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* Ad Note Top */
.ad-top-note {
    background-color: #f0f0f0;
    color: #555;
    font-size: 0.8rem;
    text-align: center;
    padding: 8px;
    font-weight: 500;
    border-bottom: 1px solid #ddd;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-header {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-speed);
}

.nav-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    background: #333;
    color: #fff;
    border-radius: 50%;
    padding: 5px;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
}

/* Mobile Nav */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 75%;
        /* Requested 75% width */
        height: 100vh;
        background-color: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-speed) ease-in-out;
    }

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

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .nav-close {
        display: flex;
        /* Show cross icon */
    }

    .hamburger {
        display: flex;
    }

    .btn-header {
        display: none;
        /* Hide CTA button in menu on mobile to simplify, or add it to list */
    }

    /* Add CTA to nav list for mobile via JS or just duplicate HTML logic if needed, 
       but for now we keep it simple. If critical, I'd move the button inside the nav-menu div. */
    .nav-list::after {
        content: "Jetzt Entdecken";
        display: block;
        padding: 12px 28px;
        background: #000;
        color: #fff;
        text-transform: uppercase;
        font-weight: 600;
        margin-top: 20px;
        cursor: pointer;
    }
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-light-gray);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-content {
    z-index: 2;
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-image img {
    width: 100%;
    transform: rotate(-15deg) scale(0.9);
    transition: transform 0.5s;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
}

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

@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 60px 0;
    }

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

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .hero-image img {
        margin-top: 40px;
        transform: rotate(0);
    }
}

/* About Section */
.about {
    background-color: var(--secondary-color);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-gray);
}

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

    .about-image {
        order: -1;
    }
}

/* Features Section */
.features {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.features .section-title {
    color: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: #aeaeae;
}

/* Testimonials */
.testimonials {
    background-color: var(--bg-light-gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--secondary-color);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-gray);
}

.testimonial-card h4 {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

.faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: var(--text-gray);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .toggle {
    transform: rotate(45deg);
}

.toggle {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 60px 0 20px;
}

.ad-footer-note {
    background-color: #222;
    color: #aaa;
    text-align: center;
    padding: 15px;
    font-size: 0.85rem;
    margin: 0 0 30px 0;
}

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

.footer-col h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-col p,
.footer-col a {
    color: #aeaeae;
    margin-bottom: 15px;
    display: block;
    line-height: 1.6;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.9rem;
}

/* Popups */
.popup-overlay {
    padding: 20px;
    /* Safe padding for mobile */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Bottom sheet style for cookies typically */
    pointer-events: none;
}

.popup-overlay.active {
    pointer-events: auto;
}

.cookie-content {
    background: var(--secondary-color);
    padding: 30px;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    transform: translateY(150%);
    transition: transform 0.5s ease-out;
}

.popup-overlay.active .cookie-content {
    transform: translateY(0);
}

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

.popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.popup-modal-content {
    background: #fff;
    color: #000;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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