/* Malexera v5.3.0 — mobile viewport and orientation hardening */
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;
  }
}

@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;
  }
}
