/* ===== VARIABLES ===== */
:root {
    --bg: #f8f9fb;
    --bg-raised: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.75);
    --surface: #eef1f5;
    --border: rgba(0, 0, 0, 0.07);
    --border-hover: rgba(0, 0, 0, 0.14);
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #7b8291;
    --accent: #b8973e;
    --accent-dim: rgba(184, 151, 62, 0.08);
    --accent-light: #efe6cd;
    --font-serif: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; /* Display-Schrift (Inter, SF-Pro-nah) */
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --radius: 16px;
    --radius-sm: 10px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text-secondary);
    line-height: 1.65;
    font-weight: 400;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== LAYOUT ===== */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; color: var(--text-primary); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.25; letter-spacing: -0.012em; font-weight: 600; }

.label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

/* ===== NAV ===== */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 999;
    transition: box-shadow 0.4s var(--ease);
    background: var(--bg-raised); border-bottom: 1px solid var(--border);
}
.nav.scrolled {
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-emblem { display: flex; align-items: center; }
.nav-logo-emblem img { display: block; height: 42px; width: auto; transform: translateY(-4px); }
.nav-logo-text { font-family: var(--font-serif); font-size: 1.2rem; color: var(--text-primary); white-space: nowrap; line-height: 1; }
.nav-logo-text i { color: var(--accent); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 0.82rem; font-weight: 500; color: var(--text-muted); transition: color 0.3s var(--ease); }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta-link {
    color: #ffffff !important; background: var(--accent); border: 1px solid var(--accent);
    padding: 8px 20px; border-radius: 100px; transition: all 0.3s var(--ease) !important;
}
.nav-cta-link:hover { background: #9c8030; border-color: #9c8030; color: #ffffff !important; }
.nav-hamburger {
    display: none; background: none; border: none; cursor: pointer;
    padding: 8px; position: relative; width: 32px; height: 32px;
}
.nav-hamburger span {
    position: absolute; left: 4px; width: 24px; height: 1.5px;
    background: var(--text-primary); transition: all 0.3s var(--ease);
}
.nav-hamburger span:nth-child(1) { top: 10px; }
.nav-hamburger span:nth-child(2) { top: 16px; }
.nav-hamburger span:nth-child(3) { top: 22px; }
.nav-hamburger.open span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { top: 16px; transform: rotate(-45deg); }

/* ===== HERO: FULLSCREEN VIDEO ===== */
.hero-a {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
}
.hero-a-video {
    position: absolute;
    top: 72px; left: -200px; right: -80px; bottom: -60px;
    z-index: 0;
}
.hero-a-video video {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(1.23) contrast(1.03);
}
.hero-a-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(90deg, rgba(248,249,251,0.97) 0%, rgba(248,249,251,0.92) 35%, rgba(248,249,251,0.6) 58%, rgba(248,249,251,0.12) 100%),
        linear-gradient(180deg, rgba(248,249,251,1) 0%, rgba(248,249,251,0.85) 8%, transparent 25%, transparent 75%, rgba(248,249,251,0.6) 100%);
}
.hero-a-content {
    position: relative; z-index: 2; max-width: 580px;
}
.hero-a-content .label { color: var(--accent); font-weight: 700; }
.hero-a-content h1 { color: #0a0f1a; }
.hero-a h1 em { font-style: italic; color: var(--accent); }
.hero-a-content .hero-sub { color: #1f2937; }
.hero-a .label { opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.2s forwards; }
.hero-a h1 { opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.35s forwards; }
.hero-a .hero-sub { opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.5s forwards; }
.hero-a .hero-actions { opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.65s forwards; }

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--text-secondary);
    max-width: 560px; margin-top: 24px; line-height: 1.75;
}
.hero-actions {
    display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap;
}

/* ===== HERO METRICS ===== */
.hero-a-metrics {
    position: relative;
    display: flex; gap: 40px; margin-top: 56px; padding: 22px 8px;
    border: none; border-radius: 0; background: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.85s forwards;
}
/* Variante A: weicher, randloser Scrim hinter dem Text (kein Kasten) für Lesbarkeit über dem Video */
.hero-a-metrics::before {
    content: ''; position: absolute; z-index: -1; pointer-events: none;
    inset: -8px -28px;
    background: radial-gradient(115% 150% at 28% 50%, rgba(248,249,251,0.88) 0%, rgba(248,249,251,0.55) 45%, rgba(248,249,251,0) 82%);
    filter: blur(7px);
}
.hero-a-metrics .metric .value {
    font-family: var(--font-serif); font-size: 2.2rem;
    color: #0a0f1a; letter-spacing: -0.02em; line-height: 1;
}
.hero-a-metrics .metric .desc {
    font-size: 0.75rem; color: #4b5563; margin-top: 6px; font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px; border-radius: 100px; font-family: var(--font-sans);
    font-size: 0.88rem; font-weight: 600; cursor: pointer;
    transition: all 0.35s var(--ease); border: none;
}
.btn-fill { background: var(--accent); color: #ffffff; }
.btn-fill:hover { background: #c9a84e; box-shadow: 0 0 40px rgba(184,151,62,0.2); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.9); color: var(--text-primary); border: 1px solid var(--border-hover); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #ffffff; border-color: var(--text-muted); }
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ===== MARQUEE ===== */
.marquee-section {
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 20px 0; overflow: hidden; background: var(--bg-raised);
}
.marquee-track { display: flex; animation: marquee 60s linear infinite; width: max-content; }
.marquee-item {
    flex-shrink: 0; padding: 0 44px; font-size: 0.95rem; font-weight: 600;
    letter-spacing: 0.01em;
    color: #374151; white-space: nowrap; display: flex; align-items: center; gap: 14px;
}
.marquee-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.85; }

/* ===== SECTIONS ===== */
section { padding: 120px 0; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head p { margin-top: 20px; font-size: 1.05rem; line-height: 1.8; }
.section-head-center { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.divider { height: 1px; background: var(--border); }

/* ===== LEISTUNGEN (MAGAZIN) ===== */
.mag-grid { display: flex; flex-direction: column; gap: 112px; }

.mag-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.mag-media {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4 / 3;
    position: relative;
    background: var(--surface);
}
.mag-row.is-natural .mag-media {
    aspect-ratio: auto;
}
.mag-row.is-natural .mag-media img {
    height: auto;
    object-fit: initial;
}
.mag-media picture { display: block; width: 100%; height: 100%; }
.mag-media img {
    width: 100%; height: 100%; object-fit: cover;
    filter: saturate(0.85) brightness(1.02);
    transition: filter 0.6s var(--ease), transform 0.8s var(--ease);
}
.mag-media::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(184, 151, 62, 0.05);
    pointer-events: none;
    transition: opacity 0.5s var(--ease);
}
.mag-row:hover .mag-media img { filter: saturate(1) brightness(1); transform: scale(1.02); }
.mag-row:hover .mag-media::after { opacity: 0; }

.mag-row.reverse .mag-media { order: 2; }

.mag-num {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
}
.mag-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 14px;
}
.mag-text h3 { font-size: 1.7rem; margin-bottom: 18px; line-height: 1.2; }
.mag-text p { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; }

/* ===== FERTIGUNG (VIDEO-TABS) ===== */
.fert-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 56px;
    border-bottom: 1px solid var(--border);
}
.fert-tab {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    padding: 18px 24px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.fert-tab:hover { color: var(--text-primary); }
.fert-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.fert-stage { position: relative; min-height: 540px; }
.fert-panel {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 72px;
    align-items: center;
    opacity: 0;
    transform: scale(0.98);
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.fert-panel.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.fert-video {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 16 / 10;
    background: var(--surface);
    position: relative;
}
.fert-video.is-vertical {
    aspect-ratio: 2 / 3;
    max-width: 360px;
    justify-self: start;
    margin-left: clamp(40px, 6%, 90px);
}
.fert-video video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.9);
}
.fert-video::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(184, 151, 62, 0.04);
    pointer-events: none;
}

