:root {
    --bg: #f5f3ee;
    --surface: #ffffff;
    --dark: #272b2d;
    --dark-soft: #3d4142;
    --text: #45494a;
    --muted: #747777;
    --gold: #b89a62;
    --gold-dark: #9c7f4d;
    --line: rgba(39, 43, 45, 0.14);
    --max-width: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
}

.container {
    width: min(calc(100% - 64px), var(--max-width));
    margin-inline: auto;
}


/* Header */

.site-header {
    position: absolute;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
}

.header-inner {
    min-height: 104px;
    display: flex;
    align-items: center;
    gap: 42px;
}

.brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
    margin-right: auto;
}

.brand-msg {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: -4px;
}

.brand-ms {
    color: var(--dark);
}

.brand-g {
    color: var(--gold);
}

.brand-name {
    margin-top: 8px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2.4px;
    color: var(--dark-soft);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width .2s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-cta {
    padding: 12px 18px;
    border: 1px solid var(--dark);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.header-cta:hover {
    background: var(--dark);
    color: #fff;
}


/* Hero */

.hero {
    position: relative;
    min-height: 820px;
    overflow: hidden;
    background: var(--surface);
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 52%;
    height: 100%;
    background:
        linear-gradient(
            135deg,
            #d8d6d0 0%,
            #eceae4 45%,
            #c6c4bd 100%
        );
    display: grid;
    place-items: center;
}

.hero-image::before,
.hero-image::after {
    content: "";
    position: absolute;
    background: rgba(39, 43, 45, .07);
}

.hero-image::before {
    width: 80%;
    height: 1px;
}

.hero-image::after {
    width: 1px;
    height: 80%;
}

.hero-image span {
    max-width: 260px;
    padding: 16px;
    text-align: center;
    color: #777870;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-content {
    min-height: 820px;
    display: flex;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(515px, 42%);
    padding-top: 70px;
}

.eyebrow {
    margin: 0 0 24px;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hero h1,
.section h2 {
    margin: 0;
    color: var(--dark);
    font-weight: 300;
    letter-spacing: -.018em;
    line-height: 1.06;
}

.hero h1 {
    font-size: clamp(56px, 5.3vw, 82px);
}

.hero h1 span,
.section h2 span {
    display: block;
    color: var(--gold-dark);
}

.hero-text {
    max-width: 530px;
    margin: 32px 0 0;
    font-size: 18px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 38px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.button-primary {
    background: var(--dark);
    color: #fff;
}

.button-primary:hover {
    background: var(--gold-dark);
}

.button-link {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--dark);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.button-link span {
    color: var(--gold);
    font-size: 20px;
    transition: transform .2s ease;
}

.button-link:hover span {
    transform: translateX(5px);
}


/* Trust */

.trust-bar {
    background: var(--dark);
    color: #fff;
}

.trust-grid {
    min-height: 126px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.trust-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px 42px;
    border-right: 1px solid rgba(255, 255, 255, .12);
}

.trust-item:first-child {
    padding-left: 0;
}

.trust-item:last-child {
    border-right: 0;
}

.trust-item strong {
    color: #d1b47c;
    font-size: 23px;
    font-weight: 400;
}

.trust-item span {
    margin-top: 3px;
    color: rgba(255, 255, 255, .66);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .12em;
}


/* Sections */

.section {
    padding: 130px 0;
}

.section-intro {
    width: min(700px, 100%);
    margin-bottom: 72px;
}

.section h2 {
    font-size: clamp(44px, 5vw, 70px);
}

.section-intro > p:last-child {
    max-width: 650px;
    margin: 30px 0 0;
    font-size: 17px;
}


/* Services */

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.service-card {
    min-height: 330px;
    padding: 38px 30px 45px;
    border-right: 1px solid var(--line);
}

.service-card:first-child {
    padding-left: 0;
}

.service-card:last-child {
    border-right: 0;
}

.service-number {
    display: block;
    margin-bottom: 65px;
    color: var(--gold-dark);
    font-size: 12px;
    letter-spacing: .15em;
}

.service-card h3 {
    margin: 0;
    color: var(--dark);
    font-size: 25px;
    font-weight: 400;
    line-height: 1.2;
}

.service-card p {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 14px;
}


/* Process */

.process {
    background: var(--surface);
}

.process-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 120px;
}

.process-heading {
    position: sticky;
    top: 60px;
    align-self: start;
}

.process-list {
    border-top: 1px solid var(--line);
}

.process-step {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 30px;
    padding: 42px 0;
    border-bottom: 1px solid var(--line);
}

.process-step > span {
    padding-top: 4px;
    color: var(--gold-dark);
    font-size: 12px;
    letter-spacing: .14em;
}

.process-step h3 {
    margin: 0;
    color: var(--dark);
    font-size: 25px;
    font-weight: 400;
}

.process-step p {
    max-width: 500px;
    margin: 12px 0 0;
    color: var(--muted);
}


/* Responsive */

@media (max-width: 1050px) {

    .main-nav {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: 0;
    }

    .hero-image {
        position: relative;
        width: 100%;
        height: 55vw;
        min-height: 360px;
        max-height: 600px;
    }

    .hero-content {
        min-height: 0;
    }

    .hero-copy {
        width: 100%;
        padding: 75px 0 80px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card {
        border-bottom: 1px solid var(--line);
    }

    .process-layout {
        grid-template-columns: 1fr;
        gap: 65px;
    }

    .process-heading {
        position: static;
    }
}


@media (max-width: 680px) {

    .container {
        width: min(calc(100% - 36px), var(--max-width));
    }

    .header-inner {
        min-height: 88px;
    }

    .brand-msg {
        font-size: 34px;
    }

    .brand-name {
        display: none;
    }

    .header-cta {
        padding: 10px 12px;
        font-size: 12px;
    }

    .hero {
        padding-top: 0;
    }

    .hero-image {
        height: 78vw;
        min-height: 300px;
    }

    .hero-copy {
        padding: 58px 0 65px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        padding: 18px 0;
    }

    .trust-item,
    .trust-item:first-child {
        padding: 20px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .trust-item:last-child {
        border-bottom: 0;
    }

    .section {
        padding: 85px 0;
    }

    .section-intro {
        margin-bottom: 48px;
    }

    .section h2 {
        font-size: 43px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .service-card:first-child {
        min-height: 0;
        padding: 32px 0;
        border-right: 0;
    }

    .service-number {
        margin-bottom: 28px;
    }

    .process-step {
        grid-template-columns: 45px 1fr;
        gap: 15px;
    }
}


/* Hero text slider */

.hero-slider {
    position: relative;
}

.hero-slides {
    position: relative;
    min-height: 330px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition:
        opacity .7s ease,
        transform .7s ease,
        visibility .7s;
}

.hero-slide.is-active {
    position: relative;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 28px;
}

.hero-dot,
.hero-pause {
    appearance: none;
    border: 0;
    background: none;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
}

.hero-dot {
    position: relative;
    min-width: 34px;
    padding: 7px 0 10px;
    text-align: left;
    font-size: 11px;
    letter-spacing: .12em;
}

.hero-dot::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--line);
}

.hero-dot::before {
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gold-dark);
    transition: width .3s ease;
}

.hero-dot.is-active {
    color: var(--dark);
}

.hero-dot.is-active::before {
    width: 100%;
}

.hero-pause {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-left: 3px;
    border: 1px solid var(--line);
    font-size: 10px;
    transition: border-color .2s ease, color .2s ease;
}

.hero-pause:hover {
    color: var(--gold-dark);
    border-color: var(--gold);
}

@media (max-width: 680px) {
    .hero-slides {
        min-height: 315px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
        transform: none;
    }
}


/* Testvariante: vollständiges MSG-Logo auf der Hero-Mittelachse */

@media (min-width: 1051px) {

    .header-inner {
        position: relative;
        width: min(calc(100% - 64px), 1440px);
        justify-content: flex-end;
        gap: 34px;
    }

    .brand {
        position: absolute;
        z-index: 30;
        top: 18px;
        left: 48%;
        transform: translateX(-50%);
        width: 218px;
        margin: 0;
        padding: 14px 17px 12px;
        background: #fff;
        box-shadow: 0 14px 38px rgba(39, 43, 45, .09);
    }

    .brand img {
        display: block;
        width: 100%;
        height: auto;
    }

    .main-nav {
        margin-left: auto;
    }
}


/* Logo-Verhalten bei gestapeltem Hero */

@media (max-width: 1050px) {

    .brand {
        position: absolute;
        top: 14px;
        left: 32px;
        width: 175px;
        margin: 0;
        padding: 9px 11px 8px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(39, 43, 45, .08);
    }

    .brand img {
        display: block;
        width: 100%;
        height: auto;
    }

    .header-inner {
        justify-content: flex-end;
    }
}


@media (max-width: 680px) {

    .brand {
        left: 18px;
        width: 145px;
    }
}


/* Header-/Logo-Feinjustierung */

@media (min-width: 1051px) {

    /*
     * Die Hero-Bildfläche ist 52 % breit.
     * Die Trennkante liegt damit exakt bei 48 % der gesamten Seite.
     * position: static sorgt dafür, dass sich das absolute Logo
     * auf den vollständigen Header und nicht auf den Container bezieht.
     */
    .header-inner {
        position: static;
        width: min(calc(100% - 48px), 1540px);
        min-height: 186px;
        align-items: center;
        justify-content: flex-end;
        gap: 32px;
    }

    .brand {
        top: 0;
        left: 48%;
        width: 218px;
        padding: 14px 17px 12px;
        transform: translateX(-50%);
        box-shadow: 0 8px 18px rgba(39, 43, 45, .13);
    }

    /*
     * Das Menü bleibt rechts ausgerichtet.
     * Etwas geringere Innenabstände verkürzen die Gesamtbreite
     * und schaffen dadurch mehr Raum zwischen Logo und "Leistungen".
     */
    .main-nav {
        margin-left: auto;
        gap: 25px;
    }

    .main-nav a {
        font-size: 13px;
    }

    .header-cta {
        margin-left: 4px;
    }
}


/* Vertrauensband */

.trust-item,
.trust-item:first-child {
    align-items: center;
    padding-left: 24px;
    padding-right: 24px;
    text-align: center;
}


/* =========================================================
   Fester Header beim Scrollen
   ========================================================= */

.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    transition:
        background-color .3s ease,
        box-shadow .3s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 16px rgba(39, 43, 45, .09);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


@media (min-width: 1051px) {

    .header-inner {
        transition: min-height .3s ease;
    }

    .site-header.is-scrolled .header-inner {
        min-height: 92px;
    }

    .brand {
        transition:
            width .3s ease,
            padding .3s ease,
            box-shadow .3s ease;
    }

    .site-header.is-scrolled .brand {
        width: 148px;
        padding: 8px 11px 7px;
        box-shadow: 0 5px 12px rgba(39, 43, 45, .12);
    }
}


/* Zielbereiche nicht unter dem festen Header verstecken */

section[id] {
    scroll-margin-top: 110px;
}


/* =========================================================
   Scroll-to-top
   ========================================================= */

.scroll-top {
    position: fixed;
    z-index: 90;
    right: 28px;
    bottom: 28px;

    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;
    padding: 0;

    border: 1px solid rgba(255, 255, 255, .18);
    background: var(--dark);
    color: #fff;

    font: inherit;
    font-size: 21px;
    line-height: 1;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease,
        background-color .2s ease;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--gold-dark);
}

.scroll-top:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}


@media (max-width: 1050px) {

    .site-header.is-scrolled {
        background: rgba(255, 255, 255, .97);
    }

    .site-header.is-scrolled .header-inner {
        min-height: 82px;
    }

    .site-header.is-scrolled .brand {
        width: 125px;
        padding: 6px 8px;
    }
}


@media (max-width: 680px) {

    .scroll-top {
        right: 18px;
        bottom: 18px;
        width: 44px;
        height: 44px;
    }
}


@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .site-header,
    .header-inner,
    .brand,
    .scroll-top {
        transition: none;
    }
}


