/* Malexera v5.3.1 — mobile viewport, orientation and journey navigation */
html,
body {
  max-width: 100%;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

@media (max-width: 640px) {
  .hero2 {
    min-height: auto;
    padding: calc(92px + env(safe-area-inset-top, 0px)) 0 48px;
    overflow: clip;
  }

  .hero2 .inner.hh-weit {
    width: 100%;
    padding-inline: max(20px, env(safe-area-inset-left, 0px));
  }

  .hh-grid {
    gap: 34px;
  }

  .hh-txt {
    min-width: 0;
    text-align: center;
  }

  .hh-txt .label {
    max-width: 34ch;
    margin: 0 auto 16px;
    font-size: clamp(.64rem, 2.9vw, .72rem);
    line-height: 1.55;
    letter-spacing: .17em;
    overflow-wrap: anywhere;
  }

  .hh-txt .hswap {
    font-size: clamp(2rem, 9.4vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: -.025em;
  }

  .hh-txt .lead {
    max-width: 35ch;
    margin: 22px auto 0;
    font-size: clamp(1rem, 4.5vw, 1.12rem);
    line-height: 1.55;
    text-wrap: pretty;
  }

  .hh-txt .lead .hl {
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  .hero2 .cta-row.cta-drei {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 390px);
    max-width: 390px;
    gap: 8px;
    margin: 26px auto 0;
  }

  .hero2 .cta-drei .btn.wahl {
    min-width: 0;
    min-height: 74px;
    padding: 11px 5px;
    flex-direction: column;
    gap: 6px;
    border-radius: 14px;
    font-size: clamp(.68rem, 3.2vw, .82rem);
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .hero2 .cta-drei .btn.wahl .fi {
    width: 21px;
    height: 21px;
    flex: none;
  }

  .hero2 .cta-drei .btn.wahl:first-child {
    border-color: color-mix(in srgb, var(--warm) 72%, var(--line));
    background: color-mix(in srgb, var(--warm) 11%, var(--panel));
  }

  .hh-dlg,
  .dlg-karte {
    min-width: 0;
    max-width: 100%;
  }

  .scroll-hint {
    display: none;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  :is(#start, #formel, #erlebnis, #praxis, #anamnese) {
    scroll-margin-top: 76px;
  }

  .mobile-journey {
    position: fixed;
    z-index: 995;
    left: max(10px, env(safe-area-inset-left, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 58px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--panel) 92%, transparent);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .2);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .mobile-journey a {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 46px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 12px;
    color: var(--faint);
    font-size: clamp(.58rem, 2.8vw, .68rem);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
  }

  .mobile-journey a::before {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--brass-soft);
    content: "";
    opacity: 0;
    transform: scale(.82);
    transition: opacity .2s ease, transform .2s ease;
  }

  .mobile-journey a > * {
    position: relative;
    z-index: 1;
  }

  .mobile-journey .mj-dot {
    width: 7px;
    height: 7px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    background: transparent;
    transition: width .2s ease, border-color .2s ease, background .2s ease;
  }

  .mobile-journey a.is-active,
  .mobile-journey a[aria-current="location"] {
    color: var(--warm);
  }

  .mobile-journey a.is-active::before,
  .mobile-journey a[aria-current="location"]::before {
    opacity: 1;
    transform: scale(1);
  }

  .mobile-journey a.is-active .mj-dot,
  .mobile-journey a[aria-current="location"] .mj-dot {
    width: 20px;
    border-color: var(--warm);
    border-radius: 99px;
    background: var(--warm);
  }

  .malik-fab {
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .malik-panel {
    bottom: calc(146px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 359px) {
  .hero2 .inner.hh-weit {
    padding-inline: 14px;
  }

  .hero2 .cta-row.cta-drei {
    grid-template-columns: 1fr;
    width: min(100%, 280px);
  }

  .hero2 .cta-drei .btn.wahl {
    min-height: 48px;
    padding: 11px 14px;
    flex-direction: row;
    font-size: .84rem;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .top .wrap {
    height: 54px;
  }

  .hero2 {
    min-height: auto;
    padding:
      calc(72px + env(safe-area-inset-top, 0px))
      max(18px, env(safe-area-inset-right, 0px))
      36px
      max(18px, env(safe-area-inset-left, 0px));
  }

  .hero2 .inner.hh-weit {
    max-width: 980px;
    padding-inline: 0;
  }

  .hh-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr);
    gap: clamp(22px, 5vw, 54px);
    align-items: center;
  }

  .hh-txt {
    text-align: left;
  }

  .hh-txt .label {
    margin: 0 0 10px;
    max-width: 58ch;
    font-size: .62rem;
    line-height: 1.4;
  }

  .hh-txt .hswap {
    font-size: clamp(1.72rem, 4.9vw, 2.65rem);
    line-height: 1.04;
  }

  .hh-txt .lead {
    max-width: 55ch;
    margin: 13px 0 0;
    font-size: .91rem;
    line-height: 1.42;
  }

  .hero2 .cta-row.cta-drei {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 560px;
    margin: 16px 0 0;
    gap: 7px;
  }

  .hero2 .cta-drei .btn.wahl {
    min-height: 44px;
    padding: 9px 7px;
    flex-direction: row;
    font-size: .76rem;
  }

  .hero2 .cta-drei .btn.wahl .fi {
    width: 17px;
    height: 17px;
  }

  .hh-dlg {
    max-height: calc(100dvh - 88px);
    overflow: auto;
    overscroll-behavior: contain;
  }

  .scroll-hint {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .mobile-journey {
    top: 50%;
    right: max(8px, env(safe-area-inset-right, 0px));
    bottom: auto;
    left: auto;
    grid-template-columns: 1fr;
    width: 48px;
    min-height: 0;
    padding: 5px;
    border-radius: 16px;
    transform: translateY(-50%);
  }

  .mobile-journey a {
    min-height: 38px;
  }

  .mobile-journey a span:last-child {
    position: absolute;
    right: calc(100% + 9px);
    width: max-content;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--ink);
    opacity: 0;
    pointer-events: none;
    transform: translateX(4px);
    transition: opacity .18s, transform .18s;
  }

  .mobile-journey a:is(:hover, :focus-visible, .is-active) span:last-child {
    opacity: 1;
    transform: none;
  }

  .malik-fab {
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  .malik-panel {
    bottom: 76px;
  }
}

@media (min-width: 921px) {
  .mobile-journey {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-journey a::before,
  .mobile-journey .mj-dot,
  .mobile-journey a span:last-child {
    transition: none;
  }
}
