/* ── EURODRILL Site-Header ───────────────────────────────────────────────────── */

/* ── Elementor-Wrapper: nimmt keinen Platz im Dokument-Flow ein ──────────────── */
/* Da #ed-site-header position:fixed hat, dürfen alle Wrapper-Elemente            */
/* keine Layout-Höhe erzeugen – sonst entsteht ein Gap oben auf der Seite.        */

/* Elementor Theme Builder outer <header> */
.elementor-location-header {
  height: 0 !important;
  overflow: visible !important;
}

/* Elementor Flexbox-Container + Inner (e-con hat padding: 10px, erzeugt 20px Gap) */
.elementor-location-header .e-con,
.elementor-location-header .e-con-inner {
  padding: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: visible !important;
}

/* Widget-Wrapper */
.elementor-widget-ed-site-header,
.elementor-widget-ed-site-header .elementor-widget-container {
  height: 0 !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── Kein automatischer Abstand oben (Content soll hinter dem fixen Header liegen) */
body { padding-top: 0 !important; }
.site-main,
#content,
.site-content { padding-top: 0 !important; }

/* ── WordPress Admin-Bar: Header folgt ihr nach oben ─────────────────────────── */
.admin-bar #ed-site-header { top: 32px !important; }
@media screen and (max-width: 782px) {
  .admin-bar #ed-site-header { top: 46px !important; }
}

/* ── Logo: beide Varianten gestapelt, Sichtbarkeit über data-hero-dark + Scroll ─ */
.ed-header-logo-link {
  display: grid;
  align-items: center;
  height: 50px;
  max-height: 50px;
  overflow: hidden;
  text-decoration: none;
}
.ed-site-header .ed-header-logo,
.ed-header-logo-link img.ed-header-logo {
  grid-area: 1 / 1;
  display: block;
  height: 50px !important;
  max-height: 50px !important;
  width: auto !important;
  max-width: none !important;
  transition: opacity .25s;
}
/* Default: dunkles Logo (sichtbar auf Weiß, bevor JS den Hero erkennt) */
.ed-header-logo--light { display: none !important; }
.ed-site-header[data-hero-dark="1"]:not(.is-scrolled) .ed-header-logo--light {
  display: block !important;
}
.ed-site-header[data-hero-dark="1"]:not(.is-scrolled) .ed-header-logo--dark {
  display: none !important;
}
.ed-header-wordmark {
  font-family: var(--ed-font-expanded);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .1em;
  color: var(--ed-ink);
  text-transform: uppercase;
}
.ed-site-header[data-hero-dark="1"]:not(.is-scrolled) .ed-header-wordmark {
  color: #fff;
}

/* ── KONTAKT: Standard dunkel, auf dunklem Hero weiß ─────────────────────────── */
.ed-nav-contact {
  font: 700 13px/1 var(--ed-font-sans);
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ed-ink);
  transition: color .25s;
  position: relative;
}

/* ── sc-navlink: KONTAKT Hover → blau (wie Design .sc-navlink:hover) ─────────── */
.sc-navlink { position: relative; transition: color .25s; }
.sc-navlink:hover { color: #3E86C4 !important; }

/* ── Dark-Hero-Modus: Nav-Farben weiß erzwingen (CSS-Fallback gegen Theme) ───── */
.ed-site-header[data-hero-dark="1"]:not(.is-scrolled) #ed-nav-contact {
  color: #ffffff !important;
}

/* ── Scroll-State: solid + backdrop-blur ─────────────────────────────────────── */
/* Header ist jetzt immer weiß — keine transparente/blur-Phase mehr */
#ed-site-header {
  background: #fff;
  box-shadow: 0 1px 0 rgba(20,58,94,.10);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.ed-site-header.is-scrolled {
  background: #fff !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(20,58,94,.10) !important;
  border-bottom-color: rgba(20,58,94,.08) !important;
}
/* Nach Scrollen: KONTAKT → dunkel; Hamburger-Button bleibt immer rot */
.ed-site-header.is-scrolled #ed-nav-contact {
  color: var(--ed-ink) !important;
}
.ed-site-header #ed-menu-btn {
  color: #CC2B1D !important; /* Dots + MENÜ: immer rot (wie Design menuBtnStyle) */
}

