/* ========== PROJEKTPHASEN PAGE ========== */
/* Depende de styles.css (variables :root, animaciones globales) */

/* ----- Links ----- */
#projektphasen {
    color: var(--neon-blue);
}

.anchor-target {
    display: block;
    position: relative;
    top: -5.5vh; 
    visibility: hidden;
}

/* ===== LEBENSZYKLUS CARD — BASE (mobile first) ===== */
.lebenszyklus-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 2.5rem;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    border-radius: 40px;
    border: 0.0625rem solid rgba(255, 255, 255, 0.35);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.4s ease;
}

.lebenszyklus-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.20);
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-5px);
    z-index: 2;
}

/* ===== CONTENEDOR DE TEXTO ===== */
.lebenszyklus-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* ===== TÍTULO ===== */
.lebenszyklus-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #0000FF;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: -0.1rem;
    text-align: center;
    width: 100%;
}

/* ===== DESCRIPCIÓN ===== */
.lebenszyklus-description {
    font-size: 1rem;
    line-height: 1.3;
    color: #333;
    text-align: center;
    width: 100%;
    margin: 0;
}

.lebenszyklus-description.p-section-end {
    margin-bottom: 1em;
    margin-top: 0;
}

/* ===== CONTENEDOR DE IMAGEN ===== */
.lebenszyklus-image-container {
    width: 100%;
    flex-shrink: 0;
}

.lebenszyklus-image-container img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 12 / 10;
    object-fit: cover;
    border-radius: 1.875rem;
    box-shadow: 0 0.9375rem 1.875rem rgba(0, 0, 0, 0.2);
}

/* ===== LAYOUT HORIZONTAL — >768px ===== */
@media (min-width: 769px) {

    .lebenszyklus-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 3rem;
    }

    .lebenszyklus-content {
        flex: 1;
        /*align-items: flex-start;*/
    }

    .lebenszyklus-title {
        text-align: center;
    }

    .lebenszyklus-description {
        text-align: center;
    }

    .lebenszyklus-image-container {
        flex: 1;
    }
}

/* ===== RESPONSIVE — ≤768px ===== */
@media (max-width: 768px) {

    .lebenszyklus-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
        padding: 5rem;
    }

    .lebenszyklus-card.show {
        transform: none;
    }

    .lebenszyklus-card.show:hover {
        transform: translateY(-3px);
    }

    .lebenszyklus-content {
        align-items: center;
        width: 100%;
    }

    .lebenszyklus-title {
        order: 1;
        margin-bottom: 0.5rem;
        width: 100%;
        text-align: center;
    }

    .lebenszyklus-image-container {
        order: 3;
        width: 100%;
        justify-content: center;
        margin: 2rem auto 0;
    }

    .lebenszyklus-image-container img {
        border-radius: 15px;
        width: 100%;
        height: auto;
        display: block;
        aspect-ratio: auto;
        object-fit: cover;
    }

    .lebenszyklus-description {
        order: 2;
        width: 100%;
        line-height: 1.3;
        margin-top: 1rem;
        text-align: center;
        font-size: 1.1rem;
    }
}

/* ===== RESPONSIVE — ≤480px ===== */
@media (max-width: 480px) {

    .lebenszyklus-card {
        padding: 20px 1.5rem;
    }
}

/* ===== MOBILE LANDSCAPE — ≤932px ===== */
@media (max-width: 932px) and (orientation: landscape) {
    .global-site-container {
        min-height: 100vh;
        min-height: 100dvh;
        min-height: -webkit-fill-available;
        padding-bottom: max(3vh, env(safe-area-inset-bottom));
    }

    .lebenszyklus-grid {
        gap: min(10vh, 4rem);
        padding: 2rem 20px;
    }

    .lebenszyklus-card,
    .lebenszyklus-card.show {
        width: 95%;
        margin: 0 auto;
        padding: 6vh 4vw;
        gap: min(3rem, 5vw);
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: center;
    }

    .lebenszyklus-content {
        flex: 1;
        min-width: 0;
        /*align-items: flex-start;
        text-align: left;*/
    }

    .lebenszyklus-title {
        order: initial;
        width: auto;
        margin: 0 0 0.5rem 0;
        text-align: center;
        font-size: clamp(1.15rem, 2.1vw, 1.35rem);
        letter-spacing: -0.04rem;
    }

    .lebenszyklus-description {
        order: initial;
        width: auto;
        margin: 0 0 0.45rem 0;
        text-align: center;
        font-size: clamp(0.88rem, 1.5vw, 0.98rem);
        line-height: 1.3;
    }

    .lebenszyklus-description.p-section-end {
        margin-bottom: 0.7rem;
    }

    .lebenszyklus-image-container {
        order: initial;
        flex: 0 0 40%;
        width: auto;
        max-width: 40%;
        margin: 0;
        justify-content: center;
    }

    .lebenszyklus-image-container img {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        /*max-height: 40vh;
        max-height: 40dvh;       
        border-radius: 1rem;*/
    }
}

/* ===== PANTALLAS GRANDES — ≥1200px ===== */
@media (min-width: 1200px) {

    .lebenszyklus-description {
        line-height: 1.2;
        font-size: 1.2rem;
        text-align: center;
    }
}

/* ===== PANTALLAS MAXI — ≥1400px ===== */
@media (min-width: 1400px) {

    .lebenszyklus-description {
        line-height: 1.3;
        font-size: 1.3rem;
        text-align: center;
    }

    .lebenszyklus-title {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        margin-bottom: 12px;
        letter-spacing: -0.1rem;
        text-align: center;
    }
}

@media (min-width: 1901px) {
    .lebenszyklus-title {
        font-size: clamp(1.28rem, 3.7vw, 2.1rem);
    }

    .lebenszyklus-description {
        font-size: 1.5rem;
    }
}
