/* ════════════════════════════════════════════════════════════════
   Pantel + Brömser GmbH — EPS Maschinen + Zubehör
   Designsystem „Stahl & Signal"
   Basis: dunkles Stahlblau-Anthrazit · Akzent: Signal-Orange
   Headlines: Manrope · Text/UI: Inter (beide self-hosted)
   ════════════════════════════════════════════════════════════════ */

/* ── 1. Design-Tokens ─────────────────────────────────────────── */
:root {
    /* Stahlblau-Anthrazit-Familie (dunkle Flächen) */
    --steel-950: #0c1219;
    --steel-900: #111a24;
    --steel-800: #1b2836;
    --steel-700: #2e4156;
    --steel-600: #3e5c76;

    /* Text auf hellen Flächen */
    --ink: #151d26;
    --ink-soft: #33404d;
    --muted: #5a6673;
    --muted-2: #8a95a1;

    /* Text auf dunklen Flächen */
    --white-soft: rgba(255, 255, 255, .78);
    --white-dim: rgba(255, 255, 255, .52);

    /* Flächen + Linien */
    --bg: #ffffff;
    --bg-soft: #f4f6f8;
    --bg-elevated: #ffffff;
    --line: #e4e8ec;
    --line-strong: #d3dae0;
    --line-dark: rgba(255, 255, 255, .12);

    /* Akzent: Signal-Orange (Marke) */
    --accent: #e35205;
    --accent-strong: #b8430a;      /* Hover + kleiner Text auf Weiß (AA) */
    --accent-bright: #f98950;      /* Akzent auf dunklen Flächen */
    --accent-soft: rgba(227, 82, 5, .08);

    /* Schatten */
    --shadow-sm: 0 1px 2px rgba(12, 18, 25, .05), 0 6px 20px rgba(12, 18, 25, .05);
    --shadow-md: 0 2px 6px rgba(12, 18, 25, .06), 0 20px 48px rgba(12, 18, 25, .1);
    --shadow-lg: 0 4px 10px rgba(12, 18, 25, .08), 0 32px 80px rgba(12, 18, 25, .16);
    --shadow-accent: 0 10px 28px rgba(227, 82, 5, .28);

    /* Geometrie + Rhythmus */
    --radius: 10px;
    --radius-sm: 7px;
    --container: 1200px;
    --pad: clamp(20px, 4vw, 44px);
    --section: clamp(84px, 10vw, 144px);

    /* Typografie */
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

    /* Bewegung */
    --ease-out: cubic-bezier(.22, .61, .36, 1);
    --fast: .18s ease;

    /* Aliase für die Legal-Seiten (dort inline referenziert) */
    --t-primary: var(--ink);
    --t-secondary: var(--muted);
    --border: var(--line);
}

/* ── 2. Basis ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px; /* Anker landen nicht unter dem Sticky-Header */
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    line-height: 1.12;
    font-weight: 800;
}

::selection {
    color: #fff;
    background: var(--accent);
}

:focus-visible {
    outline: 2px solid var(--steel-600);
    outline-offset: 2px;
    border-radius: 2px;
}

.container {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 0 var(--pad);
}

.skip-link {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 999;
    transform: translateY(-160%);
    background: var(--steel-900);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 650;
    transition: transform .2s var(--ease-out);
}

.skip-link:focus {
    transform: translateY(0);
}

/* ── 3. Eyebrow / Labels ──────────────────────────────────────── */
.eyebrow,
.mega__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.eyebrow::before,
.mega__eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--accent);
}

.section--dark .eyebrow,
.split-cta .eyebrow {
    color: var(--accent-bright);
}

.section--dark .eyebrow::before,
.split-cta .eyebrow::before {
    background: var(--accent-bright);
}

.subtle-label,
.product-card__meta,
.detail-card__meta {
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* ── 4. Buttons ───────────────────────────────────────────────── */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 14.5px;
    font-weight: 680;
    letter-spacing: .01em;
    line-height: 1;
    transition:
        transform .22s var(--ease-out),
        background .22s ease,
        border-color .22s ease,
        color .22s ease,
        box-shadow .22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: var(--steel-900);
    color: #fff;
}

.btn--primary:hover {
    background: var(--accent);
    box-shadow: var(--shadow-accent);
}

.btn--orange {
    background: var(--accent);
    color: #fff;
}

.btn--orange:hover {
    background: var(--accent-strong);
    box-shadow: var(--shadow-accent);
}

.btn--ghost {
    background: rgba(255, 255, 255, .04);
    color: #fff;
    border-color: rgba(255, 255, 255, .3);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .55);
}

.btn--light {
    background: #fff;
    color: var(--ink);
    border-color: var(--line-strong);
}

.btn--light:hover {
    border-color: var(--steel-700);
    box-shadow: var(--shadow-sm);
}

/* ── 5. Header + Navigation ───────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .82);
    border-bottom: 1px solid rgba(21, 29, 38, .07);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    transition: box-shadow .25s ease, background .25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 30px rgba(12, 18, 25, .07);
}

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    transition: opacity var(--fast);
}

.brand:hover {
    opacity: .84;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.brand .logo-img,
.logo .logo-img {
    height: 42px;
    width: 42px;
    border-radius: 9px;
    display: block;
}

.nav__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
}

.nav__link,
.nav__trigger {
    position: relative;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-weight: 620;
    transition: color .2s ease;
}

/* Underline-Sweep unter den Nav-Punkten */
.nav__link::after,
.nav__trigger::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 5px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .28s var(--ease-out);
}

