/* mobile-fix-detail.css — nur Mobile (max-width:1024px), Desktop unverändert
 * Gilt für die 25 Maschinen-Detailseiten (Kauf + Miete). Brand-Orange #f27e00 (rgb 242,126,0).
 */
@media (max-width: 1024px) {

  /* ---------- 1. Hero: langer Beschreibungstext ----------
     Onepage liefert mobil 20px/1.5 zentriert über dunklem Foto → 6–10 Zeilen
     Flattersatz. Etwas kleiner + ruhigere Zeilenhöhe + Textschatten für Kontrast. */
  .con-kit-section--first + .con-kit-section .con-kit-component-text[data-font-kit-type="xl"] .con-kit-quark-paragraph {
    font-size: 17px !important;
    line-height: 1.55 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
  }
  .con-kit-section--first + .con-kit-section .con-kit-component-header .con-kit-quark-paragraph {
    line-height: 1.2 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
  }
  /* Hero-Produktbild: abgerundet wie die übrigen Bildkarten */
  .con-kit-section--first + .con-kit-section .con-kit-atom-image .con-kit-component-image {
    border-radius: 8px;
    overflow: hidden;
  }

  /* ---------- 2. Technische Daten (lange Listen) ----------
     Bis zu 28 einzeln zentrierte Absätze mit je 16px Abstand → endlose, schwer
     scanbare Spalte. Als linksbündige "Datenblatt-Karte" mit Trennlinien setzen.
     Erkennung: Fließtext-Block (font-kit m) mit ≥5 Absätzen, ohne große (xl/l) Absätze
     (die sind Fließtext-Prosa, z.B. „Am neuen Modell wurde …“). */
  .con-kit-section.layout .con-kit-component-text[data-font-kit-type="m"]:has(> :nth-child(5)):not(:has(> [data-font-kit-type="xl"], > [data-font-kit-type="l"])) {
    background: #f6f6f6;
    border-radius: 8px;
    padding: 6px 16px;
    text-align: left !important;
  }
  .con-kit-section.layout .con-kit-component-text[data-font-kit-type="m"]:has(> :nth-child(5)):not(:has(> [data-font-kit-type="xl"], > [data-font-kit-type="l"])) > * {
    display: block;
    text-align: left !important;
    margin: 0 !important;
    padding: 9px 0 !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    border-bottom: 1px solid rgba(25, 25, 25, .09);
  }
  .con-kit-section.layout .con-kit-component-text[data-font-kit-type="m"]:has(> :nth-child(5)):not(:has(> [data-font-kit-type="xl"], > [data-font-kit-type="l"])) > *:last-child {
    border-bottom: 0;
  }
  .con-kit-section.layout .con-kit-component-text[data-font-kit-type="m"]:has(> :nth-child(5)):not(:has(> [data-font-kit-type="xl"], > [data-font-kit-type="l"])) > *:has(+ .con-kit-quark-paragraph:has(> br:only-child):last-child) {
    border-bottom: 0;
  }
  /* Leerabsätze (<br>) nicht als leere Zeile mit Linie zeigen */
  .con-kit-section.layout .con-kit-component-text[data-font-kit-type="m"]:has(> :nth-child(5)):not(:has(> [data-font-kit-type="xl"], > [data-font-kit-type="l"])) > .con-kit-quark-paragraph:has(> br:only-child) {
    padding: 0 !important;
    height: 6px;
    border-bottom: 0;
    font-size: 0 !important;
  }
  /* Abstand zwischen zwei aufeinanderfolgenden Datenblöcken */
  .con-kit-section.layout .con-kit-molecule-textBlock + .con-kit-molecule-textBlock .con-kit-component-text[data-font-kit-type="m"]:has(> :nth-child(5)):not(:has(> [data-font-kit-type="xl"], > [data-font-kit-type="l"])) {
    margin-top: 4px;
  }

  /* ---------- 3. Mietpreise (Ein Tag / Fünf Tage / …) ----------
     xl-Textblock mit ≥4 Absätzen (alle xl) außerhalb des Heros = Preisliste. */
  .con-kit-section.layout:not(.con-kit-section--first + .con-kit-section) .con-kit-component-text[data-font-kit-type="xl"]:has(> :nth-child(4)):not(:has(> [data-font-kit-type="m"])) {
    background: #fff4e6;
    border-left: 4px solid #f27e00;
    border-radius: 8px;
    padding: 6px 16px;
    text-align: left !important;
  }
  .con-kit-section.layout:not(.con-kit-section--first + .con-kit-section) .con-kit-component-text[data-font-kit-type="xl"]:has(> :nth-child(4)):not(:has(> [data-font-kit-type="m"])) > * {
    text-align: left !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    border-bottom: 1px solid rgba(242, 126, 0, .22);
  }
  .con-kit-section.layout:not(.con-kit-section--first + .con-kit-section) .con-kit-component-text[data-font-kit-type="xl"]:has(> :nth-child(4)):not(:has(> [data-font-kit-type="m"])) > *:last-child {
    border-bottom: 0;
  }

  /* ---------- 4. Bildergalerie (Slider) ----------
     Dots lagen weiß über dem Foto (auf hellen Bildern unsichtbar), 24px Trefferfläche.
     → unter das Bild, dunkel/orange, 32px Trefferfläche. */
  .con-kit-component-slider .con-kit-component-image {
    border-radius: 8px;
    overflow: hidden;
  }
  .con-kit-component-slider .con-kit-component-slider-pagination {
    position: relative !important;
    bottom: auto !important;
    padding: 10px 0 0 !important;
    height: auto !important;
  }
  .con-kit-component-slider .con-kit-component-slider-pagination--type-dots .con-kit-component-slider-pagination__item {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 12px !important;
  }
  .con-kit-component-slider .con-kit-component-slider-pagination--type-dots .con-kit-component-slider-pagination__item::before {
    background: #191919 !important;
    opacity: .25 !important;
  }
  .con-kit-component-slider .con-kit-component-slider-pagination--type-dots .con-kit-component-slider-pagination__item--active::before {
    background: #f27e00 !important;
    opacity: 1 !important;
  }

  /* ---------- 5. Anfrageformular ----------
     Inputs haben 16px (kein iOS-Zoom) – nur die Platzhalter waren abgeschnitten
     ("Firmenname (nur bei Firmen erforderl…"). Platzhalter kleiner, Eingabe bleibt 16px. */
  .con-kit-atom-form input::placeholder,
  .con-kit-atom-form textarea::placeholder {
    font-size: 14px;
    color: #8a8a8a;
    opacity: 1;
  }
  .con-kit-atom-form input,
  .con-kit-atom-form select,
  .con-kit-atom-form textarea {
    font-size: 16px !important;
    text-overflow: ellipsis;
  }
  .con-kit-atom-form textarea {
    min-height: 112px;
  }
  .con-kit-atom-form .con-kit-component-form-container__submit-button .con-kit-component-button {
    width: 100%;
    min-height: 52px;
  }
  /* Kauf-Seiten: das Formular steht ohne Überschrift unter der Galerie
     (nur ein unsichtbarer Divider davor). Sichtbare Überschrift ergänzen. */
  .con-kit-section.divider + .con-kit-section .con-kit-frame {
    padding-top: 28px !important;
  }
  .con-kit-section.divider + .con-kit-section .con-kit-animation__atom:has(> .con-kit-atom-form)::before {
    content: "Maschine jetzt anfragen";
    display: block;
    font-family: "Rubik Dirt", "Montserrat", sans-serif;
    font-size: 26px;
    line-height: 1.2;
    color: #191919;
    text-align: center;
    margin: 0 0 20px;
  }
  .con-kit-section.divider {
    display: none !important;
  }

  /* ---------- 6. Google-Maps-Karte im Kontaktblock ----------
     Feste 300×300 px mittig → auf volle Inhaltsbreite. */
  .con-kit-section.kontakt iframe[src*="google.com/maps"] {
    width: 100% !important;
    height: 280px !important;
    border-radius: 8px;
    display: block;
  }
}
