/* Formular links, rechts die Karte der angefragten Maschine (lokal, nur Maschinenseiten) */
.ar-form { background: #fff; --kt-text: var(--ex-text, #1b1f1c); --kt-muted: var(--ex-muted, #5c625d); --kt-line: var(--ex-line, #e2e4e1);
  font-family: var(--font-kit-text-font, Montserrat), Montserrat, system-ui, sans-serif; }
.ar-form__raster { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; max-width: 1232px; margin: 0 auto; padding: 0 16px; }
.ar-form__links .con-kit-organism-background1 { --section-padding-top: 8px !important; --section-padding-bottom: 24px !important; padding-left: 0 !important; padding-right: 0 !important; }
.ar-wahl { position: sticky; top: 96px; padding: 24px 0 0; color: var(--kt-text); }
.ar-wahl__box { overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08); }
.ar-wahl__box img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #efeee9; }
.ar-wahl__text { padding: 20px 22px 22px; }
.ar-wahl__kopf { margin: 0 0 6px; font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--kt-muted); }
.ar-wahl h2 { margin: 0 0 2px; font-size: 24px; line-height: 1.2; }
.ar-wahl__sub { margin: 0 0 16px; color: var(--kt-muted); }
.ar-wahl__fakten { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.ar-wahl__fakten li { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--kt-line); font-size: 15px; }
.ar-wahl__fakten li:last-child { border-bottom: 0; padding-bottom: 0; }
.ar-wahl__fakten b { font-weight: 700; }
.ar-wahl__fakten span { color: var(--kt-muted); }
.ar-wahl__preis--offen { margin: 0; font-size: 17px; font-weight: 700; color: var(--kt-muted); }
.ar-wahl__lead { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: var(--kt-text); }
.ar-wahl__preis + .ar-wahl__lead, .ar-wahl__preis--offen + .ar-wahl__lead { margin-top: 14px; }
@media (max-width: 1023px) {
  .ar-form__raster { grid-template-columns: 1fr; gap: 8px; }
  .ar-wahl { position: static; order: -1; padding: 0; }
  .ar-wahl__box { display: grid; grid-template-columns: 150px 1fr; align-items: stretch; }
  .ar-wahl__box img { height: 100%; aspect-ratio: auto; }
  .ar-wahl__text { padding: 16px 18px; }
}
@media (max-width: 599px) { .ar-wahl__box { grid-template-columns: 1fr; } .ar-wahl__box img { aspect-ratio: 16 / 9; } }

/* Karte und Formular auf einer Ebene: gleiche Oberkante, gleiche Hoehe (Hoehe gleicht anfrage-karte.js ab) */
@media (min-width: 1024px) {
  .ar-wahl { position: static; padding: 0; }
  .ar-wahl__box { display: flex; flex-direction: column; min-height: 515px; }
  .ar-wahl__box img { flex: 1 1 170px; min-height: 130px; width: 100%; height: auto; aspect-ratio: auto; object-fit: cover; }
  .ar-wahl__text { flex: none; padding: 16px 20px 22px; }
  .ar-wahl h2 { font-size: 22px; }
  .ar-wahl__lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; }
  .ar-wahl__fakten { gap: 6px; margin: 0 0 14px; }
  .ar-wahl__fakten li { padding-bottom: 6px; font-size: 14px; }
  .ar-wahl__fakten li:nth-child(n+4) { display: none; }
  .ar-wahl__fakten li:nth-child(3) { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 1023px) { .ar-wahl { margin-top: 0 !important; } .ar-wahl__box { height: auto !important; } }
