/* Eigene Ergänzungen zum OnePage-CSS (nur das Nötigste, damit der Nachbau ohne OnePage-Laufzeit funktioniert).
   Diese Datei pflegt man von Hand; scripts/umbauen.mjs überschreibt nur public/css/onepage/ und schriften.css. */

/* OnePage zeigt bis 992 px Breite die Handy-Fassung der Seite, darüber die Desktop-Fassung (eigene Abschnitte je Gerät). */
.ex-ansicht--handy { display: none; }
@media (max-width: 992px) {
  .ex-ansicht--desktop { display: none; }
  .ex-ansicht--handy { display: block; }
}

/* Video: Vorschaubild + Play-Knopf, der Player lädt erst nach dem Klick */
.ex-video {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; cursor: pointer;
  background: #0b0f17; display: block; overflow: hidden; border-radius: inherit;
}
.ex-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-video__knopf { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); transition: transform .15s ease; }
.ex-video__knopf svg { width: 100%; height: 100%; display: block; }
.ex-video__kreis { fill: #212121; fill-opacity: .8; transition: fill .15s ease, fill-opacity .15s ease; }
.ex-video:focus-visible { outline: 3px solid #64acff; outline-offset: 2px; }
.ex-video--rahmen { position: relative; aspect-ratio: 16 / 9; height: auto; }
.con-kit-component-video-player { position: absolute; inset: 0; }
.ex-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: inherit; }
.ex-iframe-huelle { position: absolute; inset: 0; z-index: 3; border-radius: inherit; overflow: hidden; background: #000; }

/* Video-Vorschau wie die eingebetteten Player im Original */
.ex-video__titel {
  position: absolute; left: 0; right: 0; top: 0; padding: 14px 16px 28px; text-align: left;
  font: 500 15px/1.3 Roboto, Arial, sans-serif; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); text-shadow: 0 0 2px rgba(0,0,0,.5);
}
.ex-video[data-ex-video="youtube"] .ex-video__kreis { fill: #f00; fill-opacity: 1; }
.ex-video[data-ex-video="youtube"]:hover .ex-video__kreis { fill: #c00; }
.ex-video[data-ex-video="wistia"] .ex-video__knopf { width: 25%; max-width: 125px; min-width: 64px; height: auto; aspect-ratio: 125 / 80; background: rgba(43,145,182,.85); }
.ex-video[data-ex-video="wistia"] .ex-video__knopf svg { display: none; }
.ex-video[data-ex-video="wistia"] .ex-video__knopf::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent #fff; }
.ex-video[data-ex-video="wistia"]:hover .ex-video__knopf { background: rgba(43,145,182,1); }

/* Handy-Menü (OnePage-Burger, statisch nachgebaut) */
.ex-burger[hidden] { display: none !important; }
.ex-burger .con-kit-component-burger-menu { position: fixed; inset: 0; z-index: 10000; overflow-y: auto; }
.ex-burger__hinten { position: fixed; inset: 0; z-index: 9999; }
html.ex-menue-offen, html.ex-menue-offen body { overflow: hidden; }

/* Akkordeon */
.con-kit-component-list-item-accordion__body { overflow: hidden; transition: height .3s ease; }
.con-kit-component-list-item-accordion__head { cursor: pointer; }

/* Formular (Auswahlfelder wie das OnePage-Dropdown: unsichtbares natives select über der OnePage-Optik) */
.ex-select { position: relative; }
.ex-select select {
  appearance: none; -webkit-appearance: none; width: 100%; height: 100%; box-sizing: border-box; margin: 0; cursor: pointer;
  font: inherit; border: 0; outline: 0; position: absolute; inset: 0; opacity: 0; z-index: 2;
}
.ex-select select:focus-visible + .con-kit-component-dropdown__control { outline: 2px solid rgb(43,145,182); outline-offset: 1px; }
.ex-select .con-kit-component-dropdown__single-value { color: rgb(var(--color-text)); }
.ex-formular-hinweis { margin: 24px auto 0; max-width: 600px; padding: 16px 20px; border-radius: 8px; background: #fff7d6; color: #5a4600; font: 600 16px/1.5 'Open Sans', sans-serif; text-align: center; }
.ex-formular-hinweis a { color: inherit; }

/* Karte als festes Bild (statt MapLibre mit Kacheln von Dritten) */
.ex-karte { position: absolute; inset: 0; display: block; border-radius: inherit; overflow: hidden; }
.ex-karte img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-video[data-ex-video="wistia"] img { object-fit: contain; }

/* Video, das beim Anbieter nicht mehr existiert: so wie es das Original anzeigt („Media not found.“) */
.ex-video-fehlt { position: absolute; inset: 0; background: #fff; border-radius: inherit; overflow: hidden; }
.ex-video-fehlt span { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: min(296px, 86%); box-sizing: border-box; padding: 12px 8px; background: #4d4d4d; border-radius: 3px; color: #fff; font: 14px/1.2 "Times New Roman", Times, serif; text-align: center; }
.ex-video-fehlt.ex-video--rahmen { position: relative; aspect-ratio: 16 / 9; }

/* Video, das im Original stumm automatisch läuft (Startseite/Industrie oben): eigene MP4, stumm in Schleife; Klick = mit Ton von vorn.
   Wie im YouTube-Player des Originals: schwarzer Rahmen, Bild eingepasst. */
.ex-video-lokal { position: absolute; inset: 0; background: #000; border-radius: inherit; overflow: hidden; cursor: pointer; }
.ex-video-lokal__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.ex-video-lokal__ton {
  position: absolute; right: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 9px;
  border: 0; border-radius: 17px; background: rgba(0,0,0,.62); color: #fff; font: 600 13px/1 "Open Sans", Arial, sans-serif; cursor: pointer;
  transition: background .2s ease;
}
.ex-video-lokal__ton svg { width: 20px; height: 20px; display: block; }
.ex-video-lokal:hover .ex-video-lokal__ton { background: rgba(0,0,0,.85); }
.ex-video-lokal__ton:focus-visible { outline: 3px solid #64acff; outline-offset: 2px; }
.ex-video-lokal--ton { cursor: auto; }
.ex-video-lokal--ton .ex-video-lokal__ton { display: none; }

/* Logo-Leiste „Über 250+ Unternehmen …“ (bewusst schöner als das Collage-Bild im Original): dieselben Logos als ruhiges Endlos-Band
   in zwei gegenläufigen Reihen, einheitlich (optisch gleich groß), leicht gedämpft, beim Darüberfahren voll weiß und angehalten.
   Bei „weniger Bewegung“ steht alles still und bricht als zentrierte Zeilen um. */
.ex-logos {
  --logo-h: 40px; --logo-abstand: clamp(28px, 3.2vw, 52px);
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 44px 0 92px; overflow: hidden; width: 100%; box-sizing: border-box; text-align: left;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.ex-logos__reihe { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: ex-logos-lauf var(--dauer, 70s) linear infinite; will-change: transform; }
.ex-logos__reihe[data-richtung="rechts"] { animation-direction: reverse; }
.ex-logos__reihe li { flex: none; display: flex; align-items: center; justify-content: center; height: calc(var(--logo-h) * 1.75); padding: 0 var(--logo-abstand); }
.ex-logos__reihe img { display: block; width: auto; height: calc(var(--logo-h) * var(--f, 1)); max-width: calc(var(--logo-h) * 5.4); object-fit: contain; opacity: .74; transition: opacity .35s ease; }
.ex-logos__reihe li:hover img { opacity: 1; }
.ex-logos:hover .ex-logos__reihe { animation-play-state: paused; }
@keyframes ex-logos-lauf { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@media (max-width: 992px) {
  .ex-logos { --logo-h: 28px; --logo-abstand: 22px; gap: 10px; padding: 28px 0 60px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .ex-logos { -webkit-mask-image: none; mask-image: none; padding-left: 16px; padding-right: 16px; }
  .ex-logos { align-items: stretch; }
  .ex-logos__reihe { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .ex-logos__reihe li[aria-hidden] { display: none; }
}
.ex-video-lokal__film::cue { background: rgba(8,8,8,.75); color: #fff; font: 400 15px/1.35 Roboto, Arial, sans-serif; }
@media (max-width: 992px) { .ex-video-lokal__film::cue { font-size: 11px; } }
