.contact-project-reference {
    --contact-gold: #f0a900;
    --contact-gold-light: #ffbd18;
    --contact-ink: #101414;
    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: hidden;
    padding: var(--section-space-y) 0;
    color: var(--contact-ink);
    background:
        radial-gradient(circle at 8% 86%, rgba(255, 223, 116, .3), transparent 25%),
        linear-gradient(112deg, #efa300 0%, #ffbd18 48%, #f2a700 100%);
}

.contact-project-reference::after {
    position: absolute;
    inset: auto auto 20px 0;
    width: 210px;
    height: 190px;
    content: "";
    pointer-events: none;
    opacity: .25;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .92) 1.2px, transparent 1.3px);
    background-size: 12px 12px;
    mask-image: linear-gradient(90deg, #000, transparent);
}

.contact-project-reference__form {
    display: block;
    pointer-events: none;
}

.contact-project-reference__form--background { display: none; }

.contact-project-reference__inner {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 64px), 1400px);
    margin-inline: auto;
}

.contact-project-reference__layout {
    display: grid;
    grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
    align-items: center;
    gap: 24px;
    min-height: 650px;
}

.contact-project-reference__copy {
    position: relative;
    z-index: 3;
    min-width: 0;
    padding-right: 10px;
    padding-top: 0;
}

.contact-project-reference__heading {
    max-width: 610px;
}

.contact-project-reference__eyebrow {
    margin: 0 0 21px;
    color: var(--contact-ink);
    font-family: Poppins, Arial, sans-serif;
    font-size: 16px;
    font-weight: 760;
    line-height: 1.2;
    letter-spacing: .25px;
    text-transform: uppercase;
}

.contact-project-reference__heading h2 {
    margin: 0;
    color: var(--contact-ink);
    font-family: Sora, Poppins, Arial, sans-serif;
    font-size: var(--type-section-title);
    font-weight: 780;
    line-height: 1.08;
    letter-spacing: -1.7px;
    text-transform: none;
    text-wrap: balance;
}

.contact-project-reference__heading h2 strong {
    color: #fff;
    font-weight: 800;
}

.contact-project-reference .section-heading-signal {
    margin-top: 24px;
    margin-bottom: 18px;
    color: var(--contact-ink);
}

.contact-project-reference__lead {
    max-width: 600px;
    margin: 0;
    color: #171b1b;
    font-size: var(--type-section-copy);
    font-weight: 500;
    line-height: 1.48;
}

.contact-project-reference__cta {
    width: min(100%, 610px);
    margin-top: 28px;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-ui);
    background: linear-gradient(118deg, #242525 0%, #151818 58%, #0a0d0e 100%);
    color: #fff;
}

.contact-project-reference__cta-copy {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
}

.contact-project-reference__cta-copy p {
    margin: 0;
    color: #f2f2ed;
    font-size: var(--type-cta-copy);
    font-weight: 500;
    line-height: 1.45;
}

.contact-project-reference__cta .contact-project-reference__cta-copy .contact-project-reference__cta-icon {
    position: static;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    color: var(--contact-gold-light);
    left: auto;
    top: auto;
    background: transparent;
    color: var(--contact-gold-light);
    -webkit-mask-image: none;
    mask-image: none;
    clip-path: none;
    transform: none !important;
}

.contact-project-reference__cta .contact-project-reference__cta-copy .contact-project-reference__zap {
    display: block;
    width: 35px;
    height: 35px;
    opacity: 1 !important;
    color: currentColor;
}

.contact-project-reference__media {
    position: relative;
    z-index: 2;
    justify-self: stretch;
    width: 100%;
    height: 650px;
    min-width: 0;
    margin: 0;
}

.contact-project-reference__corner-form {
    position: absolute;
    z-index: 3;
    top: -78px;
    left: 5%;
    display: block;
    width: 232px;
    height: auto;
    aspect-ratio: 320 / 440;
    overflow: hidden;
    pointer-events: none;
}

.contact-project-reference__media-shape {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.contact-project-reference__image {
    width: 100%;
    height: 100%;
}

.contact-project-reference__form--media {
    opacity: 1;
}

.contact-project-reference__media-accent {
    display: none;
}

.contact-project-reference__cta-band[hidden] { display: none !important; }

.contact-project-reference__cta-mark {
    position: relative;
    align-self: stretch;
    display: grid;
    place-items: center;
    min-width: 0;
    overflow: hidden;
}

.contact-project-reference__cta-mark::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 128px;
    content: "";
    background: linear-gradient(135deg, #ffd03d, var(--contact-gold));
    clip-path: polygon(0 0, 100% 0, 48% 100%, 0 100%);
}

.contact-project-reference__cta-mark::after {
    position: absolute;
    top: -43px;
    right: 26px;
    width: 2px;
    height: 190px;
    content: "";
    background: var(--contact-gold);
    transform: rotate(31deg);
    transform-origin: center;
}

.contact-project-reference__cta-icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 64px;
    display: grid;
    place-items: center;
    color: #111516;
    transform: translate(-50%, -50%);
}

.contact-project-reference__zap {
    display: block;
    width: 32px;
    height: 32px;
}

.contact-project-reference__cta-band > p {
    margin: 0;
    padding: 18px 34px;
    color: #f2f2ed;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
}

.contact-project-reference__cta-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 52px;
    margin: 0 22px 22px;
    padding: 12px 24px 12px 28px;
    border: 0;
    border-radius: var(--radius-ui);
    background: linear-gradient(135deg, #ffc11f, var(--contact-gold)) !important;
    color: #121514;
    text-decoration: none;
    overflow: hidden;
}

.contact-project-reference__cta-button strong {
    font-family: Sora, Poppins, Arial, sans-serif;
    font-size: 16px;
    font-weight: 760;
    line-height: 1.25;
}