/* ── Dark-Hero-Modus deaktiviert: Logo und Farben immer dunkel ───────────────── */
.ed-site-header[data-hero-dark="1"]:not(.is-scrolled) .ed-header-logo--light { display: none !important; }
.ed-site-header[data-hero-dark="1"]:not(.is-scrolled) .ed-header-logo--dark  { display: block !important; }
.ed-site-header[data-hero-dark="1"]:not(.is-scrolled) .ed-header-wordmark    { color: var(--ed-ink); }
.ed-site-header[data-hero-dark="1"]:not(.is-scrolled) #ed-nav-contact        { color: var(--ed-ink) !important; }
.ed-site-header[data-hero-dark="1"]:not(.is-scrolled) .ed-lang__btn,
.ed-site-header[data-hero-dark="1"]:not(.is-scrolled) .ed-lang__sep          { color: var(--ed-muted); }
.ed-site-header[data-hero-dark="1"]:not(.is-scrolled) .ed-lang__btn.is-active { color: var(--ed-ink); }
.ed-site-header[data-hero-dark="1"]:not(.is-scrolled) .ed-lang__btn:hover,
.ed-site-header[data-hero-dark="1"]:not(.is-scrolled) .ed-lang__btn:focus,
.ed-site-header[data-hero-dark="1"]:not(.is-scrolled) .ed-lang__btn:active   { color: #3E86C4 !important; }

.ed-header-nav { gap: clamp(12px, 2.4vw, 34px) !important; }
@media (max-width: 560px) {
  .ed-header-nav { gap: 12px !important; }
}

/* Gleiche Schrift und Zeile wie KONTAKT. Theme-Button-Hover (rosa) aus. */
.ed-lang {
  display: flex;
  align-items: center;
  gap: 0.4em;
}
#ed-site-header .ed-lang__btn,
#ed-site-header .ed-lang__sep {
  font: 700 13px/1 var(--ed-font-sans) !important;
  letter-spacing: .13em !important;
  text-transform: uppercase;
}
#ed-site-header .ed-lang__sep {
  letter-spacing: 0 !important;
  color: var(--ed-muted);
}
#ed-site-header a.ed-lang__btn {
  text-decoration: none;
  cursor: pointer;
}
#ed-site-header .ed-lang__btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  cursor: default;
  color: var(--ed-muted);
}
#ed-site-header .ed-lang__btn.is-active { color: var(--ed-ink); }
#ed-site-header .ed-lang__btn:hover,
#ed-site-header .ed-lang__btn:focus,
#ed-site-header .ed-lang__btn:focus-visible,
#ed-site-header .ed-lang__btn:active {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: none;
  color: #3E86C4 !important;
}
#ed-site-header[data-hero-dark="1"]:not(.is-scrolled) .ed-lang__btn,
#ed-site-header[data-hero-dark="1"]:not(.is-scrolled) .ed-lang__sep {
  color: rgba(255, 255, 255, .55);
}
#ed-site-header[data-hero-dark="1"]:not(.is-scrolled) .ed-lang__btn.is-active {
  color: #fff;
}
#ed-site-header[data-hero-dark="1"]:not(.is-scrolled) .ed-lang__btn:hover,
#ed-site-header[data-hero-dark="1"]:not(.is-scrolled) .ed-lang__btn:focus,
#ed-site-header[data-hero-dark="1"]:not(.is-scrolled) .ed-lang__btn:active {
  background: none !important;
  background-color: transparent !important;
  color: #fff !important;
}

/* ── Hamburger-Hover: Dots spreizen (sc-menubtn wie Design) ─────────────────── */
.sc-menubtn:hover .sc-dot:nth-child(1) { transform: translateX(-2px); }
.sc-menubtn:hover .sc-dot:nth-child(3) { transform: translateX(2px); }

/* ── Mega-Menü ───────────────────────────────────────────────────────────────── */
#ed-mega-menu {
  display: flex !important;
  flex-direction: column !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
}
#ed-mega-menu.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Sub-Links Hover: blauer Akzent-Strich + Padding-Shift */
.ed-mega-sub::before {
  content: "";
  position: absolute;
  left: -14px; top: 50%;
  width: 0; height: 1px;
  background: var(--ed-blue);
  transition: width .25s;
  transform: translateY(-50%);
}
.ed-mega-sub:hover {
  color: #fff !important;
  padding-left: 6px;
}
.ed-mega-sub:hover::before { width: 8px; }

