/* Projekt-Unterseiten — Typografie und Farben 1:1 wie index.html */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');
@import url('case-kzu.css');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #f4f4f2;
    --bg-page: #e7ebf0;
    --bg-band: #e7ebf0;
    --card-bg: #ffffff;
    --accent: #F56E61;
    --text: #2a2a2a;
    --muted: #2a2a2a;
    --content-max: 1440px;
    --content-pad-x: 36px;
    --nav-bar-height: 56px;
    --accent-bar: 3px solid var(--accent);
    --accent-bar-pad: 13px;
    --body-text-size: 18px;
    --body-line-height: 1.65;
    /* Wie index.html: Hero / Sektionstitel / Case-H1 */
    --title-display-size: clamp(28px, 3.5vw, 42px);
    --title-display-weight: 700;
    --title-display-letter: -0.03em;
    --title-display-line: 1.15;
    /* Wie .project-card-title auf index.html */
    --project-card-title-size: clamp(20px, 1.75vw, 24px);
    /* Wie .footer-contact-heading / Case-H2 auf index.html */
    --section-heading-size: clamp(20px, 2.35vw, 26px);
}

/* Global: hide visible scrollbars across project pages */
html,
body,
* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
*::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: var(--body-text-size);
    line-height: var(--body-line-height);
    /* Wie index.html Desktop: Seitenstreifen = --bg-page, Content-Säule in .project-page */
    background: var(--bg-page);
    color: var(--text);
    overflow-x: clip;
}

/* Nav — wie index: Content-Breite, nicht volle Viewport-Breite */
nav {
    position: fixed;
    top: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(var(--content-max), 100vw);
    max-width: 100%;
    z-index: 1000;
    padding: 0 var(--content-pad-x);
    height: var(--nav-bar-height);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: rgba(244, 244, 242, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(42, 42, 42, 0.06);
    box-sizing: border-box;
}

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.5px;
    font-weight: 400;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* Projekt-Inhalt — gleiches Raster / Säule wie .page-wrap + main#works auf der Startseite */
.project-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 28px 32px;
    align-items: start;
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: calc(var(--nav-bar-height) + 48px) var(--content-pad-x) 160px;
    box-sizing: border-box;
    background: var(--bg);
    min-height: 100vh;
    overflow-x: clip;
    font-size: var(--body-text-size);
}

.project-page > .project-back,
.project-page > .project-page-header,
.project-page > .project-media-section,
.project-page > .project-live-embed,
.project-page > .project-screen-videos,
.project-page > .project-gallery,
.project-page > .journey-360,
.project-page > .project-case-more,
.project-page > .project-case-section,
.project-page > .project-case-figure,
.project-page > .case-kzu {
    grid-column: 1 / -1;
    min-width: 0;
}

.project-page > .journey-360 {
    justify-self: center;
    width: min(100%, 980px);
}

/* Wie .case-wrap .case-back (Migros): erstes Kindelement von .project-page, kein roter Rand am Link, sticky über die Seite; top = fixe Nav */
.project-page > .project-back {
    position: sticky;
    top: calc(var(--nav-bar-height) + env(safe-area-inset-top, 0px));
    z-index: 990;
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 24px;
    padding: 12px 0 14px;
    background: var(--bg);
    font-size: 13px;
    letter-spacing: 0.5px;
    color: var(--text);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s, color 0.2s;
    box-shadow: 0 1px 0 rgba(42, 42, 42, 0.06);
}

.project-page > .project-back:hover {
    opacity: 1;
    color: var(--accent);
}

/* Rote Linie: nicht bei Live-Vorschau, Screenrecordings oder «Darstellung»-Block */
.project-page > .project-gallery,
.project-page > .project-case-figure {
    padding-left: var(--accent-bar-pad);
    border-left: var(--accent-bar);
    box-sizing: border-box;
}

.project-page > .project-media-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Wie Text im Header ausgerückt, ohne rote Linie */
    padding-left: calc(var(--accent-bar-pad) + 3px);
    border-left: none;
    box-sizing: border-box;
}

