/* ============================================
   Schreinerei Spangler — Design System
   ============================================ */

/* --- Fonts --- */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(fonts/dm-sans-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(fonts/dm-sans-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/dm-sans-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/dm-sans-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(fonts/dm-sans-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(fonts/dm-sans-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'DM Serif Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/dm-serif-display-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'DM Serif Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/dm-serif-display-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* --- Design Tokens --- */
:root {
    --bg:           #1c1814;
    --bg-surface:   #252019;
    --bg-light:     #f0ebe4;
    --white:        #ffffff;
    --text:         #f0e6d8;
    --text-body:    #a89a88;
    --text-muted:   #7a7068;
    --accent:       #b8935e;
    --accent-light: #d4b07a;
    --accent-hover: #a07d4a;
    --border:       rgba(240, 230, 216, 0.12);
    --border-light: rgba(240, 230, 216, 0.08);

    --accent-06:    color-mix(in srgb, var(--accent) 6%, transparent);
    --accent-10:    color-mix(in srgb, var(--accent) 10%, transparent);
    --accent-20:    color-mix(in srgb, var(--accent) 20%, transparent);
    --accent-30:    color-mix(in srgb, var(--accent) 30%, transparent);
    --shadow-sm:    color-mix(in srgb, #000 15%, transparent);
    --shadow-md:    color-mix(in srgb, #000 30%, transparent);
    --overlay-dark: color-mix(in srgb, var(--bg) 88%, transparent);

    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-sans:  'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --ease:     cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.25, 1, 0.5, 1);

    --container-max: 1400px;
    --container-pad: clamp(1.5rem, 4vw, 5rem);
    --section-pad:   clamp(5rem, 8vw, 10rem);
}


/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-body);
    background: var(--bg);
    text-wrap: pretty;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }


/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -0.01em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

h2 { font-size: clamp(2rem, 4vw, 3.2rem); }

h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }

p { max-width: 65ch; }


/* --- Layout --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

.section { padding: var(--section-pad) 0; }

.label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    max-width: none;
}

.section-header { margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p:not(.label) { color: var(--text-muted); font-size: 15px; }


/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.03em;
    transition: all 0.4s var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(to bottom, rgba(196, 168, 130, 0.7), rgba(166, 142, 110, 0.6));
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 3px 10px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-primary:hover {
    background: linear-gradient(to bottom, rgba(212, 186, 148, 0.8), rgba(184, 158, 126, 0.7));
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 5px 16px rgba(0,0,0,0.2), 0 2px 5px rgba(0,0,0,0.1);
}

.btn-ghost {
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.85);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 3px 10px rgba(0,0,0,0.1);
}

.btn-ghost:hover {
    background: linear-gradient(to bottom, rgba(255,255,255,0.16), rgba(255,255,255,0.05));
    border-color: rgba(255,255,255,0.35);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 5px 16px rgba(0,0,0,0.14);
}

.btn-dark {
    background: linear-gradient(to bottom, #352f2a, #231f1b);
    color: var(--text);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 3px 10px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.15);
}

.btn-dark:hover {
    background: linear-gradient(to bottom, var(--accent-light), var(--accent-hover));
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.btn-arrow::after {
    content: '\2192';
    transition: transform 0.3s var(--ease);
}

.btn-arrow:hover::after { transform: translateX(4px); }


/* --- Dividers --- */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
}

.divider-gold {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    opacity: 0.3;
}


/* ============================================
   Scroll Reveal Animation
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 1s var(--ease),
                transform 1s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-fog {
    opacity: 0;
    filter: blur(14px);
    transform: scale(1.03);
    transition: opacity 1.2s var(--ease),
                filter 1.2s var(--ease),
                transform 1.2s var(--ease);
}

.reveal-fog.visible {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }
.reveal-d6 { transition-delay: 0.6s; }


/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    background: rgba(28, 24, 20, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    box-shadow: 0 1px 0 transparent;
    transition: background 0.6s var(--ease),
                padding 0.5s var(--ease),
                box-shadow 0.6s var(--ease),
                backdrop-filter 0.6s var(--ease),
                -webkit-backdrop-filter 0.6s var(--ease);
}

.nav.scrolled {
    background: rgba(28, 24, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.nav-brand::before {
    content: '';
    display: block;
    width: 34px;
    height: 34px;
    background: url(logo.svg) center/contain no-repeat;
    flex-shrink: 0;
    transition: width 0.5s var(--ease), height 0.5s var(--ease);
}

.nav.scrolled .nav-brand::before {
    width: 28px;
    height: 28px;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    gap: 2px;
}

.nav-name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text);
}

.nav-tagline {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}

.nav-links {
    display: none;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-links a {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 400;
    color: rgba(240, 230, 216, 0.6);
    transition: color 0.3s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }

.nav-phone {
    display: none;
    align-items: center;
    gap: 0.4rem;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: rgba(240, 230, 216, 0.6);
    transition: color 0.3s var(--ease);
}

.nav-phone:hover { color: var(--text); }

@media (min-width: 1024px) { .nav-phone { display: inline-flex; } }

.nav-cta {
    display: none;
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 400;
    transition: all 0.3s var(--ease);
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.85);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 3px 10px rgba(0,0,0,0.1);
}

@media (min-width: 1024px) { .nav-cta { display: inline-flex; } }

.nav-cta:hover {
    background: linear-gradient(to bottom, rgba(255,255,255,0.92), rgba(255,255,255,0.82));
    color: var(--bg);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 5px 16px rgba(0,0,0,0.14);
}

.nav.scrolled .nav-cta {
    background: linear-gradient(to bottom, var(--text), #d8ccbc);
    color: var(--bg);
    border-color: rgba(240,230,216,0.3);
    box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 3px 10px rgba(0,0,0,0.15);
}

.nav.scrolled .nav-cta:hover {
    background: linear-gradient(to bottom, var(--accent-light), var(--accent-hover));
    border-color: var(--accent);
    box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 5px 16px rgba(0,0,0,0.2);
}

/* Hamburger */
.nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    padding: 4px 0;
    cursor: pointer;
}

@media (min-width: 1024px) { .nav-hamburger { display: none; } }

.nav-hamburger span {
    display: block;
    height: 1.5px;
    border-radius: 1px;
    background: var(--text);
    transition: all 0.4s var(--ease);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.nav-mobile.open {
    opacity: 1;
    visibility: visible;
}

.nav-mobile a {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text);
    transition: color 0.3s;
}

.nav-mobile a:hover { color: var(--accent); }

.nav-mobile-phone {
    margin-top: 1rem;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--accent);
}


