@import "fonts.css";

/* Design Tokens — Farben hier zentral anpassen */
:root {
    --color-bg: #070708;
    --color-bg-deep: #050506;
    --color-bg-rgb: 7 7 8;
    /* Hero-Gold — gedämpftes Bronzegold (wenig Gelb, viel Tiefe) */
    --hero-gold-bright: #9a8050;
    --hero-gold-light: #7f6638;
    --hero-gold-mid: #65502a;
    --hero-gold-deep: #423018;
    --hero-gold-bronze: #24180c;
    --hero-title-gradient: linear-gradient(
        180deg,
        #a68b52 0%,
        #8f7340 16%,
        var(--hero-gold-light) 34%,
        var(--hero-gold-mid) 52%,
        var(--hero-gold-deep) 72%,
        var(--hero-gold-bronze) 86%,
        #6e5528 100%
    );
    /* Über-mich-Portrait — hier Breite anpassen (nur große Screens) */
    --about-portrait-width-lg: 26rem;
    --about-portrait-width-xl: 28rem;
    /* Site-Akzent = Hero-Gold (Buttons, Links, Borders, Labels) */
    --color-accent: var(--hero-gold-mid);
    --color-accent-light: var(--hero-gold-bright);
    --color-accent-light-hover: #a88d58;
    --color-accent-rgb: 101 80 42;
    --color-accent-light-rgb: 154 128 80;
    /* Bei Farbwechsel: og-image.svg, favicon.svg, PNG-Exports + theme-color in HTML prüfen */
    /* Sektionsabstände — zentral anpassen (vorher py-32/py-24, ~33 % reduziert) */
    --section-py: clamp(3rem, 6vw, 5.25rem);
    --section-py-compact: clamp(2.5rem, 5vw, 4rem);
    --section-header-gap: clamp(2rem, 4vw, 3.35rem);
    --section-header-gap-md: clamp(1.75rem, 3vw, 2.65rem);
    --section-header-gap-sm: clamp(1.5rem, 2.5vw, 2rem);
    /* Hero-Bild 1122×1402 — Crop endet oberhalb des eingebetteten Textes (~701px) */
    --hero-art-crop-h: 698;
}

/* Utilities (HTML-Klassen statt Tailwind-Hex) */
.site-body {
    background-color: var(--color-bg);
}

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

.text-accent-light {
    color: var(--color-accent-light);
}

.text-accent-faint {
    color: rgb(var(--color-accent-rgb) / 0.3);
}

