/* CSS Reset & Variables */
:root {
    --primary-color: #0F4C81;
    /* Classic Blue - Professional/Medical */
    --primary-dark: #09345A;
    --secondary-color: #F5B642;
    /* Soft Gold - Premium Accent */
    --secondary-hover: #E0A02E;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition-base: all 0.3s ease;
}

/* Base Styles - No * selector used */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    background: none;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-top: 0;
    color: var(--primary-color);
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    transition: var(--transition-base);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

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

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

.loader-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    animation: fadePulse 2s infinite;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(15, 76, 129, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Top Disclaimer */
.top-disclaimer {
    background-color: #ECECEC;
    padding: 0.5rem 0;
    font-size: 0.75rem;
    text-align: center;
    color: #666;
    border-bottom: 1px solid #ddd;
}

.disclaimer-text {
    margin: 0;
}

/* Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

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

.brand-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.desktop-nav {
    display: none;
    /* Mobile first logic */
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

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

.header-cta-wrapper {
    display: none;
}

/* Hamburger */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1001;
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background-color: var(--bg-white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transition: right 0.4s ease;
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.mobile-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.close-menu-btn {
    font-size: 1.5rem;
    color: var(--text-color);
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-color);
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

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

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

.hero-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: scale(1.02);
}

.hero-badge {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background-color: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 4px solid var(--secondary-color);
}

.badge-icon {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.badge-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* About Section */
.section {
    padding: 5rem 0;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-image-col {
    position: relative;
}

.about-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.about-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border: 3px solid var(--secondary-color);
    border-radius: var(--radius-md);
    z-index: -1;
}

.about-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 700;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.section-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.feature-list {
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--primary-color);
}

.feature-item i {
    color: var(--secondary-color);
}

/* Why Us Section */
.why-us-section {
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(15, 76, 129, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials-section {
    background-color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    position: relative;
    border: 1px solid var(--border-color);
}

.rating {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.customer-name {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

.customer-location {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
}

/* FAQ Section */
.faq-section {
    background-color: var(--bg-light);
}

.faq-wrapper {
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-dark);
    text-align: left;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: #f0f4f8;
}

.faq-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-heading {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

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

.footer-text,
.footer-small-text {
    font-size: 0.95rem;
    color: #b0b0b0;
    margin-bottom: 0.75rem;
}

.footer-small-text {
    font-size: 0.85rem;
}

.footer-link {
    display: block;
    color: #b0b0b0;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

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

.impressum-box {
    margin-bottom: 1.5rem;
}

.footer-ad-notice {
    border-top: 1px solid #333;
    padding: 1.5rem 0;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

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

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 9900;
    display: none;
    /* Hidden by default, shown via JS */
    animation: slideUp 0.5s ease;
    border-left: 5px solid var(--primary-color);
    max-width: 500px;
    margin: 0 auto;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

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

.cookie-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.cookie-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.cookie-actions {
    display: flex;
    gap: 0.5rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: white;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 1.5rem;
}

.close-modal-btn {
    font-size: 1.5rem;
    color: var(--text-light);
    transition: color 0.2s;
}

.close-modal-btn:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    font-size: 0.95rem;
    color: var(--text-color);
}


/* Media Queries */
@media (min-width: 768px) {

    /* Header */
    .desktop-nav {
        display: block;
    }

    .nav-list {
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .hamburger-btn {
        display: none;
    }

    .header-cta-wrapper {
        display: block;
    }

    /* Hero */
    .hero-container {
        flex-direction: row;
        text-align: left;
    }

    .hero-content {
        flex: 1;
        text-align: left;
    }

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

    .hero-description {
        margin-left: 0;
    }

    .hero-actions {
        flex-direction: row;
    }

    /* About */
    .about-container {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }

    .about-image-col,
    .about-text-col {
        flex: 1;
    }

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

    .about-text-col {
        order: 2;
    }

    /* Grid Layouts */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    /* Cookie Popup */
    .cookie-popup {
        left: auto;
        right: 2rem;
        width: 350px;
    }
}

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