/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

@supports (animation-timeline: scroll()) {
    @keyframes hero-parallax {
        from { transform: translateY(0); }
        to   { transform: translateY(30vh); }
    }

    .hero-bg {
        animation: hero-parallax linear both;
        animation-timeline: scroll(root block);
        animation-range: 0vh 120vh;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(28, 24, 20, 0.25) 0%,
        rgba(28, 24, 20, 0.2) 40%,
        rgba(28, 24, 20, 0.5) 65%,
        rgba(28, 24, 20, 0.8) 85%,
        rgba(28, 24, 20, 1) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: clamp(4rem, 8vh, 8rem);
    max-width: 680px;
}

.hero-content .label {
    color: var(--accent);
    position: relative;
    z-index: 1;
}

.hero-content .label::before {
    content: '';
    position: absolute;
    top: -3rem;
    left: -6rem;
    width: 160%;
    height: 6rem;
    background: radial-gradient(ellipse closest-side at 50% 50%, rgba(28, 24, 20, 0.9) 0%, rgba(28, 24, 20, 0.5) 35%, rgba(28, 24, 20, 0.1) 60%, transparent 100%);
    z-index: -1;
    pointer-events: none;
    filter: blur(45px);
}

.hero-content h1 {
    color: var(--text);
    margin-bottom: 1rem;
}

.hero-content > p {
    color: rgba(240, 230, 216, 0.7);
    font-size: 16px;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Hero entrance */
.hero-enter {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.hero-enter.in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero-enter:nth-child(1) { transition-delay: 0s; }
.hero-enter:nth-child(2) { transition-delay: 0.15s; }
.hero-enter:nth-child(3) { transition-delay: 0.3s; }
.hero-enter:nth-child(4) { transition-delay: 0.45s; }

/* Trust bar */
.hero-trust {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    border-top: 1px solid rgba(240, 230, 216, 0.08);
    padding: 1rem 0;
    background: rgba(28, 24, 20, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-trust-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-trust-item {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(240, 230, 216, 0.45);
}

.hero-trust-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(240, 230, 216, 0.2);
}

@media (max-width: 767px) {
    .hero-trust-inner { gap: 1rem; }
    .hero-trust-item { font-size: 10px; letter-spacing: 0.08em; }
    .hero-trust-dot { display: none; }
}


/* ============================================
   Leistungen (ed-card System)
   ============================================ */
.ed-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .ed-grid { grid-template-columns: 1fr 1fr; }
}

.ed-card {
    position: relative;
    min-height: 380px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    flex-direction: column;

    opacity: 0;
    transform: translateY(32px);
    filter: blur(4px);
    pointer-events: none;
    transition:
        opacity 1.4s var(--ease-out) var(--ed-d, 200ms),
        transform 1.6s var(--ease) var(--ed-d, 200ms),
        filter 1.8s var(--ease-out) var(--ed-d, 200ms),
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

@media (min-width: 768px) { .ed-card { min-height: 460px; } }

.ed-card.ed-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.ed-card.ed-ready {
    pointer-events: auto;
    transition:
        transform 0.5s ease,
        border-color 0.5s ease,
        box-shadow 0.5s ease;
}

@media (min-width: 1025px) {
    .ed-card.ed-open {
        transform: scale(1.015);
        border-color: var(--accent-20);
        box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 40px var(--accent-06);
    }
}

/* Background image */
.ed-img {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ed-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ed-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28,24,20,0.85) 0%, rgba(28,24,20,0.4) 30%, transparent 55%);
    z-index: 1;
    transition: background 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.ed-card.ed-open .ed-img-overlay {
    background: linear-gradient(to right, rgba(28,24,20,0.88) 0%, rgba(28,24,20,0.55) 50%, rgba(28,24,20,0.25) 100%);
}

/* Label */
.ed-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 28px 32px 0;
    z-index: 2;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-light);
    opacity: 0.8;
    transition-property: opacity;
    transition-duration: 0.3s;
}

.ed-card.ed-open .ed-label { opacity: 0.4; }

/* Slide container — 200% width, slides left on open */
.ed-slide {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    width: 200%;
    left: 0;
    transition: left 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.ed-card.ed-open .ed-slide { left: -100%; }

.ed-front {
    flex-shrink: 0;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 32px 36px;
}

.ed-front-group { max-width: 300px; }

.ed-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 400;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.ed-desc {
    font-size: 13px;
    font-weight: 300;
    color: rgba(240, 230, 216, 0.6);
    line-height: 1.6;
}

.ed-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--accent-light);
    margin-top: 1rem;
    transition: gap 0.3s ease, opacity 0.3s ease;
}

.ed-card.ed-open .ed-front .ed-cta { opacity: 0; }

/* Back panel */
.ed-back {
    flex-shrink: 0;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.ed-back-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 3;
}

.ed-more {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    color: var(--text);
    line-height: 1.15;
    opacity: 0.85;
    transition-property: opacity;
    transition-duration: 0.3s;
}