.project-page > .project-media-section .project-live-embed,
.project-page > .project-media-section .project-screen-videos {
    padding-left: 0;
    border-left: none;
}

.project-media-section__title {
    font-size: var(--section-heading-size);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    text-transform: none;
    color: var(--text);
    margin: 0 0 16px;
    align-self: stretch;
    text-align: center;
}

.project-media-section > .project-screen-videos,
.project-media-section > .project-live-embed {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.project-media-section .project-live-embed-bar,
.project-media-section .project-screen-videos-bar {
    justify-content: center;
}

/* Unter «Darstellung» keine zweite Akzentlinie pro Unterabschnitt */
.project-case-more .project-case-section {
    padding-left: 0;
    border-left: none;
}

.project-case-more .project-case-figure {
    margin: 28px 0 40px;
}

/* Wie .category-header auf der Startseite */
.project-page-header {
    padding-left: var(--accent-bar-pad);
    border-left: var(--accent-bar);
    box-sizing: border-box;
    margin-bottom: 0;
}

/* Fallback: Zurück-Link noch im Header (veraltet — bevorzugt .project-page > .project-back wie Migros) */
.project-page-header .project-back {
    position: sticky;
    top: calc(var(--nav-bar-height) + env(safe-area-inset-top, 0px));
    z-index: 990;
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 24px;
    padding: 12px 0 14px;
    background: var(--bg);
    font-size: 13px;
    letter-spacing: 0.5px;
    color: var(--text);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s, color 0.2s;
    box-shadow: 0 1px 0 rgba(42, 42, 42, 0.06);
}
.project-page-header .project-back:hover {
    opacity: 1;
    color: var(--accent);
}

/* Wie .hero-title / .category-title auf der Startseite */
.project-page .work-detail-title {
    font-size: var(--title-display-size);
    font-weight: var(--title-display-weight);
    letter-spacing: var(--title-display-letter);
    line-height: var(--title-display-line);
    margin-bottom: 16px;
    color: var(--text);
}

.work-detail-client {
    font-size: var(--body-text-size);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
    color: var(--muted);
}

.project-page .work-detail-description {
    font-size: var(--body-text-size);
    font-weight: 400;
    letter-spacing: normal;
    line-height: var(--body-line-height);
    color: var(--text);
    margin-bottom: 48px;
    width: 60%;
    max-width: 80%;
    min-width: 0;
    box-sizing: border-box;
}

.project-page .kw {
    font-weight: 600;
    border-bottom: 2px solid rgba(245, 110, 97, 0.35);
}

/* Case-Abschnitte (z. B. TIGI 360°) */
.project-case-subtitle {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.85;
    margin: -8px 0 20px;
    line-height: 1.4;
}

.project-case-tagline {
    font-size: calc(var(--body-text-size) * 0.95);
    font-style: italic;
    color: var(--text);
    margin: -12px 0 28px;
    opacity: 0.9;
}

.project-case-section {
    padding-left: var(--accent-bar-pad);
    border-left: var(--accent-bar);
    box-sizing: border-box;
    margin-bottom: 36px;
}

/* TIGI 360: Journey-Bereich ohne Akzentlinie und mittig */
.project-case-section--journey {
    border-left: none;
    padding-left: 0;
    width: min(100%, 980px);
    margin-inline: auto;
    text-align: center;
}
.project-case-section--journey h2,
.project-case-section--journey p,
.project-case-section--journey .project-case-figure {
    margin-left: auto;
    margin-right: auto;
}
.project-case-section--journey p {
    max-width: 65ch;
}

.project-case-section:last-of-type {
    margin-bottom: 0;
}

.project-page > .project-page-header + .project-case-section.case-ziel {
    margin-top: 28px;
}

/* mpa.wine: sämtliche Textspalten (Header, Ziel, Umsetzung, Darstellung-Titel) auf 60 % */
.project-page--text-60 .project-page-header .work-detail-title,
.project-page--text-60 .project-page-header .work-detail-client,
.project-page--text-60 .project-page-header .project-intro,
.project-page--text-60 .project-page-header .project-case-subtitle,
.project-page--text-60 .project-page-header .project-case-tagline,
.project-page--text-60 .project-page-header .project-highlights,
.project-page--text-60 > .project-case-section,
.project-page--text-60 .project-case-more-title {
    width: 60%;
    max-width: 80%;
    min-width: 0;
    box-sizing: border-box;
}

.project-page--text-60 > .project-case-section {
    justify-self: start;
}

.project-page--text-60 > .project-case-section p {
    max-width: none;
}

.project-case-section.case-ziel {
    width: 60%;
    max-width: 80%;
    min-width: 0;
    justify-self: start;
}

.project-page > .project-case-section[aria-labelledby^="h-umsetzung"] {
    width: 60%;
    max-width: 80%;
    min-width: 0;
    justify-self: start;
}

.project-case-section h2 {
    font-size: var(--section-heading-size);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 12px;
    color: var(--text);
}

.project-case-section p {
    max-width: 65ch;
    margin-bottom: 14px;
}

.project-case-section p:last-child {
    margin-bottom: 0;
}

.project-case-section h3 {
    font-size: calc(var(--section-heading-size) * 0.92);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 1.35em 0 10px;
    color: var(--text);
}

.project-case-section h4 {
    font-size: calc(var(--body-text-size) * 1.05);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 1.15em 0 8px;
    color: var(--text);
}

.project-case-section h2 + h4 {
    margin-top: 0.75em;
}

.project-case-figure {
    margin: 40px 0;
}

.project-case-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid rgba(42, 42, 42, 0.08);
    box-shadow: 0 2px 12px rgba(19, 28, 36, 0.06);
}

