/* Homepage – Layout nach Designkonzept (XD) */

body.home {
    padding-top: 0;
    overflow-x: clip;
}

body.home section {
    min-height: 0;
}

/* Anker-Ziele: Abstand unter fixiert wirkendem Header */
body.home section[id]:not(#home) {
    scroll-margin-top: 5.5rem;
}

/* Header: weiter unten, weißer runder Balken wie in der Vorlage */
body.home .site-header {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding: clamp(2.4rem, 6vh, 3.9rem) clamp(1rem, 3vw, 2rem) 0;
}

body.home .header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.25rem;
    background: #ffffff;
    border-radius: 999px;
    padding: 0 clamp(1.2rem, 2vw, 2rem);
    height: 3.3em;
}

body.home .logo-link {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    transform: translateY(0.6rem) translateX(-0.8em);
}

body.home .site-logo {
    height: max(3.2vw, 40px);
}

body.home .main-nav ul {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem clamp(2rem, 4vw, 5rem);
    align-items: center;
    transform: translateY(0.6rem);
}

body.home .main-nav a {
    font-size: clamp(1.12rem, 1.4vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0;
}

body.home .nav-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.25rem;
    color: var(--petrol);
}

body.home .nav-linkedin svg {
    width: clamp(20px, 1.6vw, 28px);
    height: clamp(20px, 1.6vw, 28px);
}

body.home .nav-linkedin:hover {
    opacity: 0.85;
}

/*
 * Hero: 100vh, weißer Rand. Video nur im zentralen Spike (kein Alpha/Scrim).
 * Überschrift auf dem Video (~65% der Spike-Höhe), Subline eine Zeile darunter.
 */
.hero-xd {
    position: relative;
    z-index: 2;
    overflow: hidden;
    isolation: isolate;
    box-sizing: border-box;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100svh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding-top: clamp(4rem, 9vh, 5.5rem);
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
    padding-bottom: clamp(1rem, 3vh, 2rem);
    background: #ffffff;
}

.hero-xd-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Spike-Bereich: breiter als reiner Text, feste Proportionen */
.hero-xd-visual {
    position: relative;
    width: min(100%, 1650px);
    aspect-ratio: 2.35 / 1;
    min-height: clamp(310px, 90vmin, 950px);
    max-height: min(80vh, 700px);
    overflow: hidden;
    border-radius: 0.2rem;
    background: #fff;
    transform: translateY(clamp(-26px, -1.5vw, -9px));
}

.hero-xd-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
    opacity: 1;
    transform: none;
}

/* Titel zentriert im Spike, visuelle Höhe ~60–70% der Spike-Höhe (Vorlage) */
.hero-xd-title {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 100%;
    padding: 0 clamp(0.5rem, 1vw, 1rem);
    font-size: clamp(3.9375rem, 20.25vw, 19.125rem);
    font-weight: 900;
    color: #000000;
    letter-spacing: 0.01em;
    gap: clamp(0.18em, 0.56vw, 0.42em);
    line-height: 0.95;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    text-shadow: none;
    transform: translateY(clamp(-26px, -1.5vw, -9px));
}

@media (max-width: 1400px) {
    .hero-xd-title {
        font-size: clamp(2.4rem, 11.5vw, 9.5rem);
        gap: clamp(0.1em, 0.3vw, 0.24em);
    }
}

@media (max-width: 1100px) {
    .hero-xd-title {
        font-size: clamp(2rem, 10vw, 7rem);
        gap: clamp(0.08em, 0.24vw, 0.18em);
    }
}

.hero-xd-title-light {
    font-weight: 450;
}

.hero-xd-title-strong {
    font-weight: 900;
}