.ar-form__links form textarea { min-height: 110px; }
.ar-wahl__zeile { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; margin: 0 0 12px; }
.ar-wahl__zeile > * { white-space: nowrap; }
.ar-wahl__zeile > * { margin: 0 !important; }
/* Foto der Karte ist ein Knopf (Galerie oeffnen) */
.ar-wahl__bild { position: relative; display: block; flex: 1 1 170px; min-height: 130px; margin: 0; padding: 0; border: 0; background: #efeee9; cursor: zoom-in; overflow: hidden; }
.ar-wahl__bild img { display: block; width: 100%; height: 100% !important; aspect-ratio: auto !important; object-fit: cover; }
.ar-wahl__bild:focus-visible { outline: 3px solid var(--ex-green, #1b1f1c); outline-offset: -3px; }
.ar-wahl__anzahl { position: absolute; right: 10px; bottom: 10px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ex-text, #1b1f1c); font: 600 13px/1.2 var(--ex-tfont, inherit); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.ar-wahl__bild:hover .ar-wahl__anzahl { background: #fff; }
@media (max-width: 1023px) { .ar-wahl__bild { flex: none; } }
@media (max-width: 599px) { .ar-wahl__bild { aspect-ratio: 16 / 9; } }
/* Handy: ruhiges Formular, grosse Tippflaechen, kompakte Karte */
@media (max-width: 599px) {
  .ar-form__raster { padding: 0 16px; gap: 14px; }
  .ar-form__links form { gap: 24px 12px; }
  .ar-form__links form input, .ar-form__links form select, .ar-form__links form textarea { font-size: 16px !important; } /* unter 16 px zoomt iOS beim Antippen */
  .ar-form__links form textarea { min-height: 96px; }
  .ar-form__links form > .con-kit-component-form-container__submit-button, .ar-form__links form > .con-kit-component-form-container__submit-button button { width: 100%; }
  .ar-form__links form > label.con-kit-component-checkbox .con-kit-component-checkbox__styled-checkbox { width: 26px; height: 26px; }
  .ar-form__links form > label.con-kit-component-checkbox { gap: 14px; padding: 4px 0; }
  .ar-form__links form > label.con-kit-component-checkbox .ar-fehler { left: 40px; }
  .ar-form__links form > label .ar-fehler { white-space: normal; font-size: 13px; line-height: 15px; }
  /* Karte: kleines Foto links, Name und Preis rechts - Beschreibung und Kennzahlen stehen oben auf der Seite */
  .ar-wahl__box { grid-template-columns: 104px 1fr !important; align-items: stretch; }
  .ar-wahl__bild { aspect-ratio: auto !important; min-height: 0; }
  .ar-wahl__bild img { height: 100% !important; }
  .ar-wahl__anzahl { right: 6px; bottom: 6px; padding: 4px 8px; font-size: 11px; }
  .ar-wahl__text { padding: 12px 14px; }
  .ar-wahl__kopf { margin-bottom: 2px; font-size: 11px; }
  .ar-wahl h2 { font-size: 19px; }
  .ar-wahl__zeile { margin: 4px 0 0; }
  .ar-wahl__lead, .ar-wahl__fakten, .ar-wahl__hinweis { display: none; }
  /* Laenderliste: volle Breite des Feldes, nicht hoeher als der halbe Bildschirm */
  .react-tel-input .country-list { max-height: 50vh; }
  .react-tel-input .country-list .country { padding-top: 12px; padding-bottom: 12px; }
}
/* Fehlende Angaben: rote Markierung, kurzes Wackeln, Hinweis in der Luecke unter dem Feld */
.ar-form__links form > label { position: relative; }
.ar-form__links form > label.is-invalid .con-kit-component-label-input__wrapper { border-radius: 4px; box-shadow: 0 0 0 2px #d81b23; animation: ar-wackeln .45s ease, ar-puls 1.1s ease .45s 2; }
.ar-form__links form > label.con-kit-component-checkbox.is-invalid .con-kit-component-checkbox__styled-checkbox { border-color: #d81b23 !important; box-shadow: 0 0 0 3px rgba(216,27,35,.45) !important; animation: ar-wackeln .45s ease, ar-puls 1.1s ease .45s 2; }
.ar-form__links form > label.con-kit-component-checkbox.is-invalid .con-kit-component-checkbox__label { color: #d81b23; }
.ar-form__links form > label .ar-fehler { position: absolute !important; display: block; left: 2px; top: 100%; margin: 3px 0 0 !important; font-weight: 600; font-size: 12px; line-height: 14px; color: #d81b23; white-space: nowrap; pointer-events: none; text-align: left; }
.ar-form__links form > label.con-kit-component-checkbox .ar-fehler { left: 34px; }
@keyframes ar-wackeln { 0%, 100% { transform: translateX(0); } 18% { transform: translateX(-7px); } 36% { transform: translateX(7px); } 54% { transform: translateX(-5px); } 72% { transform: translateX(4px); } }
@keyframes ar-puls { 0%, 100% { box-shadow: 0 0 0 2px #d81b23; } 50% { box-shadow: 0 0 0 6px rgba(216,27,35,.3); } }
@media (prefers-reduced-motion: reduce) { .ar-form__links form > label.is-invalid .con-kit-component-label-input__wrapper, .ar-form__links form > label.is-invalid .con-kit-component-checkbox__styled-checkbox { animation: none; } }
/* Einwilligung: Kasten gut sichtbar, angehakt in der Farbe der Seite */
.ar-form__links form > label.con-kit-component-checkbox .con-kit-component-checkbox__styled-checkbox { width: 22px; height: 22px; margin-top: 0; border: 2px solid #6b6f6c !important; border-radius: 4px; background: #fff; box-shadow: none !important; }
.ar-form__links form > label.con-kit-component-checkbox.con-kit-component-checkbox--active .con-kit-component-checkbox__styled-checkbox { background: rgb(var(--color-border)) !important; border-color: rgb(var(--color-border)) !important; }
.ar-form__links form > label.con-kit-component-checkbox.con-kit-component-checkbox--active svg { max-width: 14px; max-height: 14px; }
.ar-form__links form > label.con-kit-component-checkbox.con-kit-component-checkbox--active svg path { fill: #111 !important; }
.ar-form__links form > label.con-kit-component-checkbox:hover .con-kit-component-checkbox__styled-checkbox { border-color: #111 !important; }
/* Einwilligung unter dem Formular: eigene Zeile ueber die volle Breite */
.ar-form__links form > label.con-kit-component-checkbox { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 12px; margin: 0 !important; cursor: pointer; }
.ar-form__links form > label.con-kit-component-checkbox .con-kit-component-checkbox__label { font-size: 14px; line-height: 1.5; text-align: left; }
.ar-form__links form > label.con-kit-component-checkbox .con-kit-component-checkbox__label a { text-decoration: underline; text-underline-offset: 3px; color: inherit; }
/* Karte endet sauber: nach dem letzten Element nur das Innenpolster, keine Linie */
.ar-wahl__fakten + .ar-wahl__alle, .ar-wahl__lead + .ar-wahl__fakten { margin-top: 0; }
.ar-wahl .ar-wahl__alle { width: 100%; justify-content: center; text-align: center; }
#technische-daten, #technische-daten-mobil { scroll-margin-top: 110px; }

/* Formular kompakter: Felder und Namen bleiben unveraendert, nur die Anordnung aendert sich */
.ar-form__links form { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 16px; }
.ar-form__links form > label input, .ar-form__links form > label select, .ar-form__links form > label textarea, .ar-form__links form > label .con-kit-component-input-phone { margin-bottom: 0 !important; }
.ar-form__links form > label { margin: 0 !important; min-width: 0; grid-column: span 3; }
.ar-form__links form > label:nth-of-type(1),
.ar-form__links form > label:nth-of-type(8),
.ar-form__links form > .con-kit-component-form-container__submit-button { grid-column: 1 / -1; margin: 0 !important; }
.ar-form__links form > label:nth-of-type(4) { grid-column: span 4; }
.ar-form__links form > label:nth-of-type(5) { grid-column: span 2; }
@media (max-width: 599px) { .ar-form__links form { grid-template-columns: 1fr; } .ar-form__links form > label { grid-column: 1 / -1 !important; } }
/* Laenderliste: nur senkrecht scrollen, Suchfeld oben fest */
.react-tel-input .country-list { overflow-y: auto !important; overflow-x: hidden !important; max-height: 300px; overscroll-behavior: contain; scrollbar-width: thin; }
.react-tel-input .country-list .country-search { position: sticky; top: -8px; z-index: 10; margin: -8px -8px 6px; padding: 10px 8px 8px; background: #fff; list-style: none; }
.react-tel-input .country-list .country-search input { width: 100%; box-sizing: border-box; height: 40px; padding: 0 12px; border: 1px solid #cfd3cf; border-radius: 6px; background: #fff; color: inherit; font: inherit; font-size: 15px; outline: none; }
.react-tel-input .country-list .country-search input:focus { border-color: #1b1f1c; }
.react-tel-input .country-list .country[hidden], .react-tel-input .country-list .country-leer[hidden] { display: none; }
.react-tel-input .country-list .country-leer { padding: 12px; color: #6b6f6c; list-style: none; }
.react-tel-input .country-list:not(.is-gefiltert) .country--pinend { border-bottom: 1px solid #e2e4e1; border-radius: 0; margin-bottom: 6px; }
/* Laenderliste am Telefonfeld (das Bauteil-CSS der Seite ist da, nur das Aufklappen fehlte) */
.react-tel-input .selected-flag { cursor: pointer; }
.react-tel-input .country-list { list-style: none; margin-left: 0; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.react-tel-input .country-list[hidden] { display: none; }
.react-tel-input .country-list .country { display: flex; align-items: center; cursor: pointer; }
.react-tel-input .country-list .country .dial-code { margin-left: auto; color: #6b6f6c; padding-left: 12px; }

/* Knopf "Alle technischen Daten ansehen" auf den Seiten ohne elektro.css.
   :not(.ex-btn) -> die Elektro- und Artikelseiten behalten ihre eigene Pille. */
.ar-wahl .ar-wahl__alle:not(.ex-btn) {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 52px; padding: 13px 28px; box-sizing: border-box;
  border: 2px solid #f27e00; border-radius: 999px; background: #fff;
  color: #1b1f1c; font: inherit; font-weight: 700; font-size: 15px;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.ar-wahl .ar-wahl__alle:not(.ex-btn):hover { background: #fff6ec; transform: translateY(-2px); }
.ar-wahl .ar-wahl__alle:not(.ex-btn):active { transform: translateY(0); }
.ar-wahl .ar-wahl__alle:not(.ex-btn):focus-visible { outline: 3px solid #1b1f1c; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .ar-wahl .ar-wahl__alle:not(.ex-btn) { transition: none; }
  .ar-wahl .ar-wahl__alle:not(.ex-btn):hover { transform: none; }
}

/* ---------- Dankeschoen nach dem Absenden ----------
   interactions.js (renderSuccess) leert das <form> und haengt ein einzelnes
   .lk-form-success hinein. Das Formular ist hier ein Raster aus sechs Spalten
   (.ar-form__links form) — ohne Angabe landet das Panel in der ersten Spalte,
   wird 117 statt 780 px breit und bricht pro Wort um. Es muss ueber alle
   Spalten gehen. */
.lk-form-success { grid-column: 1 / -1; }