/* 360° journey module: center visual + compact touchpoint cards */
.journey-360 {
    margin: 44px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.journey-360__center {
    width: min(100%, 560px);
    margin: 0 auto 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.journey-360__center h2 {
    margin: 0 0 8px;
    width: 100%;
}
.journey-360__center p {
    margin: 0 0 16px;
    width: 100%;
    max-width: 44ch;
    color: var(--muted);
}
.journey-360__center img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid rgba(42, 42, 42, 0.08);
    box-shadow: 0 2px 12px rgba(19, 28, 36, 0.06);
}
.journey-360__slider {
    width: min(100%, 980px);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}
.journey-360__gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 290px;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 12px 8px 2px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 12px;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
}
.journey-360__gallery {
    -ms-overflow-style: none;  /* IE and old Edge */
    scrollbar-width: none;     /* Firefox */
}
.journey-360__gallery::-webkit-scrollbar {
    display: none;             /* Chrome, Safari, Opera */
}
.journey-360__arrow {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(42, 42, 42, 0.2);
    background: #fff;
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.journey-360__arrow:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(245, 110, 97, 0.08);
}
.journey-360__arrow:disabled {
    border-color: rgba(42, 42, 42, 0.12);
    color: rgba(42, 42, 42, 0.32);
    background: rgba(42, 42, 42, 0.05);
    cursor: not-allowed;
}
.journey-360__arrow:disabled:hover {
    border-color: rgba(42, 42, 42, 0.12);
    color: rgba(42, 42, 42, 0.32);
    background: rgba(42, 42, 42, 0.05);
}
.journey-item {
    width: 290px;
    max-width: 290px;
    scroll-snap-align: start;
    padding: 14px;
    border: 1px solid rgba(42, 42, 42, 0.08);
    border-radius: 8px;
    background: #fff;
    display: grid;
    grid-template-rows: auto auto 1fr;
    min-height: 260px;
}
.journey-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
    display: block;
}
.journey-item h4 {
    margin: 0 0 6px;
    font-size: calc(var(--body-text-size) * 1.02);
    line-height: 1.25;
}
.journey-item p {
    margin: 0;
    font-size: calc(var(--body-text-size) * 0.94);
    color: var(--muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Case: Hotelplan — eingebettete Microsite */
.project-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}
.project-highlights li {
    /* Wie .tag auf index.html */
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 4px;
    background: linear-gradient(145deg, #f4f6f8 0%, #eef2f6 100%);
    color: var(--text);
}

/* Conversion/Communication: Metazeile wie bei Interactive-Experience-Cases */
.project-page--interactive-layout .work-detail-client {
    margin-bottom: 10px;
}
.project-page--interactive-layout .work-detail-description,
.project-page--interactive-layout .project-intro {
    margin-bottom: 24px;
}
.project-page--interactive-layout .project-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}
.project-page--interactive-layout .project-highlights li {
    font-size: var(--body-text-size);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
}
.project-page--interactive-layout .project-highlights li + li::before {
    content: " · ";
    color: var(--muted);
}
.project-live-embed {
    margin: 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(42, 42, 42, 0.08);
    box-shadow: 0 2px 12px rgba(19, 28, 36, 0.04);
    background: var(--card-bg);
}
.project-live-embed-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: rgba(42, 42, 42, 0.04);
    border-bottom: 1px solid rgba(42, 42, 42, 0.06);
}
.project-live-embed-label {
    /* Wie .project-card-visual-label auf index.html */
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}
.project-live-embed-frame {
    display: block;
    width: 100%;
    height: min(74vh, 860px);
    border: 0;
    background: var(--bg);
}

