/* Mega-Log classic: Ergänzungen zum 1:1 übernommenen OnePage-CSS (assets/css/onepage.css).
   Nur was OnePage sonst per JavaScript erledigt hat oder was neu dazukommt. */

/* Kopf: Desktop ab 992 px, darunter der Handy-Kopf mit Burger (OnePage schaltet per JS um) */
.ml-head-mobile { display: none !important; }
@media (max-width: 991px) {
  .ml-head-desktop { display: none !important; }
  .ml-head-mobile { display: flex !important; }
}
.con-kit-megamenu { pointer-events: none; }
.con-kit-megamenu--active { pointer-events: all; }
body.con-kit-component-modal--open, body.ml-legal-open { overflow: hidden; }

/* Video: Vorschaubild + Zwei-Klick */
.ml-video { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; background: #0d1b2a center / cover no-repeat; cursor: pointer; border-radius: inherit; overflow: hidden; }
.ml-video::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .28); }
.ml-video__play { position: relative; width: 68px; height: 48px; border: 0; border-radius: 12px; background: #ff0033; cursor: pointer; }
.ml-video__play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.ml-video__note { position: relative; margin: 0; padding: 0 16px; color: #fff; font: 13px/1.4 var(--font-kit-text-font, system-ui, sans-serif); text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.ml-video__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.con-kit-component-video { position: relative; }

/* Zwei-Klick-Platzhalter (ShipsGo); Höhe wie live: iframe 650 + Zeilenabstand = 658 */
.ml-2click { width: 100%; min-height: 220px; display: flex; align-items: center; justify-content: center; padding: 32px 16px; box-sizing: border-box;
  background: #f2f5f8; border: 1px dashed #b8c4cf; border-radius: 8px; }
.ml-2click[data-2click="shipsgo"] { min-height: 658px; }
.ml-2click__box { max-width: 460px; text-align: center; font-family: var(--font-kit-text-font, system-ui, sans-serif); }
.ml-2click__note { margin: 0 0 16px; color: #51606d; font-size: 14px; line-height: 1.5; }
.ml-2click__btn { appearance: none; border: 0; border-radius: 4px; background: var(--color-kit-key1, #006ab3); color: #fff; padding: 14px 28px;
  font: 600 16px/1 var(--font-kit-header-font, system-ui, sans-serif); cursor: pointer; }
.ml-2click__btn:hover { filter: brightness(1.08); }

/* Formular */
.ml-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.ml-form-msg { margin: 12px 0 0; font: 14px/1.5 var(--font-kit-text-font, system-ui, sans-serif); }
.ml-form-msg--error { color: #b3261e; }
.ml-form-thanks { padding: 40px 8px; text-align: center; font-family: var(--font-kit-text-font, system-ui, sans-serif); }
.ml-form-thanks__title { margin: 0 0 12px; font: 700 26px/1.25 var(--font-kit-header-font, system-ui, sans-serif); color: rgb(25, 25, 25); }
.ml-form-thanks__text { margin: 0; white-space: pre-line; color: rgba(25, 25, 25, .7); font-size: 16px; line-height: 1.6; }

/* Footer-Credit GustoGang (Höhe wie der ersetzte Baukasten-Credit live: 68 px) */
.ml-credit { min-height: 68px; box-sizing: border-box; }
.ml-credit a { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; text-decoration: none; }
.ml-credit__label { font: 600 12px/1 var(--font-kit-text-font, system-ui, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: rgba(25, 25, 25, .5); }
.ml-credit img { display: block; width: 120px; height: auto; }

/* Rechtstexte-Pop-up */
.ml-legal[hidden] { display: none; }
.ml-legal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 24px 16px; box-sizing: border-box; }
.ml-legal__backdrop { position: absolute; inset: 0; background: rgba(7, 20, 31, .6); }
.ml-legal__panel { position: relative; width: 100%; max-width: 1000px; max-height: 100%; display: flex; flex-direction: column; background: #fff;
  border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; }
.ml-legal__tabs { display: flex; gap: 8px; padding: 14px 64px 14px 20px; border-bottom: 1px solid #e6ebf0; }
.ml-legal__tabs a { padding: 8px 14px; border-radius: 4px; color: var(--color-kit-key1, #006ab3); text-decoration: none;
  font: 600 15px/1 var(--font-kit-header-font, system-ui, sans-serif); }
.ml-legal__tabs a.is-active { background: #eaf3fa; }
.ml-legal__close { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1;
  cursor: pointer; color: #191919; }
.ml-legal__scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ml-legal__scroll section { min-height: 0 !important; }

/* 404 */
.ml-404 { padding: 120px 24px; background: #fff; }
.ml-404__inner { max-width: 760px; margin: 0 auto; font-family: var(--font-kit-text-font, system-ui, sans-serif); color: rgb(25, 25, 25); }
.ml-404__code { margin: 0 0 8px; color: var(--color-kit-key1, #006ab3); font: 700 18px/1 var(--font-kit-header-font, system-ui, sans-serif); }
.ml-404 h1 { margin: 0 0 16px; font: 700 clamp(28px, 4vw, 44px)/1.2 var(--font-kit-header-font, system-ui, sans-serif); }
.ml-404__links { display: flex; flex-wrap: wrap; gap: 12px; }
.ml-404__links a { padding: 14px 22px; border-radius: 4px; background: var(--color-kit-key1, #006ab3); color: #fff; text-decoration: none; font-weight: 600; }

/* Handy: zwei Strich-Listen untereinander → eine Linie (site.js joinLists) */
.ml-list-joined .con-kit-component-grid-list-item--first-row .con-kit-component-list-item::before { border-top-color: transparent; }

/* Formular: lange Leistungsnamen (z. B. „Transportversicherung“) trennen statt überlaufen */
/* nur wenn der Text sonst überläuft (site.js setzt die Klasse), damit kurze Wörter ungetrennt bleiben */
.one-kit-form-check-list .option-label__value.ml-hyphen { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
/* Handy: Platzhalter im Telefonfeld passt sonst nicht ganz hinein */
@media (max-width: 480px) {
  input[type="tel"] { padding-right: 10px !important; }
  input[type="tel"]::placeholder { font-size: 13px; }
}

/* Google-Bewertungen unter „Unsere Kunden lieben uns.“ (Karten aus dem Startseiten-Baustein, build.py reviews_html) */
.ml-reviews { width: 100%; text-align: start; }

/* Handy: Presse-Zitate untereinander statt Slider (build.py stack_sliders) */
.ml-slider-stack .con-kit-component-slider__items { position: relative !important; transform: none !important; flex-direction: column; height: auto !important; }
.ml-slider-stack .con-kit-component-slider-item { width: 100% !important; max-width: 100% !important; flex: none !important; opacity: 1 !important; }
.ml-slider-stack .con-kit-component-slider-item + .con-kit-component-slider-item { margin-top: 48px; }
.ml-slider-stack .con-kit-component-slider-arrow, .ml-slider-stack [class*="slider-pagination"] { display: none !important; }

/* Seefracht-Funnel kompakter (site.js setzt ml-funnel / ml-half / ml-choices, 03.12.2026):
   Desktop paarweise nebeneinander, Auswahl deutlich markiert, Wunschtermin-Feld bei Bedarf */
.ml-funnel { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.ml-funnel > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 768px) {
  .ml-funnel > .ml-half { grid-column: auto; }
  /* der Kartenrand steckt in jedem Feld (48 px): zur Mitte hin nur halber Abstand */
  .ml-funnel > .ml-half-l { padding-right: 10px !important; }
  .ml-funnel > .ml-half-r { padding-left: 10px !important; }
}
.ml-funnel .option-item { cursor: pointer; transition: box-shadow .15s ease, background-color .15s ease; }
.ml-funnel .option-item--selected { box-shadow: inset 0 0 0 2px var(--color-kit-key1, #2c6ab0); background-color: color-mix(in srgb, var(--color-kit-key1, #2c6ab0) 8%, transparent); }
.ml-funnel .option-item--selected .option-label__title { color: var(--color-kit-key1, #2c6ab0); }
.ml-termin { margin-top: 12px; }
.ml-termin[hidden] { display: none !important; }
@media (max-width: 767px) {
  /* Handy: Container 2 × 2, Zusatzleistungen als fließende Chips, Vor- und Nachname nebeneinander */
  .ml-funnel .one-kit-form-selectable-items--type-checklist .options-list { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px !important; }
  .ml-funnel .one-kit-form-selectable-items--type-checklist .option-item { width: auto !important; margin: 0 !important; }
  .ml-funnel .one-kit-form-selectable-items--type-chips .options-list { flex-direction: row !important; flex-wrap: wrap !important; gap: 8px !important; }
  .ml-funnel .one-kit-form-selectable-items--type-chips .option-item { margin: 0 !important; min-height: 0 !important; height: auto !important; }
  .ml-funnel .one-kit-form-selectable-items--type-chips .option-label { padding: 8px 12px !important; }
  .ml-funnel .one-kit-form-selectable-items--type-chips .option-label__title { font-size: 14px !important; line-height: 1.3 !important; }
  .ml-funnel .con-kit-atom-form-name { flex-wrap: nowrap !important; gap: 12px !important; }
  .ml-funnel .con-kit-atom-form-name > label { flex: 1 1 0 !important; min-width: 0; width: auto !important; }
}
