/* Peter Deutschmark Gallery - responsive Ansicht (16.11.2026)
   Desktop (> 1000px) bleibt unveraendert (955px-Raster); darunter faellt das Raster auf eine Spalte. */

img { max-width: 100%; }
iframe, video, embed, object { max-width: 100%; }

@media (max-width: 1000px) {
  body { margin: 10px 0; }
  #container { margin: 0 14px; width: auto; max-width: 955px; }
  #seitenheaderbox,
  #naviheaderbox,
  .contentwrap,
  .contentline,
  .contentlineblank,
  #imprintbox { width: auto !important; max-width: 955px; }

  /* Kopf: Titelgrafik und Kontakt untereinander */
  #seitenheaderbox { height: auto; padding-bottom: 8px; }
  #seitenheader_titel { position: relative; left: 0; width: 100%; max-width: 650px; height: 90px; background-size: contain; }
  #header_linkbox { width: 100%; max-width: 355px; height: 64px; }
  #kontakt { position: static; width: auto; height: auto; margin-top: 6px; text-align: left; font-size: 14px; }

  /* Navigation: umbrechen statt abschneiden */
  #naviheaderbox { height: auto; padding: 8px 0 10px; overflow: hidden; }
  #naviheaderbox #navigation { float: none; display: flex; flex-wrap: wrap; gap: 4px 22px; }
  #naviheaderbox .navititel { float: none; padding-right: 0; font-size: 22px; letter-spacing: -1px; }
  .navititelv { display: inline-block; padding-right: 16px; font-size: 18px; }

  /* Raster: eine Spalte */
  #spalte1, #spalte2, #spalte3, #spalte4,
  #spalte12, #spalte23, #spalte34,
  #spalte123, #spalte234, #spalte1234 {
    float: none !important;
    width: auto !important;
    max-width: 100%;
    margin-right: 0 !important;
    left: auto !important;
    padding-top: 0 !important;
    margin-top: 16px;
    clear: both;
  }
  /* absolut positionierte Seitenspalte (Film-/Werkseiten) wieder in den Fluss holen */
  div[style*="position:absolute"], div[style*="position: absolute"] {
    position: static !important;
    left: auto !important;
    height: auto !important;
  }
  div[style*="position:static"] { position: static !important; }

  table { max-width: 100%; }
  table[width] { width: 100% !important; table-layout: fixed; }
  td img { max-width: 100%; height: auto; }
  col { width: auto !important; }

  .works_group { float: none; }
  .work_quer, .work_hoch { width: auto; max-width: 100%; margin-left: 0; padding-right: 0; }
  #exhb_image_box { width: auto !important; }
  h1, h3, td { overflow-wrap: anywhere; }
  #exhb_image_credits { margin-top: 12px; }
  #exhb_image_slides { float: none; }
  .vidwrap { max-width: 100%; width: 100% !important; }
  .vidwrap video { width: 100%; height: auto; }
  #gallery, .slideshow-container, #slideshow, #loading { max-width: 100%; }
  .contentline { float: none; clear: both; }
  #imprintbox { float: none; clear: both; overflow: hidden; }
}

@media (max-width: 700px) {
  /* Menue als 4-spaltiges Raster (4 + 3) statt loser Zeilen */
  #naviheaderbox #navigation { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 30px; }
  #naviheaderbox .navititel { white-space: nowrap; }
}

@media (max-width: 480px) {
  #naviheaderbox #navigation { justify-content: space-between; gap: 8px 6px; }
  #naviheaderbox .navititel { font-size: 18px; letter-spacing: -0.5px; }
}

@media (max-width: 600px) {
  h1 { font-size: 24px; letter-spacing: -1px; }
  h4 { font-size: 22px; }
  #naviheaderbox .navititel { font-size: 20px; }
  body { font-size: 85%; line-height: 1.5; }
  ul.thumbs li { padding-right: 3px; }
  .thumb, .workthumbs, .smallthumb { padding-right: 8px; padding-bottom: 8px; }
  .workthumbs { height: auto; }
}