.nav__link:hover,
.nav__trigger:hover,
.nav__link.is-active,
.nav__trigger.is-active {
    color: var(--ink);
}

.nav__link:hover::after,
.nav__trigger:hover::after,
.nav__link.is-active::after,
.nav__trigger.is-active::after,
.nav__item:focus-within .nav__trigger::after {
    transform: scaleX(1);
}

.nav__item {
    position: relative;
}

/* Mega-Menü */
.mega {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    width: min(740px, calc(100vw - 48px));
    transform: translate(-50%, 10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: #fff;
    border: 1px solid rgba(21, 29, 38, .08);
    border-radius: calc(var(--radius) + 2px);
    box-shadow: var(--shadow-lg);
    padding: 14px;
    transition:
        opacity .24s var(--ease-out),
        transform .24s var(--ease-out),
        visibility .24s;
}

.nav__item:hover .mega,
.nav__item:focus-within .mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

/* Unsichtbare Hover-Brücke zwischen Trigger und Menü */
.mega::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 18px;
}

.mega__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 14px;
}

/* Dunkles Stahl-Panel als Anker im Menü */
.mega__panel {
    padding: 22px;
    border-radius: var(--radius);
    color: #fff;
    background:
        radial-gradient(400px 220px at 100% 0%, rgba(62, 92, 118, .4), transparent 65%),
        linear-gradient(155deg, var(--steel-800), var(--steel-950));
}

.mega h3 {
    margin: 14px 0 8px;
    font-size: 21px;
    line-height: 1.18;
    color: #fff;
}

.mega p {
    margin: 0;
    color: var(--white-soft);
    font-size: 14px;
    line-height: 1.55;
}

.mega__list {
    display: grid;
    gap: 2px;
    align-content: center;
}

.mega__list a {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 620;
    transition: color .18s ease, background .18s ease, transform .18s var(--ease-out);
}

.mega__list a:hover {
    color: var(--accent-strong);
    background: var(--accent-soft);
    transform: translateX(3px);
}

.nav__cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

/* ── 6. Sprachwahl ────────────────────────────────────────────── */
.lang-picker {
    position: relative;
}

.lang-picker__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px 7px 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: border-color var(--fast), color var(--fast), background var(--fast);
    white-space: nowrap;
}

.lang-picker__btn:hover,
.lang-picker.is-open .lang-picker__btn {
    border-color: var(--steel-600);
    color: var(--ink);
    background: var(--bg-soft);
}

.lang-picker__flag {
    font-size: 16px;
    line-height: 1;
}

.lang-picker__caret {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform .2s var(--ease-out);
    flex-shrink: 0;
}

.lang-picker.is-open .lang-picker__caret {
    transform: rotate(180deg);
}

.lang-picker__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    min-width: 160px;
    z-index: 200;
    overflow: hidden;
    animation: dropIn .18s var(--ease-out) both;
}

.lang-picker__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    transition: background .15s ease;
}

.lang-picker__item span:first-child {
    font-size: 17px;
    line-height: 1;
}

.lang-picker__item:hover {
    background: var(--bg-soft);
}

.lang-picker__item.is-active {
    color: var(--accent-strong);
}

.lang-picker.is-busy {
    opacity: .72;
    pointer-events: none;
}

.lang-picker--mobile {
    width: 100%;
    padding-top: 16px;
}

.lang-picker--mobile .lang-picker__btn {
    width: 100%;
    justify-content: space-between;
    min-height: 46px;
}

.lang-picker--mobile .lang-picker__panel {
    right: auto;
    left: 0;
    width: 100%;
}

/* ── 7. Mobile-Menü ───────────────────────────────────────────── */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    align-items: center;
    justify-content: center;
    transition: border-color var(--fast), background var(--fast);
}

.menu-toggle:hover {
    border-color: var(--steel-600);
}

.menu-toggle span {
    position: relative;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: background .2s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s var(--ease-out), top .25s var(--ease-out);
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.menu-toggle[aria-expanded="true"] span {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
    top: 0;
    transform: rotate(-45deg);
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 10px var(--pad) 26px;
    background: rgba(255, 255, 255, .99);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
}

.mobile-panel.is-open {
    display: block;
    animation: panelIn .28s var(--ease-out) both;
}

.mobile-panel a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-weight: 620;
    font-size: 16px;
    transition: color var(--fast), padding-left var(--fast);
}

.mobile-panel a:hover {
    color: var(--accent-strong);
    padding-left: 4px;
}

.mobile-panel details {
    border-bottom: 1px solid var(--line);
}

.mobile-panel summary {
    position: relative;
    list-style: none;
    padding: 14px 24px 14px 0;
    font-weight: 720;
    font-size: 16px;
    cursor: pointer;
}

.mobile-panel summary::-webkit-details-marker {
    display: none;
}

/* Chevron am Maschinen-Aufklapper */
.mobile-panel summary::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .25s var(--ease-out);
}

