/* ============================
   Custom Cards für Bauprozess+
   ============================ */

/* Wrapper */
.custom-cards-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Container */
.custom-cards-container {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    min-height: 250px;
}

/* Card (default) */
.custom-card {
    flex: 1;
    min-width: 60px;
    min-height: 220px; /* verhindert extreme Verzerrung */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    overflow: hidden;
    margin: 0 5px;
    display: flex;
    align-items: flex-end;
    position: relative;
    transition: .6s cubic-bezier(.28,-0.03,0,.99);
    box-shadow: 0px 8px 20px -5px rgba(0,0,0,0.6);
}

/* Overlay für bessere Lesbarkeit */
.custom-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2); /* 20% Schwarz */
    z-index: 1;
}

/* Inhalt */
.custom-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 15px;
    color: white;
}

/* Icon – bleibt rund */
.custom-icon {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #223;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    font-weight: bold;
    font-size: 16px;
}

/* Beschreibung */
.custom-description {
    display: flex;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    height: auto;
    opacity: 0;
    transform: translateY(30px);
    transition-delay: .3s;
    transition: all .3s ease;
    color: white;
}

.custom-description p {
    color: #b0b0ba;
    padding-top: 5px;
}

.custom-description h4 {
    text-transform: uppercase;
}

/* Input-Mechanik */
.custom-card-input {
    display: none;
}

.custom-card-input:checked + label {
    flex: 4;
}

.custom-card-input:checked + label .custom-description {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Beispiel-Hintergründe */
.custom-card[for="c1"] { background-image: url("../img/WS1_a.jpg"); }
.custom-card[for="c2"] { background-image: url("../img/WS4_a.jpg"); }
.custom-card[for="c3"] { background-image: url("../img/bilder_alex/Bauprozessste.+_3.JPG"); }
.custom-card[for="c4"] { background-image: url("../img/construction_stock02.jpg"); }
.custom-card[for="c5"] { background-image: url("../img/IMG_0005.jpg"); }

/* -------------------
   RESPONSIVE BREAKPOINTS
------------------- */

/* Tablet */
@media (max-width: 992px) {
    .custom-cards-container {
        flex-direction: column;
        align-items: center;
        min-height: unset;
    }

    .custom-card {
        width: 90%;
        min-height: 180px;
        margin: 10px 0;
    }

    .custom-card-input:checked + label {
        flex: unset;
        width: 95%; /* aktive Card füllt mehr Platz */
    }
}

/* Smartphone */
@media (max-width: 576px) {
    .custom-card {
        width: 100%;
        min-height: 160px;
        border-radius: 0.5rem;
    }
}
