/* ==========================================================================
   SANDSTRAHL SCHUCH GmbH – Website
   Farben aus dem Logo: Blau #2f2483, Rot #e3000f.
   Schrift: Barlow (selbst gehostet).
   ========================================================================== */

:root {
  --blue: #2f2483;
  --blue-deep: #221b6b;
  --blue-ink: #171245;
  --blue-mid: #463aa8;
  --blue-soft: #ecebf6;
  --red: #e3000f;
  --red-dark: #b5000c;
  --paper: #f7f5f1;
  --paper-2: #efece6;
  --stone: #e2ded6;
  --white: #ffffff;
  --ink: #1c1a33;
  --text: #34324a;
  --muted: #6b6980;
  --line: #dcd8d0;
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Barlow', 'Segoe UI', Helvetica, Arial, sans-serif;
  --container: 1220px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 14px 34px -16px rgba(23, 18, 69, 0.28);
  --shadow-sm: 0 4px 14px -6px rgba(23, 18, 69, 0.2);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --cut: 2.6vw;
  --header-h: 104px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.28 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--blue); line-height: 1.1; margin: 0 0 0.5em; font-weight: 700; letter-spacing: 0.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: 0.7rem 1rem; z-index: 1000; font-weight: 600; }
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }
[hidden] { display: none !important; }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container.narrow { max-width: 820px; }
.container.narrow-wide { max-width: 980px; }
.center { text-align: center; }
.small { font-size: 0.9rem; }
.muted { color: var(--muted); }
.rounded { border-radius: var(--radius-lg); }
.pt-0 { padding-top: 0 !important; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 780px; margin-bottom: 2.5rem; }
.lead { font-size: 1.15rem; line-height: 1.6; }
.kicker { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.95rem; font-weight: 700; color: var(--red); margin-bottom: 0.4rem; }
.kicker a { color: inherit; }
.kicker-light { color: #ffb3b8; }

/* Überschriften mit rotem Strich (wie in den Stellenanzeigen) */
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); text-transform: uppercase; position: relative; padding-bottom: 0.55rem; margin-bottom: 1.2rem; }
.section-title.small { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--red); border-radius: 2px; transform-origin: left; }
.js .reveal .section-title::after, .js .section-title.reveal-line::after { transform: scaleX(0); transition: transform 0.9s var(--ease) 0.2s; }
.js .reveal.is-visible .section-title::after, .js .section-title.reveal-line.is-visible::after { transform: scaleX(1); }
.center .section-title::after { left: 50%; transform: translateX(-50%); }

