
/* ===== Parallax Hero ===== */
.parallax-hero {
  position: relative;
  height: 50vh;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;

  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-image: var(--img-sm);   /* xs + sm: bis 767px → 640×360 */
}

@media (min-width: 768px) {
  .parallax-hero { background-image: var(--img-md); }  /* md + lg: bis 1199px → 1280×720 */
}

@media (min-width: 1200px) {
  .parallax-hero { background-image: var(--img-lg); }  /* xl + xxl: ab 1200px → 1920×1080 */
}

.parallax-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.40);
}

.parallax-hero__content {
  position: relative;
  z-index: 1;
  padding: 0 1.5rem;
}

.parallax-hero__seo-img {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ===== Parallax Hero: Variante ohne Parallax ===== */
.parallax-hero--static {
  background-attachment: scroll !important;
}




/* ===== Parallax Hero: Video-Variante ===== */
.parallax-hero--video {
  background-image: none !important;
  background-attachment: scroll !important;
  background-color: #000;
}

.parallax-hero__video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.parallax-hero__video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  /* 16:9 auf Cover skalieren:
     Breite: mindestens 100% des Containers
     Höhe:   mindestens 100% — aber wenn Breite=100vw, dann h = 100vw * 9/16
     Wir nehmen das Maximum damit immer alles abgedeckt ist */
  width: calc(100vh * 16 / 9 * 0.4 * 2.5);
  height: 100%;
  min-width: 100%;
  min-height: calc(100vw * 9 / 16);
  border: none;
  pointer-events: none;
}





/* Karte: Hintergrund beim Hover abdunkeln */
.card {
  transition: background-color 0.25s ease;
}
.card:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

/* Bild: standardmässig abgedunkelt, beim Hover aufhellen */
.ratio::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.card:hover .ratio::after {
  opacity: 0;
}


/* Bild: standardmässig abgedunkelt, beim Hover aufhellen */
.list-group-item .ratio::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  transition: opacity 0.25s ease;
  pointer-events: none;
  border-radius: inherit;
}
.list-group-item:hover .ratio::after {
  opacity: 0;
}




/* Zeilen-Hover */
.list-row {
  transition: background-color 0.25s ease;
}
.list-row:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

/* Bild-Hover */
.list-row-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  transition: opacity 0.25s ease;
  pointer-events: none;
  border-radius: inherit;
}
.list-row:hover .list-row-img::after {
  opacity: 0;
}




@media (max-width: 991.98px) {
  /* Menupunkte zentrieren */
  .navbar-collapse .navbar-nav {
    text-align: center;
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
    /* background-color: aqua; */
  }

  /* Horizontale Linien zwischen den Menupunkten */
  .navbar-collapse .navbar-nav .nav-item {
    border-bottom: 1px solid var(--mb-primary); /* Passe die Farbe an deinen Hintergrund an */
  }

  /* Optional: Linie beim allerletzten Menupunkt entfernen */
  .navbar-collapse .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }
}


img.vmirror {
   -webkit-transform: scaleY(-1);
  transform: scaleY(-1);
}

img.hmirror {
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}