.mobile-panel details[open] summary::after {
    transform: translateY(-30%) rotate(225deg);
}

.mobile-panel details a {
    padding-left: 16px;
    color: var(--muted);
    font-size: 15px;
    border-bottom: 0;
    padding-top: 10px;
    padding-bottom: 10px;
}

.mobile-panel details a:hover {
    padding-left: 20px;
}

/* ── 8. Hero (Startseite) ─────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(1100px 620px at 88% -12%, rgba(62, 92, 118, .42), transparent 62%),
        radial-gradient(800px 500px at -10% 108%, rgba(227, 82, 5, .1), transparent 55%),
        linear-gradient(158deg, var(--steel-900) 0%, var(--steel-950) 56%, #101f2c 100%);
}

/* Feines Blueprint-Raster */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 78%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 78%);
    pointer-events: none;
}

/* Langsam driftender Licht-Glow */
.hero::after {
    content: "";
    position: absolute;
    top: -30%;
    right: -12%;
    width: 55%;
    height: 90%;
    background: radial-gradient(closest-side, rgba(94, 134, 168, .22), transparent 70%);
    animation: heroGlow 22s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: clamp(40px, 6vw, 84px);
    align-items: center;
    padding-top: clamp(64px, 8vw, 112px);
    padding-bottom: clamp(64px, 8vw, 112px);
}

.hero h1 {
    margin: 22px 0 6px;
    font-size: clamp(40px, 4.6vw, 66px);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.hero__claim {
    margin: 0;
    color: var(--accent-bright);
    font-family: var(--font-display);
    font-size: clamp(21px, 2.4vw, 30px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    font-weight: 700;
}

.hero__text {
    max-width: 560px;
    margin: 24px 0 0;
    color: var(--white-soft);
    font-size: clamp(16px, 1.4vw, 18.5px);
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 36px;
}

.hero__media {
    position: relative;
    z-index: 1;
}

/* Gestaffelte Entrance-Animation — der Observer-Reveal wird im Hero
   deaktiviert, damit sich beide Systeme nicht überlagern. */
.hero .reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

.hero .eyebrow { animation: riseIn .7s var(--ease-out) .05s both; }
.hero h1 { animation: riseIn .7s var(--ease-out) .14s both; }
.hero__claim { animation: riseIn .7s var(--ease-out) .24s both; }
.hero__text { animation: riseIn .7s var(--ease-out) .34s both; }
.hero__actions { animation: riseIn .7s var(--ease-out) .44s both; }
.hero__media { animation: riseIn .9s var(--ease-out) .3s both; }

/* ── 9. Hero-Slider ───────────────────────────────────────────── */
.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--radius) + 4px);
    aspect-ratio: 4 / 3;
    min-height: 280px;
    background: var(--steel-950);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 40px 100px rgba(4, 8, 12, .5);
}

.hero-slider__track {
    display: flex;
    height: 100%;
    will-change: transform;
    transition: transform .6s var(--ease-out);
}

.hero-slider__slide {
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
}

.hero-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(12, 18, 25, .55);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background .2s ease, border-color .2s ease, transform .2s var(--ease-out);
    flex-shrink: 0;
    padding: 0;
}

.hero-slider__btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.06);
}

.hero-slider__btn--prev { left: 14px; }
.hero-slider__btn--next { right: 14px; }

.hero-slider__btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

/* Balken-Indikatoren statt Punkte — technischer Look */
.hero-slider__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.hero-slider__dot {
    width: 18px;
    height: 3px;
    border-radius: 2px;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, .35);
    transition: background .25s ease, width .25s var(--ease-out);
}

.hero-slider__dot:hover {
    background: rgba(255, 255, 255, .7);
}

.hero-slider__dot.is-active {
    width: 30px;
    background: var(--accent-bright);
}

/* ── 10. Media-Platzhalter / Bilder ───────────────────────────── */
.media-placeholder {
    position: relative;
    isolation: isolate;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(62, 92, 118, .08), transparent 40%),
        linear-gradient(145deg, #f7f8fa, #e3e8ed);
}

.media-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(21, 29, 38, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 29, 38, .045) 1px, transparent 1px);
    background-size: 48px 48px;
}

.media-placeholder--square { aspect-ratio: 1 / 1; }
.media-placeholder--wide { aspect-ratio: 16 / 9; }

.media-placeholder.has-image {
    background: #f2f4f6;
    border-color: var(--line);
}

.media-placeholder.has-image::before {
    display: none;
}

.media-placeholder.has-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: var(--radius);
    transition: transform .6s var(--ease-out);
}

.media-placeholder.has-image:hover img {
    transform: scale(1.045);
}

.media-placeholder--square.has-image {
    background: #ffffff;
}

.media-placeholder--square.has-image img {
    object-fit: contain;
    inset: 6%;
    width: 88%;
    height: 88%;
}

.site-footer .logo-img {
    height: 38px;
    width: 38px;
    border-radius: 8px;
    display: block;
    margin-bottom: 14px;
}

/* ── 11. Sektionen + Überschriften ────────────────────────────── */
.section {
    padding: var(--section) 0;
}

.section--soft {
    background: var(--bg-soft);
}