@media (prefers-reduced-motion: reduce) {
    .hero-xd-video {
        display: none;
    }

    .hero-xd-visual {
        background: linear-gradient(115deg, #e63946, #f4a261, #007277, #4361ee, #9d4edd);
    }
}

/* Eine Zeilenbreite Abstand unter dem Spike (Vorlage) */
.hero-xd-tagline {
    margin: 1.35rem 0 0;
    padding: 0 0.5rem;
    font-size: clamp(2.15rem, 4.6vw, 3.05rem);
    font-weight: 800;
    color: #000000;
    max-width: 19em;
    line-height: 0.98;
    letter-spacing: 0.01em;
    transform: translateY(clamp(-133px, -7.9vw, -47px));
}

/* Zwischen-Section laut Vorlage (zwischen Hero und Referenzen) */
.services-polygon {
    position: relative;
    z-index: 1;
    background: #ffffff;
    margin: 0;
    padding: clamp(1.2rem, 3vw, 2.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.services-polygon-wrap {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    position: relative;
    min-height: clamp(638px, 70.56vw, 941px);
    --services-side-gap: clamp(1rem, 3vw, 2rem);
    --services-outer-gutter: max((100vw - 1380px) / 2, 0px);
    --services-left-shift: calc((var(--services-side-gap) + var(--services-outer-gutter)) / 2);
}

.services-polygon-shape {
    position: relative;
  width: min(100%, 1220px);
  min-height: clamp(605px, 63.84vw, 980px);
    background: var(--petrol);
  clip-path: polygon(0 20%, 87% 0, 100% 78%, 0 100%);
    margin-left: calc(var(--services-left-shift) / -1);
    padding:
        clamp(3rem, 6vw, 5rem)
        clamp(2rem, 4vw, 3.25rem)
        clamp(3.5rem, 6.5vw, 5.5rem)
        calc(clamp(2rem, 4vw, 3.25rem) + var(--services-left-shift));
    color: #000;
    --services-text-shift-x: clamp(-79px, -4.7vw, -27px);
    --services-text-shift-y: clamp(25px, 4.3vw, 72px);
    --services-cta-extra-y: clamp(25px, 2vw, 40px);
}

.services-polygon-list {
    list-style: disc;
    margin: clamp(1.2rem, 2.6vw, 2.4rem) 0 0;
    padding-left: 1.35rem;
    max-width: none;
    width: max-content;
    transform: translate(var(--services-text-shift-x), var(--services-text-shift-y));
    position: relative;
    z-index: 3;
}

.services-polygon-list li {
    font-size: clamp(1.2rem, 1.6vw, 1.6rem);
    font-weight: 700;
    line-height: 1.16;
    white-space: nowrap;
}

.services-polygon-cta {
    display: inline-block;
    margin-top: clamp(1.4rem, 3vw, 2.2rem);
    background: #ffffff;
    color: #000;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.52rem 0.95rem;
    font-size: clamp(1.14rem, 1.52vw, 1.52rem);
    font-weight: 700;
    transform: translate(
        var(--services-text-shift-x),
        calc(var(--services-text-shift-y) + var(--services-cta-extra-y))
    );
    position: relative;
    overflow: visible;
    z-index: 2;
}

/* Spike fest am rechten Buttonrand verankert */
.services-polygon-cta::after {
    content: "";
    position: absolute;
    right: clamp(-40px, -2.4vw, -26px);
    top: 50%;
    width: clamp(102px, 6.6vw, 144px);
    height: clamp(288px, 18.3vw, 390px);
    transform: translateX(30px) translateY(calc(-58% + 6px));
    background: url('images/MRAI_Button_Vektorspike.svg') center / contain no-repeat;
    pointer-events: none;
}

.services-polygon-mark {
    display: none !important;
}

.services-polygon-brand {
    position: absolute;
    right: clamp(5rem, 11vw, 9rem);
    bottom: calc(clamp(3.4rem, 7vw, 5.4rem) + 130px);
    margin: 0;
    font-size: clamp(2.1rem, 3.2vw, 3.25rem);
    line-height: 1.05;
    font-weight: 900;
    text-align: center;
    color: #000;
    z-index: 4;
}

.services-polygon-media {
    position: absolute;
    right: clamp(1rem, 3.5vw, 2rem);
    top: clamp(2rem, 7vw, 6.5rem);
    width: min(53.8%, clamp(360px, 42vw, 650px));
}

.services-polygon-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

/* 3. Section laut Vorlage: Bild links, Text rechts */
.insight-xd {
    background: #ffffff;
    padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 4.5rem);
}

.insight-xd-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: grid;
    grid-template-columns: minmax(300px, 540px) 1fr;
    align-items: center;
    gap: clamp(2rem, 4.5vw, 5rem);
}

.insight-xd-media {
    position: relative;
    overflow: visible;
}

.insight-xd-media img {
    width: clamp(112%, 122%, 130%);
    max-width: none;
    height: auto;
    display: block;
    transform: translate(
        clamp(-102px, -6vw, -26px),
        clamp(-48px, -2.9vw, -14px)
    );
}

.insight-xd-copy {
    max-width: 70ch;
    color: #111;
    align-self: center;
    transform: translate(
        clamp(64px, 4.1vw, 116px),
        clamp(-38px, -2.2vw, -14px)
    );
}

.insight-xd-lead {
    margin: 0 0 1rem;
    font-size: clamp(1.3rem, 1.7vw, 1.62rem);
    line-height: 1.32;
    font-weight: 400;
}

.insight-xd-quote {
    margin: 0 0 0.65rem;
    font-size: clamp(1.26rem, 1.62vw, 1.54rem);
    line-height: 1.3;
}

.insight-xd-author {
    margin: 0;
    font-size: clamp(1.26rem, 1.62vw, 1.54rem);
    font-weight: 900;
}

/* Section services-rect: gerader Petrol-Block */
.services-rect {
    background: #ffffff;
    padding: clamp(1.6rem, 4vw, 3.2rem) 0 clamp(2.4rem, 5vw, 4rem);
}

.services-rect-wrap {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    position: relative;
    min-height: clamp(420px, 40vw, 610px);
    --services-side-gap: clamp(1rem, 3vw, 2rem);
    --services-outer-gutter: max((100vw - 1480px) / 2, 0px);
    --services-left-shift: calc((var(--services-side-gap) + var(--services-outer-gutter)) / 2);
}

.services-rect-panel {
    width: min(100%, 1480px);
    min-height: clamp(420px, 40vw, 610px);
    margin-left: calc((var(--services-left-shift) / -1) + 23px);
    padding:
        clamp(3.2rem, 6vw, 18rem)
        clamp(1.6rem, 3vw, 2.6rem)
        clamp(3.2rem, 6vw, 18rem)
        clamp(1.6rem, 4.6vw, 4rem);
    background: var(--petrol);
    color: #000;
    --services-rect-text-shift-x: clamp(120px, 8vw, 200px);
}

.services-rect-panel h2 {
    margin: 0 0 clamp(1.2rem, 2vw, 1.8rem);
    font-size: clamp(2.35rem, 3.35vw, 3.2rem);
    line-height: 1.02;
    font-weight: 800;
    transform: translateX(var(--services-rect-text-shift-x));
}

.services-rect-block + .services-rect-block {
    margin-top: clamp(1rem, 1.8vw, 1.5rem);
}

.services-rect-block h3 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.32rem, 1.74vw, 1.64rem);
    line-height: 1.08;
    font-weight: 800;
}