/* Fließtext */
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { text-transform: uppercase; margin-top: 1.6em; }
.prose h2 { font-size: 1.7rem; }
.prose h3 { font-size: 1.35rem; }
.prose h4 { font-size: 1.15rem; }
.prose ul { list-style: none; padding-left: 1.4em; }
.prose ul li { position: relative; margin-bottom: 0.35em; }
.prose ul li::before { content: ''; position: absolute; left: -1.4em; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose-light, .prose-light h2, .prose-light h3 { color: #fff; }
.prose-light a { color: #fff; }
.prose.lead p { font-size: 1.15rem; }
.prose.legal { font-size: 1rem; }
.prose.legal h3 { font-size: 1.2rem; margin-top: 2em; }
.columns-2 { column-count: 2; column-gap: 3rem; }
.columns-2 p { break-inside: avoid; }
@media (max-width: 860px) { .columns-2 { column-count: 1; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.6em; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; font-size: 1.05rem; line-height: 1; padding: 0.95em 1.6em; border-radius: 4px; border: 2px solid transparent; transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, box-shadow 0.2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 10px 20px -12px rgba(227, 0, 15, 0.7); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--blue); border-color: #fff; }
.btn-light:hover { background: var(--paper); color: var(--red); }
.btn-lg { font-size: 1.15rem; padding: 1.05em 1.9em; }
.btn-sm { font-size: 0.9rem; padding: 0.7em 1.1em; }
.btn-block { display: flex; justify-content: center; width: 100%; margin-top: 1.2rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.link-more { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--red); }
.link-more:hover { color: var(--blue); }
.link-btn { background: none; border: 0; color: var(--blue); text-decoration: underline; padding: 0; font-size: 0.95rem; }
.tag { display: inline-block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; font-weight: 700; background: var(--blue); color: #fff; padding: 0.25em 0.6em; border-radius: 3px; vertical-align: middle; }
.tag-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.notice { background: var(--blue-soft); border-left: 4px solid var(--blue); padding: 1rem 1.2rem; border-radius: var(--radius); }

/* ==========================================================================
   Header
   ========================================================================== */
/* Fixiert statt „sticky“: das Verkleinern beim Scrollen verändert so nicht die Seitenhöhe
   (sonst Rückkopplung mit der Scrollposition = Zittern/Hängenbleiben). Platz hält .site-main frei. */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255, 255, 255, 0.97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow 0.3s; }
.site-header.is-shrunk { box-shadow: 0 8px 24px -14px rgba(23, 18, 69, 0.35); }
.site-main { padding-top: calc(var(--header-h) + 1px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); transition: min-height 0.35s var(--ease); }
.is-shrunk .header-inner { min-height: 70px; }
.brand { display: block; width: 236px; flex: 0 0 auto; padding: 0.4rem 0; position: relative; transition: width 0.35s var(--ease); }
.is-shrunk .brand { width: 168px; }
.brand svg { width: 100%; height: auto; overflow: visible; }
/* Signatur: der rote Schriftzug „strahlend gut“ baut sich wie ein Strahl von links nach rechts auf */
.js .brand .logo-script { clip-path: inset(-10% 100% -10% 0); animation: logo-beam 1.15s var(--ease) 0.35s forwards; }
@keyframes logo-beam { 0% { clip-path: inset(-10% 100% -10% 0); filter: drop-shadow(0 0 0 rgba(227, 0, 15, 0)); } 60% { filter: drop-shadow(0 0 6px rgba(227, 0, 15, 0.55)); } 100% { clip-path: inset(-10% -2% -10% 0); filter: drop-shadow(0 0 0 rgba(227, 0, 15, 0)); } }
.js .brand::after { content: ''; position: absolute; inset: 0 0 0 -30%; width: 40%; background: linear-gradient(100deg, transparent 20%, rgba(227, 0, 15, 0.16) 50%, transparent 80%); transform: translateX(-120%) skewX(-18deg); animation: logo-sweep 1.3s var(--ease) 0.3s forwards; pointer-events: none; }
@keyframes logo-sweep { to { transform: translateX(420%) skewX(-18deg); } }

.main-nav { display: flex; align-items: center; gap: 1.5rem; flex: 1 1 auto; justify-content: flex-end; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 0.15rem; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { display: flex; align-items: center; height: var(--header-h); padding: 0 0.85rem; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.12rem; color: var(--blue); position: relative; white-space: nowrap; transition: height 0.35s var(--ease), color 0.2s; }
.is-shrunk .nav-link { height: 70px; }
/* aktiver Menüpunkt: dunkelblauer Querstrich oben */
.nav-link::before { content: ''; position: absolute; left: 0.85rem; right: 0.85rem; top: 0; height: 4px; background: var(--blue-deep); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); border-radius: 0 0 3px 3px; }
.nav-item.is-active > .nav-link::before { transform: scaleX(1); }
.nav-item:hover > .nav-link, .nav-item:focus-within > .nav-link { color: var(--red); }
.nav-item:hover > .nav-link::before, .nav-item:focus-within > .nav-link::before { transform: scaleX(1); background: var(--red); }
.nav-item.is-active:hover > .nav-link::before { background: var(--blue-deep); }
.nav-toggle { display: none; }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 260px; list-style: none; margin: 0; padding: 0.5rem 0; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s; z-index: 50; }
.nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown, .nav-item.is-open > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 1.1rem; color: var(--ink); font-weight: 500; white-space: nowrap; }
.dropdown a:hover, .dropdown a[aria-current] { background: var(--blue-soft); color: var(--blue); }
.dd-icon { width: 28px; height: 28px; border-radius: 6px; flex: 0 0 auto; }
.nav-extra { display: flex; align-items: center; gap: 1.2rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.nav-phone { white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--blue); letter-spacing: 0.02em; }
.lang-switch { display: flex; gap: 0.2rem; }
.lang-switch a { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; padding: 0.2em 0.45em; border-radius: 3px; color: var(--muted); }
.lang-switch a.is-current { background: var(--blue); color: #fff; }
.burger { display: none; align-items: center; gap: 0.6rem; background: none; border: 0; color: var(--blue); font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.5rem; }
.burger-box { position: relative; width: 28px; height: 20px; display: block; }
.burger-line, .burger-line::before, .burger-line::after { position: absolute; left: 0; width: 28px; height: 3px; background: var(--blue); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; content: ''; }
.burger-line { top: 8.5px; }
.burger-line::before { top: -8.5px; }
.burger-line::after { top: 8.5px; }
.nav-open .burger-line { background: transparent; }
.nav-open .burger-line::before { transform: translateY(8.5px) rotate(45deg); }
.nav-open .burger-line::after { transform: translateY(-8.5px) rotate(-45deg); }

/* Adventsdeko neben dem Logo */
.xmas { flex: 0 0 auto; align-self: center; margin-left: -0.85rem; margin-right: auto; height: calc(var(--header-h) - 6px); aspect-ratio: 86 / 104; pointer-events: none; transition: height 0.35s var(--ease); }
.is-shrunk .xmas { height: 66px; }
.xmas svg { display: block; width: 100%; height: 100%; overflow: visible; }
.xmas-santa { transform: translateY(84px); animation: xmas-climb 14s linear infinite; }
.xmas-sway { transform-box: fill-box; transform-origin: 50% 0; animation: xmas-sway 1.6s ease-in-out infinite alternate; }
.xmas-leg { transform-box: fill-box; transform-origin: 50% 0; animation: xmas-kick 0.7s ease-in-out infinite alternate; }
.xmas-leg-b { animation-delay: -0.7s; animation-direction: alternate-reverse; }
.xmas-arm { animation: xmas-grab 0.7s ease-in-out infinite alternate; }
.xmas-arm-b { animation-direction: alternate-reverse; }
.xmas-lights circle { animation: xmas-blink 1.8s ease-in-out infinite; }
.xmas-lights circle:nth-child(2n) { animation-delay: -0.6s; }
.xmas-lights circle:nth-child(3n) { animation-delay: -1.2s; }
.xmas-star { transform-box: fill-box; transform-origin: center; animation: xmas-star 14s linear infinite; }
/* klettert hoch, rutscht kurz vor der Spitze ab, schafft es dann und seilt sich wieder ab */
@keyframes xmas-climb { 0% { transform: translateY(84px); } 30% { transform: translateY(34px); } 33% { transform: translateY(34px); } 36% { transform: translateY(62px); } 40% { transform: translateY(58px); } 70% { transform: translateY(20px); } 82% { transform: translateY(20px); } 100% { transform: translateY(84px); } }
@keyframes xmas-sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes xmas-kick { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
@keyframes xmas-grab { from { transform: translateY(1.6px); } to { transform: translateY(-1.6px); } }
@keyframes xmas-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes xmas-star { 0%, 69%, 83%, 100% { transform: scale(1) rotate(0); filter: none; } 72%, 80% { transform: scale(1.5) rotate(20deg); filter: drop-shadow(0 0 3px #ffd23f); } 76% { transform: scale(1.3) rotate(-20deg); filter: drop-shadow(0 0 3px #ffd23f); } }
@media (prefers-reduced-motion: reduce) { .xmas * { animation: none !important; } .xmas-santa { transform: translateY(48px); } }
@media print { .xmas { display: none; } }
/* Burger-Ansicht: Deko nimmt keinen Platz weg, sitzt zwischen Logo und Menü-Button */
@media (max-width: 960px) { .header-inner { position: relative; } .xmas { position: absolute; left: 206px; top: 50%; margin: 0; height: 64px; transform: translateY(-50%); } .is-shrunk .xmas { height: 52px; left: 174px; } }
@media (max-width: 400px) { .has-xmas .brand { width: 170px; } .xmas, .is-shrunk .xmas { left: 175px; height: 54px; } }
@media (max-width: 359px) { .xmas { display: none; } }

@media (max-width: 1100px) {
  :root { --header-h: 84px; }
  .brand { width: 200px; }
  .nav-link { font-size: 1.02rem; padding: 0 0.6rem; }
  .nav-phone { display: none; }
}
/* schmale Desktop-Breiten: Navigation kompakter, damit kein Menüpunkt umbricht */
@media (min-width: 1101px) and (max-width: 1320px) { .nav-link { font-size: 1.02rem; padding: 0 0.6rem; } }
@media (min-width: 1101px) and (max-width: 1210px) { .nav-phone { display: none; } }
@media (min-width: 1101px) { .has-xmas .nav-link { font-size: 1.02rem; padding: 0 0.6rem; } }
@media (min-width: 1101px) and (max-width: 1290px) { .has-xmas .nav-phone { display: none; } }
@media (min-width: 1101px) and (max-width: 1180px) { .has-xmas .brand { width: 200px; } .has-xmas .nav-link { padding: 0 0.5rem; } }
@media (min-width: 961px) and (max-width: 1080px) { .nav-link { font-size: 0.98rem; padding: 0 0.35rem; } }
@media (min-width: 961px) and (max-width: 1025px) { .xmas { display: none; } }
@media (max-width: 960px) {
  /* backdrop-filter würde das fixierte Menü auf die Header-Höhe begrenzen */
  .site-header { backdrop-filter: none; background: #fff; }
  .burger { display: inline-flex; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 1rem var(--gutter) 3rem; overflow-y: auto; transform: translateX(100%); transition: transform 0.35s var(--ease); z-index: 90; }
  .is-shrunk .main-nav { top: 70px; }
  .nav-open .main-nav { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { height: auto; padding: 1rem 0; font-size: 1.35rem; flex: 1 1 auto; }
  .is-shrunk .nav-link { height: auto; }
  .nav-link::before { display: none; }
  .nav-item.is-active > .nav-link { color: var(--red); box-shadow: inset 4px 0 0 var(--blue-deep); padding-left: 0.8rem; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: none; border: 0; }
  .chev { width: 12px; height: 12px; border-right: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(45deg); transition: transform 0.3s; }
  .is-open .chev { transform: rotate(225deg); }
  .dropdown { position: static; display: none; min-width: 0; width: 100%; box-shadow: none; border: 0; border-top: 0; padding: 0 0 0.8rem 0.5rem; opacity: 1; visibility: visible; transform: none; }
  .nav-item.is-open > .dropdown { display: block; }
  .dropdown a { padding: 0.55rem 0.5rem; font-size: 1.05rem; }
  .nav-extra { border: 0; padding: 1.2rem 0 0; justify-content: space-between; }
  .nav-phone { display: inline; }
  body.nav-open { overflow: hidden; }
}

/* ==========================================================================
   Hero (Startseite)
   ========================================================================== */
.hero { position: relative; height: clamp(520px, 78vh, 800px); background: var(--blue-ink); overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.1s var(--ease); pointer-events: none; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 11s linear; }
.hero-slide.is-active .hero-media img { transform: scale(1); }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(23, 18, 69, 0.82) 0%, rgba(23, 18, 69, 0.55) 45%, rgba(23, 18, 69, 0.15) 100%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-bottom: calc(var(--cut) + 5.5rem); max-width: none; }
.hero-title { color: #fff; font-size: clamp(2.4rem, 6vw, 4.8rem); font-weight: 800; line-height: 1; max-width: 16ch; margin-bottom: 0.4em; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25); transform: translateY(18px); opacity: 0; transition: transform 0.8s var(--ease) 0.25s, opacity 0.8s var(--ease) 0.25s; }
.hero-subtitle { color: rgba(255, 255, 255, 0.92); font-size: clamp(1.1rem, 2vw, 1.45rem); max-width: 52ch; margin-bottom: 1.6em; transform: translateY(18px); opacity: 0; transition: transform 0.8s var(--ease) 0.4s, opacity 0.8s var(--ease) 0.4s; }
.hero-content .btn { align-self: flex-start; transform: translateY(18px); opacity: 0; transition: transform 0.8s var(--ease) 0.55s, opacity 0.8s var(--ease) 0.55s, background 0.2s; }
.hero-slide.is-active .hero-title, .hero-slide.is-active .hero-subtitle, .hero-slide.is-active .hero-content .btn { transform: none; opacity: 1; }
.hero-cover { position: absolute; inset: 0; z-index: 1; }
.hero-controls { position: absolute; left: 0; right: 0; bottom: calc(var(--cut) + 1.2rem); z-index: 3; display: flex; align-items: center; gap: 0.8rem; }
.hero-arrow, .hero-pause { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.55); background: rgba(23, 18, 69, 0.35); color: #fff; font-size: 1.6rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s, border-color 0.2s; }
.hero-arrow:hover, .hero-pause:hover { background: var(--red); border-color: var(--red); }
.hero-dots { display: flex; gap: 0.5rem; }
.hero-dot { width: 46px; height: 22px; background: none; border: 0; padding: 8px 0; }
.hero-dot-bar { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.4); overflow: hidden; position: relative; }
.hero-dot-bar::after { content: ''; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }
.hero-dot.is-active .hero-dot-bar::after { animation: dot-progress var(--duration, 10s) linear forwards; }
.hero.is-paused .hero-dot.is-active .hero-dot-bar::after { animation-play-state: paused; }
@keyframes dot-progress { to { transform: scaleX(1); } }
.ico-pause { width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.is-paused .ico-pause { width: 0; height: 0; border: 0; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
@media (max-width: 640px) { .hero { height: clamp(460px, 86vh, 640px); } .hero-title { max-width: none; } }

/* ==========================================================================
   Bereiche der Startseite
   ========================================================================== */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
/* Jobs: Hochformat-Foto nicht auf 4:3 beschneiden, sonst fehlen die Köpfe */
.page-jobs .split-media img { aspect-ratio: 4 / 5; object-position: center 30%; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.intro .section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.stats { background: var(--blue-deep) var(--grain); color: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0; position: relative; }
.stats::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(227, 0, 15, 0.22), transparent 45%); pointer-events: none; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.stat { text-align: center; padding: 0 1rem; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.stat-number { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 7vw, 5rem); line-height: 1; letter-spacing: -0.01em; }
.stat-number::before { content: '> '; color: var(--red); font-weight: 700; }
.stat-label { display: block; margin-top: 0.5rem; font-size: 1.05rem; color: rgba(255, 255, 255, 0.85); }
@media (max-width: 700px) { .stats-grid { grid-template-columns: 1fr; gap: 1.6rem; } .stat + .stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 1.6rem; } }

.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.7rem 1.6rem 1.5rem; color: var(--ink); position: relative; overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s; }
.tile::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.tile-red::after { background: var(--red); }
.tile:hover, .tile:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.tile:hover::after, .tile:focus-visible::after { transform: scaleX(1); }
.tile-icon { width: 84px; height: 84px; border-radius: 16px; transition: transform 0.35s var(--ease); }
.tile:hover .tile-icon { transform: scale(1.06) rotate(-2deg); }
.tile-label { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.45rem; color: var(--blue); line-height: 1.1; transition: color 0.2s; }
.tile:hover .tile-label { color: var(--red); }
.tile-text { color: var(--muted); font-size: 0.98rem; }
.tile-more { margin-top: auto; padding-top: 0.5rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--red); font-size: 0.95rem; }
@media (max-width: 900px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tile-grid { grid-template-columns: 1fr; } }

/* Referenz-Laufband */
.references-teaser { background: var(--paper-2); overflow: hidden; }
.marquee { overflow: hidden; margin: 0 0 1.2rem; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 1.2rem; width: max-content; animation: marquee var(--speed, 70s) linear infinite; }
.marquee[data-dir="right"] .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item { position: relative; flex: 0 0 auto; width: 300px; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--blue-soft); box-shadow: var(--shadow-sm); }
.marquee-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.marquee-item:hover img { transform: scale(1.06); }
.marquee-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem 0.8rem; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.15; background: linear-gradient(180deg, transparent, rgba(23, 18, 69, 0.85)); }
.references-teaser .center { margin-top: 2rem; }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; } .marquee-track { animation: none; width: auto; } .marquee-item[aria-hidden="true"] { display: none; } }
@media (max-width: 640px) { .marquee-item { width: 230px; } }

.jobs-teaser { background: var(--blue) var(--grain); color: #fff; position: relative; }
.jobs-teaser::before { content: ''; position: absolute; inset: 0; background: linear-gradient(65deg, var(--blue-ink), transparent 60%); }
.jobs-teaser .container { position: relative; }
.jobs-teaser .section-title { color: #fff; }
.jobs-teaser .lead { color: rgba(255, 255, 255, 0.9); margin-bottom: 1.8rem; }

/* ==========================================================================
   Unterseiten: Banner, Seitenkopf, Layouts
   ========================================================================== */
.banner { position: relative; min-height: clamp(260px, 36vh, 420px); display: flex; align-items: flex-end; background: var(--paper-2); overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); margin-bottom: clamp(1rem, 3vw, 2rem); }
.banner-media { position: absolute; inset: 0; }
.banner-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; filter: saturate(0.7); }
.banner-media img.focus-top { object-position: center 34%; }
.banner-media img.focus-bottom { object-position: center 85%; }
.banner-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(247, 245, 241, 0.2), rgba(247, 245, 241, 0.85) 90%); }
.banner-inner { position: relative; padding: 3.5rem 0 calc(var(--cut) + 2.4rem); }
.banner-title { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 800; color: var(--blue); text-transform: uppercase; margin-bottom: 0.2em; line-height: 0.98; }
.banner-subtitle { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--red); font-weight: 400; max-width: 60ch; margin: 0; }
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 2rem; }
.page-head-inner { display: flex; align-items: center; gap: 1.4rem; }
.page-head-inner.between { justify-content: space-between; flex-wrap: wrap; }
.page-icon { width: 88px; height: 88px; border-radius: 18px; box-shadow: var(--shadow-sm); flex: 0 0 auto; }
.page-title { font-size: clamp(2rem, 4.5vw, 3.2rem); text-transform: uppercase; font-weight: 800; margin: 0; line-height: 1; }
.page-head .kicker { margin-bottom: 0.2rem; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }
.box { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.4rem; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 900px) { .box { position: static; } }
.box-title { font-size: 1.35rem; text-transform: uppercase; margin-bottom: 1rem; }
.box-list { list-style: none; margin: 0; padding: 0; }
.box-list li { position: relative; padding-left: 1.4rem; margin-bottom: 0.7rem; line-height: 1.4; }
.box-list li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.box-list strong { color: var(--blue); }
.box-list a strong { text-decoration: underline; text-decoration-color: rgba(47, 36, 131, 0.35); text-underline-offset: 3px; }
.box-list a:hover strong { color: var(--red); }
.box-note { color: var(--muted); font-size: 0.95rem; display: block; }
.facts-list { margin: 0; }
.facts-list dt { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; color: var(--muted); margin-top: 0.9rem; }
.facts-list dd { margin: 0.15rem 0 0; }
.icon-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.icon-list a { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); }
.icon-list img { width: 28px; height: 28px; border-radius: 7px; }

