/* Handyfassung kopterflug.de (02.12.2026)
   Eine Seite, ein HTML, eine URL. Auf dem Handy entscheidet die Stufe je Abschnitt:
   1 = bleibt, 2 = gekürzt (Regeln unten je Abschnitt), 3 = hinter „Alle Details“.
   Stufen: global.json "mobil_standard" (je Abschnittsart), je Seite meta.mobil;
   Reihenfolge auf dem Handy: meta.mobil_reihenfolge. Desktop bleibt unverändert.
   Gleiches Prinzip wie sprinklertank-inspektion.de. */

.mb { display: contents; }
.m-fluss { display: flow-root; } /* Außenabstände bleiben drin wie ohne Hülle */
/* Geschwister-Regel aus modules/10-specialized.css (.image-break + .image-break) gilt auch durch die Hülle */
.mb:has(> .image-break) + .mb > .image-break { margin-top: 2rem; }
.m-leiste { display: none; }

@media (max-width: 760px) {
  /* Reihenfolge und Stufen */
  .m-fluss { display: flex; flex-direction: column; }
  .mb > * { order: var(--m-ord, 50); }
  .mb[data-stufe="3"] > * { display: none !important; }
  .m-details { display: block; order: var(--m-ord, 999); padding: 22px 16px; background: #fff; text-align: center; border-top: 1px solid #e5e8ea; }
  .m-details button { font: inherit; font-weight: 700; font-size: 15px; padding: 12px 18px; border-radius: 10px; border: 2px solid #111; background: #fff; color: #111; width: 100%; }
  .m-fluss.m-alles .mb[data-stufe="3"] > section, .m-fluss.m-alles .mb[data-stufe="3"] > div { display: block !important; }
  .m-fluss.m-alles .m-details { display: none; }

  /* Aktionsleiste unten: Anrufen + Anfrage */
  body { padding-bottom: 72px; }
  .m-leiste { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9995;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
    box-shadow: 0 -4px 18px rgba(0,0,0,.14); }
  .m-leiste a, .m-leiste button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; }
  .m-leiste-tel { background: #e30613; color: #fff; border: 0; }
  .m-leiste-tel img { filter: brightness(0) invert(1); }
  .m-leiste-anfrage { background: #fff; color: #111; border: 2px solid #111; }
  /* Kontakt-Widget: nur geöffnet sichtbar (öffnet über „Anfrage senden“) */
  #contactWidget:not(.active) { display: none !important; }

  /* Hero: Kernaussage, drei Punkte, Leiste unten ist der Knopf */
  .hero { min-height: 66svh !important; }
  .hero > .hero-content { margin-top: auto !important; padding-top: 20px !important; padding-bottom: 28px !important; align-items: flex-end !important; } /* Text unten wie sprinklertank */
  .hero .hero-subtitle-list, .hero .hero-content .container > :last-child { margin-bottom: 0 !important; }
  .hero .hero-title { font-size: 1.85rem; line-height: 1.15; text-align: left; }
  .hero .hero-subtitle-list li:nth-child(n+4) { display: none; }
  .hero .hero-subtitle-list { width: auto !important; margin-left: 0 !important; margin-right: 0 !important; } /* Liste bündig mit der H1, nicht mittig */
  .hero .hero-description, .hero .hero-split-image, .hero .hero-buttons { display: none !important; }

  /* Gemeinsam für Stufe 2 */
  .mb[data-stufe="2"] > section { padding-top: 36px !important; padding-bottom: 36px !important; }
  .mb[data-stufe="2"] .section-subtitle { font-size: 1rem; line-height: 1.5; }
  .mb[data-stufe="2"] .section-cta { display: none; } /* Zwischen-Knöpfe: die Leiste ist immer da */

  /* Kunden: drei Logos sichtbar, alle rollen senkrecht durch (Skript in index.html) */
  .mb[data-stufe="2"] .customer-logos { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; grid-auto-rows: 56px; row-gap: 0 !important; column-gap: 10px; height: 56px; overflow: hidden; }
  .mb[data-stufe="2"] .customer-logos > .customer-logo { display: flex !important; align-items: center; justify-content: center; height: 56px; margin: 0 !important; }

  /* Karten (Problem, Anlagen, Branchen): Überschriften als Liste */
  .mb[data-stufe="2"] .benefits-grid { display: block !important; text-align: left; }
  .mb[data-stufe="2"] .benefit-card { display: flex !important; align-items: center; gap: 12px; padding: 9px 0 !important; margin: 0 !important;
    border: 0; border-bottom: 1px solid #e5e8ea; border-radius: 0; box-shadow: none !important; background: none !important; text-align: left; min-height: 0; transform: none !important; }
  .mb[data-stufe="2"] .benefit-card p { display: none; }
  .mb[data-stufe="2"] .benefit-card h3 { margin: 0 !important; font-size: 1rem; }
  .mb[data-stufe="2"] .benefit-icon { flex: 0 0 30px; width: 30px !important; height: 30px !important; margin: 0 !important; padding: 0 !important; background: none !important; }
  .mb[data-stufe="2"] .benefit-icon img { width: 26px !important; height: 26px !important; }
  /* Links (Anlagen, Branchen) in zwei Spalten */
  .mb[data-stufe="2"] .benefit-card { min-width: 0 !important; max-width: none !important; width: auto !important; flex: none !important; }
  .mb[data-stufe="2"] .benefits-grid:has(.benefit-card-link) { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; }
  .mb[data-stufe="2"] .benefit-card-link h3 { font-size: .93rem; }

  /* Drohnen (services): drei Zeilen mit kleinem Bild */
  .mb[data-stufe="2"] .services-method-cards { display: block !important; }
  .mb[data-stufe="2"] .services-method-card { display: flex !important; flex-direction: row !important; text-align: left; align-items: center; gap: 12px; padding: 8px 0 !important; margin: 0 !important; border: 0; border-bottom: 1px solid #e5e8ea; box-shadow: none !important; background: none !important; }
  .mb[data-stufe="2"] .services-method-card-img { flex: 0 0 64px; width: 64px; height: 64px; overflow: hidden; border-radius: 8px; }
  .mb[data-stufe="2"] .services-method-card-img img { width: 64px; height: 64px; object-fit: cover; }
  .mb[data-stufe="2"] .services-method-card-body { padding: 0 !important; flex: 1; min-width: 0; }
  .mb[data-stufe="2"] .services-method-card { width: auto !important; max-width: none !important; min-width: 0 !important; }
  .mb[data-stufe="2"] .services-method-card-body p, .mb[data-stufe="2"] .services-method-card-cta { display: none; }

  /* Ablauf: nummerierte Liste */
  .mb[data-stufe="2"] .process-steps { display: block !important; }
  .mb[data-stufe="2"] .process-step { display: flex !important; align-items: center; gap: 12px; padding: 7px 0 !important; margin: 0 !important; border: 0; box-shadow: none !important; background: none !important; text-align: left; transform: none !important; }
  .mb[data-stufe="2"] .process-step p, .mb[data-stufe="2"] .process-icon { display: none; }
  .mb[data-stufe="2"] .process-step .step-number { position: static !important; flex: 0 0 26px; width: 26px; height: 26px; margin: 0 !important; font-size: 14px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
  .mb[data-stufe="2"] .process-step h3 { font-size: 1rem; margin: 0 !important; }

  /* Team: Gesichter in einer Reihe */
  .mb[data-stufe="2"] .team-grid { display: flex !important; justify-content: center; gap: 0 !important; margin: 18px 0 0; flex-wrap: nowrap; }
  .mb[data-stufe="2"] .team-member { min-width: 0 !important; max-width: none !important; margin: 0 -6px !important; padding: 0 !important; flex: 0 0 auto !important; width: auto !important; background: none !important; box-shadow: none !important; }
  .mb[data-stufe="2"] .team-member h3, .mb[data-stufe="2"] .team-member p { display: none; }
  .mb[data-stufe="2"] .team-photo-wrap { width: 64px !important; height: 64px !important; margin: 0 !important; border-radius: 50%; overflow: hidden; border: 3px solid #fff; }
  .mb[data-stufe="2"] .team-photo { width: 64px !important; height: 64px !important; object-fit: cover; border-radius: 50%; }

  /* FAQ: fünf Fragen, Antwort per Tippen */
  .mb[data-stufe="2"] .faq-list { margin-top: 10px; }
  .mb[data-stufe="2"] .faq-item:nth-child(n+6) { display: none; }
  .mb[data-stufe="2"] .faq-item { padding: 13px 0 !important; border-bottom-width: 1px; }
  .mb[data-stufe="2"] .faq-question { font-size: 1.02rem; margin: 0; gap: 0; cursor: pointer; position: relative; padding-right: 28px; }
  .mb[data-stufe="2"] .faq-question::before { display: none; }
  .mb[data-stufe="2"] .faq-question::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 1.4rem; line-height: 1; }
  .mb[data-stufe="2"] .faq-item .faq-answer { display: none; padding: 8px 0 0; font-size: .97rem; line-height: 1.6; }
  .mb[data-stufe="2"] .faq-item.m-auf .faq-answer { display: block; }
  .mb[data-stufe="2"] .faq-item.m-auf .faq-question::after { content: "–"; }

  /* Prüfbereiche (technical_details): Titel sichtbar, Inhalt per Tippen */
  .mb[data-stufe="2"] .technical-areas { display: block !important; }
  .mb[data-stufe="2"] .technical-area { padding: 12px 0 !important; margin: 0 !important; border: 0; border-bottom: 1px solid #e5e8ea; border-radius: 0; box-shadow: none !important; background: none !important; transform: none !important; }
  .mb[data-stufe="2"] .technical-area .area-title { margin: 0 !important; padding: 0 28px 0 0 !important; border: 0 !important; font-size: 1.02rem; cursor: pointer; position: relative; }
  .mb[data-stufe="2"] .technical-area .area-title::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 1.4rem; line-height: 1; }
  .mb[data-stufe="2"] .technical-area .area-detail { display: none; }
  .mb[data-stufe="2"] .technical-area.m-auf .area-detail { display: block; margin-top: 8px; }
  .mb[data-stufe="2"] .technical-area.m-auf .area-title::after { content: "–"; }
  /* lesbar statt Blau in Blau: Titel dunkel, Etiketten klein und grau in normaler Schreibweise */
  .mb[data-stufe="2"] .technical-area .area-title { color: #111827 !important; }
  .mb[data-stufe="2"] .technical-area .area-detail { margin: 0 0 10px !important; }
  .mb[data-stufe="2"] .technical-area .area-detail strong { display: block; color: #6b7280 !important; text-transform: none !important; letter-spacing: 0 !important; font-size: .85rem !important; font-weight: 600; margin: 0 0 2px; }
  .mb[data-stufe="2"] .technical-area .area-detail p { margin: 0 !important; color: #1f2937; font-size: .98rem; line-height: 1.55; }
  .mb[data-stufe="2"] .technical-area.m-auf { padding-bottom: 16px !important; }

  /* Galerie: Einsatzfotos mit Menschen als Wischreihe (Regel: Menschen auf jeder Seite) */
  .mb[data-stufe="2"] .gallery .section-subtitle { display: none; }
  .mb[data-stufe="2"] .gallery-grid { display: flex !important; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px 6px; grid-template-columns: none !important; }
  .mb[data-stufe="2"] .gallery-item { flex: 0 0 70%; height: 200px; scroll-snap-align: start; }
  .mb[data-stufe="2"] .gallery-item:nth-child(n+11) { display: none; }
  .mb[data-stufe="2"] .gallery-item img { width: 100%; height: 100%; object-fit: cover; }

  /* Praxisbeispiele: wischbare Bildreihe */
  .mb[data-stufe="2"] .praxis-grid { display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px 6px; }
  .mb[data-stufe="2"] .praxis-karte { flex: 0 0 78%; scroll-snap-align: start; }
  .mb[data-stufe="2"] .praxis-text p { display: none; }

  /* Verwandte Leistungen: Liste */
  .mb[data-stufe="2"] .related-services-grid { display: block !important; }
  .mb[data-stufe="2"] .related-service-card { display: flex !important; align-items: center; gap: 12px; padding: 9px 0 !important; margin: 0 !important; border: 0; border-bottom: 1px solid #e5e8ea; box-shadow: none !important; background: none !important; }
  .mb[data-stufe="2"] .related-service-content p { display: none; }
  .mb[data-stufe="2"] .related-service-content h3 { font-size: 1rem; margin: 0; }
  .mb[data-stufe="2"] .related-service-icon { flex: 0 0 30px; width: 30px; height: 30px; margin: 0; padding: 0; background: none; }
  .mb[data-stufe="2"] .related-service-icon img { width: 26px; height: 26px; }

  /* Stadtseiten: Leistungen mit Bild (services-header) – Bild weg, Häkchen nur Stichwort */
  .mb[data-stufe="2"] .services-image { display: none !important; }
  .mb[data-stufe="2"] .services-checklist li { padding: 5px 0 !important; margin: 0 !important; align-items: center; }
  .mb[data-stufe="2"] .services-checklist li > span { font-size: 0; }
  .mb[data-stufe="2"] .services-checklist li > span strong { font-size: 1rem; }
  .mb[data-stufe="2"] .services-checklist .check-icon { width: 22px !important; height: 22px !important; }
  .mb[data-stufe="2"] .problems-intro { display: none; }

  /* Stadtseiten: was wir in der Stadt inspizieren – Leistungsliste bleibt, Ortstexte und Industriegebiete hinter „Alle Details“ */
  .mb[data-stufe="2"] .local-content-highlight,
  .mb[data-stufe="2"] .local-content-grid,
  .mb[data-stufe="2"] .city-industries-lead,
  .mb[data-stufe="2"] .industriegebiete-grid,
  .mb[data-stufe="2"] .local-content-block { display: none !important; }
  .m-fluss.m-alles .mb[data-stufe="2"] .local-content-highlight,
  .m-fluss.m-alles .mb[data-stufe="2"] .local-content-grid,
  .m-fluss.m-alles .mb[data-stufe="2"] .city-industries-lead,
  .m-fluss.m-alles .mb[data-stufe="2"] .industriegebiete-grid,
  .m-fluss.m-alles .mb[data-stufe="2"] .local-content-block { display: block !important; }

  /* Nachbarstädte: Namen als kleine Zeile */
  .mb[data-stufe="2"] .nearby-cities-grid { display: flex !important; flex-wrap: wrap; gap: 6px 14px; }
  .mb[data-stufe="2"] .nearby-city-card { padding: 0 !important; margin: 0 !important; border: 0; box-shadow: none !important; background: none !important; width: auto !important; min-width: 0 !important; flex: none !important; }
  .mb[data-stufe="2"] .nearby-city-distance { display: none; }
  .mb[data-stufe="2"] .nearby-city-name { font-size: .95rem; text-decoration: underline; }

  /* Wischreihen: Pfeile (Skript legt .m-wisch um die Reihe) */
  .m-wisch { position: relative; }
  .m-wisch-pfeil { position: absolute; top: 38%; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0;
    background: rgba(255,255,255,.95); color: #111; font-size: 28px; line-height: 40px; padding: 0; cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; }
  .m-wisch-pfeil[hidden] { display: none; }
  .m-wisch-zurueck { left: -4px; }
  .m-wisch-vor { right: -4px; }

  /* Zu breite Tabellen (v. a. Wissensartikel): jede Zeile als Karte, Zellen mit Spaltenüberschrift (Skript in index.html) */
  .m-stapel, .m-stapel tbody, .m-stapel tr, .m-stapel td, .m-stapel th { display: block !important; width: auto !important; }
  .m-stapel thead, .m-stapel .m-kopfzeile { display: none !important; }
  .m-stapel tr { border: 1px solid #e5e8ea !important; border-radius: 8px; margin: 0 0 12px !important; padding: 10px 12px !important; background: #fff !important; }
  .m-stapel td, .m-stapel th { padding: 3px 0 !important; text-align: left !important; border: 0 !important; background: none !important; color: inherit !important; }
  .m-stapel tr > :first-child { font-weight: 700; padding-bottom: 6px !important; }
  .m-stapel [data-spalte]:not(:first-child)::before { content: attr(data-spalte) ": "; font-weight: 600; color: #6b7280; }

  /* Wissensübersicht: jede Karte als Zeile mit kleinem Filzstift-Bild und Titel */
  .mb[data-stufe="2"] .section-intro { display: none; }
  .mb[data-stufe="2"] .kb-articles-grid { display: block !important; }
  .mb[data-stufe="2"] .kb-article-card { display: flex !important; flex-direction: row !important; align-items: center; gap: 12px; padding: 8px 0 !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid #e5e8ea !important; border-radius: 0 !important; box-shadow: none !important; background: none !important; transform: none !important; }
  .mb[data-stufe="2"] .kb-article-image { flex: 0 0 72px; width: 72px !important; height: 54px !important; overflow: hidden; border-radius: 6px; margin: 0 !important; }
  .mb[data-stufe="2"] .kb-article-image img { width: 72px !important; height: 54px !important; object-fit: cover; }
  .mb[data-stufe="2"] .kb-article-content { padding: 0 !important; flex: 1; min-width: 0; }
  .mb[data-stufe="2"] .kb-article-excerpt, .mb[data-stufe="2"] .kb-article-link { display: none !important; }
  .mb[data-stufe="2"] .kb-article-title { margin: 0 !important; font-size: .97rem; line-height: 1.3; }
  .mb[data-stufe="2"] .kb-category-title { margin: 22px 0 4px !important; }

  /* Abschluss */
  .cta-final { padding: 40px 0 !important; }

  /* Fuß: Firma + Unternehmen, keine Linkwände */
  .footer .footer-col:nth-child(n+2), .footer .footer-cities, .footer .footer-regions, .footer .footer-translations { display: none; }
}