.section-kicker {
    color: var(--color-accent);
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-label {
    color: var(--color-accent);
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-divider {
    border-top: 1px solid rgb(var(--color-accent-rgb) / 0.15);
}

.section-padding {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
}

.section-padding-compact {
    padding-top: var(--section-py-compact);
    padding-bottom: var(--section-py-compact);
}

.section-header-gap {
    margin-bottom: var(--section-header-gap);
}

.section-header-gap-md {
    margin-bottom: var(--section-header-gap-md);
}

.section-header-gap-sm {
    margin-bottom: var(--section-header-gap-sm);
}

.footer-divider {
    border-top: 1px solid rgb(var(--color-accent-rgb) / 0.2);
}

.card-index-label {
    color: var(--color-accent);
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
}

.about-tagline {
    color: var(--color-accent-light);
    font-family: ui-monospace, monospace;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-brand {
    color: var(--color-accent-light);
    font-weight: 700;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.footer-column-label {
    color: var(--color-accent);
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.modal-kicker {
    color: var(--color-accent);
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
}

.legal-back-link {
    color: var(--color-accent-light);
    font-weight: 700;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.legal-back-link:hover {
    color: var(--color-accent-light-hover);
}

.legal-page-tag {
    color: var(--color-accent);
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.legal-page-kicker {
    color: var(--color-accent);
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
}

.hero-title {
    font-family: "Cinzel", "Times New Roman", serif;
    font-size: clamp(1.65rem, 5vw, 2.85rem);
    font-weight: 500;
    letter-spacing: 0.14em;
    line-height: 1.15;
    text-transform: uppercase;
    background: var(--hero-title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgb(36 24 12 / 0.9));
}

/* Hero Intro — gestaffeltes Einblenden beim Laden */
@keyframes hero-intro {
    from {
        opacity: 0;
        transform: translate3d(0, 1.35rem, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.spotlight-area .hero-copy > *,
.spotlight-area .hero-actions .hero-cta {
    opacity: 0;
    transform: translate3d(0, 1.35rem, 0);
}

.spotlight-area.is-hero-ready .hero-title {
    animation: hero-intro 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.23s;
}

.spotlight-area.is-hero-ready .hero-subline-wrap {
    animation: hero-intro 0.67s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.39s;
}

.spotlight-area.is-hero-ready .hero-brand-divider {
    animation: hero-intro 0.64s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.52s;
}

.spotlight-area.is-hero-ready .hero-brand {
    animation: hero-intro 0.64s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.64s;
}

.spotlight-area.is-hero-ready .hero-actions .hero-cta {
    animation: hero-intro 0.67s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.79s;
}

@media (prefers-reduced-motion: reduce) {
    .spotlight-area .hero-copy > *,
    .spotlight-area .hero-actions .hero-cta {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

.hero-subline-wrap {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    width: min(100%, 34rem);
    margin: 0.5rem auto 0;
}

.hero-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--hero-gold-bronze),
        var(--hero-gold-mid),
        var(--hero-gold-bronze),
        transparent
    );
    opacity: 0.82;
}

.hero-line--short {
    max-width: 7rem;
}

.hero-subline {
    flex-shrink: 0;
    font-family: "Raleway", system-ui, sans-serif;
    font-size: clamp(0.58rem, 1.6vw, 0.75rem);
    font-weight: 300;
    letter-spacing: 0.28em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--hero-gold-light);
    text-shadow: 0 1px 1px rgb(36 24 12 / 0.55);
}

.hero-brand-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: min(100%, 22rem);
    margin: 0.6rem auto 0.5rem;
}

.hero-diamond {
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    background: var(--hero-gold-mid);
    opacity: 0.88;
    transform: rotate(45deg);
}

.hero-brand {
    font-family: "Raleway", system-ui, sans-serif;
    font-size: clamp(0.78rem, 2vw, 0.95rem);
    font-weight: 400;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--hero-gold-mid);
    text-shadow: 0 1px 1px rgb(36 24 12 / 0.5);
}

.hero-copy {
    flex-shrink: 0;
    width: 100%;
    max-width: 44rem;
    margin-top: clamp(-3rem, -5.5vh, -2rem);
    padding: clamp(1.35rem, 2.5vh, 1.85rem) 1rem 0;
    text-align: center;
    background: var(--color-bg);
    position: relative;
    z-index: 5;
}

.hero-copy::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.75rem;
    background: linear-gradient(to bottom, transparent, var(--color-bg) 85%);
    pointer-events: none;
}

.hero-actions {
    flex-shrink: 0;
    width: 100%;
    max-width: 44rem;
    margin-top: 0.7rem;
    padding: 0.2rem 1rem max(0.75rem, env(safe-area-inset-bottom, 0px));
    text-align: center;
    background: var(--color-bg);
}

/* Scrollbar — Mobile aus; Desktop: eigene Gold-Leiste mit Fade (scrollbar-behavior.js) */
@media (max-width: 767px) {
    html {
        scrollbar-width: none;
    }

    html::-webkit-scrollbar {
        width: 0;
        height: 0;
    }
}

@media (min-width: 768px) {
    html {
        scrollbar-width: none;
    }

    html.legal-document {
        scrollbar-width: thin;
    }

    html::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    html.legal-document::-webkit-scrollbar {
        width: 8px;
        height: 0;
    }

    .site-scrollbar {
        position: fixed;
        top: 0;
        right: 0;
        width: 22px;
        height: 100dvh;
        z-index: 175;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0 2px;
        box-sizing: border-box;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .site-scrollbar.is-visible,
    .site-scrollbar.is-near,
    .site-scrollbar.is-dragging {
        pointer-events: auto;
    }

    .site-scrollbar.is-disabled {
        display: none;
    }

    .site-scrollbar.is-visible {
        opacity: 1;
        transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .site-scrollbar.is-hiding {
        opacity: 0;
        transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body.site-scrollbar-dragging {
        user-select: none;
        cursor: grabbing;
    }

    body.site-scrollbar-dragging .site-scrollbar__thumb {
        cursor: grabbing;
    }

    .site-scrollbar__arrow {
        flex-shrink: 0;
        width: 100%;
        height: 1.25rem;
        margin: 0;
        padding: 0;
        border: none;
        background: transparent;
        color: rgb(var(--color-accent-light-rgb) / 0.45);
        cursor: pointer;
        opacity: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        transition:
            opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
            color 0.25s ease,
            transform 0.2s ease;
    }

    .site-scrollbar__arrow svg {
        width: 0.6rem;
        height: 0.6rem;
        pointer-events: none;
    }

    .site-scrollbar.is-visible .site-scrollbar__arrow,
    .site-scrollbar.is-near .site-scrollbar__arrow,
    .site-scrollbar.is-dragging .site-scrollbar__arrow {
        opacity: 0.75;
    }

    .site-scrollbar__arrow:hover {
        color: rgb(var(--color-accent-light-rgb) / 0.95);
        opacity: 1;
    }

    .site-scrollbar__arrow:active {
        transform: scale(0.92);
    }

    .site-scrollbar__track {
        position: relative;
        flex: 1;
        min-height: 0;
        margin: 0.2rem 0;
        cursor: pointer;
    }

    /* Breite Greiffläche, schmaler sichtbarer Balken */
    .site-scrollbar__thumb {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        min-height: 3.5rem;
        border-radius: 999px;
        opacity: 0;
        cursor: grab;
        touch-action: none;
        transform: translate3d(0, 0, 0);
        will-change: transform;
    }

    .site-scrollbar__thumb-bar {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 4px;
        margin-left: -2px;
        border-radius: 999px;
        background: linear-gradient(
            180deg,
            rgb(var(--color-accent-light-rgb) / 0.12) 0%,
            rgb(var(--color-accent-light-rgb) / 0.72) 38%,
            rgb(var(--color-accent-rgb) / 0.55) 72%,
            rgb(var(--color-accent-light-rgb) / 0.1) 100%
        );
        box-shadow:
            0 0 0 1px rgb(var(--color-accent-light-rgb) / 0.08),
            0 0 16px rgb(var(--color-accent-light-rgb) / 0.18);
        transition:
            width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
            margin 0.35s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.35s ease,
            box-shadow 0.35s ease;
        pointer-events: none;
    }

    .site-scrollbar.is-visible .site-scrollbar__thumb {
        opacity: 1;
    }

    .site-scrollbar.is-hiding .site-scrollbar__thumb {
        opacity: 0;
        transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .site-scrollbar.is-dragging .site-scrollbar__thumb-bar,
    .site-scrollbar.is-near .site-scrollbar__thumb-bar,
    .site-scrollbar__thumb:hover .site-scrollbar__thumb-bar {
        width: 5px;
        margin-left: -2.5px;
        box-shadow:
            0 0 0 1px rgb(var(--color-accent-light-rgb) / 0.14),
            0 0 22px rgb(var(--color-accent-light-rgb) / 0.32);
    }

    .site-scrollbar.is-dragging .site-scrollbar__thumb-bar {
        width: 6px;
        margin-left: -3px;
        opacity: 1;
    }
}

.spotlight-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--color-bg);
    --spotlight-size: 0px;
    --x: 50%;
    --y: 50%;

    mask-image: radial-gradient(circle var(--spotlight-size, 0px) at var(--x, 50%) var(--y, 50%), transparent 100%, black 100%);
    mask-composite: subtract;

    -webkit-mask-image: radial-gradient(
        circle var(--spotlight-size, 0px) at var(--x, 50%) var(--y, 50%),
        rgb(var(--color-bg-rgb) / 0.35) 0%,
        rgb(var(--color-bg-rgb) / 0.45) 30%,
        rgb(var(--color-bg-rgb) / 0.7) 65%,
        rgb(var(--color-bg-rgb) / 0.9) 85%,
        rgb(var(--color-bg-rgb) / 1) 100%
    );
    -webkit-mask-composite: destination-out;
    z-index: 3;
}

/* Layout */
.spotlight-area {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* Mobile: svh statt dvh — Adressleiste ändert dvh beim Scrollen und triggert Scroll-Anchoring */
@media (max-width: 767px) {
    .spotlight-area {
        height: 100svh;
        min-height: 100svh;
        max-height: 100svh;
        overflow-anchor: none;
        touch-action: pan-y;
    }

    .hero-art-zone {
        width: min(100%, 44rem, calc((100svh - 13rem) * 1122 / var(--hero-art-crop-h)));
    }
}

.hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    width: min(100%, 44rem);
    margin: 0 auto;
}

.hero-art-zone {
    position: relative;
    flex-shrink: 0;
    align-self: stretch;
    /* Nur Auge + Frau — Text im JPEG bleibt darunter, wird von .hero-copy überdeckt */
    width: min(100%, 44rem, calc((100dvh - 13rem) * 1122 / var(--hero-art-crop-h)));
    aspect-ratio: 1122 / 698;
    aspect-ratio: 1122 / var(--hero-art-crop-h);
    margin-inline: auto;
    overflow: hidden;
    background: var(--color-bg);
}

.hero-art-zone .spotlight-overlay {
    border-radius: 0;
}

.hidden-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
    overflow: hidden;
}

.hero-bg-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    max-width: none;
}

@media (prefers-reduced-motion: reduce) {
    .hidden-content {
        transition: none;
    }
}

.hero-cta {
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgb(var(--color-accent-rgb) / 0.4);
    background: rgba(9, 9, 11, 0.8);
    color: var(--color-accent-light);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 0.25rem;
    transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .hero-cta:hover {
        background: var(--color-accent-light);
        color: var(--color-bg);
        border-color: var(--color-accent-light);
    }
}

.hero-cta:active {
    background: var(--color-accent-light);
    color: var(--color-bg);
    border-color: var(--color-accent-light);
    transform: scale(0.98);
}

/* Hero-CTA unter dem Bild */
.hero-actions .hero-cta {
    position: relative;
    z-index: 0;
    isolation: isolate;
    border: 1px solid rgb(101 80 42 / 0.45);
    background: transparent;
    color: var(--hero-gold-light);
    transition: border-color 0.4s ease, color 0.4s ease, transform 0.15s ease, box-shadow 0.4s ease;
}

.hero-actions .hero-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: rgba(9, 9, 11, 0.82);
}

@media (hover: hover) {
    .hero-actions .hero-cta:hover {
        color: var(--hero-gold-bright);
        border-color: var(--hero-gold-bright);
        box-shadow: 0 0 14px rgb(154 128 80 / 0.18);
    }
}

.hero-actions .hero-cta:active {
    color: var(--hero-gold-light);
    border-color: var(--hero-gold-bright);
    transform: scale(0.98);
}

/* Cards */
.feature-card {
    position: relative;
    isolation: isolate;
    border: 1px solid rgb(var(--color-accent-rgb) / 0.15);
    background: rgba(24, 24, 27, 0.4);
    transition: background 0.4s ease;
    cursor: pointer;
}

.feature-card:hover {
    background: rgba(24, 24, 27, 0.6);
}

/* Rand-Glow — Basis am ganzen Rand + Spot folgt Pointer (card-glow.js) */
.card-glow {
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-base-opacity: 0;
    --glow-spot-opacity: 0;
    position: relative;
    isolation: isolate;
    touch-action: pan-x pan-y;
    transition:
        background 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-glow::before,
.card-glow::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

/* Basis-Glow — gleichmäßig am ganzen Rand (~¼ Intensität) */
.card-glow::after {
    z-index: 1;
    background: linear-gradient(
        145deg,
        rgb(var(--color-accent-light-rgb) / 0.42),
        rgb(var(--color-accent-rgb) / 0.28) 50%,
        rgb(var(--color-accent-light-rgb) / 0.38)
    );
    opacity: var(--glow-base-opacity);
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Bewegungs-Spot — stärkerer Glow an der Pointer-Position */
.card-glow::before {
    z-index: 2;
    background: radial-gradient(
        140px circle at var(--glow-x) var(--glow-y),
        rgb(var(--color-accent-light-rgb) / 1) 0%,
        rgb(var(--color-accent-light-rgb) / 0.62) 20%,
        rgb(var(--color-accent-rgb) / 0.28) 42%,
        transparent 62%
    );
    opacity: var(--glow-spot-opacity);
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-glow.is-glow-active {
    --glow-base-opacity: 0.28;
    --glow-spot-opacity: 1;
    border-color: rgb(var(--color-accent-rgb) / 0.22);
    box-shadow: 0 0 22px rgb(var(--color-accent-light-rgb) / 0.07);
}

/* Touch-Tap: Basis-Glow bleibt, Spot nur solange Finger drauf */
.card-glow.is-glow-touched:not(.is-glow-active) {
    --glow-base-opacity: 0.24;
    --glow-spot-opacity: 0;
    border-color: rgb(var(--color-accent-rgb) / 0.2);
    box-shadow: 0 0 18px rgb(var(--color-accent-light-rgb) / 0.06);
}

.card-glow > * {
    position: relative;
    z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
    .card-glow::before,
    .card-glow::after {
        display: none;
    }
}

.feature-card-link {
    position: relative;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    align-self: flex-start;
    min-height: 44px;
    padding: 0.65rem 1rem;
    border: 1px solid rgb(var(--color-accent-rgb) / 0.28);
    border-radius: 0.35rem;
    background: rgb(var(--color-bg-rgb) / 0.18);
    color: var(--color-accent-light);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.feature-card-link:hover {
    color: var(--color-accent-light-hover);
    border-color: rgb(var(--color-accent-rgb) / 0.42);
    background: rgb(var(--color-bg-rgb) / 0.28);
}

/* Über mich */
.about-section-intro {
    width: 100%;
}

.about-section-label-desktop {
    display: none;
}

@media (min-width: 1024px) {
    .about-section-label-desktop {
        display: block;
    }
}

.about-portrait-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        align-items: end;
    }

    .about-portrait-wrap {
        justify-content: flex-start;
        align-self: end;
    }
}

.about-portrait {
    display: block;
    width: 100%;
    max-width: 20rem;
    height: auto;
}

@media (min-width: 1024px) {
    .about-portrait {
        width: min(100%, var(--about-portrait-width-lg));
        max-width: none;
        height: auto;
        max-height: none;
        object-fit: contain;
        object-position: bottom left;
    }

    .about-copy > h2 {
        text-align: left;
    }

    .about-copy > .about-tagline {
        text-align: left;
    }
}

@media (min-width: 1280px) {
    .about-portrait {
        width: min(100%, var(--about-portrait-width-xl));
    }
}

@media (max-width: 1023px) {
    .about-copy > h2,
    .about-copy > .about-tagline {
        text-align: center;
    }
}

/* Ablauf — Vertikale Meilenstein-Timeline */
.process-timeline {
    --timeline-rail-width: 3.25rem;
    --timeline-item-gap: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: var(--timeline-item-gap);
    list-style: none;
    margin: 0;
    padding: 0 0.25rem;
}

.process-timeline-item {
    display: grid;
    grid-template-columns: var(--timeline-rail-width) minmax(0, 1fr);
    gap: 0 1.125rem;
    align-items: stretch;
}

.process-timeline-rail {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
}

.process-timeline-rail::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        180deg,
        transparent,
        rgb(var(--color-accent-rgb) / 0.22) 8%,
        rgb(var(--color-accent-rgb) / 0.35) 50%,
        rgb(var(--color-accent-rgb) / 0.22) 92%,
        transparent
    );
}

.process-timeline-item:not(:last-child) .process-timeline-rail::before {
    bottom: calc(-1 * var(--timeline-item-gap));
}

.process-timeline-item:first-child .process-timeline-rail::before {
    top: 50%;
}

.process-timeline-item:last-child .process-timeline-rail::before {
    bottom: 50%;
}

.process-timeline-marker {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    font-family: ui-monospace, monospace;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--color-accent-light);
    background: var(--color-bg);
    border: 1px solid rgb(var(--color-accent-rgb) / 0.45);
    border-radius: 0.25rem;
    box-shadow: 0 0 0 3px var(--color-bg);
}

.process-timeline-card {
    position: relative;
    isolation: isolate;
    margin-bottom: 0;
    padding: 1.125rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(var(--color-accent-rgb) / 0.18);
    background: rgba(18, 18, 20, 0.72);
    box-shadow: 0 1px 0 rgb(var(--color-accent-rgb) / 0.06) inset;
    transition: background 0.35s ease;
}

@media (hover: hover) {
    .process-timeline-card:hover {
        background: rgba(22, 22, 24, 0.85);
    }
}

.process-timeline-title {
    color: #e4e4e7;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.375rem;
}

.process-timeline-text {
    color: #71717a;
    font-size: 0.8125rem;
    line-height: 1.65;
}

@media (min-width: 768px) {
    .process-timeline {
        --timeline-rail-width: 3.5rem;
        padding: 0 0.75rem;
    }

    .process-timeline-item {
        gap: 0 1.5rem;
    }

    .process-timeline-marker {
        width: 3rem;
        height: 3rem;
        font-size: 0.875rem;
    }

    .process-timeline-card {
        padding: 1.25rem 1.5rem;
    }

    .process-timeline-title {
        font-size: 1.0625rem;
    }

    .process-timeline-text {
        font-size: 0.875rem;
    }
}

/* Gold-Scrollbar — Modals & Rechtstext-Seiten */
.gold-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgb(var(--color-accent-light-rgb) / 0.48) rgb(var(--color-bg-rgb) / 0.22);
}

.gold-scrollbar::-webkit-scrollbar {
    width: 7px;
}

.gold-scrollbar::-webkit-scrollbar-track {
    margin: 6px 0;
    background: rgb(var(--color-bg-rgb) / 0.18);
    border-radius: 999px;
}

.gold-scrollbar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
    background-color: rgb(var(--color-accent-light-rgb) / 0.38);
    box-shadow: 0 0 10px rgb(var(--color-accent-light-rgb) / 0.12);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.gold-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: rgb(var(--color-accent-light-rgb) / 0.62);
    box-shadow: 0 0 14px rgb(var(--color-accent-light-rgb) / 0.22);
}

@media (min-width: 768px) {
    html.legal-document {
        scrollbar-width: thin;
        scrollbar-color: rgb(var(--color-accent-light-rgb) / 0.42) rgb(var(--color-bg-rgb) / 0.18);
    }

    html.legal-document::-webkit-scrollbar {
        width: 8px;
    }

    html.legal-document::-webkit-scrollbar-track {
        background: rgb(var(--color-bg-rgb) / 0.15);
    }

    html.legal-document::-webkit-scrollbar-thumb {
        border-radius: 999px;
        border: 2px solid transparent;
        background-clip: padding-box;
        background: linear-gradient(
            180deg,
            rgb(var(--color-accent-light-rgb) / 0.2) 0%,
            rgb(var(--color-accent-light-rgb) / 0.55) 45%,
            rgb(var(--color-accent-rgb) / 0.42) 100%
        );
        box-shadow: 0 0 12px rgb(var(--color-accent-light-rgb) / 0.14);
    }

    html.legal-document::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(
            180deg,
            rgb(var(--color-accent-light-rgb) / 0.35) 0%,
            rgb(var(--color-accent-light-rgb) / 0.72) 50%,
            rgb(var(--color-accent-rgb) / 0.55) 100%
        );
        box-shadow: 0 0 16px rgb(var(--color-accent-light-rgb) / 0.24);
    }
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(var(--color-bg-rgb) / 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 36rem;
    max-height: min(85vh, 640px);
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid rgb(var(--color-accent-rgb) / 0.25);
    background: rgba(12, 12, 14, 0.96);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.4s ease;
}

.modal.is-open .modal-panel {
    transform: translateY(0) scale(1);
}

.modal-panel-chrome {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem 0.75rem 0;
}

.modal-panel-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.25rem 1.75rem 1.5rem 2rem;
    scrollbar-gutter: stable;
}

