/* ==========================================================================
   Lokale Ergänzungen (nach css/20visu5098.css eingebunden)
   ========================================================================== */

/* --- Keine Webflow-CDN-Grafiken (Cloudfront) mehr laden --------------------- */
.w-embed-youtubevideo {
  background-image: none;
}

.w-checkbox-input--inputType-custom.w--redirected-checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.4 2.4 4.6-5.1' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* --- Hintergrundvideos: Posterbild füllt die Fläche wie das Video ----------- */
.w-background-video > video {
  object-fit: cover;
  background-size: cover;
  background-position: 50% 50%;
}

/* --- Platzhalter für Drittanbieter-Inhalte (Zwei-Klick-Lösung) ------------ */
.ext-consent {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 16px;
  padding: 20px;
  border: 1px solid #d6dde1;
  border-radius: 10px;
  background-color: #fff;
  color: #2e2e2e;
  text-align: center;
  font-family: Libre Franklin, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.ext-consent__text {
  max-width: 34em;
  margin: 0;
  overflow-wrap: break-word;
}

.ext-consent__text a {
  color: var(--steel-blue, #1d7cb0);
  text-decoration: underline;
}

.ext-consent__btn {
  display: inline-block;
  max-width: 100%;
  padding: 10px 22px;
  border: 0;
  border-radius: 24px;
  background-color: var(--steel-blue, #1d7cb0);
  color: #fff;
  font-family: Libre Franklin, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  cursor: pointer;
}

.ext-consent__btn:hover,
.ext-consent__btn:focus-visible {
  background-color: var(--dark-slate-blue, #004063);
}

.ext-consent__btn:focus-visible {
  outline: 2px solid var(--dark-slate-blue, #004063);
  outline-offset: 2px;
}

/* füllt einen Container mit fester Höhe (Elfsight-Karte, YouTube-Fläche) */
.ext-consent--fill {
  height: 100%;
  margin: 0;
  overflow: auto;
  background-color: #f3f3f3;
}

.w-embed-youtubevideo > .ext-consent--fill {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 0;
}

.ext-consent--galerie,
.ext-consent--jameda {
  max-width: 640px;
  margin: 0 auto 20px;
}

.ext-consent--jameda {
  margin-top: 15px;
}

/* Container, die erst nach Einwilligung sichtbar werden */
[data-ext-pending] {
  display: none !important;
}

/* gespeicherte Einwilligung: Platzhalter gar nicht erst anzeigen */
.ext-ok-elfsight .ext-consent[data-provider="elfsight"],
.ext-ok-doctify .ext-consent[data-provider="doctify"],
.ext-ok-jameda .ext-consent[data-provider="jameda"],
.ext-ok-youtube .ext-consent[data-provider="youtube"] {
  display: none;
}

/* --- Doctolib: Button im Menü -------------------------------------------- */
.doctolib-logo {
  display: block;
  flex: none;
  width: auto;
  height: 18px;
  max-width: none;
}

.nav-link-1.nav-doctolib {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 24px;
  background-color: #107aca;
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  text-transform: none;
  white-space: nowrap;
}

.nav-link-1.nav-doctolib:hover,
.nav-link-1.nav-doctolib:focus-visible {
  background-color: #0d65a8;
  color: #fff;
}

@media screen and (min-width: 992px) {
  .container-men-1.w-container {
    max-width: 1140px;
  }

  .nav-men-1 {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
  }

  .nav-men-1 .nav-link-1 {
    flex: none;
    white-space: nowrap;
    padding-left: 10px;
    padding-right: 10px;
  }

  .nav-men-1 .nav-link-1.nav-doctolib {
    margin-left: 8px;
    padding: 10px 20px;
  }

}

@media screen and (min-width: 992px) and (max-width: 1199px) {
  .nav-men-1 .nav-link-1 {
    padding-left: 7px;
    padding-right: 7px;
  }

  .nav-men-1 .nav-link-1.nav-doctolib {
    margin-left: 4px;
    padding: 10px 16px;
  }
}

@media screen and (max-width: 991px) {
  /* im geöffneten Hamburger-Menü: Button in voller Breite */
  .nav-men-1 .nav-link-1.nav-doctolib {
    display: flex;
    align-self: stretch;
    width: auto;
    margin: 10px 16px 16px;
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    text-align: center;
  }

  /* Platz unter dem Footer, damit der schwebende Button nichts dauerhaft verdeckt */
  .footer-1.hauptfarbe {
    padding-bottom: 80px;
  }
}

/* --- Doctolib: schwebender Button unten rechts (alle Breiten) ------------ */
.doctolib-float {
  box-sizing: border-box;
  position: fixed;
  right: 16px;
  bottom: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
  padding: 12px 24px;
  overflow: hidden;
  border-radius: 24px;
  background-color: #107aca;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
}

.doctolib-float:hover,
.doctolib-float:focus-visible {
  background-color: #0d65a8;
  color: #fff;
}

.is-nav-open .doctolib-float,
.is-cmp-open .doctolib-float {
  display: none;
}

/* --- Bilder: width/height-Attribute reservieren nur das Seitenverhältnis;
       die bisherige Größe kommt weiterhin aus den Klassen (Spezifität 0) --- */
:where(img[width][height]) {
  width: auto;
  height: auto;
}

/* --- Feste Einblendungen oben (Jameda, Doctify, Telefonleiste) ------------
   überdecken weder Navigation noch Logo                                   */

/* Telefonleiste: fährt einmal von rechts herein und bleibt bei Verschiebung 0
   (ersetzt die frühere Webflow-Hover-Bewegung um 225px) */
@keyframes phone-bar-slide-in {
  from {
    transform: translateX(calc(100% + 24px));
  }
  to {
    transform: translateX(0);
  }
}

.div-block-121 {
  transform: translateX(0);
  animation: phone-bar-slide-in 0.6s ease-out 0.4s both;
}

@media (prefers-reduced-motion: reduce) {
  .div-block-121 {
    animation: none;
  }
}

/* Doctify-Siegel im Inhalt (neben dem Jameda-Siegel), nur bis 991px */
.doctify-seal-inline {
  box-sizing: border-box;
  display: none;
  width: 200px;
  max-width: 100%;
  margin: 0 auto 20px;
  padding: 20px;
  border-radius: 10px;
  background-color: #112971;
}

.doctify-seal-inline .image-73 {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.doctify-seal-inline .image-72 {
  display: block;
  width: 100%;
  height: auto;
}

@media screen and (min-width: 992px) {
  /* Siegel unterhalb der Navigationsleiste (Logo + Menü = 265px, + Abstand) */
  .embed:not(.mobil) {
    inset: 280px auto auto 0;
  }

  .div-block-156 {
    inset: 280px 0 auto auto;
  }
}

@media screen and (max-width: 991px) {
  /* Siegel nicht am oberen Rand, sondern im Inhalt */
  .embed:not(.mobil),
  .div-block-156 {
    display: none;
  }

  .div-block-157 {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .embed.mobil {
    display: flex;
    justify-content: center;
    position: static;
    height: auto;
    margin: 0 auto 20px;
    box-shadow: none;
  }

  .doctify-seal-inline {
    display: block;
  }

  /* aufgeklapptes Burger-Menü nicht am Kopfbereich abschneiden
     und über dem Titelvideo zeichnen */
  .navbar {
    overflow: visible;
  }

  .navbar-1,
  .navbar-1.hauptfarbe {
    z-index: 1001;
  }

  /* Telefonleiste unter dem Menübalken statt über Logo und Burger-Menü */
  .div-block-121 {
    animation: none;
    position: static;
    box-sizing: border-box;
    justify-content: center;
    width: 280px;
    max-width: calc(100% - 20px);
    margin: 10px auto;
  }
}

/* --- Titelvideo Startseite: bis 991px nur das Standbild ------------------
   (js/bg-video.js setzt die Videoquelle dort gar nicht erst ein) */
@media screen and (max-width: 991px) {
  .titelvideo-startseite-1 .background-video1 {
    background-image: url("../videos/fillmed-master-poster.jpg");
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
  }

  .titelvideo-startseite-1 .background-video1 > video[data-bg-min="992"] {
    display: none;
  }
}