.info-panel { position: relative; overflow: hidden; background: var(--blue) var(--grain); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.2rem); box-shadow: var(--shadow); }
.info-title { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.8rem; }
.info-panel .prose { font-size: 1.1rem; }
/* „Schimmer“, der beim Öffnen der Seite einmalig über das Feld läuft */
.js .shimmer-once::after { content: ''; position: absolute; top: -20%; bottom: -20%; left: -35%; width: 30%; background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%); transform: translateX(-100%) skewX(-18deg); pointer-events: none; }
.js .shimmer-once.is-visible::after { animation: shimmer 1.6s var(--ease) 0.2s 1 forwards; }
@keyframes shimmer { to { transform: translateX(520%) skewX(-18deg); } }

.convince { background: var(--paper-2); }
.convince-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.convince-text { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.9rem); text-transform: uppercase; color: var(--blue); margin: 0; }
.convince.pt-0 { background: transparent; }
.convince.pt-0 .convince-inner { background: var(--paper-2); padding: 1.6rem 2rem; border-radius: var(--radius-lg); }

.chip-list, .chip-row { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.9rem 0.45rem 0.5rem; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-weight: 500; font-size: 0.95rem; line-height: 1.2; transition: all 0.2s; }
.chip img { width: 24px; height: 24px; border-radius: 6px; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip-red.is-active { background: var(--red); border-color: var(--red); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.gallery-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); background: var(--blue-soft); box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }

/* Referenzkarten (Anwendungsgebiete / Detailseite) */
.ref-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.ref-card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .ref-card-grid, .ref-card-grid.cols-3 { grid-template-columns: 1fr; } }
.ref-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.ref-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ref-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-soft); }
.ref-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.ref-card:hover .ref-card-media img { transform: scale(1.05); }
.ref-card-body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.ref-card-title { font-size: 1.45rem; margin: 0; }
.ref-card-task { margin: 0; color: var(--text); }
.ref-card-meta { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.95rem; }
.ref-card .link-more { margin-top: auto; }

/* Referenzen – Übersicht */
.feature-list { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.feature.is-reversed .feature-text { order: 2; }
.feature-title { font-size: clamp(1.7rem, 3vw, 2.4rem); text-transform: uppercase; }
.feature-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; box-shadow: var(--shadow); }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; } .feature.is-reversed .feature-text { order: 0; } }

/* Filter */
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1.5rem; margin-bottom: 1.5rem; display: grid; gap: 1.1rem; }
.filter-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.filter-sub { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0.6rem 0 0.35rem; font-family: var(--font-display); font-weight: 700; }
.chip-filter { cursor: pointer; }
.chip-filter.is-empty { opacity: 0.4; cursor: not-allowed; }
.chip-filter.is-empty:hover { border-color: var(--line); color: var(--ink); }
[data-ref-empty] { margin-bottom: 1rem; }
.filter-status { display: flex; align-items: center; gap: 1rem; font-size: 0.95rem; color: var(--muted); }
.filter-count { font-weight: 600; color: var(--blue); }