.ed-more::after {
    content: '';
    display: block;
    width: 130%;
    height: 1.5px;
    border-radius: 1px;
    margin: 0.75rem auto 0;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, transparent, var(--accent-light), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--ease), width 0.4s var(--ease);
}

.ed-card.ed-open .ed-more { opacity: 1; }
.ed-card.ed-open .ed-more::after { opacity: 0.5; width: 140%; }

/* Back list */
.ed-list {
    list-style: none;
    padding: 0;
    margin-top: 48px;
    display: flex;
    flex-direction: column;
}

.ed-list li {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    color: rgba(255,255,255,0.55);
    padding: 0.55rem 0 0.55rem 14px;
    position: relative;
}

.ed-list li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 20%;
    height: 1px;
    background: linear-gradient(to right, var(--accent-20), transparent);
}

.ed-list li:last-child::after { display: none; }

.ed-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-light);
    opacity: 0.4;
}

/* Pair card — hover image crossfade */
/* Pair card — hover image crossfade (schongebaut easing) */
.ed-img-alt {
    opacity: 0;
    transition: opacity 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.ed-card.ed-open .ed-img-alt {
    opacity: 1;
}

@media (max-width: 767px) {
    .ed-label { padding: 24px 24px 0; }
    .ed-front { padding: 0 24px 28px; }
    .ed-card { min-height: 340px; }
}


/* ============================================
   Referenz-Split
   ============================================ */

/* Tagline above split images */
.ref-tagline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 1.5rem;
}

.ref-tagline span {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    color: var(--text-body);
    line-height: 1.4;
}

@media (max-width: 767px) {
    .ref-tagline { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* Referenz-Solo: eine große Kachel statt zwei */
.ref-solo {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 21/9;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    isolation: isolate;
}

@media (max-width: 767px) {
    .ref-solo { aspect-ratio: 4/3; border-radius: 16px; }
}

.ref-solo-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ref-solo-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.ref-solo:hover .ref-solo-bg img {
    transform: scale(1.05);
}

.ref-solo-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to right, rgba(28,24,20,0.78) 0%, rgba(28,24,20,0.45) 45%, rgba(28,24,20,0.15) 100%),
        linear-gradient(to top, rgba(28,24,20,0.4) 0%, transparent 40%);
    transition: background 0.7s var(--ease);
}

.ref-solo:hover .ref-solo-overlay {
    background:
        linear-gradient(to right, rgba(28,24,20,0.6) 0%, rgba(28,24,20,0.3) 45%, rgba(28,24,20,0.1) 100%),
        linear-gradient(to top, rgba(28,24,20,0.3) 0%, transparent 40%);
}

.ref-solo-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(2rem, 5vw, 5rem);
    gap: 2rem;
}

.ref-solo-text {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.ref-solo-tag {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 400;
}

.ref-solo-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.05;
    color: #fff;
    font-weight: 400;
    max-width: 620px;
    text-wrap: balance;
}

.ref-solo-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(54px, 7vw, 72px);
    height: clamp(54px, 7vw, 72px);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(240,230,216,0.14), rgba(240,230,216,0.04));
    border: 1px solid rgba(240,230,216,0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.15),
        0 6px 20px rgba(0,0,0,0.2);
    color: #fff;
    transition:
        opacity 0.7s var(--ease),
        filter 0.7s var(--ease),
        transform 0.7s var(--ease),
        background 0.7s var(--ease),
        border-color 0.7s var(--ease);
    flex-shrink: 0;
}

.ref-solo:hover .ref-solo-arrow {
    background: linear-gradient(135deg, rgba(184,147,94,0.32), rgba(184,147,94,0.15));
    border-color: rgba(184,147,94,0.55);
}

/* Desktop: Arrow materialisiert beim Hover aus dem Nebel — unscharf
   und leicht geschrumpft im Ausgangszustand, formt sich in place zum
   scharfen Element. Touch-Devices behalten die permanente Ansicht,
   da dort kein Hover-Trigger existiert. */
@media (hover: hover) {
    .ref-solo-arrow {
        opacity: 0;
        filter: blur(10px);
        transform: scale(0.82);
    }
    .ref-solo:hover .ref-solo-arrow {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

@media (max-width: 767px) {
    .ref-solo-content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        padding: 1.75rem;
        gap: 1.5rem;
    }
    .ref-solo-arrow {
        align-self: flex-end;
    }
}


/* ============================================
   USP Statement
   ============================================ */
.usp-section {
    position: relative;
    overflow: hidden;
}

.usp-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.usp-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.usp-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(28, 24, 20, 1) 0%,
        rgba(28, 24, 20, 0.97) 12%,
        rgba(28, 24, 20, 0.9) 25%,
        rgba(28, 24, 20, 0.8) 40%,
        rgba(28, 24, 20, 0.72) 50%,
        rgba(28, 24, 20, 0.8) 60%,
        rgba(28, 24, 20, 0.9) 75%,
        rgba(28, 24, 20, 0.97) 88%,
        rgba(28, 24, 20, 1) 100%
    );
    z-index: 1;
}

.usp-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.usp-content .label { margin-bottom: 1.5rem; }

.usp-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.usp-lead {
    font-size: 16px;
    color: rgba(240, 230, 216, 0.7);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.usp-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    max-width: 520px;
    margin: 0 auto;
}

.usp-point {
    padding-left: 1.5rem;
    position: relative;
    font-size: 15px;
    color: rgba(240, 230, 216, 0.65);
    line-height: 1.7;
}

.usp-point::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

.usp-point strong {
    color: var(--text);
    font-weight: 400;
}


/* ============================================
   Bewertungen (Marquee)
   ============================================ */
.reviews-section { background: var(--bg-light); }

.reviews-header {
    text-align: center;
    margin-bottom: 3rem;
}

.reviews-header h2 { margin-bottom: 0.75rem; color: var(--bg); }
.reviews-section .label { color: var(--accent-hover); }

