body {
    font-family: Arial, sans-serif;
    margin: 0;
    color: #222;
}

/* HERO */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 60px 10%;
    background: #f5f5f5;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-button {
    background: #0077cc;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
}

.cta-button:hover {
    background: #005fa3;
}

/* HERO IMAGES */
.hero-images {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.image-box {
    position: relative;
}

.image-box img {
    max-width: 250px;
    border-radius: 10px;
}

.image-box span {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    font-size: 0.9em;
}

/* SECTIONS */
.section {
    padding: 60px 10%;
}

.section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.center {
    text-align: center;
}

/* HIGHLIGHT */
.highlight {
    background: #f9f9f9;
}

/* TWO COLUMNS */
.two-columns {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.two-columns div {
    flex: 1;
    min-width: 300px;
}

.two-columns img {
    width: 100%;
    margin-top: 15px;
    border-radius: 10px;
}

/* BENEFITS */
.benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.benefit {
    background: #eee;
    padding: 15px 20px;
    border-radius: 8px;
}

/* CTA */
.cta {
    text-align: center;
    padding: 60px 10%;
    background: #0077cc;
    color: white;
}

.cta .cta-button {
    background: white;
    color: #0077cc;
    margin-top: 20px;
    display: inline-block;
}

/* MOBILE */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-images {
        flex-direction: column;
    }
}

/* --- IMAGE COMPARISON SLIDER --- */
.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    cursor: col-resize;
}

.comparison-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
}

/* Das "Nachher"-Bild (geschlossen) liegt oben und wird beschnitten */
.image-overlay {
    z-index: 2;
    clip-path: inset(0 0 0 var(--position, 50%));
}

/* Der unsichtbare Range-Input zur Steuerung */
.slider-input {
    position: absolute;
    inset: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: col-resize;
    margin: 0;
}

/* Die Trennlinie */
.slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--position, 50%);
    width: 4px;
    background: white;
    z-index: 5;
    transform: translateX(-50%);
    pointer-events: none;
}

/* Der Slider-Button in der Mitte */
.slider-button {
    position: absolute;
    top: 50%;
    left: var(--position, 50%);
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    z-index: 6;
    transform: translate(-50%, -50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.slider-button::before {
    content: "◀ ▶";
    color: #0077cc;
    font-size: 14px;
    font-weight: bold;
}

/* Labels für bessere Orientierung */
.slider-label {
    position: absolute;
    bottom: 20px;
    padding: 5px 15px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 0.8em;
    border-radius: 4px;
    z-index: 7;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.label-before { left: 20px; }
.label-after { right: 20px; }

/* --- MODERN HERO VISUAL (Konsolidiert & Mobil-Optimiert) --- */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 350px;
}

.visual-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,119,204,0.1) 0%, rgba(245,245,245,0) 70%);
    border-radius: 50%;
    animation: pulse 4s infinite ease-in-out;
}

.status-badge {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
    transition: transform 0.3s ease;
    z-index: 2;
}

.badge-open { top: 15%; left: 5%; }
.badge-closed { bottom: 15%; right: 5%; }

.badge-icon { font-size: 2.5em; margin-bottom: 10px; }
.badge-text { font-weight: bold; font-size: 0.85em; color: #555; text-transform: uppercase; letter-spacing: 1px; }

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

/* RESPONSIVE FIX FÜR SMARTPHONES */
@media (max-width: 768px) {
    .hero-visual {
        min-height: auto;
        padding: 40px 0;
        flex-direction: column;
        gap: 20px;
    }

    .hero-visual div[style*="font-size: 10em"] {
        font-size: 7em !important;
        order: 1;
        margin-bottom: 10px;
    }

    .status-badge {
        position: static; /* Hebt das Schweben auf */
        width: 260px;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        padding: 12px;
        order: 2;
    }

    .badge-icon { font-size: 1.8em; margin-bottom: 0; }
    .visual-circle { width: 200px; height: 200px; top: 15%; left: 50%; transform: translateX(-50%); }
}