/* --- Variables & Reset --- */
:root {
    --primary-blue: #7DCDE2;
    --primary-dark: #6cbbd0;
    --text-dark: #1F2933;
    --text-body: #374151;
    --bg-light: #F5FAFC;
    --bg-darker: #EBF5F9;
    --white: #FFFFFF;
    --radius: 24px;
    --radius-sm: 16px;
    --shadow: 0 8px 30px rgba(125, 205, 226, 0.15);
    --shadow-hover: 0 12px 40px rgba(125, 205, 226, 0.25);

    --font-head: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.25rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

a { text-decoration: none; color: inherit; transition: color 0.3s; }

ul { list-style: none; }

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* --- Components --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-head);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(125, 205, 226, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(125, 205, 226, 0.5);
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* --- Header --- */
/* --- Header --- */
header {
    height: 72px;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Updated Logo Styles */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 55px; /* Fits nicely within the 72px header */
    width: auto;
    object-fit: contain;
}

/* Remove the old text styles for .logo, .logo-icon if they exist */

.desktop-nav { display: none; } 
.burger-menu { 
    background: none; 
    border: none; 
    font-size: 1.5rem; 
    color: var(--text-dark); 
    cursor: pointer;
}

/* --- Mobile Nav Overlay --- */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    max-width: 320px;
    height: 100%;
    background: var(--white);
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-overlay.active .mobile-nav-panel {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.mobile-links li { margin-bottom: 24px; }
.mobile-links a {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* --- Hero --- */
#hero {
    background: linear-gradient(180deg, rgba(125,205,226,0.2) 0%, rgba(245,250,252,1) 100%);
    padding: 64px 0 80px;
}

.hero-layout {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.eyebrow {
    text-transform: uppercase;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 12px;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 2.5rem;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.text-link {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Hero Cards */
.hero-cards-title {
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.selection-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.selection-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border: 2px solid var(--primary-blue);
    cursor: pointer;

    /* NEW: Ensure anchor tag styling doesn't break layout */
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.icon-circle {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.25rem;
}
.selection-card:active {
    transform: scale(0.98);
}
.selection-card span {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-dark);
}

/* --- Sections Common --- */
section { padding: 64px 0; }
.section-header.center { text-align: center; margin-bottom: 48px; max-width: 800px; margin-left: auto; margin-right: auto;}
.subtitle { font-size: 1.125rem; color: var(--text-body); }

/* --- About --- */
#about { background: var(--white); }
.about-grid { display: flex; flex-direction: column; gap: 48px; }
.highlight-box {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-blue);
    padding: 24px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 24px;
    font-weight: 500;
}
.about-visual {
    position: relative;
    height: 300px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.abstract-shape {
    position: absolute;
    border-radius: var(--radius);
}
.shape-1 { width: 200px; height: 200px; background: var(--bg-light); transform: rotate(-10deg); }
.shape-2 { width: 180px; height: 180px; border: 2px solid var(--primary-blue); transform: rotate(15deg); }
.abstract-icon { font-size: 4rem; color: var(--primary-blue); position: relative; z-index: 2; }

/* --- Services --- */
#services { background: var(--bg-light); }
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}
.service-icon {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 16px;
}
.services-note { text-align: center; font-style: italic; color: var(--text-body); margin-top: 32px; }

/* --- Process --- */
#process { background: var(--white); }
.timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.timeline-step {
    background: var(--bg-light);
    padding: 32px;
    border-radius: var(--radius);
    position: relative;
}
.step-number {
    background: var(--primary-blue);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 16px;
}
.timeline-connector {
    width: 2px;
    height: 32px;
    background: var(--primary-blue);
    margin: -16px 0 -16px 48px; /* rough alignment */
    display: none; /* Hide on mobile simple stack */
}

/* --- Contact --- */
#contact { background: var(--bg-darker); }
.contact-layout { display: flex; flex-direction: column; gap: 48px; }

.info-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.info-block i { color: var(--primary-blue); font-size: 1.25rem; }
.phone-block .phone-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
}
.contact-note { font-size: 0.875rem; margin-top: 24px; opacity: 0.8; }

/* Form */
.contact-form {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--bg-light);
}
.form-group textarea { resize: vertical; }
.helper-text { font-size: 0.8rem; color: #666; margin-bottom: 16px; }
.full-btn { width: 100%; }

/* --- Footer --- */
footer {
    background: #2C3E50;
    color: var(--white);
    padding: 64px 0 32px;
}
.footer-content { display: flex; flex-direction: column; gap: 32px; }
.footer-company h4 { color: var(--white); margin-bottom: 16px; }
.footer-links a { display: block; margin-bottom: 8px; opacity: 0.8; }
.footer-links a:hover { opacity: 1; }
.copyright { margin-top: 24px; font-size: 0.8rem; opacity: 0.5; }

/* =========================================
   DESKTOP STYLES (Min-width: 1024px)
   ========================================= */
@media (min-width: 1024px) {
    /* Nav */
    .burger-menu { display: none; }
    .desktop-nav { display: flex; align-items: center; gap: 32px; }
    .desktop-nav ul { display: flex; gap: 32px; }
    .desktop-nav a { font-weight: 500; font-family: var(--font-head); }
    .desktop-nav a:hover { color: var(--primary-blue); }

    /* Sections */
    section { padding: 100px 0; }

    /* Hero */
    .hero-layout {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .hero-content { width: 50%; }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-cards { width: 40%; }
    .selection-cards { flex-direction: row; }
    .selection-card { flex: 1; flex-direction: column; justify-content: center; text-align: center; padding: 40px 20px; }

    /* About */
    .about-grid {
        flex-direction: row;
        align-items: center;
        max-width: 960px;
        margin: 0 auto;
    }
    .about-text { flex: 1; }
    .about-visual { flex: 1; height: 400px; }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    /* Process */
    .timeline {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    .timeline-step { flex: 1; }
    .timeline-connector {
        display: none; /* Pill style preferred over line for this pill design */
    }

    /* Contact */
    .contact-layout {
        flex-direction: row;
        justify-content: space-between;
    }
    .contact-info { flex: 1; padding-right: 64px; }
    .contact-form { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .form-group { margin-bottom: 0; } /* Grid handles spacing */
    .full-width { grid-column: span 2; }
    .form-footer { grid-column: span 2; }
    .full-btn { width: auto; min-width: 200px; }

    /* Footer */
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
    .footer-links { text-align: right; }
}
/* --- New Additions for Services Section --- */

/* Pflegekasse Info Box */
.pflegekasse-box {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    margin-top: 48px;
    border-left: 5px solid var(--primary-blue);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pflegekasse-box h4 {
    color: var(--primary-blue);
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.pflegekasse-box p {
    font-weight: 500;
    margin-bottom: 16px;
}

.pflegekasse-box ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pflegekasse-box li {
    display: flex;
    align-items: center; /* Aligns icon with text */
    gap: 16px;
    font-size: 1rem;
    color: var(--text-dark);
}

.circle-check {
    color: var(--primary-blue);
    background: var(--bg-light);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0; /* Prevents icon from shrinking on mobile */
}

/* Enhanced CTA Banner (The "Not what you're looking for?" section) */
.service-cta-banner {
    margin-top: 64px;
    text-align: center;
    padding: 48px 24px;
    background: transparent; /* Clean look, or use var(--white) for a card look */
    border-top: 1px solid rgba(125, 205, 226, 0.3); /* Subtle divider */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cta-heading {
    font-family: var(--font-head);
    font-size: 1.5rem; /* Larger font size */
    font-weight: 700;  /* Bold */
    color: var(--text-dark);
    margin-bottom: 32px;
    line-height: 1.4;
}

/* Mobile Responsiveness for new elements */
@media (max-width: 768px) {
    .pflegekasse-box {
        padding: 24px;
    }
    
    .pflegekasse-box li {
        align-items: flex-start; /* Align icon to top of multi-line text */
    }
    
    .cta-heading {
        font-size: 1.25rem;
    }
}



/* --- Success Popup --- */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup-box {
    background: #fff;
    padding: 40px 32px;
    max-width: 420px;
    width: 90%;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.popup-box h3 {
    margin-bottom: 12px;
    color: #1F2933;
}

.popup-box p {
    margin-bottom: 24px;
    line-height: 1.5;
}


/* ---- Modern Radio Cards ---- */
.radio-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.radio-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 16px 18px;
    border-radius: var(--radius-sm);
    border: 2px solid #e5e7eb;
    background: var(--bg-light);

    cursor: pointer;
    transition: all 0.25s ease;
}

.radio-option input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.radio-option span {
    font-weight: 600;
    color: var(--text-dark);
}

/* Hover */
.radio-option:hover {
    border-color: var(--primary-blue);
    background: #f0fbff;
}

/* Selected */
.radio-option input:checked + span {
    color: var(--text-dark);
}

.radio-option input:checked ~ span {
    font-weight: 700;
}

.radio-option input:checked {
    pointer-events: none;
}

.radio-option:has(input:checked) {
    border-color: var(--primary-blue);
    background: #e9f7fb;
    box-shadow: 0 8px 25px rgba(125, 205, 226, 0.2);
}



.extra-person-fields {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition:
        max-height 0.4s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}

.extra-person-fields.visible {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
}