.reviews-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid #ddd7cf;
    background: var(--white);
    font-size: 13px;
    color: #7a7068;
    transition: border-color 0.3s var(--ease),
                box-shadow 0.3s var(--ease),
                transform 0.3s var(--ease);
}

.reviews-badge:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(28, 24, 20, 0.03),
        0 4px 12px rgba(28, 24, 20, 0.08);
}

.reviews-badge-stars {
    display: flex;
    gap: 2px;
}

.reviews-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Padding als Buffer, damit Hover-Shadows der Karten oben/unten nicht abgeschnitten werden */
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.reviews-track {
    display: flex;
    gap: 20px;
    animation: reviewsScroll 40s linear infinite;
    width: max-content;
}

.reviews-track:hover { animation-play-state: paused; }

@keyframes reviewsScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.review-card {
    flex-shrink: 0;
    width: 360px;
    padding: 1.75rem;
    background: var(--white);
    border: 1px solid #ddd7cf;
    border-radius: 16px;
    transition: box-shadow 0.4s var(--ease),
                transform 0.4s var(--ease);
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-4px);
    /* Ambient ring + kompakter directed shadow — reicht max ~30px nach unten,
       bleibt im carousel-padding-Buffer, keine harten Kanten */
    box-shadow:
        0 0 0 1px rgba(28, 24, 20, 0.04),
        0 4px 10px rgba(28, 24, 20, 0.06),
        0 10px 22px rgba(28, 24, 20, 0.08);
}

.review-source {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    font-size: 11px;
    color: #7a7068;
    letter-spacing: 0.02em;
}

.review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
}

.review-text {
    font-size: 14px;
    line-height: 1.7;
    color: #5a5550;
    flex: 1;
    margin-bottom: 1.25rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd7cf;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-hover);
}

.review-name {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--bg);
}

.review-date {
    display: block;
    font-size: 11px;
    color: #7a7068;
}

@media (max-width: 767px) {
    .review-card { width: 300px; padding: 1.25rem; }
}


/* ============================================
   Kontakt
   ============================================ */
.contact-section {
    background: transparent;
    position: relative;
    z-index: 1;
}

.contact-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.contact-header .label { color: var(--accent); }
.contact-header h2 { color: var(--text); margin-bottom: 0.5rem; }

.contact-stacking {
    font-size: 15px;
    color: var(--text-body);
    margin-bottom: 0.5rem;
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--text);
    margin-top: 0.5rem;
    transition: color 0.3s;
}

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

/* Form wrapper — editorial with subtle atmospheric panel */
.ob-form-wrapper {
    max-width: 680px;
    margin: 2.5rem auto 0;
    padding: 3rem 2rem;
    position: relative;
}

.ob-form-wrapper::before {
    content: '';
    position: absolute;
    inset: 0 -60px;
    background: radial-gradient(
        ellipse at center,
        rgba(28, 24, 20, 0.9) 0%,
        rgba(28, 24, 20, 0.75) 50%,
        rgba(28, 24, 20, 0.2) 90%,
        transparent 100%
    );
    filter: blur(30px);
    z-index: -2;
    pointer-events: none;
}

.ob-form-wrapper::after {
    content: '';
    position: absolute;
    inset: 0 -60px;
    border: 1px solid rgba(240, 230, 216, 0.1);
    border-radius: 20px;
    z-index: -1;
    pointer-events: none;
    box-shadow:
        inset 0 1px 0 rgba(240, 230, 216, 0.18),
        inset 0 0 80px rgba(28, 24, 20, 0.4),
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 12px 30px rgba(0, 0, 0, 0.35);
}

@media (max-width: 767px) {
    .ob-form-wrapper::before,
    .ob-form-wrapper::after { inset: 0 -20px; }
}

@media (min-width: 768px) { .ob-form-wrapper { margin-top: 4rem; padding: 4rem 3rem; } }

/* Progress — editorial fraction indicator */
.ob-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.ob-step-indicator {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: color 0.6s var(--ease), opacity 0.6s var(--ease);
    cursor: pointer;
    opacity: 0.4;
    padding: 0;
    border: none;
    background: none;
    width: auto;
    height: auto;
    border-radius: 0;
    letter-spacing: 0.02em;
}

.ob-step-indicator.active {
    color: var(--accent-light);
    opacity: 1;
    background: none;
    border: none;
}

.ob-step-indicator.completed {
    color: var(--text);
    opacity: 0.7;
    background: none;
    border: none;
}

.ob-step-line {
    width: 48px;
    height: 1px;
    background: var(--border);
    transition: background 0.6s var(--ease);
}

.ob-step-line.active { background: var(--accent); }

/* Steps */
.ob-step { display: none; }

.ob-step.active {
    display: block;
    /* Zoom-in läuft jetzt über JS rAF in syncedTransition() — synchron mit height + scroll */
}

@keyframes obStepIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

.ob-step h3 {
    text-align: center;
    color: var(--text);
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.ob-step-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
    font-family: var(--font-serif);
    margin-bottom: 2.5rem;
}

/* Service chips — minimal pills */
.ob-service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.ob-chip {
    padding: 0.7rem 1.4rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text);
    transition: all 0.4s var(--ease);
    cursor: pointer;
    background: transparent;
}

.ob-chip:hover {
    border-color: rgba(240, 230, 216, 0.35);
}

.ob-chip.selected {
    border-color: rgba(240, 230, 216, 0.3);
    background: rgba(240, 230, 216, 0.12);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    color: var(--text);
    box-shadow:
        inset 0 1px 0 rgba(240, 230, 216, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.25);
}

/* Type buttons */
.ob-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 560px;
    margin: 2rem auto 0;
}

.ob-type-btn {
    padding: 5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text);
    transition: all 0.4s var(--ease);
    cursor: pointer;
    background: transparent;
    letter-spacing: -0.01em;
}

