/* ========================================
   Base / Global
   ======================================== */

:root {
    --bg: #f7f7f5;
    --surface: #ffffff;
    --surface-soft: #f2f1ed;
    --surface-strong: #d8d5cf;
    --surface-showcase: #d3d0ca;
    --text: #171717;
    --muted: #6f6f6f;
    --muted-strong: #78746d;
    --border: #deded8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   Project Hero
   ======================================== */

.project-hero {
    min-height: calc(100svh - 80px - 200px);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto 1fr;
    column-gap: 6vw;
    align-items: center;
    padding: 48px 6vw 54px;
    background: var(--surface-soft);
}

.project-label {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted-strong);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.project-hero h1 {
    margin: 0;
    font-size: clamp(72px, 8vw, 130px);
    font-weight: 600;
    letter-spacing: -0.065em;
    line-height: 0.84;
}

.project-intro {
    max-width: 430px;
}

.project-intro p {
    max-width: 460px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.demo-link {
    display: inline-block;
    margin-top: 32px;
    padding-bottom: 5px;
    border-bottom: 1px solid currentColor;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.demo-link:hover {
    opacity: 0.55;
}

/* ========================================
   Project Overview
   ======================================== */

.project-overview {
    height: 200px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0 6vw;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.project-overview > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 28px 0 0;
    border-right: 1px solid var(--border);
}

.project-overview > div:not(:first-child) {
    padding-left: 28px;
}

.project-overview > div:last-child {
    border-right: 0;
}

.project-overview span {
    display: block;
    margin-bottom: 10px;
    color: #999;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-overview p {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
}

/* ========================================
   Project Visual
   ======================================== */

.project-visual {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 100px 6vw;
    background: var(--surface-strong);
}

.project-visual img {
    width: 82%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

/* ========================================
   Project Story
   ======================================== */

.project-story {
    display: grid;
    grid-template-columns: 0.55fr 1.45fr;
    column-gap: 6vw;
    row-gap: 36px;
    padding: 85px 6vw;
    border-bottom: 1px solid var(--border);
}

.project-story .section-label {
    margin: 8px 0 0;
    color: var(--muted-strong);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.project-story h2 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(48px, 4.6vw, 72px);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.98;
}

.project-story > p:last-child {
    grid-column: 2;
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.project-story-reverse {
    background: var(--surface-soft);
}

.project-story-reverse h2 {
    max-width: 850px;
}

.project-story-reverse > p:last-child {
    max-width: 650px;
}

/* ========================================
   Responsive Design Showcase
   ======================================== */

.mobile-showcase {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 6vw;
    padding: 100px 6vw;
    background: var(--surface-showcase);
}

.mobile-showcase-text {
    align-self: center;
}

.mobile-showcase-text .section-label {
    margin: 0 0 22px;
    color: var(--muted-strong);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mobile-showcase-text h2 {
    max-width: 520px;
    margin: 0;
    font-size: clamp(44px, 4.2vw, 68px);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.98;
}

.mobile-showcase-text > p:last-child {
    max-width: 430px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.mobile-showcase-images {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
}

.mobile-device-frame {
    position: relative;
    width: min(47%, 420px);
    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: "kanzlei-falkenberg.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 {
    height: auto;
    display: block;
    width: 100%;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.14);
}

.mobile-device-frame:nth-child(2) {
    margin-top: 70px;
}

/* ========================================
   Project CTA
   ======================================== */

.project-cta {
    min-height: 55svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 90px 6vw;
    text-align: center;
    background: var(--text);
    color: var(--surface);
}

.project-cta > p {
    margin: 0 0 24px;
    color: #999;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.project-cta h2 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(48px, 5vw, 76px);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.95;
}

.project-cta .button {
    display: inline-flex;
    margin-top: 34px;
    padding: 15px 22px;
    border: 1px solid #444;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-cta .button:hover {
    transform: translateY(-2px);
    border-color: #fff;
}

/* ========================================
   Responsive: Tablet / Mobile (≤ 1100px)
   Includes the 1032px-wide iPad Pro portrait viewport.
   ======================================== */

@media (max-width: 1100px) {


    /* Project Hero */

    .project-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 70px 24px 80px;
    }

    .project-label {
        grid-column: auto;
        font-size: 15px;
    }

    .project-hero h1 {
        font-size: clamp(70px, 16vw, 110px);
    }

    .project-intro {
        padding-bottom: 0;
    }

    /* Project Overview */

    .project-overview {
        height: auto;
        grid-template-columns: repeat(2, 1fr);
        padding: 0 24px;
    }

    .project-overview > div {
        padding: 24px 20px 26px 0;
    }

    .project-overview > div:not(:first-child) {
        padding-left: 20px;
    }

    .project-overview > div:nth-child(2) {
        border-right: 0;
    }

    .project-overview > div:nth-child(3),
    .project-overview > div:nth-child(4) {
        border-top: 1px solid var(--border);
    }

    .project-overview > div:nth-child(3) {
        padding-left: 0;
    }

    /* Project Visual */

    .project-visual {
        min-height: 0;
        padding: clamp(48px, 7vh, 70px) 24px;
    }

    /* Project Story */

    .project-story {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 100px 24px;
    }

    .project-story > p:last-child {
        grid-column: auto;
        margin-top: 0;
    }

    /* Responsive Design Showcase */

    .mobile-showcase {
        height: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 34px;
        padding: 48px 24px;
    }

    .mobile-showcase-images {
        gap: 24px;
    }

    .mobile-device-frame {
        width: min(calc(47% - 7px), 260px);
    }

    /* Project CTA */

    .project-cta {
        padding: 100px 24px;
    }

}

/* ========================================
   Responsive: Mobile (≤ 600px)
   ======================================== */

@media (max-width: 600px) {

    .mobile-device-frame {
        width: calc(50% - 7px);
    }

    .mobile-device-frame:nth-child(2) {
        margin-top: 40px;
    }

    /* Bei zwei Geräten nebeneinander: kompakter Browserkopf, URL zentriert */
    .mobile-device-frame:not(:only-child)::before {
        left: 12px;
        width: 4px;
        height: 4px;
        box-shadow: 8px 0 #5d5d5d, 16px 0 #444;
    }

    .mobile-device-frame:not(:only-child)::after {
        left: 50%;
        right: auto;
        width: calc(100% - 88px);
        padding: 0 6px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        transform: translateX(-50%);
    }

    
    /* Project Hero */

    .project-hero {
        height: auto;
        min-height: calc(100svh - 70px - 220px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: space-between;
        gap: 0;
        padding: 38px 24px 46px;
    }

    .project-label {
        margin: 0;
    }

    .project-hero h1 {
        margin: 72px 0 0;
        padding: 0;
        font-size: clamp(58px, 17vw, 76px);
        line-height: .84;
    }

    .project-intro {
        margin-top: 34px;
    }

    .project-intro p {
        font-size: 16px;
        line-height: 1.55;
    }

    .demo-link {
        margin-top: 24px;
    }

    /* Project Overview */

    .project-overview {
        height: auto;
        grid-template-columns: repeat(2, 1fr);
        padding: 0 24px;
    }

    .project-overview > div,
    .project-overview > div:not(:first-child),
    .project-overview > div:nth-child(3) {
        min-height: 110px;
        padding: 22px 14px 22px 0;
        border-top: 1px solid var(--border);
        border-right: 0;
    }

    .project-overview > div:nth-child(odd) {
        padding-right: 18px;
        border-right: 1px solid var(--border);
    }

    .project-overview > div:nth-child(even) {
        padding-left: 18px;
    }

    .project-overview > div:nth-child(1),
    .project-overview > div:nth-child(2) {
        border-top: 0;
    }

    .project-overview span {
        margin-bottom: 8px;
        font-size: 10px;
    }

    .project-overview p {
        font-size: 14px;
        line-height: 1.35;
    }

    /* Project Visual */

    .project-visual {
        overflow: hidden;
        height: auto;
        display: block;
        padding: 42px 24px;
    }

    .project-visual img {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 7px;
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
    }

    /* Project Story */

    .project-story {
        gap: 26px;
        padding: 72px 24px 78px;
    }

    .project-story h2 {
        font-size: 44px;
        line-height: .94;
    }

    .project-story > p:last-child {
        font-size: 16px;
        line-height: 1.65;
    }

    /* Responsive Design Showcase */

    .mobile-showcase {
        height: auto;
        padding: 80px 24px;
    }

    .mobile-showcase-text h2 {
        font-size: 42px;
    }

    .mobile-showcase-images {
        align-items: flex-start;
        gap: 14px;
    }

    /* Project CTA */

    .project-cta {
        min-height: 65vh;
        padding: 80px 24px;
    }

    .project-cta h2 {
        font-size: 48px;
    }

}

/* ========================================
   Responsive: Tablet Portrait (700–1100px)
   ======================================== */

@media (min-width: 700px) and (max-width: 1100px) and (orientation: portrait) {

    .project-hero,
    .project-overview,
    .project-visual,
    .project-story,
    .mobile-showcase {
        padding-right: 52px;
        padding-left: 52px;
    }

    /* Project Visual */

    .project-visual {
        height: auto;
        min-height: 0;
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .project-visual img {
        width: 80%;
    }

    .mobile-showcase {
        display: grid;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 32px;
        align-items: center;
    }

    .mobile-showcase-text {
        align-self: center;
    }

    .mobile-showcase-images {
        justify-content: flex-end;
    }

}

@media (min-width: 700px) and (max-width: 1100px) and (orientation: landscape) {

    .project-hero {
        min-height: calc(100svh - 80px - 200px);
        grid-template-columns: 1.1fr 0.9fr;
        grid-template-rows: auto 1fr;
        column-gap: 6vw;
        gap: 0;
        padding: 36px 6vw 40px;
    }

    .project-label {
        grid-column: 1 / -1;
    }

    .project-hero h1 {
        font-size: clamp(54px, 8vw, 82px);
    }

    .project-intro p {
        font-size: 15px;
    }

    .project-visual {
        min-height: 100svh;
    }

    .mobile-showcase {
        min-height: 100svh;
        display: grid;
        grid-template-columns: 0.8fr 1.2fr;
        gap: 6vw;
        padding: 36px 6vw;
    }

    .mobile-showcase-text h2 {
        font-size: clamp(36px, 4vw, 48px);
    }

    .mobile-showcase-text > p:last-child {
        margin-top: 14px;
        font-size: 14px;
    }

    .mobile-showcase-images {
        align-items: center;
    }
}

@media (min-width: 1101px) and (max-width: 1400px) and (orientation: landscape) {

    .mobile-showcase {
        min-height: 100svh;
        padding-top: 64px;
        padding-bottom: 64px;
    }
}