.services-rect-block p {
    margin: 0;
    max-width: 58ch;
    font-size: clamp(1.32rem, 1.74vw, 1.64rem);
    line-height: 1.22;
}

.services-rect-block {
    transform: translateX(var(--services-rect-text-shift-x));
}

.services-rect-media {
    position: absolute;
    right: clamp(1rem, 3.4vw, 2rem);
    top: clamp(1.8rem, 5.5vw, 4.6rem);
    width: min(52%, 530px);
}

.services-rect-media img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1400px) {
    .services-rect-panel {
        padding-left: clamp(1rem, 2.8vw, 2rem);
        --services-rect-text-shift-x: clamp(58px, 4.6vw, 102px);
    }

    .services-rect-media {
        width: min(46%, 460px);
    }

    .contact-xd-panel {
        padding-left: clamp(1rem, 2.8vw, 2rem);
        --contact-text-shift-x: clamp(58px, 4.6vw, 102px);
    }

    .contact-xd-aside {
        width: min(46%, 460px);
    }
}

@media (max-width: 1200px) {
    .insight-xd-wrap {
        grid-template-columns: minmax(280px, 500px) 1fr;
        gap: clamp(1.2rem, 2.8vw, 2.4rem);
    }

    .insight-xd-copy {
        max-width: 48ch;
        transform: translate(
            clamp(8px, 1.2vw, 28px),
            clamp(-24px, -1.3vw, -8px)
        );
    }

    .insight-xd-media img {
        width: clamp(102%, 109%, 115%);
        transform: translate(
            clamp(-62px, -4vw, -18px),
            clamp(-30px, -2vw, -8px)
        );
    }

    .services-rect-wrap {
        min-height: clamp(390px, 44vw, 560px);
    }

    .services-rect-panel {
        min-height: clamp(390px, 44vw, 560px);
        padding-right: clamp(14rem, 30vw, 21rem);
        padding-left: clamp(0.9rem, 2.2vw, 1.7rem);
        --services-rect-text-shift-x: clamp(18px, 2.4vw, 46px);
    }

    .services-rect-panel h2,
    .services-rect-block {
        max-width: clamp(320px, 48vw, 500px);
    }

    .services-rect-block p {
        max-width: 100%;
    }

    .services-rect-media {
        width: min(38%, 340px);
        right: clamp(0.5rem, 2vw, 1.2rem);
        top: clamp(1.4rem, 4.5vw, 3.6rem);
    }

    .contact-xd-wrap {
        min-height: clamp(390px, 44vw, 560px);
    }

    .contact-xd-panel {
        min-height: clamp(390px, 44vw, 560px);
        padding-right: clamp(14rem, 30vw, 21rem);
        padding-left: clamp(0.9rem, 2.2vw, 1.7rem);
        --contact-text-shift-x: clamp(18px, 2.4vw, 46px);
    }

    .contact-xd-grid {
        max-width: clamp(320px, 48vw, 500px);
    }

    .contact-xd-aside {
        width: min(38%, 340px);
        right: clamp(0.5rem, 2vw, 1.2rem);
        top: clamp(1.4rem, 4.5vw, 3.6rem);
    }
}

