/* ==========================================================
   Heartlines Theme v1.6.23 – Tablet-Tuning
   Eigenständiger Zwischenbreakpoint 921–1100 px.
   Verhindert die gequetschte Desktop-Darstellung auf Tablets.
   ========================================================== */

@media (min-width: 921px) and (max-width: 1100px) {

  /* Header wirklich als kompakte Tablet-/Mobile-Variante erzwingen. */
  body .hl-core-header .wrap.nav {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) 48px !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 78px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }

  body .hl-core-header .menu,
  body .hl-core-header .nav-right {
    display: none !important;
  }

  body .hl-core-header .burger {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    grid-column: 1 !important;
    justify-self: start !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
  }

  body .hl-core-header .logo {
    display: inline-flex !important;
    grid-column: 2 !important;
    justify-self: center !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body .hl-core-header .logo img {
    width: auto !important;
    height: 40px !important;
    max-width: min(190px, 42vw) !important;
  }

  body .hl-v121-mobile-account-shortcut {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    grid-column: 3 !important;
    justify-self: end !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    transform: none !important;
  }

  /* Detailseite: auf Tablet kein Desktop-Hauptlayout mit Sidebar. */
  body.single-hl_herzleser .advisor-detail-template {
    width: calc(100% - 36px) !important;
    max-width: calc(100% - 36px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  body.single-hl_herzleser .advisor-detail-template .layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.single-hl_herzleser .advisor-detail-template .col-main {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.single-hl_herzleser .advisor-detail-template .col-side {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.single-hl_herzleser .advisor-detail-template .col-side .scard {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Profilkopf bleibt auf Tablet zweispaltig, erhält aber mehr Luft. */
  body.single-hl_herzleser .advisor-detail-template .hl-v12-profile-hero {
    display: grid !important;
    grid-template-columns: minmax(280px, 38%) minmax(0, 1fr) !important;
    column-gap: 26px !important;
    row-gap: 22px !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.single-hl_herzleser .advisor-detail-template .hl-v12-profile-hero > .photo {
    min-width: 0 !important;
    min-height: 390px !important;
    height: 100% !important;
  }

  body.single-hl_herzleser .advisor-detail-template .hl-v12-profile-hero > .hero-info {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* Vier Gesprächsarten auf Tablet 2×2 statt gequetscht in einer Zeile. */
  body.single-hl_herzleser .advisor-detail-template .hero-cta.hlfp-four-actions.hl-v12-detail-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 20px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.single-hl_herzleser .advisor-detail-template .hero-cta.hlfp-four-actions .hlfp-detail-action-icon {
    width: 68px !important;
    height: 68px !important;
    max-width: 68px !important;
    flex-basis: 68px !important;
  }

  body.single-hl_herzleser .advisor-detail-template .hero-cta.hlfp-four-actions .hlfp-detail-action-label {
    font-size: 15px !important;
  }

  body.single-hl_herzleser .advisor-detail-template .hero-cta.hlfp-four-actions .hlfp-detail-action-price {
    font-size: 12px !important;
  }

  body.single-hl_herzleser .advisor-detail-template .hl-v1617-profile-notice {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Sehr schmale Tablets / große Phones im Querformat:
   Profilkopf lieber stapeln statt knapp zweispaltig. */
@media (min-width: 921px) and (max-width: 980px) {
  body.single-hl_herzleser .advisor-detail-template .hl-v12-profile-hero {
    grid-template-columns: 1fr !important;
  }

  body.single-hl_herzleser .advisor-detail-template .hl-v12-profile-hero > .photo {
    width: min(100%, 520px) !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 5 !important;
    margin: 0 auto !important;
  }

  body.single-hl_herzleser .advisor-detail-template .hl-v12-profile-hero > .photo > img {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}
