.fz-mobile-navigation-slot { display: none; }

@media (max-width: 700px), (max-width: 1023px) and (max-height: 500px) {
  html:has(.fz-mobile-navigation-slot) {
    --fz-mobile-navigation-height: calc(75px + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: calc(var(--fz-mobile-navigation-height) + 16px);
  }
  .fz-mobile-navigation-slot { display: block; min-height: var(--fz-mobile-navigation-height); }
  .fz-mobile-navigation {
    position: fixed; inset: auto 0 0; z-index: 30;
    padding: 5px env(safe-area-inset-right, 0px)
      calc(5px + env(safe-area-inset-bottom, 0px)) env(safe-area-inset-left, 0px);
    border-top: 1px solid #dbe3eb; background: #fff;
    box-shadow: 0 -3px 18px rgb(28 50 72 / 5%);
    container-type: inline-size;
  }
  body:has(.fz-consent) .fz-mobile-navigation { visibility: hidden; }
  .fz-mobile-navigation ul {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: 38rem; margin: 0 auto; padding: 0; list-style: none;
  }
  .fz-mobile-navigation :is(a, button) {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-height: 64px; height: 100%; width: 100%; cursor: pointer; padding: 5px 0 8px;
    border: 0; border-radius: 10px; background: transparent; color: #46576a;
    font-family: var(--fz-font-brand); font-size: 1rem; font-weight: 600; line-height: 1.15;
    letter-spacing: -.02em; text-align: center; text-decoration: none; overflow-wrap: anywhere;
  }
  .fz-mobile-navigation :is(a, button) > span { max-width: 100%; }
  .fz-mobile-navigation__icon {
    display: grid; place-items: center;
    flex-shrink: 0; width: 36px; height: 29px; border-radius: 12px;
  }
  .fz-mobile-navigation__icon svg { width: 22px; height: 22px; }
  .fz-mobile-navigation a:is(.fz-mobile-navigation__search, [aria-current]) {
    color: var(--fz-primary-dark);
  }
  .fz-mobile-navigation a:is(.fz-mobile-navigation__search, [aria-current]) .fz-mobile-navigation__icon {
    background: var(--fz-primary-soft);
  }
  .fz-mobile-navigation a[aria-current]::after {
    content: ""; position: absolute; bottom: 2px;
    width: 13px; height: 2px; border-radius: 2px; background: currentColor;
  }
  .fz-mobile-navigation :is(a, button):focus-visible { outline: 3px solid var(--fz-primary-dark); outline-offset: -3px; }

  /* Main destinations and the full menu remain within thumb reach. */
  body:has(.fz-mobile-navigation-slot) .fz-servicebar { display: none; }
  body:has(.fz-mobile-navigation-slot) .fz-header { border-bottom: 1px solid #e6ebf0; background: #fff; }
  body:has(.fz-mobile-navigation-slot) .fz-header .fz-header__inner {
    width: 100%; min-height: 70px; padding-inline: 20px; gap: 12px;
  }
  body:has(.fz-mobile-navigation-slot) .fz-header .fz-header__logo svg { width: clamp(124px, 42vw, 164px); height: auto; }
  body:has(.fz-mobile-navigation-slot) .fz-header__claim,
  body:has(.fz-mobile-navigation-slot) .fz-header__chat,
  body:has(.fz-mobile-navigation-slot) .fz-header__advice,
  body:has(.fz-mobile-navigation-slot) .fz-header__saved,
  body:has(.fz-mobile-navigation-slot) .fz-header__nav { display: none; }
  body:has(.fz-mobile-navigation-slot) .fz-header .fz-header__burger {
    display: inline-flex; min-height: 48px; padding: 8px 0 8px 8px;
    border: 0; font-size: 1.0625rem; color: var(--fz-navy);
  }
  body:has(.fz-mobile-navigation-slot) .fz-header .fz-mobilenav:not([hidden]) {
    display: block;
    max-height: calc(100dvh - var(--fz-header-height, 70px) - var(--fz-mobile-navigation-height));
    overflow-y: auto;
  }

  /* The dedicated search is an app screen with its form directly below the title. */
  body:has(.fz-mobile-navigation-slot) main:has(.fz-search--page) > .fz-container:has(.fz-breadcrumbs),
  body:has(.fz-mobile-navigation-slot) main:has(.fz-search--page) > .fz-pagehead .fz-pagehead__intro,
  body:has(.fz-mobile-navigation-slot) main:has(.fz-search--page) > .fz-pagehead .fz-eyebrow { display: none; }
  body:has(.fz-mobile-navigation-slot) main:has(.fz-search--page) .fz-container {
    width: min(38rem, calc(100% - 40px));
  }
  body:has(.fz-mobile-navigation-slot) main:has(.fz-search--page) > .fz-pagehead { padding-top: 24px; }
  body:has(.fz-mobile-navigation-slot) main:has(.fz-search--page) > .fz-pagehead .fz-h1 {
    margin: 0;
    font-family: var(--fz-font-brand); font-size: 2rem; font-weight: 650; line-height: 1.15;
    letter-spacing: -.025em;
  }
  body:has(.fz-mobile-navigation-slot) main > .fz-section:has(.fz-search--page) { padding-block: 20px 28px; }
  body:has(.fz-mobile-navigation-slot) .fz-search--page { padding: 0; border: 0; background: #fff; }
  body:has(.fz-mobile-navigation-slot) .fz-search--page .fz-search__optional { margin: 0 0 18px; font-size: 1.0625rem; }
  body:has(.fz-mobile-navigation-slot) .fz-search--page .fz-search__fields { gap: 14px; }
  body:has(.fz-mobile-navigation-slot) .fz-search--page .fz-search__field { gap: 4px; }
  body:has(.fz-mobile-navigation-slot) .fz-search--page .fz-search__label { font-size: 1.0625rem; }
  body:has(.fz-mobile-navigation-slot) .fz-search--page .fz-search__control {
    min-height: 56px; border-radius: 8px; border-color: #b6c7d7; font-size: 1.125rem;
  }
  body:has(.fz-mobile-navigation-slot) .fz-search--page .fz-search__submit .fz-btn {
    min-height: 56px; border-radius: 8px; padding: 12px 20px; justify-content: center;
  }
  body:has(.fz-mobile-navigation-slot) .fz-search--page .fz-search__submit .fz-btn > svg {
    padding: 0; background: transparent; border: 0;
  }
}

/* Bei größerer Schrift brauchen die Beschriftungen mehr Platz. */
@container (max-width: 18rem) {
  .fz-mobile-navigation ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.fz-header .fz-header__nav{margin-left:auto;flex:none}.fz-header .fz-header__nav a{display:inline-flex;align-items:center;min-height:48px}.fz-header .fz-header__nav a.fz-header__search{color:var(--fz-primary-dark);font-weight:700}.fz-header--home{--fz-container:1320px;--fz-gutter:clamp(28px,7vw,112px)}.fz-header--home .fz-header__inner{min-height:clamp(75px,6.25vw,90px);gap:36px}.fz-header--home .fz-header__brand{display:flex;align-items:center;gap:28px;flex:none}.fz-header--home .fz-header__claim{margin:0;color:var(--fz-muted);font-size:15px;line-height:1.4;white-space:nowrap}.fz-header--home .fz-header__logo svg{width:clamp(170px,16.4vw,236px);height:auto}.fz-header--home{border-bottom:1px solid #e6eaef}@media (max-width:700px){.fz-header--home{--fz-gutter:32px}}.fz-header--home .fz-header__inner{min-height:96px}.fz-header--home .fz-header__logo svg{width:248px}.fz-header--home .fz-header__nav ul{gap:clamp(14px,1.8vw,28px)}.fz-header--home .fz-header__nav a{min-height:52px;font-size:19px;font-weight:500;color:var(--fz-river-dark);border-bottom:3px solid transparent;white-space:nowrap}.fz-header--home .fz-header__nav a.fz-header__search{color:#0f4c87;font-weight:700;border-bottom-color:var(--fz-primary)}.fz-header--home .fz-header__saved{min-height:52px;padding-inline:4px;font-size:18px;font-weight:400}.fz-header--home .fz-header__advice{min-height:52px;padding:0 22px;border:1.5px solid var(--fz-river);border-radius:3px;color:var(--fz-river);font-size:18px;font-weight:600;text-decoration:none;white-space:nowrap}.fz-header--home .fz-header__advice:hover{background:var(--fz-cream)}.fz-header--home .fz-header__burger{min-height:56px;font-size:19px;padding-inline:8px;border:0;font-weight:600}.fz-header--home .fz-mobilenav{max-height:calc(100vh - 84px);max-height:calc(100dvh - 84px)}@media (min-width:960px){.fz-header .fz-header__nav{display:block}.fz-header .fz-header__burger,.fz-header .fz-mobilenav{display:none}}@media (min-width:960px) and (max-width:1279px){.fz-header .fz-header__inner{gap:20px}.fz-header--home .fz-header__brand{align-items:flex-start;flex-direction:column;gap:3px}.fz-header--home .fz-header__logo svg{width:196px}.fz-header--home .fz-header__claim{font-size:13px}.fz-header .fz-header__nav ul{gap:20px}}@media (min-width:960px) and (max-width:1180px){.fz-header .fz-header__advice{display:none}}@media (max-width:959px){.fz-header--home .fz-header__inner{min-height:84px;gap:16px}.fz-header--home .fz-header__brand{align-items:flex-start;flex-direction:column;gap:3px}.fz-header--home .fz-header__logo svg{width:196px;height:auto}.fz-header--home .fz-header__claim{font-size:13px;max-width:210px;white-space:normal}}@media (max-width:700px){.fz-header--home .fz-header__inner{min-height:64px;gap:12px}.fz-header--home .fz-header__logo svg{width:clamp(140px,40vw,180px)}.fz-header--home .fz-header__burger{min-height:48px;padding-inline:4px;font-size:17px}.fz-header--home .fz-mobilenav{max-height:calc(100dvh - 140px - env(safe-area-inset-bottom, 0px))}}@media (max-width:360px){.fz-header--home .fz-header__inner{gap:8px}.fz-header--home .fz-header__logo svg{width:140px}.fz-header--home .fz-header__claim{max-width:165px}.fz-header--home .fz-header__burger{gap:4px}}@media (max-width:700px){.fz-header--home .fz-header__chat{gap:5px;padding-inline:2px;font-size:15px}.fz-header--home .fz-header__chat span{display:inline}.fz-header--home .fz-header__chat svg{width:22px;height:22px}.fz-header--home .fz-header__burger{font-size:15px}}@media (max-width:360px){.fz-header.fz-header--home:has(.fz-header__chat) .fz-header__logo svg{width:112px}.fz-header--home .fz-header__inner{gap:4px}.fz-header--home .fz-header__actions{gap:0}}.fz-header--home .fz-header__advice{display:none}@media (max-width:700px){.fz-header--booking .fz-header__inner{min-height:64px;gap:12px}.fz-header--booking .fz-header__logo svg{width:clamp(140px,40vw,180px)}.fz-header--booking .fz-header__chat{gap:5px;padding-inline:2px;font-size:15px}.fz-header--booking .fz-header__chat span{display:inline}.fz-header--booking .fz-header__burger{min-height:48px;padding-inline:4px;font-size:15px;border:0}.fz-header--booking .fz-header__advice{display:none}}@media (max-width:360px){.fz-header.fz-header--booking:has(.fz-header__chat) .fz-header__logo svg{width:112px}.fz-header--booking .fz-header__inner{gap:4px}.fz-header--booking .fz-header__actions{gap:0}.fz-header--booking .fz-header__burger{gap:4px}}@media (min-width:960px) and (max-width:1180px){.fz-header .fz-header__nav{display:none}.fz-header .fz-header__burger{display:inline-flex}.fz-header .fz-mobilenav:not([hidden]){display:block}.fz-header .fz-header__inner{justify-content:space-between}}
@media (min-width:1181px) and (max-width:1399px){.fz-header .fz-header__inner .fz-header__nav{display:none}.fz-header .fz-header__inner .fz-header__burger{display:inline-flex}.fz-header .fz-mobilenav:not([hidden]){display:block}.fz-header .fz-header__inner{justify-content:space-between}}

.fz-mobile-contact { display: none; }
@media (max-width: 700px), (max-width: 1023px) and (max-height: 500px) {
  body:has(#fz-mobile-nav:not([hidden])) .fz-header {
    z-index: 80; overflow: visible; isolation: isolate;
  }
  body:has(#fz-mobile-nav:not([hidden])) .fz-header .fz-mobilenav {
    position: fixed; inset: var(--fz-header-height, 70px) 0 auto;
    height: calc(100dvh - var(--fz-header-height, 70px));
    max-height: calc(100dvh - var(--fz-header-height, 70px));
    z-index: 81; background: #fff; color: #1c3248;
    padding: 16px 20px calc(32px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; overscroll-behavior: contain;
  }
  .fz-header .fz-mobilenav nav { width: 100%; max-width: 38rem; margin-inline: auto; }
  .fz-header .fz-mobilenav .fz-mobilenav__destinations { grid-template-columns: 1fr; gap: 0; }
  .fz-header .fz-mobilenav a { min-height: 54px; font-size: 1.125rem; line-height: 1.45; padding: 12px; overflow-wrap: anywhere; }
  .fz-header .fz-mobilenav__heading { color: #1c3248; font-size: 1.125rem; }
  body:has(#fz-mobile-nav:not([hidden])) .fz-mobile-navigation,
  body:has(#fz-mobile-nav:not([hidden])) .fz-chat-side-tab { visibility: hidden; }
  body:has(.fz-mobile-contact) .fz-chat-side-tab { display: none; }
  .fz-pagehead:has(.fz-mobile-contact) { padding-block: 20px 0; }
  .fz-pagehead:has(.fz-mobile-contact) > .fz-pagehead__intro,
  .fz-pagehead:has(.fz-mobile-contact) > .fz-btn,
  .fz-pagehead:has(.fz-mobile-contact) > .fz-eyebrow { display: none; }
  .fz-pagehead:has(.fz-mobile-contact) .fz-h1 { font-size: 2rem; line-height: 1.15; margin-bottom: 0; }
  main:has(.fz-mobile-contact) > .fz-container:has(.fz-breadcrumbs) { display: none; }
  main:has(.fz-mobile-contact) #whatsapp-contact-title { scroll-margin-top: 100px; }
  main:has(.fz-mobile-contact) section[aria-labelledby="whatsapp-contact-title"],
  main:has(.fz-mobile-contact) section[aria-labelledby="fz-advice-email-title"] { display: none; }
  .fz-mobile-contact { display: grid; gap: 12px; margin-top: 12px; }
  .fz-mobile-contact > p { margin: 0 0 4px; color: #46576a; font-size: 1.125rem; }
  .fz-mobile-contact .fz-contact-tile { display: flex; align-items: center; gap: 14px; min-height: 94px; padding: 18px 16px; border: 1px solid #cbd9e7; border-radius: 14px; background: #f3f7fc; color: #1c3248; text-decoration: none; }
  .fz-mobile-contact .fz-contact-tile--whatsapp { background: #edf8f2; border-color: #b1d8c1; }
  .fz-contact-tile > span:nth-child(2) { flex: 1; min-width: 0; }
  .fz-contact-tile strong { display: block; font-size: 1.25rem; line-height: 1.25; }
  .fz-contact-tile small { display: block; margin-top: 4px; font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
  .fz-contact-tile__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; background: #fff; color: #155b99; font-size: 1.65rem; }
  .fz-contact-tile:focus-visible { outline: 3px solid #155b99; outline-offset: 3px; }
  main:has(.fz-search--page) > .fz-pagehead::before {
    content: ''; display: block; height: 148px; margin-bottom: 18px; border-radius: 14px;
    background: #dceaf2 url('/images/destinations/bernkastel-kues-2025.webp') center 52% / cover no-repeat;
  }
  body:has(.fz-mobile-navigation-slot) main:has(.fz-search--page) > .fz-pagehead { padding-top: 18px; }
}

.fz-search-hero {
  display: none;
}
@media (max-width: 700px), (max-width: 1023px) and (max-height: 500px) {
  main:has(.fz-search--page) > .fz-pagehead::before {
    content: none;
  }
  .fz-search-hero {
    display: flex;
    position: relative;
    align-items: center;
    min-height: 120px;
    margin: 0 0 18px;
    padding: 14px 18px;
    overflow: hidden;
    border-radius: 4px;
    background:
      linear-gradient(90deg, #103d55 0%, rgb(16 61 85 / 94%) 24%, rgb(16 61 85 / 58%) 52%, rgb(16 61 85 / 4%) 82%),
      url('/images/flusszauber-morgenlicht-640.webp') center 57% / cover no-repeat;
    color: #fff;
    box-shadow: 0 3px 12px rgb(16 61 85 / 12%);
  }
  .fz-search-hero p {
    margin: 0;
    font-family: var(--font-caveat), Georgia, serif;
    font-size: 1.75rem;
    font-style: italic;
    font-weight: 600;
    line-height: 1.12;
    text-shadow: 0 1px 3px rgb(0 0 0 / 25%);
  }
}

.fz-search-hero {
  display: none;
}
@media (max-width: 700px), (max-width: 1023px) and (max-height: 500px) {
  main:has(.fz-search--page) > .fz-pagehead::before {
    content: none;
  }
  .fz-search-hero {
    display: flex;
    position: relative;
    align-items: center;
    min-height: 120px;
    margin: 0 0 18px;
    padding: 14px 18px;
    overflow: hidden;
    border-radius: 4px;
    background:
      linear-gradient(90deg, #103d55 0%, rgb(16 61 85 / 94%) 24%, rgb(16 61 85 / 58%) 52%, rgb(16 61 85 / 4%) 82%),
      image-set(
        url('/images/flusszauber-morgenlicht-640.webp') 1x,
        url('/images/flusszauber-morgenlicht-1280.webp') 2x
      ) center 57% / cover no-repeat;
    color: #fff;
    box-shadow: 0 3px 12px rgb(16 61 85 / 12%);
  }
  .fz-search-hero p {
    margin: 0;
    font-family: var(--font-caveat), Georgia, serif;
    font-size: 1.75rem;
    font-style: italic;
    font-weight: 600;
    line-height: 1.12;
    text-shadow: 0 1px 3px rgb(0 0 0 / 25%);
  }
}

@media (max-width: 480px) {
  .fz-search-hero {
    background-image:
      linear-gradient(90deg, #103d55 0%, rgb(16 61 85 / 94%) 24%, rgb(16 61 85 / 58%) 52%, rgb(16 61 85 / 4%) 82%),
      image-set(
        url('/images/flusszauber-morgenlicht-480.webp') 1x,
        url('/images/flusszauber-morgenlicht-864.webp') 2x
      );
  }
}
