/* ============================================
   SCHREINEREI LÄMMERMANN
   Hand-built static stack — warm, dark, bronze.
   Based on Kratzer design system.
   ============================================ */

/* ========== FONTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300..500&family=Manrope:wght@300;400;500;600&display=swap');

/* ========== ROOT TOKENS ========== */
:root {
    /* Base palette */
    --bg: #141211;
    --bg-surface: #1d1a17;
    --bg-surface-2: #26221e;
    --bg-light: #f4efe5;

    /* Text */
    --text: #f0e8d9;
    --text-body: #a29882;
    --text-muted: #756b58;
    --text-dark: #1a1613;

    /* Accent — Lämmermann-Burgundrot (Wiedererkennung aus Original-Seite) */
    --accent: #940E1E;
    --accent-light: #b52a3a;
    --accent-hover: #7a0b18;
    --accent-dark: #5f0812;

    /* Accent opacities (color-mix for consistency) */
    --accent-05: color-mix(in srgb, var(--accent) 5%, transparent);
    --accent-08: color-mix(in srgb, var(--accent) 8%, transparent);
    --accent-12: color-mix(in srgb, var(--accent) 12%, transparent);
    --accent-18: color-mix(in srgb, var(--accent) 18%, transparent);
    --accent-25: color-mix(in srgb, var(--accent) 25%, transparent);
    --accent-40: color-mix(in srgb, var(--accent) 40%, transparent);
    --accent-60: color-mix(in srgb, var(--accent) 60%, transparent);
    --accent-80: color-mix(in srgb, var(--accent) 80%, transparent);

    /* Borders */
    --border: rgba(240, 232, 217, 0.12);
    --border-light: rgba(240, 232, 217, 0.08);
    --border-strong: rgba(240, 232, 217, 0.22);

    /* Shadows */
    --shadow-sm: color-mix(in srgb, #000 15%, transparent);
    --shadow-md: color-mix(in srgb, #000 30%, transparent);
    --shadow-lg: color-mix(in srgb, #000 50%, transparent);

    /* Depth system (tile-depth-glass-touch pattern) */
    --depth-rest: 0 5px 14px 0 rgba(0, 0, 0, 0.5);
    --depth-hover: 0 8px 20px 0 rgba(0, 0, 0, 0.58);
    --depth-glow: 0 0 40px var(--accent-08);

    /* Glass-highlight — diagonal reflex */
    --glass-highlight: linear-gradient(135deg,
                       rgba(255, 255, 255, 0.08) 0%,
                       rgba(255, 255, 255, 0) 30%,
                       rgba(255, 255, 255, 0) 70%,
                       rgba(255, 255, 255, 0.04) 100%);

    /* Overlays */
    --overlay-dark: color-mix(in srgb, var(--bg) 88%, transparent);
    --overlay-mid: color-mix(in srgb, var(--bg) 65%, transparent);

    /* Typography */
    --font-serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

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

    /* Motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
    --dur-fast: 0.3s;
    --dur-normal: 0.5s;
    --dur-slow: 0.8s;
    --dur-hero-enter: 1.4s;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 100px;
    --radius-circle: 50%;
}

/* ========== @PROPERTY (animatable custom props) ========== */
@property --ghost-progress {
    syntax: '<number>';
    initial-value: 0;
    inherits: true;
}

@property --glass-opacity {
    syntax: '<number>';
    initial-value: 1;
    inherits: false;
}

@property --info-progress {
    syntax: '<number>';
    initial-value: 0;
    inherits: false;
}

/* ========== VIEW TRANSITIONS ========== */
@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;
}

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

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

/* Intra-document VT (z.B. Filter-Grid auf Referenzen): root-Slide stumm schalten —
   sonst slidet die ganze Seite beim Filter-Klick als würde man navigieren. */
html.intra-vt::view-transition-old(root),
html.intra-vt::view-transition-new(root) {
    animation: none;
}

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

/* Fallback for browsers without native VT */
html.page-enter body {
    animation: page-slide-in 0.45s var(--ease) both;
}

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

html {
    scroll-behavior: smooth;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-body);
    background: var(--bg);
    text-wrap: pretty;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* clip statt hidden — erzeugt KEINEN Scroll-Container, damit
       animation-timeline: view() korrekt den html-Scroll tracked */
    overflow-x: clip;
}

body.nav-open {
    overflow: hidden;
}

img, video {
    display: block;
    max-width: 100%;
    height: auto;
}

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

button {
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

input, textarea, select {
    font: inherit;
    font-size: 16px;
    color: inherit;
    border: none;
    background: none;
    outline: none;
}

::selection {
    background: var(--accent-40);
    color: var(--text);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--text);
    text-wrap: balance;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 400; }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 500; }

p { text-wrap: pretty; }

em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--accent-light);
}

