/* ============================================================
   schongebaut. — V2 "ruhig editorial"
   Warm-dark · oklch · Bodoni-Editorial · Glass+Depth · expo-out
   ============================================================ */

/* ===== FONTS ===== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 200 600;
    font-display: swap;
    src: url('../assets/fonts/inter.woff2') format('woff2');
}
@font-face {
    font-family: 'SaveurSansLight';
    font-style: normal;
    font-weight: 100 400;
    font-display: swap;
    src: url('../assets/fonts/SaveurSansLight.woff2') format('woff2'),
         url('../assets/fonts/SaveurSansLight.woff') format('woff');
}

/* ===== TOKENS ===== */
:root {
    /* Warm-dark backgrounds */
    --bg:        oklch(13% 0.010 55);
    --bg-2:      oklch(16% 0.013 55);
    --bg-3:      oklch(20% 0.016 56);
    --surface:   oklch(22% 0.018 58);
    --surface-2: oklch(26% 0.020 58);

    /* Warm cream text */
    --text:   oklch(95% 0.020 82);
    --text-2: color-mix(in oklch, var(--text) 74%, transparent);
    --text-3: color-mix(in oklch, var(--text) 50%, transparent);
    --text-4: color-mix(in oklch, var(--text) 32%, transparent);
    --muted:  oklch(72% 0.022 70);

    /* Champagne / sand accent */
    --accent:       oklch(82% 0.045 82);
    --accent-deep:  oklch(72% 0.060 70);
    --accent-light: oklch(89% 0.038 86);

    --accent-06: color-mix(in oklch, var(--accent) 6%,  transparent);
    --accent-10: color-mix(in oklch, var(--accent) 10%, transparent);
    --accent-15: color-mix(in oklch, var(--accent) 15%, transparent);
    --accent-20: color-mix(in oklch, var(--accent) 20%, transparent);
    --accent-30: color-mix(in oklch, var(--accent) 30%, transparent);
    --accent-45: color-mix(in oklch, var(--accent) 45%, transparent);

    /* Hairlines */
    --line:   color-mix(in oklch, var(--text) 9%,  transparent);
    --line-2: color-mix(in oklch, var(--text) 15%, transparent);

    /* Typography */
    --font-display: 'SaveurSansLight', 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

    /* Layout */
    --container: 1240px;
    --container-narrow: 760px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section-pad: clamp(5rem, 10vw, 9rem);
    --nav-h: 4.5rem;

    /* Radius */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --pill: 100px;

    /* Depth + glass */
    --depth-rest:  0 14px 40px rgba(0,0,0,0.42);
    --depth-hover: 0 24px 64px rgba(0,0,0,0.55);
    --glow: 0 0 60px var(--accent-10);
    --glass: linear-gradient(135deg,
        color-mix(in oklch, var(--text) 7%, transparent) 0%,
        transparent 30%, transparent 70%,
        var(--accent-06) 100%);

    /* Motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
    --dur: 0.55s;
    --dur-rev: 1.1s;
}

@media (color-gamut: p3) {
    :root {
        --accent:       oklch(82% 0.058 82);
        --accent-deep:  oklch(72% 0.078 70);
        --accent-light: oklch(89% 0.050 86);
    }
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
}
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    touch-action: manipulation;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: 400; }
p { text-wrap: pretty; }
::selection { background: var(--accent-30); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent-45); outline-offset: 3px; border-radius: 2px; }

/* ===== ATMOSPHERE ===== */
.grain {
    position: fixed; inset: -50%;
    width: 200%; height: 200%;
    z-index: 9999; pointer-events: none; opacity: 0.016;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.atmo-light {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(60% 50% at 78% 12%, var(--accent-06), transparent 70%),
        radial-gradient(50% 40% at 10% 90%, color-mix(in oklch, var(--accent) 4%, transparent), transparent 70%);
}

/* ===== LAYOUT UTILITIES ===== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.section { position: relative; padding-block: var(--section-pad); z-index: 1; }

.eyebrow {
    display: inline-block;
    font-size: 0.7rem; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 1.4rem;
}
.section-head { max-width: 640px; margin: 0 auto clamp(3rem, 6vw, 4.5rem); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head--split {
    max-width: var(--container); display: flex; flex-wrap: wrap;
    align-items: flex-end; justify-content: space-between; gap: 2rem; text-align: left;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.4vw, 3.1rem);
    line-height: 1.08; letter-spacing: -0.015em; color: var(--text);
}
.section-title em { font-style: normal; color: var(--accent); }
.section-lead {
    margin-top: 1.2rem; font-size: clamp(0.98rem, 1.4vw, 1.15rem);
    color: var(--text-3); font-weight: 300; line-height: 1.7;
}
.section-head:not(.section-head--left):not(.section-head--split) .section-lead { margin-inline: auto; max-width: 38rem; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    border-radius: var(--pill);
    font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
    padding: 1.05rem 2.2rem;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
                border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn .arrow, .btn span { transition: transform var(--dur) var(--ease); }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: 0 6px 24px rgba(0,0,0,0.3); }
.btn-primary:hover { background: var(--accent-light); box-shadow: 0 10px 34px var(--accent-20); }
.btn-primary:hover span { transform: translateX(3px); }
.btn-ghost {
    color: var(--text-2);
    background: linear-gradient(to bottom, color-mix(in oklch, var(--text) 6%, transparent), color-mix(in oklch, var(--text) 2%, transparent));
    border: 1px solid var(--line-2);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 color-mix(in oklch, var(--text) 8%, transparent), 0 4px 14px rgba(0,0,0,0.25);
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent-30); background: linear-gradient(to bottom, var(--accent-10), var(--accent-06)); }
.btn-ghost:hover .arrow { transform: translateX(4px); }
.btn-block { width: 100%; }

/* ===== REVEAL SYSTEM ===== */
.reveal {
    opacity: 0; transform: translateY(22px);
    transition: opacity var(--dur-rev) var(--ease), transform var(--dur-rev) var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal-fog { filter: blur(8px); transition: opacity var(--dur-rev) var(--ease), transform var(--dur-rev) var(--ease), filter var(--dur-rev) var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
.reveal.done { filter: none; }

/* ===== NAV ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: transparent;
    transition: background 0.6s var(--ease), backdrop-filter 0.6s var(--ease), border-color 0.6s var(--ease), padding 0.5s var(--ease);
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: color-mix(in oklch, var(--bg) 82%, transparent);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--line);
}
.nav-inner {
    max-width: var(--container); margin: 0 auto;
    padding-inline: var(--gutter);
    height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav.scrolled .nav-inner { height: 4rem; }
.nav-logo { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text); }
.nav-logo svg { opacity: 0.55; flex-shrink: 0; }
.nav-logo span { font-size: clamp(1.05rem, 1.3vw, 1.2rem); font-weight: 500; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a { font-size: 0.72rem; letter-spacing: 0.05em; color: var(--text-3); transition: color 0.3s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-cta {
    font-size: 0.72rem; font-weight: 500; letter-spacing: 0.03em; color: var(--text-2);
    padding: 0.6rem 1.3rem; border-radius: var(--pill);
    border: 1px solid var(--line-2);
    background: linear-gradient(to bottom, color-mix(in oklch, var(--text) 6%, transparent), color-mix(in oklch, var(--text) 2%, transparent));
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 color-mix(in oklch, var(--text) 8%, transparent);
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.nav-cta:hover { color: var(--text); border-color: var(--accent-30); background: linear-gradient(to bottom, var(--accent-15), var(--accent-06)); }
.nav-burger { display: none; flex-direction: column; gap: 6px; width: 26px; height: 26px; align-items: center; justify-content: center; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-burger.active span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-burger.active span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    position: fixed; inset: 0; z-index: 90;
    background: color-mix(in oklch, var(--bg) 96%, transparent);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.mobile-link { font-family: var(--font-display); font-size: 1.9rem; color: var(--text); }
.mobile-cta { margin-top: 1rem; font-family: var(--font-sans); font-size: 0.95rem; padding: 0.8rem 2rem; border: 1px solid var(--accent-30); border-radius: var(--pill); color: var(--accent); }

/* ===== BROWSER FRAME (shared) ===== */
.browser, .work-frame {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--bg-3); border: 1px solid var(--line-2);
    box-shadow: var(--depth-rest);
}
.browser-bar {
    display: flex; align-items: center; gap: 7px;
    padding: 11px 14px; background: var(--bg-3);
    border-bottom: 1px solid var(--line);
}
.browser-bar--mini { padding: 9px 12px; }
.browser-dot { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in oklch, var(--text) 14%, transparent); flex-shrink: 0; }
.browser-bar--mini .browser-dot { width: 7px; height: 7px; }
.browser-url {
    flex: 1; margin: 0 0.5rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    font-size: 0.62rem; color: var(--text-3);
    background: color-mix(in oklch, var(--text) 5%, transparent);
    border-radius: 6px; padding: 0.32rem 0.7rem;
}
.browser-url svg { width: 9px; height: 9px; opacity: 0.6; }
.browser-live {
    font-size: 0.56rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
    background: var(--accent-10); border: 1px solid var(--accent-20);
    border-radius: var(--pill); padding: 0.28rem 0.7rem; flex-shrink: 0;
}
.browser-viewport, .work-viewport {
    position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #f7f5f1;
    --pscale: 0.58;
}
.browser-viewport iframe, .work-viewport iframe {
    position: absolute; top: 0; left: 0; border: 0; pointer-events: none;
    max-width: none;  /* override global iframe{max-width:100%} — would cap the scaled width and leave a blank strip */
    width: calc(100% / var(--pscale)); height: calc(100% / var(--pscale));
    transform: scale(var(--pscale)); transform-origin: top left;
}
/* Glass touch on frames */
.browser::before, .work-frame::before {
    content: ''; position: absolute; inset: 0; z-index: 2;
    background: var(--glass); pointer-events: none;
}

/* ===== HERO ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 4rem;
    overflow: hidden;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.16; filter: saturate(1.1) brightness(0.9); z-index: 0; }
.hero-scrim {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(105deg, var(--bg) 0%, color-mix(in oklch, var(--bg) 72%, transparent) 42%, transparent 70%),
        linear-gradient(to top, var(--bg) 2%, transparent 30%, transparent 80%, color-mix(in oklch, var(--bg) 60%, transparent) 100%);
}
.hero-inner {
    position: relative; z-index: 2;
    width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter);
    display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.55rem;
    padding: 0.45rem 1rem; margin-bottom: 1.6rem;
    border-radius: var(--pill);
    background: color-mix(in oklch, var(--text) 4%, transparent);
    border: 1px solid var(--line);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    font-size: 0.68rem; letter-spacing: 0.02em; color: var(--text-3);
}
.hero-badge svg { color: var(--accent-deep); flex-shrink: 0; }
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.6vw, 4.5rem);
    line-height: 1.04; letter-spacing: -0.02em; color: var(--text);
    margin-bottom: 1.5rem;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--text-2); font-weight: 300; line-height: 1.6; max-width: 34rem; margin-bottom: 1.6rem; }
.hero-points { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 2.2rem; }
.hero-points li { position: relative; padding-left: 1.2rem; font-size: 0.95rem; color: var(--text-3); font-weight: 300; }
.hero-points li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.55; }
.hero-points li:last-child { color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-stage { position: relative; }
.hero-stage .browser { --pscale: 0.62; cursor: pointer; }
/* ── Interaktiver Gewerk-Picker („Es ist schon deine") ── */
.hero-pick { margin-bottom: 2.1rem; }
.hero-pick-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }
.hero-chip {
    font-size: 0.82rem; color: var(--text-2); padding: 0.5rem 0.95rem; border-radius: var(--pill); cursor: pointer;
    background: linear-gradient(to bottom, var(--surface), var(--bg-2));
    border: 1px solid var(--line-2); backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.hero-chip:hover { color: var(--text); border-color: var(--accent-45); }
.hero-chip.is-active { color: var(--bg); background: var(--accent); border-color: var(--accent); box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 3px 12px var(--accent-20); }
.hero-town { position: relative; display: inline-block; min-width: 210px; }
.hero-town input { width: 100%; padding: 0.45rem 0; border: none; border-bottom: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 0.9rem; }
.hero-town input:focus { outline: none; border-bottom-color: var(--accent); }
.hero-town-label { position: absolute; left: 0; top: 0.45rem; color: var(--text-4); font-size: 0.9rem; pointer-events: none; transform-origin: left; transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.hero-town:focus-within .hero-town-label,
.hero-town:has(input:not(:placeholder-shown)) .hero-town-label { transform: translateY(-1.3em) scale(0.76); color: var(--accent-deep); }
.hero-stage-caption { margin-top: 1.1rem; text-align: center; font-size: 0.95rem; color: var(--text-3); font-weight: 300; }
.hero-stage-caption strong { color: var(--accent); font-weight: 500; }
.browser-viewport iframe { transition: opacity 0.45s var(--ease); }
.browser-viewport.is-swapping iframe { opacity: 0; transition: opacity 0.18s var(--ease); }
/* ── V3-Konzept: Gewerk-Durchreiche (Personalisierung quer über die Seite) ── */
#svcTradeName { color: var(--accent); font-style: normal; }
.work-tile { position: relative; }
.work-tile.is-match { outline: 2px solid var(--accent); outline-offset: 3px; }
.work-tile.is-match::after { content: '✓ Dein Gewerk'; position: absolute; top: 0.85rem; left: 0.85rem; z-index: 4; font-size: 0.68rem; letter-spacing: 0.04em; color: var(--bg); background: var(--accent); padding: 0.3rem 0.7rem; border-radius: var(--pill); font-weight: 500; box-shadow: 0 3px 10px rgba(0,0,0,0.25); }
.ob-prefill { font-size: 0.78rem; color: var(--accent); background: var(--accent-06); border: 1px solid var(--accent-15); border-radius: var(--radius-sm); padding: 0.5rem 0.8rem; margin: 0 0 1rem; }
.hero-stage-glow {
    position: absolute; inset: -12% -8% -18% -8%; z-index: -1;
    background: radial-gradient(ellipse at 60% 42%, var(--accent-15), transparent 68%);
    filter: blur(20px);
}
[data-float] { animation: float 9s var(--ease-soft) infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Hero entrance */
.hero-enter { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 1.3s var(--ease), transform 1.4s var(--ease), filter 1.5s var(--ease); transition-delay: calc(var(--d, 0) * 0.12s); }
.hero-enter--fog { transform: translateY(0) scale(0.984); }
.hero-enter.in { opacity: 1; transform: none; filter: blur(0); }
.hero-stage.hero-enter.in .browser { opacity: 1; }

/* ===== LEISTUNGEN ===== */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.svc-card {
    position: relative; overflow: hidden; border-radius: var(--radius-lg);
    background: linear-gradient(to bottom, var(--surface), var(--bg-2));
    border: 1px solid var(--line);
    box-shadow: var(--depth-rest);
    display: flex; flex-direction: column;
    transition: opacity var(--dur-rev) var(--ease), transform var(--dur-rev) var(--ease), filter var(--dur-rev) var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.svc-card:hover { box-shadow: var(--depth-hover), var(--glow); border-color: var(--accent-20); }
.svc-card::before { content: ''; position: absolute; inset: 0; z-index: 3; background: var(--glass); pointer-events: none; }
.svc-card > * { position: relative; z-index: 2; }
.svc-media { aspect-ratio: 16 / 7; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); filter: brightness(0.82) saturate(1.05); }
.svc-card:hover .svc-media img { transform: scale(1.05); }
.svc-body { padding: clamp(1.5rem, 2.5vw, 2.2rem); display: flex; flex-direction: column; flex: 1; }
.svc-num { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 0.9rem; }
.svc-title { font-family: var(--font-sans); font-weight: 500; letter-spacing: -0.01em; font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.2; color: var(--text); margin-bottom: 0.9rem; }
.svc-text { font-size: 0.94rem; color: var(--text-3); line-height: 1.65; margin-bottom: 1.4rem; }
.svc-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: auto; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.svc-list li { position: relative; padding-left: 1.4rem; font-size: 0.82rem; color: var(--text-2); line-height: 1.5; }
.svc-list li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.6; }
.svc-proof {
    margin-top: clamp(2.5rem, 4vw, 3.5rem); padding-block: 1.4rem;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem;
    font-size: 0.82rem; color: var(--text-3); font-weight: 500;
}
.svc-proof i { color: var(--accent-30); font-style: normal; }

/* ===== PORTFOLIO ===== */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); }
.work-tile { display: flex; flex-direction: column; gap: 1.1rem;
    transition: opacity var(--dur-rev) var(--ease), transform var(--dur-rev) var(--ease), filter var(--dur-rev) var(--ease); }
.work-tile--wide { grid-column: span 1; }
.work-frame {
    transition: box-shadow 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.work-tile:hover .work-frame { box-shadow: var(--depth-hover), var(--glow); border-color: var(--accent-20); }
.work-viewport { --pscale: 0.5; aspect-ratio: 16 / 10.5; }
.work-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: opacity 0.7s var(--ease); filter: brightness(0.92); }
.work-tile:hover .work-poster { opacity: 0; }
.work-viewport iframe { z-index: 0; }
.work-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-inline: 0.2rem; }
.work-cat { display: block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 0.4rem; }
.work-name { font-family: var(--font-sans); font-weight: 500; letter-spacing: -0.01em; font-size: clamp(1.2rem, 1.7vw, 1.5rem); color: var(--text); line-height: 1.05; }
.work-cta { font-size: 0.78rem; color: var(--text-3); white-space: nowrap; transition: color 0.4s var(--ease); }
.work-cta span { transition: transform 0.4s var(--ease); display: inline-block; }
.work-tile:hover .work-cta { color: var(--accent); }
.work-tile:hover .work-cta span { transform: translateX(4px); }
.work-end { text-align: center; margin-top: clamp(3rem, 5vw, 4.5rem); }
.work-end p { font-family: var(--font-sans); font-weight: 300; font-size: clamp(1.15rem, 1.8vw, 1.45rem); color: var(--text-2); margin-bottom: 1.5rem; }