/* Karte */
/* isolation: Leaflet-Ebenen (z-index 400–1000) bleiben in der Karte und liegen nicht über dem Menü */
.map-wrap { position: relative; isolation: isolate; z-index: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--blue-soft); }
.ref-map { height: clamp(440px, 68vh, 680px); width: 100%; }
.map-small .ref-map { height: 260px; }
.map-consent { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e6e4f2, #f2f1f7) var(--grain); z-index: 5; padding: 1rem; }
.map-consent-box { background: #fff; border-radius: var(--radius-lg); padding: 1.6rem 1.8rem; max-width: 460px; text-align: center; box-shadow: var(--shadow); }
.map-consent-box p { font-size: 0.95rem; color: var(--muted); }
.map-consent-box .btn { margin: 0.5rem 0; }
.map-hint { color: var(--muted); font-size: 0.95rem; margin-top: 0.8rem; }
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper { border-radius: var(--radius-lg); padding: 0; overflow: hidden; box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 0; width: 280px !important; }
.leaflet-popup-tip { background: #fff; }
.leaflet-popup.is-below .leaflet-popup-tip-container, .leaflet-popup.is-shifted .leaflet-popup-tip-container { display: none; }
.leaflet-container a.leaflet-popup-close-button { top: 6px; right: 6px; color: #fff; background: rgba(23, 18, 69, 0.55); border-radius: 50%; width: 26px; height: 26px; font-size: 18px; line-height: 24px; padding: 0; z-index: 2; }
.ref-popup img.ref-popup-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ref-popup-empty { aspect-ratio: 16 / 9; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.9rem; }
.ref-popup-body { padding: 0.9rem 1rem 1rem; }
.ref-popup-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--blue); line-height: 1.1; margin: 0 0 0.3rem; }
.ref-popup-task { font-size: 0.92rem; line-height: 1.4; margin: 0 0 0.3rem; color: var(--text); }
.ref-popup-years { font-size: 0.88rem; color: var(--muted); margin: 0 0 0.5rem; }
.ref-popup-icons { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.6rem; }
.ref-popup-icons img { width: 26px; height: 26px; border-radius: 6px; }
.ref-popup .btn { width: 100%; justify-content: center; }
.ssg-marker { width: 30px; height: 30px; }
.ssg-marker span { display: block; width: 26px; height: 26px; background: var(--blue); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35); transition: transform 0.2s, background 0.2s; position: relative; }
.ssg-marker span::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--red); }
.ssg-marker:hover span, .ssg-marker.is-pinned span { transform: rotate(-45deg) scale(1.2); background: var(--red); }
.ssg-marker.is-pinned span::after { background: #fff; }
.ssg-marker.is-major span { width: 30px; height: 30px; }
.leaflet-tooltip.ssg-tooltip { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--blue); border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 0.3rem 0.6rem; }

