/* Handy-Ansicht Bona Elektrotechnik: greift nur auf kleinen Bildschirmen, am Computer bleibt alles wie bisher */
@media (max-width: 767px) {
  html, body { width: auto !important; min-width: 0 !important; overflow-x: hidden; }
  body { margin: 0 !important; }
  img { max-width: 100% !important; height: auto !important; }
  img[src*="clearpixel"] { display: none !important; }
  p, address, span, li { font-size: 18px !important; line-height: 1.35 !important; }
  li { margin-bottom: 4px !important; }

  /* Seiten mit Tabellen (Startseite, Industrie) */
  body > div[align="center"] { text-align: left; padding: 8px; box-sizing: border-box; }
  table, tbody, tr, td { display: block !important; width: auto !important; height: auto !important; }
  tr:has(> td > #Bild3) { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0; }
  tr:has(> td > #Bild3) > td { flex: 0 0 auto; width: 0 !important; }
  tr:has(> td > #Bild3) > td:has(> #Bild3), tr:has(> td > #Bild3) > td:has(> #Bild4), tr:has(> td > #Bild3) > td:has(> #Bild5) { flex: 0 0 32%; width: 32% !important; }
  tr:has(> td > #Bild3) > td:has(> #Bild31) { flex: 0 0 100%; width: 100% !important; }
  td#Text6 span { font-size: 22px !important; }
  td.TextObject { margin: 0 0 12px; }
  td[style*="border"] { margin: 8px 0 !important; }
  #NavigationBar1 tbody { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 4px; }
  #NavigationBar1 tr, #NavigationBar1 td { width: auto !important; }
  .TextNavBar { text-align: center !important; font-size: 15px !important; line-height: 1.8; padding: 8px 0 16px; }

  /* Seiten mit frei platzierten Bereichen (Privathaushalt, Kontakt, Historie, Impressum) */
  #LayoutLYR { position: static !important; float: none !important; display: flex !important; flex-wrap: wrap; align-items: flex-start; width: 100% !important; padding: 8px; box-sizing: border-box; }
  #LayoutLYR > div { position: static !important; width: 100% !important; height: auto !important; margin: 0 0 12px !important; }
  #LayoutLYR > #Bild3LYR, #LayoutLYR > #Bild4LYR, #LayoutLYR > #Bild5LYR { width: 32% !important; margin-right: 1% !important; }
  #NavigationBar1 { position: static !important; width: auto !important; height: auto !important; display: flex !important; flex-wrap: wrap; justify-content: center; gap: 4px; }
  #NavigationBar1 .NavBar_li { position: static !important; }
  #NavigationBar1 ul { display: none !important; }
  [id^="NavigationBar2"] { text-align: center !important; font-size: 15px !important; line-height: 1.8; }
}