@media (max-width: 1050px) {
    .services-rect-panel {
        padding-right: clamp(11.5rem, 33vw, 16rem);
        padding-left: clamp(0.8rem, 1.8vw, 1.25rem);
        --services-rect-text-shift-x: clamp(4px, 1vw, 16px);
    }

    .services-rect-panel h2,
    .services-rect-block {
        max-width: clamp(270px, 46vw, 430px);
    }

    .services-rect-media {
        width: min(35%, 300px);
    }

    .contact-xd-panel {
        padding-right: clamp(11.5rem, 33vw, 16rem);
        padding-left: clamp(0.8rem, 1.8vw, 1.25rem);
        --contact-text-shift-x: clamp(4px, 1vw, 16px);
    }

    .contact-xd-grid {
        max-width: clamp(270px, 46vw, 430px);
    }

    .contact-xd-aside {
        width: min(35%, 300px);
    }
}

/* Referenzen */
.references-xd {
    padding: 4rem 1.5rem;
    background: var(--bg-white);
}

.references-xd .container-narrow {
    max-width: 1380px;
    margin: 0 auto;
}

.references-xd h2 {
    font-size: clamp(2.35rem, 3.35vw, 3.2rem);
    line-height: 1.02;
    font-weight: 800;
    color: #000;
    margin-bottom: 1.25rem;
}

