:root {
    --reinigung-color: #005ce6;
    --umzug-color: #ff5500;
    --sicherheit-color: #f7cc00;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background: #000;
    color: #fff;
    font-family: 'Mona Sans', sans-serif;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

.accordion-container {
    display: flex;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
}

.panel {
    position: relative;
    flex: 1;
    height: 100%;
    overflow: hidden;
    transition: flex 1.2s var(--ease-out-expo);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

.panel:hover {
    flex: 6;
}

/* Background Colors */
.panel-reinigung { background-color: var(--reinigung-color); }
.panel-umzug { background-color: var(--umzug-color); }
.panel-sicherheit { background-color: var(--sicherheit-color); }

/* Floating Human Subject Image */
.subject-image {
    position: absolute;
    width: 90vh;
    height: 90vh;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
    transition: all 1.2s var(--ease-out-expo);
    filter: drop-shadow(0 40px 80px rgba(0,0,0,0.35));
    opacity: 0.9;
}

.panel:hover .subject-image {
    transform: scale(1.1) translateX(15%);
    opacity: 1;
}

/* Content Overlay */
.panel-content {
    position: relative;
    z-index: 2;
    padding: 4rem 8rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s var(--ease-out-expo);
}

.panel:hover .panel-content {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

/* Typography */
.eyebrow {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.8);
}

.title {
    font-size: clamp(3.5rem, 8vw, 10rem);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    line-height: 0.8;
    letter-spacing: -0.06em;
    margin-bottom: 3rem;
    max-width: 800px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}

.description {
    font-size: 1.4rem;
    max-width: 500px;
    margin-bottom: 4rem;
    line-height: 1.35;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
}

/* Button */
.btn-discover {
    display: inline-block;
    padding: 1.4rem 4rem;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #fff;
    border: 4px solid #fff;
    border-radius: 9999px;
    transition: all 0.4s var(--ease-out-expo);
    background: transparent;
}

.btn-discover:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Collapsed State: Show Title Vertically */
.collapsed-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    font-size: 3.5rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: -0.02em;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 5;
    color: rgba(255,255,255,0.4);
}

.panel:hover .collapsed-title {
    opacity: 0;
}

/* Mobile / Touch Optimization */
@media (max-width: 1024px) {
    body { overflow: hidden; }
    .accordion-container { 
        flex-direction: column; 
        height: 100dvh;
    }
    .panel { 
        flex: 1; 
        width: 100%;
        height: auto;
        transition: flex 0.8s var(--ease-out-expo);
    }
    .panel.active {
        flex: 5;
    }
    .subject-image { 
        width: 45vh; 
        height: 45vh; 
        top: 50%; 
        left: 50% !important; 
        transform: translate(-50%, -50%) !important; 
        opacity: 0.3 !important; 
        transition: all 0.8s var(--ease-out-expo);
    }
    .panel.active .subject-image {
        opacity: 0.8 !important;
        transform: translate(-50%, -60%) scale(1.1) !important;
    }
    .panel-content { 
        padding: 2rem; 
        justify-content: center; 
        opacity: 0 !important; 
        align-items: center; 
        text-align: center; 
        transform: translateY(20px) !important;
        transition: all 0.6s var(--ease-out-expo);
        height: 100%;
    }
    .panel.active .panel-content {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition-delay: 0.3s;
    }
    .collapsed-title { 
        opacity: 1; 
        transform: translate(-50%, -50%) rotate(0deg); 
        font-size: 2rem;
        transition: opacity 0.4s;
    }
    .panel.active .collapsed-title {
        opacity: 0;
    }
    .title { 
        font-size: 2.8rem; 
        margin-bottom: 1.5rem; 
        line-height: 0.9; 
        text-align: center;
    }
    .description { display: none; }
    .btn-discover { 
        padding: 0.8rem 2.5rem; 
        font-size: 0.8rem; 
        border-width: 3px;
    }
    .fixed.top-6 {
        top: 1.5rem;
        left: 1.5rem;
    }
}