.modal-close-text {
    display: block;
    width: fit-content;
    margin-top: 1.5rem;
    padding: 0;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.modal-panel--legal .modal-close-text {
    display: none;
}

.modal-close {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #71717a;
    font-size: 1.25rem;
    line-height: 1;
    border-radius: 0.25rem;
    transition: color 0.3s ease, background 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.modal-close:hover {
    color: var(--color-accent-light);
    background: rgb(var(--color-accent-rgb) / 0.1);
}

.modal-panel--legal .modal-panel-scroll {
    padding-bottom: 2rem;
}

.modal-body {
    padding-right: 0.25rem;
}

.modal-body h3 {
    margin: 1.25rem 0 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #e4e4e7;
}

.modal-body p {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: #a1a1aa;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

body.modal-open {
    overflow: hidden;
}

.modal-panel--legal {
    max-width: 42rem;
    max-height: min(90vh, 720px);
}

.modal-panel--legal::-webkit-scrollbar-track {
    margin: 8px 0;
}

.modal-legal-section {
    margin-bottom: 1.5rem;
}

.modal-legal-section:last-child {
    margin-bottom: 0;
}

.modal-legal-heading {
    color: #e4e4e7;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal-legal-section p {
    margin-bottom: 0.75rem;
}

.modal-legal-section p:last-child {
    margin-bottom: 0;
}

/* Legal-Seiten (Fallback ohne JavaScript) */
.legal-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(var(--color-bg-rgb) / 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgb(var(--color-accent-rgb) / 0.2);
}

.legal-page {
    min-height: calc(100vh - 8rem);
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    color: #e4e4e7;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.legal-section h3 {
    color: #d4d4d8;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.legal-section h3:first-child {
    margin-top: 0;
}

.legal-section ul {
    color: #71717a;
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    list-style: disc;
}

.legal-section ul li + li {
    margin-top: 0.5rem;
}

.legal-section p {
    color: #71717a;
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

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

.legal-link {
    color: var(--color-accent-light);
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: var(--color-accent-light-hover);
}

.legal-footer {
    border-top: 1px solid rgb(var(--color-accent-rgb) / 0.12);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    background: rgb(var(--color-bg-rgb) / 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgb(var(--color-accent-rgb) / 0.2);
}

.site-header.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.site-header.is-fading {
    transition: none;
}

.site-header-bar {
    height: 4rem;
}

.site-header-brand {
    text-decoration: none;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.site-header-brand.hero-brand:hover {
    color: var(--hero-gold-light);
}

.site-nav-link {
    color: var(--hero-gold-mid);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.site-nav-link:hover {
    color: var(--hero-gold-light);
}

.site-nav-cta {
    margin-left: 0.375rem;
    padding: 0.5625rem 1.125rem;
    border: 1px solid var(--hero-gold-mid);
    border-radius: 0.25rem;
    background: var(--hero-gold-mid);
    color: #f4f4f5;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .site-nav-cta:hover {
        background: var(--hero-gold-light);
        border-color: var(--hero-gold-light);
        color: #f4f4f5;
    }
}

.site-nav-cta:active {
    transform: scale(0.98);
}

.site-header-nav {
    display: none;
    align-items: center;
    gap: 1.125rem;
}

@media (min-width: 1024px) {
    .site-header-nav {
        gap: 1.75rem;
    }

    .site-nav-link {
        font-size: 0.8125rem;
    }

    .site-nav-cta {
        margin-left: 0.625rem;
        padding: 0.625rem 1.25rem;
        font-size: 0.75rem;
    }
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: flex;
    position: relative;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    border: 1px solid rgb(101 80 42 / 0.45);
    border-radius: 0.25rem;
    background: rgba(9, 9, 11, 0.6);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.mobile-nav-toggle-bar {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--hero-gold-mid);
    border-radius: 1px;
    transition: transform 0.35s ease, opacity 0.25s ease;
    transform-origin: center;
}

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

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

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

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 150;
    pointer-events: none;
}

.mobile-nav.is-open {
    pointer-events: auto;
}

.mobile-nav-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(var(--color-bg-rgb) / 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-nav.is-open .mobile-nav-backdrop {
    opacity: 1;
}

.mobile-nav-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    min-height: 100dvh;
    padding:
        max(4.75rem, calc(4rem + env(safe-area-inset-top, 0px)))
        0
        max(0.75rem, env(safe-area-inset-bottom, 0px));
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-nav.is-open .mobile-nav-panel {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 1.75rem 1.5rem;
    border-bottom: 1px solid rgb(41 37 36 / 0.6);
}

.mobile-nav-section--nav {
    flex: 1;
    justify-content: center;
    padding-top: 1.25rem;
    padding-bottom: 2rem;
}

.mobile-nav-links-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.mobile-nav-links-stack {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    text-align: left;
}

.mobile-nav-section--contact {
    flex-shrink: 0;
    gap: 1rem;
    padding-block: 1.75rem;
}

.mobile-nav-section--legal {
    flex-shrink: 0;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    padding-block: 1.5rem;
    border-bottom: none;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.mobile-nav-list li {
    width: 100%;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding-block: 0.5rem;
    color: #a1a1aa;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease, background 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-link:active,
.mobile-nav-link:hover {
    color: #f4f4f5;
    background: rgb(var(--color-accent-rgb) / 0.06);
}

.mobile-nav-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    font-family: ui-monospace, monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--color-accent-light);
    background: var(--color-bg);
    border: 1px solid rgb(var(--color-accent-rgb) / 0.4);
    border-radius: 0.25rem;
}

.mobile-nav-link-text {
    flex: 1;
    min-width: 0;
    text-align: left;
    letter-spacing: 0.14em;
    white-space: nowrap;
}

.mobile-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.75rem;
    padding: 0.8125rem 1.625rem;
    min-height: 2.75rem;
    border: 1px solid var(--hero-gold-mid);
    border-radius: 0.25rem;
    background: var(--hero-gold-mid);
    color: #f4f4f5;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-cta:active {
    transform: scale(0.98);
    background: var(--hero-gold-light);
    border-color: var(--hero-gold-light);
}

.mobile-nav-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    max-width: 22rem;
    padding: 0.75rem 1rem;
    color: #a8a29e;
    font-size: 0.875rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.3s ease, background 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-contact-link:active,
.mobile-nav-contact-link:hover {
    color: #d6d3d1;
    background: rgb(var(--color-accent-rgb) / 0.05);
}

.mobile-nav-contact-icon {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    color: var(--color-accent);
}

.mobile-nav-legal-link {
    padding: 0.5rem 0.75rem;
    color: #78716c;
    font-size: 0.75rem;
    font-family: ui-monospace, monospace;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-legal-link:active,
.mobile-nav-legal-link:hover {
    color: var(--color-accent-light);
}

body.mobile-nav-open {
    overflow: hidden;
    overscroll-behavior: none;
}

body.mobile-nav-open .site-header {
    z-index: 160;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

body.mobile-nav-open .site-header.is-fading {
    transition: none;
}

@media (max-width: 767px) {
    .site-header-bar {
        justify-content: flex-end;
    }

    .site-header-brand {
        margin-right: auto;
    }

    body.mobile-nav-open .site-header {
        transition: none;
    }
}

@media (min-width: 768px) {
    .site-header-nav {
        display: flex;
    }

    .mobile-nav-toggle,
    .mobile-nav {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-nav-backdrop,
    .mobile-nav-panel,
    .mobile-nav-toggle-bar {
        transition: none;
    }

    .mobile-nav-panel {
        transform: none;
    }
}

/* Scroll-Reveal */
[data-reveal] {
    opacity: 0;
    transform: translate3d(0, 0, 0);
    transition:
        opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

[data-reveal="fade-up"] {
    transform: translate3d(0, 2.5rem, 0);
}

[data-reveal="fade-down"] {
    transform: translate3d(0, -2rem, 0);
}

[data-reveal="fade-left"] {
    transform: translate3d(-3rem, 0, 0);
}

[data-reveal="fade-right"] {
    transform: translate3d(3rem, 0, 0);
}

[data-reveal="fade-in"] {
    transform: translate3d(0, 0, 0);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

@media (max-width: 767px) {
    [data-reveal="fade-left"],
    [data-reveal="fade-right"] {
        transform: translate3d(0, 1.75rem, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}

/* Nach-oben-Button */
.scroll-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgb(var(--color-accent-rgb) / 0.4);
    border-radius: 9999px;
    background: rgba(9, 9, 11, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-accent-light);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.75rem);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.scroll-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-to-top-icon {
    width: 1.125rem;
    height: 1.125rem;
}

@media (hover: hover) {
    .scroll-to-top:hover {
        background: var(--color-accent-light);
        border-color: var(--color-accent-light);
        color: var(--color-bg);
    }
}

.scroll-to-top:active {
    transform: scale(0.95);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-to-top {
        transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
        transform: none;
    }

    .scroll-to-top.is-visible {
        transform: none;
    }
}

@media (min-width: 768px) {
    .scroll-to-top {
        right: 1.75rem;
        bottom: 1.75rem;
    }
}

/* Kontaktformular */
.contact-layout {
    align-items: start;
}

@media (min-width: 1024px) {
    .contact-layout {
        align-items: stretch;
    }
}

.contact-aside {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
}

.contact-form-bridge {
    display: block;
    margin: 0;
}

@media (max-width: 767px) {
    .contact-aside {
        gap: 1rem;
    }

    .contact-form-bridge {
        margin-top: 0.5rem;
        padding-top: 0.25rem;
    }
}

@media (min-width: 768px) {
    .contact-form-bridge {
        display: none;
    }
}

.contact-trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    flex-direction: column;
    gap: 1.375rem;
}

@media (min-width: 768px) {
    .contact-trust-list {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .contact-trust-list {
        flex: 1;
        justify-content: center;
        gap: 1.75rem;
        padding-block: 0.25rem;
    }
}

.contact-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-trust-marker {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
    margin-top: 0.1rem;
    border-radius: 999px;
    background: rgb(var(--color-accent-rgb) / 0.1);
    color: var(--color-accent-light);
}

.contact-trust-icon {
    width: 0.75rem;
    height: 0.75rem;
}

.contact-trust-text {
    margin: 0;
    color: #a1a1aa;
    font-size: 0.875rem;
    line-height: 1.65;
}

.contact-trust-text strong {
    color: #e4e4e7;
    font-weight: 600;
}

.contact-direct-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.contact-channel {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-channel-main {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    color: var(--color-accent-light);
    font-size: 0.875rem;
    text-align: left;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.contact-channel-main:hover,
.contact-channel-main:focus-visible {
    color: var(--color-accent-light-hover);
}

.contact-channel-main:focus-visible {
    outline: 2px solid var(--color-accent-light);
    outline-offset: 3px;
    border-radius: 0.125rem;
}

.contact-channel--tel-mobile {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--color-accent-light);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.contact-channel--tel-mobile:hover {
    color: var(--color-accent-light-hover);
}

.contact-channel--tel-desktop {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .contact-channel--tel-mobile {
        display: none;
    }

    .contact-channel--tel-desktop {
        display: inline-flex;
    }
}

.contact-channel-icon {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    color: var(--color-accent);
}

.contact-section .contact-channel-main,
.contact-section .contact-channel--tel-mobile {
    color: #f4f4f5;
}

.contact-section .contact-channel-main:hover,
.contact-section .contact-channel-main:focus-visible,
.contact-section .contact-channel--tel-mobile:hover {
    color: #ffffff;
}

.contact-channel-tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.5rem);
    transform: translateX(-50%);
    padding: 0.3rem 0.55rem;
    border-radius: 0.25rem;
    border: 1px solid rgb(var(--color-accent-rgb) / 0.25);
    background: rgba(14, 14, 16, 0.96);
    color: #d4d4d8;
    font-family: ui-monospace, monospace;
    font-size: 0.625rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.contact-channel-main:hover .contact-channel-tip,
.contact-channel-main:focus-visible .contact-channel-tip,
.contact-channel-main.is-copied .contact-channel-tip {
    opacity: 1;
}

.contact-channel-main.is-copied .contact-channel-tip {
    color: var(--color-accent-light);
}

.contact-form {
    position: relative;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .contact-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-field--full {
    grid-column: 1 / -1;
}

.contact-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #a1a1aa;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.contact-optional {
    color: #52525b;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

.contact-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgb(var(--color-accent-rgb) / 0.2);
    border-radius: 0.375rem;
    background: rgba(24, 24, 27, 0.5);
    color: #e4e4e7;
    font-size: 0.875rem;
    line-height: 1.5;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.contact-input::placeholder {
    color: #52525b;
}

.contact-input:hover {
    border-color: rgb(var(--color-accent-rgb) / 0.35);
}

.contact-input:focus {
    outline: none;
    border-color: rgb(var(--color-accent-light-rgb) / 0.6);
    background: rgba(24, 24, 27, 0.7);
    box-shadow: 0 0 0 3px rgb(var(--color-accent-rgb) / 0.12);
}

.contact-input:-webkit-autofill,
.contact-input:-webkit-autofill:hover,
.contact-input:-webkit-autofill:focus,
.contact-input:-webkit-autofill:active {
    -webkit-text-fill-color: #e4e4e7;
    caret-color: #e4e4e7;
    border-color: rgb(var(--color-accent-rgb) / 0.2);
    box-shadow: 0 0 0 1000px rgba(24, 24, 27, 0.5) inset;
    transition: background-color 9999s ease-out 0s;
}

.contact-input.is-invalid {
    border-color: rgba(220, 38, 38, 0.5);
}

.contact-select-ui {
    position: relative;
}

.contact-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.contact-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.contact-select-display {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-select-display.is-placeholder {
    color: #52525b;
}

.contact-select-chevron {
    flex-shrink: 0;
    width: 0.75rem;
    height: 0.75rem;
    color: var(--color-accent);
    transition: transform 0.25s ease;
}

.contact-select-ui.is-open .contact-select-chevron {
    transform: rotate(180deg);
}

.contact-select-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.375rem);
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.375rem;
    list-style: none;
    border: 1px solid rgb(var(--color-accent-rgb) / 0.25);
    border-radius: 0.375rem;
    background: rgba(12, 12, 14, 0.98);
    box-shadow: 0 12px 32px rgb(0 0 0 / 0.45);
    max-height: 12rem;
    overflow-y: auto;
}

.contact-select-option {
    padding: 0.625rem 0.75rem;
    border-radius: 0.25rem;
    color: #d4d4d8;
    font-size: 0.875rem;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.contact-select-option:hover,
.contact-select-option.is-focused {
    background: rgb(var(--color-accent-rgb) / 0.12);
    color: var(--color-accent-light);
}

.contact-select-option.is-selected {
    color: var(--color-accent-light);
}

.contact-select-ui.is-invalid .contact-select-trigger {
    border-color: rgba(220, 38, 38, 0.5);
}

.contact-select-ui.is-open .contact-select-trigger {
    border-color: rgb(var(--color-accent-light-rgb) / 0.6);
    background: rgba(24, 24, 27, 0.7);
    box-shadow: 0 0 0 3px rgb(var(--color-accent-rgb) / 0.12);
}

.contact-textarea {
    resize: vertical;
    min-height: 8rem;
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-field--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
    grid-column: 1 / -1;
}

.contact-checkbox {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-top: 0.15rem;
    accent-color: var(--color-accent);
    cursor: pointer;
}

.contact-checkbox-label {
    color: #71717a;
    font-size: 0.8125rem;
    line-height: 1.6;
    cursor: pointer;
}

.contact-inline-link {
    color: var(--color-accent-light);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
}

.contact-inline-link:hover {
    color: var(--color-accent-light-hover);
}

.contact-status {
    margin-top: 1.25rem;
    padding: 0.875rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.contact-status[hidden] {
    display: none;
}

.contact-status.is-success {
    border: 1px solid rgb(var(--color-accent-rgb) / 0.35);
    background: rgb(var(--color-accent-rgb) / 0.08);
    color: var(--color-accent-light);
}

.contact-status.is-error {
    border: 1px solid rgba(220, 38, 38, 0.35);
    background: rgba(220, 38, 38, 0.08);
    color: #fca5a5;
}

.contact-submit {
    margin-top: 1.5rem;
    cursor: pointer;
    padding: 0.875rem 2rem;
    border: 1px solid rgb(var(--color-accent-rgb) / 0.4);
    background: rgba(9, 9, 11, 0.8);
    color: var(--color-accent-light);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 0.25rem;
    transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.15s ease, opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .contact-submit:hover:not(:disabled) {
        background: var(--color-accent-light);
        color: var(--color-bg);
        border-color: var(--color-accent-light);
    }
}

.contact-submit:active:not(:disabled) {
    transform: scale(0.98);
}

.contact-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.contact-turnstile-wrap {
    position: relative;
    z-index: 20;
    margin-top: 0.25rem;
    min-height: 0;
    padding: 0;
    overflow: visible;
    pointer-events: auto;
    isolation: isolate;
    touch-action: manipulation;
}

#contact-turnstile {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    width: 100%;
    max-width: 100%;
}

#contact-turnstile iframe {
    pointer-events: auto !important;
    touch-action: manipulation;
    max-width: 100%;
}

/* Vertrauen */
.trust-stat {
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid rgb(var(--color-accent-rgb) / 0.15);
    border-radius: 0.75rem;
    background: rgba(24, 24, 27, 0.35);
}

.trust-stat-value {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-accent-light);
    font-size: 1.75rem;
    font-weight: 700;
    font-family: ui-monospace, monospace;
    letter-spacing: 0.04em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
    .trust-stat-value {
        font-size: 2.25rem;
    }
}

.trust-stat-label {
    display: block;
    color: #71717a;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.4;
}

.trust-badge {
    padding: 0.625rem 1.125rem;
    border: 1px solid rgb(var(--color-accent-rgb) / 0.2);
    border-radius: 9999px;
    background: rgb(var(--color-accent-rgb) / 0.06);
    color: #a1a1aa;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.trust-badges-wrap {
    width: 100%;
}

.trust-badges-viewport {
    overflow: visible;
}

.trust-badges-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.trust-badges--duplicate {
    display: none;
}

@media (max-width: 767px) {
    .trust-badges-wrap {
        margin-inline: -1rem;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(
            90deg,
            transparent,
            #000 8%,
            #000 92%,
            transparent
        );
        mask-image: linear-gradient(
            90deg,
            transparent,
            #000 8%,
            #000 92%,
            transparent
        );
    }

    .trust-badges-viewport {
        overflow: hidden;
        touch-action: pan-y;
    }

    .trust-badges-viewport::-webkit-scrollbar {
        display: none;
    }

    .trust-badges-track {
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: max-content;
        gap: 0.875rem;
        will-change: transform;
    }

    .trust-badges {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.875rem;
        padding-inline: 0;
    }

    .trust-badges--duplicate {
        display: flex;
    }
}

/* FAQ */
.faq-item {
    border: 1px solid rgb(var(--color-accent-rgb) / 0.15);
    border-radius: 0.5rem;
    background: rgba(24, 24, 27, 0.35);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.faq-item[open] {
    border-color: rgb(var(--color-accent-rgb) / 0.35);
    background: rgba(24, 24, 27, 0.55);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    color: #e4e4e7;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    flex-shrink: 0;
    content: "+";
    color: var(--color-accent);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.25rem 1.125rem;
}

.faq-answer p {
    color: #71717a;
    font-size: 0.875rem;
    line-height: 1.7;
}

.faq-link {
    color: var(--color-accent-light);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
}

.faq-link:hover {
    color: var(--color-accent-light-hover);
}

@media (hover: hover) {
    .faq-item:not([open]):hover {
        border-color: rgb(var(--color-accent-rgb) / 0.28);
    }
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 10;
    background: var(--color-bg);
}

@media (min-width: 768px) {
    .site-footer {
        background: linear-gradient(to bottom, var(--color-bg), var(--color-bg-deep));
    }
}

.site-footer .section-padding-compact {
    padding-bottom: 0;
}

.site-footer-link {
    color: #71717a;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.site-footer-link:hover {
    color: var(--color-accent-light);
}

.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

.site-footer-col {
    align-self: start;
    text-align: left;
}

.footer-col-heading {
    margin: 0 0 1rem;
    line-height: 1.4;
}

.site-footer-meta {
    font-size: 0.75rem;
    font-family: ui-monospace, monospace;
    color: #52525b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.site-footer-bar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgb(var(--color-accent-rgb) / 0.12);
    text-align: center;
}

.site-footer-bar-start,
.site-footer-bar-center,
.site-footer-bar-end {
    min-width: 0;
}

.site-footer-bar .site-footer-credit {
    margin: 0;
    padding: 0;
}

.site-footer-legal {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .site-footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: clamp(2rem, 5vw, 4rem);
        align-items: start;
        width: 100%;
    }

    .site-footer-col {
        align-self: start;
        width: fit-content;
        max-width: 100%;
        text-align: left;
    }

    .site-footer-col--brand {
        justify-self: start;
    }

    .site-footer-col--nav {
        justify-self: center;
    }

    .site-footer-col--contact {
        justify-self: end;
    }

    .site-footer-col--contact .footer-contact-list {
        align-items: flex-start;
    }

    .footer-column .footer-column-label {
        margin-top: 0;
    }

    .site-footer-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: clamp(2rem, 5vw, 4rem);
        gap: 1.5rem;
        text-align: left;
    }

    .site-footer-bar-start {
        justify-self: start;
        width: fit-content;
    }

    .site-footer-bar-center {
        justify-self: center;
        width: fit-content;
    }

    .site-footer-bar-end {
        justify-self: end;
        width: fit-content;
    }

    .footer-description {
        max-width: none;
    }
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.625;
    color: #71717a;
    max-width: 20rem;
}

.footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (max-width: 767px) {
    #kontakt.contact-section {
        padding-bottom: clamp(1.5rem, 4vw, 2.25rem);
    }

    .site-footer .section-padding-compact {
        padding-top: clamp(1.5rem, 4vw, 2rem);
    }

    .site-footer-grid {
        text-align: center;
        justify-items: center;
        gap: 1.75rem;
    }

    .site-footer-grid.section-header-gap-md {
        margin-bottom: 1.25rem;
    }

    .site-footer-col {
        text-align: center;
    }

    .footer-description {
        width: 100%;
        max-width: 24rem;
        margin-inline: auto;
    }

    .footer-column--nav {
        display: none;
    }

    .footer-column .footer-column-label {
        margin-top: 0;
    }

    .footer-column .footer-col-heading {
        margin-top: 0;
    }

    .footer-contact-list {
        align-items: center;
    }

    .footer-contact-list li {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .footer-contact-list .contact-channel,
    .footer-contact-list .contact-channel-main {
        justify-content: center;
    }

    .site-footer-bar {
        width: 100%;
        margin-top: 1.5rem;
        padding-top: 1.25rem;
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
        text-align: center;
    }

    .site-footer-legal {
        justify-content: center;
    }
}

.contact-channel--footer .contact-channel-main,
.contact-channel--footer.contact-channel--tel-mobile {
    color: #71717a;
}

.contact-channel--footer .contact-channel-main:hover,
.contact-channel--footer .contact-channel-main:focus-visible,
.contact-channel--footer.contact-channel--tel-mobile:hover {
    color: var(--color-accent-light);
}

.site-footer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
    color: #52525b;
    font-family: ui-monospace, monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: none;
}

.site-footer-credit-heart {
    width: 0.75rem;
    height: 0.75rem;
    color: var(--color-accent-light);
}

.site-footer-credit-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer-credit-link:hover {
    color: var(--color-accent-light);
}