.fert-num {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
}
.fert-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 14px;
}
.fert-body h3 { font-size: 1.9rem; margin-bottom: 20px; line-height: 1.2; }
.fert-body p { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; }

/* ===== WORKFLOW ===== */
.workflow-row { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.w-step {
    padding: 32px 0; border-bottom: 1px solid var(--border);
    transition: all 0.4s var(--ease);
}
.w-step:first-child { padding-top: 0; }
.w-step:last-child { border-bottom: none; }
.w-step:hover { padding-left: 8px; }
.w-step h4 { font-family: var(--font-sans); font-weight: 600; font-size: 1rem; color: var(--text-primary); margin-bottom: 6px; }
.w-step p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }
.workflow-visual {
    position: relative; aspect-ratio: 16/9; border-radius: 24px; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border);
}
.workflow-video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== VIDEO PLAY/PAUSE TOGGLE ===== */
.video-toggle {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60px; height: 60px; padding: 0; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(17, 24, 39, 0.5); color: #ffffff;
    display: grid; place-items: center; cursor: pointer; z-index: 4;
    opacity: 0; transition: opacity 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.video-toggle svg { width: 22px; height: 22px; fill: currentColor; display: none; }
.video-toggle .ico-pause { display: block; }
.video-toggle .ico-play { margin-left: 2px; }
.is-paused .video-toggle .ico-pause { display: none; }
.is-paused .video-toggle .ico-play { display: block; }
.video-toggle:hover { background: var(--accent); border-color: var(--accent); }
.fert-video:hover .video-toggle,
.workflow-visual:hover .video-toggle,
.fert-video.is-paused .video-toggle,
.workflow-visual.is-paused .video-toggle,
.video-toggle:focus-visible { opacity: 1; }
.video-toggle:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
@media (hover: none) {
    /* Touch: Button standardmäßig verborgen, erst beim Antippen des Videos (oder bei Pause) sichtbar */
    .fert-video.controls-visible .video-toggle,
    .workflow-visual.controls-visible .video-toggle { opacity: 1; }
}

/* ===== SPLIT SECTIONS ===== */
.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.split-row.reverse .split-text { order: 1; }
.split-row.reverse .split-card { order: 0; }
.split-text { padding: 24px 0; }
.split-text p.intro { font-size: 1.05rem; color: var(--text-secondary); margin-top: 20px; line-height: 1.8; }
.feature-stack { margin-top: 40px; display: flex; flex-direction: column; }
.feat { display: grid; grid-template-columns: 20px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.feat:last-child { border-bottom: none; }
.feat-line { width: 1px; height: 100%; background: linear-gradient(180deg, var(--accent), transparent); margin: 4px auto 0; }
.feat h4 { font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem; color: var(--text-primary); margin-bottom: 6px; }
.feat p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.65; }
.split-card {
    border-radius: 24px; border: 1px solid var(--border); background: var(--bg-card);
    overflow: hidden; min-height: 420px; display: flex; align-items: center;
    justify-content: center; position: relative;
}
.split-card.is-natural {
    min-height: 0;
    display: block;
}
.split-card.is-natural picture { display: block; width: 100%; }
.split-card.is-natural img {
    width: 100% !important;
    height: auto !important;
    object-fit: initial !important;
    display: block;
}
.split-card-inner { text-align: center; padding: 48px; }
.split-card-inner .big-text { font-family: var(--font-serif); font-size: 5rem; color: rgba(184,151,62,0.07); line-height: 1; margin-bottom: 16px; }
.split-card-inner p { font-size: 0.88rem; color: var(--text-muted); }

/* ===== ABOUT ===== */
.about-row { display: grid; grid-template-columns: 380px 1fr; gap: 72px; align-items: start; }
.portrait-frame {
    border-radius: 20px; overflow: hidden; border: 1px solid var(--border);
    aspect-ratio: 3/4; background: linear-gradient(145deg, var(--surface), var(--bg)); position: relative;
}
.portrait-placeholder {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-serif); font-size: 4rem; color: rgba(184,151,62,0.1);
}
.about-body p { font-size: 1rem; line-height: 1.85; margin-bottom: 20px; color: var(--text-secondary); }
.about-body p:first-of-type { font-size: 1.08rem; color: var(--text-primary); }
.about-body p.label { font-size: 0.72rem; color: var(--accent); }
.about-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.about-num { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px 16px; text-align: center; transition: border-color 0.3s var(--ease); }
.about-num:hover { border-color: var(--border-hover); }
.about-num .val { font-family: var(--font-serif); font-size: 2rem; color: var(--text-primary); line-height: 1; }
.about-num .lbl { font-size: 0.7rem; color: var(--text-muted); margin-top: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

.cv-toggle-btn {
    background: none; border: 1px solid var(--border);
    padding: 12px 28px; border-radius: 100px; font-family: var(--font-sans);
    font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
    cursor: pointer; transition: all 0.3s var(--ease); display: inline-flex; align-items: center; gap: 10px;
}
.cv-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }
.cv-toggle-btn .chevron { transition: transform 0.3s var(--ease); display: inline-block; }
.cv-toggle-btn.open .chevron { transform: rotate(180deg); }
.cv-panel { max-height: 0; overflow: hidden; transition: max-height 0.6s var(--ease); }
.cv-panel.open { max-height: 3000px; }
.timeline { margin-top: 32px; padding-left: 28px; border-left: 1px solid var(--border); }
.tl-entry { padding: 0 0 24px 28px; position: relative; }
.tl-entry::before { content: ''; position: absolute; left: -5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--bg-raised); border: 1.5px solid var(--accent); }
.tl-year { font-weight: 700; font-size: 0.78rem; color: var(--accent); }
.tl-desc { font-size: 0.86rem; color: var(--text-muted); margin-top: 2px; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; border-radius: var(--radius); overflow: hidden; max-width: 880px; margin: 0 auto; }
.gallery-cell { aspect-ratio: 1; background: var(--surface); position: relative; overflow: hidden; cursor: pointer; }
.gallery-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-cell:hover img { transform: scale(1.06); }
.gallery-cell .overlay {
    position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(17,24,39,0.75));
    opacity: 0; transition: opacity 0.4s var(--ease); display: flex; align-items: flex-end; padding: 20px;
}
.gallery-cell:hover .overlay { opacity: 1; }
.overlay span { font-size: 0.82rem; font-weight: 600; color: #ffffff; }

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
}
.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s var(--ease) 0.1s, transform 0.3s var(--ease) 0.1s;
}
.lightbox.active .lightbox-content img {
    opacity: 1;
    transform: scale(1);
}
.lightbox-caption {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 16px;
    text-align: center;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2.2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.3s, background 0.3s;
    line-height: 1;
}
.lightbox-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 3rem;
    cursor: pointer;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.3s, background 0.3s;
    line-height: 1;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        width: 44px; height: 44px;
        font-size: 2.2rem;
        background: rgba(0, 0, 0, 0.35);
        color: rgba(255, 255, 255, 0.85);
    }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* ===== GALLERY TOGGLE ===== */