/* Mega-Menü: Schraffur füllt die volle Scroll-Höhe (nicht nur den Viewport) */
.ed-mega-shell {
  position: relative;
  min-height: 100%;
  width: 100%;
  flex: 1 0 auto;
  box-sizing: border-box;
}
.ed-mega-hatch {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(62, 134, 196, .10) 0 1.5px,
    transparent 1.5px 9px
  );
  pointer-events: none;
}
.ed-mega-body {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 112px 48px 96px;
  box-sizing: border-box;
}
.ed-mega-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 56px;
}
.ed-mega-claim {
  display: grid;
  grid-template-columns: 1fr;
  font-family: var(--ed-font-expanded);
  font-weight: 800;
  font-size: clamp(32px, 7vw, 74px);
  line-height: .94;
  color: #fff;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.ed-mega-claim__accent {
  color: var(--ed-sky);
}

/* Schließen-Button: Glyph geometrisch mittig, ohne UA-Padding */
#ed-menu-close {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  box-sizing: border-box;
  position: relative;
  line-height: 0;
  font-size: 0;
}
#ed-menu-close::before,
#ed-menu-close::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  left: 50%;
  top: 50%;
}
#ed-menu-close::before { transform: translate(-50%, -50%) rotate(45deg); }
#ed-menu-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
#ed-menu-close:hover { background: rgba(255,255,255,.12) !important; }

/* ── Produktsuche-Overlay ────────────────────────────────────────────────────── */
#ed-search-overlay,
.ed-search-overlay {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  inset: 0;
  z-index: 510;
  background: rgba(243, 245, 247, .98);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity .4s ease, visibility .4s;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  pointer-events: none !important;
  box-sizing: border-box;
}
#ed-search-overlay.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.ed-search-inner {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 120px 48px 80px;
  box-sizing: border-box;
}

.ed-search-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.ed-search-kicker {
  font: 500 12px/1 var(--ed-font-mono);
  letter-spacing: .28em;
  color: var(--ed-blue);
}
#ed-search-overlay .ed-search-close,
#ed-search-overlay #ed-search-close,
#ed-search-overlay #ed-search-close:hover,
#ed-search-overlay #ed-search-close:focus,
#ed-search-overlay #ed-search-close:focus-visible,
#ed-search-overlay #ed-search-close:active {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--ed-ink) !important;
  cursor: pointer;
  font: 300 26px/1 var(--ed-font-sans) !important;
  padding: 0 !important;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
}
#ed-search-overlay #ed-search-close:hover {
  opacity: .7;
}
#ed-search-overlay #ed-search-close:focus-visible {
  outline: 2px solid var(--ed-blue);
  outline-offset: 4px;
}

.ed-search-field {
  position: relative;
  display: grid;
  width: 100%;
  border: none;
  background: none;
  box-shadow: none;
}
.ed-search-field > * {
  grid-area: 1 / 1;
}

/* Theme-/UA-Reset: kein weißer Rahmen, kein natives Search-X */
#ed-search-overlay .ed-search-input,
#ed-search-overlay #ed-search-input {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 16px 0 14px;
  border: 0 !important;
  border-bottom: 2px solid var(--ed-ink) !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--ed-font-sans) !important;
  font-weight: 600 !important;
  font-size: clamp(17px, 2.2vw, 26px) !important;
  line-height: 1.35 !important;
  letter-spacing: -.01em;
  color: var(--ed-ink) !important;
  caret-color: var(--ed-blue);
  z-index: 1;
  align-self: stretch;
  min-height: 100%;
}
#ed-search-overlay .ed-search-input:focus,
#ed-search-overlay .ed-search-input:focus-visible,
#ed-search-overlay #ed-search-input:focus,
#ed-search-overlay #ed-search-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
  border-bottom: 2px solid var(--ed-blue) !important;
}
#ed-search-overlay .ed-search-input:-webkit-autofill,
#ed-search-overlay .ed-search-input:-webkit-autofill:hover,
#ed-search-overlay .ed-search-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ed-ink) !important;
  caret-color: var(--ed-blue);
  box-shadow: none !important;
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  transition: background-color 9999s ease-out;
}

