/* NL-VISUAL-32 v1: loader checks the 18 exact published ID/slug pairs.
   #angebot and every form, price and calculator selector are excluded.
   The related-model section is outside .nl2 in the current rendered HTML. */
/* Some model pages use a 1140px theme template. Expand the visual root using
   the same centered full-bleed geometry already used by #angebot. */
body.adb-nl-visual-32 .nl2,
body.adb-nl-visual-32 .nlfull:has(> .wrap > .mm-carousel-wrap) {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}
body.adb-nl-visual-32 .nl2 .nlfull:not(#angebot) {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
}
body.adb-nl-visual-32 .nl2 .nlfull:not(#angebot) > .wrap,
body.adb-nl-visual-32 .nlfull > .wrap:has(> .mm-carousel-wrap) {
  box-sizing: border-box;
  width: calc(100% - 48px);
  max-width: clamp(1400px, 90vw, 1800px);
  min-width: 0;
  margin-inline: auto;
  padding-inline: 0;
}
body.adb-nl-visual-32 .nlfull:has(> .wrap > .mm-carousel-wrap) {
  background: #f4f6f8;
}
body.adb-nl-visual-32 .nlfull > .wrap:has(> .mm-carousel-wrap) {
  padding-block: 56px;
}
body.adb-nl-visual-32 .mm-carousel-wrap,
body.adb-nl-visual-32 .mm-carousel-wrap * {
  box-sizing: border-box;
}
body.adb-nl-visual-32 .mm-carousel-wrap {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0 auto;
}
/* WordPress adds empty paragraphs and a paragraph around the next arrow. */
body.adb-nl-visual-32 .mm-carousel-wrap > p:empty,
body.adb-nl-visual-32 .mmcard > p:empty {
  display: none;
}
body.adb-nl-visual-32 .mm-carousel-wrap > .mm-prev {
  grid-column: 1;
  grid-row: 1;
}
body.adb-nl-visual-32 .mm-carousel-wrap > p:has(> .mm-next),
body.adb-nl-visual-32 .mm-carousel-wrap > .mm-next {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
}
body.adb-nl-visual-32 .mm-track {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: stretch;
  gap: 24px;
  min-width: 0;
  width: 100%;
  padding: 4px 0 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
body.adb-nl-visual-32 .mm-track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
body.adb-nl-visual-32 .mmcard {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 72px) / 4);
  min-width: 0;
  scroll-snap-align: start;
  border-radius: 12px;
}
body.adb-nl-visual-32 .mmcard img {
  flex: 0 0 auto;
  width: 100%;
  height: 180px;
  object-fit: cover;
}
body.adb-nl-visual-32 .mmbody {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}
body.adb-nl-visual-32 .mmbody h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 10px;
}
body.adb-nl-visual-32 .mmbody > p:last-child {
  margin-top: auto;
  margin-bottom: 0;
}
body.adb-nl-visual-32 .mm-arrow {
  width: 44px;
  height: 44px;
  padding: 0;
  border-color: #122a43;
  color: #122a43;
}
body.adb-nl-visual-32 .mm-arrow:hover,
body.adb-nl-visual-32 .mm-arrow:focus {
  background: #f0a500;
  color: #122a43;
}
body.adb-nl-visual-32 .mm-arrow:focus-visible,
body.adb-nl-visual-32 .mmcard a:focus-visible {
  outline: 3px solid #122a43;
  outline-offset: 3px;
}
body.adb-nl-visual-32 .nlfull > .wrap:has(> .mm-carousel-wrap) > p > a.btn[href="https://adbetonzaun.de/neue-linie-2026/"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 52px;
  padding: 14px 28px;
  border: 2px solid #122a43;
  border-radius: 10px;
  background: #f0a500;
  color: #122a43;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  box-shadow: 0 4px 12px rgb(18 42 67 / 12%);
  transition: background-color .15s ease, color .15s ease;
}
body.adb-nl-visual-32 .nlfull > .wrap:has(> .mm-carousel-wrap) > p > a.btn[href="https://adbetonzaun.de/neue-linie-2026/"]:hover {
  background: #122a43;
  color: #fff;
}
body.adb-nl-visual-32 .nlfull > .wrap:has(> .mm-carousel-wrap) > p > a.btn[href="https://adbetonzaun.de/neue-linie-2026/"]:focus-visible {
  outline: 3px solid #122a43;
  outline-offset: 4px;
}
/* Keep controls clear of the existing fixed contact rail on regular desktops.
   On wider screens there is enough outer space for the side arrows. */
@media (max-width: 1599px) {
  body.adb-nl-visual-32 .mm-carousel-wrap { grid-template-columns: 1fr 1fr; gap: 12px; }
  body.adb-nl-visual-32 .mm-track { grid-column: 1 / -1; grid-row: 1; }
  body.adb-nl-visual-32 .mm-carousel-wrap > .mm-prev { grid-column: 1; grid-row: 2; justify-self: end; }
  body.adb-nl-visual-32 .mm-carousel-wrap > p:has(> .mm-next),
  body.adb-nl-visual-32 .mm-carousel-wrap > .mm-next { grid-column: 2; grid-row: 2; justify-self: start; }
}
@media (max-width: 1199px) {
  body.adb-nl-visual-32 .mmcard { flex-basis: calc((100% - 48px) / 3); }
}
@media (max-width: 900px) {
  body.adb-nl-visual-32 .nl2 .nlfull:not(#angebot) > .wrap,
  body.adb-nl-visual-32 .nlfull > .wrap:has(> .mm-carousel-wrap) { width: calc(100% - 40px); }
  body.adb-nl-visual-32 .mmcard { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
  body.adb-nl-visual-32 .nl2 .nlfull:not(#angebot) > .wrap,
  body.adb-nl-visual-32 .nlfull > .wrap:has(> .mm-carousel-wrap) { width: calc(100% - 32px); }
  body.adb-nl-visual-32 .nlfull > .wrap:has(> .mm-carousel-wrap) { padding-block: 40px; }
  body.adb-nl-visual-32 .mmcard { flex-basis: 86%; }
  body.adb-nl-visual-32 .mmcard img { height: 170px; }
  body.adb-nl-visual-32 .nlfull > .wrap:has(> .mm-carousel-wrap) > p > a.btn[href="https://adbetonzaun.de/neue-linie-2026/"] { width: 100%; padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  body.adb-nl-visual-32 .mm-track { scroll-behavior: auto; }
  body.adb-nl-visual-32 .nlfull > .wrap:has(> .mm-carousel-wrap) > p > a.btn[href="https://adbetonzaun.de/neue-linie-2026/"] { transition: none; }
}