.label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

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

/* ========== LAYOUT ========== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

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

.section-header {
    max-width: 720px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-header .label {
    margin-bottom: 0.75rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.0625rem;
    color: var(--text-body);
}

/* ========== REVEAL SYSTEM — scroll-timeline driven ========== */
/* Base state (hidden) — greifft wenn timeline support fehlt bevor @supports not überschreibt */
.reveal {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
}

.reveal-fog {
    opacity: 0;
    filter: saturate(1) brightness(1) blur(14px);
    transform: scale(1.03);
}

@keyframes reveal-enter {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes reveal-fog-enter {
    from { opacity: 0; filter: saturate(1) brightness(1) blur(14px); transform: scale(1.03); }
    to   { opacity: 1; filter: saturate(1) brightness(1) blur(0);    transform: scale(1); }
}

@supports (animation-timeline: view()) {
    .reveal {
        animation: reveal-enter linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 30%;
    }

    .reveal-fog {
        animation: reveal-fog-enter linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 35%;
    }
}

/* Fallback: Browser ohne animation-timeline support — alles statisch sichtbar */
@supports not (animation-timeline: view()) {
    .reveal,
    .reveal-fog {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* reveal-d1..d6 — mit timeline obsolet (scroll-progress entspricht natürlichem stagger) */

/* ========== SCROLL GUARD ========== */
/* Suppresses hover during scroll — prevents Fake-Hover on scroll-past cards */
html.is-scrolling body * {
    pointer-events: none !important;
}
/* But let scroll-guard-exempt elements (like nav) stay interactive */
html.is-scrolling .nav,
html.is-scrolling .nav *,
html.is-scrolling .area-back-float,
html.is-scrolling .area-back-float * {
    pointer-events: auto !important;
}

/* ========== NAVIGATION ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem var(--container-pad);
    background: transparent;
    transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                backdrop-filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.nav.scrolled {
    background: rgba(20, 18, 17, 0.85);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    padding: 0.85rem var(--container-pad);
    border-bottom: 1px solid var(--border-light);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-decoration: none;
    color: var(--text);
}

.nav-brand-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1;
}

.nav-brand-sub {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 2.25rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--text-body);
    transition: color 0.3s var(--ease);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--accent);
}

.nav-cta {
    /* btn styles inherit */
}

.nav-hamburger {
    display: none;
    width: 28px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 110;
}

.nav-hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--text);
    transition: all 0.4s var(--ease);
}

.nav-hamburger span:nth-child(1) { top: 4px; }
.nav-hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-hamburger span:nth-child(3) { bottom: 4px; }

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

/* Mobile nav overlay */
.nav-mobile {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(20, 18, 17, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease);
}

.nav-mobile.open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.nav-mobile-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--text);
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s var(--ease),
                transform 0.4s var(--ease),
                color 0.3s var(--ease-soft);
}

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

.nav-mobile.open .nav-mobile-link:nth-child(1) { transition-delay: 0.1s, 0.1s, 0s; }
.nav-mobile.open .nav-mobile-link:nth-child(2) { transition-delay: 0.15s, 0.15s, 0s; }
.nav-mobile.open .nav-mobile-link:nth-child(3) { transition-delay: 0.2s, 0.2s, 0s; }
.nav-mobile.open .nav-mobile-link:nth-child(4) { transition-delay: 0.25s, 0.25s, 0s; }
.nav-mobile.open .nav-mobile-link:nth-child(5) { transition-delay: 0.3s, 0.3s, 0s; }
.nav-mobile.open .nav-mobile-link:nth-child(6) { transition-delay: 0.35s, 0.35s, 0s; }
.nav-mobile.open .nav-mobile-link:nth-child(7) { transition-delay: 0.4s, 0.4s, 0s; }

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

.nav-mobile-contact {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.8;
    opacity: 0;
    transition: opacity 0.5s var(--ease) 0.5s;
}

.nav-mobile.open .nav-mobile-contact { opacity: 1; }

.nav-mobile-contact a {
    color: var(--accent-light);
    transition: color 0.3s var(--ease);
}
.nav-mobile-contact a:hover { color: var(--accent); }

