/* CSS Variables for Theme */
:root {
    --primary-color: #002d5c;
    /* BayWa style dark blue */
    --secondary-color: #009641;
    /* BayWa style green */
    --accent-color: #00bfff;
    /* Bright blue */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f7f6;
    --bg-white: #ffffff;
    --font-main: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

/* Universal Class for Box Sizing & Resets */
.site-el {
    box-sizing: border-box;
}

/* Base Styles via Classes */
.site-body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    scroll-behavior: smooth;
}

/* Helper Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.cta-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    text-align: center;
}

.cta-btn:hover {
    background-color: #007a33;
    transform: translateY(-2px);
}

/* Advertisement Top Banner */
.ad-top-banner {
    background-color: #f8f8f8;
    color: #666;
    font-size: 12px;
    text-align: center;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

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

.loader-text {
    font-size: 3rem;
    color: var(--text-light);
    font-weight: 700;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }

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

    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

.loader-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Header */
.main-header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.brand-link {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    /* Fallback */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    display: inline-block;
    padding: 5px 0;
}

.desktop-nav {
    display: flex;
    align-items: center;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color var(--transition-speed);
}

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

.header-cta {
    margin-left: 30px;
}

/* Mobile Menu */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    padding: 0;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    /* Start off-screen */
    width: 75%;
    /* Requirement: 75% width */
    height: 100%;
    background-color: var(--bg-white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s ease-in-out;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

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

.close-menu-btn {
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 30px;
    padding: 5px;
}

.close-icon {
    stroke: var(--text-dark);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.mobile-cta-btn {
    display: block;
    background-color: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    padding: 12px;
    text-align: center;
    border-radius: 4px;
    margin-top: 20px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: var(--text-light);
    overflow: hidden;
    background-color: var(--primary-color);
    /* Fallback background color */
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 45, 92, 0.8), rgba(0, 45, 92, 0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    /* ensured by container class but added for safety */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-cta {
    font-size: 1.1rem;
    padding: 15px 30px;
}

/* Sections General */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: 500;
}

.section-p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

.alt-bg {
    background-color: var(--bg-light);
}

.section-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.reverse-layout {
    flex-direction: row-reverse;
}

.section-image-wrapper {
    flex: 1;
}

.section-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-text-wrapper {
    flex: 1;
}

.why-list {
    list-style: none;
    padding: 0;
}

.why-item {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.why-item::before {
    content: "✓";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.why-strong {
    color: var(--primary-color);
}

/* Testimonials */
.center-text {
    text-align: center;
    margin-bottom: 50px;
}

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

.testimonial-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--secondary-color);
}

.testimonial-content {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

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

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

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

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 400;
}

.faq-question.active::after {
    content: "-";
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0;
}

/* Refractored to avoid tag selector p */
.faq-text {
    margin: 0 0 15px 0;
    color: #555;
}

/* Footer */
.main-footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 60px 0 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-heading {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.contact-name,
.impressum-text {
    font-size: 0.95rem;
    line-height: 1.8;
}

.contact-email {
    margin-top: 10px;
}

.footer-link {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--text-light);
}

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

/* Refactored to avoid tag selector li */
.footer-link-item {
    margin-bottom: 10px;
}

.ad-disclaimer-wrapper {
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-bottom: 20px;
}

.ad-disclaimer-box {
    background-color: #222;
    padding: 15px;
    font-size: 0.85rem;
    color: #ccc;
    text-align: center;
    border-radius: 4px;
}

.copyright-container {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.footer-ad-note {
    font-size: 0.8rem;
    color: #555;
    margin-top: 10px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
}

.modal-title {
    margin-top: 0;
    color: var(--primary-color);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 300px;
    z-index: 9995;
    display: block;
    /* Shown by default */
}

.cookie-title {
    margin-top: 0;
}

.cookie-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.accept-btn {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.reject-btn {
    background-color: #ddd;
    color: #333;
}

/* Responsive Queries */
@media (max-width: 768px) {

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

    .hamburger-menu {
        display: flex;
    }

    .section-container {
        flex-direction: column;
    }

    .reverse-layout {
        flex-direction: column;
    }

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

    .section {
        padding: 50px 0;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
}