.references-xd .intro {
    font-size: clamp(1.32rem, 1.74vw, 1.64rem);
    line-height: 1.22;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.ref-logos-xd {
    display: flex;
    flex-wrap: wrap;
    margin-top: clamp(3rem, 5vw, 6rem);
    gap: 1.5rem 2rem;
    align-items: center;
    justify-content: center;
}

.ref-logos-xd a {
    display: inline-flex;
    align-items: center;
}

.ref-logos-xd img {
    max-height: 62px;
    width: auto;
    opacity: 0.92;
}

.client-logo-bcs {
    display: inline-block;
    width: 196px;
    height: 56px;
    background-color: #cbff00;
    -webkit-mask-image: url('images/logos/bcsmobile.de.svg');
    mask-image: url('images/logos/bcsmobile.de.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* Über mich */
.about-xd {
    padding: clamp(3.2rem, 5vw, 4.4rem) 1.5rem clamp(2.4rem, 4vw, 3.4rem);
    background: var(--bg-white);
}

.about-xd-grid {
    max-width: 1380px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 500px) 1fr;
    gap: clamp(2rem, 4.5vw, 4.4rem);
    align-items: center;
}

.about-xd-portrait {
    max-width: 500px;
}

.about-xd-portrait img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.about-xd h2 {
    font-size: clamp(2.2rem, 3.15vw, 3rem);
    line-height: 1.02;
    font-weight: 800;
    color: #000;
    margin-bottom: 1rem;
}

.about-xd .name {
    font-size: clamp(1.26rem, 1.64vw, 1.54rem);
    line-height: 1.08;
    font-weight: 800;
    color: #000;
    margin-bottom: 0.45rem;
}

.about-xd .bio {
    max-width: 58ch;
    font-size: clamp(1.26rem, 1.64vw, 1.54rem);
    line-height: 1.22;
    color: var(--text-dark);
}

.about-xd-text {
    margin-left: clamp(2.2rem, 4.6vw, 6.2rem);
}

/* Philosophie */
.philosophy-xd {
    position: relative;
    padding: clamp(3.4rem, 5vw, 4.6rem) 0 clamp(3.8rem, 5.6vw, 5.2rem);
    background: var(--bg-white);
    overflow: visible;
}

.philosophy-xd-wrap {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    position: relative;
    min-height: clamp(840px, 66vw, 1050px);
    --philosophy-side-gap: clamp(1rem, 3vw, 2rem);
    --philosophy-outer-gutter: max((100vw - 1480px) / 2, 0px);
    --philosophy-left-shift: calc((var(--philosophy-side-gap) + var(--philosophy-outer-gutter)) / 2);
}

.philosophy-xd-slab {
    position: relative;
    width: min(100%, 1360px);
    min-height: clamp(840px, 66vw, 1150px);
    margin-left: auto;
    margin-right: calc((var(--philosophy-left-shift) / -1) + 23px);
    background: var(--petrol);
    clip-path: polygon(100% 0, 100% 80%, 13% 100%, 0 22%);
    z-index: 1;
}

.philosophy-xd-inner {
    position: relative;
    min-height: inherit;
    padding:
        clamp(8rem, 16vw, 21rem)
        clamp(1.8rem, 3.2vw, 2.8rem)
        clamp(2.4rem, 4vw, 3.8rem)
        calc(clamp(19rem, 19vw, 12rem) + 76px);
}

.philosophy-xd-media {
    position: absolute;
    left: clamp(1rem, 5.4vw, 3.8rem);
    top: 60%;
    transform: translateY(-50%);
    width: clamp(260px, 25vw, 550px);
    z-index: 3;
}

.philosophy-xd-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.philosophy-xd-copy {
    max-width: clamp(430px, 42vw, 620px);
}

.philosophy-xd h2 {
    font-size: clamp(2.2rem, 3.15vw, 3rem);
    line-height: 1.02;
    font-weight: 800;
    color: #000;
    margin-bottom: clamp(1rem, 1.8vw, 1.4rem);
}

.philosophy-xd dl {
    margin: 0;
}

.philo-block + .philo-block {
    margin-top: clamp(1rem, 1.8vw, 1.5rem);
}

.philo-block dt {
    font-size: clamp(1.26rem, 1.64vw, 1.54rem);
    line-height: 1.22;
    font-weight: 400;
    color: #000;
    margin-bottom: 0.2rem;
}

.philo-block dd {
    margin: 0;
    font-size: clamp(1.26rem, 1.64vw, 1.54rem);
    line-height: 1.22;
    font-weight: 800;
    color: #000;
}

/* Partner */
.partners-xd {
    padding: 4rem 1.5rem;
    background: var(--bg-white);
}

.partners-xd h2 {
    font-size: clamp(2.2rem, 3.15vw, 3rem);
    line-height: 1.02;
    font-weight: 800;
    color: #000;
    margin-bottom: 2rem;
}

.partners-xd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem 6rem;
    max-width: 1200px;
    align-items: stretch;
}

.partners-xd-grid > div > p {
    margin-bottom: 1rem;
    font-size: clamp(1.26rem, 1.64vw, 1.54rem);
    line-height: 1.22;
    color: var(--text-dark);
}

.partners-xd-grid > div {
    display: flex;
    flex-direction: column;
}

.partner-logo-slot {
    min-height: 80px;
    border: 2px dashed rgba(0, 114, 119, 0.35);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #888;
}

.partners-xd .partner-logos-real {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
    justify-content: center;
    margin-top: auto;
    padding-top: clamp(1rem, 1.8vw, 1.6rem);
}

.partners-xd .partner-logos-real img {
    max-height: 150px;
    width: auto;
}

.partner-logo-brainexx {
    max-height: 210px !important;
}

/* Kontakt */
.contact-xd {
    background: #ffffff;
    padding: clamp(1.6rem, 4vw, 3.2rem) 0 clamp(2.4rem, 5vw, 4rem);
}

.contact-xd-wrap {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    position: relative;
    min-height: clamp(420px, 40vw, 610px);
    --contact-side-gap: clamp(1rem, 3vw, 2rem);
    --contact-outer-gutter: max((100vw - 1480px) / 2, 0px);
    --contact-left-shift: calc((var(--contact-side-gap) + var(--contact-outer-gutter)) / 2);
}

.contact-xd-panel {
    width: min(100%, 1480px);
    min-height: clamp(420px, 40vw, 610px);
    margin-left: calc((var(--contact-left-shift) / -1) + 23px);
    padding:
        clamp(3.2rem, 6vw, 18rem)
        clamp(1.6rem, 3vw, 2.6rem)
        clamp(3.2rem, 6vw, 18rem)
        clamp(1.6rem, 4.6vw, 4rem);
    background: var(--petrol);
    color: #000;
    --contact-text-shift-x: clamp(120px, 8vw, 200px);
}

.contact-xd-grid {
    max-width: clamp(380px, 50vw, 720px);
    transform: translateX(var(--contact-text-shift-x));
}

.contact-xd h2 {
    font-size: clamp(2.35rem, 3.35vw, 3.2rem);
    line-height: 1.02;
    font-weight: 800;
    color: #000;
    margin-bottom: 1.5rem;
}

.contact-xd .contact-form-xd {
    background: transparent;
    padding: 0;
    box-shadow: none;
    max-width: none;
}

.contact-xd .form-row-xd {
    margin-bottom: 1rem;
}

.contact-xd .form-row-xd label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.contact-xd .form-row-xd input,
.contact-xd .form-row-xd textarea {
    width: 100%;
    padding: 1.08rem 1.35rem;
    border: none;
    border-radius: 999px;
    font-size: clamp(1.1rem, 1.35vw, 1.3rem);
    font-family: inherit;
    background: var(--bg-white);
    color: var(--text-dark);
}

.contact-xd .form-row-xd textarea {
    border-radius: 1.25rem;
    min-height: clamp(260px, 34vw, 420px);
    resize: vertical;
}

.contact-xd .form-row-xd input::placeholder,
.contact-xd .form-row-xd textarea::placeholder {
    color: #444;
    font-weight: 600;
    font-size: clamp(1rem, 1.2vw, 1.16rem);
}

.contact-xd .submit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 4.8rem;
}

