/* ==========================================================================
   SPANNER – Website-Styles
   Farben/Abstände zentral als CSS-Variablen. Die Markenfarbe kann im Backend
   (Einstellungen › Marke) gesetzt werden und wird in theme.css überschrieben.
   ========================================================================== */
@import url("theme.css");

:root {
  --brand: #005ca9;
  --brand-dark: #00457f;
  --brand-light: #e6f0f9;
  --ink: #12202f;
  --ink-soft: #3d4b5c;
  --muted: #637184;
  --line: #dce3eb;
  --bg: #ffffff;
  --bg-tint: #f3f6f9;
  --navy: #0b1d33;
  --navy-2: #13294a;
  --steel: #8fa1b6;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(11, 29, 51, .06), 0 8px 24px rgba(11, 29, 51, .08);
  --shadow-lg: 0 20px 60px rgba(11, 29, 51, .18);
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 84px;
  --section: clamp(4rem, 9vw, 7.5rem);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; overflow-x: clip; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--bg); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
p { margin: 0 0 1em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--brand); color: #fff; padding: .75rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; color: #fff; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.anchor { position: absolute; bottom: 0; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 880px; }
.small { font-size: .875rem; color: var(--muted); }
.lead { font-size: 1.25rem; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 1.4rem; border-radius: var(--radius); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { color: var(--brand); border-color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--brand-light); color: var(--navy); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-block { width: 100%; justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; text-decoration: none; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow.is-back .icon { transform: rotate(180deg); }
.link-arrow.is-back:hover .icon { transform: rotate(180deg) translateX(3px); }

/* ---------- Header & Navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(11, 29, 51, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 2rem; }
.brand { display: flex; align-items: center; flex: none; }
.brand-logo { height: 48px; width: auto; }
.brand-word { font-size: 1.7rem; font-weight: 800; letter-spacing: .12em; color: var(--brand); }
.nav-toggle { display: none; }
.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: .35rem; padding: .65rem .9rem; font: inherit; font-size: .98rem; font-weight: 600; color: var(--ink); background: none; border: 0; cursor: pointer; text-decoration: none; border-radius: var(--radius); }
.nav-link:hover, .nav-item.is-active > .nav-link { color: var(--brand); }
.nav-item.is-active > .nav-link { box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.icon-chevron { width: .9em; height: .9em; transition: transform .2s; }
.nav-link[aria-expanded="true"] .icon-chevron { transform: rotate(180deg); }
.nav-cta { background: var(--brand); color: #fff !important; margin-left: .5rem; padding-inline: 1.2rem; }
.nav-cta:hover { background: var(--brand-dark); }
.nav-item.is-active > .nav-cta { box-shadow: none; border-radius: var(--radius); }
.nav-sub { position: absolute; top: calc(100% + 10px); left: 50%; min-width: 320px; transform: translate(-50%, 8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.nav-item.is-open > .nav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-sub-inner { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1rem; }
.nav-sub-title { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: .25rem .75rem .5rem; }
.nav-sub ul { list-style: none; margin: 0; padding: 0; }
.nav-sub a { display: block; padding: .7rem .75rem; border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.nav-sub a:hover, .nav-sub a[aria-current] { background: var(--bg-tint); }
.nav-sub a[aria-current] .nav-sub-label { color: var(--brand); }
.nav-sub-label { display: block; font-weight: 600; }
.nav-sub-desc { display: block; font-size: .85rem; color: var(--muted); line-height: 1.4; margin-top: .1rem; }
.nav-contact { display: none; }

@media (max-width: 1080px) {
  :root { --header-h: 70px; }
  .brand-logo { height: 40px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); cursor: pointer; }
  .nav-toggle .icon { width: 24px; height: 24px; }
  .nav-toggle .icon-close, .nav-open .nav-toggle .icon-open { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto; padding: 1rem var(--gutter) 3rem; opacity: 0; transform: translateY(-12px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; visibility: hidden; }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 1.1rem 0; font-size: 1.15rem; }
  .nav-item.is-active > .nav-link { box-shadow: none; }
  .nav-cta { justify-content: center; margin: 1.5rem 0 0; padding: 1rem; }
  .nav-item:has(.nav-cta) { border: 0; }
  .nav-sub { position: static; transform: none; opacity: 1; visibility: visible; min-width: 0; display: none; }
  .nav-item.is-open > .nav-sub { display: block; transform: none; }
  .nav-sub-inner { border: 0; box-shadow: none; padding: 0 0 1rem; }
  .nav-sub-title { display: none; }
  .nav-sub a { padding: .6rem .75rem; }
  .nav-contact { display: grid; gap: .75rem; margin-top: 2rem; }
  .nav-contact a { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 600; }
}

/* ---------- Brotkrumen ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.5rem; padding: 0; font-size: .85rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.crumbs a { color: inherit; text-decoration: none; opacity: .8; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8, 22, 40, .92) 0%, rgba(8, 22, 40, .72) 45%, rgba(8, 22, 40, .25) 100%); }
.hero:not(.has-image) { background: radial-gradient(circle at 85% 20%, var(--navy-2), var(--navy) 60%); }
.hero:not(.has-image)::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; background-image: linear-gradient(rgba(255, 255, 255, .25) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .25) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(90deg, transparent, #000 70%); }
.hero-inner { position: relative; }
.hero .eyebrow { color: #9cc7ef; }
.hero-title { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 750; max-width: 18ch; margin-bottom: .45em; }
.hero-text { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 46ch; color: rgba(255, 255, 255, .88); }
.hero-page .hero-inner { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem); }
.hero-page .hero-title { font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: 22ch; }
.hero-large { min-height: min(88vh, 880px); display: flex; align-items: center; }
.hero-large .hero-inner { padding-block: 6rem; }
.hero-large .hero-title { font-size: clamp(2.6rem, 6.2vw, 5rem); max-width: 14ch; }
.hero-large .hero-media img { animation: heroZoom 18s ease-out both; transform-origin: 60% 50%; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-large::after { background: linear-gradient(90deg, rgba(8, 22, 40, .9) 0%, rgba(8, 22, 40, .55) 50%, rgba(8, 22, 40, .15) 100%), linear-gradient(0deg, rgba(8, 22, 40, .6), transparent 35%); }
.hero-scroll { position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); color: #fff; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; display: grid; place-items: center; animation: bob 2.4s ease-in-out infinite; }
.hero-scroll:hover { color: #fff; background: rgba(255, 255, 255, .12); }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }
.mwd { font-weight: 400; opacity: .75; font-size: .6em; }
.job-facts { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.job-facts li { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); padding: .35rem .8rem; border-radius: 99px; font-size: .9rem; }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--section); position: relative; }
.section + .section:not(.section-tint):not(.is-dark) { padding-top: 0; }
.section-tint { background: var(--bg-tint); }
.section-tint + .section-tint { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.section-head-row .section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head-row > .link-arrow { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-title { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.section-intro { font-size: 1.15rem; color: var(--ink-soft); margin-top: .5rem; }

/* Fließtext */
.prose { color: var(--ink-soft); }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.prose h3 { font-size: 1.25rem; margin-top: 1.75rem; }
.prose h4 { font-size: 1.05rem; margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--brand); font-size: 1.2rem; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); background: var(--bg-tint); }
.checklist ul { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.75rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .55rem; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

/* Text + Bild */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split.is-reverse .split-media { order: -1; }
.split-copy .section-head { margin-bottom: 1.5rem; }
.frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-tint); box-shadow: var(--shadow); }
.frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.frame:hover img { transform: scale(1.03); }
.split-media { margin: 0; position: relative; }
.split-media::before { content: ""; position: absolute; width: 45%; height: 55%; right: -1.25rem; bottom: -1.25rem; background: var(--brand-light); border-radius: var(--radius-lg); z-index: -1; }
.split.is-reverse .split-media::before { right: auto; left: -1.25rem; }
.split-media figcaption, .gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: .75rem; }

