:root {
    --color-primary: #005580; /* Petrol / Blau */
    --color-primary-light: #e6f2f7;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1320px;
    --container-padding: 2rem;
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family), sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.vitamed,
.bhs,
.grenke,
.praxis {
    display: flex;
    width: 300px;
}
#three-items-scroll {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#one-item-scroll {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem var(--container-padding);
    overflow: hidden;
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('../assets/images/leere-helle-praxis_886238.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: sticky;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll; /* Performance auf Mobile */
    }
}

.hero__container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

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

/* Desktop: Zweispaltig */
@media (min-width: 992px) {
    .hero__layout {
        flex-direction: row;
        justify-content: space-between;
    }

    .hero__animation-wrapper,
    .hero__content {
        flex: 1;
    }
}

/* Animation Styling */
.hero__animation-wrapper {
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__lottie {
    width: 100%;
    height: auto;
    min-height: 300px;
}

.hero__fallback {
    display: none; /* Nur anzeigen wenn Lottie fehlschlägt */
}

.hero__fallback img {
    max-width: 100%;
    height: auto;
}

/* Content Styling */
.hero__content {
    max-width: 600px;
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.hero__title--main {
    background: linear-gradient(to right, #00a9ae, #1f3d84);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero__title--highlight {
    color: var(--color-text);
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 3.5rem;
    }
}

.hero__subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

@media (min-width: 768px) {
    .hero__subtitle {
        font-size: 1.25rem;
    }
}

/* Button Styling */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 50px; /* Runde Formen */
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 85, 128, 0.3);
}

.btn--primary:hover {
    background-color: #004466;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 85, 128, 0.4);
}

.btn--primary:focus {
    outline: 3px solid var(--color-primary-light);
    outline-offset: 2px;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.hero__microcopy {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-left: 0.5rem;
}

/* Scroll Indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-primary-light);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero__scroll-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
    animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero__scroll-dot {
        animation: none;
    }
    .btn {
        transition: none;
    }
}

/* Scroll Transition Section */
.scroll-item-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.scroll-item-row {
    display: flex;
    align-content: space-between;
    justify-content: space-between;
    gap: 1rem;
}

.scroll-transition {
    padding: 2rem var(--container-padding);
    background-color: var(--color-bg);
    position: relative;
}

.scroll-transition__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.scroll-transition__layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.scroll-transition__animation-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-transition__lottie {
    width: 100%;
    max-width: 700px;
    height: 500px;
}

.scroll-transition__fallback {
    display: none; /* Wird via JS ausgeblendet */
}

.scroll-transition__fallback img {
    max-width: 100%;
    height: auto;
}

.scroll-transition__title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.scroll-transition__text {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 500px;
}

/* Desktop: Sticky Transition */
@media (min-width: 992px) {
    .scroll-transition {
        min-height: 80vh; /* Platz für Scroll-Animation */
        padding: 2rem var(--container-padding);
    }

    .scroll-transition__container {
        height: 100%;
    }

    .scroll-transition__layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 4rem;
    }

    .scroll-transition__animation-wrapper {
        flex: 1.2;
        position: sticky;
        top: 10vh;
        height: 70vh;
        max-height: 80vh;
    }

    .scroll-transition__content {
        flex: 1;
        position: sticky;
        top: 30vh;
        align-self: flex-start;
    }

    .scroll-transition__title {
        font-size: 2.25rem;
    }
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .scroll-transition__animation-wrapper {
        margin-bottom: 1rem;
    }
}

/* Services Section */
.services {
    padding: 6rem var(--container-padding);
    background-color: var(--color-bg-alt);
    position: relative;
}

.services__container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.services__layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.services__image {
    width: 100%;
    max-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.services__image img {
    width: 100%;
    height: auto;
}

/* Desktop: Zweispaltig */
@media (min-width: 768px) {
    .services__layout {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 3rem;
    }

    .services__image {
        flex: 0 0 40%;
        max-width: 400px;
    }

    .service-item {
        flex: 1;
    }
}

.service-item {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-out;
}

.service-item__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-item__text {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.service-item__list {
    list-style: none;
    padding: 0;
}

.service-item__list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-weight: 500;
}

.service-item__list li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .usp__title {
        font-size: 2.75rem;
    }
}

/* CTA Section */
.cta {
    padding: 10rem var(--container-padding);
    background-color: var(--color-primary); /* Starker Kontrast zum vorherigen (weißen) Abschnitt */
    color: white;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.cta.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cta__container {
    max-width: 800px;
    margin: 0 auto;
}

.cta__title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .cta__title {
        font-size: 3.5rem;
    }
}

.cta__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.cta__microcopy {
    font-size: 0.9375rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Button White Variant */
.btn--white {
    background-color: white;
    color: var(--color-primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn--white:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn--white:focus {
    outline: 3px solid rgba(255, 255, 255, 0.4);
    outline-offset: 2px;
}