/* Screenrecordings (z. B. Peugeot 208) — wie Live-Embed-Karte */
.project-screen-videos {
    margin: 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(42, 42, 42, 0.08);
    box-shadow: 0 2px 12px rgba(19, 28, 36, 0.04);
    background: var(--card-bg);
}
.project-screen-videos-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: rgba(42, 42, 42, 0.04);
    border-bottom: 1px solid rgba(42, 42, 42, 0.06);
}
.project-screen-videos-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 320px);
    gap: 24px 28px;
    align-items: start;
    padding: 18px;
    background: var(--bg);
    box-sizing: border-box;
}

/* Nur Mobile-Video (z. B. Homie-Webapp) — zentriert, schmale Spalte */
.project-screen-videos-grid--single-mobile {
    grid-template-columns: minmax(0, 1fr);
    max-width: 470px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
}

.project-screen-videos-grid figure {
    margin: 0;
    min-width: 0;
}
.project-screen-videos-grid--single-mobile figure {
    justify-self: center;
}
.project-screen-videos-grid video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid rgba(42, 42, 42, 0.08);
    background: #0f0f0f;
    box-shadow: 0 2px 12px rgba(19, 28, 36, 0.06);
}

/* Vimeo crop viewport for MyHomie: fixed portrait viewport */
.project-video-crop-300x600 {
    width: 380px;
    height: 600px;
    max-width: 380px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(42, 42, 42, 0.08);
    background: #0f0f0f;
    box-shadow: 0 2px 12px rgba(19, 28, 36, 0.06);
    display: flex;
    justify-content: center;
}
.project-video-crop-300x600 iframe {
    width: 100%;
    height: 600px;
    border: 0;
    margin-left: 0;
}

/* MyHomie Vimeo: transparent outer container */
.project-screen-videos--transparent {
    background: transparent;
    border: 0;
    box-shadow: none;
}
.project-screen-videos--transparent .project-screen-videos-bar {
    background: transparent;
    border-bottom: 0;
    padding-bottom: 10px;
}
.project-screen-videos--transparent .project-screen-videos-grid {
    background: transparent;
    padding-top: 0;
}