/* Referenzen – Gesamtansicht (Kacheln) */
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.ref-tile { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--blue-soft); box-shadow: var(--shadow-sm); color: #fff; }
.ref-tile.is-hidden { display: none; }
.ref-tile-media, .ref-tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ref-tile-media img { object-fit: cover; transition: transform 0.7s var(--ease); }
.ref-tile:hover .ref-tile-media img, .ref-tile:focus-visible .ref-tile-media img { transform: scale(1.08); }
.ref-tile-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.ref-tile-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem 0.9rem; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.1; background: linear-gradient(180deg, transparent, rgba(23, 18, 69, 0.9)); transition: opacity 0.3s; }
.ref-tile-overlay { position: absolute; inset: 0; background: rgba(23, 18, 69, 0.88); padding: 1.2rem; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.5rem; opacity: 0; transform: translateY(12px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.ref-tile:hover .ref-tile-overlay, .ref-tile:focus-visible .ref-tile-overlay { opacity: 1; transform: none; }
.ref-tile:hover .ref-tile-name, .ref-tile:focus-visible .ref-tile-name { opacity: 0; }
.ref-tile-overlay::before { content: attr(data-name); }
.ref-tile-task { font-size: 0.95rem; line-height: 1.4; }
.ref-tile-years { font-family: var(--font-display); font-weight: 700; color: #ffb3b8; letter-spacing: 0.06em; }
.ref-tile-icons { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.ref-tile-icons img { width: 28px; height: 28px; border-radius: 7px; background: #fff; }
.ref-tile-overlay .btn { align-self: flex-start; margin-top: 0.3rem; }
@media (hover: none) { .ref-tile-overlay { display: none; } }

/* Über uns */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem); }
@media (max-width: 800px) { .values-grid { grid-template-columns: 1fr; } }
.value-title { font-size: 1.5rem; text-transform: uppercase; position: relative; padding-left: 1.1rem; }
.value-title::before { content: ''; position: absolute; left: 0; top: 0.15em; bottom: 0.15em; width: 5px; background: var(--red); border-radius: 2px; }
.image-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 700px) { .image-tiles { grid-template-columns: 1fr; } }
.image-tile { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--blue-soft); box-shadow: var(--shadow-sm); }
.image-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), filter 0.4s; }
.image-tile::after { content: ''; position: absolute; inset: 0; background: rgba(23, 18, 69, 0.42); transition: background 0.4s; }
.image-tile:hover img { transform: scale(1.06); }
.image-tile:hover::after { background: rgba(23, 18, 69, 0.55); }
.image-tile-label { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: clamp(1.8rem, 3.2vw, 2.6rem); text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4); transition: transform 0.4s var(--ease), color 0.3s; }
.image-tile:hover .image-tile-label, .image-tile:focus-visible .image-tile-label { transform: scale(1.18); color: #ff4d59; }

/* Geschichte – Zeitstrahl */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 46px; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--blue), var(--red)); border-radius: 2px; }
.tl-item { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.tl-marker { display: flex; justify-content: center; align-items: flex-start; }
.tl-year { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; box-shadow: 0 0 0 8px var(--paper), 0 0 0 10px var(--blue-soft); position: relative; z-index: 1; }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.8rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46%); gap: 1.8rem; align-items: start; box-shadow: var(--shadow-sm); }
.tl-title { font-size: 1.5rem; text-transform: uppercase; }
.tl-media a { display: block; border-radius: var(--radius-lg); overflow: hidden; }
.tl-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s var(--ease); }
.tl-media a:hover img { transform: scale(1.03); }
.tl-icon { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; color: var(--blue); background: linear-gradient(135deg, var(--blue-soft) 0%, #fff 100%); border: 1px solid var(--line); border-bottom: 4px solid var(--red); }
.tl-icon svg { position: relative; width: 34%; height: auto; }
.tl-icon-year { position: absolute; right: 0.25em; bottom: -0.12em; font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 11vw, 8rem); line-height: 1; letter-spacing: -0.02em; color: rgba(47, 36, 131, 0.08); }
@media (max-width: 800px) { .tl-card { grid-template-columns: 1fr; } .tl-item { grid-template-columns: 64px 1fr; gap: 1rem; } .tl-year { width: 64px; height: 64px; font-size: 1.15rem; } .timeline::before { left: 30px; } }

/* Team */
.team-group { padding-top: 1rem; padding-bottom: 2rem; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.team-grid-lead { grid-template-columns: repeat(auto-fill, minmax(260px, 340px)); }
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .team-grid { grid-template-columns: 1fr; } }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.3rem 1.4rem; text-align: center; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.avatar { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1rem; overflow: hidden; background: var(--blue) var(--grain); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 4px #fff, 0 0 0 3px var(--blue-soft); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials { color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; letter-spacing: 0.04em; }
.person-name { font-size: 1.35rem; margin-bottom: 0.2rem; }
.person-name small { font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; color: var(--muted); }
.person-role { color: var(--red); font-weight: 600; margin-bottom: 0.7rem; }
.person-contact { list-style: none; margin: 0; padding: 0.7rem 0 0; border-top: 1px solid var(--line); font-size: 0.93rem; }
.person-contact li { display: flex; justify-content: center; gap: 0.5rem; }
.person-contact span { color: var(--muted); }

/* Fachkompetenz – Akkordeon */
.accordion { display: grid; gap: 0.7rem; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.acc-item[open] { box-shadow: var(--shadow-sm); border-color: var(--blue-soft); }
.acc-summary { list-style: none; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.3rem; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--blue); transition: background 0.2s, color 0.2s; }
.acc-summary::-webkit-details-marker { display: none; }
.acc-summary .nowrap { white-space: nowrap; }
.acc-summary:hover { background: var(--blue-soft); color: var(--red); }
.acc-plus { position: relative; flex: 0 0 auto; width: 22px; height: 22px; }
.acc-plus::before, .acc-plus::after { content: ''; position: absolute; background: var(--red); border-radius: 2px; transition: transform 0.3s var(--ease); }
.acc-plus::before { left: 0; right: 0; top: 9px; height: 4px; }
.acc-plus::after { top: 0; bottom: 0; left: 9px; width: 4px; }
.acc-item[open] .acc-plus::after { transform: rotate(90deg); }
.acc-body { padding: 0.2rem 1.3rem 1.5rem 3.5rem; }
.acc-body.has-media { display: grid; grid-template-columns: 1fr 240px; gap: 1.5rem; align-items: start; }
@media (max-width: 700px) { .acc-body { padding-left: 1.3rem; } .acc-body.has-media { grid-template-columns: 1fr; } }

/* Jobs */
.framed { position: relative; }
.jobs-subtitle { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.2rem; color: var(--red); margin: -0.4rem 0 1.2rem; }
.apply-line { font-size: 1.15rem; }
.apply-mail { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.job-list { display: grid; gap: 1rem; margin-bottom: 1rem; }
.job-card { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--red); border-radius: var(--radius); padding: 1.4rem 1.6rem; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.job-title { font-size: 1.5rem; text-transform: uppercase; margin-bottom: 0.4rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.job-summary { margin: 0; color: var(--text); }
.job-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.job-card.has-image { grid-template-columns: 150px 1fr auto; }
.job-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.job-main { min-width: 0; }
.job-title { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 760px) {
  .job-card, .job-card.has-image { grid-template-columns: 1fr; }
  .job-card.has-image { grid-template-columns: 96px 1fr; gap: 1rem 1.2rem; align-items: start; }
  .job-card.has-image .job-actions { grid-column: 1 / -1; }
  .job-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .job-card.has-image { grid-template-columns: 1fr; }
  .job-media { width: 120px; }
}

/* Kontakt */
.locations { display: grid; gap: 2rem; }
.location { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; align-items: stretch; }
.location-media img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.location-title { font-size: 1.7rem; text-transform: uppercase; }
.location-label { color: var(--red); font-weight: 600; font-size: 1.1rem; text-transform: none; }
.location-address { font-style: normal; margin-bottom: 0.8rem; }
.contact-list { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.8rem; margin: 0 0 0.8rem; }
.contact-list dt { color: var(--muted); font-weight: 500; }
.contact-list dd { margin: 0; }
.location-map { min-height: 260px; }
@media (max-width: 960px) { .location { grid-template-columns: 1fr 1fr; } .location-map { grid-column: 1 / -1; } }
@media (max-width: 600px) { .location { grid-template-columns: 1fr; } }
.contact-form-section { background: var(--paper-2); }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; }
.field-full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--ink); font-size: 0.97rem; }
.field input:not([type="checkbox"]), .field textarea { width: 100%; font: inherit; padding: 0.75rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 36, 131, 0.15); background: #fff; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field-error { display: block; color: var(--red); font-size: 0.88rem; margin-top: 0.3rem; }
.field-check label { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400; font-size: 0.95rem; }
.field-check input { margin-top: 0.3rem; width: 18px; height: 18px; accent-color: var(--blue); flex: 0 0 auto; }
.form-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.alert { padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.2rem; font-weight: 500; }
.alert-success { background: #e6f5ec; color: #14532d; border-left: 4px solid #22a55b; }
.alert-error { background: #fde8ea; color: #7f1d1d; border-left: 4px solid var(--red); }

/* CTA-Band */
.cta-band { position: relative; background: var(--blue-ink); color: #fff; overflow: hidden; }
.cta-media { position: absolute; inset: 0; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 72%; opacity: 0.35; }
.cta-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 18, 69, 0.95), rgba(23, 18, 69, 0.6)); }
.cta-inner { position: relative; padding: clamp(3rem, 7vw, 5rem) 0; max-width: 720px; }
.cta-title { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); text-transform: uppercase; }
.cta-text { font-size: 1.15rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 1.8rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--blue-ink) var(--grain); color: rgba(255, 255, 255, 0.85); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { display: block; width: 230px; margin-bottom: 1.2rem; }
.footer-text { max-width: 40ch; font-size: 0.98rem; }
.footer-title { color: #fff; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; position: relative; padding-bottom: 0.5rem; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; background: var(--red); }
/* nur eine zweite Überschrift innerhalb einer Spalte (z. B. „Folgen Sie uns“) bekommt Abstand – alle Spalten beginnen bündig */
.footer-col > * + .footer-title { margin-top: 1.6rem; }
.footer-address { font-style: normal; line-height: 1.7; }
.footer-address a, .footer-links a, .social { color: rgba(255, 255, 255, 0.85); }
.footer-address a:hover, .footer-links a:hover, .social:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; line-height: 1.9; }
.social { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.9rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 0; }
.footer-copy { color: rgba(255, 255, 255, 0.75); }
.footer-credit { white-space: nowrap; }
.footer-credit::before { content: '·'; margin: 0 0.5em; color: rgba(255, 255, 255, 0.4); }
.footer-credit a { color: rgba(255, 255, 255, 0.9); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(227, 0, 15, 0.8); padding-bottom: 1px; }
.footer-credit a:hover { color: #fff; border-bottom-color: #fff; }
@media (max-width: 520px) { .footer-credit { display: block; white-space: normal; margin-top: 0.3rem; } .footer-credit::before { display: none; } }
.to-top { color: #fff; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

/* Cookie-Banner */
.consent { position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 400; width: min(520px, calc(100% - 2.4rem)); background: #fff; border-top: 4px solid var(--blue); border-radius: var(--radius-lg); box-shadow: 0 20px 50px -18px rgba(23, 18, 69, 0.45); }
.consent[hidden] { display: none; }
.consent-inner { padding: 1.3rem 1.4rem 1.4rem; max-height: calc(100vh - 2.4rem); overflow-y: auto; }
.consent-title { font-size: 1.25rem; margin: 0 0 0.5rem; color: var(--blue); }
.consent-text { font-size: 0.92rem; color: var(--muted); margin: 0 0 0.9rem; }
.consent-text a { color: var(--blue); text-decoration: underline; }
.consent-options { display: grid; gap: 0.5rem; margin-bottom: 1rem; }
.consent-option { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; cursor: pointer; }
.consent-option input { margin-top: 0.2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--blue); flex: none; }
.consent-option small { display: block; color: var(--muted); font-size: 0.85rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.consent-actions .btn { flex: 1 1 auto; justify-content: center; }
.footer-link-btn { background: none; border: 0; padding: 0; font: inherit; color: rgba(255, 255, 255, 0.85); cursor: pointer; text-align: left; }
.footer-link-btn:hover { color: #fff; text-decoration: underline; }
@media (max-width: 520px) {
  .consent { left: 0; bottom: 0; width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .consent-inner { max-height: 80vh; padding: 1.1rem var(--gutter) 1.2rem; }
  .consent-actions .btn { flex-basis: 100%; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(23, 18, 69, 0.94); display: flex; align-items: center; justify-content: center; padding: 3rem; }
.lb-figure { margin: 0; max-width: 92vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.lb-figure img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); }
.lb-figure figcaption { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255, 255, 255, 0.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--red); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox { padding: 1rem; } .lb-prev, .lb-next { width: 42px; height: 42px; bottom: 1rem; top: auto; transform: none; } .lb-prev { left: 1rem; } .lb-next { right: 1rem; } }

/* Sichtbarkeits-Animation beim Scrollen */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .brand .logo-script, .js .brand::after, .js .shimmer-once::after, .hero-media img { animation: none !important; transition: none !important; clip-path: none; }
  .hero-slide, .hero-title, .hero-subtitle, .hero-content .btn { transition: none !important; }
}

/* Fehlerseite, Sperrseite */
.error-page { padding-top: clamp(4rem, 10vw, 7rem); padding-bottom: clamp(4rem, 10vw, 7rem); }
.error-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 16vw, 10rem); line-height: 1; color: var(--blue-soft); margin: 0; }
.locked { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--paper) var(--grain); }
.locked-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); max-width: 560px; width: 100%; text-align: center; box-shadow: var(--shadow); border-top: 6px solid var(--red); }
.locked-logo { max-width: 320px; margin: 0 auto 1.5rem; }
.locked-title { font-size: 2rem; text-transform: uppercase; }
.locked-contact { font-weight: 600; }
.locked-form { margin-top: 1.5rem; text-align: left; }
.locked-form label { font-weight: 600; display: block; margin-bottom: 0.4rem; }
.locked-row { display: flex; gap: 0.6rem; }
.locked-row input { flex: 1; font: inherit; padding: 0.75rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius); }
.is-placeholder { object-fit: contain !important; background: var(--blue-soft); }

@media print {
  .site-header, .site-footer, .hero-controls, .cta-band, .lightbox, .burger, .map-consent { display: none !important; }
  body { background: #fff; color: #000; }
  .banner { clip-path: none; min-height: 0; }
}