.ed-search-placeholder {
  align-self: start;
  padding: 16px 0 14px;
  font-family: var(--ed-font-sans);
  font-weight: 500;
  font-size: clamp(17px, 2.2vw, 26px);
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--ed-muted);
  pointer-events: none;
  white-space: normal;
}
#ed-search-overlay .ed-search-input:not(:placeholder-shown) + .ed-search-placeholder {
  display: none;
}
#ed-search-overlay .ed-search-input::-webkit-search-decoration,
#ed-search-overlay .ed-search-input::-webkit-search-cancel-button,
#ed-search-overlay .ed-search-input::-webkit-search-results-button,
#ed-search-overlay .ed-search-input::-webkit-search-results-decoration,
#ed-search-overlay .ed-search-input::-ms-clear,
#ed-search-overlay .ed-search-input::-ms-reveal {
  display: none !important;
  appearance: none;
  -webkit-appearance: none;
  width: 0;
  height: 0;
}

.ed-search-status {
  min-height: 1.2em;
  margin: 14px 0 0;
  font: 500 12px/1.4 var(--ed-font-mono);
  letter-spacing: .08em;
  color: var(--ed-muted);
}

.ed-search-suggestions {
  margin-top: 28px;
}
.ed-search-suggestions__label {
  font: 700 12px/1 var(--ed-font-sans);
  letter-spacing: .2em;
  color: var(--ed-muted);
  margin-bottom: 18px;
}
.ed-search-suggestions__list {
  border-top: 1px solid var(--ed-line-1);
}
.ed-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ed-search-chip {
  text-decoration: none;
  border: 1px solid rgba(20, 58, 94, .22);
  color: var(--ed-ink);
  padding: 11px 18px;
  font: 600 14px/1 var(--ed-font-sans);
  background: #fff;
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.ed-search-chip:hover {
  background: var(--ed-blue) !important;
  color: #fff !important;
  border-color: var(--ed-blue) !important;
}

.ed-search-results {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--ed-line-1);
}
.ed-search-results[hidden],
.ed-search-suggestions[hidden] {
  display: none !important;
}
.ed-search-hit {
  display: flex;
  align-items: stretch;
  gap: 22px;
  padding: 0 28px 0 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--ed-line-1);
  transition: background .2s;
}
.ed-search-hit:hover,
.ed-search-hit.is-active {
  background: rgba(255, 255, 255, .72);
}
.ed-search-hit__img {
  flex: none;
  width: 132px;
  align-self: stretch;
  background: none;
  overflow: hidden;
  line-height: 0;
}
.ed-search-hit__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.ed-search-hit__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 22px 0;
}
.ed-search-hit__name {
  font: 700 20px/1.15 var(--ed-font-sans);
  color: var(--ed-deep);
}
.ed-search-hit__meta {
  font: 500 12px/1.3 var(--ed-font-mono);
  letter-spacing: .06em;
  color: var(--ed-muted);
  text-transform: uppercase;
}
.ed-search-hit__arrow {
  flex: none;
  align-self: center;
  margin-left: 12px;
  padding-right: 4px;
  color: var(--ed-red);
  font: 400 22px/1 var(--ed-font-sans);
  transition: transform .25s var(--ed-ease);
}
.ed-search-hit:hover .ed-search-hit__arrow,
.ed-search-hit.is-active .ed-search-hit__arrow {
  transform: translateX(6px);
}

@media (max-width: 600px) {
  .ed-search-inner {
    padding: 88px 20px calc(48px + env(safe-area-inset-bottom, 0px));
  }
  .ed-search-hit {
    gap: 16px;
    padding: 0 12px 0 0;
  }
  .ed-search-hit__img {
    width: 96px;
  }
  .ed-search-hit__body {
    padding: 16px 0;
  }
  .ed-search-hit__name {
    font-size: 17px;
  }
}

/* ── Kontakt-Panel ───────────────────────────────────────────────────────────── */
#ed-contact-scrim {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
}
#ed-contact-scrim.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#ed-contact-panel,
.ed-contact-panel {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  pointer-events: none;
}
#ed-contact-panel.is-open {
  transform: translateX(0) !important;
  pointer-events: auto;
}
#ed-contact-panel *,
#ed-contact-panel *::before,
#ed-contact-panel *::after {
  box-sizing: border-box;
}

.ed-contact-hatch {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: repeating-linear-gradient(-45deg, rgba(62,134,196,.16) 0 1.5px, transparent 1.5px 9px);
  pointer-events: none;
}

