/* Handyfassung sprinklertank-inspektion.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 = aus.
   Stufen: global.json "mobil_standard" (je Abschnittsart), je Seite meta.mobil;
   Reihenfolge auf dem Handy: meta.mobil_reihenfolge. Desktop bleibt unverändert. */

.mb { display: contents; }
.m-fluss { display: flow-root; } /* Außenabstände bleiben drin wie ohne Hülle */
.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; }

  /* 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; }
  /* PDF-Kasten unten rechts weicht der Leiste; geöffnet über die Musterbericht-Knöpfe */
  .wp-widget { bottom: 84px; }
  .wp-widget:not(.wp-open) { display: none; }

  /* Kopf: schmal, Telefon steckt in der Leiste */
  .navbar .nav-contact .nav-link { display: none; }

  /* Hero: Kernaussage, drei Punkte, ein Knopf – ein Bildschirm */
  .hero { min-height: 66svh !important; display: flex; flex-direction: column; }
  .hero > .hero-content { flex: 1; display: flex; align-items: flex-end; padding-bottom: 28px; }
  .hero .hero-title { font-size: 1.85rem; line-height: 1.15; text-align: left; }
  .hero .hero-subtitle-list { display: flex; flex-direction: column; align-items: flex-start !important; gap: 6px; padding: 0; margin: 14px 0 0; text-align: left; }
  .hero .hero-subtitle-list li { justify-content: flex-start; text-align: left; margin: 0; padding-left: 0; }
  .hero .hero-subtitle-list li:nth-child(n+4) { display: none; }
  .hero .hero-description, .hero .hero-split-image, .hero .btn-secondary { display: none !important; }
  .hero .hero-buttons { display: none; } /* Leiste unten ist der Knopf */
  .section-subtitle { font-size: 1rem !important; line-height: 1.5; }

  /* Kunden: drei Logos sichtbar, alle 26 rollen durch */
  .mb[data-stufe="2"] .customers { padding: 22px 0 !important; }
  /* Logos: eine Zeile mit drei, rollt senkrecht weiter (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; }

  /* Prüfpflicht: drei Zeilen statt drei Karten */
  .mb[data-stufe="2"] .pf { padding: 40px 0 !important; }
  .mb[data-stufe="2"] .pf .section-subtitle,
  .mb[data-stufe="2"] .pf-karte p,
  .mb[data-stufe="2"] .pf-chip,
  .mb[data-stufe="2"] .pf-merksatz { display: none; }
  .mb[data-stufe="2"] .pf-raster { display: block; }
  .mb[data-stufe="2"] .pf-karte { display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 12px 0; margin: 0;
    border: 0; border-bottom: 1px solid #e5e8ea; border-radius: 0; box-shadow: none; background: none; text-align: left; }
  .mb[data-stufe="2"] .pf-karte h3 { margin: 0; font-size: 1.05rem; }
  .mb[data-stufe="2"] .pf-zahl { flex: 0 0 118px; margin: 0; font-size: 32px; color: #1f2937; }
  .mb[data-stufe="2"] .pf-zahl small { font-size: 13px; }
  .mb[data-stufe="2"] .pf-praxis .pf-zahl { font-size: 22px; }
  .mb[data-stufe="2"] .pf-raster { margin-top: 18px; }

  /* Ablauf: Video + vier Schritte als Kacheln */
  .mb[data-stufe="2"] .process { padding: 40px 0 !important; }
  .mb[data-stufe="2"] .process .process-video { margin-bottom: 20px !important; }
  .yt-hinweis { display: none !important; } /* Video öffnet auf dem Handy extern bei YouTube */
  .mb[data-stufe="2"] .process figcaption,
  .mb[data-stufe="2"] .process-step p { display: none; }
  .mb[data-stufe="2"] .process-steps { display: block; counter-reset: m-schritt; }
  .mb[data-stufe="2"] .process-step { display: flex; align-items: center; gap: 12px; padding: 7px 0; margin: 0; border: 0; box-shadow: none; background: none; text-align: left; counter-increment: m-schritt; }
  .mb[data-stufe="2"] .process-step::before { content: counter(m-schritt); flex: 0 0 26px; height: 26px; border-radius: 50%; background: #111; color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
  .mb[data-stufe="2"] .process-step h3 { font-size: 1rem; margin: 0; }
  .mb[data-stufe="2"] .process-icon { display: none; }

  /* Musterbericht: Überschrift + Knopf */
  .mb[data-stufe="2"] .wpb .wpb-lead,
  .mb[data-stufe="2"] .wpb ul,
  .mb[data-stufe="2"] .wpb .wpb-bild { display: none; }

  /* Team: Gesichter in einer Reihe, Namen weg, drei Punkte bleiben */
  .mb[data-stufe="2"] .experts { padding: 40px 0 !important; }
  .mb[data-stufe="2"] .team-grid { display: flex !important; justify-content: center; gap: 0; margin: 18px 0; }
  .mb[data-stufe="2"] .team-member { margin: 0 -6px; padding: 0; flex: 0 0 auto; }
  .mb[data-stufe="2"] .team-member h3,
  .mb[data-stufe="2"] .team-member p { display: none; }
  .mb[data-stufe="2"] .team-member .team-photo { width: 64px !important; height: 64px !important; border: 3px solid #fff; border-radius: 50%; margin: 0; }

  .mb[data-stufe="2"] .team-punkte { margin-top: 10px; }
  .mb[data-stufe="2"] .team-punkte li { font-size: 15px; line-height: 1.45; padding: 4px 0 4px 28px; }

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


  /* „Alle Details“: Ausgeblendetes (Stufe 3) bleibt per Knopf erreichbar */
  .m-details { display: block; order: var(--m-ord, 999); margin: 0; 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; }

  /* Gemeinsam für Stufe 2: Untertitel und Kicker weg, enger */
  .mb[data-stufe="2"] > section { padding-top: 36px !important; padding-bottom: 36px !important; }
  .mb[data-stufe="2"] .section-title { margin-bottom: 14px; }

  /* Schmerz: zwei Listen nur mit den fetten Stichworten, ohne Quiz */
  .mb[data-stufe="2"] .sz-unter, .mb[data-stufe="2"] .sz .qz, .mb[data-stufe="2"] .sz-zitat { display: none !important; }
  .mb[data-stufe="2"] .sz-karte { padding: 0; border: 0; box-shadow: none; background: none; margin-bottom: 18px; }
  .mb[data-stufe="2"] .sz-karte h3 { font-size: 1.05rem; margin: 0 0 6px; }
  .mb[data-stufe="2"] .sz-karte li { padding: 4px 0; margin: 0; border: 0; gap: 10px; }
  .mb[data-stufe="2"] .sz-karte li > span:last-child { font-size: 0; }
  .mb[data-stufe="2"] .sz-karte li > span:last-child strong { font-size: 1rem; }
  .mb[data-stufe="2"] .sz-karte li > span:last-child a { display: none; }

  /* Lösung: nur „Mit Unterwasserdrohne“ als Häkchenliste */
  .mb[data-stufe="2"] .lo .section-subtitle, .mb[data-stufe="2"] .lo-schlecht, .mb[data-stufe="2"] .lo-kopf, .mb[data-stufe="2"] .lo small { display: none !important; }
  .mb[data-stufe="2"] .lo-raster { display: block; margin-top: 8px; }
  .mb[data-stufe="2"] .lo-karte { padding: 0; border: 0; box-shadow: none; background: none; }
  .mb[data-stufe="2"] .lo-karte li { padding: 6px 0; margin: 0; border: 0; gap: 10px; font-size: 1rem; }

  /* Neutralität (benefit-Karten): Überschriften als Liste */
  .mb[data-stufe="2"] .benefits-grid { display: block; text-align: left; }
  .mb[data-stufe="2"] .benefit-card { display: flex; align-items: center; gap: 12px; padding: 8px 0; margin: 0; border: 0; box-shadow: none; background: none; text-align: left; }
  .mb[data-stufe="2"] .benefit-card p { display: none; }
  .mb[data-stufe="2"] .benefit-card h3 { margin: 0; font-size: 1rem; }
  .mb[data-stufe="2"] .benefit-icon { flex: 0 0 32px; width: 32px; height: 32px; margin: 0; padding: 0; background: none; }
  .mb[data-stufe="2"] .benefit-icon img { width: 28px; height: 28px; }
  .mb[data-stufe="2"] .scenarios .section-subtitle { display: none; }

  /* Technik (rov): vier Stichworte, ohne Bild */
  .mb[data-stufe="2"] .rv-einl { display: none; }
  .mb[data-stufe="2"] .rv-bilder { margin-bottom: 16px; } /* Einsatzfoto mit Menschen bleibt (Regel: Menschen auf jeder Seite) */
  .mb[data-stufe="2"] .rv-gross { aspect-ratio: 16/10; }
  .mb[data-stufe="2"] .rv-raster { display: block; }
  .mb[data-stufe="2"] .rv-punkte li { padding: 5px 0; margin: 0; }
  .mb[data-stufe="2"] .rv-punkte li > span:last-child { font-size: 0; }
  .mb[data-stufe="2"] .rv-punkte li > span:last-child strong { font-size: 1rem; }

  /* Bewertung A–F: bleibt vollständig (Chris 02.12.2026: „keine Kompromisse bei der a bis f, kein horizontal scroll“) */
  .stf-kopf .stf-k { font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
  .stf-kopf .stf-bilder { column-gap: 4px; }

  /* 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+3), .footer .footer-cities { display: none; }
}
