/* Header-Erklärfilm: stummer Teaser im Hero-Slot, Klick öffnet den 9:16-Film mit Ton gross.
   Am Ende direkt buchen (Cal.com im Player), WhatsApp als leiser Zweitweg. */

.mfx-slot{
  position: relative;
  isolation: isolate;
}
.hero .photo-card.mfx-slot{
  box-shadow:
    0 30px 64px -24px rgba(2, 8, 23, 0.32),
    0 12px 28px -12px rgba(2, 8, 23, 0.18);
}

.mfx-teaser{
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  overflow: hidden;
  background: #0e3a45;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mfx-teaser:focus-visible{
  outline: 3px solid #17adce;
  outline-offset: 3px;
}

.hero .mfx-slot .mfx-teaser__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: 0;
  box-shadow: none;
  transform: scale(1.001);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mfx-teaser:hover .mfx-teaser__video{ transform: scale(1.035); }

.mfx-teaser__scrim{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 30, 37, 0) 36%, rgba(8, 30, 37, 0.5) 64%, rgba(8, 30, 37, 0.88) 100%),
    radial-gradient(120% 70% at 0% 100%, rgba(10, 109, 131, 0.35) 0%, rgba(10, 109, 131, 0) 60%);
  pointer-events: none;
}

.mfx-teaser__sound{
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 30, 37, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, Menlo, monospace);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  pointer-events: none;
}

.mfx-teaser__copy{
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
}
.mfx-teaser__kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, Menlo, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9fe4f3;
}
.mfx-teaser__kicker::before{
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #17adce;
}
.mfx-teaser__title{
  margin-top: 8px;
  max-width: 12ch;
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(2, 8, 23, 0.28);
}
.mfx-teaser__cta{
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px 0 6px;
  border-radius: 999px;
  background: #fff;
  color: #0e3a45;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  box-shadow: 0 16px 32px -14px rgba(2, 8, 23, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mfx-teaser__cta-time{
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, Menlo, monospace);
  font-size: 11.5px;
  font-weight: 600;
  color: #0a6d83;
}
.mfx-teaser__play{
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #17adce;
  color: #fff;
  transition: transform 0.25s ease;
}
.mfx-teaser__play svg{ margin-left: 2px; }
.mfx-teaser__play::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(23, 173, 206, 0.55);
  animation: mfx-pulse 2.6s ease-out infinite;
}
.mfx-teaser:hover .mfx-teaser__cta,
.mfx-teaser:focus-visible .mfx-teaser__cta{
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -14px rgba(2, 8, 23, 0.6);
}
.mfx-teaser:hover .mfx-teaser__play{ transform: scale(1.08); }

@keyframes mfx-pulse{
  0%{ box-shadow: 0 0 0 0 rgba(23, 173, 206, 0.55); }
  70%{ box-shadow: 0 0 0 14px rgba(23, 173, 206, 0); }
  100%{ box-shadow: 0 0 0 0 rgba(23, 173, 206, 0); }
}

/* Handy: breiter Streifen, Gesicht rechts, Text links auf dem Verlauf */
.hero-media.mfx-slot .mfx-teaser__video{ object-position: 50% 36%; }
.hero-media.mfx-slot .mfx-teaser__scrim{
  background: linear-gradient(90deg, rgba(8, 30, 37, 0.9) 0%, rgba(8, 30, 37, 0.62) 40%, rgba(8, 30, 37, 0) 70%);
}
.hero-media.mfx-slot .mfx-teaser__sound{ display: none; }
.hero-media.mfx-slot .mfx-teaser__copy{
  left: 16px;
  right: auto;
  top: 0;
  bottom: 0;
  justify-content: center;
  max-width: 58%;
}
.hero-media.mfx-slot .mfx-teaser__kicker{ font-size: 9.5px; gap: 6px; letter-spacing: 0.14em; }
.hero-media.mfx-slot .mfx-teaser__kicker::before{ width: 14px; }
.hero-media.mfx-slot .mfx-teaser__title{
  margin-top: 5px;
  font-size: 17px;
  max-width: 11ch;
}
.hero-media.mfx-slot .mfx-teaser__cta{
  margin-top: 10px;
  height: 32px;
  padding: 0 13px 0 4px;
  gap: 7px;
  font-size: 12.5px;
}
.hero-media.mfx-slot .mfx-teaser__play{ width: 24px; height: 24px; }
.hero-media.mfx-slot .mfx-teaser__play svg{ width: 11px; height: 11px; }
.hero-media.mfx-slot .mfx-teaser__cta-time{ display: none; }

