/* Container-Wrapper, der oben bündig abschließt und vertikale Überhänge maskiert */
.schraege-auswahl-wrapper {
    width: 100%;
    overflow: hidden;
    padding-bottom: 120px; /* Platz nur unten für den versetzten Spaltenüberhang */
    margin-bottom: -120px;
}

.schraege-auswahl {
    display: flex;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-items: flex-start; /* Spalten starten oben alle auf exakt derselben Linie */
    font-family: sans-serif;
}

/* Premium Desktop-Spalten */
.schraege-auswahl .spalte {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 -2px !important;

    /* Oben bündig & eckig */
    border-top-left-radius: 0px !important;
    border-top-right-radius: 0px !important;

    /* Standard-Rundung unten auf 6px gesetzt */
    border-bottom-left-radius: 6px !important;
    border-bottom-right-radius: 6px !important;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);

    /* Weiche Animationen */
    transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

/* Natürliches, schwebendes Hover-Verhalten */
.schraege-auswahl .spalte:hover {
    flex: 1.25;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    z-index: 10;
}

/* Außen-Kompensation gegen weiße Ecken */
.schraege-auswahl .spalte:first-child {
    margin-left: -60px !important; 
    padding-left: 60px !important;
}
.schraege-auswahl .spalte:last-child {
    margin-right: -60px !important;
    padding-right: 60px !important;
}

/* Hintergrundbild gerade lassen */
.schraege-auswahl .bild-hintergrund {
    position: absolute;
    top: 0;
    left: -25%;
    width: 150%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: skewX(8deg) scale(1.25);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.schraege-auswahl .spalte:hover .bild-hintergrund {
    transform: skewX(8deg) scale(1.32);
}

/* Farb-Overlay */
.schraege-auswahl .farb-overlay {
    position: absolute;
    top: 0;
    left: -25%;
    width: 150%;
    height: 100%;
    transform: skewX(8deg);
    opacity: 0.4;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.schraege-auswahl .spalte:hover .farb-overlay {
    opacity: 0.8;
}

/* Inhalt im Desktop */
.schraege-auswahl .inhalt {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 30px;
    width: 100%;
    transform: skewX(8deg);
}
.schraege-auswahl .inhalt h2 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 15px 0;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* --- KEIN HINTERGRUND MEHR HINTER DEN HOVER-LINKS --- */
.schraege-auswahl .hover-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.schraege-auswahl .spalte:hover .hover-links {
    max-height: 220px;
    opacity: 1;
}
.schraege-auswahl .hover-links a {
    color: #ffffff;
    text-decoration: none;
    background: transparent !important;
    border: none !important;
    padding: 4px 0 !important;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s, text-decoration 0.2s;
    display: inline-block;
}
.schraege-auswahl .hover-links a:hover {
    text-decoration: underline !important;
    transform: scale(1.05);
}

/* --- OPTIMIERTES POP-UP (KLEBT NIRGENDS MEHR, SITZT PERFEKT ZENTRIERT) --- */
.sa-modal {
    display: none;
    position: fixed;
    z-index: 999999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(10, 10, 10, 0.4) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;

    /* Absolute Zentrierung erzwingen */
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sa-modal.sa-active {
    display: flex !important;
    opacity: 1;
}
.sa-modal-content {
    color: #ffffff !important;
    padding: 32px 24px !important;
    border-radius: 24px !important;

    /* Perfekte seitliche Abstände an allen Geräten */
    width: calc(100% - 40px) !important; 
    max-width: 340px !important;
    margin: 0 auto !important; /* Horizontale Zentrierung sichern */

    box-sizing: border-box !important;
    position: relative !important;
    text-align: center !important;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1), 
        0 20px 40px -10px rgba(0, 0, 0, 0.35),
        inset 0 1px 0px rgba(255, 255, 255, 0.2) !important;
    transform: scale(0.9) translateY(10px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.sa-modal.sa-active .sa-modal-content {
    transform: scale(1) translateY(0);
}
.sa-modal-close {
    position: absolute !important;
    top: 16px !important;
    right: 18px !important;
    font-size: 24px !important;
    font-weight: 300 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    cursor: pointer !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    transition: background 0.2s, transform 0.2s, color 0.2s !important;
}
.sa-modal-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}
.sa-modal-title {
    margin-top: 8px !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: #ffffff !important;
    margin-bottom: 24px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
}
.sa-modal-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}
.sa-modal-links a {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    padding: 14px 20px !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: background 0.2s, transform 0.2s !important;
}
.sa-modal-links a:hover {
    background: rgba(255, 255, 255, 0.28) !important;
}

/* --- MOBIL-OPTIMIERUNG (MODERNISIERT, SCHATTEN & UNGERUNDET) --- */
@media (max-width: 768px) {
    .schraege-auswahl-wrapper {
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
    .schraege-auswahl {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        gap: 0px !important;
        padding: 10px 0 !important; /* Minimaler Abstand oben/unten für Schatten-Rendering */
        overflow: visible !important;
    }

    .schraege-auswahl .spalte {
        height: 165px !important;
        transform: none !important;
        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
        margin-bottom: -24px !important; 

        /* Strikte Vorgabe: Keine Abrundungen auf Mobilgeräten */
        border-radius: 0px !important; 
        border: none !important;

        /* Premium Soft-Schatten */
        filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
        -webkit-filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));

        /* Gleichbleibender, schräger Schnitt für maximale Symmetrie */
        clip-path: polygon(0 0, 100% 12%, 100% 100%, 0 88%) !important;
        -webkit-clip-path: polygon(0 0, 100% 12%, 100% 100%, 0 88%) !important;
    }

    .schraege-auswahl .spalte:first-child {
        clip-path: polygon(0 0, 100% 12%, 100% 100%, 0 88%) !important;
        -webkit-clip-path: polygon(0 0, 100% 12%, 100% 100%, 0 88%) !important;
    }
    .schraege-auswahl .spalte:last-child {
        margin-bottom: 0 !important;
        clip-path: polygon(0 0, 100% 12%, 100% 100%, 0 88%) !important;
        -webkit-clip-path: polygon(0 0, 100% 12%, 100% 100%, 0 88%) !important;
    }

    .schraege-auswahl .bild-hintergrund {
        transform: none !important;
        width: 100% !important;
        left: 0 !important;
        height: 100% !important;
    }
    .schraege-auswahl .farb-overlay {
        transform: none !important;
        width: 100% !important;
        left: 0 !important;
        height: 100% !important;
    }

    /* Elegant zentrierte Mobile Typografie */
    .schraege-auswahl .inhalt {
        transform: none !important;
        padding: 24px !important;
    }
    .schraege-auswahl .inhalt h2 {
        margin: 0 !important;
        font-size: 1.6rem !important;
        font-weight: 700;
        letter-spacing: -0.01em;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    }
    .schraege-auswahl .hover-links {
        display: none !important;
    }
}