.section--dark {
    color: #fff;
    background:
        radial-gradient(900px 480px at 92% 0%, rgba(62, 92, 118, .38), transparent 60%),
        linear-gradient(155deg, var(--steel-900), var(--steel-950));
}

.section--compact {
    padding: clamp(56px, 7vw, 88px) 0;
}

.section-head {
    max-width: 780px;
    margin-bottom: clamp(44px, 6vw, 72px);
}

.section-head--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-head--center .eyebrow {
    justify-content: center;
}

.section-head--center .eyebrow::before {
    display: none;
}

.section-title {
    margin: 16px 0 0;
    font-size: clamp(30px, 3.6vw, 48px);
    line-height: 1.06;
}

.section-title em,
.accent-text {
    font-style: normal;
    color: var(--accent-strong);
}

.section-copy {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(16px, 1.4vw, 18.5px);
    line-height: 1.7;
}

.section--dark .section-copy {
    color: var(--white-soft);
}

/* ── 12. Intro / Unternehmen ──────────────────────────────────── */
.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
    gap: clamp(40px, 7vw, 96px);
    align-items: center;
}

.lead {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(23px, 2.6vw, 32px);
    line-height: 1.25;
    letter-spacing: -0.015em;
    font-weight: 750;
}

.body-copy {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 17px;
}

/* ── 13. Kennzahlen ───────────────────────────────────────────── */
.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.metric {
    position: relative;
    min-height: 132px;
    padding: 30px 26px;
    border-right: 1px solid var(--line);
    transition: background .3s ease;
}

.metric:last-child {
    border-right: 0;
}

.metric:hover {
    background: var(--bg-soft);
}

/* Akzentstrich wächst beim Hover */
.metric::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 44px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .35s var(--ease-out);
}

.metric:hover::before {
    transform: scaleX(1);
}

.metric strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(30px, 2.8vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.metric span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* ── 14. Produkt-Karten (Startseite) ──────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition:
        transform .3s var(--ease-out),
        box-shadow .3s ease,
        border-color .3s ease;
}

/* Akzentlinie oben, wächst beim Hover */
.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 2;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .4s var(--ease-out);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card .media-placeholder {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}

.product-card .media-placeholder.has-image img {
    border-radius: 0;
}

.product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px;
}

.product-card h3 {
    margin: 12px 0 10px;
    font-size: 23px;
    line-height: 1.14;
}

.product-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 24px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 750;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 1.5px;
    transition: color .25s ease, background-size .3s var(--ease-out);
}

.text-link:hover {
    color: var(--accent-strong);
    background-size: 100% 1.5px;
}

/* ── 15. Maschinen-Übersicht (Architektur + TOC) ──────────────── */
.architecture {
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(0, 1.4fr);
    gap: clamp(28px, 6vw, 76px);
    align-items: start;
}

.architecture__aside {
    position: sticky;
    top: 108px;
}

.toc {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.toc h2 {
    margin: 0;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.toc a {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 650;
    transition: background .2s ease, color .2s ease, padding-left .2s var(--ease-out);
}

.toc a span {
    color: var(--muted-2);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.toc a:last-child {
    border-bottom: 0;
}

.toc a:hover {
    color: var(--accent-strong);
    background: var(--accent-soft);
    padding-left: 24px;
}

.category-section {
    padding: clamp(36px, 5vw, 56px) 0;
    border-bottom: 1px solid var(--line);
}

.category-section:first-child { padding-top: 0; }
.category-section:last-child { border-bottom: 0; }

.category-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
    margin-bottom: 26px;
}

.category-head h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.06;
}

.category-head p {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--muted);
}

/* ── 16. Detail-Karten ────────────────────────────────────────── */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.detail-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease;
}

.detail-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
}

.detail-card h3 {
    margin: 10px 0 10px;
    font-size: 21px;
    line-height: 1.18;
}

.detail-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.detail-card ul,
.legal-content ul {
    margin: 14px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.detail-card li {
    margin: 7px 0;
}

.detail-card__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: calc(var(--radius) - 4px);
    margin-bottom: 16px;
    cursor: zoom-in;
    transition: transform .4s var(--ease-out);
}

.detail-card:hover .detail-card__img {
    transform: scale(1.025);
}

/* ── 17. Seiten-Hero (Unterseiten) ────────────────────────────── */
.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(900px 480px at 90% -20%, rgba(62, 92, 118, .4), transparent 62%),
        linear-gradient(158deg, var(--steel-900), var(--steel-950));
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 92%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 92%);
    pointer-events: none;
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    padding: clamp(64px, 8vw, 108px) 0 clamp(56px, 7vw, 88px);
    max-width: 900px;
}

.page-hero .eyebrow { color: var(--accent-bright); }
.page-hero .eyebrow::before { background: var(--accent-bright); }

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--white-dim);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .02em;
}

.breadcrumbs a {
    transition: color var(--fast);
}

.breadcrumbs a:hover {
    color: #fff;
}

.page-hero h1 {
    margin: 20px 0 0;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.0;
    letter-spacing: -0.03em;
    animation: riseIn .7s var(--ease-out) .1s both;
}

.page-hero p {
    max-width: 760px;
    margin: 22px 0 0;
    color: var(--white-soft);
    font-size: clamp(16.5px, 1.5vw, 19px);
    animation: riseIn .7s var(--ease-out) .22s both;
}

