/* ==========================================================================
   Übernommen aus dem Plugin „Custom Codes“ (wp-content/custom_codes/882-…),
   14.10.2026, damit das Plugin wegfallen kann. Inhalt unverändert bis auf
   Kommentare (waren russisch) und die Karte (siehe unten).
   ========================================================================== */

.wp-block-group {
  margin-block-end: 0 !important;
  margin-block-start: 0 !important;
}

@media (max-width: 781px) {
  .wp-block-columns.imageheight .wp-block-column { border-radius: 10px; }
}
.wp-block-columns.imageheight .wp-block-column figure.wp-block-image {
  width: 100% !important;
  height: 100% !important;
}
.wp-block-columns.imageheight .wp-block-column figure.wp-block-image img {
  width: 100% !important;
  height: 100% !important;
}
@media (max-width: 781px) {
  .wp-block-columns.imageheight .wp-block-column figure { display: none; }
}

/* Bestand: Die H1 ist auf jeder Seite unsichtbar (Platz bleibt). Nicht von
   uns entschieden – steht hier, weil es vorher so war. Befund im Bericht. */
h1 { visibility: hidden; }

header {
  position: fixed;
  z-index: 999;
  width: 100vw;
}

.fullwidth-button { width: 100%; }

/* ---------- Google-Karte, Zwei-Klick-Lösung ----------
   Erst Vorschaubild und Knopf, Google wird erst nach dem Klick geladen
   (karte.js). Das ist die DSGVO-Lösung der Seite – kein Plugin nötig. */

.map-container-1040 {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
  background-color: #f0f0f0;
}

.map-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Der Knopf: feste Höhe statt 48,5 px, Breite nach Inhalt, bricht nie um. */
.map-action-btn {
  min-height: 3rem;
  padding: .7em 1.8em;
  border-radius: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #187829;
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color .3s;
}
.map-action-btn:hover,
.map-action-btn:focus-visible { background-color: #146322; }
.map-action-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.map-frame-element {
  display: none;              /* bis zum Klick */
  width: 100%;
  height: 100%;
  border: 0;
}

.map-darken-layer {
  position: absolute;
  inset: 0;
  background-color: rgb(0 0 0 / 50%);
  z-index: 5;                 /* über dem Foto, unter dem Knopf */
}

/* ---------- Mobil: Gruppe über die volle Breite ---------- */

.mobile-full-width {
  margin-top: -60px !important;
  margin-bottom: -90px !important;
}

@media (max-width: 781px) {
  .mobile-full-width {
    --wp--style--root--padding-right: 0px !important;
    --wp--style--root--padding-left: 0px !important;
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .wp-block-image img {
    max-height: 200px;
    object-fit: cover;
  }
}
