
/* Doberstein — Global mobile layout fixes */

@media (max-width: 760px) {

  /* Prevent text containers from overflowing */
  .container,
  main,
  section,
  article,
  .section-head,
  .contact-grid {
    min-width: 0;
    max-width: 100%;
  }

  /* Allow long German words to wrap */
  h1, h2, h3 {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Prevent oversized images */
  img, video {
    max-width: 100%;
  }
}

/* MOBILE — Smaller titles without splitting words */

@media (max-width: 760px) {

  /* Main page titles */
  main h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.35rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em !important;
  }

  /* Section titles */
  main h2 {
    font-size: clamp(1.55rem, 6.7vw, 2.2rem) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.02em !important;
  }

  /* Keep words complete */
  main h1,
  main h2,
  main h3 {
    hyphens: none !important;
    -webkit-hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
    max-width: 100%;
  }

  /* Allow heading containers to shrink */
  main section,
  main article,
  main .container {
    min-width: 0;
  }

}