/* ===== PROZESS ===== */
.proc { background: linear-gradient(to bottom, transparent, var(--bg-2) 50%, transparent); }
.proc-tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.72rem; color: var(--text-3);
    border: 1px solid var(--accent-15); border-radius: var(--pill);
    padding: 0.5rem 1.1rem; align-self: flex-end;
}
.proc-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.6; }
.proc-rail { display: none; }
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.4rem, 3vw, 2.2rem); }
.proc-step {
    position: relative; padding: 1.8rem 1.5rem; border-radius: var(--radius);
    border: 1px solid var(--line); background: color-mix(in oklch, var(--surface) 40%, transparent);
    display: flex; flex-direction: column;
    transition: opacity var(--dur-rev) var(--ease), transform var(--dur-rev) var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
}
.proc-step--key { border-color: var(--accent-20); background: var(--accent-06); }
.proc-step-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent-deep); margin-bottom: 1rem; }
.proc-step-title { font-size: 1.1rem; color: var(--text); margin-bottom: 0.7rem; font-weight: 400; }
.proc-step-text { font-size: 0.9rem; color: var(--text-3); line-height: 1.6; flex: 1; margin-bottom: 1.2rem; }
.proc-micro { font-size: 0.72rem; color: var(--text-4); letter-spacing: 0.02em; }