/* ========== BUTTONS (Glass + Depth) ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.85rem;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(to bottom,
                    color-mix(in srgb, var(--accent) 75%, transparent),
                    color-mix(in srgb, var(--accent-dark) 70%, transparent));
    border-color: var(--accent-40);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
                0 3px 10px var(--shadow-sm),
                0 1px 3px var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(to bottom,
                    color-mix(in srgb, var(--accent-light) 90%, transparent),
                    color-mix(in srgb, var(--accent) 85%, transparent));
    border-color: var(--accent-60);
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25),
                0 6px 20px var(--shadow-md),
                0 2px 6px var(--shadow-sm);
}

.btn-ghost {
    background: linear-gradient(to bottom,
                    rgba(240, 232, 217, 0.08),
                    rgba(240, 232, 217, 0.02));
    border-color: var(--border-strong);
    color: var(--text);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(240, 232, 217, 0.08),
                0 3px 10px var(--shadow-sm);
}

.btn-ghost:hover {
    background: linear-gradient(to bottom,
                    rgba(240, 232, 217, 0.14),
                    rgba(240, 232, 217, 0.06));
    border-color: var(--accent-40);
    color: var(--accent-light);
    transform: translateY(-1px);
}

.btn-dark {
    background: linear-gradient(to bottom, #2b2520, #1a1613);
    border-color: rgba(0, 0, 0, 0.3);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(240, 232, 217, 0.08),
                0 3px 10px var(--shadow-md);
}

.btn-dark:hover {
    background: linear-gradient(to bottom, var(--accent-light), var(--accent-hover));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--depth-hover);
}

.btn-arrow::after {
    content: '\2192';
    display: inline-block;
    margin-left: 0.25rem;
    transition: transform var(--dur-fast) var(--ease);
}

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

/* Text-link with accent underline */
.link-accent {
    color: var(--accent-light);
    font-weight: 500;
    border-bottom: 1px solid var(--accent-25);
    padding-bottom: 1px;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.link-accent:hover {
    color: var(--accent);
    border-color: var(--accent-60);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
}

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

@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-bg img,
.hero-bg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.08) saturate(0.95);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to right,
            rgba(20, 18, 17, 0.9) 0%,
            rgba(20, 18, 17, 0.65) 40%,
            rgba(20, 18, 17, 0.3) 75%,
            rgba(20, 18, 17, 0.2) 100%),
        linear-gradient(to bottom,
            rgba(20, 18, 17, 0.25) 0%,
            rgba(20, 18, 17, 0.4) 50%,
            rgba(20, 18, 17, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 10rem 0 5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-subline {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-body);
    max-width: 580px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* Hero entrance animation */
.hero-enter {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    filter: saturate(1) brightness(1) blur(6px);
}

.hero-enter.in {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1) brightness(1) blur(0);
    transition: opacity var(--dur-hero-enter) var(--ease),
                transform var(--dur-hero-enter) var(--ease),
                filter var(--dur-hero-enter) var(--ease);
}

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

.hero-enter.settled { filter: none !important; }

/* Hero trust bar */
.hero-trust {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 0.85rem var(--container-pad);
    border-top: 1px solid var(--border-light);
    background: linear-gradient(to bottom, transparent, rgba(20, 18, 17, 0.5));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-trust-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.75rem;
    color: var(--text-body);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 1.75rem;
}

.hero-trust-item + .hero-trust-item::before {
    content: '·';
    color: var(--accent);
    margin-right: 0;
}

/* ========== FOOTER ========== */
.footer {
    background: transparent;
    border-top: 1px solid var(--border);
    padding: clamp(3rem, 6vw, 6rem) 0 2rem;
    position: relative;
    overflow: hidden;
}

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

.footer-brand-name {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.footer-brand-desc {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
    max-width: 340px;
}

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

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-list a,
.footer-contact a,
.footer-contact span {
    font-size: 14px;
    color: var(--text-body);
    transition: color 0.3s var(--ease);
    text-decoration: none;
}

.footer-list a:hover,
.footer-contact a:hover {
    color: var(--accent-light);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 14px;
    line-height: 1.7;
}

.footer-contact-block {
    color: var(--text-body);
}

.footer-contact-block strong {
    color: var(--text);
    font-weight: 500;
    display: block;
    margin-bottom: 0.3rem;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 12px;
    color: var(--text-muted);
}

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

.footer-legal a {
    color: var(--text-muted);
    transition: color 0.3s var(--ease);
    text-decoration: none;
}

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

/* Footer watermark (scroll-driven ghost) */
.footer-ghost {
    position: absolute;
    left: 50%;
    bottom: -10%;
    transform: translateX(-50%) scale(calc(0.85 + 0.15 * var(--ghost-progress, 0)));
    font-family: var(--font-serif);
    font-size: clamp(8rem, 22vw, 24rem);
    font-weight: 300;
    color: var(--text);
    opacity: calc(0.025 * var(--ghost-progress, 1));
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: -0.04em;
    z-index: 0;
    line-height: 1;
}

@supports (animation-timeline: view()) {
    @keyframes footer-ghost-enter {
        from { --ghost-progress: 0; }
        to   { --ghost-progress: 1; }
    }
    .footer {
        animation: footer-ghost-enter linear both;
        animation-timeline: view(block);
        animation-range: entry 0% contain 50%;
    }
}

/* Fallback */
@supports not (animation-timeline: view()) {
    .footer-ghost {
        opacity: 0.022;
        transform: translateX(-50%) scale(1);
    }
}

/* ========== ATMOSPHERIC WRAPPER — Cinematic Light-Beams (Spangler-Pattern) ========== */
/*
   Gold-Lichtstreifen als Hintergrund-Atmosphäre.
   Wrapt mehrere Sections als Gruppe — beams laufen durch die gesamte Gruppe.
   Gold/Bronze statt Rot weil Licht golden ist (Rot im Licht wirkt blutig).

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

.atmo-wrap > *:not(.atmo-beam):not(.subpage-quicknav) {
    position: relative;
    z-index: 1;
}

/* ========== BLUEPRINT WRAP — Bauplan-Underlay für CTA+Footer-Bereiche (global) ========== */
/*
   Overlay mit invertiertem Bauplan-Bild (helles Bild wird zu dunklem Negativ-Pattern).
   ::before extends -280px nach oben (bleedet in vorangegangene Section).
   Mask: Top-Fade rein, voll in CTA, Bottom-Fade am Footer-Anfang wieder raus.

   HTML:
   <div class="blueprint-wrap">
       <section class="cta-banner">...</section>
       <footer>...</footer>
   </div>
*/
.blueprint-wrap {
    position: relative;
    isolation: isolate;
}

.blueprint-wrap::before {
    content: '';
    position: absolute;
    inset: -280px 0 0 0;
    background-image: url('images/atmo/plan-werkzeug-bleistift.jpg');
    background-size: cover;
    background-position: center;
    filter: invert(1) grayscale(1) brightness(0.75) contrast(1.3);
    opacity: 0.14;
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 280px,
        black 45%,
        transparent 70%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 280px,
        black 45%,
        transparent 70%
    );
    z-index: 0;
    pointer-events: none;
}

.blueprint-wrap > * {
    position: relative;
    z-index: 1;
}

.atmo-beam {
    position: absolute;
    width: 120vw;
    height: 280px;
    pointer-events: none;
    z-index: 0;
    filter: blur(70px);
    opacity: 0.6;
    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%);
}