/* MyHomie: two-column live preview with image slider */
.project-screen-videos-grid--homie-live {
    grid-template-columns: minmax(320px, 430px) minmax(320px, 430px);
    align-items: start;
    justify-content: center;
}
.homie-live-slider {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.homie-live-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    border-radius: 8px;
    border: 1px solid rgba(42, 42, 42, 0.08);
    box-shadow: 0 2px 12px rgba(19, 28, 36, 0.06);
    background: #fff;
}
.homie-live-gallery::-webkit-scrollbar {
    display: none;
}
.homie-live-slide {
    margin: 0;
    scroll-snap-align: start;
}
.homie-live-slide img {
    width: 95%;
    height: 570px;
    object-fit: contain;
    display: block;
    margin: 15px auto;
    background: #fff;
}
.homie-live-arrow {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(42, 42, 42, 0.2);
    background: #fff;
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.homie-live-controls {
    margin-top: 10px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.homie-live-arrow:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(245, 110, 97, 0.08);
}
.homie-live-arrow:disabled {
    border-color: rgba(42, 42, 42, 0.12);
    color: rgba(42, 42, 42, 0.32);
    background: rgba(42, 42, 42, 0.05);
    cursor: not-allowed;
}
.homie-live-arrow:disabled:hover {
    border-color: rgba(42, 42, 42, 0.12);
    color: rgba(42, 42, 42, 0.32);
    background: rgba(42, 42, 42, 0.05);
}
.project-screen-videos-caption {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: var(--muted);
    opacity: 0.85;
    margin-top: 10px;
    letter-spacing: 0.02em;
}
@media (max-width: 900px) {
    .project-screen-videos-grid {
        grid-template-columns: 1fr;
    }
    .project-screen-videos-grid--homie-live {
        grid-template-columns: 1fr;
    }
    .project-screen-videos-grid .project-screen-videos-item--mobile {
        max-width: 360px;
        justify-self: center;
    }
    .homie-live-arrow {
        display: none;
    }
}

/* Nach Live-Embed: Darstellung / Screenshots / Druck — ohne linke Akzentlinie, Ausrichtung wie Header */
.project-case-more {
    margin-top: 0;
    padding-left: calc(var(--accent-bar-pad) + 3px);
    border-left: none;
    box-sizing: border-box;
}
.project-case-more-title {
    font-size: var(--section-heading-size);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    text-transform: none;
    color: var(--text);
    margin: 0 0 24px;
}
.project-case-more-link {
    margin: -8px 0 20px;
}
.project-case-more-link a {
    font-size: 14px;
    letter-spacing: 0.02em;
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: rgba(42, 42, 42, 0.3);
    text-underline-offset: 2px;
    transition: color 0.2s, text-decoration-color 0.2s;
}
.project-case-more-link a:hover {
    color: var(--accent);
    text-decoration-color: rgba(245, 110, 97, 0.55);
}

.project-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
.project-gallery img {
    width: 50%;
    max-width: 50%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.project-gallery:has(> img:nth-child(4):last-child) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
    align-items: start;
    justify-items: stretch;
}
.project-gallery:has(> img:nth-child(4):last-child) img {
    width: 100%;
    max-width: 100%;
}

/* Webapp (Bootcamp Gesellenstück): drei Spalten, Bilder zentriert; Basis 86 % × 0,6, zuletzt +15 % → 86 % × 0,69 */
.project-gallery--webapp {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 32px;
    align-items: start;
    justify-items: center;
}
.project-gallery--webapp img {
    width: calc(86% * 0.69);
    max-width: calc(86% * 0.69);
    height: auto;
}

/* mpa.wine, Tigi 360° Launch u. a.: Galerie in zwei Spalten */
.project-gallery--mpawine,
.project-gallery--two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
    align-items: start;
    justify-items: stretch;
}

/* Kulturkorridor: Darstellung in drei Spalten; Bilder 20 % kleiner, in der Zelle zentriert */
.project-gallery--kulturkorridor {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 32px;
    align-items: start;
    justify-items: center;
}
.project-gallery--mpawine img,
.project-gallery--two-col img {
    width: 100%;
    max-width: 100%;
    height: auto;
}
.project-gallery--three-col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 32px;
    align-items: start;
    justify-items: stretch;
}
.project-gallery--three-col img {
    width: 100%;
    max-width: 100%;
    height: auto;
}
.project-gallery--kulturkorridor img {
    width: 80%;
    max-width: 80%;
    height: auto;
}

