/* ============================================================
   Landingpages Bodenmarkierung, Hallenböden, Maler Gewerbe
   Ergänzung zu industrie.css (Handle mr-lp-seiten, lädt nach mr-industrie).
   Hier steht nur das Seitenspezifische: Hero-Bilder, Zahlen-Leiste mit
   drei Werten, Vorher/Nachher-Regler und drei gestaltete Flächen.
   Ohne JS ist alles sichtbar; Bewegung der gestalteten Flächen greift
   nur unter html.lp-js (setzt lp-seiten.js).
   ============================================================ */

/* ---------- Hero: eigenes Foto je Seite (Grund = untere Bodenfläche desselben Fotos) ---------- */
.lp-hero--boden  { background-image: linear-gradient(rgba(20,20,20,.7), rgba(20,20,20,.86)), url('../img/industrie/stellplaetze-1.jpg'); }
.lp-hero--hallen { background-image: linear-gradient(rgba(20,20,20,.72), rgba(20,20,20,.86)), url('../img/industrie/laborboden.jpg'); }
.lp-hero--maler  { background-image: linear-gradient(rgba(20,20,20,.74), rgba(20,20,20,.88)), url('../img/industrie/flur-gewerbe.jpg'); }
.lp-hero--boden  .ind-hero-media img { object-position: 50% 44%; }
.lp-hero--hallen .ind-hero-media img { object-position: 50% 36%; }
.lp-hero--maler  .ind-hero-media img { object-position: 50% 40%; }

/* ---------- Bildfolge mit sechs Motiven: Liste etwas dichter, damit der klebende Text ins Fenster passt ---------- */
@media (min-width: 900px) {
  .lp-folge .ind-folge-nav { margin-top: 14px; }
  .lp-folge .ind-folge-nav li { padding: 5px 0; font-size: 19px; }
  .lp-folge .ind-folge-cta { margin-top: 14px; }
}
@media (min-width: 900px) and (max-height: 720px) {
  .lp-folge .ind-folge-text > p { display: none; }
}

/* ---------- Zahlen-Leiste mit drei Werten ---------- */
.lp-zahlen-3 .ind-zahlen-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-zahlen-3 .ind-zahlen-grid > div:last-child dd::before { content: none; }
.lp-zahlen-3 .ind-zahlen dt { max-width: 34ch; }

/* ============================================================
   Vorher/Nachher-Regler (Hallenböden)
   Ein Foto, zwei Ausschnitte: unten der alte Belag, oben die neue Fläche.
   --lp-pos = Lage der Trennlinie von links. Ohne JS steht sie bei 50 %.
   ============================================================ */