.page-hero .breadcrumbs {
    animation: riseIn .7s var(--ease-out) 0s both;
}

/* ── 18. Detail-Layout + Panels ───────────────────────────────── */
.detail-layout {
    display: grid;
    grid-template-columns: minmax(300px, .88fr) minmax(0, 1.12fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
}

.detail-layout__media {
    position: sticky;
    top: 108px;
}

.detail-stack {
    display: grid;
    gap: 20px;
}

.panel {
    padding: clamp(26px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.panel h2,
.panel h3 {
    margin: 0;
    font-size: clamp(24px, 2.8vw, 32px);
    line-height: 1.12;
}

.panel p {
    color: var(--muted);
}

/* ── 19. Split-CTA ────────────────────────────────────────────── */
.split-cta {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: clamp(30px, 5vw, 52px);
    border-radius: calc(var(--radius) + 4px);
    color: #fff;
    background:
        radial-gradient(700px 380px at 95% 0%, rgba(62, 92, 118, .45), transparent 62%),
        linear-gradient(150deg, var(--steel-800), var(--steel-950));
}

/* Feiner Akzentstrich an der linken Kante */
.split-cta::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), rgba(227, 82, 5, 0));
}

.split-cta h2 {
    margin: 14px 0 0;
    font-size: clamp(26px, 3.2vw, 38px);
    line-height: 1.08;
}

.split-cta p {
    max-width: 680px;
    margin: 14px 0 0;
    color: var(--white-soft);
}

/* Dunkle Sektion, die selbst einen split-cta-Container hat:
   dort keine doppelte Karte zeichnen */
.section--dark .split-cta {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.section--dark .split-cta::before {
    display: none;
}

/* ── 20. Kontakt ──────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
    gap: clamp(36px, 7vw, 88px);
    align-items: start;
}

.contact-list {
    margin-top: 36px;
    border-top: 1px solid var(--line-strong);
}

.contact-item {
    padding: 22px 0;
    border-bottom: 1px solid var(--line-strong);
}

.contact-item strong {
    display: block;
    margin-bottom: 7px;
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.contact-item p {
    margin: 0;
    color: var(--ink-soft);
}

.contact-item a {
    transition: color var(--fast);
}

.contact-item a:hover {
    color: var(--accent-strong);
}

/* Formular */
.form-panel {
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 2px);
    background: #fff;
    padding: clamp(26px, 4vw, 44px);
    box-shadow: var(--shadow-md);
}

.form-panel h2 {
    margin: 0 0 24px;
    font-size: clamp(24px, 2.6vw, 32px);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.field label {
    color: var(--ink-soft);
    font-size: 13.5px;
    font-weight: 650;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    padding: 13px 15px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: var(--muted-2);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--steel-600);
    box-shadow: 0 0 0 4px rgba(62, 92, 118, .14);
}

.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235a6673' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.field textarea {
    resize: vertical;
    min-height: 140px;
}

.field-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.field-check input {
    margin-top: 3px;
    accent-color: var(--accent);
}

.field-check a {
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--fast);
}

.field-check a:hover {
    color: var(--accent-strong);
}

.form-result {
    display: none;
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(28, 125, 84, .25);
    background: rgba(28, 125, 84, .08);
    color: #15603c;
    font-size: 13.5px;
    font-weight: 650;
}

.form-result.is-visible {
    display: block;
    animation: panelIn .3s var(--ease-out) both;
}

.contact-botcheck {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Standort */
.contact-location {
    margin-top: clamp(60px, 8vw, 100px);
}

.contact-location__head {
    max-width: 820px;
    margin-bottom: 28px;
}

.contact-location__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .72fr);
    gap: 22px;
    align-items: stretch;
}

.contact-map {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(62, 92, 118, .1), transparent 40%),
        #e3e8ed;
    box-shadow: var(--shadow-md);
}

.contact-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-consent {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px var(--pad);
    text-align: center;
}

.map-consent__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 380px;
}

.map-consent__icon {
    width: 44px;
    height: 44px;
    color: var(--accent);
}

.map-consent__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}

.map-consent__text {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
}

.map-consent__btn {
    margin-top: 4px;
}

.map-consent__link {
    font-size: 13px;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--fast);
}

.map-consent__link:hover {
    color: var(--ink);
}

.contact-location__card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(26px, 3vw, 36px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    color: #fff;
    background:
        radial-gradient(500px 300px at 100% 0%, rgba(62, 92, 118, .42), transparent 62%),
        linear-gradient(155deg, var(--steel-800), var(--steel-950));
    box-shadow: var(--shadow-md);
}

.contact-location__card .subtle-label {
    color: var(--accent-bright);
}

.contact-location__card h3 {
    margin: 0;
    font-size: clamp(23px, 2.4vw, 28px);
    line-height: 1.1;
}

.contact-location__card p {
    margin: 0;
    color: var(--white-soft);
}

.contact-location__card a {
    transition: color var(--fast);
}

.contact-location__card a:hover {
    color: #fff;
}

.contact-location__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

/* ── 21. Chat-Widget ──────────────────────────────────────────── */
.chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 400;
}

