/* ==========================================================
   Heartlines Theme v1.6.5 – Mobile Grafik-Feinschliff
   - Einheitlicher mobiler Header auf allen Seiten
   - Startseite: Exklusive / Top / Neue Herzleser in voller Kartenbreite
   ========================================================== */

@media (max-width: 920px) {
  /* ---------- Einheitlicher 3-Spalten-Header ---------- */
  .hl-core-header .wrap.nav {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    align-items: center !important;
    gap: 10px !important;
    height: 74px !important;
    position: relative !important;
    justify-content: initial !important;
  }

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

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

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

  .hl-v121-mobile-account-shortcut {
    position: static !important;
    grid-column: 3 !important;
    justify-self: end !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 0 !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
  }

  body.single-hl_herzleser .hl-v121-mobile-account-shortcut {
    right: auto !important;
  }

  /* ---------- Startseite: breite mobile Sliderkarten ---------- */
  .heartlines-home .heartlines-exclusive-group .wrap,
  .heartlines-home .heartlines-top-group .wrap,
  .heartlines-home .heartlines-new-group .wrap {
    width: 100% !important;
    max-width: none !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .heartlines-home .heartlines-exclusive-group .adv-carousel,
  .heartlines-home .heartlines-top-group .adv-carousel,
  .heartlines-home .heartlines-new-group .adv-carousel {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
  }

  .heartlines-home .heartlines-exclusive-group .adv-track.owl-carousel .owl-stage-outer,
  .heartlines-home .heartlines-top-group .adv-track.owl-carousel .owl-stage-outer,
  .heartlines-home .heartlines-new-group .adv-track.owl-carousel .owl-stage-outer {
    overflow: visible !important;
    padding: 0 0 12px !important;
  }

  .heartlines-home .heartlines-exclusive-group .adv-track.owl-carousel .owl-stage,
  .heartlines-home .heartlines-top-group .adv-track.owl-carousel .owl-stage,
  .heartlines-home .heartlines-new-group .adv-track.owl-carousel .owl-stage {
    display: flex !important;
    align-items: stretch !important;
  }

  .heartlines-home .heartlines-exclusive-group .adv-track.owl-carousel .owl-item,
  .heartlines-home .heartlines-top-group .adv-track.owl-carousel .owl-item,
  .heartlines-home .heartlines-new-group .adv-track.owl-carousel .owl-item {
    display: flex !important;
    align-items: stretch !important;
  }

  /* Entscheidend: ältere Mobile-Regel setzt .adv-card auf flex-basis:78%.
     Nur width:100% reicht in einem Flex-Kontext deshalb nicht. Die Karten
     müssen auch bei flex-basis exakt die volle Contentbreite einnehmen. */
  .heartlines-home .heartlines-exclusive-group .adv-card,
  .heartlines-home .heartlines-top-group .adv-card,
  .heartlines-home .heartlines-new-group .adv-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Pfeile sichtbar auf der Karte, aber nicht abgeschnitten */
  .heartlines-home .heartlines-exclusive-group .adv-carousel > .arrow,
  .heartlines-home .heartlines-top-group .adv-carousel > .arrow,
  .heartlines-home .heartlines-new-group .adv-carousel > .arrow {
    display: flex !important;
    width: 38px !important;
    height: 38px !important;
    top: 46% !important;
    z-index: 30 !important;
    box-shadow: 0 10px 24px rgba(86, 35, 42, 0.14) !important;
  }

  .heartlines-home .heartlines-exclusive-group .adv-carousel > .arrow.l,
  .heartlines-home .heartlines-top-group .adv-carousel > .arrow.l,
  .heartlines-home .heartlines-new-group .adv-carousel > .arrow.l {
    left: 6px !important;
  }

  .heartlines-home .heartlines-exclusive-group .adv-carousel > .arrow.r,
  .heartlines-home .heartlines-top-group .adv-carousel > .arrow.r,
  .heartlines-home .heartlines-new-group .adv-carousel > .arrow.r {
    right: 6px !important;
  }
}

@media (max-width: 390px) {
  .hl-core-header .wrap.nav {
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    gap: 8px !important;
    height: 72px !important;
  }

  .hl-core-header .logo img {
    height: 36px !important;
    max-width: min(164px, 50vw) !important;
  }

  .hl-v121-mobile-account-shortcut {
    width: 40px !important;
    height: 40px !important;
  }
}
