/* Glas Ritter – Handy-Ansicht (Stand 11/2026). Greift nur bei schmalen Bildschirmen, Desktop bleibt unverändert. */
@media (max-width: 1000px) {
  html, body { overflow-x: hidden; }
  img { max-width: 100%; height: auto; }
  body { font-size: 15px; }

  /* Kopf: Logo, Menü, Kontakt untereinander */
  #header { background-size: cover; }
  #header .inside, .sub #header .inside, .sub_2 #header .inside { width: auto; height: auto; padding: 0 0 20px; }
  #logo { position: static; text-align: center; background: #35333a; }
  #logo img { width: 150px; height: auto; display: inline-block; }
  #nav1 { position: static; width: auto; height: auto; }
  #nav1 ul.level_1 { padding: 6px 16px 10px; margin: 0; }
  .mod_navigation a, .mod_navigation > ul > li > span { padding: 7px 8px; }
  .mod_navigation a span { padding: 0; display: inline; }
  #kontakt { position: static; width: auto; margin: 0; }
  #kontakt .toggler { width: auto; background-position: right top; }
  #kontakt .accordion { background: #4a4850; }
  .facebook, .twitter, .bx-prev, .bx-next, #hinweis { display: none !important; }

  /* Bühne / Slider: nur erste Folie, Bild unter dem Text */
  .ce_npslider, .bx-wrapper, .bx-window, .bx-viewport, .slider { width: 100% !important; max-width: 100% !important; height: auto !important; overflow: hidden; }
  .slider { position: static !important; left: 0 !important; transform: none !important; }
  .slider > div { float: none !important; width: auto !important; display: flex !important; flex-direction: column; }
  .slider:has(> .bx-child) > div:not(.bx-child), .slider > .bx-child { display: none !important; }
  .slider > div:not(.bx-child) + .bx-child { display: flex !important; }
  #header .ce_text { padding: 0 16px; }
  #header .mod_article > .ce_text { display: flex; flex-direction: column; }
  #header .ce_text > .image_container { order: 2; }
  #header .image_container img { max-height: 340px; width: auto; }
  .sub #header .image_container img, .sub_2 #header .image_container img { max-height: 240px; }
  #header h1, #header h2 { padding-top: 24px; font-size: 34px; line-height: 38px; }
  #header .image_container, #header .image_container.float_right { float: none !important; margin: 16px 0 0 !important; text-align: center; }
  #headerreparaturen .image_container { margin: 16px 0 0 !important; }

  /* Inhalt */
  #container-innen, #unten, #footer .inside, .bildergalerie .ce_gallery { width: auto; }
  #container-innen, #unten .inside, #footer .inside { padding-left: 16px !important; padding-right: 16px !important; }
  .sub #main { padding: 10px 0 20px; }
  .sub #main .einspaltig { padding: 20px 0; }
  .sub #unten .inside { padding-left: 16px; }
  #left { float: none; width: auto; }
  #nav2 { position: static; width: auto; min-height: 0; margin: 0 0 20px; }
  #nav2 ul.level_1 { padding: 10px 16px; margin: 0; }
  #main p, #unten p { line-height: 24px; }
  #main table, #unten table { display: block; overflow-x: auto; max-width: 100%; }

  /* Spalten untereinander */
  .sc, .sc2, .sc3, .sc3-2, .sc4, .sc4-2, .sc4-3, .sc5, .sc5-2, .sc5-3, .sc5-4,
  .sub #unten .sc3, .sub #main .sc3, #contenthome .sc4, #footer .sc3, #footer .sc3-first, #footer .sc3-last {
    float: none !important; display: block !important; width: auto !important; padding-right: 0 !important; margin-bottom: 20px !important;
  }
  #contenthome .sc4 { padding: 13px !important; }
  #contenthome .image_container img, #unten .image_container img { width: 100%; }
  #contenthome .absolut { left: auto; right: 10px; }

  /* Startseite unten */
  #untenhome { height: auto; }
  #untenhome .individuell, #untenhome .leistungen { position: static; width: auto; height: auto; padding: 20px 16px; background-size: cover; }
  #untenhome .individuell { background: #35333a; }

  /* Galerien */
  .bildergalerie .galerie h2, .bildergalerie #main .galerie ul, .bildergalerie #unten .galerie ul { float: none; width: auto; }
  .ce_gallery ul { padding-left: 0 !important; }
  .ce_gallery li { width: 48% !important; margin: 0 2% 7px 0 !important; }
  .ce_gallery li:nth-child(odd) { clear: left; }
  .ce_gallery li img { width: 100%; height: auto; }

  /* Fuß */
  #footer .grau { padding: 24px 16px; min-height: 0; }
  #footer .grau .image_container { display: none; }
  #footer .sc3-first img, #footer .socialweb h3 { margin-left: 0; }
  #footer p[style*="right"] { text-align: left !important; line-height: 28px; }
  #footer h3, #footer h3 strong { font-size: 22px; }
  #footer .socialweb p { text-align: center; }
  #footer .socialweb p img { margin: 10px auto !important; }
}