.gallery-rest-wrap {
    max-width: 880px;
    margin: 4px auto 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s var(--ease), opacity 0.4s var(--ease);
    opacity: 0;
}
.gallery-rest-wrap.open {
    max-height: 3000px;
    opacity: 1;
}
/* Saubere durchgehende Trennlinie zwischen Reihe 3 und 4 bei geöffneter Galerie */
.gallery-grid:has(+ .gallery-rest-wrap.open) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.gallery-rest-wrap.open .gallery-grid-rest { border-top-left-radius: 0; border-top-right-radius: 0; }
.gallery-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}
.gallery-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 12px 22px;
    cursor: pointer;
}
.gallery-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font-size: 1.1rem;
    line-height: 1;
    font-weight: 400;
    transition: transform 0.4s var(--ease);
}
.gallery-toggle[aria-expanded="true"] .gallery-toggle-icon {
    transform: rotate(45deg);
}

/* ===== CONTACT ===== */
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.c-block { margin-bottom: 36px; }
.c-block h4 { font-family: var(--font-sans); font-weight: 700; font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; }
.c-block p, .c-block a { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; }
.c-block a { transition: color 0.3s var(--ease); }
.c-block a:hover { color: var(--accent); }
.socials { display: flex; gap: 10px; margin-top: 36px; }
.social-btn {
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; transition: all 0.3s var(--ease);
}
.social-btn:hover { border-color: var(--accent); background: var(--accent-dim); }
.social-btn svg { width: 16px; height: 16px; fill: var(--text-secondary); transition: fill 0.3s var(--ease); }
.co2-badge { display: inline-block; padding: 4px 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-raised); }
.co2-badge img { display: block; height: 60px; width: auto; }
.profor-badge { display: inline-block; padding: 4px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-raised); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
a.profor-badge:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(184,151,62,0.20); transform: translateY(-2px); }
.profor-badge img { display: block; height: 50px; width: auto; }
.partner-badge { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-raised); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.partner-badge:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(184,151,62,0.20); transform: translateY(-2px); }
.partner-badge img { display: block; height: 32px; width: auto; }
.footer-badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.about-badges { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 32px; }
.about-badges .profor-badge img { height: 50px; }