.chat-widget__toggle {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    background: linear-gradient(155deg, var(--steel-800), var(--steel-950));
    color: #fff;
    box-shadow: 0 18px 44px rgba(12, 18, 25, .35);
    transition: transform .25s var(--ease-out), background .25s ease, box-shadow .25s ease;
}

.chat-widget__toggle:hover,
.chat-widget.is-open .chat-widget__toggle {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(227, 82, 5, .32);
}

.chat-widget__toggle-icon {
    width: 24px;
    height: 18px;
    position: relative;
    border: 2px solid currentColor;
    border-radius: 6px;
}

.chat-widget__toggle-icon::after {
    content: "";
    position: absolute;
    left: 5px;
    bottom: -7px;
    width: 8px;
    height: 8px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-18deg);
    background: inherit;
}

.chat-widget__panel {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: min(390px, calc(100vw - 32px));
    max-height: min(640px, calc(100vh - 112px));
    display: grid;
    grid-template-rows: auto minmax(180px, 1fr) auto auto;
    overflow: hidden;
    border: 1px solid rgba(21, 29, 38, .1);
    border-radius: calc(var(--radius) + 2px);
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform-origin: 92% 100%;
    animation: chatIn .25s var(--ease-out) both;
}

.chat-widget__panel[hidden] {
    display: none;
}

.chat-widget__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 17px 15px;
    color: #fff;
    background:
        radial-gradient(360px 200px at 100% 0%, rgba(62, 92, 118, .45), transparent 65%),
        linear-gradient(155deg, var(--steel-800), var(--steel-950));
}

.chat-widget__head strong,
.chat-widget__head span {
    display: block;
}

.chat-widget__head strong {
    font-size: 15px;
    font-weight: 750;
}

.chat-widget__head span {
    margin-top: 2px;
    color: var(--white-dim);
    font-size: 12px;
}

.chat-widget__close {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    transition: background .2s ease, border-color .2s ease;
}

.chat-widget__close:hover {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .36);
}

.chat-widget__messages {
    min-height: 240px;
    overflow-y: auto;
    padding: 16px;
    background: var(--bg-soft);
}

.chat-message {
    width: fit-content;
    max-width: 86%;
    margin-bottom: 10px;
    padding: 11px 13px;
    border-radius: 10px;
    border-bottom-left-radius: 4px;
    color: var(--ink-soft);
    background: #fff;
    border: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.5;
    animation: messageIn .25s var(--ease-out) both;
}

.chat-message--user {
    margin-left: auto;
    color: #fff;
    background: var(--steel-800);
    border-color: var(--steel-800);
    border-radius: 10px;
    border-bottom-right-radius: 4px;
}

.chat-message--typing {
    color: var(--muted);
}

.chat-widget__quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px 0;
    background: #fff;
}

.chat-widget__quick:empty {
    display: none;
}

.chat-widget__quick button {
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-soft);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 650;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.chat-widget__quick button:hover {
    color: var(--accent-strong);
    border-color: rgba(227, 82, 5, .35);
    background: var(--accent-soft);
}

.chat-widget__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px 14px 14px;
    background: #fff;
}

.chat-widget__form input {
    min-width: 0;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--ink);
    padding: 11px 15px;
    outline: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.chat-widget__form input:focus {
    border-color: var(--steel-600);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(62, 92, 118, .12);
}

.chat-widget__form button {
    border: 0;
    border-radius: 999px;
    background: var(--steel-900);
    color: #fff;
    padding: 0 17px;
    font-size: 13px;
    font-weight: 750;
    transition: background .2s ease;
}

.chat-widget__form button:hover {
    background: var(--accent);
}

/* ── 22. Footer ───────────────────────────────────────────────── */
.site-footer {
    position: relative;
    color: #fff;
    background: linear-gradient(180deg, var(--steel-900), var(--steel-950) 60%);
    padding: 72px 0 0;
}

/* Feine Akzentkante oben */
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(227, 82, 5, 0) 55%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 52px;
}

.footer-text {
    max-width: 340px;
    margin: 16px 0 0;
    color: var(--white-dim);
    font-size: 14px;
    line-height: 1.65;
}

.footer-col h2,
.footer-col h3 {
    margin: 0 0 16px;
    color: var(--white-dim);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-col a,
.footer-col li {
    color: var(--white-soft);
    font-size: 14px;
}

.footer-col a {
    transition: color var(--fast);
}

.footer-col a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--accent-bright);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 22px 0;
    border-top: 1px solid var(--line-dark);
    color: var(--white-dim);
    font-size: 13px;
}

.footer-bottom nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-bottom a {
    transition: color var(--fast);
}

.footer-bottom a:hover {
    color: #fff;
}

/* ── 23. Rechtsseiten (Impressum, Datenschutz, AGB) ───────────── */
.legal-content {
    max-width: 920px;
    margin: 0 auto;
}

.legal-content h2 {
    margin: 44px 0 10px;
    font-size: 24px;
    line-height: 1.2;
}

.legal-content h3 {
    margin: 28px 0 8px;
    font-size: 18px;
}

.legal-content p,
.legal-content li {
    color: var(--muted);
}

/* Kompatibilität: Header/Footer-Varianten der Legal-Seiten */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid rgba(21, 29, 38, .07);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.nav-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
}