/* ===== PHILOSOPHIE ===== */
.phil { overflow: hidden; }
.phil-ribbon {
    position: absolute; inset: 0 -10%; z-index: 0; pointer-events: none;
    background: url('../assets/bg/silhouette-ribbon.jpg') center / cover no-repeat;
    filter: grayscale(1) brightness(1.4) contrast(1.3); opacity: 0.10; mix-blend-mode: screen;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
            mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.phil-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.phil-kicker { display: block; font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 300; color: var(--accent-deep); margin-bottom: 1rem; letter-spacing: -0.01em; }
.phil-copy .section-title { margin-bottom: 1.4rem; }
.phil-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.phil-list li { display: flex; align-items: flex-start; gap: 0.9rem; font-size: 0.95rem; color: var(--text-2); }
.phil-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0.5; margin-top: 0.5em; flex-shrink: 0; }
.phil-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--depth-rest); border: 1px solid var(--line); }
.phil-media::before { content: ''; position: absolute; inset: 0; z-index: 2; background: var(--glass); pointer-events: none; }
.phil-media img { width: 100%; height: 100%; object-fit: cover; }
.phil-media::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, var(--bg) 2%, transparent 55%); }
.phil-media-line { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; z-index: 3; background: linear-gradient(to right, transparent, var(--accent-30), transparent); }

