/* Variables & Reset */
:root {
    --primary-color: #0b2d6a; /* Youi inspired deep blue */
    --secondary-color: #f7a614; /* Youi inspired orange */
    --text-color: #333333;
    --light-bg: #f9f9fc;
    --white: #ffffff;
    --border-color: #eaeaea;
    --transition: 0.3s ease all;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, wead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

html {
    scroll-behavior: smooth;
}

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

/* 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, visibility 0.5s ease;
}
.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-text {
    font-size: 3rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 2px;
    animation: pulsing 1.5s infinite;
}
@keyframes pulsing {
    0% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.5; transform: scale(0.95); }
}

/* Top Ad Banner */
.top-ad-banner {
    background-color: #f1f1f1;
    text-align: center;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
}
.top-ad-text {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}
.logo-link {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
.desktop-nav {
    display: none;
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 24px;
}
.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}
.nav-link:hover {
    color: var(--primary-color);
}
.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
}
.cta-button:hover {
    background-color: transparent;
    color: var(--secondary-color);
}
.header-cta {
    display: none;
}
.outline-cta {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-top: 16px;
}
.outline-cta:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Hamburger */
.menu-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1002;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}
.mobile-menu.open {
    right: 0;
}
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}
.mobile-menu-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}
.menu-close-btn {
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: var(--text-color);
    cursor: pointer;
    line-height: 1;
}
.mobile-nav-list {
    list-style: none;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.mobile-nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 500;
}
.mobile-cta {
    text-align: center;
    display: block;
    margin-top: 16px;
}

/* Sections */
.section {
    padding: 60px 24px;
}
.section-container {
    max-width: 1200px;
    margin: 0 auto;
}
.full-width-container {
    max-width: 100%;
    padding: 0 5%;
}
.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 24px;
    font-weight: 700;
}
.center-title {
    text-align: center;
}
.section-text {
    margin-bottom: 16px;
    font-size: 1.1rem;
}
.bg-light {
    background-color: var(--light-bg);
}
.text-center {
    text-align: center;
}
.text-white {
    color: var(--white);
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    background-color: var(--light-bg);
}
.hero-content {
    padding: 60px 24px;
    text-align: center;
}
.hero-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 700;
}
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 24px;
}
.hero-image-wrapper {
    width: 100%;
}
.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* About Section */
.about-section .section-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.about-image-wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Why Us Section */
.whyus-section {
    background-color: #ffffff;
}
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}
.feature-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
}
.feature-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 16px;
}
.feature-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
}
.feature-text {
    font-size: 1rem;
    color: #555;
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #061c47 100%);
    color: var(--white);
}
.testimonials-slider {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}
.testimonial-card {
    background-color: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}
.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: #e0e0e0;
}
.testimonial-author {
    font-weight: 600;
    color: var(--secondary-color);
}

/* FAQs Section */
.faqs-list {
    max-width: 800px;
    margin: 40px auto 0;
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}
.faq-question.active::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-answer p {
    padding-bottom: 20px;
    color: #555;
}

/* Footer Section */
.footer {
    background-color: #111;
    color: #fff;
    padding: 60px 24px 20px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.footer-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 600;
}
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-item {
    color: #aaa;
    font-size: 0.95rem;
}
.contact-item strong {
    color: #fff;
}
.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-nav-link {
    text-decoration: none;
    color: #aaa;
    transition: color 0.3s ease;
}
.footer-nav-link:hover {
    color: var(--secondary-color);
}
.footer-separator {
    height: 1px;
    background-color: #333;
    margin: 40px 0 20px;
}
.ad-notice {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 12px;
    text-align: center;
}
.copyright-notice {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

/* Impressum Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal.show {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background-color: var(--white);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal-header {
    padding: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
}
.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}
.modal-body {
    padding: 20px;
    overflow-y: auto;
}
.impressum-heading {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 20px 0 10px;
    font-weight: 600;
}
.impressum-heading:first-child {
    margin-top: 0;
}
.impressum-text {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: #444;
}

/* Cookies Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 1500;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(150%);
    transition: transform 0.5s ease;
}
.cookie-popup.show {
    transform: translateY(0);
}
.cookie-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}
.cookie-text {
    font-size: 0.95rem;
    color: #555;
}
.cookie-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}
.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
}
.cookie-reject {
    background-color: #eee;
    color: #333;
}
.cookie-reject:hover {
    background-color: #ddd;
}
.cookie-accept {
    background-color: var(--secondary-color);
    color: var(--white);
}
.cookie-accept:hover {
    background-color: #e0940d;
}

/* Desktop Media Queries */
@media (min-width: 768px) {
    .menu-toggle-btn {
        display: none;
    }
    .desktop-nav, .header-cta {
        display: block;
    }
    .header-container {
        justify-content: space-between;
    }
    .desktop-nav {
        flex: 1;
        display: flex;
        justify-content: center;
    }
    
    .hero-section {
        flex-direction: row;
        align-items: center;
    }
    .hero-content {
        flex: 1;
        text-align: left;
        padding: 80px 40px;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-image-wrapper {
        flex: 1;
        height: 600px;
    }
    .hero-image {
        height: 100%;
    }

    .about-section .section-container {
        flex-direction: row;
        align-items: center;
    }
    .about-content, .about-image-wrapper {
        flex: 1;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    @media (min-width: 992px) {
        .features-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    .testimonials-slider {
        flex-direction: row;
    }
    .testimonial-card {
        flex: 1;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cookie-popup {
        left: auto;
        right: 20px;
        width: 400px;
    }
}
