/* Coaching Tiefenbrunnen — minimal responsive corrections to the original Uncode frontend.
   Tablet/phone only. Preserve the original desktop design and all content. */
@media screen and (max-width: 959px) {
  /* WordPress inline-block headings can exceed narrow column widths on phones.
     Long German words must wrap inside their actual text column. */
  .heading-text h1,
  .heading-text h2,
  .heading-text h3 {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  /* Keep Uncode mobile navigation, increase its real touch target. */
  #masthead .menu-smart a {
    min-height: 44px;
    box-sizing: border-box;
  }

  /* The old cookie plugin overlays content and its button is only 25px high.
     Keep its original message and behaviour, correct its responsive layout. */
  #fhw_cookiehinweis {
    position: fixed !important;
    inset-inline: 0 !important;
    bottom: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(65dvh, 380px) !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-flow: column nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 16px max(16px, env(safe-area-inset-right))
             calc(16px + env(safe-area-inset-bottom))
             max(16px, env(safe-area-inset-left)) !important;
    background: rgb(50, 50, 50) !important;
    color: #fff !important;
    text-align: center !important;
  }
  #fhw_cookiehinweis p {
    box-sizing: border-box;
    max-width: 560px !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: #fff !important;
  }
  #fhw_cookiehinweis button.mainbutton {
    box-sizing: border-box !important;
    min-height: 44px !important;
    min-width: 132px !important;
    margin: 0 !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    cursor: pointer;
  }
  #fhw_cookiehinweis a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin: 0;
    color: #c5e3ff !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    text-decoration: underline !important;
    overflow-wrap: anywhere;
  }
}

@media screen and (max-width: 390px) {
  /* The 25px heading for Gesundheit is wider than a 233px content column. */
  .heading-text h2.h2 { font-size: clamp(20px, 6.2vw, 24px) !important; }
  /* Keep the privacy title prominent while allowing a two-line wrap. */
  body.page-id-80485 .heading-text h1.h1 {
    font-size: clamp(25px, 7.4vw, 29px) !important;
    line-height: 1.2 !important;
  }
}