/* Wie Fließtext — nur optional kursiv hervorgehoben */
.project-intro {
    font-size: var(--body-text-size);
    font-weight: 400;
    line-height: var(--body-line-height);
    color: var(--text);
    margin-bottom: 20px;
    font-style: italic;
}

/* Footer — identisch zur Startseite */
footer {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 48px var(--content-pad-x) 40px;
    text-align: center;
    background: var(--bg-band);
}
.footer-contact {
    max-width: 560px;
    margin: 0 auto;
}
.footer-contact-heading {
    font-size: var(--section-heading-size);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 10px;
}
.footer-contact-lead {
    font-size: var(--body-text-size);
    font-weight: 400;
    line-height: var(--body-line-height);
    color: var(--text);
    margin-bottom: 20px;
}
.contact-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
footer .contact-links {
    justify-content: center;
    margin-bottom: 24px;
}
.contact-links a {
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: none;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}
.contact-links a:hover {
    border-bottom-color: var(--accent);
    color: var(--accent);
}
.footer-text {
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--muted);
}

@media (max-width: 768px) {
    :root {
        --page-gutter-x: calc(20px + clamp(10px, 5.2vw, 24px));
    }
    body {
        background: var(--bg);
    }
    nav {
        padding-left: max(var(--page-gutter-x), env(safe-area-inset-left, 0px));
        padding-right: max(var(--page-gutter-x), env(safe-area-inset-right, 0px));
        width: min(
            var(--content-max),
            calc(
                100vw -
                max(var(--page-gutter-x), env(safe-area-inset-left, 0px)) -
                max(var(--page-gutter-x), env(safe-area-inset-right, 0px))
            )
        );
    }
    .nav-links { gap: 20px; }
    .nav-links a { font-size: 13px; }
    .project-page .work-detail-description {
        width: 100%;
        max-width: 100%;
    }
    .project-page .project-page-header .work-detail-title,
    .project-page .project-page-header .work-detail-client,
    .project-page .project-page-header .project-intro,
    .project-page .project-page-header .project-case-subtitle,
    .project-page .project-page-header .project-case-tagline,
    .project-page .project-page-header .project-highlights,
    .project-case-section.case-ziel,
    .project-page > .project-case-section[aria-labelledby^="h-umsetzung"],
    .project-page--text-60 > .project-case-section,
    .project-page--text-60 .project-case-more-title {
        width: 100%;
        max-width: 100%;
    }
    .project-page {
        padding: calc(var(--nav-bar-height) + 32px)
            max(var(--page-gutter-x), env(safe-area-inset-left, 0px)) 96px
            max(var(--page-gutter-x), env(safe-area-inset-right, 0px));
    }
    footer {
        padding: 40px max(var(--page-gutter-x), env(safe-area-inset-left, 0px)) 32px
            max(var(--page-gutter-x), env(safe-area-inset-right, 0px));
    }
    .footer-contact {
        max-width: 100%;
        width: 100%;
    }
    .project-gallery:has(> img:nth-child(4):last-child) {
        grid-template-columns: 1fr;
    }
    .project-gallery--webapp {
        grid-template-columns: 1fr;
    }
    .project-gallery--mpawine,
    .project-gallery--two-col,
    .project-gallery--kulturkorridor,
    .project-gallery--three-col {
        grid-template-columns: 1fr;
    }
    .journey-360 {
        margin: 36px 0;
    }
    .journey-360__intro {
        text-align: left;
    }
    .journey-360__center {
        width: min(100%, 420px);
        margin: 0 auto 24px;
    }
    .journey-360__center img {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
    .journey-360__center h2,
    .journey-360__center p {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
    .journey-360__slider {
        width: 100%;
        grid-template-columns: 1fr;
    }
    .journey-360__arrow {
        display: none;
    }
    .journey-360__gallery {
        grid-auto-columns: min(82vw, 290px);
        gap: 14px;
    }
    .project-live-embed-frame {
        height: min(68vh, 520px);
    }
}
