/* Eigene Ergänzungen zur übernommenen Gestaltung (site.css).
   Hier gehören alle Anpassungen hin – site.css wird aus dem Original generiert. */

/* ---------- Barrierefreiheit ---------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed !important;
  top: 8px; left: 8px;
  width: auto; height: auto;
  clip: auto;
  z-index: 100000;
  padding: 12px 18px;
  background: #fff;
  color: #000;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
:focus-visible { outline: 2px solid var(--e-global-color-accentsecondary, #AB1A26); outline-offset: 2px; }

/* ---------- Kein horizontales Scrollen auf dem Handy ---------- */
html, body { overflow-x: clip; }

/* ---------- Desktop-Menü: Untermenü bei Hover/Fokus ---------- */
.elementor-nav-menu--main .menu-item-has-children { position: relative; }
.elementor-nav-menu--main .menu-item-has-children:hover > .sub-menu,
.elementor-nav-menu--main .menu-item-has-children:focus-within > .sub-menu {
  display: block;
  width: auto;
  min-width: 10em;
  max-width: 1000px;
  left: 0;
  margin: 0;
  z-index: 3;
}

/* ---------- Mobiles Menü: Seite nicht scrollen, wenn offen ---------- */
html.menu-open { overflow: hidden; }

/* ---------- Sticky Header ---------- */
.is-stuck { position: fixed !important; top: 0; margin-top: 0 !important; margin-bottom: 0 !important; z-index: 999; }

/* ---------- Überschriften-Animation ---------- */
.split-word { display: inline-block; white-space: nowrap; }
/* Das Theme färbt jedes <span> in Überschriften in der Akzentfarbe (weiß) –
   die Buchstaben-Spans der Animation sollen aber die Farbe ihrer Überschrift behalten. */
.elementor-heading-title .split-word,
.elementor-heading-title .split-char,
.ekit-heading--title .split-word,
.ekit-heading--title .split-char { color: inherit; }
.split-ready .split-char {
  display: inline-block;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 1s cubic-bezier(.33, 1, .68, 1), transform 1s cubic-bezier(.33, 1, .68, 1);
}
.split-in .split-char { opacity: 1; transform: none; }

/* ---------- Formulare ---------- */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-hinweis { font-size: 13px; line-height: 1.5; margin: 12px 0 0; opacity: .8; }
.form-hinweis a { text-decoration: underline; }
.form-status:empty { display: none; }
.form-status {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  border: 1px solid transparent;
}
.form-status.is-success { background: #eef8f0; border-color: #9fd3ab; color: #1d5b2a; }
.form-status.is-error { background: #fdeeee; border-color: #e6a3a7; color: #8c1520; }
.wpcf7-form .form-status { flex: 0 0 100%; }
.elementor-form .form-status { width: 100%; }

/* ---------- Google Maps (erst nach Klick, Optik wie der frühere Borlabs-Platzhalter) ---------- */
.map-consent {
  padding: 16px;
  background: #fafafa;
  color: #555;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
}
.map-consent__text {
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid #e0e0e0;
  line-height: 17.5px;
}
.map-consent .map-consent__btn {
  display: block;
  min-height: 0;
  height: auto;
  line-height: 21px;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: none;
  width: 100%;
  padding: 12px 20px !important;
  border: 0;
  border-radius: 4px;
  background: #0063e3 !important;
  color: #fff !important;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.map-consent .map-consent__btn:hover { background: #0052bd !important; }
.map-consent .map-consent__link { display: inline-block; margin-top: 16px; color: #0063e3; font-size: 14px !important; line-height: 17.5px; }
.elementor-widget-google_maps .elementor-widget-container { overflow: hidden; }

/* ---------- Galerie: Spalten je Bildschirmbreite (früher per Elementor-JS) ---------- */
@media (max-width: 1024px) { .elementor-gallery__container { --columns: 2 !important; } }
@media (max-width: 767px) { .elementor-gallery__container { --columns: 1 !important; } }

/* ---------- Handy: Elemente, die im Original über den Rand ragten ---------- */
@media (max-width: 767px) {
  .elementor-element-e002284, .elementor-element-7fc4fc8 { flex-wrap: nowrap; }
}
.elementor-upload-field { max-width: 100%; min-width: 0; }
.elementor-11125 a, .elementor-11108 a { overflow-wrap: anywhere; word-break: break-word; }

/* ---------- 404-Seite ---------- */
.seite-404 { max-width: 720px; margin: 0 auto; padding: 100px 20px 120px; text-align: center; }
.seite-404__code { font-size: 96px; line-height: 1; font-weight: 700; color: var(--e-global-color-accentsecondary, #AB1A26); margin: 0 0 16px; }
.seite-404 h1 { font-size: 32px; margin: 0 0 16px; color: var(--e-global-color-primary, #121212); }
.seite-404__links { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: center; }
.seite-404__links a { color: var(--e-global-color-accentsecondary, #AB1A26); text-decoration: underline; }
