/* ============================================================
   BITSCHNAU OVERRIDES – Heureka V1
   Bitschnau-Base CSS (bitschnau-base.css) liefert das Design.
   Diese Datei macht die Light-Variante zum Standard
   und fügt unsere eigenen Features hinzu.
   ============================================================ */

/* --- 0. MOBILE SECTION SPACING --------------------------------
   Design-Prinzip: Sektionen haben kein Top-Padding.
   Der Abstand zwischen Sektionen kommt nur vom Bottom-Padding
   der vorherigen Sektion. So entstehen einheitliche Lücken
   statt doppelter Abstände (bottom + top = 192px → nur bottom = 96px).
   Auf Desktop bleibt das Base-Layout (beides) erhalten.
   --------------------------------------------------------------- */
@media screen and (max-width: 767px) {
  body > .section + .section,
  body > .section + .section.cta-ssab {
    padding-top: 0;
  }
  /* Ausnahme: Sektionen mit bottom-padding-0 (z.B. Karriere-Video) —
     die Folgesektion braucht padding-top, weil kein Bottom-Padding da ist. */
  body > .section.bottom-padding-0 + .section {
    padding-top: var(--section-padding--default);
  }
}

/* --- 1. HEADER TYPOGRAFIE & LOGO ---------------------------
   Hier alle Schriften und Logo-Einstellungen für den Header.
   Schnell anpassbar ohne den Rest zu verändern.
   ------------------------------------------------------------ */

/* Logo – schwarz default, farbig on hover */
.navbar-logo {
  height: 22px;
  width: auto;
  display: block;
  transition: opacity 0.25s ease;
}
.navbar-logo-color {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}
.nav-logo-link:hover .navbar-logo-black { opacity: 0; }
.nav-logo-link:hover .navbar-logo-color { opacity: 1; }

/* Section-Tag rechts vom Logo */
.navbar-section-tag {
  display: inline-block;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(26, 26, 26, 0.15);
  font-family: var(--typefaces--body, Aspekta, Arial, sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.65);
  white-space: nowrap;
  line-height: 1;
}

/* Menü-Kategorien (BITSCHNAU, LOHNFERTIGUNG, PRODUKTE, etc.) */
.mega-menu-heading {
  display: block;
  font-size: 11px;
  font-weight: 700;
  font-variation-settings: "wght" 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.5);
  text-decoration: none;
  margin-bottom: 0;
  cursor: default;
  font-family: var(--typefaces--body, Aspekta, Arial, sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Klickbare Kategorien (Lohnfertigung, Gleitschalung, etc.)
   – exakt gleiche Optik wie nicht-klickbare Headings */
a.mega-menu-heading,
a.mega-menu-heading:link,
a.mega-menu-heading:visited {
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.5);
  text-decoration: none;
  font-family: var(--typefaces--body, Aspekta, Arial, sans-serif);
  /* FIX: Bitschnau-Base setzt font-variation-settings: "wght" 500 auf alle <a> Tags (bitschnau-base.css:1292).
     Das überschreibt font-weight bei Variable Fonts wie Aspekta → sieht "Regular" aus.
     Explizit auf 700 setzen damit es identisch zu den <div> Headings ist. */
  font-variation-settings: "wght" 700;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: color 0.15s ease;
}

a.mega-menu-heading:hover {
  color: rgba(26, 26, 26, 0.8);
  text-decoration: none;
}

/* Menü-Links (Konstruktion, Schweißtechnik, etc.) */
.mega-menu-link {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  color: #1a1a1a;
  text-decoration: none;
  padding: 6px 0;
  transition: opacity 0.15s ease;
  font-family: var(--typefaces--body, Aspekta, Arial, sans-serif);
}

.mega-menu-link:hover {
  opacity: 0.6;
}

.mega-menu-link.w--current {
  font-weight: 600;
}

/* Sub-link: eingerückt unter Parent (z.B. Referenzen unter Aluminiumbrücken) */
.mega-menu-link--sub {
  padding-left: 16px;
}
.mega-menu-link--sub::before {
  content: '· ';
}

/* --- 2. APPLE-STYLE HEADER --------------------------------- */
/* Weißer Header, Logo links, Icons rechts (Globus + Hamburger) */