.nav-links a {
    color: var(--ink-soft);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-weight: 620;
    transition: color .2s ease, background .2s ease;
}

.nav-links a:hover {
    color: var(--ink);
    background: var(--bg-soft);
}

.footer {
    position: relative;
    color: #fff;
    background: var(--steel-950);
    padding: 44px 0 0;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(227, 82, 5, 0) 55%);
}

.footer-legal {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer a {
    color: var(--white-soft);
    transition: color var(--fast);
}

.footer a:hover {
    color: #fff;
}

.legal-wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(56px, 8vw, 96px) var(--pad) 86px;
}

.legal-wrap h1 {
    font-size: clamp(36px, 5vw, 54px);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 32px;
    transition: color var(--fast);
}

.legal-back:hover {
    color: var(--ink);
}

.legal-sub {
    color: var(--muted);
    font-size: 15px;
}

.legal-emphasis {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .02em;
}

/* ── 24. Produkt-Galerie ──────────────────────────────────────── */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Tabs als Segmented Control */
.gallery__tabs {
    display: flex;
    background: rgba(21, 29, 38, .06);
    border-radius: var(--radius-sm);
    padding: 4px;
    gap: 3px;
}

.gallery__tab {
    flex: 1;
    padding: 9px 14px;
    border: none;
    background: transparent;
    border-radius: calc(var(--radius-sm) - 2px);
    cursor: pointer;
    font-size: 13px;
    font-weight: 620;
    font-family: inherit;
    color: var(--ink-soft);
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
    line-height: 1.3;
}

.gallery__tab:hover {
    color: var(--ink);
}

.gallery__tab.is-active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 1px 6px rgba(12, 18, 25, .12);
}

.gallery__main {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #f9fafb;
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
}

.gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity .22s ease, transform .3s ease;
    padding: 6%;
    box-sizing: border-box;
}

.gallery__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--steel-950);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s ease, color .18s ease, transform .18s var(--ease-out);
    box-shadow: 0 1px 8px rgba(12, 18, 25, .16);
    padding: 0;
}

.gallery__btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.gallery__btn--prev { left: 10px; }
.gallery__btn--next { right: 10px; }

.gallery__btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

.gallery__counter {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(12, 18, 25, .6);
    color: #fff;
    font-size: 11px;
    font-weight: 620;
    padding: 3px 9px;
    border-radius: 100px;
    z-index: 2;
    pointer-events: none;
    font-variant-numeric: tabular-nums;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.gallery__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
}

.gallery__thumbs::-webkit-scrollbar { height: 3px; }
.gallery__thumbs::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: 2px;
}

.gallery__thumb {
    flex: 0 0 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: #f2f4f6;
    transition: border-color .2s ease, opacity .2s ease;
    scroll-snap-align: start;
}

.gallery__thumb:hover { opacity: .82; }

.gallery__thumb.is-active {
    border-color: var(--accent);
    opacity: 1;
}

.gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Mini-Galerie in Detail-Karten */
.detail-card .gallery__main {
    margin-bottom: 14px;
    border-radius: calc(var(--radius) - 4px);
    aspect-ratio: 4 / 3;
}

.detail-card .gallery__main img {
    object-fit: cover;
    padding: 0;
}

.detail-card .gallery__thumbs {
    display: none;
}

/* ── 25. Zubehör-Karten ───────────────────────────────────────── */
.zubehoer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.zubehoer-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform .3s var(--ease-out), box-shadow .3s ease;
}

.zubehoer-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 2;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .4s var(--ease-out);
}

.zubehoer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.zubehoer-card:hover::before {
    transform: scaleX(1);
}

.zubehoer-card__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f2f4f6;
    flex-shrink: 0;
    border-bottom: 1px solid var(--line);
}

.zubehoer-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s var(--ease-out);
}

.zubehoer-card:hover .zubehoer-card__media img {
    transform: scale(1.045);
}

.zubehoer-card__body {
    padding: clamp(22px, 3vw, 34px);
    flex: 1;
}

.zubehoer-card__body .subtle-label {
    display: block;
    margin-bottom: 8px;
}

.zubehoer-card__body h2 {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.2vw, 27px);
    line-height: 1.15;
}

.zubehoer-card__body p {
    color: var(--muted);
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
}

.zubehoer-card__body ul {
    color: var(--muted);
    font-size: 14px;
    padding-left: 18px;
    margin: 10px 0 0;
    line-height: 1.65;
}

/* ── 26. Produkt-Zeilen (Detailseiten) ────────────────────────── */
.product-section {
    display: flex;
    flex-direction: column;
}

.product-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(24px, 3vw, 44px);
    align-items: start;
    padding: clamp(40px, 5vw, 64px) 0;
    border-bottom: 1px solid var(--line);
}

.product-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.product-row .panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(24px, 3vw, 38px);
    box-shadow: var(--shadow-sm);
    height: 100%;
    min-width: 0;
}

.product-row__gallery {
    min-width: 0;
}

.product-row .panel h2 {
    font-size: clamp(22px, 2.4vw, 30px);
    margin-top: 10px;
    margin-bottom: 14px;
    line-height: 1.2;
}

.product-row .panel p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-soft);
}

