:root {
    --primary: #598BCD;
    --primary-dark: #3a6091;
    --accent-green: #68B0AB;
    --accent-coral: #FF8066;
    --text-dark: #2D3748;
    --bg-light: #F8FAFC;
    --white: #ffffff;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* --blob-color: #598BCD1A; */
    --blob-color: #AEB1C1;
}

* {
    /* margin: 0; */
    /* padding: 0; */
    box-sizing: border-box;
}
html, body{
    margin: 0;
    border: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

a:hover { color: var(--primary); }
a:visited { color: var(--primary); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: var(--primary);
}

.logo-icon { 
    /* font-size: 1.5rem;  */
    /* background-color: #598BCD;  */
    /* padding: 0 .5em; */
}

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

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

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

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

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

/* Hero */
.hero {
    padding: 80px 0;
    /* background: white; */
    background: linear-gradient(135deg, #fff 0%, #edf2f7 100%);

}

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

.highlight {
    color: var(--primary);
}

/* h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
} */
h1 { font-size: 3rem; margin-bottom: 20px; line-height: 1.2; }

.hero-content p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.8; }

.btn {
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    background: var(--primary);
    color: white;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(89, 139, 205, 0.3);
}

a.btn-primary:visited { color: white; }

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(89, 139, 205, 0.3);
}

.blob-mask {
    width: 100%;
    aspect-ratio: 1;
    background: var(--blob-color);
    overflow: hidden;
    animation: blob 10s infinite alternate;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.blob-mask.sm {
    width: 150px;
    height: 150px;
}

.blob-mask img {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
    transform: scaleX(-.8) scaleY(0.8) translateY(-35px);
}

@keyframes blob {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    100% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* Services / Cards */
.services { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; font-size: 2.5rem; }


/* Accordion Cards */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.card,
.profile-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.card:hover,
.profile-card:hover {
    border-left-color: gainsboro;
    border-right-color: gainsboro;
    border-bottom-color: gainsboro;
    transform: translateY(-5px);
}

.card-blue { border-top: 5px solid var(--primary); }
.card-green { border-top: 5px solid var(--accent-green); }
.profile-card { border-top: 5px solid var(--accent-coral); }

.card-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: var(--transition);
}

.is-open .card-details {
    max-height: 1000px;
    opacity: 1;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.is-open .more-link {
    opacity: 0;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.more-link {
    display: block;
    margin-top: 20px;
    color: var(--primary);
    font-weight: bold;
    transition: 0.3s;
}

/* Doctor Profile */
.profile-main {
    display: flex;
    align-items: center;
    gap: 30px;
}

.subtitle {
    color: var(--primary);
    font-weight: 500;
    font-size: 1.1rem;
}

/* Philosophy Section */
.doctor-profile,
.philosophy {
    padding-bottom: 80px;
}

.highlight-box {
    background: var(--text-dark);
    background-color: #565973; 
    /* #5C639D */
    /* #5C639D */
    color: white;
    padding: 60px;
    border-radius: 30px;
    text-align: center;
}

.badge {
    background: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
}

.highlight-box hr{
    margin-bottom: 2em;
}

.highlight-box hr:last-child{
    display: none;
}

.highlight-box strong,
.coral-text { color: var(--accent-coral); font-weight: bold; }


/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 40px;
}

#map {
    height: 400px;
    border-radius: 20px;
    border: 1px solid #eee;
    z-index: 1;
}

.sticky-cta {
    display: none;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image-wrapper {
        order: 1;
        width: 80%;
        margin: 0 auto;
    }

    .hero-content {
        order: 2;
    }

    .services-grid,
    .contact-grid,
    .profile-main {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }

    .profile-img-container {
        margin: 0 auto;
    }

    /* .nav-menu {
        display: none;
    } */

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 40px;
        text-align: center;
        transition: 0.5s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-menu.active { left: 0; }
    .hamburger { display: flex; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
    

    .sticky-cta {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        z-index: 1000;
    }

    .sticky-cta a {
        background: var(--accent-coral);
        color: white;
        display: block;
        text-align: center;
        padding: 16px;
        border-radius: 12px;
        text-decoration: none;
        font-weight: bold;
        box-shadow: 0 10px 20px rgba(255, 128, 102, 0.3);
    }

    .contact { margin-bottom: 6em; }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Styling für die detaillierten Infoseiten */
.info-page {
    text-align: left;
    color: var(--text-dark);
}

.info-header {
    margin-bottom: 30px;
}

.info-header h2 {
    font-size: 1.8rem;
    margin: 10px 0;
}

.lead {
    font-size: 1.1rem;
    opacity: 0.8;
}

.info-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #fdfdfd;
    border-radius: 15px;
}

.treatment-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.step {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    position: relative;
}

.step-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    right: 15px;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 25px;
}

.info-body div {
    margin: 1em 0;
}

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

.styled-list {
    padding-left: 20px;
}

.styled-list li {
    margin-bottom: 10px;
}

/* Subpage Hero */
.subpage-hero {
    padding: 80px 0 40px;
    background: linear-gradient(135deg, #fff 0%, #edf2f7 100%);
}

.subpage-hero h1 {
    font-size: 3rem;
    margin: 15px 0;
}

.badge {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.Stellenangebot { background: var(--accent-green); }

.job-details summary {
    cursor: pointer;
    color: white;
    font-weight: 500;
    margin-top: 0.5rem;
}

.job-details[open] summary {
    content: "Weniger Informationen";
}

.details {
    margin-top: 1rem;
    text-align: left;
}

.details * {
    margin: revert;
    padding: revert;
}

.details {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.8s ease, opacity 0.8s ease;
    opacity: 0;
}

/* Wenn details geöffnet ist */
.job-details[open] .details {
    max-height: 1000em; /* groß genug für den Inhalt */
    opacity: 1;
    /* transition: max-height 0.8s ease-out, opacity 0.8s ease-out; */
}