/* ===== HIGHLIGHT SECTION ===== */
#highlight .highlight-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: center;
    margin-top: 40px;
}
.highlight-media {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}
.highlight-media img {
    display: block;
    width: 100%;
    height: auto;
}
.highlight-quote {
    margin: 0;
    padding-left: 24px;
    border-left: 3px solid var(--accent);
}
.highlight-quote p {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.55;
    color: var(--text-primary);
    margin: 0 0 18px 0;
    font-style: italic;
}
.highlight-quote cite {
    font-family: var(--font-sans);
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}
@media (max-width: 900px) {
    #highlight .highlight-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
.fert-co2-badge { display: inline-block; margin-top: 18px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-raised); }
.fert-co2-badge img { display: block; height: 56px; width: auto; }
.mag-co2-badge { display: inline-block; margin-top: 20px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-raised); }
.mag-co2-badge img { display: block; height: 40px; width: auto; }
.social-btn:hover svg { fill: var(--accent); }

/* Social Side-Rail */
.social-rail {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease);
}
.social-rail.is-visible { opacity: 1; pointer-events: auto; }
.social-rail-line {
    width: 1px;
    height: 48px;
    background: var(--border);
}
.social-rail-btn {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s var(--ease);
}
.social-rail-btn:hover { border-color: var(--accent); background: var(--accent-dim); transform: translateX(2px); }
.social-rail-btn svg { width: 14px; height: 14px; fill: var(--text-secondary); transition: fill 0.3s var(--ease); }
.social-rail-btn:hover svg { fill: var(--accent); }

