/* * CSS STILE
 * Eine professionelle und ruhige Farbpalette wurde gewählt, 
 * um Vertrauen und Wohlbefinden zu vermitteln.
 */

/* CSS-Variablen für einfache Farbanpassungen */
:root {
    --primary-color: #0d47a1; /* Dunkles, professionelles Blau */
    --secondary-color: #e3f2fd; /* Sehr helles Blau als Hintergrund */
    --accent-color: #4caf50; /* Ein positives Grün für Akzente */
    --accent-hover-color: #43a047; /* Etwas dunkleres Grün für Hover-Effekte */
    --text-color: #212121; /* Dunkelgrau für besten Lesekontrast */
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --border-radius: 8px;
    --success-color: #27ae60;
    --fail-color: #c0392b;
    --dark-gray: #7f8c8d;
}

/* Allgemeines Reset und Grundstile */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
}

p {
    margin-bottom: 1rem;
}

section {
    padding: 5rem 0;
}


/* --- Rundum-sorglos-Paket Section --- */
.sorglos-paket-section {
    background-image: linear-gradient(rgba(13, 71, 161, 0.92), rgba(13, 71, 161, 0.92)), url('../images/halle-krankenhaus.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Erzeugt einen dezenten Parallax-Effekt beim Scrollen */
    color: var(--white);
    position: relative; /* Für Overlay-Effekte */
}

.sorglos-paket-section h2 {
    color: var(--white);
}

.sorglos-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4rem;
    font-size: 1.2rem;
}

.sorglos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: center; /* Zentriert die Elemente in den Grid-Zellen vertikal */
}

.sorglos-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 280px; /* Stellt eine einheitliche Höhe sicher */
    height: 100%;
}

.sorglos-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.sorglos-card .sorglos-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.sorglos-card h3 {
    color: var(--white);
    font-size: 1.5rem;
}

.sorglos-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 1rem;
}

.sorglos-image-card img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* --- Header & Hero-Bereich --- */
.hero {
    background-image: linear-gradient(rgba(13, 71, 161, 0.75), rgba(13, 71, 161, 0.75)), url('../images/bild-eines-pausenraums.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    font-weight: 300;
}

.modell-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 8px 12px 8px 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.modell-button:hover {
    background-color: var(--accent-hover-color);
}
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: var(--accent-hover-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* --- Counter Section --- */
.counter-section {
    background-color: var(--secondary-color);
    padding: 4rem 0;
}
.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.counter-item .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.counter-item .counter-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}
.counter-item .counter-text {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0;
}


/* --- Vorteile-Bereich --- */
.benefits {
    background-color: var(--secondary-color);
    background-image: linear-gradient(rgba(227, 242, 253, 0.95), rgba(192, 226, 250, 0.95)), url('../images/bild-eines-pausenraums.jpg');
    background-size: cover;
    background-position: center;
    padding: 8rem 0;
    text-align: center;    
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-top: 4rem;
}

.benefit-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.benefit-card .icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.5rem;
}

/* --- Modelle-Bereich --- */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.model-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.model-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.model-card img {
    width: 100%;
    object-fit: cover;
}

.model-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#sticky-header .model-content {
    padding: 1rem;
}


.model-content h3 {
    margin-top: 0;
    font-size: 1.4rem;
}

/* --- Kauf vs. Leasing Bereich --- */
.purchase-leasing {
    background-color: var(--light-gray);
}

.purchase-leasing-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
    margin-top: 4rem;
}

.option-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
}

.option-card h3 {
    font-size: 2rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 1rem;
}

.option-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
    flex-grow: 1;
}

.option-card li {
    padding-left: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

.option-card li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* --- Finaler CTA-Bereich --- */

.final-cta {
    background-image: linear-gradient(rgba(13, 71, 161, 0.92), rgba(13, 71, 161, 0.92)), url('../images/halle-krankenhaus.jpg');
    background-size: cover;
    background-position: bottom center;
    color: var(--white);
    padding: 0; 
}

.kontakt-grid-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    width: 100%;
}

.kontakt-text-content {
    padding: 5rem 2rem;
    text-align: center;
}

.kontakt-text-content h2 {
    color: var(--white);
    font-size: 28px;
    padding-bottom: 20px;
}

.kontakt-text-content p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    font-weight: 300;
}

.kontakt-image-left,
.kontakt-image-right {
    height: 100%;
    overflow: hidden;
}

.kontakt-image-left img,
.kontakt-image-right img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- Footer --- */
footer {
    background-color: #212121;
    color: #bdbdbd;
    text-align: center;
    padding: 2.5rem 0;
}

footer p {
    margin: 0;
}