.ed-contact-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}
.ed-contact-kicker {
  font: 500 12px/1 var(--ed-font-mono);
  letter-spacing: .26em;
  color: var(--ed-blue);
  margin-bottom: 12px;
}
.ed-contact-title {
  font-family: 'Archivo Expanded', 'Archivo', sans-serif !important;
  font-weight: 800 !important;
  font-size: 30px !important;
  line-height: 1 !important;
  letter-spacing: -.01em !important;
  color: #143A5E !important;
  margin: 0 !important;
  text-transform: uppercase !important;
  font-stretch: expanded !important;
  font-variation-settings: "wdth" 125, "wght" 800;
}
#ed-contact-close,
#ed-contact-close:hover,
#ed-contact-close:focus,
#ed-contact-close:focus-visible,
#ed-contact-close:active {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--ed-ink) !important;
  cursor: pointer;
  font: 300 26px/1 var(--ed-font-sans) !important;
  padding: 0 0 0 8px !important;
  line-height: 1 !important;
  flex: none;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
}
#ed-contact-close:hover {
  opacity: .7;
}
#ed-contact-close:focus-visible {
  outline: 2px solid var(--ed-blue);
  outline-offset: 4px;
}

.ed-contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.ed-contact-row {
  display: flex;
  gap: 14px;
}
.ed-contact-field {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: none !important;
  border-bottom: 1.5px solid rgba(20,58,94,.28) !important;
  border-radius: 0 !important;
  background: #F6F8FA !important;
  padding: 14px 12px !important;
  font: 500 15px/1.3 var(--ed-font-sans) !important;
  color: var(--ed-ink) !important;
  box-shadow: none !important;
  outline: none;
  transition: border-color .2s;
  appearance: none;
}
.ed-contact-area {
  resize: vertical;
  min-height: 120px;
  font-family: var(--ed-font-sans) !important;
}
.ed-contact-field:focus {
  border-bottom-color: var(--ed-blue) !important;
}
#ed-contact-submit {
  background: var(--ed-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 17px;
  font: 700 13px/1 var(--ed-font-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .25s;
  width: 100%;
}
#ed-contact-submit:hover { background: #3578b0 !important; }
.ed-contact-hotline {
  font: 500 12px/1.7 var(--ed-font-mono);
  color: var(--ed-muted);
}

/* Rail-Buttons */
[data-rail-action]:hover { opacity: .88; }

/* Overlay offen: Scrollbar-Breite kompensieren, damit der Content nicht springt */
html.ed-overlay-open,
html.ed-overlay-open body {
  overflow: hidden;
}
html.ed-overlay-open body {
  padding-right: var(--ed-sbw, 0px);
}
html.ed-overlay-open .ed-site-header {
  right: var(--ed-sbw, 0px) !important;
}
html.ed-overlay-open .ed-site-rail {
  right: var(--ed-sbw, 0px) !important;
}

/* Mega-Menü-Scrollbar (dunkler Overlay-Kontext, ohne Windows-Pfeil-Buttons) */
#ed-mega-menu {
  scrollbar-width: thin;
  scrollbar-color: var(--ed-blue) var(--ed-navy);
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .ed-mega-body {
    padding: 80px 28px calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .ed-mega-grid {
    /* 5-Spalten → 2 Spalten auf Tablet */
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .ed-mega-body {
    padding: 20px 20px calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .ed-mega-head {
    margin-bottom: 36px;
  }
  .ed-mega-claim {
    font-size: clamp(28px, 9vw, 40px);
  }
  .ed-mega-head > div {
    padding-right: 62px; /* Platz neben der Überschrift für den fixen Close-Button */
  }
  /* Schließen-Button: immer sichtbar oben rechts, inkl. Safe-Area */
  #ed-menu-close {
    position: fixed !important;
    top: max(14px, env(safe-area-inset-top, 0px));
    right: max(14px, env(safe-area-inset-right, 0px));
    z-index: 520;
    width: 48px !important;
    height: 48px !important;
    background: rgba(14, 42, 69, .88) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, .55) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .28);
  }
  #ed-menu-close:hover {
    background: rgba(62, 134, 196, .5) !important;
  }
  .ed-mega-grid {
    grid-template-columns: 1fr !important;
  }
  .ed-contact-row {
    flex-direction: column;
  }
  #ed-contact-panel { width: 100% !important; }
}
