/* ========================================
   FUGE Strata 13 – Farbwelt der Case Study
   Kühles Grau wie das eloxierte Gehäuse, Orange nur als
   kleines Quadrat (wie im FUGE-Logo der Demo).
   Alle Textfarben ≥ 4,5:1 auf ihrem Grund.
   ======================================== */

:root {
    --bg: #eef0f1;
    --surface: #f8f9fa;
    --surface-soft: #e4e7e9;
    --surface-strong: #cdd2d6;
    --surface-showcase: #dde1e4;
    --text: #111315;
    --muted: #5b6166;
    --muted-strong: #4d5459;
    --border: #cfd4d8;
    --showcase-label: #4d5459;
    --showcase-text: #50565b;
}

.project-label,
.project-story .section-label,
.mobile-showcase-text .section-label {
    color: var(--muted-strong);
}

/* oranges Quadrat vor dem Label, wie das Logo der Demo */
.project-label::before {
    content: "";
    display: inline-block;
    width: 0.62em;
    height: 0.62em;
    margin-right: 0.6em;
    background: #ff4f12;
    vertical-align: 0.02em;
}

.project-visual img {
    max-width: 86%;
}

.mobile-device-frame {
    position: relative;
    width: fit-content;
    padding: 24px 8px 8px;
    overflow: hidden;
    border: 1px solid #3a3a3a;
    border-radius: 24px;
    background: #171717;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.2);
}

.mobile-device-frame::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 16px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #777;
    box-shadow: 10px 0 #5d5d5d, 20px 0 #444;
    z-index: 1;
}

.mobile-device-frame::after {
    content: "fuge-strata.de";
    position: absolute;
    top: 4px;
    left: 50%;
    width: clamp(118px, 44%, 148px);
    height: 18px;
    border-radius: 9px;
    background: #292929;
    color: #8b8b8b;
    font-size: 8px;
    line-height: 18px;
    text-align: center;
    transform: translateX(-50%);
    z-index: 1;
}

.mobile-device-frame img {
    width: auto;
    max-width: min(78vw, 420px);
    height: auto;
    max-height: calc(100svh - 232px);
    display: block;
    border-radius: 0 0 16px 16px;
}

.project-cta {
    background: var(--text);
}

@media (max-width: 600px) {
    .project-visual img {
        width: 100%;
        max-width: 100%;
    }

    .mobile-device-frame {
        width: 95%;
    }

    .mobile-device-frame img {
        width: 100%;
        max-width: 100%;
        max-height: none;
    }
}

@media (min-width: 700px) and (max-width: 1100px) and (orientation: portrait) {
    .mobile-device-frame {
        width: min(46%, 260px);
    }

    .mobile-device-frame img {
        width: 100%;
        max-width: 100%;
        max-height: none;
    }
}

@media (min-width: 700px) and (max-width: 1100px) and (orientation: landscape) {
    .mobile-device-frame {
        width: min(55%, 280px);
    }

    .mobile-device-frame img {
        width: 100%;
        max-width: 100%;
        max-height: none;
    }
}

@media (min-width: 1101px) and (max-width: 1400px) and (orientation: landscape) {
    .mobile-device-frame {
        width: min(55%, 360px);
    }

    .mobile-device-frame img {
        width: 100%;
        max-width: 100%;
        max-height: none;
    }
}


/* ========================================
   Handy-Feinschliff (nur ≤ 600 px)
   Screenshot unter „Responsive Design“ kleiner.
   ======================================== */

@media (max-width: 600px) {
    .mobile-device-frame {
        width: min(62%, 232px);
        padding-top: 22px;
        border-radius: 22px;
    }

    .mobile-device-frame::after {
        width: clamp(96px, 50%, 124px);
        font-size: 7px;
    }

    .mobile-device-frame img {
        width: 100%;
        max-width: 100%;
        max-height: none;
        border-radius: 0 0 14px 14px;
    }
}


/* Entwurf ↔ Ergebnis: gleiche Breite wie zuvor das Desktop-Bild */
.ba {
    width: min(86%, calc((100svh - 200px) * 1.6));
}

@media (min-width: 700px) and (max-width: 1100px) and (orientation: portrait) {
    .ba { width: 80%; }
}

@media (max-width: 600px) {
    .ba { width: 100%; }
}