.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%);
}

/* ========== Modifier: atmo-wrap das einen Footer enthält (z.B. index.html Gruppe 2)
   Nur Primary + Secondary behalten — beide sitzen in der Reviews-Zone (0-36.7% des
   wraps). Tertiary/Quaternary würden in CTA/Footer reichen und werden ausgeblendet.
   Opacity matcht die anderen atmo-wraps — Kundenstimmen-Headline "4,1 Sterne" soll
   vom Primary-Beam (top 3%, höchstintensiver Gradient) angestrahlt werden.
   Beams bekommen Fade an beiden Enden — ein realer Beam scattert weich aus. */
.atmo-wrap--with-footer .atmo-beam { opacity: 0.6; }
.atmo-wrap--with-footer .atmo-beam-primary,
.atmo-wrap--with-footer .atmo-beam-secondary {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
}
.atmo-wrap--with-footer .atmo-beam-primary { top: 3%; }
.atmo-wrap--with-footer .atmo-beam-secondary { top: 20%; }
.atmo-wrap--with-footer .atmo-beam-tertiary,
.atmo-wrap--with-footer .atmo-beam-quaternary { display: none; }

/* Compact-Variante (kurzer Wrap z.B. kontakt) — Secondary muss tiefer sitzen
   damit sie sich nicht mit Primary überlappt. 20% reicht in % der Höhe nicht
   bei kurzen Wraps → absoluter Abstand wird zu klein. */
.atmo-wrap--compact .atmo-beam-secondary { top: 38%; }

/* Subpage-Variante (längerer Content als index-reviews) — zusätzlicher Beam
   quer von rechts nach links (quaternary: right: -10%, rotate 14deg). */
.atmo-wrap--subpage .atmo-beam-quaternary {
    display: block;
    top: 42%;
    bottom: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, 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 ========== */
@media (max-width: 1024px) {
    .nav-links, .nav-cta { display: none; }
    .nav-hamburger { display: block; }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .hero-content {
        padding: 9rem 0 5.5rem;
    }
    .hero h1 {
        font-size: clamp(2.2rem, 9vw, 3.5rem);
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-delay: 0ms !important; }
    .reveal, .reveal-fog,
    .split-tile-wrap, .ref-tile-wrap {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
    .hero-enter {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
    .atmo-beam { display: none !important; }
    html { scroll-behavior: auto; }
}