.contact-project-reference__cta-arrow {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    color: #121514;
}

.contact-project-reference__arrow {
    display: block;
    width: 23px;
    height: 23px;
    transition: transform .22s ease;
}

.contact-project-reference__cta-button:hover .contact-project-reference__arrow,
.contact-project-reference__cta-button:focus-visible .contact-project-reference__arrow {
    transform: translateX(5px);
}

@media (max-width: 1240px) {
    .contact-project-reference__inner {
        width: min(calc(100% - 48px), 1400px);
    }

    .contact-project-reference__layout {
        grid-template-columns: minmax(0, 53%) minmax(0, 47%);
        min-height: 610px;
    }

    .contact-project-reference__heading h2 {
        font-size: var(--type-section-title);
    }

    .contact-project-reference__lead {
        font-size: var(--type-section-copy);
    }

    .contact-project-reference__media {
        width: 100%;
        height: 610px;
        margin-right: 0;
    }

    .contact-project-reference__corner-form {
        top: -70px;
        left: 0;
        width: 210px;
        height: auto;
    }
}

@media (max-width: 1100px) {
    .contact-project-reference__form--background {
        top: -330px;
        left: 46%;
        width: 1100px;
        height: 1100px;
        opacity: .55;
    }

    .contact-project-reference__inner {
        width: min(calc(100% - 48px), 820px);
    }

    .contact-project-reference__layout {
        grid-template-columns: 1fr;
        gap: 48px;
        min-height: 0;
    }

    .contact-project-reference__copy,
    .contact-project-reference__heading {
        width: 100%;
        max-width: none;
    }

    .contact-project-reference__copy {
        padding-right: 0;
    }

    .contact-project-reference__media {
        width: 100%;
        height: auto;
        aspect-ratio: 977.42 / 830.6;
        margin-right: 0;
    }

    .contact-project-reference__corner-form {
        display: none;
    }

    .contact-project-reference__cta { margin-top: 26px; }
}

@media (max-width: 760px) {
    .contact-project-reference__form--background {
        display: none;
    }

    .contact-project-reference__inner {
        width: min(calc(100% - 32px), 600px);
    }

    .contact-project-reference__copy {
        text-align: center;
    }

    .contact-project-reference__eyebrow {
        margin-bottom: 16px;
        font-size: 14px;
    }

    .contact-project-reference__heading h2 {
        font-size: var(--type-section-title);
        line-height: 1.1;
        letter-spacing: -1px;
    }

    .contact-project-reference__lead {
        font-size: var(--type-section-copy);
        line-height: 1.5;
    }

    .contact-project-reference .section-heading-signal {
        margin-inline: auto;
    }

    .contact-project-reference__media {
        aspect-ratio: 4 / 3;
    }

    .contact-project-reference__media-shape {
        overflow: hidden;
        border: 2px solid #111516;
        border-radius: 3px;
        box-sizing: border-box;
    }

    .contact-project-reference__image {
        clip-path: none !important;
    }

    .contact-project-reference__form--media {
        display: none;
    }

    .contact-project-reference__cta-button {
        width: calc(100% - 28px);
        min-height: 52px;
        margin: 0 14px 14px;
    }

    .contact-project-reference__cta-copy { grid-template-columns: 50px minmax(0, 1fr); gap: 12px; padding: 17px 16px; text-align: left; }
    .contact-project-reference__cta .contact-project-reference__cta-copy .contact-project-reference__cta-icon { width: 42px; height: 42px; }
    .contact-project-reference__cta .contact-project-reference__cta-copy .contact-project-reference__zap { width: 30px; height: 30px; }
}

@media (max-width: 520px) {
    .contact-project-reference__heading h2 {
        font-size: var(--type-section-title);
    }

    .contact-project-reference__lead {
        font-size: var(--type-section-copy);
    }

    .contact-project-reference__layout {
        gap: 36px;
    }

    .contact-project-reference__media {
        aspect-ratio: 4 / 3;
    }

    .contact-project-reference__cta-button strong {
        font-size: 15px;
    }
}

@media print {
    .contact-project-reference::after,
    .contact-project-reference__form--background {
        display: none !important;
    }
}

/* Diese kompakte CTA ist bewusst kein globales horizontales Section-Band. */
.contact-project-reference .contact-project-reference__cta .contact-project-reference__cta-copy {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 20px 22px !important;
}

.contact-project-reference .contact-project-reference__cta .contact-project-reference__cta-copy > p {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
}

.contact-project-reference .contact-project-reference__cta .contact-project-reference__cta-copy .contact-project-reference__cta-icon {
    position: static !important;
    display: block !important;
    justify-self: center;
    width: 28px !important;
    height: 38px !important;
    background: var(--contact-gold-light) !important;
    color: transparent !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    clip-path: polygon(54% 0, 18% 48%, 43% 48%, 29% 100%, 84% 37%, 57% 37%) !important;
    transform: none !important;
}

.contact-project-reference .contact-project-reference__cta .contact-project-reference__cta-copy .contact-project-reference__cta-icon :where(svg,g,path,polygon,polyline,line,rect,circle,ellipse) {
    opacity: 0 !important;
}

.contact-project-reference .contact-project-reference__cta > .contact-project-reference__cta-button {
    background: var(--contact-gold-light) !important;
    background-image: none !important;
}

@media (max-width: 760px) {
    .contact-project-reference .contact-project-reference__cta .contact-project-reference__cta-copy {
        grid-template-columns: 50px minmax(0, 1fr) !important;
        gap: 12px !important;
        padding: 17px 16px !important;
    }

    .contact-project-reference .contact-project-reference__cta .contact-project-reference__cta-copy .contact-project-reference__cta-icon {
        width: 25px !important;
        height: 34px !important;
    }
}