.navbar-wrapper {
  background-color: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

/* Scroll-Verhalten: verstecken beim Runterscrollen */
.navbar-wrapper.navbar-hidden {
  transform: translateY(-100%);
}

.navbar-content {
  background-color: transparent;
  color: #1a1a1a;
  padding: 0;
}

/* FIX: Bitschnau-Base entfernt auf Tablet/Mobile das Padding von .contains-navbar
   und setzt es nur mit der w-variant Klasse wieder.
   Wir setzen es hier als Default zurück. */
.main-container.contains-navbar {
  background-color: transparent;
  padding-left: var(--globals--gutter, 24px);
  padding-right: var(--globals--gutter, 24px);
}

.navbar {
  background-color: transparent;
  border: none;
  padding: 0;
}

.navbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

/* Logo (Größe → Sektion 1 oben) */
.nav-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
}
.nav-logo-link .navbar-logo-black { position: relative; }
.nav-logo-link .navbar-logo-color {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* Right side icon group */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Icon buttons (globe + hamburger) */
.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: #1a1a1a;
  padding: 0;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.nav-icon-btn:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.nav-icon-btn.is-open {
  background-color: rgba(0, 0, 0, 0.06);
}

/* Weiche button */
a.weiche-btn {
  text-decoration: none;
  color: #1a1a1a;
}

/* --- 3. HAMBURGER → X ANIMATION ---------------------------- */
/* Zwei Balken, nah beieinander, drehen sich zum perfekten X */

.icon-hamburger {
  display: block;
}

.hamburger-top,
.hamburger-bottom {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Perfektes X: Beide Linien treffen sich exakt in der Mitte (y=5)
   Top: y=1.5 → translate 3.5px down → y=5 → rotate 45°
   Bottom: y=8.5 → translate 3.5px up → y=5 → rotate -45° */
.menu-btn.is-open .hamburger-top {
  transform: translate(0, 3.5px) rotate(45deg);
}

.menu-btn.is-open .hamburger-bottom {
  transform: translate(0, -3.5px) rotate(-45deg);
}

/* --- 3. GLOBE / LANGUAGE DROPDOWN -------------------------- */

.globe-wrapper {
  position: relative;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 6px 0;
  min-width: 56px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 1001;
}

.lang-dropdown.is-open {
  display: block;
}

.lang-option {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #1a1a1a;
  transition: background-color 0.15s ease;
  text-align: center;
}

.lang-option:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.lang-option.active {
  font-weight: 700;
  pointer-events: none;
}

/* --- 4. MEGA-MENU (below header, within grid) -------------- */

/* Mega-Menu Panel: smooth open/close animation
   Öffnen: schnell (0.4s ease-out). Schließen: langsam + super smooth (0.8s ease-in-out) */
.mega-menu {
  background-color: transparent;
  border-bottom: none;
  padding-top: 0;
  padding-bottom: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.5s;
}

.mega-menu.is-open {
  max-height: 600px;
  opacity: 1;
  visibility: visible;
  padding-top: 8px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition:
    max-height 0.4s cubic-bezier(0, 0, 0.2, 1),
    opacity 0.3s cubic-bezier(0, 0, 0.2, 1),
    padding 0.4s cubic-bezier(0, 0, 0.2, 1),
    visibility 0s linear 0s;
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 12px 48px;
}

/* Hover-to-expand: links hidden by default, revealed on hover */
/* --mega-links-height is set by JS (measures tallest group) */
.mega-menu-links {
  height: 0;
  overflow: hidden;
  opacity: 0;
  /* Collapse: no transition — menu panel overflow:hidden clips everything */
  transition: none;
  margin-top: 0;
}

/* Expand on hover – nur auf Geräten mit echtem Hover (Desktop) */
@media (hover: hover) {
  .mega-menu-group:hover .mega-menu-links {
    height: var(--mega-links-height, 240px);
    opacity: 1;
    margin-top: 12px;
    transition: height 0.35s ease, opacity 0.25s ease, margin 0.35s ease;
  }
}

/* Expand on tap (mobile via .is-expanded) – funktioniert überall */
.mega-menu-group.is-expanded .mega-menu-links {
  height: var(--mega-links-height, 240px);
  opacity: 1;
  margin-top: 12px;
  transition: height 0.35s ease, opacity 0.25s ease, margin 0.35s ease;
}

/* Auto-expand (3s timer): alle Gruppen gleichzeitig, langsamer (2×) */
.mega-menu-group.auto-expanded .mega-menu-links {
  height: var(--mega-links-height, 240px);
  opacity: 1;
  margin-top: 12px;
  transition: height 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), margin 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Spaced groups within same column */
.mega-menu-group-spaced {
  margin-top: 20px;
}

/* --- 5. LIGHT VARIANT DEFAULTS (from Bitschnau-Base w-variant) ------ */
/* These make the light theme work without needing the w-variant class */

.nav-link.w--current {
  color: var(--colors-interface--dark);
}

.bold.dropdown-label {
  color: var(--colors-interface--body-text);
}

.text-block {
  color: var(--colors-interface--dark);
}

.text-block-2 {
  color: var(--colors-interface--white);
}

/* --- 6. OLD DROPDOWN (hidden, replaced by mega-menu) ------- */
.dropdown-element,
.nav-dropdown.dropdown-wide-trigger,
.lang-switch {
  display: none;
}

/* --- 7. SCROLL ANIMATIONS ---------------------------------- */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- 8. CMS INLINE EDITING --------------------------------- */
[data-editable] { transition: outline 0.15s ease; }
body.admin-mode [data-editable]:hover {
  outline: 2px dashed rgba(253,184,19,0.6);
  outline-offset: 4px;
  cursor: pointer;
}
body.admin-mode [data-editable].editing {
  outline: 2px solid #fdb813;
  outline-offset: 4px;
}
.cms-toolbar {
  display: inline-flex;
  gap: 6px;
  margin-top: 6px;
}
.cms-toolbar button {
  font-size: 12px;
  padding: 3px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
}
.cms-toolbar .cms-save { background: #fdb813; border-color: #fdb813; color: #1a1a1a; }
.cms-toolbar .cms-cancel { background: #fff; color: #1a1a1a; }

/* --- 9. ADMIN PANEL ---------------------------------------- */
.admin-login { max-width: 400px; margin: 120px auto; padding: 48px; text-align: center; }
.admin-login input { display: block; width: 100%; padding: 12px 16px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; font-family: inherit; box-sizing: border-box; }
.admin-dashboard { max-width: 1200px; margin: 0 auto; padding: 24px; }
.admin-tabs { display: flex; gap: 0; border-bottom: 1px solid #ddd; margin-bottom: 24px; }
.admin-tab { padding: 12px 24px; cursor: pointer; font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; transition: all 0.2s; }
.admin-tab.active { border-bottom-color: #fdb813; }
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

/* --- 10. STYLEGUIDE EDITOR --------------------------------- */
.sg-group { margin-bottom: 32px; }
.sg-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.sg-label { font-family: monospace; font-size: 12px; min-width: 260px; opacity: 0.7; }
.sg-input input[type="color"] { width: 48px; height: 32px; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; }
.sg-input input[type="text"] { width: 120px; padding: 4px 8px; border: 1px solid #ddd; border-radius: 4px; font-family: monospace; font-size: 12px; }

/* --- 11. FOOTER ------------------------------------------- */

/* Bitschnau-Base Footer Overrides: kompakter, gleiche Breite wie Header (.main-container) */
.footer {
  padding-top: 48px !important;
  padding-bottom: 32px !important;
}

.footer .footer-wrapper {
  grid-column-gap: 0 !important;
  grid-row-gap: 0 !important;
  width: 100% !important;
}

/* Navigation: 4 Spalten, volle Breite gleichmässig verteilt */
.footer-nav {
  display: flex !important;
  justify-content: space-between !important;
  width: 100% !important;
}

.footer-nav-col {
  flex: 1;
}

.footer-nav-heading {
  display: block;
  font-size: 11px;
  font-weight: 700;
  font-variation-settings: "wght" 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.5);
  text-decoration: none;
  margin-bottom: 8px;
  font-family: var(--typefaces--body, Aspekta, Arial, sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a.footer-nav-heading {
  cursor: pointer;
  transition: color 0.15s ease;
}

a.footer-nav-heading:hover {
  color: rgba(26, 26, 26, 0.8);
}

.footer-nav-link {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: #1a1a1a;
  text-decoration: none;
  padding: 3px 0;
  opacity: 0.5;
  transition: opacity 0.15s ease;
  font-family: var(--typefaces--body, Aspekta, Arial, sans-serif);
}

.footer-nav-link:hover {
  opacity: 1;
}

/* Sub-link im Footer: eingerückt mit Punkt (z.B. Referenzen unter Eigenprodukte) */
.footer-nav-link--sub {
  padding-left: 16px;
}
.footer-nav-link--sub::before {
  content: '· ';
}

/* Footer Bottom: Copyright links + Legal rechts */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 16px;
  margin-top: 48px;
}

.footer-legal {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.footer-legal-link {
  font-size: 13px;
  color: #1a1a1a;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.footer-legal-link:hover {
  opacity: 1;
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-left: 24px;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: color 0.2s ease;
}
.footer-social-link:hover {
  color: rgb(0, 80, 150);
}

/* Footer Responsive: iPad + iPhone immer einspaltig */
@media screen and (max-width: 991px) {
  .footer-nav {
    flex-direction: column !important;
    gap: 20px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-legal {
    margin-left: 0;
  }
  .footer-social {
    margin-left: 0;
  }
}

/* --- 12. HERO BANNER --------------------------------------- */

/* Einheitlicher Hero-Banner: Hintergrundbild + farbiger Overlay + Typo

   Bitschnau-Base .wide-section-content liefert:
     display: flex; flex-flow: column; align-items: center;

   → align-items: center zentriert den .main-container horizontal (= gleiche X-Position wie Logo)
   → justify-content: flex-end schiebt den Inhalt vertikal nach unten
   → Wir setzen KEIN eigenes display/flex-direction/align-items, damit Bitschnau-Base's Layout intakt bleibt */
.hero-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  height: 800px;
  width: 100%;
  max-width: 2560px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero-Video: liegt über dem SW-Fallback-Bild, unter dem Gradient */
.hero-banner-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  filter: grayscale(100%) brightness(0.85);
  transition: filter 0.6s ease;
}

/* Schwarz-Weiß-Bild via ::before (erbt background-image vom Banner) */
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) brightness(0.85);
  z-index: 0;
  transition: filter 0.6s ease;
}
.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  /* CI-Blau links → klar Mitte → CI-Gelb rechts */
  background: linear-gradient(to right,
    rgba(0, 80, 150, 0.67) 0%,
    transparent 40%,
    transparent 60%,
    rgba(253, 184, 19, 0.42) 100%
  );
  border-radius: var(--border-radius--default, 12px);
  transition: opacity 0.6s ease;
}

/* Video-Loading: CSS-only — kein Fallback-Bild solange Video-Element existiert.
   :has() greift sofort beim Rendern, BEVOR JS läuft → kein Bild-Flash.
   Gradient (::after) bleibt sichtbar. Bei Video-Fehler entfernt JS das
   <video>, dann matcht :has() nicht mehr und das Fallback-Bild erscheint. */
.hero-banner:has(.hero-banner-video) {
  background-image: none !important;
  background-color: #26241f;   /* Dunkle Basis für Ladezustand — Verlauf sichtbar statt CI-Blau-Block */
}
.hero-banner:has(.hero-banner-video)::before {
  background-image: none !important;
}

/* Color Reveal on hover */
.hero-banner:hover .hero-banner-video {
  filter: grayscale(0%) brightness(1);
}
.hero-banner:hover::before {
  filter: grayscale(0%) brightness(1);
}
.hero-banner:hover::after {
  opacity: 0;
}

/* Text: Headline bei ca. 200px vom unteren Rand */
.hero-banner .main-container {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  padding-top: 0 !important;
  padding-bottom: 160px !important;
}

.hero-banner-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Weiße Typo im Banner */
.hero-banner .badge-text {
  color: rgba(255, 255, 255, 0.85);
}

.hero-banner .display-heading {
  color: #ffffff;
}

.hero-banner .heading-h5 {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
}

/* Responsive: Tablet + Mobile → ganzer Screen */
@media screen and (max-width: 991px) {
  .hero-banner {
    height: 100svh;
    padding-bottom: 48px;
  }
}

/* --- 13. SECTION COLORS PER DIVISION ----------------------- */
[data-section="metall"] .badge-title .square { background-color: #fdb813; }
[data-section="gleit"] .badge-title .square { background-color: #007dc6; }

/* --- 12. ANCHOR SCROLL OFFSET ------------------------------ */
[id] { scroll-margin-top: 80px; }

/* --- 13. UTILITY ------------------------------------------- */
.w-webflow-badge { display: none !important; }

/* --- 14. RESPONSIVE OVERRIDES ------------------------------ */
@media screen and (max-width: 991px) {
  .mega-menu-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media screen and (max-width: 767px) {
  /* Mobile Mega-Menu: linksbündig, kompakt, keine feste Höhe */

  /* WICHTIG: Bitschnau-Base zentriert via flexbox align-items: center auf
     .navbar-wrapper und .navbar-content → Children werden schmal + zentriert.
     Fix: align-items: stretch macht alles volle Breite + linksbündig */
  .navbar-wrapper {
    align-items: stretch !important;
  }
  .mega-menu {
    width: 100%;
  }
  .mega-menu > .main-container {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: var(--globals--gutter, 24px);
    padding-right: var(--globals--gutter, 24px);
  }

  .mega-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  /* Navbar-Padding entfernen (weil .main-container.contains-navbar schon Padding hat) */
  .navbar {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .navbar-logo {
    height: 18px;
  }
  .navbar-section-tag {
    display: none;
  }
  .mega-menu {
    padding-top: 0;
    padding-bottom: 0;
  }
  .mega-menu.is-open {
    padding-top: 4px;
    padding-bottom: 16px;
  }


  /* Headings: kompakt, linksbündig, etwas größer */
  .mega-menu-heading {
    font-size: 12px;
    text-align: left;
    padding: 6px 0;
  }
  a.mega-menu-heading,
  a.mega-menu-heading:link,
  a.mega-menu-heading:visited {
    font-size: 12px;
  }

  /* Links: größer, linksbündig, leicht eingerückt unter den Headings */
  .mega-menu-link {
    font-size: 16px;
    padding: 4px 0;
    padding-left: 12px;
    text-align: left;
  }

  /* WICHTIG: Auf Mobile passt sich die Höhe dem Inhalt an (kein --mega-links-height)
     Sonst bekommt BITSCHNAU (3 Links) die Höhe von Lohnfertigung (5 Links) */
  .mega-menu-links {
    margin-top: 0;
  }
  /* Mobile Expand: langsamer (2×), smooth ease-in, Opacity fährt sanft rein */
  .mega-menu-links {
    transition: height 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.3s,
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s,
                margin 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
  }
  .mega-menu-group:hover .mega-menu-links,
  .mega-menu-group.is-expanded .mega-menu-links,
  .mega-menu-group.auto-expanded .mega-menu-links {
    height: auto;
    margin-top: 2px;
    transition: height 0.7s cubic-bezier(0, 0, 0.2, 1),
                opacity 0.6s cubic-bezier(0, 0, 0.2, 1),
                margin 0.7s cubic-bezier(0, 0, 0.2, 1);
  }

  /* Minimale Abstände zwischen Gruppen/Spalten */
  .mega-menu-col {
    padding: 0;
  }
  .mega-menu-group-spaced {
    margin-top: 2px;
  }

  /* Mobile: Header immer sichtbar, nie verstecken */
  .navbar-wrapper.navbar-hidden {
    transform: none;
  }
}

/* --- 16. IMAGEFILM VIDEO SECTION ----------------------- */
.imagefilm-section {
  padding-top: var(--section-padding--default, 96px);
}

.imagefilm-section .vertical-section {
  margin-bottom: 48px;
}

.imagefilm-btn-wrap {
  margin-top: 32px;
}

.imagefilm-video-wrap {
  border-radius: var(--border-radius--default, 12px);
  overflow: hidden;
  position: relative;
  display: block;
  cursor: pointer;
}

.imagefilm-video-wrap .video-thumbnail {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.imagefilm-video-wrap:hover .video-thumbnail {
  transform: scale(1.02);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.imagefilm-video-wrap:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
}

/* --- 17. LOHNFERTIGUNG CAROUSEL ------------------------ */
/* Apple-style horizontal sliding carousel, same width as main-container */
.lohnfertigung-section {
  width: 100%;
  align-self: stretch;
}

.lohnfertigung-section > .main-container:first-child {
  margin-bottom: 48px;
}

.lohnfertigung-btn-wrap {
  margin-top: 32px;
}

.lohnfertigung-carousel {
  width: 100%;
  max-width: var(--containers--main-container-with-gutters, 1440px);
  margin: 0 auto;
  padding: 0 var(--globals--gutter, 24px);
  box-sizing: border-box;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius--default, 12px);
  aspect-ratio: 16/9;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
}

.carousel-slide-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

@media (hover: hover) {
  .carousel-slide:hover .carousel-slide-bg {
    transform: scale(1.03);
  }
}

.carousel-slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.carousel-slide-content .bold {
  font-size: 22px;
  color: #1a1a1a;
  margin-bottom: 6px;
  font-weight: 700;
}

.carousel-slide-content .body-text {
  color: rgba(26, 26, 26, 0.65);
  font-size: 15px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Controls: Apple-style dots + play/pause */
.carousel-controls {
  margin-top: 40px;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  border: none;
  background: rgba(0, 0, 0, 0.18);
  padding: 0;
  cursor: pointer;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease;
}

.carousel-dot.active {
  width: 32px;
  background: #1a1a1a;
}

.carousel-playpause {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  background: none;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.5);
  padding: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.carousel-playpause svg {
  width: 12px;
  height: 12px;
}

.carousel-playpause:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

/* Liquid Glass button: blue default, yellow hover, neutral pressed */
.btn-aqua {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--typefaces--body, Aspekta, Arial, sans-serif);
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  color: white;
  border: none;
  outline: none;
  background: #005096;
  box-shadow: none;
  text-shadow: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-aqua:focus {
  outline: none;
  box-shadow: none;
}

/* Hover: yellow */
.btn-aqua:hover {
  background: #fdb813;
  color: #1a1a1a;
  box-shadow: none;
}

/* Pressed: neutral grey */
.btn-aqua:active {
  background: #888;
  color: white;
  box-shadow: none;
  transform: scale(0.98);
}

/* Outline button for dark backgrounds (e.g. CTA hero images) */
.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.85);
  color: #1a1a1a;
}

.btn-outline-light:active {
  background: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.6);
  color: #1a1a1a;
}

/* Responsive: Tablet */
@media screen and (max-width: 991px) {
  .carousel-viewport {
    aspect-ratio: 4/3;
  }
}

/* Responsive: Mobile */
@media screen and (max-width: 767px) {
  .carousel-viewport {
    aspect-ratio: 3/4;
  }

  .carousel-slide-content {
    padding: 20px;
  }

  .carousel-slide-content .bold {
    font-size: 18px;
  }

  .carousel-slide-content .body-text {
    font-size: 14px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

/* --- 18. PRODUKTE SECTION (Home) ---------------------- */
.produkte-home {
  width: 100%;
}

.produkte-home .vertical-section {
  margin-bottom: 48px;
}

.produkte-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.produkt-card-home {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #1a1a1a;
  min-width: 0;
}

.produkt-card-home .produkt-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
}

.produkt-card-home .produkt-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

@media (hover: hover) {
  .produkt-card-home:hover .produkt-bg {
    transform: scale(1.03);
  }
}

.produkt-card-home .produkt-content {
  padding-top: 24px;
}

.produkt-card-home .produkt-content .heading-h3 {
  color: #1a1a1a;
  margin-bottom: 8px;
}

.produkt-card-home .produkt-content .body-text {
  color: rgba(0,0,0,0.6);
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
}

/* Responsive: Tablet – Produkte untereinander */
@media screen and (max-width: 991px) {
  .produkte-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* --- 19. OFFENE STELLEN (Home) ----------------------- */
.career-section-home {
  width: 100%;
}

.career-section-home .vertical-section {
  margin-bottom: 48px;
}

.career-list {
  display: flex;
  flex-direction: column;
}

.career-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  text-decoration: none;
  color: #1a1a1a;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: opacity 0.2s ease;
}

.career-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.career-item:hover {
  opacity: 0.7;
}

.career-item-title {
  flex: 1;
  font-size: 17px;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  color: #1a1a1a;
}

.career-item-meta {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.career-tag {
  font-size: 13px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.5);
}

.career-item-arrow {
  width: 16px;
  height: 16px;
  opacity: 0.4;
  flex-shrink: 0;
}

@media screen and (max-width: 767px) {
  .career-item {
    padding: 16px 20px;
    gap: 16px;
  }

  .career-item-title {
    font-size: 15px;
  }
}

/* --- 19b. NUDGE / PFEIL-SEKTION ---------------------- */
.nudge-section {
  padding: 48px 24px 32px;
  text-align: center;
}
.nudge-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.nudge-text {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.45);
  margin: 0;
  letter-spacing: -0.01em;
}
.nudge-arrow {
  color: rgb(0, 80, 150);
  animation: nudge-bounce 2s ease-in-out infinite;
}
@keyframes nudge-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* --- 20. CTA SECTION (SSAB) -------------------------- */
.section.wide-section.cta-ssab {
  padding-top: var(--section-padding--default, 96px);
}
.cta-ssab {
  width: 100%;
}

.cta-ssab-bg {
  position: relative;
  width: calc(100% - 2 * var(--containers--main-container-gutter, 24px));
  max-width: var(--containers--main-container-with-gutters, 1440px);
  height: 600px;
  border-radius: 12px;
  margin-left: auto;
  margin-right: auto;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

.cta-ssab-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 16px;
  padding: 0 64px 48px;
}

.cta-ssab-claim {
  max-width: 180px;
  width: 100%;
  height: auto;
}

.cta-ssab-desc {
  color: white;
  font-size: 15px;
  line-height: 1.6;
}

.cta-ssab-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.cta-ssab-play {
  cursor: pointer;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

.cta-ssab-play:hover {
  transform: scale(1.1);
}

/* Responsive: Mobile */
@media screen and (max-width: 767px) {
  .cta-ssab-bg {
    height: 400px;
  }

  .cta-ssab-inner {
    padding: 0 32px 32px;
  }

  .cta-ssab-claim {
    max-width: 140px;
  }

  /* CTA padding-bottom: 0 entfernt — nicht mehr nötig, da die
     nachfolgende Sektion jetzt padding-top: 0 hat (s. Abschnitt 0). */
}

/* --- 21. LOHNFERTIGUNG DETAIL PAGE --------------------- */

/* Section wraps everything so sticky nav works */
.lf-detail-section {
  padding-top: 0;
  padding-bottom: var(--section-padding--default, 96px);
}

/* Page-nav: left-aligned, desktop only, matches header navbar height (52px) */
.lf-page-nav {
  justify-content: flex-start;
  z-index: 100;
  padding-top: 0;
  padding-bottom: 0;
  height: 52px;
}

@media screen and (max-width: 991px) {
  .lf-page-nav {
    display: none;
  }
}

/* Intro text – standard section spacing below nav */
.lf-intro {
  margin-top: 0;
}

/* Category section */
.lf-category {
  padding-top: 96px;
}

/* Title to content spacing */
.lf-category > .vertical-section {
  margin-bottom: 48px;
}

/* Grid: text left, carousel right */
.lf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

/* Left: glass text panel */
.lf-text-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  border-radius: var(--border-radius--default, 12px);
  background: rgba(245, 245, 247, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.lf-text-panel .bold {
  font-size: 22px;
  color: #1a1a1a;
  margin-bottom: 12px;
  font-weight: 700;
}

.lf-text-panel .body-text {
  color: rgba(26, 26, 26, 0.65);
  font-size: 18px;
  line-height: 1.6;
  text-align: left;
}

/* Right: carousel */
.lf-carousel {
  width: 100%;
  min-width: 0;
}

.lf-carousel .carousel-viewport {
  aspect-ratio: 16/9;
}

[data-section="gleit"] .lf-carousel {
  width: 80%;
}

[data-section="gleit"] .lf-carousel .carousel-viewport {
  aspect-ratio: 4/3;
}

/* Gleit carousel: hero-style B/W + CI-gradient overlay */
[data-section="gleit"] .carousel-slide-bg {
  filter: grayscale(100%) brightness(0.85);
  transition: filter 0.5s ease;
}

[data-section="gleit"] .carousel-slide-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to right,
    rgba(0, 80, 150, 0.67) 0%,
    transparent 40%,
    transparent 60%,
    rgba(253, 184, 19, 0.42) 100%
  );
  pointer-events: none;
  transition: opacity 0.5s ease;
}

[data-section="gleit"] .carousel-slide:hover .carousel-slide-bg {
  filter: none;
  transform: none;
}

[data-section="gleit"] .carousel-slide:hover .carousel-slide-inner::after {
  opacity: 0;
}

/* Mobile color-on-scroll: carousel becomes colorful when section is in viewport */
@media screen and (max-width: 991px) {
  [data-section="gleit"] .lohnfertigung-carousel.color-active .carousel-slide-bg {
    filter: none;
  }
  [data-section="gleit"] .lohnfertigung-carousel.color-active .carousel-slide-inner::after {
    opacity: 0;
  }
}

/* Controls: centered below the grid */
.lf-controls {
  margin-top: 40px;
}

.lf-controls .carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* Responsive: Tablet – stack vertically */
@media screen and (max-width: 991px) {
  .lf-category {
    padding-top: 64px;
  }

  .lf-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lf-text-panel {
    padding: 28px;
  }

  .lf-text-panel .body-text {
    font-size: 16px;
  }
}

/* Responsive: Mobile */
@media screen and (max-width: 767px) {
  .lf-category {
    padding-top: 48px;
  }

  .lf-text-panel {
    padding: 24px;
  }

  .lf-text-panel .bold {
    font-size: 18px;
  }

  .lf-text-panel .body-text {
    font-size: 15px;
  }

  .lf-controls {
    margin-top: 28px;
  }
}

/* --- 22. LOHNFERTIGUNG DETAIL MODAL -------------------- */

/* "Weiterlesen" link button */
.lf-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: #005096;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: opacity 0.2s;
}

.lf-readmore:hover {
  opacity: 0.7;
}

.lf-readmore svg {
  transition: transform 0.2s;
}

.lf-readmore:hover svg {
  transform: translateX(3px);
}

/* Zusatzleistungen: half-width image wrapper */
.zusatz-img-wrap {
  width: 50%;
}

.zusatz-img-wrap .lf-carousel {
  width: 100% !important;
}

/* "Referenzen ansehen" button wrap below each service category */
.lf-ref-btn-wrap {
  margin-top: 32px;
}

/* Modal overlay */
.lf-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lf-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal panel – liquid glass, split left/right layout */
.lf-modal {
  position: relative;
  width: 1280px;
  max-width: 94vw;
  height: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  border-radius: var(--border-radius--default, 12px);
  background: rgba(245, 245, 247, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  backdrop-filter: saturate(180%) blur(30px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lf-modal-overlay.active .lf-modal {
  transform: translateY(0) scale(1);
}

/* Close button */
.lf-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.lf-modal-close:hover {
  background: rgba(0, 0, 0, 0.12);
}

/* Text-only modals (no image side) – content takes full width */
.lf-modal:not(:has(.lf-modal-image-side)) {
  width: 820px;
}
.lf-modal:not(:has(.lf-modal-image-side)) .lf-modal-content {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* Image side (left) */
.lf-modal-image-side {
  position: relative;
  height: 100%;
  flex: 1;
  min-width: 0;
  background: #e8e8ea;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
  cursor: pointer;
}

.lf-modal-image-side img.lf-modal-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lf-modal-image-side.portrait img.lf-modal-carousel-img {
  object-fit: contain;
  background: #e8e8ea;
}

.lf-modal-image-side video.lf-modal-carousel-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

/* Nav buttons */
.lf-modal-gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.lf-modal-gallery-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.lf-modal-gallery-btn.prev {
  left: 12px;
}

.lf-modal-gallery-btn.next {
  right: 12px;
}

/* Image dots indicator */
.lf-modal-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.lf-modal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.lf-modal-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.lf-modal-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* Text content side (right) */
.lf-modal-content {
  width: 440px;
  min-width: 440px;
  flex-shrink: 0;
  padding: 40px 32px;
  overflow-y: auto;
  height: 100%;
  box-sizing: border-box;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

/* Modal content typography */
.lf-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.lf-modal-subtitle {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 24px;
  margin-bottom: 8px;
}

.lf-modal-text {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(26, 26, 26, 0.7);
}

.lf-modal-text + .lf-modal-text {
  margin-top: 12px;
}

/* Responsive modal */
@media screen and (max-width: 768px) {
  .lf-modal {
    flex-direction: column;
    height: auto;
    max-height: 90vh;
    width: 95%;
    max-width: 95vw;
  }

  .lf-modal-image-side {
    height: 240px;
    flex: none;
    border-radius: 12px 12px 0 0;
  }

  .lf-modal-content {
    width: 100%;
    min-width: 0;
    flex: 1;
    min-height: 0;
    max-height: none;
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 24px 20px;
    overflow-y: auto;
  }

  /* Text-only modals: content fills full modal height */
  .lf-modal:not(:has(.lf-modal-image-side)) .lf-modal-content {
    border-top: none;
  }

  .lf-modal-title {
    font-size: 19px;
  }

  .lf-modal-gallery-btn {
    width: 30px;
    height: 30px;
  }
}

/* --- 23. ÜBER UNS – TIMELINE ACCORDION ----------------- */

/* Accordion show/hide (Bitschnau-Base has this via Webflow Interactions, we add it in CSS) */
.accordion-box .accordion-item-content-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-box .accordion-item.active .accordion-item-content-wrap {
  max-height: 1200px;
}

/* Accordion title: clickable cursor */
.accordion-box .accordion-title {
  cursor: pointer;
}

/* Accordion subtitle (Tagline/Subheading inside expanded content) */
.accordion-content .milestone-title {
  font-weight: 700;
  font-size: 15px;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Accordion icon rotation */
.accordion-box .accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-box .accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* About page section spacing */
.about-section {
  padding-bottom: var(--section-padding--default, 96px);
}

/* Intro text on about page */
.about-intro-text {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(26, 26, 26, 0.65);
  text-align: left;
  max-width: 720px;
}

/* Timeline: vertical layout with year | line+dot | accordion content */
.about-timeline {
  margin-top: 48px;
  max-width: 840px;
}

/* Each row: [year 88px] [line 32px] [content 1fr] */
.accordion-box.timeline-item {
  display: grid;
  grid-template-columns: 88px 32px 1fr;
  align-items: stretch;
  position: relative;
}

/* Year column */
.timeline-year {
  font-weight: 700;
  font-size: 15px;
  color: #005096;
  text-align: right;
  padding: 28px 16px 0 0;
  letter-spacing: 0.02em;
}

/* Middle column: vertical line + dot */
.timeline-line {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-line::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(0, 80, 150, 0.18);
  transform: translateX(-50%);
}

/* First item: line starts at the dot, not above */
.accordion-box.timeline-item:first-child .timeline-line::before {
  top: 32px;
}

/* Last item: line stops at the dot */
.accordion-box.timeline-item:last-child .timeline-line::before {
  bottom: calc(100% - 44px);
}

.timeline-dot {
  position: absolute;
  top: 32px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #005096;
  transform: translateX(-50%);
  z-index: 1;
  box-shadow: 0 0 0 4px #fff;
}

/* Right column: accordion content */
.accordion-item.timeline-content {
  padding: 20px 0 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.accordion-box.timeline-item:last-child .accordion-item.timeline-content {
  border-bottom: none;
}

.timeline-content .accordion-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
}

.timeline-content .milestone-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}

.timeline-plus {
  width: 28px;
  height: 28px;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  color: #005096;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.accordion-item.timeline-content.active .timeline-plus {
  transform: rotate(45deg);
}

/* Show/hide animation for content */
.timeline-content .accordion-item-content-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.timeline-content.active .accordion-item-content-wrap {
  max-height: 1200px;
}

.timeline-content .accordion-content {
  padding: 12px 40px 4px 0;
}

.timeline-content .accordion-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(26, 26, 26, 0.65);
}

.timeline-content .accordion-img-wrap {
  position: relative;
  width: 50%;
  padding-top: 50%; /* 1:1 aspect ratio, half width */
  overflow: hidden;
  border-radius: 4px;
  background: #f0f0f0;
}

.timeline-content .accordion-img-wrap .accordion-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.timeline-content .accordion-img-wrap:hover .accordion-img {
  transform: scale(1.03);
}

.accordion-img-caption {
  font-size: 12px;
  color: rgba(26, 26, 26, 0.4);
  margin-top: 6px;
  margin-bottom: 12px;
  font-style: italic;
}

/* Wider variant for machine lists (longer titles) */
.about-timeline.machine-list {
  max-width: 640px;
}

/* Allow section titles to use full container width (Bitschnau-Base default: 960px) */
.section-title {
  max-width: none;
}

/* Responsive: Tablet */
@media screen and (max-width: 991px) {
  .about-timeline {
    max-width: 100%;
  }
}

/* Responsive: Mobile – stack year above content */
@media screen and (max-width: 767px) {
  .accordion-box.timeline-item {
    grid-template-columns: 56px 24px 1fr;
  }

  .timeline-year {
    font-size: 13px;
    padding: 26px 10px 0 0;
  }

  .timeline-dot {
    top: 30px;
    width: 10px;
    height: 10px;
  }

  .accordion-box.timeline-item:first-child .timeline-line::before {
    top: 30px;
  }

  .accordion-box.timeline-item:last-child .timeline-line::before {
    bottom: calc(100% - 40px);
  }

  .accordion-item.timeline-content {
    padding: 18px 0 18px 16px;
  }

  .timeline-content .milestone-title {
    font-size: 15px;
  }

  .timeline-content .accordion-text {
    font-size: 14px;
  }

  .about-timeline.machine-list {
    max-width: 100%;
  }

  .about-intro-text {
    font-size: 16px;
  }
}

/* --- 24. TEAM PAGE – GLASS CARDS ----------------------- */

/* Grid: 3 columns on desktop */
.bt-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

/* Card: liquid glass panel */
.bt-team-card {
  border-radius: var(--border-radius--default, 12px);
  overflow: hidden;
  background: rgba(245, 245, 247, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bt-team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* 3:2 image container with 3D flip */
.bt-team-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 66.67%; /* 3:2 aspect ratio */
  overflow: hidden;
  perspective: 1200px;
}

.bt-team-flip-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.bt-team-card:hover .bt-team-flip-inner {
  transform: rotateY(180deg);
}

/* Disable flip for Gleitschalung section (no back images) */
[data-section="gleit"] .bt-team-card:hover .bt-team-flip-inner {
  transform: none;
}

/* 1:1 aspect ratio for Gleitschalung team images */
[data-section="gleit"] .bt-team-img-wrap {
  padding-top: 100%;
}

/* Team category heading */
.bt-team-category-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bt-aqua, #00b4d8);
  margin-top: 48px;
  margin-bottom: -28px;
}
.bt-team-category-title:first-child {
  margin-top: 40px;
}

.bt-team-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.bt-team-img-back {
  transform: rotateY(180deg);
}

/* Info section below image */
.bt-team-info {
  padding: 16px 20px 20px;
}

/* Name */
.bt-team-name {
  font-size: 16px;
  font-weight: 600;
  font-variation-settings: "wght" 600;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 8px;
}

/* Role with yellow square bullet */
.bt-team-role {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.5);
  line-height: 1.4;
}

.bt-team-role .square {
  flex-shrink: 0;
  margin-top: 3px;
  background-color: #fdb813;
}

/* Tablet: 3 columns */
@media screen and (max-width: 991px) {
  .bt-team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* Mobile: 2 columns */
@media screen and (max-width: 767px) {
  .bt-team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .bt-team-info {
    padding: 12px 14px 16px;
  }

  .bt-team-name {
    font-size: 14px;
  }

  .bt-team-role {
    font-size: 11px;
  }
}

/* Small mobile: still 2 columns but tighter */
@media screen and (max-width: 479px) {
  .bt-team-grid {
    gap: 10px;
  }

  .bt-team-info {
    padding: 10px 12px 14px;
  }
}

/* --- 25. KONTAKT PAGE ---------------------------------- */

/* Two-column grid for contact cards */
.bt-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
  max-width: 800px;
}

/* Contact card: liquid glass */
.bt-contact-card {
  border-radius: var(--border-radius--default, 12px);
  background: rgba(245, 245, 247, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 32px;
}

/* Label (ADRESSE / KONTAKT) with yellow square */
.bt-contact-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.5);
  margin-bottom: 20px;
}

.bt-contact-label .square {
  background-color: #fdb813;
}

/* Content lines */
.bt-contact-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bt-contact-line {
  font-size: 17px;
  line-height: 1.5;
  color: #1a1a1a;
}

.bt-contact-fax {
  margin-top: 8px;
  font-size: 15px;
  color: rgba(26, 26, 26, 0.5);
}

/* Contact links (email, phone) */
.bt-contact-link {
  font-size: 17px;
  line-height: 1.5;
  color: #005096;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.bt-contact-link:hover {
  opacity: 0.7;
}

/* Legal / Firmeninformationen grid */
.bt-legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  max-width: 800px;
}

.bt-legal-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bt-legal-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.4);
}

.bt-legal-value {
  font-size: 17px;
  font-weight: 500;
  color: #1a1a1a;
}

/* Responsive: Contact page */
@media screen and (max-width: 767px) {
  .bt-contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bt-contact-card {
    padding: 24px;
  }

  .bt-legal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* --- 26. KARRIERE PAGE --------------------------------- */

/* Video section: 2-column grid */
.bt-video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.bt-video-claim {
  border-radius: var(--border-radius--default, 12px);
  overflow: hidden;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bt-video-claim-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.bt-video-play-card {
  border-radius: var(--border-radius--default, 12px);
  overflow: hidden;
  background: #1a1a1a;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: opacity 0.2s ease;
}

.bt-video-play-card:hover {
  opacity: 0.85;
}

/* Career item – now a div, not a link */
.career-item {
  flex-wrap: wrap;
}

.career-item-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.career-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Location tags – subtle blue bg */
.career-tag-location {
  background: rgba(0, 80, 150, 0.08);
  color: #005096;
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 600;
}

/* PDF readmore button (same style as lf-readmore) */
.career-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #005096;
  transition: opacity 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.career-pdf-btn:hover {
  opacity: 0.7;
}

.career-pdf-btn svg {
  flex-shrink: 0;
}

/* Lehre PDF button: full btn-aqua style, not text-link */
.bt-lehre-pdf-btn .career-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 980px;
  background: #005096;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}
.bt-lehre-pdf-btn .career-pdf-btn:hover {
  background: #fdb813;
  color: #1a1a1a;
  opacity: 1;
}
.bt-lehre-pdf-btn .career-pdf-btn:active {
  background: #888;
  color: white;
}

/* Small button variant */
.btn-small {
  padding: 8px 20px !important;
  font-size: 13px !important;
}

/* WhatsApp button – nur auf Mobile sichtbar */
.btn-whatsapp {
  display: none;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: #fff;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 18px;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.btn-whatsapp:hover {
  background: #1ebe57;
}
.btn-whatsapp svg {
  flex-shrink: 0;
}
.bt-stellen-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.bt-stellen-footer-links .btn-whatsapp-inline {
  margin-left: 24px;
}
@media screen and (max-width: 767px) {
  .btn-whatsapp {
    display: inline-flex;
  }
}

/* PDF iframe inside modal */
.lf-modal-pdf {
  max-width: 900px;
  width: 95%;
  padding: 16px;
  padding-top: 48px;
  flex-direction: column;   /* iframe oben, Button darunter — statt row aus .lf-modal */
  height: auto;             /* Höhe aus Inhalt statt fixer 720px */
}

.career-pdf-iframe {
  width: 100%;
  height: 70vh;
  border: none;
  border-radius: 8px;
  display: block;
}

.career-pdf-actions {
  display: flex;
  justify-content: flex-end;
  align-self: auto;         /* Sicherheitsnetz gegen Stretch */
  padding-top: 12px;
}

/* Stellen footer – Initiativbewerbung */
.bt-stellen-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
}

/* Quote section – two columns */
.bt-quote-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.bt-quote-section.bt-quote-reverse {
  direction: rtl;
}

.bt-quote-section.bt-quote-reverse > * {
  direction: ltr;
}

.bt-quote-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bt-quote-text {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(26, 26, 26, 0.8);
  font-style: italic;
}

.bt-quote-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bt-quote-name {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
}

.bt-quote-role {
  font-size: 14px;
  font-weight: 500;
  color: rgba(26, 26, 26, 0.5);
}

.bt-quote-img-wrap {
  border-radius: var(--border-radius--default, 12px);
  overflow: hidden;
}

.bt-quote-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bt-quote-img-wrap:hover .bt-quote-img {
  transform: scale(1.03);
}

/* Lehre – 2-column grid (text left, image right) */
.bt-lehre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.bt-lehre-text {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(26, 26, 26, 0.7);
}

.bt-lehre-text-large {
  font-size: 20px;
  line-height: 1.75;
}

.bt-lehre-hero {
  border-radius: var(--border-radius--default, 12px);
  overflow: hidden;
}

.bt-lehre-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bt-lehre-hero:hover .bt-lehre-hero-img {
  transform: scale(1.03);
}

/* CTA Box – Schnuppertag */
.bt-cta-box {
  border-radius: var(--border-radius--default, 12px);
  background: rgba(245, 245, 247, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 56px 48px;
}

.bt-cta-centered {
  text-align: center;
}

.bt-cta-centered .bt-cta-content {
  margin: 0 auto;
}

.bt-cta-content {
  max-width: 640px;
}

.bt-cta-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.bt-cta-text {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(26, 26, 26, 0.7);
  margin-bottom: 32px;
}

/* Responsive: Karriere */
@media screen and (max-width: 991px) {
  .bt-video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bt-video-play-card {
    aspect-ratio: 16/9;
  }

  .bt-quote-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bt-quote-section.bt-quote-reverse {
    direction: ltr;
  }

  .bt-lehre-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .career-item-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .career-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .career-item-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media screen and (max-width: 767px) {
  .bt-quote-text {
    font-size: 16px;
  }

  .bt-cta-box {
    padding: 32px 24px;
  }

  .bt-cta-title {
    font-size: 20px;
  }

  .bt-stellen-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .bt-lehre-text-large {
    font-size: 18px;
  }

  .career-pdf-iframe {
    height: 50vh;
  }

  .lf-modal-pdf {
    padding: 12px;
    padding-top: 44px;
  }
}

/* --- 27. PRODUCT PAGES (Palettensysteme, Toolbridges) --- */

/* Trademark ® superscript in headings */
.display-heading sup,
.heading-h2 sup {
  font-size: 0.45em;
  vertical-align: super;
  line-height: 0;
}

/* Counters row */
.bt-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.bt-counter-item {
  text-align: center;
}

.bt-counter-item .metric-value {
  font-size: 48px;
  font-weight: 700;
  color: #005096;
  line-height: 1.1;
  margin-bottom: 8px;
}

.bt-counter-label {
  font-size: 15px;
  font-weight: 500;
  color: rgba(26, 26, 26, 0.5);
}

/* Feature rows – alternating image + text */
.bt-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.bt-feature-row.bt-feature-reverse {
  direction: rtl;
}

.bt-feature-row.bt-feature-reverse > * {
  direction: ltr;
}

.bt-feature-img-wrap {
  border-radius: var(--border-radius--default, 12px);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.bt-feature-img-wrap.bt-portrait {
  aspect-ratio: 3 / 4;
}

.bt-feature-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bt-feature-img-wrap:hover .bt-feature-img {
  transform: scale(1.03);
}

.bt-feature-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bt-feature-content .heading-h2 {
  font-size: 24px;
}

.bt-feature-content .body-text {
  color: rgba(26, 26, 26, 0.7);
}

/* Spec cards – technical data grid */
.bt-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bt-spec-card {
  border-radius: var(--border-radius--default, 12px);
  background: rgba(245, 245, 247, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 28px 24px;
  text-align: center;
}

.bt-spec-value {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.bt-spec-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(26, 26, 26, 0.5);
}

/* Responsive: Product pages */
@media screen and (max-width: 991px) {
  .bt-feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bt-feature-row.bt-feature-reverse {
    direction: ltr;
  }

  .bt-counters {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .bt-counter-item .metric-value {
    font-size: 36px;
  }

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

@media screen and (max-width: 767px) {
  .bt-counters {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
  }

  .bt-counter-item .metric-value {
    font-size: 40px;
  }

  .bt-specs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .bt-spec-card {
    padding: 20px 16px;
  }

  .bt-spec-value {
    font-size: 18px;
  }

  .bt-feature-content .heading-h2 {
    font-size: 20px;
  }
}

/* --- 28. VIDEO LIGHTBOX -------------------------------- */
/* Lightbox for local video files */
.video-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.video-lightbox-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.video-lightbox-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
}

.video-lightbox-content video {
  width: 100%;
  border-radius: var(--border-radius--default, 12px);
  outline: none;
  display: block;
}

.video-lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 36px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.video-lightbox-close:hover {
  opacity: 0.7;
}

/* --- 29. REFERENZEN PAGE ----------------------------------- */

/* Explorer layout (map + list side-by-side) */
.ref-explorer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.ref-explorer-map {
  position: sticky;
  top: 100px;
}

.ref-explorer-list {
  min-height: 600px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
  scroll-behavior: smooth;
}

/* Map */
.ref-map {
  width: 100%;
  height: 520px;
  border-radius: var(--border-radius--default, 12px);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Filter bar */
.ref-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ref-filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ref-filter-btn {
  padding: 8px 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ref-filter-btn:hover {
  border-color: #005096;
  color: #005096;
}

.ref-filter-btn.active {
  background: #005096;
  color: white;
  border-color: #005096;
}

.ref-filter-btn.active:hover {
  background: #003a6e;
  color: white;
  border-color: #003a6e;
}

.ref-search-wrap {
  flex: 0 0 280px;
}

.ref-search-input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 14px;
  background: rgba(245, 245, 247, 0.72);
  transition: border-color 0.25s ease;
  outline: none;
}

.ref-search-input:focus {
  border-color: #005096;
}

.ref-count {
  font-size: 14px;
  color: #888;
  margin-bottom: 16px;
}

/* Project list */
.ref-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Single project item */
.ref-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.2s ease;
}

.ref-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ref-item-header {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ref-item-header:hover {
  background: rgba(0, 80, 150, 0.03);
}

.ref-item.active .ref-item-header {
  background: rgba(0, 80, 150, 0.05);
}

.ref-item-year {
  font-size: 15px;
  font-weight: 700;
  color: #005096;
  text-align: center;
}

.ref-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ref-item-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.ref-item-location {
  font-size: 13px;
  color: #888;
}

.ref-item-span {
  font-size: 13px;
  color: #555;
  white-space: nowrap;
  padding-right: 8px;
}

.ref-item-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #aaa;
  transition: transform 0.3s ease, color 0.2s ease;
  flex-shrink: 0;
}

.ref-item.active .ref-item-toggle {
  transform: rotate(45deg);
  color: #005096;
}

/* Expanded content */
.ref-item-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.ref-item.active .ref-item-detail {
  max-height: 600px;
}
@media (max-width: 991px) {
  .ref-item.active .ref-item-detail {
    max-height: 3000px;  /* Mobile: Bilder stapeln einspaltig, brauchen mehr Platz */
  }
}

.ref-item-detail-inner {
  padding: 0 16px 24px 16px;
}

.ref-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Left: specs */
.ref-detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  align-content: start;
}

.ref-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ref-spec-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  font-weight: 600;
}

.ref-spec-value {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* Right: images */
.ref-detail-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ref-detail-img-wrap {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.ref-detail-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ref-detail-img-wrap:hover img {
  transform: scale(1.06);
}

.ref-no-images {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 245, 247, 0.72);
  border-radius: 8px;
  padding: 32px;
  color: #aaa;
  font-size: 14px;
  grid-column: 1 / -1;
}

/* PDF download button */
.ref-pdf-row {
  grid-column: 1 / -1;
  margin-top: 8px;
}
.ref-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #005096;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.ref-pdf-btn:hover {
  background: #003d73;
  color: #fff;
}
.ref-pdf-btn svg {
  flex-shrink: 0;
}


/* Country tag */
.ref-country-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ref-country-tag.tag-DE { background: rgba(0, 0, 0, 0.06); color: #555; }
.ref-country-tag.tag-AT { background: rgba(200, 16, 46, 0.08); color: #c8102e; }
.ref-country-tag.tag-CH { background: rgba(255, 0, 0, 0.06); color: #d52b1e; }
.ref-country-tag.tag-NO { background: rgba(0, 50, 100, 0.08); color: #003264; }

/* Image lightbox */
.ref-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ref-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.ref-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
}

.ref-lightbox-close,
.ref-lightbox-prev,
.ref-lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 32px;
  padding: 16px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.ref-lightbox-close:hover,
.ref-lightbox-prev:hover,
.ref-lightbox-next:hover {
  opacity: 1;
}

.ref-lightbox-close { top: 16px; right: 24px; font-size: 40px; }
.ref-lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); font-size: 48px; }
.ref-lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); font-size: 48px; }

/* Custom Leaflet marker */
.ref-marker {
  background: #005096;
  border: 3px solid white;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ref-marker.active-marker {
  background: #fdb813;
  transform: scale(1.5);
  z-index: 1000 !important;
}

/* Leaflet popup override */
.leaflet-popup-content-wrapper {
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-popup-content {
  margin: 12px 16px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.ref-popup-title {
  font-weight: 700;
  color: #005096;
  margin-bottom: 4px;
}

.ref-popup-sub {
  color: #666;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 991px) {
  .ref-explorer { grid-template-columns: 1fr; }
  .ref-detail-grid { grid-template-columns: 1fr; }
  .ref-filter-bar { flex-direction: column; align-items: stretch; }
  .ref-search-wrap { flex: 1 1 auto; }

  /* Sticky map docked below navbar on tablet/mobile */
  .ref-explorer-map {
    position: sticky;
    top: 52px;
    z-index: 90;
    margin-left: -24px;
    margin-right: -24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }
  .ref-map {
    height: 280px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .ref-explorer-list {
    padding-top: 16px;
    min-height: 0;
    max-height: none;      /* Mobile: alle Eintraege im Seitenfluss - kein Inner-Scroller */
    overflow-y: visible;
    padding-right: 0;
  }
  .ref-explorer-list,
  .ref-explorer-list * {
    overflow-anchor: none; /* verhindert Browser-Scroll-Anchoring-Spruenge beim Auf-/Zuklappen */
  }
}

@media (max-width: 767px) {
  .ref-explorer-map {
    margin-left: -16px;
    margin-right: -16px;
  }
  .ref-map { height: 240px; }
  .ref-item-header {
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    padding: 16px 12px;
  }
  .ref-item-span { display: none; }
  .ref-detail-specs { grid-template-columns: 1fr; }
  .ref-detail-images { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 479px) {
  .ref-explorer-map {
    margin-left: -12px;
    margin-right: -12px;
  }
  .ref-map { height: 200px; }
  .ref-filter-btn { padding: 6px 14px; font-size: 13px; }
  .ref-detail-images { grid-template-columns: 1fr; }
}

/* --- 30. LEGAL PAGES (Impressum, Datenschutz) -------------- */

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 96px;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legal-heading {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.legal-heading:first-child {
  margin-top: 0;
}

.legal-text {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(26, 26, 26, 0.75);
  margin-bottom: 12px;
}

.legal-text a {
  color: #005096;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 80, 150, 0.2);
  transition: border-color 0.2s ease;
}

.legal-text a:hover {
  border-color: #005096;
}

.legal-address {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(26, 26, 26, 0.75);
  margin-bottom: 16px;
}

.legal-address strong {
  color: #1a1a1a;
}

/* Info grid (Impressum data fields) */
.legal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
  margin-bottom: 24px;
  padding: 24px;
  background: rgba(245, 245, 247, 0.72);
  border-radius: var(--border-radius--default, 12px);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.legal-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legal-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  font-weight: 600;
}

.legal-value {
  font-size: 15px;
  color: #1a1a1a;
  font-weight: 500;
}

.legal-value a {
  color: #005096;
  text-decoration: none;
}

.legal-value a:hover {
  text-decoration: underline;
}

.legal-updated {
  margin-top: 48px;
  font-size: 14px;
  color: #aaa;
  font-style: italic;
}

/* Responsive: Legal pages */
@media screen and (max-width: 767px) {
  .legal-content {
    padding-bottom: 64px;
  }

  .legal-info-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .legal-heading {
    font-size: 18px;
    margin-top: 36px;
  }
}

/* --- 31. WEICHE (Division Selector / Landing) -------------- */

.weiche-body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #0a0a0a;
}

/* Split screen container */
.weiche-split {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Panel – each division */
.weiche-panel {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 64px 48px;
  text-decoration: none;
  color: white;
  overflow: hidden;
  cursor: pointer;
}

/* Background image */
.weiche-panel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark overlay gradient */
.weiche-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.1) 100%
  );
  transition: background 0.5s ease;
}

/* Content block */
.weiche-panel-content {
  position: relative;
  z-index: 2;
  max-width: 460px;
}

.weiche-panel-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.weiche-panel-title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 16px 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Force line break after "Gleit- und" */
.weiche-title-line {
  display: block;
}

.weiche-panel-desc {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 28px 0;
  max-width: 380px;
}

.weiche-panel-desc sup {
  font-size: 0.6em;
}

/* CTA arrow button */
.weiche-panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.35s ease;
}

.weiche-panel-cta-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.weiche-panel-cta svg {
  transition: transform 0.35s ease;
}

/* Address line per panel */
.weiche-panel-address {
  margin-top: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.01em;
}

/* HOVER EFFECTS */

/* Background zoom on hover */
.weiche-panel:hover .weiche-panel-bg {
  transform: scale(1.06);
}

/* Overlay reveals more image on hover */
.weiche-panel:hover .weiche-panel-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

/* CTA button glow on hover */
.weiche-panel:hover .weiche-panel-cta {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.weiche-panel:hover .weiche-panel-cta svg {
  transform: translateX(4px);
}

/* Color accent on hover – Metall = CI blue, Gleit = CI yellow */
.weiche-panel-metall:hover .weiche-panel-cta {
  background: rgba(0, 80, 150, 0.4);
  border-color: rgba(0, 80, 150, 0.5);
}

.weiche-panel-gleit:hover .weiche-panel-cta {
  background: rgba(253, 184, 19, 0.35);
  border-color: rgba(253, 184, 19, 0.5);
}

/* Dim the OTHER panel on hover – smooth fade in/out */
.weiche-panel {
  transition: filter 0.6s ease, opacity 0.6s ease;
}

.weiche-split:hover .weiche-panel:not(:hover) {
  filter: brightness(0.45);
}

/* Divider line between panels */
.weiche-panel-metall::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 0;
  bottom: 15%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 3;
}

/* Legal links per panel (ECG §5) */
.weiche-panel-legal {
  margin-top: 8px;
  display: flex;
  gap: 16px;
}

.weiche-legal-link {
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.weiche-legal-link:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   MASCHINEN & ANLAGEN – Kategorie-Grid (Lohnfertigung)
   ============================================================ */

/* Maschinen-Section nutzt den normalen Page-Hintergrund */

.maschinen-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.maschinen-accordion .accordion-box {
  background: transparent;
}

.maschinen-accordion .accordion-title {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.maschinen-accordion .accordion-item.active .accordion-title {
  border-bottom-color: rgba(0, 80, 150, 0.35);
}

.maschinen-accordion .accordion-title .timeline-plus {
  margin-left: auto;
  font-size: 28px;
  font-weight: 300;
  color: rgba(0, 80, 150, 1);
  transition: transform 0.3s ease;
}

.maschinen-accordion .accordion-item.active .timeline-plus {
  transform: rotate(45deg);
}

.maschinen-accordion .accordion-item-content-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.maschinen-accordion .accordion-item.active .accordion-item-content-wrap {
  max-height: 4000px;
}

.maschinen-accordion .accordion-content {
  padding: 8px 0 16px 0;
}

.maschinen-cat-num {
  font-family: var(--heading-font, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: rgba(253, 184, 19, 1);
  letter-spacing: 0.05em;
}

.maschinen-cat-title {
  font-family: var(--heading-font, 'Inter', sans-serif);
  font-size: 26px;
  font-weight: 600;
  color: #0b0b0b;
  letter-spacing: -0.01em;
}

.maschinen-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.maschinen-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: padding-left 0.3s ease, background-color 0.3s ease;
}

.maschinen-item:last-child {
  border-bottom: none;
}

.maschinen-item:hover {
  padding-left: 12px;
  background-color: rgba(0, 80, 150, 0.03);
}

.maschinen-item-name {
  font-family: var(--heading-font, 'Inter', sans-serif);
  font-size: 17px;
  font-weight: 600;
  color: #0b0b0b;
  line-height: 1.3;
  margin-bottom: 4px;
}

.maschinen-item-sub {
  font-size: 13px;
  font-weight: 500;
  color: rgba(0, 80, 150, 1);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.maschinen-item-desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.65);
}

@media screen and (max-width: 991px) {
  .maschinen-cat-title {
    font-size: 22px;
  }
  .maschinen-accordion .accordion-title {
    gap: 12px;
    padding: 18px 0;
  }
}

/* === RESPONSIVE: Weiche === */

@media screen and (max-width: 991px) {
  .weiche-split {
    flex-direction: column;
  }

  .weiche-panel {
    min-height: 50vh;
    min-height: 50dvh;
    padding: 48px 32px;
  }

  .weiche-panel-metall::after {
    top: auto;
    right: 15%;
    bottom: 0;
    left: 15%;
    width: auto;
    height: 1px;
  }

  .weiche-panel-title {
    font-size: 36px;
  }
}

@media screen and (max-width: 767px) {
  .weiche-panel {
    padding: 36px 24px;
    min-height: 48vh;
    min-height: 48dvh;
  }

  .weiche-panel-title {
    font-size: 30px;
  }

  .weiche-panel-desc {
    font-size: 15px;
  }

  .weiche-panel-address {
    font-size: 11px;
  }

  .weiche-legal-link {
    font-size: 10px;
  }
}

@media screen and (max-width: 479px) {
  .weiche-panel {
    padding: 32px 20px;
    min-height: 46vh;
    min-height: 46dvh;
  }

  .weiche-panel-title {
    font-size: 26px;
  }

  .weiche-panel-desc {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .weiche-panel-cta {
    padding: 10px 22px;
  }

  .weiche-panel-badge {
    font-size: 11px;
    padding: 3px 12px;
    margin-bottom: 14px;
  }

  .weiche-panel-address {
    font-size: 10px;
    margin-top: 16px;
  }

  .weiche-legal-link {
    font-size: 9px;
  }

  .weiche-panel-legal {
    gap: 12px;
  }
}

/* --- 32. VORTEILE KEYWORDS (Task 11) ----------------------- */
.vorteile-keywords {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.vorteile-keyword-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
}

.vorteile-keyword-item .maschinen-cat-num {
  flex-shrink: 0;
}

.vorteile-keyword-item .maschinen-cat-title {
  font-size: 18px;
  line-height: 1.3;
}

@media screen and (max-width: 991px) {
  .vorteile-keywords {
    grid-template-columns: repeat(2, 1fr);
  }
  .vorteile-keyword-item .maschinen-cat-title {
    font-size: 16px;
  }
}

@media screen and (max-width: 479px) {
  .vorteile-keywords {
    grid-template-columns: 1fr;
  }
}

/* --- 33. SERVICE PHOTO GRID (Task 12) ---------------------- */
.service-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.service-photo-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.service-photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0) 100%);
  transition: background 0.3s ease;
}

.service-photo-card:hover::after {
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.05) 100%);
}

.service-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.service-photo-card:hover img {
  transform: scale(1.05);
}

.service-photo-card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 1;
  font-family: var(--heading-font, 'Inter', sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

@media screen and (max-width: 991px) {
  .service-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-photo-card-title {
    font-size: 18px;
    padding: 16px;
  }
}

@media screen and (max-width: 479px) {
  .service-photo-grid {
    grid-template-columns: 1fr;
  }
  .service-photo-card-title {
    font-size: 16px;
  }
}

/* --- 34. SERVICE TILE GRID --------------------------------- */
.service-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.service-tile {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
}
.service-tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) brightness(0.7);
  transition: filter 0.5s ease, transform 0.5s ease;
}
.service-tile:hover .service-tile-bg {
  filter: none;
  transform: scale(1.05);
}

/* Mobile color-on-scroll: service tiles become colorful when in viewport center */
@media screen and (max-width: 991px) {
  .service-tile.color-active .service-tile-bg {
    filter: none;
    transform: scale(1.02);
  }
}
.service-tile-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  z-index: 1;
}
/* Keyword highlights under system section — numbered list style */
.keyword-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
}
.keyword-tag {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,80,150,.12);
  border-radius: 0;
  font-family: var(--heading-font, 'Inter', sans-serif);
  font-size: 22px;
  font-weight: 600;
  color: #0b0b0b;
  letter-spacing: -0.01em;
  background: transparent;
  transition: padding-left .3s ease, color .3s ease;
  counter-increment: keyword-counter;
}
.keyword-tag:first-child { border-top: 1px solid rgba(0,80,150,.12); }
.keyword-tag::before {
  content: counter(keyword-counter, decimal-leading-zero);
  font-family: var(--heading-font, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: rgba(253, 184, 19, 1);
  letter-spacing: 0.05em;
  min-width: 28px;
  flex-shrink: 0;
}
.keyword-grid { counter-reset: keyword-counter; }
.keyword-tag:hover {
  padding-left: 12px;
  color: #005096;
}
@media (max-width: 768px) {
  .service-tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .service-tile-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 35. PRINT --------------------------------------------- */
@media print {
  .navbar-wrapper, .footer, .mega-menu { display: none; }
}

/* Karriere 2-col responsive */
@media screen and (max-width: 768px) {
  .about-section [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* Timeline-Bilder (Geschichte/Meilensteine) auf Mobile größer */
@media screen and (max-width: 768px) {
  .timeline-content .accordion-img-wrap {
    width: 100%;
    padding-top: 75%; /* 4:3 statt 1:1, volle Textbreite */
  }
}

/* Karriere checklist items */
.karriere-checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.karriere-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
  color: #1a1a1a;
}
.karriere-check-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}