p.preis-leasing { 
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-top: auto;
}
.pl-preis, .pl-leasing {
    font-weight: bold; 
    font-size: 20px; 
}
.pl-preis small, .pl-leasing small { 
    font-size: 14px;
    font-weight: normal; 
}
p.mehr-erfahren { 
    margin-top: 20px; 
    padding-top: 20px; 
    border-top: 1px solid #eee;
    margin-bottom: 0;
}
p.mehr-erfahren a { 
    width: 100%; 
    text-align:center; 
}

/* --- Slider Styles --- */
.slider-container {
    position: relative;
}
.overflow-hidden {
    overflow: hidden;
    transition: height 0.5s ease-in-out; 
}
.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.slide {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0.5rem;
    align-items: stretch; 
}
.review-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e5e7eb;
    height: 100%;
}
.product-model-display {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}
.stars {
    color: #f59e0b;
}
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border-radius: 9999px;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}
.nav-button:hover {
    background-color: #f3f4f6;
    transform: translateY(-50%) scale(1.05);
}
.nav-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.nav-button.prev {
    left: -1.5rem;
}
.nav-button.next {
    right: -1.5rem;
}
.dots-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}
.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background-color: #d1d5db;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.dot.active {
    background-color: var(--primary-color);
}
/* --- VERGLEICHSTABELLE STYLES --- */
#sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--white);
    padding-top: 1rem;
}
.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.comparison-table {
    width: 100%;
    min-width: 800px; /* Mindestbreite, um horizontales Scrollen zu erzwingen */
    border-collapse: collapse;
    font-size: 1em;
}

.comparison-table th, .comparison-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
    background-color: var(--white);
    vertical-align: middle;
}
.comparison-table thead th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: var(--primary-color);
}
.check {
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.5em;
}

.cross {
    color: var(--fail-color);
    font-weight: bold;
    font-size: 1.5em;
}

.feature-cell {
    text-align: left !important;
    width: 33%;
    vertical-align: top;
    /* Sticky Column for horizontal scroll */
    position: sticky;
    left: 0;
    z-index: 10;
    background-color: var(--white);
}

.feature-cell h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.feature-cell p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
    color: var(--text-color);
}

/* --- Aufklappbare Vergleichsliste --- */
.toggle-container {
    text-align: center;
    margin: 1rem 0 2rem 0;
}

#comparison-toggle-btn {
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#comparison-toggle-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

#comparison-toggle-btn .arrow {
    display: inline-block;
    margin-left: 0.75rem;
    transition: transform 0.4s ease;
}

#comparison-toggle-btn[aria-expanded="true"] .arrow {
    transform: rotate(180deg);
}

#comparison-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease-in-out;
}

#comparison-list.is-open {
    max-height: 5000px;
    border-top: 1px solid #e0e0e0;
    padding-top: 2rem;
}

/* --- Dezente Seitennavigation --- */
.side-nav {
    position: fixed;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    z-index: 1000;
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-nav li {
    height: 25px;
    display: flex;
    align-items: center;
}

.side-nav a {
    display: block;
    width: 10px;
    height: 10px;
    background-color: #A9B4C2;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.side-nav a:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    right: 180%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s;
}

.side-nav a:hover,
.side-nav a.active {
    background-color: var(--primary-color);
    transform: scale(1.4);
}

/* --- RESPONSIVE DESIGN --- */

/* Medium screens (Tablets, etc.) */
@media (max-width: 1024px) {
    h2 { font-size: 2.2rem; }
    .hero h1 { font-size: 2.8rem; }
    
    .sorglos-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
    }

    .purchase-leasing-container { 
        grid-template-columns: 1fr; 
    }

    .counter-grid { 
        grid-template-columns: 1fr 1fr; 
        gap: 2rem 1rem;
    }

    .kontakt-grid-container {
        grid-template-columns: 1fr;
    }
    .kontakt-image-left, .kontakt-image-right {
        display: none; /* Bilder auf Tablets ausblenden, um Platz zu sparen */
    }
    .kontakt-text-content {
        padding: 4rem 1.5rem;
    }

    .slide {
        grid-template-columns: 1fr; /* 1 Bewertung pro Slide auf Tablets und kleiner */
    }

    .nav-button.prev { left: -1rem; }
    .nav-button.next { right: -1rem; }
}

/* Small screens (Mobiles) */
@media (max-width: 767px) {
    section { padding: 3rem 0; }
    .container { padding: 0 1.5rem; }

    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 2rem; }
    .hero { padding: 5rem 0; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    .cta-button { padding: 0.8rem 1.8rem; font-size: 1rem; }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .counter-grid { 
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pl-preis, .pl-leasing { font-size: 18px; }
    .pl-preis small, .pl-leasing small { font-size: 12px; }

    .nav-button { display: none; } /* Slider-Pfeile auf Mobilgeräten ausblenden, Punkte bleiben */
    
    .side-nav {
        display: none; /* Seiten-Navigation auf kleinen Bildschirmen entfernen */
    }
    #comparison-toggle-btn { display: none; }
}