.lp-vergleich { background: var(--paper); padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.lp-vergleich-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.lp-vergleich-text > p { margin-top: 20px; color: var(--ink-3); font-size: var(--body-lg); line-height: 1.55; max-width: 42ch; }
.lp-vergleich-cta { margin-top: 28px; min-height: 52px; }
.lp-nur-js { display: none; }
.lp-js .lp-nur-js { display: inline; }

.lp-vgl {
  --lp-pos: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--ink);
  box-shadow: 0 30px 70px -40px rgba(0,0,0,.6);
  touch-action: pan-y;                       /* senkrecht scrollt die Seite, waagrecht bewegt den Regler */
  -webkit-user-select: none; user-select: none;
}
.lp-js .lp-vgl { cursor: ew-resize; }
.lp-vgl-lage { position: absolute; inset: 0; overflow: hidden; }
.lp-vgl-lage img {
  position: absolute;
  left: -12.5%;
  width: 125%;
  max-width: none;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
}
/* Bildhöhe = 222,2 % der Rahmenhöhe (Foto 3:4, 125 % breit, Rahmen 4:3) */
.lp-vgl-vorher img  { top: -122.2%; }        /* unterer Bildteil: alter Belag */
.lp-vgl-nachher img { top: -23%; }           /* oberer Bildteil: neue Beschichtung */
.lp-vgl-nachher { clip-path: inset(0 0 0 var(--lp-pos)); }
.lp-vgl-tag {
  position: absolute;
  bottom: 14px;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 7px 12px;
  pointer-events: none;
}
.lp-vgl-tag--v { left: 14px; background: var(--ink); color: #fff; }
.lp-vgl-tag--n { right: 14px; background: var(--ind-gelb); color: var(--ink); }
.lp-vgl-griff {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--lp-pos);
  width: 4px;
  margin-left: -2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(20,20,20,.25);
  z-index: 3;
  pointer-events: none;
}
.lp-vgl-griff i {
  display: none;
  position: absolute;
  left: 50%; top: 50%;
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .04em;
  place-items: center;
  box-shadow: 0 0 0 4px #fff, 0 12px 30px -8px rgba(0,0,0,.6);
  transition: transform .25s var(--ind-ease);
}
.lp-js .lp-vgl-griff i { display: grid; }
.lp-vgl.ist-zug .lp-vgl-griff i { transform: scale(1.12); }
/* Schieberegler für die Tastatur: unsichtbar, aber fokussierbar */
.lp-vgl-regler { display: none; }
.lp-js .lp-vgl-regler {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.lp-vgl-regler:focus-visible ~ .lp-vgl-griff i { outline: 3px solid var(--ind-gelb); outline-offset: 5px; }

/* ============================================================
   Gestaltete Flächen ohne Foto (gleiche Bauart wie .ind-panel--raster / --hoehe)
   ============================================================ */
.lp-panel--deko { min-height: clamp(460px, 68vh, 680px); }

/* helle Variante: Schrift dunkel wie bei der Rasterdecke */
.lp-panel--hell { background-color: var(--paper); color: var(--ink); }
.lp-panel--hell::after { background: linear-gradient(90deg, var(--paper) 0%, rgba(250,248,243,.94) 46%, rgba(250,248,243,0) 80%); }
.lp-panel--hell h3, .lp-panel--hell .ind-claim, .lp-panel--hell .ind-panel-text > p:not(.ind-claim) { text-shadow: none; }
.lp-panel--hell .ind-claim { color: var(--brand-dark); }
.lp-panel--hell .ind-panel-text > p:not(.ind-claim) { color: var(--ink-2); }
.lp-panel--hell .ind-nr { background: var(--ink); color: #fff; }
.lp-panel--hell .ind-more { background: var(--ink); color: #fff; }
.lp-panel--hell .ind-more:hover { background: var(--brand); }

/* --- Leitlinien (Heißapplikation): Linien werden gezogen --- */
.lp-panel--linien { background-color: var(--ind-asphalt); background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px); background-size: 9px 9px; }
.lp-panel--linien::after { background: linear-gradient(90deg, rgba(20,20,20,.92) 0%, rgba(20,20,20,.6) 46%, rgba(20,20,20,0) 76%); }
.lp-linien { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.lp-linien i {
  position: absolute;
  left: 58%;
  right: -12%;
  height: 26px;
  transform: rotate(-9deg);
  transform-origin: 0 50%;
  transition: clip-path 1.5s var(--ind-ease);
  clip-path: inset(0 0 0 0);
}
.lp-linien i:nth-child(1) { top: 34%; background: var(--ind-gelb); }
.lp-linien i:nth-child(2) { top: 52%; height: 20px; background: repeating-linear-gradient(90deg, #fff 0 120px, transparent 120px 190px); transition-delay: .16s; }
.lp-linien i:nth-child(3) { top: 72%; background: #fff; transition-delay: .3s; }
.lp-linien b {
  position: absolute;
  right: var(--gutter);
  bottom: 12%;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ind-gelb);
  border: 2px solid var(--ind-gelb);
  padding: 8px 12px;
}
.lp-js .lp-panel--linien:not(.ist-da) .lp-linien i { clip-path: inset(0 100% 0 0); }

/* --- Teilflächen (Sanierung): Abschnitt für Abschnitt --- */
.lp-panel--felder { background-image: linear-gradient(var(--line) 2px, transparent 2px), linear-gradient(90deg, var(--line) 2px, transparent 2px); background-size: 112px 112px; background-position: -2px -2px; }
.lp-felder {
  position: absolute;
  z-index: -2;
  right: clamp(24px, 7vw, 120px);
  top: 50%;
  width: min(42vw, 480px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.lp-felder i { background: var(--paper-2); box-shadow: inset 0 0 0 2px var(--line); transition: background-color .7s var(--ind-ease), box-shadow .7s var(--ind-ease), transform .9s var(--ind-ease); }
/* fertig beschichtet (dunkel, glänzend), in Arbeit (Pink), als Nächstes (gelb umrandet) */
.lp-felder i:nth-child(-n+4) { background: linear-gradient(135deg, #3a3d3f 0%, #23262a 46%, #50555a 54%, #23262a 100%); box-shadow: none; }
.lp-felder i:nth-child(2) { transition-delay: .12s; }
.lp-felder i:nth-child(3) { transition-delay: .24s; }
.lp-felder i:nth-child(4) { transition-delay: .36s; }
.lp-felder i:nth-child(5) { background: var(--brand); box-shadow: none; transition-delay: .5s; }
.lp-felder i:nth-child(6) { box-shadow: inset 0 0 0 5px var(--ind-gelb); transition-delay: .62s; }
.lp-js .lp-panel--felder:not(.ist-da) .lp-felder i { background: var(--paper-2); box-shadow: inset 0 0 0 2px var(--line); transform: scale(.94); }

/* --- Lackierte Türblätter (Lackierarbeiten) --- */
.lp-panel--lack { background-color: var(--ink); background-image: linear-gradient(180deg, #232323 0%, #141414 100%); }
.lp-panel--lack::after { background: linear-gradient(90deg, rgba(20,20,20,.94) 0%, rgba(20,20,20,.5) 48%, rgba(20,20,20,0) 76%); }
.lp-lack { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.lp-lack i {
  position: absolute;
  bottom: -4%;
  width: clamp(120px, 13vw, 190px);
  height: 82%;
  border-radius: 6px 6px 0 0;
  transition: transform 1.2s var(--ind-ease), opacity .8s var(--ind-ease);
  /* Glanzstreifen über der Lackfarbe */
  background-image: linear-gradient(100deg, transparent 0 34%, rgba(255,255,255,.34) 41%, rgba(255,255,255,.08) 50%, transparent 58%);
  box-shadow: inset 0 0 0 10px rgba(0,0,0,.08);
}
.lp-lack i::after { content: ""; position: absolute; left: 14px; top: 52%; width: 34px; height: 8px; border-radius: 4px; background: rgba(20,20,20,.55); }   /* Drücker */
.lp-lack i:nth-child(1) { right: calc(clamp(24px, 6vw, 96px) + 2 * (clamp(120px, 13vw, 190px) + 22px)); background-color: #fff; height: 70%; }
.lp-lack i:nth-child(2) { right: calc(clamp(24px, 6vw, 96px) + clamp(120px, 13vw, 190px) + 22px); background-color: var(--brand); transition-delay: .14s; }
.lp-lack i:nth-child(3) { right: clamp(24px, 6vw, 96px); background-color: var(--ind-gelb); height: 76%; transition-delay: .28s; }
.lp-js .lp-panel--lack:not(.ist-da) .lp-lack i { transform: translateY(60%); opacity: 0; }

/* Foto nachträglich eingesetzt: Gestaltung weicht dem Bild (wie in industrie.css) */
.ind-panel.hat-foto .lp-linien, .ind-panel.hat-foto .lp-felder, .ind-panel.hat-foto .lp-lack { display: none; }
.lp-panel--hell.hat-foto .ind-nr { background: var(--ind-gelb); color: var(--ink); }
.lp-panel--hell.hat-foto .ind-more { background: #fff; color: var(--ink); }

/* ============================================================
   Tablet
   ============================================================ */
@media (max-width: 1100px) {
  .lp-lack i:nth-child(1) { display: none; }
  .lp-felder { width: min(36vw, 380px); }
}
@media (max-width: 899px) {
  .lp-vergleich-grid { grid-template-columns: 1fr; }
  .lp-zahlen-3 .ind-zahlen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-zahlen-3 .ind-zahlen-grid > div:last-child { grid-column: 1 / -1; }
}

/* ============================================================
   Handy
   ============================================================ */
@media (max-width: 760px) {
  .lp-hero--boden  .ind-hero-media img { object-position: 50% 52%; }
  .lp-hero--hallen .ind-hero-media img { object-position: 50% 50%; }
  .lp-hero--maler  .ind-hero-media img { object-position: 50% 44%; }

  .lp-vergleich-cta { width: 100%; justify-content: center; }
  .lp-vgl { margin-inline: calc(var(--gutter) * -.4); }
  .lp-vgl-griff i { width: 48px; height: 48px; margin: -24px 0 0 -24px; font-size: 17px; }

  .lp-seite .ind-panel-text { width: 100%; }

  /* gestaltete Flächen: Schmuck oben, Text darunter */
  .lp-panel--deko .ind-panel-inner { padding-top: 230px; }
  .lp-panel--hell::after { background: linear-gradient(0deg, var(--paper) 0%, rgba(250,248,243,.96) 56%, rgba(250,248,243,0) 86%); }
  .lp-panel--linien::after { background: linear-gradient(0deg, rgba(20,20,20,.94) 0%, rgba(20,20,20,.8) 50%, rgba(20,20,20,0) 72%); }
  .lp-panel--lack::after { background: linear-gradient(0deg, rgba(20,20,20,.96) 0%, rgba(20,20,20,.85) 52%, rgba(20,20,20,0) 70%); }

  .lp-linien i { left: -6%; height: 18px; }
  .lp-linien i:nth-child(1) { top: 58px; }
  .lp-linien i:nth-child(2) { top: 112px; height: 14px; background: repeating-linear-gradient(90deg, #fff 0 70px, transparent 70px 112px); }
  .lp-linien i:nth-child(3) { top: 166px; }
  .lp-linien b { display: none; }

  .lp-panel--felder { background-size: 78px 78px; }
  .lp-felder { top: 26px; right: var(--gutter); width: 190px; transform: none; gap: 6px; }

  .lp-lack i { bottom: auto; top: 26px; height: 190px; width: 86px; border-radius: 4px; }
  .lp-lack i:nth-child(1) { display: block; height: 160px; top: 56px; right: calc(var(--gutter) + 2 * 98px); }
  .lp-lack i:nth-child(2) { right: calc(var(--gutter) + 98px); }
  .lp-lack i:nth-child(3) { height: 174px; top: 42px; right: var(--gutter); }
  .lp-lack i::after { left: 9px; width: 22px; height: 6px; }
  .lp-js .lp-panel--lack:not(.ist-da) .lp-lack i { transform: translateY(40px); }
}

/* ============================================================
   Weniger Bewegung: alles sichtbar, nichts fährt
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .lp-js .lp-linien i { clip-path: none !important; }
  .lp-js .lp-lack i { transform: none !important; opacity: 1 !important; }
  .lp-js .lp-panel--felder .lp-felder i { transform: none !important; }
}
