:root {
    --bg: #0d0d0d;
    --panel: #141414;
    --text: #f5f1e8;
    --muted: #b9b3a6;
    --accent: #d6c7a1;
    --line: rgba(255, 255, 255, 0.08);
    --header-offset: 86px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(10px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 60px;
}

.brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.brand img {
    width: 160px;
    height: auto;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.site-nav a {
    color: var(--muted);
    transition: color 0.3s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--accent);
}

.site-nav__icon {
    display: inline-flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.page {
    padding-top: 0;
}

.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: calc(var(--header-offset) + 40px) 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.65));
    z-index: 1;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--hero-img-desktop);
    background-position: center;
    background-size: cover;
    transform: scale(1.08);
    animation: hero-zoom 16s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes hero-zoom {
    from {
        transform: scale(1.08);
    }
    to {
        transform: scale(1);
    }
}

@media (max-width: 600px) {
    .hero__bg {
        background-image: var(--hero-img-mobile, var(--hero-img-desktop));
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__bg {
        animation: none;
        transform: scale(1);
    }
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

.eyebrow {
    color: var(--accent);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 18px;
}

.hero h1,
.section-title {
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.25rem);
    line-height: 1.05;
}

.hero p,
.lead,
.text-muted {
    color: var(--muted);
    font-size: 18px;
}

.hero p {
    margin: 20px auto 0;
    max-width: 680px;
    line-height: 1.8;
    font-size: clamp(1.05rem, 4vw, 1.875rem);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    transition: 0.3s ease;
}

.btn:hover {
    background: var(--accent);
    color: #000;
}

.btn--ghost {
    border-color: var(--line);
    color: var(--text);
}

.btn--ghost:hover {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

.btn--icon {
    gap: 10px;
}

.cta-social {
    text-align: center;
}

.cta-social .lead {
    max-width: 560px;
    margin: 0 auto;
}

.section {
    padding: 110px 80px;
}

.section + .section {
    border-top: 1px solid var(--line);
}

.legal-header {
    padding: calc(var(--header-offset) + 60px) 80px 40px;
}

.callout {
    max-width: 980px;
    margin-bottom: 32px;
    padding: 20px 24px;
    border: 1px solid var(--accent);
    background: var(--panel);
    color: var(--muted);
    line-height: 1.7;
}

.callout strong {
    color: var(--accent);
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin-bottom: 18px;
}

.section-header {
    max-width: 760px;
    margin-bottom: 44px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.card {
    padding: 28px;
    border: 1px solid var(--line);
    background: var(--panel);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

.card h3 {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.card p {
    color: var(--muted);
    line-height: 1.8;
}

/* ---------- Prozess-Sektion (Premium) ---------- */

.process {
    --process-bg: #050505;
    --process-gold: #c9a85b;
    --process-gold-soft: rgba(201, 168, 91, 0.45);
    --process-line: rgba(255, 255, 255, 0.08);
    position: relative;
    background: var(--process-bg);
    padding: clamp(110px, 16vh, 190px) 24px;
    scroll-margin-top: var(--header-offset);
}

/* Dezente goldene Lichtflächen, damit der Glass-Effekt der Karten sichtbar wird */
.process::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            640px 420px at 12% 18%,
            rgba(201, 168, 91, 0.07),
            transparent 70%
        ),
        radial-gradient(
            720px 520px at 88% 72%,
            rgba(201, 168, 91, 0.05),
            transparent 70%
        );
    pointer-events: none;
}

.process > * {
    position: relative;
}

.process__header {
    max-width: 860px;
    margin: 0 auto clamp(90px, 14vh, 170px);
    text-align: center;
}

.process__eyebrow {
    color: var(--process-gold);
    letter-spacing: 6px;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 24px;
}

.process__title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    line-height: 1.12;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #fff;
}

.process__lead {
    color: #9a958a;
    max-width: 700px;
    margin: 28px auto 0;
    line-height: 1.9;
    font-size: 1.05rem;
}

.process__flow {
    max-width: 940px;
    margin: 0 auto;
    display: grid;
    gap: clamp(72px, 12vh, 150px);
}

.process-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
    padding: clamp(36px, 5.5vw, 68px);
    border: 1px solid var(--process-line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.45s ease;
}

/* Glass-Blur erst nach der Reveal-Animation (.is-settled) aktivieren:
   Firefox rendert Elemente mit backdrop-filter nicht, solange ein Vorfahre
   eine Opacity-Transition abspielt – die Karte bliebe unsichtbar und würde
   am Ende hart aufploppen. Ohne JS (kein .js-reveal) ist der Blur sofort an. */
html:not(.js-reveal) .process-card,
[data-reveal].is-settled .process-card {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.process-card:hover {
    border-color: var(--process-gold-soft);
}

.process-card__number {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 200;
    font-size: clamp(2.8rem, 7vw, 4.8rem);
    line-height: 0.9;
    color: var(--process-gold);
    letter-spacing: 2px;
}

.process-card__title {
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 16px;
}

.process-card__content p {
    color: #a9a49a;
    line-height: 1.9;
    max-width: 58ch;
}

.process-card__content p + p {
    margin-top: 12px;
}

.process__visual {
    overflow: hidden;
    border: 1px solid var(--process-line);
    border-radius: 28px;
    aspect-ratio: 16 / 9;
}

.process__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: process-kenburns 26s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes process-kenburns {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.12);
    }
}

/* Scroll-Reveal: Karten fliegen einzeln ins Bild.
   script.js setzt .js-reveal auf <html> und togglet .is-visible per
   IntersectionObserver — ohne JS bleibt alles sichtbar. */
html.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(100px) scale(0.95);
    filter: blur(6px);
    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js-reveal [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    html.js-reveal [data-reveal] {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }

    .process__visual img {
        animation: none;
    }
}

@media (max-width: 640px) {
    .process__title {
        font-size: clamp(1.7rem, 8.5vw, 2.4rem);
        letter-spacing: 3px;
    }

    .process-card {
        grid-template-columns: 1fr;
        gap: 20px;
        border-radius: 20px;
    }

    .process__visual {
        aspect-ratio: 4 / 3;
        border-radius: 20px;
    }
}

.timeline {
    --tl-offset: 22px;
    display: grid;
    gap: 26px;
    position: relative;
    padding-left: calc(var(--tl-offset) + 20px);
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--tl-offset);
    width: 2px;
    background: var(--accent);
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline-item h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.timeline-item p {
    color: var(--muted);
    line-height: 1.8;
}

.team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.member {
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--panel);
    text-align: center;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.member:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

.portrait {
    width: min(100%, 360px);
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    margin: 0 auto 18px;
}

.member__photo {
    display: grid;
    place-items: center;
    min-height: 320px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    background: #2b2b2b;
    color: var(--muted);
}

.member h3 {
    margin-bottom: 8px;
}

.member__role {
    color: var(--accent);
}

.prose {
    max-width: 980px;
    color: var(--muted);
    line-height: 1.9;
    font-size: 1.05rem;
}

.prose h3 {
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 16px;
}

.prose h3:not(:first-child) {
    margin-top: 48px;
}

.prose p + p {
    margin-top: 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.gallery--collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.gallery--collage-3 {
    display: block;
    column-count: 3;
    column-gap: 10px;
}

.gallery-card {
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.gallery--collage .gallery-card {
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 0;
}

.gallery-image {
    width: 100%;
    height: auto;
    max-height: 75vh;
    display: block;
    object-fit: contain;
    border: 1px solid var(--line);
    background: var(--bg);
    margin-bottom: 14px;
}

.gallery--collage .gallery-image {
    margin-bottom: 0;
}

.gallery--collage-3 .gallery-card {
    display: block;
    break-inside: avoid;
    margin-bottom: 10px;
    overflow: visible;
}

.gallery--collage-3 .gallery-image {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    border: 0;
}

.gallery--collage-3 .gallery-image--crop {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
}

.reference-showcase {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 24px;
    align-items: start;
}

.reference-showcase--single {
    grid-template-columns: minmax(0, 1fr);
}

.reference-stack {
    display: grid;
    gap: 14px;
}

.reference-frame {
    padding: 14px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.reference-caption {
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
}

.reference-card {
    padding: 14px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.reference-image {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    display: block;
}

.placeholder {
    display: grid;
    place-items: center;
    min-height: 180px;
    margin-bottom: 14px;
    background: #2b2b2b;
    color: var(--muted);
}

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: start;
}

.feature {
    align-items: center;
}

.feature-split {
    justify-items: center;
}

.feature__media img {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    border: 1px solid var(--line);
    background: var(--panel);
}

.feature__media {
    width: min(100%, 420px);
}

.feature__text {
    display: grid;
    gap: 18px;
}

.feature--reverse .feature__media {
    order: 2;
}

.feature--reverse .feature__text {
    order: 1;
}

.stack {
    display: grid;
    gap: 18px;
}

.note {
    padding: 18px 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
}

.contact-details {
    display: grid;
    gap: 18px;
    font-style: normal;
    line-height: 1.7;
}

.contact-details a {
    color: var(--accent);
}

form {
    display: grid;
    gap: 18px;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.form-status {
    color: var(--accent);
}

.form-status--error {
    color: #e05a4e;
}

.map-consent {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 48px 24px;
    border: 1px solid var(--line);
    background: var(--panel);
    text-align: center;
}

.map-consent:has(iframe) {
    padding: 0;
}

.map-consent__hint {
    max-width: 560px;
    color: var(--muted);
    line-height: 1.8;
}

.map-consent__hint a {
    color: var(--accent);
    text-decoration: underline;
}

.map-consent__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.map-consent__btn:disabled:hover {
    background: transparent;
    color: var(--accent);
}

.map-consent iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.site-footer {
    padding: 34px 40px;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
}

.site-footer a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--accent);
}

@media (max-width: 900px) {
    .site-header__inner,
    .section,
    .legal-header {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .brand img {
        width: 120px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-wrap: nowrap;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        background: rgba(10, 10, 10, 0.96);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--line);
        transition: max-height 0.3s ease;
    }

    .site-nav.is-open {
        max-height: 320px;
    }

    .site-nav a {
        padding: 16px 20px;
        border-top: 1px solid var(--line);
    }

    .split,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .feature__media {
        width: min(100%, 360px);
    }

    .feature--reverse .feature__media,
    .feature--reverse .feature__text {
        order: initial;
    }

    .timeline {
        --tl-offset: 14px;
    }

    .reference-showcase {
        grid-template-columns: 1fr;
    }

    .gallery--collage-3 {
        column-count: 2;
    }

    .map-consent iframe {
        aspect-ratio: 4 / 5;
    }
}

@media (max-width: 620px) {
    .gallery--collage-3 {
        column-count: 1;
    }
}