/* =========================================================
   Referenzen
   ========================================================= */

.references {
    background: #f5f3ee;
}

.references-head {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 100px;
    align-items: end;
    margin-bottom: 70px;
}

.references-head h2 {
    max-width: 680px;
}

.references-intro {
    max-width: 480px;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 38px 24px;
}

.reference-card {
    min-width: 0;
}

.reference-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.reference-image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #dedbd3;
}

.reference-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            135deg,
            #dedbd3 0%,
            #ebe8e0 52%,
            #d2cfc7 100%
        );
    color: rgba(39, 43, 45, .42);
}

.reference-placeholder::before,
.reference-placeholder::after {
    content: "";
    position: absolute;
    background: rgba(39, 43, 45, .08);
}

.reference-placeholder::before {
    width: 72%;
    height: 1px;
}

.reference-placeholder::after {
    width: 1px;
    height: 72%;
}

.reference-placeholder span {
    position: relative;
    z-index: 1;
    color: rgba(39, 43, 45, .32);
    font-size: 42px;
    font-weight: 300;
    letter-spacing: -.03em;
}

.reference-placeholder small {
    position: relative;
    z-index: 1;
    margin-top: 3px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.reference-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 2px 0;
}

.reference-meta-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.reference-meta-copy small {
    color: var(--gold-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.reference-meta strong {
    color: var(--dark);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
}

.reference-preview {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.reference-meta > .reference-arrow {
    flex: 0 0 auto;
    color: var(--gold-dark);
    font-size: 18px;
    transition: transform .25s ease;
}

.reference-open:hover .reference-meta > .reference-arrow {
    transform: translate(3px, -3px);
}

.reference-open:hover .reference-placeholder {
    transform: scale(1.015);
}

.reference-placeholder {
    transition: transform .45s ease;
}

.references-more {
    display: flex;
    justify-content: center;
    margin-top: 65px;
}

.references-toggle {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid var(--dark);
    background: transparent;
    color: var(--dark);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color .2s ease,
        color .2s ease;
}

.references-toggle span {
    color: var(--gold-dark);
    font-size: 17px;
}

.references-toggle:hover {
    background: var(--dark);
    color: #fff;
}

.references-toggle:hover span {
    color: #d1b47c;
}


@media (max-width: 900px) {

    .references-head {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .reference-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 580px) {

    .reference-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .references-more {
        margin-top: 48px;
    }
}


/* =========================================================
   Referenz-Lightbox
   ========================================================= */

body.lightbox-open {
    overflow: hidden;
}

.reference-lightbox[hidden] {
    display: none;
}

.reference-lightbox {
    position: fixed;
    z-index: 500;
    inset: 0;

    display: grid;
    place-items: center;

    padding: 34px;

    opacity: 0;
    transition: opacity .22s ease;
}

.reference-lightbox.is-open {
    opacity: 1;
}

.reference-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 22, 23, .88);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.reference-lightbox-dialog {
    position: relative;
    z-index: 1;

    width: min(1120px, 100%);
    max-height: calc(100vh - 68px);

    overflow-y: auto;

    background: #f5f3ee;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .28);

    transform: translateY(12px);
    transition: transform .22s ease;
}

.reference-lightbox.is-open .reference-lightbox-dialog {
    transform: translateY(0);
}

.reference-lightbox-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;

    padding: 26px 30px 24px;
}

.reference-lightbox-counter {
    margin: 0 0 5px;
    color: var(--gold-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.reference-lightbox-head h3 {
    margin: 0;
    color: var(--dark);
    font-size: 25px;
    font-weight: 400;
    line-height: 1.2;
}

.reference-lightbox-location {
    margin: 7px 0 0;
    color: var(--gold-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.reference-lightbox-description {
    max-width: 850px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.reference-lightbox-close {
    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 1px solid var(--line);
    background: transparent;
    color: var(--dark);

    font: inherit;
    font-size: 27px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
    transition:
        background-color .2s ease,
        color .2s ease;
}

.reference-lightbox-close:hover {
    background: var(--dark);
    color: #fff;
}

.reference-lightbox-stage {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    align-items: center;

    padding: 0 18px;
}

.reference-lightbox-image {
    position: relative;
    overflow: hidden;

    aspect-ratio: 16 / 9;

    background: #dedbd3;
}

.reference-lightbox-image > img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    background: #252829;
}

.reference-lightbox-image .reference-placeholder {
    width: 100%;
    height: 100%;
}

.reference-image-nav {
    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    margin-inline: auto;
    padding: 0;

    border: 1px solid var(--line);
    background: transparent;
    color: var(--dark);

    font: inherit;
    font-size: 20px;

    cursor: pointer;
    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.reference-image-nav:hover {
    border-color: var(--dark);
    background: var(--dark);
    color: #fff;
}

.reference-image-dots {
    display: flex;
    justify-content: center;
    gap: 9px;

    padding: 20px 0 5px;
}

.reference-image-dot {
    width: 36px;
    height: 3px;

    padding: 0;

    border: 0;
    background: rgba(39, 43, 45, .18);

    cursor: pointer;
}

.reference-image-dot.is-active {
    background: var(--gold-dark);
}

.reference-image-nav[hidden],
.reference-image-dots[hidden] {
    display: none;
}

.reference-project-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;

    margin-top: 18px;
    padding: 22px 30px 26px;

    border-top: 1px solid var(--line);
}

.reference-project-nav button {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    padding: 0;

    border: 0;
    background: transparent;
    color: var(--dark);

    font: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.reference-project-prev {
    justify-self: start;
}

.reference-project-next {
    justify-self: end;
}

.reference-project-nav button span {
    color: var(--gold-dark);
    font-size: 18px;
}

.reference-project-position {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .14em;
}

.reference-lightbox button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}


@media (max-width: 760px) {

    .reference-lightbox {
        padding: 14px;
    }

    .reference-lightbox-dialog {
        max-height: calc(100vh - 28px);
    }

    .reference-lightbox-head {
        padding: 20px 18px 18px;
    }

    .reference-lightbox-head h3 {
        font-size: 21px;
    }

    .reference-lightbox-stage {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        padding: 0 7px;
    }

    .reference-image-nav {
        width: 36px;
        height: 44px;
        border: 0;
    }

    .reference-lightbox-image {
        aspect-ratio: 4 / 3;
    }

    .reference-project-nav {
        grid-template-columns: 1fr 1fr;
        gap: 16px;

        padding: 18px;
    }

    .reference-project-position {
        display: none;
    }

    .reference-project-nav button {
        font-size: 11px;
    }
}


@media (max-width: 480px) {

    .reference-lightbox {
        padding: 8px;
    }

    .reference-lightbox-dialog {
        max-height: calc(100vh - 16px);
    }

    .reference-lightbox-stage {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        padding: 0 3px;
    }

    .reference-image-nav {
        width: 30px;
    }

    .reference-project-nav {
        gap: 8px;
    }
}


@media (prefers-reduced-motion: reduce) {

    .reference-lightbox,
    .reference-lightbox-dialog {
        transition: none;
    }
}


/* =========================================================
   Echtes Hero-Motiv
   ========================================================= */

.hero-image {
    background-image: url("../images/hero/gunkel-hero-terrasse.webp");
    background-size: cover;
    background-position: 52% center;
    background-repeat: no-repeat;
}

.hero-image::before,
.hero-image::after {
    display: none;
}

.hero-image > span {
    display: none;
}


/* =========================================================
   Headerfarben auf Hero-Foto / beim Scrollen
   ========================================================= */

@media (min-width: 1051px) {

    /* Ausgangszustand: Navigation liegt auf dem Hero-Foto */
    .site-header:not(.is-scrolled) .main-nav a {
        color: #fff;
        text-shadow: 0 1px 8px rgba(0, 0, 0, .22);
    }

    .site-header:not(.is-scrolled) .header-cta {
        border-color: rgba(255, 255, 255, .85);
        color: #fff;
        text-shadow: 0 1px 8px rgba(0, 0, 0, .18);
    }

    .site-header:not(.is-scrolled) .header-cta:hover {
        border-color: #fff;
        background: #fff;
        color: var(--dark);
        text-shadow: none;
    }


    /* Sticky-Zustand: weißer Header */
    .site-header.is-scrolled .main-nav a {
        color: var(--dark);
        text-shadow: none;
    }

    .site-header.is-scrolled .header-cta {
        border-color: var(--dark);
        color: var(--dark);
        text-shadow: none;
    }

    .site-header.is-scrolled .header-cta:hover {
        background: var(--dark);
        color: #fff;
    }
}


/* =========================================================
   Kundenstimmen / MyHammer
   ========================================================= */

.reviews {
    background: var(--dark);
    color: #fff;
}

.reviews .eyebrow {
    color: #d1b47c;
}

.reviews-head {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: 110px;
    align-items: end;
    margin-bottom: 76px;
}

.reviews-rating {
    padding-right: 55px;
    border-right: 1px solid rgba(255, 255, 255, .14);
}

.reviews-score {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.reviews-score strong {
    color: #fff;
    font-size: clamp(72px, 8vw, 112px);
    font-weight: 300;
    letter-spacing: -.055em;
    line-height: .9;
}

.reviews-score span {
    color: rgba(255, 255, 255, .48);
    font-size: 18px;
}

.reviews-stars {
    margin-top: 25px;
    color: #d1b47c;
    font-size: 18px;
    letter-spacing: .16em;
}

.reviews-count {
    margin: 13px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
}

.reviews-count small {
    color: rgba(255, 255, 255, .42);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .11em;
}

.reviews-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-top: 25px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(209, 180, 124, .55);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.reviews-link span {
    color: #d1b47c;
    font-size: 17px;
    transition: transform .2s ease;
}

.reviews-link:hover span {
    transform: translate(3px, -3px);
}

.reviews-copy h2 {
    color: #fff;
}

.reviews-copy h2 span {
    color: #d1b47c;
}

.reviews-copy > p {
    max-width: 620px;
    margin: 27px 0 0;
    color: rgba(255, 255, 255, .67);
    font-size: 16px;
    line-height: 1.75;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, .14);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.review-card {
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 38px 36px 34px;
    border-right: 1px solid rgba(255, 255, 255, .14);
}

.review-card:first-child {
    padding-left: 0;
}

.review-card:last-child {
    padding-right: 0;
    border-right: 0;
}

.review-card-stars {
    color: #d1b47c;
    font-size: 12px;
    letter-spacing: .16em;
}

.review-card blockquote {
    margin: 50px 0 45px;
    color: #fff;
    font-size: clamp(20px, 2vw, 27px);
    font-weight: 300;
    line-height: 1.45;
}

.review-card footer {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: auto;
}

.review-card footer strong {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.review-card footer span {
    color: rgba(255, 255, 255, .42);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
}


@media (max-width: 900px) {

    .reviews-head {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .reviews-rating {
        padding-right: 0;
        padding-bottom: 45px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .14);
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .review-card,
    .review-card:first-child,
    .review-card:last-child {
        min-height: 0;
        padding: 34px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .14);
    }

    .review-card:last-child {
        border-bottom: 0;
    }

    .review-card blockquote {
        margin: 35px 0 40px;
    }
}


/* =========================================================
   Kundenstimmen – horizontales Carousel
   ========================================================= */

.review-carousel {
    position: relative;
}

.review-viewport {
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,.14);
    border-bottom: 1px solid rgba(255,255,255,.14);
}

.review-track {
    display: flex;
    gap: 24px;
    will-change: transform;
}

.review-carousel .review-card {
    flex: 0 0 calc((100% - 48px) / 3);

    min-height: 330px;
    padding: 38px 28px 34px;

    border: 0;
    border-right: 1px solid rgba(255,255,255,.14);
}

.review-carousel .review-card:first-child {
    padding-left: 28px;
}

.review-carousel .review-card blockquote {
    margin: 48px 0 42px;
}

.review-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding-top: 25px;
}

.review-position {
    display: flex;
    align-items: baseline;
    gap: 6px;

    color: rgba(255,255,255,.42);

    font-size: 11px;
    letter-spacing: .13em;
}

.review-current {
    color: #d1b47c;
    font-size: 16px;
}

.review-buttons {
    display: flex;
    gap: 8px;
}

.review-buttons button {
    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;
    padding: 0;

    border: 1px solid rgba(255,255,255,.2);
    background: transparent;
    color: #fff;

    font: inherit;
    font-size: 17px;

    cursor: pointer;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.review-buttons button:hover {
    border-color: #d1b47c;
    background: #d1b47c;
    color: var(--dark);
}

.review-buttons .review-pause {
    font-size: 10px;
}

.review-buttons button:focus-visible {
    outline: 2px solid #d1b47c;
    outline-offset: 3px;
}


@media (max-width: 900px) {

    .review-carousel .review-card {
        flex-basis: calc((100% - 24px) / 2);
    }
}


@media (max-width: 620px) {

    .review-track {
        gap: 16px;
    }

    .review-carousel .review-card,
    .review-carousel .review-card:first-child {
        flex-basis: 100%;
        padding: 32px 22px;
    }

    .review-carousel .review-card blockquote {
        margin: 34px 0 38px;
    }
}


@media (prefers-reduced-motion: reduce) {

    .review-track {
        transition: none !important;
    }
}


/* =========================================================
   Holzkunde / Materialberatung
   ========================================================= */

.wood-guide {
    background: #fff;
}

.wood-guide-layout {
    display: grid;
    grid-template-columns: .78fr 1.22fr;
    gap: 110px;
    align-items: start;
}

.wood-guide-intro {
    position: sticky;
    top: 130px;
}

.wood-guide-intro h2 {
    max-width: 580px;
}

.wood-guide-lead {
    max-width: 520px;
    margin: 34px 0 0;
    color: var(--text);
    font-size: 17px;
    line-height: 1.75;
}

.wood-guide-note {
    max-width: 500px;
    margin: 28px 0 0;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.wood-group-label {
    margin: 0 0 15px;
    color: var(--gold-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.wood-group-label-secondary {
    margin-top: 58px;
}

.wood-accordion {
    border-top: 1px solid var(--line);
}

.wood-item {
    border-bottom: 1px solid var(--line);
}

.wood-item summary {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 38px;
    gap: 20px;
    align-items: center;

    min-height: 98px;
    padding: 18px 0;

    list-style: none;
    cursor: pointer;
}

.wood-item summary::-webkit-details-marker {
    display: none;
}

.wood-number {
    color: var(--gold-dark);
    font-size: 11px;
    letter-spacing: .12em;
}

.wood-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wood-title strong {
    color: var(--dark);
    font-size: 23px;
    font-weight: 400;
    line-height: 1.2;
}

.wood-title small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .04em;
}

.wood-plus {
    position: relative;
    display: block;
    width: 28px;
    height: 28px;
    justify-self: end;
}

.wood-plus::before,
.wood-plus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;

    width: 16px;
    height: 1px;

    background: var(--dark);

    transform: translate(-50%, -50%);
    transition: transform .25s ease;
}

.wood-plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.wood-item[open] .wood-plus::after {
    transform: translate(-50%, -50%) rotate(0);
}

.wood-item[open] summary {
    padding-bottom: 10px;
}

.wood-item-content {
    max-width: 700px;
    padding: 0 58px 38px 72px;
}

.wood-item-content p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.wood-item-content p + p {
    margin-top: 17px;
}

.wood-facts {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 25px;

    margin-top: 23px;
    padding-top: 16px;

    border-top: 1px solid var(--line);

    font-size: 11px;
}

.wood-facts span {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
}

.wood-facts strong {
    color: var(--dark);
    font-size: 12px;
    font-weight: 600;
}


/* kleine Hover-Reaktion nur für echte Mausgeräte */

@media (hover: hover) and (pointer: fine) {

    .wood-item summary:hover .wood-title strong {
        color: var(--gold-dark);
    }

    .wood-title strong {
        transition: color .2s ease;
    }
}


@media (max-width: 950px) {

    .wood-guide-layout {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .wood-guide-intro {
        position: static;
    }

    .wood-guide-lead,
    .wood-guide-note {
        max-width: 680px;
    }
}


@media (max-width: 620px) {

    .wood-guide-layout {
        gap: 55px;
    }

    .wood-item summary {
        grid-template-columns: 35px minmax(0, 1fr) 30px;
        gap: 12px;
        min-height: 88px;
    }

    .wood-title strong {
        font-size: 19px;
    }

    .wood-title small {
        font-size: 10px;
    }

    .wood-item-content {
        padding: 0 0 32px 47px;
    }

    .wood-facts {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}


/* =========================================================
   Holzkunde – hochwertige Akkordeon-Animation
   ========================================================= */

/*
 * Die Summary behält geöffnet und geschlossen exakt dieselben
 * Abstände. Dadurch springt die Überschrift nicht mehr.
 */
.wood-item[open] summary {
    padding: 18px 0;
}

/*
 * Der Inhalt selbst bleibt ruhig und wird über die Höhe
 * des gesamten <details>-Elements animiert.
 */
.wood-item {
    overflow: hidden;
}

.wood-item-content {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity .32s ease,
        transform .42s cubic-bezier(.22, 1, .36, 1);
}

.wood-item.is-closing .wood-item-content {
    opacity: 0;
    transform: translateY(-7px);
}

.wood-item.is-opening .wood-item-content {
    animation: woodContentIn .46s cubic-bezier(.22, 1, .36, 1);
}

@keyframes woodContentIn {
    from {
        opacity: 0;
        transform: translateY(-7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Plus/Minus etwas ruhiger und wertiger */

.wood-plus::before,
.wood-plus::after {
    transition:
        transform .38s cubic-bezier(.22, 1, .36, 1),
        background-color .25s ease;
}

.wood-item[open] .wood-plus::before,
.wood-item[open] .wood-plus::after {
    background: var(--gold-dark);
}


@media (max-width: 620px) {

    .wood-item[open] summary {
        padding: 18px 0;
    }
}


@media (prefers-reduced-motion: reduce) {

    .wood-item-content,
    .wood-plus::before,
    .wood-plus::after {
        transition: none;
        animation: none;
        transform: none;
    }
}


/* =========================================================
   Über uns
   ========================================================= */

.about {
    background: var(--bg);
}

.about-layout {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 110px;
    align-items: center;
}

.about-brand {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 560px;
    padding: 70px 62px;

    background: var(--dark);
}

.about-logo {
    width: min(330px, 100%);
    margin-inline: auto;
    padding: 26px 30px 22px;

    background: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

.about-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.about-placeholder-note {
    max-width: 300px;
    margin: 38px auto 0;

    color: rgba(255, 255, 255, .48);

    font-size: 10px;
    line-height: 1.7;
    letter-spacing: .1em;
    text-align: center;
    text-transform: uppercase;
}

.about-content h2 {
    max-width: 700px;
}

.about-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 38px;

    margin-top: 42px;
}

.about-copy p {
    margin: 0;

    color: var(--muted);

    font-size: 15px;
    line-height: 1.8;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    margin-top: 58px;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about-value {
    min-width: 0;
    padding: 27px 20px;

    border-right: 1px solid var(--line);
}

.about-value:first-child {
    padding-left: 0;
}

.about-value:last-child {
    border-right: 0;
}

.about-value span {
    display: block;

    margin-bottom: 17px;

    color: var(--gold-dark);

    font-size: 10px;
    letter-spacing: .14em;
}

.about-value strong {
    display: block;

    color: var(--dark);

    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.about-value p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}


@media (max-width: 950px) {

    .about-layout {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .about-brand {
        min-height: 440px;
    }
}


@media (max-width: 650px) {

    .about-brand {
        min-height: 360px;
        padding: 55px 35px;
    }

    .about-logo {
        width: min(260px, 100%);
    }

    .about-copy {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .about-value,
    .about-value:first-child {
        padding: 22px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .about-value:last-child {
        border-bottom: 0;
    }
}


/* =========================================================
   Kontakt
   ========================================================= */

.contact {
    background: #fff;
}

.contact-head {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 100px;
    align-items: end;

    margin-bottom: 75px;
}

.contact-intro {
    max-width: 470px;
    margin: 0 0 8px;

    color: var(--muted);

    font-size: 16px;
    line-height: 1.75;
}

.contact-layout {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: 90px;
    align-items: start;
}

.contact-details {
    border-top: 1px solid var(--line);
}

.contact-item {
    position: relative;

    display: flex;
    flex-direction: column;
    gap: 5px;

    padding: 27px 45px 27px 0;

    border-bottom: 1px solid var(--line);

    color: inherit;
    text-decoration: none;
}

.contact-item > span {
    color: var(--gold-dark);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.contact-item strong {
    color: var(--dark);

    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
}

.contact-item i {
    position: absolute;
    top: 50%;
    right: 5px;

    color: var(--gold-dark);

    font-size: 19px;
    font-style: normal;

    transform: translateY(-50%);
    transition: transform .2s ease;
}

a.contact-item:hover i {
    transform: translate(4px, calc(-50% - 4px));
}

.contact-form-wrap {
    padding: 48px 52px 50px;

    background: var(--bg);
}

.contact-form-label {
    margin: 0 0 36px;

    color: var(--gold-dark);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.form-field {
    margin-bottom: 28px;
}

.form-field label {
    display: block;

    margin-bottom: 8px;

    color: var(--dark);

    font-size: 11px;
    font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
    display: block;

    width: 100%;
    min-height: 48px;

    padding: 10px 0;

    border: 0;
    border-bottom: 1px solid rgba(39, 43, 45, .28);
    border-radius: 0;

    outline: none;

    background: transparent;
    color: var(--dark);

    font: inherit;
    font-size: 15px;

    transition: border-color .2s ease;
}

.form-field textarea {
    min-height: 125px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--gold-dark);
}

.form-consent {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    align-items: start;

    margin-top: 8px;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.55;
}

.form-consent input {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;

    accent-color: var(--dark);
}

.form-consent a {
    color: var(--dark);
}

.form-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-top: 34px;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    gap: 25px;

    min-height: 52px;
    padding: 0 23px;

    border: 0;

    background: var(--dark);
    color: #fff;

    font: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition: background-color .2s ease;
}

.form-submit span {
    color: #d1b47c;

    font-size: 18px;
}

.form-submit:hover {
    background: var(--gold-dark);
}

.form-submit-row small {
    color: var(--muted);

    font-size: 10px;
}

.form-dev-note {
    margin: 25px 0 0;
    padding: 14px 16px;

    border-left: 2px solid var(--gold-dark);

    background: rgba(184, 154, 98, .08);
    color: var(--muted);

    font-size: 11px;
    line-height: 1.55;
}

.form-dev-note.is-success {
    border-color: rgba(72, 142, 92, .5);
    background: rgba(72, 142, 92, .12);
}

.form-dev-note.is-error {
    border-color: rgba(170, 68, 54, .5);
    background: rgba(170, 68, 54, .1);
}

.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.form-submit:disabled {
    cursor: wait;
    opacity: .65;
}



/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    background: var(--dark);
    color: #fff;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.3fr .9fr .8fr;
    gap: 70px;

    padding: 75px 0 62px;
}

.footer-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;

    width: fit-content;

    text-decoration: none;
}

.footer-msg {
    display: block;

    font-size: 48px;
    font-weight: 300;
    line-height: .9;
    letter-spacing: -4px;
}

.footer-msg > span {
    color: #fff;
}

.footer-msg strong {
    color: #d1b47c;
    font-weight: 300;
}

.footer-brand small {
    margin-top: 10px;

    color: rgba(255,255,255,.48);

    font-size: 9px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.footer-contact,
.footer-address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-contact > span,
.footer-address > span {
    margin-bottom: 16px;

    color: #d1b47c;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.footer-contact a {
    margin-bottom: 5px;

    color: #fff;

    font-size: 14px;
    text-decoration: none;
}

.footer-address p {
    margin: 0;

    color: rgba(255,255,255,.7);

    font-size: 14px;
    line-height: 1.7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 30px;

    padding: 22px 0 25px;

    border-top: 1px solid rgba(255,255,255,.12);

    color: rgba(255,255,255,.42);

    font-size: 10px;
}

.footer-bottom nav {
    display: flex;
    gap: 24px;
}

.footer-bottom a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #fff;
}


@media (max-width: 900px) {

    .contact-head,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}


@media (max-width: 620px) {

    .contact-form-wrap {
        padding: 38px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-submit-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 38px;

        padding: 58px 0 48px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 14px;
    }
}


/* =========================================================
   Rechtliche Unterseiten
   ========================================================= */

.legal-page {
    min-height: 100%;
    background: var(--bg);
}

.legal-header {
    position: relative;
    z-index: 10;

    background: #fff;
    border-bottom: 1px solid var(--line);
}

.legal-header-inner {
    min-height: 150px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.legal-logo {
    display: block;

    width: 170px;
    padding: 10px 12px 9px;

    background: #fff;
    box-shadow: 0 6px 14px rgba(39,43,45,.11);
}

.legal-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.legal-back {
    color: var(--dark);

    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.legal-back:hover {
    color: var(--gold-dark);
}


.legal-main {
    padding: 110px 0 130px;
}

.legal-layout {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 120px;
    align-items: start;
}

.legal-side {
    position: sticky;
    top: 120px;
}

.legal-side h1 {
    margin: 0;

    color: var(--dark);

    font-size: clamp(54px, 6vw, 82px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -.018em;
}

.legal-intro {
    max-width: 390px;
    margin: 30px 0 0;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.75;
}

.legal-content {
    border-top: 1px solid var(--line);
}

.legal-content section {
    padding: 34px 0 38px;
    border-bottom: 1px solid var(--line);
}

.legal-content h2 {
    margin: 0 0 18px;

    color: var(--dark);

    font-size: 21px;
    font-weight: 400;
    line-height: 1.3;
}

.legal-content p {
    max-width: 760px;
    margin: 0;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.85;
}

.legal-content p + p {
    margin-top: 17px;
}

.legal-content a {
    color: var(--dark);
}


.legal-footer {
    background: var(--dark);
    color: #fff;
}

.legal-footer-inner {
    min-height: 88px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    color: rgba(255,255,255,.45);

    font-size: 10px;
}

.legal-footer nav {
    display: flex;
    gap: 25px;
}

.legal-footer a {
    color: rgba(255,255,255,.68);
    text-decoration: none;
}

.legal-footer a:hover,
.legal-footer a[aria-current="page"] {
    color: #fff;
}


@media (max-width: 850px) {

    .legal-layout {
        grid-template-columns: 1fr;
        gap: 65px;
    }

    .legal-side {
        position: static;
    }
}


@media (max-width: 620px) {

    .legal-header-inner {
        min-height: 110px;
    }

    .legal-logo {
        width: 130px;
    }

    .legal-back {
        font-size: 11px;
    }

    .legal-main {
        padding: 75px 0 90px;
    }

    .legal-footer-inner {
        align-items: flex-start;
        flex-direction: column;

        padding: 25px 0;
    }
}


/* Echtes Logo im Footer */

.footer-brand-logo {
    width: 185px;
    padding: 12px 14px 10px;

    background: #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .22);
}

.footer-brand-logo img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 620px) {
    .footer-brand-logo {
        width: 160px;
    }
}


/* =========================================================
   Referenzen – gemischte Hoch-/Querformate
   ========================================================= */

/* Raster: immer saubere quadratische Kachel */
.reference-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/*
 * Lightbox:
 * Bilder vollständig zeigen, egal ob Hoch- oder Querformat.
 * Deshalb keine starre 16:9-Fläche mehr.
 */
.reference-lightbox-stage {
    align-items: stretch;
}

.reference-lightbox-image {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 68vh;
    max-height: 76vh;

    aspect-ratio: auto;
    background: #252829;
}

.reference-lightbox-image > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #252829;
}

.reference-lightbox-image .reference-placeholder {
    width: 100%;
    height: 100%;
}

@media (max-width: 760px) {
    .reference-lightbox-image {
        min-height: 58vh;
        max-height: 68vh;
    }
}

@media (max-width: 480px) {
    .reference-lightbox-image {
        min-height: 50vh;
        max-height: 62vh;
    }
}


/* =========================================================
   MOBILE HEADER / NAVIGATION – KONSOLIDIERT
   ========================================================= */

.menu-toggle {
    display: none;
}


@media (max-width: 1050px) {

    /*
     * Der Header liegt ÜBER dem Hero.
     * Deshalb bekommt der Hero ausdrücklich keinen oberen Abstand.
     */
    .hero {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .hero-image {
        margin-top: 0 !important;
    }


    /*
     * Kopfzeile beim Laden:
     * bewusst niedriger als das Logo.
     */
    .site-header {
        position: fixed !important;
        z-index: 300 !important;

        top: 0 !important;
        left: 0 !important;

        width: 100% !important;
        height: 76px !important;
        min-height: 76px !important;

        background: rgba(255, 255, 255, .97) !important;

        box-shadow:
            0 3px 10px rgba(39, 43, 45, .10) !important;

        transition:
            height .32s cubic-bezier(.22, 1, .36, 1),
            box-shadow .25s ease !important;
    }

    .site-header .header-inner {
        position: relative !important;

        width: 100% !important;
        height: 76px !important;
        min-height: 76px !important;

        margin: 0 !important;
        padding: 0 !important;

        transition:
            height .32s cubic-bezier(.22, 1, .36, 1) !important;
    }


    /*
     * Logo exakt horizontal zentriert.
     * Es ist höher als der Header und ragt daher unten heraus.
     */
    .site-header .brand,
    .site-header.is-scrolled .brand {
        position: absolute !important;
        z-index: 340 !important;

        top: 0 !important;
        left: 50% !important;

        width: 132px !important;

        margin: 0 !important;
        padding: 7px 9px 6px !important;

        background: #fff !important;

        box-shadow:
            0 5px 10px rgba(39, 43, 45, .17) !important;

        transform: translateX(-50%) !important;

        transition:
            width .32s cubic-bezier(.22, 1, .36, 1),
            box-shadow .25s ease !important;
    }

    .site-header .brand img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
    }


    /*
     * Hamburger rechts.
     */
    .site-header .menu-toggle {
        position: absolute !important;
        z-index: 350 !important;

        top: 15px !important;
        right: 16px !important;

        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;

        width: 46px !important;
        height: 46px !important;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
        background: var(--dark) !important;

        cursor: pointer !important;
    }

    .site-header .menu-toggle span {
        position: absolute !important;
        left: 13px !important;

        display: block !important;

        width: 20px !important;
        height: 1px !important;

        background: #fff !important;

        transition:
            top .3s cubic-bezier(.22, 1, .36, 1),
            transform .3s cubic-bezier(.22, 1, .36, 1) !important;
    }

    .site-header .menu-toggle span:first-child {
        top: 19px !important;
    }

    .site-header .menu-toggle span:last-child {
        top: 27px !important;
    }

    .site-header.mobile-menu-open .menu-toggle span:first-child {
        top: 23px !important;
        transform: rotate(45deg) !important;
    }

    .site-header.mobile-menu-open .menu-toggle span:last-child {
        top: 23px !important;
        transform: rotate(-45deg) !important;
    }


    /*
     * Navigation geschlossen.
     */
    .site-header .main-nav {
        position: fixed !important;
        z-index: 320 !important;

        inset: 0 !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;

        gap: 0 !important;

        margin: 0 !important;
        padding: 128px 24px 45px !important;

        background: rgba(245, 243, 238, .995) !important;

        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;

        transform: translateY(-8px) !important;

        transition:
            opacity .25s ease,
            visibility .25s ease,
            transform .35s cubic-bezier(.22, 1, .36, 1) !important;
    }


    /*
     * Navigation geöffnet.
     */
    .site-header.mobile-menu-open .main-nav {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;

        transform: translateY(0) !important;
    }

    .site-header .main-nav a {
        display: block !important;

        width: 100% !important;
        padding: 17px 0 !important;

        border: 0 !important;
        border-bottom: 1px solid var(--line) !important;

        color: var(--dark) !important;
        text-shadow: none !important;

        font-size: clamp(29px, 7vw, 40px) !important;
        font-weight: 300 !important;
        line-height: 1.08 !important;
        letter-spacing: -.02em !important;

        text-decoration: none !important;
    }

    .site-header .main-nav a:first-child {
        border-top: 1px solid var(--line) !important;
    }

    .site-header .main-nav a::after {
        display: none !important;
    }


    /*
     * Beim Scrollen wird nur die weiße Kopfzeile kleiner.
     * Das Logo bleibt nach unten überstehend.
     */
    .site-header.is-scrolled {
        height: 54px !important;
        min-height: 54px !important;
    }

    .site-header.is-scrolled .header-inner {
        height: 54px !important;
        min-height: 54px !important;
    }

    .site-header.is-scrolled .brand {
        width: 108px !important;

        box-shadow:
            0 4px 9px rgba(39, 43, 45, .16) !important;
    }

    .site-header.is-scrolled .menu-toggle {
        top: 5px !important;

        width: 44px !important;
        height: 44px !important;
    }

    .site-header.is-scrolled .menu-toggle span {
        left: 12px !important;
    }

    .site-header.is-scrolled .menu-toggle span:first-child {
        top: 18px !important;
    }

    .site-header.is-scrolled .menu-toggle span:last-child {
        top: 26px !important;
    }

    .site-header.is-scrolled.mobile-menu-open
    .menu-toggle span:first-child,

    .site-header.is-scrolled.mobile-menu-open
    .menu-toggle span:last-child {
        top: 22px !important;
    }


    body.mobile-menu-active {
        overflow: hidden !important;
    }
}


@media (max-width: 480px) {

    .site-header .brand {
        width: 124px !important;
    }

    .site-header.is-scrolled .brand {
        width: 104px !important;
    }
}


@media (min-width: 1051px) {

    .menu-toggle {
        display: none !important;
    }
}


@media (prefers-reduced-motion: reduce) {

    .site-header,
    .site-header .header-inner,
    .site-header .brand,
    .site-header .main-nav,
    .site-header .menu-toggle span {
        transition: none !important;
    }
}