@media (max-width: 900px) {
    .social-rail { display: none; }
}
.contact-form { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; box-shadow: 0 4px 24px rgba(0,0,0,0.04); }
.form-field { margin-bottom: 24px; }
.form-field label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.form-field input, .form-field textarea { width: 100%; padding: 16px 20px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-sans); font-size: 0.92rem; color: var(--text-primary); transition: all 0.3s var(--ease); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-muted); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); background: var(--bg-raised); box-shadow: 0 0 0 3px var(--accent-dim); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
.form-note a { color: var(--accent); text-decoration: underline; }
.btn-submit { width: 100%; padding: 16px; background: var(--accent); color: #ffffff; border: none; border-radius: 100px; font-family: var(--font-sans); font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all 0.35s var(--ease); }
.btn-submit:hover { background: #c9a84e; box-shadow: 0 0 40px rgba(184,151,62,0.2); }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); padding: 64px 0 32px; background: #f0f2f5; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 28px; }
.footer-brand p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.7; margin-top: 16px; max-width: 300px; }
.footer-brand .f-logo { font-family: var(--font-serif); font-size: 1.15rem; color: var(--text-primary); }
.footer h5 { font-family: var(--font-sans); font-weight: 700; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 20px; }
.footer-links a { display: block; font-size: 0.85rem; color: var(--text-muted); padding: 5px 0; transition: color 0.3s var(--ease); }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--text-muted); }
.footer-legal a { color: var(--text-muted); margin-left: 24px; transition: color 0.3s var(--ease); }
.footer-legal a:hover { color: var(--text-primary); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(-30px, 20px); } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.vis { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 1024px) {
    .about-row { grid-template-columns: 300px 1fr; gap: 48px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 768px) {
    section { padding: 80px 0; }
    .wrap { padding: 0 20px; }
    .nav-links {
        display: none; position: fixed; inset: 72px 0 0 0;
        background: rgba(248,249,251,0.97); backdrop-filter: blur(24px);
        flex-direction: column; padding: 32px; gap: 0;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 18px 0; font-size: 1.05rem; border-bottom: 1px solid var(--border); width: 100%; color: var(--text-secondary); }
    .nav-cta-link { border: none !important; padding: 18px 0 !important; }
    .nav-hamburger { display: block; }

    .hero-a { min-height: auto; padding: 120px 0 64px; }
    .hero-a-overlay {
        background: linear-gradient(180deg, rgba(248,249,251,0.95) 0%, rgba(248,249,251,0.8) 35%, rgba(248,249,251,0.45) 65%, rgba(248,249,251,0.9) 100%);
    }
    .hero-a-metrics { gap: 24px; flex-wrap: wrap; }
    .hero-a-metrics .metric .value { font-size: 1.7rem; }

    /* Leistungen (Magazin): Stack auf Mobile */
    .mag-grid { gap: 72px; }
    .mag-row { grid-template-columns: 1fr; gap: 28px; }
    .mag-row.reverse .mag-media { order: 0; }
    .mag-text h3 { font-size: 1.4rem; }

    /* Fertigung: Stack auf Mobile */
    /* "Wie wir arbeiten": 3 Schritte als Prozess-Stepper (Kreise mit Nummer) */
    .fert-tabs {
        position: relative;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0;
        padding: 0 6px;
        margin-bottom: 44px;
        border-bottom: none;
    }
    .fert-tabs::before {
        content: '';
        position: absolute;
        top: 23px;
        left: 17%;
        right: 17%;
        height: 2px;
        background: var(--border);
        z-index: 0;
    }
    .fert-tab {
        position: relative;
        z-index: 1;
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 0;
        margin-bottom: 0;
        border-bottom: none;
        text-transform: none;
        letter-spacing: 0.01em;
        font-size: 0.72rem;
        line-height: 1.25;
        text-align: center;
    }
    .fert-tab::before {
        content: attr(data-step);
        width: 46px;
        height: 46px;
        border-radius: 50%;
        border: 2px solid var(--border);
        background: var(--bg);
        color: var(--text-muted);
        display: grid;
        place-items: center;
        font-family: var(--font-serif);
        font-size: 1.15rem;
        font-weight: 600;
        transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
    }
    .fert-tab.active { color: var(--accent); }
    .fert-tab.active::before { background: var(--accent); border-color: var(--accent); color: #ffffff; }
    .fert-stage { min-height: 0; }
    .fert-panel { grid-template-columns: 1fr; gap: 28px; position: relative; inset: auto; opacity: 1; transform: none; transition: none; }
    .fert-panel:not(.active) { display: none; }
    .fert-video.is-vertical { margin-left: auto; margin-right: auto; }
    .fert-body h3 { font-size: 1.5rem; }

    .workflow-row, .split-row, .contact-row { grid-template-columns: 1fr; gap: 48px; }
    .split-row.reverse .split-text { order: 0; }
    .split-row.reverse .split-card { order: 1; }
    .about-row { grid-template-columns: 1fr; gap: 40px; }
    .portrait-frame { max-width: 300px; }
    .about-numbers { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-legal a { margin: 0 12px; }
}

/* ===== RESPONSIVE: SMALL MOBILE ===== */
@media (max-width: 480px) {
    .hero-a .hero-actions { flex-direction: column; }
    .hero-a .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-a-metrics { flex-direction: column; gap: 20px; }
    .contact-form { padding: 28px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== FAQ ===== */
.faq-list { max-width: 820px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary { cursor: pointer; list-style: none; padding: 24px 44px 24px 0; font-family: var(--font-sans); font-weight: 600; font-size: 1.05rem; color: var(--text-primary); position: relative; transition: color 0.3s var(--ease); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--accent); transition: transform 0.35s var(--ease); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-answer { padding: 6px 0 30px; }
.faq-answer p { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; margin: 0; max-width: 700px; padding-left: 16px; border-left: 2px solid var(--accent); }

/* ===== Aufgeräumte Inline-Styles ===== */
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.w-steps { margin-top: 40px; }
.about-lead { margin-top: 28px; }

/* ===== REDUCED MOTION (Barrierefreiheit) ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .marquee-track { animation: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* Inter-Feinjustierung — Strichstärke & Laufweite für Display-Elemente (Sans braucht kräftiger + enger als die alte Serife) */
.nav-logo-text { font-weight: 700; letter-spacing: -0.02em; }
.mag-text h3, .fert-body h3 { font-weight: 700; letter-spacing: -0.022em; }
.hero-a-metrics .metric .value { font-weight: 500; letter-spacing: -0.02em; }
.mag-num, .fert-num, .split-card-inner .big-text { font-weight: 600; letter-spacing: -0.02em; }
.about-num .val { font-weight: 500; letter-spacing: -0.02em; }
.footer-brand .f-logo { font-weight: 700; letter-spacing: -0.02em; }
.highlight-quote p { font-weight: 500; letter-spacing: -0.01em; }
