/* ==========================================================
   Heartlines Theme v1.6.9 – Mobile Nutz-/Gesprächsseiten
   Ziel: keine mehrfach verschachtelten schmalen Rahmen mehr.
   Gilt für Registrierung, Login/Konto, Guthaben/Checkout sowie
   Chat, Telefon, Video und E-Mail-Gespräche.
   ========================================================== */

@media (max-width: 760px) {
  /* Der Theme-Artikelrahmen lag bisher zusätzlich um die Plugin-Karten.
     Mobil wird dieser äußere Rahmen neutralisiert; die eigentliche Plugin-
     Karte bleibt als sichtbarer, professioneller Rahmen bestehen. */
  body.heartlines-utility-page .hl-core-page-content.hl14-utility-content {
    width: 100% !important;
    max-width: none !important;
    padding: 8px 8px 24px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.heartlines-utility-page .hl14-utility-content > .c-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* Alle technischen Heartlines-Shells nutzen mobil nahezu die komplette
     Viewportbreite. Alte calc(100% - 18/32px)-Regeln werden überschrieben. */
  body.heartlines-utility-page .hla-shell,
  body.heartlines-utility-page .hla-register-shell,
  body.heartlines-utility-page .hle-shell,
  body.heartlines-utility-page .hlchat-shell,
  body.heartlines-utility-page .hlaudio-shell,
  body.heartlines-utility-page .hlvideo-shell,
  body.heartlines-utility-page .hlp-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 8px 0 26px !important;
    box-sizing: border-box !important;
  }

  /* Sichtbare Karten: genug Innenraum, aber nicht erneut 20–26 px pro Ebene. */
  body.heartlines-utility-page .hla-card,
  body.heartlines-utility-page .hle-card,
  body.heartlines-utility-page .hlchat-card,
  body.heartlines-utility-page .hlaudio-card,
  body.heartlines-utility-page .hlvideo-card,
  body.heartlines-utility-page .hlp-card,
  body.heartlines-utility-page .hlw-card {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    padding: 14px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 14px !important;
  }

  /* Registrierung besitzt zusätzlich eigene Untersektionen. */
  body.heartlines-utility-page .hla-register-card {
    padding: 14px !important;
  }

  body.heartlines-utility-page .hla-register-section {
    padding: 12px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
  }

  body.heartlines-utility-page .hla-register-consents {
    padding: 11px 12px !important;
  }

  /* Formularfelder immer auf die tatsächlich verfügbare Breite begrenzen. */
  body.heartlines-utility-page input,
  body.heartlines-utility-page select,
  body.heartlines-utility-page textarea,
  body.heartlines-utility-page button {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Gesprächsfenster dürfen die verfügbare Breite vollständig ausnutzen. */
  body.heartlines-utility-page .hlchat-live,
  body.heartlines-utility-page .hlaudio-stage,
  body.heartlines-utility-page .hlvideo-stage,
  body.heartlines-utility-page .hle-conversation {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  /* Große Überschriften auf kleinen Geräten sauber umbrechen. */
  body.heartlines-utility-page .hla-card h1,
  body.heartlines-utility-page .hle-card h1,
  body.heartlines-utility-page .hlchat-card h1,
  body.heartlines-utility-page .hlaudio-card h1,
  body.heartlines-utility-page .hlvideo-card h1,
  body.heartlines-utility-page .hlp-card h1 {
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}

@media (max-width: 390px) {
  body.heartlines-utility-page .hl-core-page-content.hl14-utility-content {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  body.heartlines-utility-page .hla-card,
  body.heartlines-utility-page .hle-card,
  body.heartlines-utility-page .hlchat-card,
  body.heartlines-utility-page .hlaudio-card,
  body.heartlines-utility-page .hlvideo-card,
  body.heartlines-utility-page .hlp-card,
  body.heartlines-utility-page .hlw-card {
    padding: 12px !important;
  }

  body.heartlines-utility-page .hla-register-section {
    padding: 10px !important;
  }
}