.ob-type-btn:hover {
    border-color: rgba(240, 230, 216, 0.35);
}

.ob-type-btn.selected {
    border-color: rgba(240, 230, 216, 0.3);
    background: rgba(240, 230, 216, 0.12);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    color: var(--text);
    box-shadow:
        inset 0 1px 0 rgba(240, 230, 216, 0.22),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 3px 8px rgba(0, 0, 0, 0.25);
}

/* Form inputs */
.ob-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) { .ob-form-row.ob-two-col { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }

.ob-form-group label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.ob-form-input {
    width: 100%;
    padding: 0.5rem 0 0.8rem;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    font-size: 17px;
    font-weight: 300;
    color: var(--text);
    transition: border-color 0.4s var(--ease);
    outline: none;
    font-family: var(--font-sans);
}

.ob-form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 16px;
}

.ob-form-input:focus { border-color: var(--accent); }

textarea.ob-form-input {
    resize: vertical;
    min-height: 80px;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 0.5rem 0 0.8rem;
    margin-top: 0;
    background: transparent;
}

textarea.ob-form-input:focus { border-color: var(--accent); }

.ob-form-input:user-invalid { border-color: #c0392b; }
.ob-form-group:has(.ob-form-input:user-invalid) label { color: #c0392b; }

/* Validation: dim next when nothing selected */
.ob-step[data-step="0"]:not(:has(.ob-chip.selected)) .ob-form-next {
    opacity: 0.35;
    pointer-events: none;
}

.ob-step[data-step="1"]:not(:has(.ob-type-btn.selected)) .ob-form-next {
    opacity: 0.35;
    pointer-events: none;
}

/* Form nav */
.ob-form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 0;
    border-top: none;
}

.ob-form-back {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.4s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    letter-spacing: 0.02em;
}

.ob-form-back:hover { color: var(--text); }

.ob-form-next { margin-left: auto; }

/* Button dark on light bg */
.ob-btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    border-radius: 0;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
    background: none;
    color: var(--text);
    border: none;
    border-bottom: 1px solid var(--text);
    box-shadow: none;
    transition: all 0.4s var(--ease);
    cursor: pointer;
}

.ob-btn-dark::after {
    content: '→';
    transition: transform 0.4s var(--ease);
}

.ob-btn-dark:hover {
    background: none;
    transform: none;
    color: var(--accent);
    border-bottom-color: var(--accent);
    box-shadow: none;
}

.ob-btn-dark:hover::after {
    transform: translateX(6px);
}

/* Success */
.ob-success {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
}

.ob-success.active {
    display: block;
    animation: obStepIn 0.6s var(--ease);
}

.ob-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ob-success-icon svg { width: 24px; height: 24px; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }

.ob-success h3 { color: var(--text); margin-bottom: 0.75rem; font-family: var(--font-serif); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 400; }
.ob-success p { font-size: 14px; color: var(--text-muted); }


/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg);
    position: relative;
    padding: 6rem 0 3rem;
    overflow: hidden;
}

.footer-ghost {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 0;
    opacity: 0.04;
}

.footer-ghost span {
    font-family: var(--font-serif);
    font-size: clamp(5rem, 14vw, 12rem);
    font-weight: 400;
    color: var(--text);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.footer-top {
    border-top: 1px solid transparent;
    border-image: linear-gradient(to right, transparent, var(--accent-30), transparent) 1;
    padding-top: 4rem;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.footer-col p,
.footer-col a {
    font-size: 14px;
    color: rgba(240, 230, 216, 0.5);
    line-height: 1.8;
    transition: color 0.3s;
}

.footer-col a:hover { color: var(--accent-light); }

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 3rem;
}

.footer-brand::before {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    background: url(logo.svg) center/contain no-repeat;
    flex-shrink: 0;
    opacity: 0.75;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    gap: 2px;
}

.footer-name {
    font-family: var(--font-serif);
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(240, 230, 216, 0.7);
}

.footer-tagline {
    font-family: var(--font-sans);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(184, 147, 94, 0.7);
    white-space: nowrap;
}

.footer-bottom {
    border-top: 1px solid transparent;
    border-image: linear-gradient(to right, transparent, var(--accent-20), transparent) 1;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(240, 230, 216, 0.25);
}

.footer-legal { display: flex; gap: 1.5rem; }

.footer-legal a {
    font-size: 12px;
    color: rgba(240, 230, 216, 0.25);
    transition: color 0.3s;
}

.footer-legal a:hover { color: rgba(240, 230, 216, 0.6); }

.hours-table { width: 100%; }

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 14px;
    color: rgba(240, 230, 216, 0.5);
}

.hours-row span:last-child { color: rgba(240, 230, 216, 0.35); }


/* ============================================
   Lightbox
   ============================================ */
.lb-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lb-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.lb-img-wrap {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    cursor: default;
}

.lb-img-wrap img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lb-img-wrap img.lb-loaded { opacity: 1; }

.lb-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10001;
}

.lb-close:hover { color: #fff; }

.lb-prev,
.lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10001;
    user-select: none;
}

.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-prev:hover,
.lb-next:hover { color: #fff; }

.lb-counter {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    z-index: 10001;
    pointer-events: none;
}

@media (max-width: 767px) {
    .lb-prev, .lb-next { display: none; }
    .lb-close { top: 1rem; right: 1rem; }
    .lb-counter { bottom: 1rem; }
}


/* ============================================
   Subpage Components
   ============================================ */

/* Subpage Hero (größer, mit langem Fade) */
.subpage-hero {
    position: relative;
    z-index: 1;
    min-height: 65vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--bg);
    isolation: isolate;
}

.subpage-hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.subpage-hero .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subpage-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(28, 24, 20, 0.15) 0%,
        rgba(28, 24, 20, 0.25) 45%,
        rgba(28, 24, 20, 0.55) 70%,
        rgba(28, 24, 20, 0.85) 88%,
        rgba(28, 24, 20, 1) 100%
    );
    z-index: 1;
}