/* ===== FAQ ===== */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); transition: border-color 0.4s var(--ease); }
.faq-item.faq-open { border-color: var(--accent-20); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; cursor: pointer; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q span { font-size: clamp(0.95rem, 1.3vw, 1.05rem); font-weight: 400; color: var(--text); transition: color 0.3s var(--ease); }
.faq-item.faq-open .faq-q span { color: var(--accent-light); }
.faq-icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; top: 50%; left: 50%; background: var(--accent-deep); transition: transform 0.4s var(--ease), background 0.3s var(--ease); }
.faq-icon::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
.faq-item.faq-open .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-item.faq-open .faq-icon::before { background: var(--accent); }
.faq-a { overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease); }
.faq-item.faq-open .faq-a { opacity: 1; }
.faq-a-inner { padding: 0 0 1.5rem; }
.faq-a-inner p { font-size: 0.92rem; color: var(--text-3); line-height: 1.7; max-width: 60ch; }

/* ===== KONTAKT ===== */
.contact { overflow: hidden; }
.contact-bg { position: absolute; inset: 0; z-index: 0; background: url('../assets/img/pexels-kontakt-bg.jpg') center / cover no-repeat; filter: grayscale(0.5) brightness(0.26) contrast(1.05); }
.contact-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 25%, var(--bg) 80%), linear-gradient(to bottom, var(--bg), transparent 20%, transparent 80%, var(--bg)); }
.contact .container { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-statement { position: sticky; top: 8rem; }
.contact-statement .section-title { margin-bottom: 1.3rem; }
.contact-form-wrap {
    position: relative; padding: clamp(1.8rem, 3vw, 2.6rem); border-radius: var(--radius-lg);
    background: linear-gradient(to bottom, var(--surface), var(--bg-2));
    border: 1px solid var(--line); box-shadow: var(--depth-rest);
}
.contact-form-wrap::before { content: ''; position: absolute; inset: 0; z-index: 0; background: var(--glass); pointer-events: none; border-radius: inherit; }
.contact-form-wrap > * { position: relative; z-index: 1; }
.contact-form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.contact-form-head h3 { font-family: var(--font-sans); font-size: 1.2rem; color: var(--text); font-weight: 500; letter-spacing: -0.01em; }
.contact-form-head span { font-size: 0.7rem; color: var(--text-4); }
.contact-form { display: flex; flex-direction: column; gap: 1.8rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
.field { position: relative; display: block; }
.field input, .field textarea {
    width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line-2);
    padding: 0.6rem 0; color: var(--text); font-family: var(--font-sans); font-size: 1rem; font-weight: 300;
    resize: none; outline: none;
}
.field textarea { line-height: 1.6; }
.field-label { position: absolute; left: 0; top: 0.6rem; color: var(--text-4); pointer-events: none; transform-origin: left; transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.field:focus-within .field-label, .field:has(input:not(:placeholder-shown)) .field-label, .field:has(textarea:not(:placeholder-shown)) .field-label { transform: translateY(-1.45em) scale(0.78); color: var(--accent-deep); }
.field::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field-hint { display: block; margin-top: 0.5rem; font-size: 0.72rem; color: var(--text-4); }
.field.shake { animation: shake 0.4s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.hp { position: absolute; left: -9999px; top: -9999px; }
.cf-turnstile { min-height: 0; }
.contact-fineprint { text-align: center; font-size: 0.72rem; color: var(--text-4); }

/* ===== ONBOARDING-FORM (2-Step, ob-) ===== */
.ob-progress { display: flex; align-items: center; justify-content: center; gap: 0.7rem; margin: 0; }
.ob-prog-step { display: flex; align-items: center; gap: 0.5rem; }
.ob-prog-num { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.78rem; border: 1.5px solid var(--accent-15); color: var(--text-4); transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease); }
.ob-prog-step.ob-on .ob-prog-num { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.ob-prog-step.ob-done .ob-prog-num { background: var(--accent-20); border-color: var(--accent-45); color: var(--accent); }
.ob-prog-label { font-size: 0.78rem; color: var(--text-4); transition: color 0.4s var(--ease); }
.ob-prog-step.ob-on .ob-prog-label { color: var(--text-2); }
.ob-prog-line { width: 34px; height: 1.5px; background: var(--accent-15); }

.ob-viewport { position: relative; overflow: hidden; transition: height 0.5s var(--ease); }
.ob-step { display: none; }
.ob-step.ob-step-active { display: block; }
.ob-q { font-size: 1.15rem; color: var(--text); font-weight: 500; letter-spacing: -0.01em; margin: 0 0 0.4rem; }
.ob-q em { color: var(--accent); font-style: normal; }
.ob-sub { font-size: 0.88rem; color: var(--text-3); margin: 0 0 1.5rem; }
.ob-proof { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; color: var(--accent); margin: 0 0 1.2rem; padding: 0.4rem 0.85rem; border-radius: var(--pill); background: var(--accent-06); border: 1px solid var(--accent-15); }

.ob-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; }
.ob-chip {
    font-size: 0.85rem; color: var(--text-2); padding: 0.7rem 1.1rem; border-radius: var(--pill); cursor: pointer;
    background: linear-gradient(to bottom, var(--surface), var(--bg-2));
    border: 1px solid var(--line-2);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ob-chip:hover { color: var(--text); border-color: var(--accent-45); background: linear-gradient(to bottom, var(--accent-20), var(--accent-06)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 14px rgba(0,0,0,0.25); }
.ob-chip.ob-sel { color: var(--text); border-color: var(--accent); background: linear-gradient(to bottom, var(--accent-20), var(--accent-06)); }
.ob-chips.shake { animation: shake 0.4s ease; }

.ob-step .field-row { margin-bottom: 1.6rem; }
.ob-step .field--area { margin-bottom: 1.5rem; }
.ob-step .cf-turnstile { margin: 0 0 1.4rem; }
.ob-actions { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.ob-submit { flex: 1; }
.ob-back { background: none; border: none; color: var(--text-4); font-size: 0.85rem; cursor: pointer; padding: 0.5rem 0.2rem; transition: color 0.3s var(--ease); }
.ob-back:hover { color: var(--text-2); }
.contact-success { text-align: center; font-size: 0.9rem; color: var(--accent); padding: 0.8rem 0; }
/* Autofill override */
.contact-form input:-webkit-autofill, .contact-form input:-webkit-autofill:hover, .contact-form input:-webkit-autofill:focus, .contact-form textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-2) inset !important;
    -webkit-text-fill-color: var(--text) !important; caret-color: var(--text);
    transition: background-color 5000s ease-in-out 0s;
}

/* ===== FOOTER ===== */
.ftr { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 6vw, 5rem) 0; }
.ftr-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.ftr-brand p { font-size: 0.8rem; color: var(--text-4); margin-top: 0.5rem; }
.ftr-nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.ftr-nav a, .ftr-legal a { font-size: 0.8rem; color: var(--text-3); transition: color 0.3s var(--ease); }
.ftr-nav a:hover, .ftr-legal a:hover { color: var(--text); }
.ftr-legal { display: flex; gap: 1.4rem; }
.ftr-base { margin-top: 2.5rem; padding: 1.6rem 0 8rem; border-top: 1px solid var(--line); }
.ftr-base p { font-size: 0.72rem; color: var(--text-4); }
.ftr-ghost {
    position: absolute; left: 50%; bottom: -0.12em; transform: translateX(-50%);
    font-family: var(--font-display); font-size: clamp(4rem, 19vw, 17rem); line-height: 0.8;
    color: var(--accent); white-space: nowrap; pointer-events: none; user-select: none;
    opacity: 0.05;
}
@property --ghost-p { syntax: '<number>'; inherits: false; initial-value: 0; }
@supports (animation-timeline: view()) {
    .ftr-ghost {
        --ghost-p: 0; opacity: calc(var(--ghost-p) * 0.085);
        transform: translateX(-50%) scale(calc(0.92 + var(--ghost-p) * 0.08));
        animation: ghost-rise linear both; animation-timeline: view(block); animation-range: entry 0% cover 55%;
    }
    @keyframes ghost-rise { from { --ghost-p: 0; } to { --ghost-p: 1; } }
}

/* ===== VIEW TRANSITIONS (scaffold) ===== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.32s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateX(-3%); } }
@keyframes vt-in { from { opacity: 0; transform: translateX(3%); } }

/* ── Prozess-Rail-Cascade (V1-Mechanik): Fill mit Mikro-Pausen an jeder Station ── */
@keyframes procRailFill {
    0%   { width: 0%; }
    10%  { width: 12.5%; }
    16%  { width: 12.5%; }
    35%  { width: 37.5%; }
    41%  { width: 37.5%; }
    60%  { width: 62.5%; }
    66%  { width: 62.5%; }
    85%  { width: 87.5%; }
    91%  { width: 87.5%; }
    100% { width: 100%; }
}
@keyframes procNodeFlash {
    0%   { background: var(--bg-2); border-color: var(--accent-15); color: var(--accent-deep); box-shadow: none; }
    45%  { background: var(--accent); border-color: var(--accent); color: var(--bg); box-shadow: 0 0 16px var(--accent-30); }
    100% { background: var(--accent); border-color: var(--accent); color: var(--bg); box-shadow: 0 0 8px var(--accent-20); }
}
@keyframes procNodeFlashKey {
    0%   { background: var(--bg-2); border-color: var(--accent-15); color: var(--accent-deep); box-shadow: none; }
    45%  { background: var(--accent); border-color: var(--accent); color: var(--bg); box-shadow: 0 0 24px var(--accent-45); }
    100% { background: var(--accent); border-color: var(--accent); color: var(--bg); box-shadow: 0 0 14px var(--accent-30); }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 1024px) {
    /* ── Prozess-Rail: V1-Mechanik 1:1 — 4s Timed-Cascade mit Mikro-Pausen pro Station ── */
    .proc-rail { display: block; position: relative; height: 2px; margin: 2.8rem 0 3.2rem; background: var(--line); }
    .proc-rail-fill { position: absolute; top: 0; left: 0; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-45) 0%, var(--accent) 100%); box-shadow: 0 0 8px var(--accent-20); }
    .proc-node { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg-2); border: 1.5px solid var(--accent-15); font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.03em; color: var(--accent-deep); z-index: 1; }
    .proc-node--key { border-width: 2px; }
    /* Nummern leben in den Rail-Knoten → In-Card-Nummer auf Desktop ausblenden */
    .proc-step-num { display: none; }
    /* Karten starten versteckt — reveal synchron, wenn der Fill ihre Station erreicht */
    .proc .proc-step { opacity: 0; transform: translateY(12px); filter: blur(4px); }
    /* ── Cascade-Trigger: Section .is-active (via IO auf der Rail) ── */
    .proc.is-active .proc-rail-fill { animation: procRailFill 4s linear 0.6s 1 forwards; }
    .proc.is-active .proc-node { animation: procNodeFlash 800ms ease-out var(--node-d, 0s) 1 forwards; }
    .proc.is-active .proc-node--key { animation: procNodeFlashKey 800ms ease-out var(--node-d, 0s) 1 forwards; }
    .proc.is-active .proc-step { opacity: 1; transform: none; filter: blur(0); transition: opacity 0.9s var(--ease) var(--step-d, 0s), transform 0.9s var(--ease) var(--step-d, 0s), filter 1.1s var(--ease) var(--step-d, 0s); }
}
@media (max-width: 1023px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-burger { display: flex; }
    .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-stage { max-width: 540px; }
    .phil-grid { grid-template-columns: 1fr; }
    .phil-media { aspect-ratio: 16 / 10; max-height: 420px; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-statement { position: static; }
    .proc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .svc-grid { grid-template-columns: 1fr; }
    .work-grid { grid-template-columns: 1fr; }
    .proc-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .section-head--split { flex-direction: column; align-items: flex-start; }
    .proc-tag { align-self: flex-start; }
    .hero-title { font-size: clamp(2.4rem, 11vw, 3.2rem); }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
    .reveal, .hero-enter, .proc-step { opacity: 1 !important; transform: none !important; filter: none !important; }
    [data-float] { animation: none !important; }
}