/* Startseite Desktop: Leistungsliste passt komplett in die Bühne */
@media (min-width: 1001px) {
  #headerhome h2 { padding-top: 205px !important; margin-bottom: 8px !important; }
  #headerhome p { margin-bottom: 7px; }
  #headerhome p.liste { font-size: 15px; line-height: 19px; white-space: nowrap; }
  #untenhome .individuell, #untenhome .leistungen { display: flex; flex-direction: column; justify-content: center; box-sizing: content-box; }
  #untenhome .individuell h2, #untenhome .leistungen h2 { font-size: 23px !important; line-height: 27px; margin: 0 0 10px !important; letter-spacing: .5px; }
  #untenhome .individuell p, #untenhome .leistungen p { font-size: 14px; line-height: 21px !important; margin: 0; }
  #untenhome .ce_image img { height: 420px; object-fit: cover; }
}

/* WhatsApp-Reiter am rechten Rand (Stand 26.11.2026) */
#wa-tab { position: absolute; right: 6px; top: 220px; z-index: 1000; display: flex; flex-direction: row-reverse; align-items: flex-start; font-family: Arial, Helvetica, sans-serif; }
#wa-tab .wa-btn { width: 58px; height: 58px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#wa-tab .wa-btn img { width: 54px; height: 54px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); transition: transform .15s; }
#wa-tab .wa-btn:hover img, #wa-tab.open .wa-btn img { transform: scale(1.08); }
#wa-tab .wa-panel { display: none; width: 230px; margin: 2px 6px 0 0; background: #35333a; color: #dbdedf; padding: 14px 16px; font-size: 14px; line-height: 20px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
#wa-tab.open .wa-panel { display: block; }
#wa-tab .wa-panel strong { display: block; color: #ffffff; font-size: 15px; text-transform: uppercase; margin-bottom: 6px; }
#wa-tab .wa-panel a { display: block; color: #25d366; font-size: 20px; font-weight: bold; text-decoration: none; margin-bottom: 8px; }
#wa-tab .wa-panel a:hover { text-decoration: underline; }
@media (max-width: 1000px) {
  #wa-tab { position: fixed; top: auto; right: 12px; bottom: 12px; flex-direction: column-reverse; align-items: flex-end; }
  #wa-tab .wa-btn { width: 64px; height: 64px; }
  #wa-tab .wa-btn img { width: 60px; height: 60px; }
  #wa-tab .wa-panel { margin: 0 0 8px 0; border: 1px solid #6a6870; }
}