.subpage-hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: clamp(6rem, 15vh, 12rem);
    padding-top: 8rem;
}

.subpage-hero-content .label { color: var(--accent); }

.subpage-hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: var(--text);
    margin-bottom: 0.75rem;
}

.subpage-hero-content > p {
    color: rgba(240, 230, 216, 0.65);
    font-size: 16px;
    max-width: 550px;
}

/* Editorial (2-column: text + image) */
.editorial {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .editorial { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.editorial-text .label { margin-bottom: 1rem; }

.editorial-text h2 {
    margin-bottom: 1rem;
}

.editorial-text p {
    color: var(--text-body);
    margin-bottom: 1rem;
}

.editorial-text p:last-of-type { margin-bottom: 1.5rem; }

.editorial-img {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.editorial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editorial.reverse .editorial-img {
    order: -1;
}

/* Klickbares Editorial-Bild (bei Feature-Sections mit Lightbox) */
.editorial-img[data-lb-images] {
    position: relative;
    cursor: pointer;
}

.editorial-img[data-lb-images] img {
    transition: transform 0.6s var(--ease);
}

.editorial-img[data-lb-images]:hover img {
    transform: scale(1.05);
}

.editorial-img[data-lb-images][data-count]::after {
    content: attr(data-count);
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: 1;
}

/* Feature-Intro: Editorial-Variante als Sub-Kategorie-Eröffnung */
.feature-intro {
    margin-bottom: 2.5rem;
}

.feature-intro h3 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.feature-intro .editorial-text p {
    margin-bottom: 1rem;
    color: var(--text-body);
}

.feature-intro .editorial-text p:last-of-type {
    margin-bottom: 0;
}


/* ============================================
   Service-Page Background-Wrap
   ============================================
   Atmosphärisches Hintergrundbild über alle Content-Sections einer Service-Seite.
   Bild scrollt mit (kein parallax). Dunkles Overlay für Lesbarkeit. */
.service-bg-wrap {
    position: relative;
    overflow: hidden;
    background-color: var(--bg);
}

.service-bg-img {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
}

.service-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(28, 24, 20, 0.88) 0%,
        rgba(28, 24, 20, 0.78) 50%,
        rgba(28, 24, 20, 0.88) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.service-bg-wrap > section,
.service-bg-wrap > .divider {
    position: relative;
    z-index: 2;
}

/* Kompaktes Padding zwischen Sub-Kategorien.
   Erste und letzte Section behalten volles padding für Luft zu Hero/CTA. */
.service-bg-wrap .section {
    padding: 2rem 0;
}

.service-bg-wrap .section:first-of-type {
    padding-top: var(--section-pad);
}

.service-bg-wrap .section:last-of-type {
    padding-bottom: var(--section-pad);
}

/* Sub-Kategorie-Header prominenter — echte Kapitel-Eröffnungen */
.service-bg-wrap .section-header .label {
    font-size: 12px;
}

.service-bg-wrap .section-header h3 {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.service-bg-wrap .section-header p:not(.label) {
    font-size: 17px;
    color: var(--text-body);
    margin-top: 0.75rem;
}


/* ============================================
   Bento-Grid für Sub-Kategorien
   ============================================
   Asymmetrisches Grid mit gemischten Tile-Größen.
   Bricht das uniforme Grid-Pattern auf. */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-flow: dense;
        gap: 16px;
    }
}

.bento-tile {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    /* Always-on subtle depth — Tiles heben sich solide vom Hintergrund ab */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.bento-tile:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(28, 24, 20, 0.04),
        0 4px 10px rgba(28, 24, 20, 0.15),
        0 14px 28px rgba(28, 24, 20, 0.22);
}

.bento-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}

.bento-tile:hover img {
    transform: scale(1.03);
}

/* Tile-Varianten (Desktop only) */
@media (min-width: 768px) {
    .bento-tile {
        aspect-ratio: 1/1;
    }
    .bento-tile-large {
        grid-column: span 2;
        grid-row: span 2;
    }
    .bento-tile-wide {
        grid-column: span 2;
        aspect-ratio: 2/1;
    }
    .bento-tile-tall {
        grid-row: span 2;
        aspect-ratio: 1/2;
    }
}

/* Bento-Tile Caption (matcht gallery-caption) */
.bento-tile .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem 0.9rem;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    color: rgba(255,255,255,0.92);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    pointer-events: none;
    z-index: 1;
}

/* Hover-only Caption auf Geräten mit echtem Hover (Desktop/Maus).
   Touch-Devices behalten die Caption dauerhaft sichtbar.
   Caption läuft länger (0.9s) und mit Delay (0.15s) — erscheint ruhig "nach"
   der Tile-Reaktion, nicht synchron "mit" ihr. */