.product-row .panel ul {
    margin-top: 14px;
    padding-left: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.product-row .panel li {
    margin: 6px 0;
}

/* ── 27. Maschinen-Karten (Übersicht) ─────────────────────────── */
.machine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.machine-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ink);
    transition: box-shadow .3s ease, transform .3s var(--ease-out), border-color .3s ease;
}

.machine-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 2;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .4s var(--ease-out);
}

.machine-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
    transform: translateY(-4px);
}

.machine-card:hover::before {
    transform: scaleX(1);
}

.machine-card__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--line);
    transition: transform .5s var(--ease-out);
}

.machine-card:hover .machine-card__img {
    transform: scale(1.04);
}

.machine-card__body {
    padding: 15px 17px 17px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.machine-card__meta {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 6px;
}

.machine-card__body h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 750;
}

.machine-card__body p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
    line-height: 1.55;
    flex: 1;
}

/* ── 28. Lightbox ─────────────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 10, 14, .9);
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: all;
}

.lightbox__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(92vw, 1100px);
    max-height: calc(100vh - 80px);
}

.lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 80px);
    object-fit: contain;
    border-radius: var(--radius-sm);
    display: block;
    transition: opacity .18s ease;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
}

.lightbox__close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lightbox__close:hover {
    background: var(--accent);
}

.lightbox__btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lightbox__btn:hover {
    background: var(--accent);
}

.lightbox__btn--prev { left: 18px; }
.lightbox__btn--next { right: 18px; }
.lightbox__btn[hidden], .lightbox__close[hidden] { display: none !important; }

.lightbox__counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
    font-family: var(--font);
    pointer-events: none;
    font-variant-numeric: tabular-nums;
}

/* ── 29. Scroll-Reveal + Keyframes ────────────────────────────── */
/* --reveal-delay wird per JS für Grid-Stagger gesetzt */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity .7s var(--ease-out),
        transform .7s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes heroGlow {
    from { transform: translate3d(-3%, -2%, 0) scale(1); }
    to { transform: translate3d(4%, 4%, 0) scale(1.08); }
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes chatIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ── 30. Reduzierte Bewegung ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ── 31. Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
    /* Hero stapelt: Text oben, Slider darunter */
    .hero__inner {
        grid-template-columns: 1fr;
        gap: clamp(36px, 6vw, 56px);
    }

    .hero__text {
        max-width: 640px;
    }

    .hero-slider {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 1020px) {
    .nav__links,
    .nav__cta {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .architecture,
    .detail-layout,
    .intro-grid,
    .contact-grid,
    .contact-location__layout {
        grid-template-columns: 1fr;
    }

    .architecture__aside,
    .detail-layout__media {
        position: static;
    }

    .toc {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .nav {
        min-height: 66px;
    }

    .mobile-panel {
        max-height: calc(100vh - 66px);
    }

    html {
        scroll-padding-top: 80px;
    }

    .hero__inner {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .hero h1 {
        font-size: clamp(34px, 9.5vw, 44px);
    }

    .hero__claim {
        font-size: clamp(19px, 5.5vw, 24px);
    }

    .hero__text,
    .page-hero p,
    .section-copy {
        font-size: 16px;
    }

    .section-title,
    .page-hero h1,
    .legal-wrap h1 {
        font-size: clamp(28px, 8vw, 36px);
    }

    .lead {
        font-size: 22px;
    }

    .category-head h2,
    .split-cta h2 {
        font-size: 27px;
    }

    .panel h2,
    .panel h3,
    .form-panel h2,
    .contact-location__card h3 {
        font-size: 24px;
    }

    .hero__actions,
    .split-cta {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .hero__actions .btn,
    .split-cta .btn,
    .contact-location__actions .btn {
        width: 100%;
    }

    .metrics,
    .product-grid,
    .detail-grid,
    .form-row,
    .footer-grid,
    .zubehoer-grid,
    .product-row {
        grid-template-columns: 1fr;
    }

    .product-row .product-row__gallery {
        order: -1;
    }

    .metric {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .metric:last-child {
        border-bottom: 0;
    }

    .category-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hero-slider {
        aspect-ratio: 4 / 3;
        min-height: 200px;
    }

    .hero-slider__btn {
        width: 38px;
        height: 38px;
    }

    .hero-slider__btn--prev { left: 8px; }
    .hero-slider__btn--next { right: 8px; }

    .gallery__thumb {
        flex: 0 0 60px;
        height: 60px;
    }

    .gallery__tab {
        font-size: 12px;
        padding: 7px 10px;
    }

    .chat-widget {
        right: 16px;
        bottom: 16px;
    }

    .chat-widget__panel {
        right: -2px;
        bottom: 70px;
        width: calc(100vw - 28px);
        max-height: calc(100vh - 100px);
    }

    .chat-widget__toggle {
        width: 54px;
        height: 54px;
    }

    .contact-map {
        min-height: 380px;
    }
}

@media (max-width: 600px) {
    .lightbox__btn { width: 40px; height: 40px; font-size: 16px; }
    .lightbox__btn--prev { left: 8px; }
    .lightbox__btn--next { right: 8px; }
    .lightbox__close { top: 10px; right: 10px; }
}

@media (max-width: 480px) {
    .hero .container,
    .page-hero .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}