.contact-xd .submit-button-xd {
    display: inline-block;
    padding: 0.52rem 0.95rem;
    background: #ffffff;
    color: #000;
    border: none;
    border-radius: 999px;
    font-size: clamp(1.14rem, 1.52vw, 1.52rem);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    overflow: visible;
    z-index: 2;
}

/* Spike fest am rechten Buttonrand verankert */
.contact-xd .submit-button-xd::after {
    content: "";
    position: absolute;
    right: clamp(-40px, -2.4vw, -26px);
    top: 50%;
    width: clamp(102px, 6.6vw, 144px);
    height: clamp(288px, 18.3vw, 390px);
    transform: translateX(30px) translateY(calc(-58% + 6px));
    background: url('images/MRAI_Button_Vektorspike.svg') center / contain no-repeat;
    pointer-events: none;
}

.contact-xd-deco {
    display: none;
}

.contact-xd-aside {
    position: absolute;
    right: clamp(1rem, 3.4vw, 2rem);
    top: clamp(1.8rem, 5.5vw, 4.6rem);
    width: min(52%, 530px);
}

.contact-xd-aside img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

/* Footer Startseite */
.footer-xd {
    position: relative;
    background: var(--bg-white);
    padding: 2.5rem 1.5rem 3rem;
}

.footer-xd::before {
    content: "";
    display: block;
    width: min(100%, 1120px);
    height: 8px;
    border-radius: 999px;
    background: var(--petrol);
    margin: 0 auto clamp(1.6rem, 3vw, 2.4rem);
}

.footer-xd-inner {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    column-gap: clamp(5rem, 9vw, 15rem);
    align-items: start;
}

.footer-xd-brand {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: #000;
}

.footer-xd-contact p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.footer-xd-contact a {
    color: var(--text-dark);
    text-decoration: none;
}

.footer-xd-contact a:hover {
    text-decoration: underline;
    color: var(--petrol);
}

.footer-xd-legal {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
    text-align: right;
}

.footer-xd-legal a {
    font-weight: 700;
    color: #000;
    text-decoration: none;
}

.footer-xd-legal a:hover {
    color: var(--petrol);
}

.footer-xd-logo {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 1rem;
}

.footer-xd-logo img {
    height: 48px;
    width: auto;
    opacity: 0.9;
}

.footer-xd-copy {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: #666;
}