@media (hover: hover) {
    .bento-tile .gallery-caption {
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.9s var(--ease) 0.15s, transform 0.9s var(--ease) 0.15s;
    }
    .bento-tile:hover .gallery-caption {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bilderzahl-Badge */
.bento-tile[data-lb-images][data-count]::after {
    content: attr(data-count);
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 767px) {
    .editorial.reverse .editorial-img { order: -1; }
}

/* Gallery Grid — adaptive columns based on item count */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* 4+ items → 3 columns on desktop */
@media (min-width: 768px) {
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

    .gallery-grid:has(:nth-child(4)) {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

/* Larger aspect ratio for 2-col grids */
@media (min-width: 768px) {
    .gallery-grid:not(:has(:nth-child(4))) .gallery-item {
        aspect-ratio: 16/10;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.gallery-item:hover img { transform: scale(1.05); }

/* Tight spacing between consecutive gallery sub-sections */
.section + .section:has(.gallery-grid) {
    padding-top: 0;
}

.section:has(.gallery-grid) + .section:has(.gallery-grid) {
    padding-top: 1.5rem;
}

.section:has(.gallery-grid) .section-header {
    margin-bottom: 1.5rem;
}

/* Gallery sub-section divider — short gold fade */
.section:has(.gallery-grid) + .section:has(.gallery-grid)::before {
    content: '';
    display: block;
    width: min(66%, 800px);
    height: 1px;
    margin: 0 auto 2rem;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    opacity: 0.3;
}

/* Project cover badge showing image count */
.gallery-item[data-lb-images]::after {
    content: attr(data-count);
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}

.gallery-item[data-lb-images] { position: relative; }

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 0.75rem 0.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    pointer-events: none;
}

/* CTA Banner (subpage bottom) */
.cta-banner {
    position: relative;
    text-align: center;
    overflow: hidden;
    padding: clamp(7rem, 11vw, 13rem) 0 clamp(2rem, 3vw, 3rem);
}

.cta-banner-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Wrapper for CTA + Footer with shared background */
.cta-footer-wrap {
    position: relative;
    z-index: 1;
    overflow: hidden;
    isolation: isolate;
}

.cta-footer-wrap > .cta-banner-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-footer-wrap > .cta-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-footer-wrap > .cta-banner-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(28, 24, 20, 0.85) 0%,
        rgba(28, 24, 20, 0.78) 30%,
        rgba(28, 24, 20, 0.88) 60%,
        rgba(28, 24, 20, 0.95) 100%
    );
}

.cta-footer-wrap .cta-banner {
    overflow: visible;
}

.cta-footer-wrap .cta-banner .cta-banner-bg {
    display: none;
}

.cta-footer-wrap .footer {
    background: transparent;
    position: relative;
    z-index: 1;
}

.cta-footer-wrap .footer-top {
    position: relative;
}

.cta-footer-wrap .footer-top::before {
    content: '';
    position: absolute;
    top: -1px;
    bottom: -100px;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: rgba(28, 24, 20, 0.55);
    z-index: -1;
    pointer-events: none;
}

.cta-footer-wrap .cta-banner,
.cta-footer-wrap .footer {
    position: relative;
    z-index: 1;
}

/* Ghost watermark between CTA and Footer */
.cta-ghost {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0;
    margin: -3rem 0;
    pointer-events: none;
}

.cta-ghost span {
    font-family: var(--font-serif);
    font-size: clamp(5rem, 14vw, 12rem);
    font-weight: 400;
    color: var(--text);
    opacity: 0.035;
    letter-spacing: 0.02em;
    white-space: nowrap;
    display: block;
    line-height: 1;
}

/* Scroll-driven ghost grow animation (same as PA Grundstein) */
@supports (animation-timeline: view()) {
    @property --ghost-progress {
        syntax: '<number>';
        inherits: true;
        initial-value: 0;
    }

    @keyframes ghost-enter {
        from { --ghost-progress: 0; }
        to   { --ghost-progress: 1; }
    }

    .cta-footer-wrap {
        animation: ghost-enter linear both;
        animation-timeline: view(block);
        animation-range: entry 0% contain 50%;
    }

    .cta-ghost span {
        opacity: calc(0.07 * var(--ghost-progress));
        transform: scale(calc(0.85 + 0.15 * var(--ghost-progress)));
    }
}

.cta-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-banner-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(28, 24, 20, 0.88) 0%,
        rgba(28, 24, 20, 0.8) 50%,
        rgba(28, 24, 20, 0.88) 100%
    );
}

/* Gold top border integrated into CTA banner */
.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    opacity: 0.3;
    z-index: 2;
}

.cta-banner .container {
    position: relative;
    z-index: 1;
}

.cta-banner .label {
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.cta-banner h2 {
    margin-bottom: 1.25rem;
    color: var(--text);
}

.cta-banner p {
    color: var(--accent);
    opacity: 0.7;
    margin-bottom: 1.75rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--text);
    margin-bottom: 2rem;
    transition: color 0.3s;
}

.cta-banner-phone:hover { color: var(--accent); }

.cta-banner .btn { margin-top: 0.5rem; }


/* ============================================
   Atmospheric Wrapper — Cinematic Light-Beams
   ============================================
   Utility für dezente, scroll-gekoppelte Gold-Lichtstrahlen
   als Hintergrund-Atmosphäre. Gestresste blur + low opacity
   lassen sie hinter den Content zurücktreten.

   HTML:
   <section class="section atmo-wrap">
       <div class="atmo-beam atmo-beam-primary"></div>
       <div class="atmo-beam atmo-beam-secondary"></div>
       <div class="container"> ... </div>
   </section>
   ============================================ */
.atmo-wrap {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Generisch: alle direkten non-beam-Kinder bekommen Stacking-Kontext über den Beams.
   Funktioniert für einzelne Sections (Beams + Container als Siblings) als auch für
   wrapping divs die mehrere Sections enthalten. */
.atmo-wrap > :not(.atmo-beam) {
    position: relative;
    z-index: 1;
}

.atmo-beam {
    position: absolute;
    width: 120vw;
    height: 280px;
    pointer-events: none;
    z-index: 0;
    filter: blur(70px);
    will-change: transform;
}

.atmo-beam-primary {
    top: 5%;
    left: -10%;
    transform: rotate(-12deg);
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(184, 147, 94, 0.32) 40%,
        rgba(212, 176, 122, 0.42) 50%,
        rgba(184, 147, 94, 0.32) 60%,
        transparent 100%
    );
}

.atmo-beam-secondary {
    top: 30%;
    right: -10%;
    transform: rotate(10deg);
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(184, 147, 94, 0.22) 40%,
        rgba(184, 147, 94, 0.32) 50%,
        rgba(184, 147, 94, 0.22) 60%,
        transparent 100%
    );
}