/* Kacheln */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.cards-n2 { grid-template-columns: repeat(2, 1fr); }
.cards-n4 { grid-template-columns: repeat(4, 1fr); }
.cards-n1 { grid-template-columns: minmax(0, 560px); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; color: inherit; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: inherit; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-tint); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
a.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 0; }
.card-title { font-size: 1.2rem; margin-bottom: .5rem; }
.card-more { margin-top: auto; padding-top: 1.25rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--brand); font-size: .95rem; }
a.card:hover .card-more .icon { transform: translateX(3px); }
.card-more .icon { transition: transform .25s var(--ease); }
.cards-plain .card, .cards-numbered .card { border: 0; box-shadow: var(--shadow); }
.cards-plain .card-body { padding: 2rem; border-top: 3px solid var(--brand); }
.card-num { font-size: 2.5rem; font-weight: 800; line-height: 1; color: var(--brand); opacity: .25; margin-bottom: 1rem; letter-spacing: -.03em; }
.cards-numbered .card-body { padding: 2rem; }

/* Kennzahlen */
.stats-section.is-dark { background: var(--navy); color: #fff; overflow: hidden; }
.stats-section.is-dark::before { content: ""; position: absolute; inset: 0; opacity: .1; background-image: linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(circle at 80% 50%, #000, transparent 70%); }
.stats-section.is-dark + .section { padding-top: var(--section); }
.stats-section .container { position: relative; }
.stats-title { margin-bottom: 2.5rem; }
.is-dark .stats-title { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 1.5rem 1.75rem; border-left: 1px solid var(--line); }
.is-dark .stat { border-color: rgba(255, 255, 255, .15); }
.stat-value { margin: 0 0 .35rem; font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--brand); font-variant-numeric: tabular-nums; }
.is-dark .stat-value { color: #fff; }
.stat-prefix { display: block; font-size: .9rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin-bottom: .35rem; }
.is-dark .stat-prefix { color: var(--steel); }
.stat-unit { font-size: .45em; font-weight: 700; margin-left: .2em; letter-spacing: 0; }
.stat-label { color: var(--ink-soft); font-size: 1rem; }
.is-dark .stat-label { color: rgba(255, 255, 255, .75); }

/* Zeitstrahl */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line); transform: translateX(-50%); }
.timeline::after { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: var(--tl-progress, 0%); background: var(--brand); transform: translateX(-50%); transition: height .15s linear; }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 5rem; margin-bottom: 3.5rem; }
.tl-item:last-child { margin-bottom: 0; }
.tl-marker { position: absolute; left: 50%; top: 1.25rem; transform: translateX(-50%); z-index: 1; }
.tl-year { display: inline-block; background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem; padding: .4rem .8rem; border-radius: 99px; white-space: nowrap; box-shadow: 0 0 0 6px #fff; }
.tl-card { grid-column: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.tl-item.is-right .tl-card { grid-column: 2; }
.tl-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tl-body { padding: 1.5rem 1.75rem; }
.tl-body h3 { font-size: 1.25rem; }

/* Maschinen / Technologien */
.machine:nth-of-type(even) { background: var(--bg-tint); }
.machine + .machine { padding-top: var(--section); }
.machine-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.machine-grid.is-reverse .machine-media { order: -1; }
.machine-copy .section-head { margin-bottom: 1.25rem; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: 2rem 0 0; }
.spec { background: #fff; padding: 1rem 1.25rem; }
.spec:last-child:nth-child(odd) { grid-column: 1 / -1; }
.spec dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.spec dd { margin: .2rem 0 0; font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.frame-main img { aspect-ratio: 4 / 3; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-top: .75rem; }
.thumb { border-radius: var(--radius); overflow: hidden; display: block; background: var(--line); }
.thumb img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .5s var(--ease), opacity .3s; }
.thumb:hover img { transform: scale(1.08); opacity: .85; }
.machine-video { margin-top: 3rem; }

/* Video (2-Klick) */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--navy); border-radius: var(--radius-lg); overflow: hidden; color: #fff; }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.video-consent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem; padding: 1.5rem; text-align: center; }
.video-consent p { max-width: 52ch; font-size: .85rem; color: rgba(255, 255, 255, .85); margin: 0; }
.video-consent a { color: #fff; }
.video-play { width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .25s var(--ease), background .2s; }
.video-play .icon { width: 32px; height: 32px; margin-left: 4px; }
.video-play:hover { transform: scale(1.08); background: var(--brand-dark); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { color: var(--muted); font-size: .9rem; margin-top: .75rem; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-inline { grid-template-columns: repeat(3, 1fr); margin-top: 2rem; }
.gallery-item { margin: 0; }
.gallery-item a { display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-tint); }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item a:hover img { transform: scale(1.05); }

/* Downloads */
.downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.download { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.download:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.download-icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--brand-light); color: var(--brand); border-radius: var(--radius); flex: none; }
.download-text { flex: 1; display: flex; flex-direction: column; }
.download-text small { color: var(--muted); }
.download-arrow { color: var(--brand); }

/* Zertifikate */
.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.cert { background: #fff; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.cert-seal { height: 90px; display: flex; align-items: center; margin-bottom: 1.25rem; }
.cert-seal img { max-height: 90px; width: auto; }
.cert h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.cert p { color: var(--ink-soft); font-size: .95rem; }
.cert-valid { display: flex; align-items: center; gap: .4rem; font-size: .88rem !important; color: var(--muted) !important; }
.cert-valid .icon { color: #1c8a4a; }
.cert .link-arrow { margin-top: auto; }

/* CTA */
.cta { position: relative; background: var(--brand); color: #fff; overflow: hidden; isolation: isolate; }
.cta.has-image { background: var(--navy); }
.cta-media { position: absolute; inset: 0; z-index: -2; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta.has-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 69, 127, .95), rgba(0, 69, 127, .7)); }
.cta-inner { padding-block: clamp(3.5rem, 7vw, 6rem); max-width: 900px; }
.cta-title { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-text { font-size: 1.15rem; color: rgba(255, 255, 255, .9); max-width: 60ch; }
main:has(> .cta:last-child) + .site-footer .footer-claim { display: none; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.news-card a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.news-media { aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.news-card a:hover .news-media img { transform: scale(1.05); }
.news-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.news-body time { font-size: .85rem; color: var(--muted); font-weight: 600; margin-bottom: .5rem; }
.news-body h3 { font-size: 1.2rem; }
.news-body p { color: var(--ink-soft); font-size: .97rem; }
.news-body .card-more { padding-top: .5rem; }
.back { margin-top: 3rem; }

/* Stellen */
.job-list { list-style: none; padding: 0; margin: 0 0 2rem; border-top: 1px solid var(--line); }
.job-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem .25rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.job-row:hover { color: var(--brand); background: linear-gradient(90deg, var(--bg-tint), transparent); }
.job-main { display: flex; flex-direction: column; }
.job-main strong { font-size: 1.2rem; }
.job-main small { font-weight: 400; color: var(--muted); }
.job-meta { color: var(--muted); font-size: .92rem; }
.empty-note { padding: 1.5rem 1.75rem; background: var(--bg-tint); border-left: 3px solid var(--brand); border-radius: var(--radius); margin-bottom: 2rem; }
.empty-note p { margin: 0; }
.apply-box { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 2rem; }
.apply-box h2, .apply-box h3 { color: #fff; font-size: 1.35rem; }
.apply-box p { color: rgba(255, 255, 255, .85); }
.apply-box .small { color: rgba(255, 255, 255, .7); margin-top: 1rem; }
.apply-box .link-arrow { color: #9cc7ef; }
.apply-box .btn-primary { background: #fff; color: var(--navy); }
.apply-box .btn-primary:hover { background: var(--brand-light); }
.job-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.is-sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.job-section { margin-top: 2.5rem; }
.job-section h2 { font-size: 1.5rem; }
.lead-prose { font-size: 1.15rem; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: .9fr 1.4fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.contact-card { background: var(--bg-tint); border-radius: var(--radius-lg); padding: 1.75rem; }
.contact-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.contact-card h3 { font-size: 1.1rem; margin: 1rem 0 .5rem; }
.contact-card p, .contact-card address { color: var(--ink-soft); margin-bottom: .75rem; }
.contact-icon { width: 48px; height: 48px; display: grid; place-items: center; background: var(--brand); color: #fff; border-radius: var(--radius); }
.contact-icon .icon { width: 22px; height: 22px; }
.hours { margin: 0; display: grid; gap: .35rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: .35rem; }
.hours dt { color: var(--ink-soft); }
.hours dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .75); font-size: .95rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-claim { background: var(--brand); color: #fff; }
.footer-claim-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; padding-block: 2.5rem; }
.claim { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; margin: 0; letter-spacing: -.01em; color: #fff; }
.claim-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.claim-actions .btn:hover { text-decoration: none; }
.footer-claim .btn-light { color: var(--navy); }
.footer-claim .btn-outline-light { color: #fff; }
.footer-claim .btn-outline-light:hover { color: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; padding-block: 4rem 3rem; }
.footer-name, .footer-title { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer-title { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-company address { margin-bottom: 1rem; }
.social { display: flex !important; gap: .5rem !important; margin-top: 1.5rem !important; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; }
.social a:hover { background: #fff; color: var(--navy); }
.footer-certs { display: flex; flex-wrap: wrap; gap: 1rem; padding-bottom: 2.5rem; }
.cert-badge { display: flex; align-items: center; gap: .75rem; background: #fff; color: var(--navy) !important; padding: .5rem .9rem .5rem .5rem; border-radius: var(--radius); font-size: .85rem; font-weight: 600; }
.cert-badge img { height: 44px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.5rem; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.legal { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; list-style: none; margin: 0; padding: 0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(5, 14, 26, .94); display: grid; place-items: center; padding: 4rem 1rem; opacity: 0; transition: opacity .25s; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-height: 82vh; max-width: min(1400px, 100%); width: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-caption { color: rgba(255, 255, 255, .85); text-align: center; margin-top: 1rem; font-size: .95rem; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Bild-Fallback (z. B. vor dem Medienimport) ---------- */
img.is-broken { visibility: hidden; }
.frame:has(img.is-broken), .card-media:has(img.is-broken), .news-media:has(img.is-broken), .tl-media:has(img.is-broken), .gallery-item a:has(img.is-broken) { background: linear-gradient(135deg, var(--navy), var(--navy-2)); }

/* ---------- Einblend-Animationen ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-delay="1"] { transition-delay: .08s; }
.js [data-delay="2"] { transition-delay: .16s; }
.js [data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards, .cards-n4 { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-company { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .split, .machine-grid, .job-grid { grid-template-columns: 1fr; }
  .split.is-reverse .split-media, .machine-grid.is-reverse .machine-media { order: 0; }
  .split-media::before { display: none; }
  .timeline::before, .timeline::after { left: 14px; }
  .tl-item { grid-template-columns: 1fr; padding-left: 44px; margin-bottom: 2.5rem; }
  .tl-item.is-right .tl-card, .tl-card { grid-column: 1; }
  .tl-marker { position: static; transform: none; margin: 0 0 .75rem -44px; }
  .tl-marker::before { content: ""; position: absolute; left: 8px; width: 14px; height: 14px; margin-top: .55rem; background: var(--brand); border-radius: 50%; box-shadow: 0 0 0 4px #fff; }
  .tl-year { margin-left: 44px; box-shadow: none; }
  .is-sticky { position: static; }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding-inline: 0; }
  .is-dark .stat { border-color: rgba(255, 255, 255, .15); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .cards, .cards-n2, .cards-n4, .news-grid, .contact-cards { grid-template-columns: 1fr; }
  .gallery, .gallery-inline { grid-template-columns: repeat(2, 1fr); }
  .specs { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-large { min-height: 78vh; }
  .hero::after { background: linear-gradient(0deg, rgba(8, 22, 40, .92), rgba(8, 22, 40, .6)); }
  .claim-actions .btn { width: 100%; justify-content: center; }
}

@media print {
  .site-header, .site-footer, .hero-scroll, .video, .cta { display: none !important; }
  .hero { color: #000; background: none; }
  .hero-title, .hero .eyebrow { color: #000; }
  .hero::after, .hero-media { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