/* Google-Bewertungen Startseite (Stand 26.11.2026) */
#bewertungen { width: 972px; margin: 0 auto 10px; background: #f3f4f5; box-shadow: 0 6px 18px rgba(0,0,0,.18); font-family: Arial, Helvetica, sans-serif; color: #35333a; position: relative; z-index: 2; }
#bewertungen .bw-inner { padding: 28px 30px 18px; }
#bewertungen .bw-head { display: flex; align-items: center; gap: 22px; padding-bottom: 20px; border-bottom: 1px solid #d5d8da; margin-bottom: 20px; }
#bewertungen .bw-score { background: #35333a; color: #fff; padding: 12px 18px; text-align: center; min-width: 110px; }
#bewertungen .bw-num { display: block; font-size: 40px; line-height: 42px; font-weight: bold; }
#bewertungen .bw-stars { color: #f4b400; letter-spacing: 2px; font-size: 18px; }
#bewertungen .bw-title { flex: 1; }
#bewertungen .bw-title h2 { margin: 0 0 4px; font-size: 26px; text-transform: uppercase; font-weight: normal; color: #35333a; }
#bewertungen .bw-title p { margin: 0; font-size: 15px; color: #5b5a60; }
#bewertungen .bw-btns { display: flex; flex-direction: column; gap: 8px; }
#bewertungen .bw-btn { display: block; text-align: center; padding: 9px 16px; background: #35333a; color: #fff; font-size: 13px; font-weight: bold; text-decoration: none; text-transform: uppercase; letter-spacing: .5px; }
#bewertungen .bw-btn2 { background: linear-gradient(180deg, #f6e7a6 0%, #e0bd52 30%, #c49a2c 52%, #a87f1c 70%, #d9b44a 100%); color: #3a2c06; border: 1px solid #8f6d14; text-shadow: 0 1px 0 rgba(255,240,190,.6); }
#bewertungen .bw-btn:hover { opacity: .85; text-decoration: none; }
#bewertungen .bw-cards { display: flex; gap: 14px; }
#bewertungen .bw-card { flex: 1; margin: 0; background: #fff; padding: 16px 16px 14px; box-shadow: 0 2px 6px rgba(0,0,0,.08); display: flex; flex-direction: column; }
#bewertungen .bw-card .bw-stars { font-size: 16px; margin-bottom: 8px; }
#bewertungen blockquote { margin: 0 0 12px; font-size: 13px; line-height: 20px; color: #4a4950; flex: 1; font-style: italic; }
#bewertungen figcaption { font-size: 13px; font-weight: bold; color: #35333a; }
#bewertungen .bw-note { margin: 12px 0 0; font-size: 11px; color: #8f9192; text-align: right; }
@media (max-width: 1000px) {
  #bewertungen { width: auto; margin: 0 0 10px; }
  #bewertungen .bw-inner { padding: 20px 16px 14px; }
  #bewertungen .bw-head { flex-wrap: wrap; gap: 14px; }
  #bewertungen .bw-title h2 { font-size: 21px; }
  #bewertungen .bw-btns { flex-direction: row; width: 100%; }
  #bewertungen .bw-btn { flex: 1; }
  #bewertungen .bw-cards { flex-direction: column; }
}

/* Kein seitliches Scrollen am PC (z. B. Kopfbild Reparaturen ragt über den Rand) */
@media (min-width: 1001px) { html, body { overflow-x: hidden; } }
/* Warum Glas Ritter (Stand 11/2026) */
#warum { width: 972px; margin: 0 auto 18px; background: #35333a; color: #dbdedf; font-family: Arial, Helvetica, sans-serif; box-shadow: 0 6px 18px rgba(0,0,0,.18); position: relative; z-index: 2; }
#warum .wr-inner { padding: 26px 30px 28px; }
#warum h2 { margin: 0 0 22px; font-size: 26px; text-transform: uppercase; font-weight: normal; color: #fff; text-align: center; letter-spacing: .5px; }
#warum .wr-grid { display: flex; gap: 18px; }
#warum .wr-item { flex: 1; text-align: center; padding: 0 6px; border-left: 1px solid #4a4850; }
#warum .wr-item:first-child { border-left: 0; }
#warum svg { width: 52px; height: 52px; color: #d9b44a; margin-bottom: 10px; }
#warum h3 { margin: 0 0 8px; font-size: 16px; text-transform: uppercase; color: #e0bd52; font-weight: bold; }
#warum p { margin: 0; font-size: 14px; line-height: 21px; color: #dbdedf; }
@media (max-width: 1000px) {
  #warum { width: auto; margin: 0 0 10px; }
  #warum .wr-inner { padding: 22px 16px; }
  #warum h2 { font-size: 21px; }
  #warum .wr-grid { flex-direction: column; gap: 20px; }
  #warum .wr-item { border-left: 0; border-top: 1px solid #4a4850; padding-top: 18px; }
  #warum .wr-item:first-child { border-top: 0; padding-top: 0; }
}