/* Zusätzliche Beams für lange/kombinierte Wrapper (z.B. Mainpage Leistungen+Referenzen) */
.atmo-beam-tertiary {
    top: 58%;
    left: -10%;
    transform: rotate(-8deg);
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(184, 147, 94, 0.25) 40%,
        rgba(212, 176, 122, 0.35) 50%,
        rgba(184, 147, 94, 0.25) 60%,
        transparent 100%
    );
}

.atmo-beam-quaternary {
    bottom: 3%;
    right: -10%;
    transform: rotate(14deg);
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(184, 147, 94, 0.2) 40%,
        rgba(184, 147, 94, 0.3) 50%,
        rgba(184, 147, 94, 0.2) 60%,
        transparent 100%
    );
}

/* Scroll-gekoppelter Drift: benachbarte Beams bewegen sich entgegengesetzt für Organik */
@supports (animation-timeline: view()) {
    @keyframes atmo-beam-drift-primary {
        from { transform: rotate(-12deg) translateY(-60px); }
        to   { transform: rotate(-12deg) translateY(60px); }
    }
    @keyframes atmo-beam-drift-secondary {
        from { transform: rotate(10deg) translateY(60px); }
        to   { transform: rotate(10deg) translateY(-60px); }
    }
    @keyframes atmo-beam-drift-tertiary {
        from { transform: rotate(-8deg) translateY(-40px); }
        to   { transform: rotate(-8deg) translateY(40px); }
    }
    @keyframes atmo-beam-drift-quaternary {
        from { transform: rotate(14deg) translateY(40px); }
        to   { transform: rotate(14deg) translateY(-40px); }
    }
    .atmo-beam-primary {
        animation: atmo-beam-drift-primary linear both;
        animation-timeline: view();
    }
    .atmo-beam-secondary {
        animation: atmo-beam-drift-secondary linear both;
        animation-timeline: view();
    }
    .atmo-beam-tertiary {
        animation: atmo-beam-drift-tertiary linear both;
        animation-timeline: view();
    }
    .atmo-beam-quaternary {
        animation: atmo-beam-drift-quaternary linear both;
        animation-timeline: view();
    }
}


/* ============================================
   Responsive — Mobile Overrides
   ============================================ */
@media (max-width: 767px) {

    /* Hero mobile */
    .hero { min-height: 100svh; }
    .hero-content { padding-bottom: 5rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }

    /* Trust bar mobile */
    .hero-trust-inner {
        flex-direction: column;
        gap: 0.3rem;
    }

    /* Section spacing mobile */
    .section { padding: clamp(3.5rem, 6vw, 5rem) 0; }
    .section-header { margin-bottom: 2rem; }

    /* USP mobile */
    .usp-content { text-align: left; }
    .usp-lead { text-align: left; }

    /* Review cards mobile */
    .review-card { width: 280px; padding: 1.25rem; }

    /* Contact mobile */
    .contact-header { margin-bottom: 1.5rem; }

    /* Form chips mobile - keep 2 col */
    .ob-service-grid { grid-template-columns: 1fr 1fr; }

    /* Footer mobile */
    .footer { padding: 4rem 0 2rem; }
    .footer-brand { margin-bottom: 2rem; }
    .footer-bottom { text-align: center; }
    .footer-legal { justify-content: center; }
}

/* Tablet tweaks */
@media (min-width: 768px) and (max-width: 1023px) {
    .ed-card { min-height: 420px; }
}

/* ============================================
   Cross-Document View Transitions (Swipe zwischen Seiten)
   Chrome 126+, Safari 18+. Firefox: Fallback auf normale Navigation, kein Schaden.
   ============================================ */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: page-slide-out 0.45s var(--ease) both;
}

::view-transition-new(root) {
    animation: page-slide-in 0.45s var(--ease) both;
}

@keyframes page-slide-out {
    to {
        transform: translateX(-8%);
        opacity: 0;
    }
}

@keyframes page-slide-in {
    from {
        transform: translateX(8%);
        opacity: 0;
    }
}

/* Fallback wenn Chrome die Cross-Document-VT skipped (siehe page-transition.js) */
html.page-enter body {
    animation: page-slide-in 0.45s var(--ease) both;
}


/* ============================================
   Service-Page: Floating "Alle Leistungen" Button
   Fadet links-mittig ein sobald Hero außer Sicht — Rückweg zur Hauptseite
   ============================================ */
.service-back-floating {
    position: fixed;
    left: clamp(1rem, 2vw, 2.5rem);
    top: 50%;
    z-index: 50;
    opacity: 0;
    transform: translate(-15px, -50%);
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 100px;
    background: linear-gradient(to bottom, rgba(240,230,216,0.08), rgba(240,230,216,0.03));
    border: 1px solid rgba(240,230,216,0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        inset 0 1px 0 rgba(240,230,216,0.12),
        0 4px 14px rgba(0,0,0,0.22);
    color: #d4c8b4;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-decoration: none;
    white-space: nowrap;
    transition:
        opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-back-floating svg {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-back-floating.visible {
    opacity: 1;
    transform: translate(0, -50%);
    pointer-events: auto;
}
.service-back-floating:hover {
    background: linear-gradient(to bottom, rgba(184,147,94,0.22), rgba(184,147,94,0.08));
    border-color: rgba(184,147,94,0.5);
    color: #f0e6d8;
}
.service-back-floating:hover svg {
    transform: translateX(-4px);
}
@media (max-width: 767px) {
    .service-back-floating { display: none !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none !important;
    }

    html.page-enter body { animation: none !important; }

    .atmo-beam { animation: none !important; }

    .reveal, .reveal-fog {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
    .hero-enter { opacity: 1 !important; transform: none !important; transition: none !important; }
    .reviews-track { animation: none !important; }
    .ed-card { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
    .service-back-floating { transition: none !important; }
}