/* Grosser Player */
.mfx-player{
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(6, 22, 28, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: mfx-fade 0.25s ease both;
}
.mfx-player[hidden]{ display: none; }
.mfx-player__frame{
  position: relative;
  width: min(calc(100vw - 32px), calc((100svh - 32px) * 9 / 16), 484px);
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  background: #0e3a45;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.55);
  animation: mfx-rise 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.mfx-player__frame video{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0e3a45;
}
.mfx-player__close{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(8, 30, 37, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
}
.mfx-player__close:focus-visible,
.mfx-player__replay:focus-visible,
.mfx-player__end-cta:focus-visible{
  outline: 2px solid #ffd4b3;
  outline-offset: 3px;
}

.mfx-player__end{
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px 76px;
  background: linear-gradient(180deg, rgba(8, 30, 37, 0.1) 20%, rgba(8, 30, 37, 0.92) 72%);
  color: #fff;
  animation: mfx-fade 0.3s ease both;
}
.mfx-player__end[hidden]{ display: none; }
.mfx-player__end-kicker{
  margin: 0 0 8px;
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, Menlo, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9fe4f3;
}
.mfx-player__end-title{
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.mfx-player__end-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 14px;
  background: #17adce;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.mfx-player__end-facts{
  margin: 10px 0 0;
  text-align: center;
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, Menlo, monospace);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
}
.mfx-player__end-facts[hidden]{ display: none; }
/* Schluss auf dem letzten Wort: Bild bleibt stehen, leicht unscharf hinter der Karte. */
.mfx-player__frame video{ transition: filter 0.35s ease; }
.mfx-player__frame.is-frozen video{ filter: blur(2px) brightness(0.85); }
.mfx-player__end-alt{
  margin-top: 12px;
  align-self: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mfx-player__end-alt[hidden]{ display: none; }
.mfx-player__end-alt:focus-visible{ outline: 2px solid #ffd4b3; outline-offset: 3px; }
.mfx-player__replay{
  margin-top: 12px;
  align-self: center;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

/* Direktbuchung über dem Film */
.mfx-player [hidden]{ display: none !important; }
.mfx-book{
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  background: #f4ece0;
  color: #0e3a45;
  animation: mfx-rise-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.mfx-book__bar{
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 12px 64px 8px 12px;
}
.mfx-book__back{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px 0 10px;
  border: 1px solid rgba(14, 58, 69, 0.14);
  border-radius: 999px;
  background: #fffdf9;
  color: #0e3a45;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.mfx-book__back:focus-visible{ outline: 2px solid #17adce; outline-offset: 3px; }
.mfx-book__who{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 20px 14px;
}
.mfx-book__who img{
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #fffdf9, 0 0 0 3.5px #17adce;
}
.mfx-book__name{
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.mfx-book__facts{
  margin: 3px 0 0;
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, Menlo, monospace);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: #0a6d83;
}
.mfx-book__cal{
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 30px -22px rgba(14, 58, 69, 0.5);
}
#mfx-cal-slot{ width: 100%; min-height: 100%; }
.mfx-book__loading{
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #55707a;
}
.mfx-book__done{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
  min-height: 0;
  overflow-y: auto;
  padding: 0 28px 60px;
}
.mfx-book__done .mfx-player__end-kicker{ color: #0a6d83; }
.mfx-book__done-title{
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.mfx-book__done-when{
  margin: 14px 0 0;
  font-size: 17px;
  font-weight: 700;
}
.mfx-book__done-when:empty{ display: none; }
.mfx-book__done-note{
  margin: 10px 0 0;
  font-size: 14.5px;
  color: #55707a;
}

@keyframes mfx-rise-in{
  from{ opacity: 0; transform: translateY(24px); }
  to{ opacity: 1; transform: none; }
}

@keyframes mfx-fade{ from{ opacity: 0; } to{ opacity: 1; } }
@keyframes mfx-rise{
  from{ opacity: 0; transform: translateY(14px) scale(0.965); }
  to{ opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce){
  .mfx-teaser__play::after{ animation: none; }
  .hero .mfx-slot .mfx-teaser__video,
  .mfx-teaser__cta,
  .mfx-teaser__play{ transition: none; }
  .mfx-teaser:hover .mfx-teaser__video{ transform: none; }
  .mfx-player,
  .mfx-player__frame,
  .mfx-player__end,
  .mfx-book{ animation: none; }
  .mfx-player__frame video{ transition: none; }
}