@media (max-width: 900px) {
    body.home .site-header {
        padding-top: clamp(1.4rem, 3.4vh, 2.4rem);
    }

    body.home .header-inner {
        gap: 1.1rem;
        padding: 0.55rem 1rem;
        border-radius: 1.5rem;
    }

    body.home .main-nav a {
        font-size: clamp(0.9rem, 2.1vw, 1.05rem);
    }

    .hero-xd {
        padding-top: clamp(3.75rem, 8vh, 5rem);
    }

    .hero-xd-visual {
        width: 100%;
        min-height: clamp(230px, 62vmin, 520px);
        max-height: min(60vh, 500px);
        aspect-ratio: 16 / 9;
    }

    .hero-xd-title {
        font-size: clamp(2.2rem, 11vw, 4.1rem);
        font-weight: 900;
    }

    .hero-xd-tagline {
        margin-top: 1.15rem;
        font-size: clamp(2.47rem, 6.5vw, 3.25rem);
    }

    .services-polygon-list {
        width: auto;
        max-width: 36ch;
    }

    .services-polygon-list li {
        white-space: normal;
    }

    .services-polygon-cta {
        margin-bottom: clamp(1.8rem, 4vw, 3rem);
        transform: translate(
            var(--services-text-shift-x),
            calc(var(--services-text-shift-y) + clamp(0px, 1vw, 12px))
        );
    }

    .services-polygon-cta::after {
        right: clamp(-32px, -2.2vw, -18px);
        width: clamp(74px, 5.2vw, 110px);
        height: clamp(210px, 14vw, 300px);
        transform: translateX(22px) translateY(calc(-58% + 4px));
    }

    .contact-xd .submit-button-xd::after {
        right: clamp(-32px, -2.2vw, -18px);
        width: clamp(74px, 5.2vw, 110px);
        height: clamp(210px, 14vw, 300px);
        transform: translateX(22px) translateY(calc(-58% + 4px));
    }

    .services-polygon-wrap {
        min-height: 0;
    }

    .services-polygon-shape {
        width: 100%;
        clip-path: polygon(0 8%, 94% 0, 100% 82%, 0 100%);
        min-height: clamp(360px, 64vw, 620px);
        padding-right: clamp(1.25rem, 3vw, 2rem);
    }

    .services-polygon-media {
        position: relative;
        right: auto;
        top: auto;
        width: min(88%, 560px);
        margin: clamp(1rem, 3vw, 1.6rem) auto 0;
    }

    .services-polygon-brand {
        position: static;
        margin-top: clamp(2.4rem, 5vw, 3.6rem);
        text-align: center;
    }

    .services-polygon-mark {
        left: auto;
        right: 2.4rem;
        top: auto;
        bottom: 6.6rem;
    }

    .insight-xd-wrap {
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    .insight-xd-media img {
        width: min(100%, 640px);
        max-width: 100%;
        transform: none;
        margin: 0 auto;
    }

    .insight-xd-copy {
        max-width: 100%;
        transform: none;
    }

    .services-rect-wrap {
        min-height: 0;
    }

    .services-rect-panel {
        width: 100%;
        min-height: 0;
        margin-left: 0;
        padding:
            clamp(1.4rem, 3vw, 2rem)
            1rem
            clamp(1.4rem, 3vw, 2rem)
            clamp(1rem, 4.6vw, 2.2rem);
        --services-rect-text-shift-x: clamp(18px, 3vw, 56px);
    }

    .services-rect-media {
        position: relative;
        right: auto;
        top: auto;
        width: min(88%, 520px);
        margin: 1rem auto 0;
    }

    .about-xd-grid {
        grid-template-columns: 1fr;
    }

    .about-xd-portrait {
        max-width: 336px;
        margin: 0 auto;
    }

    .philosophy-xd-slab {
        width: 100%;
        min-height: clamp(574px, 91vw, 784px);
        margin-right: 0;
        clip-path: polygon(100% 0, 100% 90%, 6% 100%, 0 8%);
    }

    .philosophy-xd-wrap {
        min-height: 0;
    }

    .philosophy-xd-inner {
        padding:
            clamp(5rem, 11vw, 6.8rem)
            clamp(1.1rem, 3.2vw, 1.8rem)
            clamp(2.8rem, 5vw, 3.8rem)
            clamp(1.1rem, 3.2vw, 1.8rem);
    }

    .philosophy-xd-media {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: min(80%, 360px);
        margin: 0 auto clamp(1rem, 2.6vw, 1.4rem);
    }

    .philosophy-xd-copy {
        max-width: 100%;
    }

    .partners-xd-grid {
        grid-template-columns: 1fr;
    }

    .contact-xd-wrap {
        min-height: 0;
    }

    .contact-xd-panel {
        width: 100%;
        min-height: 0;
        margin-left: 0;
        padding:
            clamp(1.4rem, 3vw, 2rem)
            1rem
            clamp(1.4rem, 3vw, 2rem)
            clamp(1rem, 4.6vw, 2.2rem);
        --contact-text-shift-x: clamp(18px, 3vw, 56px);
    }

    .contact-xd-grid {
        max-width: 100%;
    }

    .contact-xd-aside {
        position: relative;
        right: auto;
        top: auto;
        width: min(88%, 520px);
        margin: 1rem auto 0;
    }

    .footer-xd-inner {
        grid-template-columns: 1fr;
    }

    .footer-xd-legal {
        align-items: flex-start;
        text-align: left;
    }

    body.home .site-logo {
        height: clamp(34px, 5vw, 44px);
    }
}

@media (max-width: 600px) {
    body.home .header-inner {
        flex-wrap: wrap;
        border-radius: 1.15rem;
        gap: 0.45rem;
        padding: 0.45rem 0.7rem 0.55rem;
    }

    body.home .main-nav ul {
        width: 100%;
        justify-content: center;
        gap: 0.35rem 0.75rem;
    }

    body.home .main-nav a {
        font-size: 0.82rem;
    }

    .hero-xd {
        padding-top: clamp(3.5rem, 12vw, 4.5rem);
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    }

    .services-polygon {
        padding-top: 1.1rem;
    }

    .services-polygon-shape {
        clip-path: polygon(0 6%, 96% 0, 100% 86%, 0 100%);
        min-height: clamp(330px, 96vw, 560px);
        padding: 1.55rem 1rem 2.2rem;
    }

    .services-polygon-list {
        padding-left: 1rem;
    }

    .services-polygon-list li {
        font-size: clamp(0.96rem, 3.2vw, 1.08rem);
        line-height: 1.28;
    }

    .services-polygon-cta {
        margin-top: 1rem;
        margin-bottom: clamp(2rem, 6.5vw, 3rem);
        font-size: clamp(0.9rem, 2.9vw, 1rem);
        padding: 0.6rem 0.95rem;
        transform: translate(
            var(--services-text-shift-x),
            calc(var(--services-text-shift-y) + clamp(10px, 2.2vw, 22px))
        );
    }

    .contact-xd .submit-button-xd {
        font-size: clamp(0.9rem, 2.9vw, 1rem);
        padding: 0.6rem 0.95rem;
    }

    .services-polygon-mark {
        right: 1.15rem;
        bottom: 4.8rem;
        width: 26px;
        height: 62px;
    }

    .services-polygon-brand {
        margin-top: clamp(2rem, 6vw, 2.9rem);
        font-size: clamp(1.5rem, 7.2vw, 2rem);
        line-height: 1.06;
    }

    .services-polygon-media {
        width: 100%;
        margin-top: 0.85rem;
    }

    .insight-xd {
        padding-top: 1.4rem;
    }

    .insight-xd-wrap {
        gap: 1rem;
    }

    .insight-xd-media img {
        width: 100%;
        max-width: 100%;
        transform: none;
    }

    .services-rect {
        padding-top: 1.2rem;
    }

    .services-rect-panel h2 {
        font-size: clamp(1.55rem, 6vw, 1.95rem);
        transform: none;
    }

    .services-rect-block h3 {
        font-size: clamp(0.95rem, 3.5vw, 1.05rem);
    }

    .services-rect-block p {
        max-width: none;
        font-size: clamp(0.9rem, 3vw, 0.98rem);
        line-height: 1.34;
    }

    .services-rect-block {
        transform: none;
    }

    .references-xd h2 {
        font-size: clamp(1.55rem, 6vw, 1.95rem);
        line-height: 1.02;
    }

    .references-xd .intro {
        font-size: clamp(0.9rem, 3vw, 0.98rem);
        line-height: 1.34;
    }

    .about-xd h2 {
        font-size: clamp(1.48rem, 5.8vw, 1.88rem);
        line-height: 1.02;
    }

    .about-xd .name {
        font-size: clamp(0.92rem, 3.3vw, 1.02rem);
        line-height: 1.08;
    }

    .about-xd .bio {
        max-width: none;
        font-size: clamp(0.88rem, 2.9vw, 0.96rem);
        line-height: 1.34;
    }

    .philosophy-xd h2 {
        font-size: clamp(1.48rem, 5.8vw, 1.88rem);
        line-height: 1.02;
    }

    .philo-block dt,
    .philo-block dd {
        font-size: clamp(0.88rem, 2.9vw, 0.96rem);
        line-height: 1.34;
    }

    .partners-xd h2 {
        font-size: clamp(1.48rem, 5.8vw, 1.88rem);
        line-height: 1.02;
    }

    .partners-xd-grid > div > p {
        font-size: clamp(0.88rem, 2.9vw, 0.96rem);
        line-height: 1.34;
    }

    .hero-xd-visual {
        min-height: clamp(150px, 48vmin, 300px);
        max-height: min(50vh, 320px);
        aspect-ratio: 4 / 3;
    }

    .hero-xd-title {
        font-size: clamp(1.7rem, 10.8vw, 2.8rem);
        font-weight: 900;
        letter-spacing: 0.04em;
        padding: 0 0.35rem;
    }

    .hero-xd-tagline {
        margin-top: 1rem;
        font-size: 2.34rem;
        line-height: 1.02;
    }
}
