/* PW Rohrreinigung Nord – Modul „Kurzliner setzen“ (#linerModul, Abschnitt schwarz). Präfix .li- */
.li-werk { position: relative; }

/* ---------- Bühne: Längsschnitt ---------- */
.li-buehne { position: relative; overflow: hidden; height: 560px; border-radius: 10px 10px 0 0; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; outline-offset: -4px; contain: layout paint; }
.li-buehne.zieht { cursor: grabbing; }
.li-schnitt, .li-schnitt svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.li-schnitt text { font-family: var(--mono); font-weight: 600; }
.lis-mass text, text.lis-mass { font-size: 11px; fill: #9AA3AA; text-anchor: middle; letter-spacing: .02em; }
text.lis-mass-riss { fill: var(--orange); font-weight: 700; }
.lis-schicht text { font-size: 11px; fill: #C4CBD0; letter-spacing: .08em; text-transform: uppercase; paint-order: stroke; stroke: rgba(0, 0, 0, .75); stroke-width: 3px; stroke-linejoin: round; }
.li-schatten { position: absolute; inset: 0; z-index: 6; pointer-events: none; background: radial-gradient(130% 95% at 64% 64%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .42) 100%); }

/* Leck und Nässe */
.li-nass { position: absolute; z-index: 1; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .46), rgba(0, 0, 0, .24) 55%, rgba(0, 0, 0, 0)); transition: opacity 2.6s ease; }
.li-leck { position: absolute; z-index: 2; width: 2px; pointer-events: none; transition: opacity 1.4s ease; }
.li-faden { position: absolute; left: 0; top: 0; width: 1.5px; height: 46%; border-radius: 1px; background: linear-gradient(180deg, rgba(178, 208, 228, .8), rgba(178, 208, 228, 0)); }
.li-leck i { position: absolute; left: -1.5px; top: 0; width: 4px; height: 7px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: rgba(190, 218, 236, .9); opacity: 0; will-change: transform, opacity; }
.li-an .li-leck i { animation: li-tropf 1.5s cubic-bezier(.55, 0, .9, .55) infinite; }
.li-an .li-leck i:nth-of-type(2) { animation-delay: .5s; }
.li-an .li-leck i:nth-of-type(3) { animation-delay: 1s; }
@keyframes li-tropf {
  0% { transform: translateY(0) scaleY(.6); opacity: 0; }
  14% { opacity: .95; }
  80% { opacity: .55; }
  100% { transform: translateY(var(--li-fall, 50px)) scaleY(1.15); opacity: 0; }
}
.dicht .li-leck, .dicht .li-nass { opacity: 0; }

/* Aushärten: warmes Leuchten im Rohr */
.li-glutfeld { position: absolute; z-index: 4; overflow: hidden; pointer-events: none; }
.li-glut { position: absolute; border-radius: 50%; opacity: 0; background: radial-gradient(closest-side, rgba(255, 196, 120, .34), rgba(253, 110, 20, .2) 58%, rgba(253, 79, 2, 0)); transition: opacity .7s ease; will-change: opacity; }
.li-glutfeld.an .li-glut { opacity: 1; animation: li-glimm 1.1s ease-in-out infinite alternate; }
@keyframes li-glimm { from { opacity: .5; } to { opacity: 1; } }

/* Manschette: sichtbare Hälfte an der Rohrwand */
.li-manschette { position: absolute; z-index: 2; opacity: 0; pointer-events: none; background-size: 100% 100%, 100% 100%; background-repeat: no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.li-manschette.da { opacity: 1; }
.li-manschette::before, .li-manschette::after { content: ""; position: absolute; left: 0; right: 0; height: var(--li-lage, 3px); background: linear-gradient(90deg, rgba(168, 170, 164, .2), #A8AAA4 6%, #A8AAA4 94%, rgba(168, 170, 164, .2)); }
.li-manschette::before { top: 0; }
.li-manschette::after { bottom: 0; }

/* Packer */
.li-packer { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 3; will-change: transform; pointer-events: none; }
.li-packer > span { position: absolute; display: block; }
.li-schlauch { border-radius: 99px; background: linear-gradient(180deg, #34383b 0%, #16181a 42%, #060707 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
.li-balg { transform-origin: 50% 50%; will-change: transform; border-radius: 5% / 34%; overflow: hidden; }
.li-gummi, .li-matte { position: absolute; display: block; }
.li-packer > .li-boden { border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); }
.li-gummi { inset: 0; }
.li-matte { transition: opacity .25s ease; }
.li-grau { opacity: 0; transition: none; }
.li-zug { display: inline-flex !important; align-items: center; gap: 6px; padding: 7px 11px 7px 12px; border-radius: 99px; background: rgba(17, 19, 21, .86); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); color: #fff; font-size: 12px; white-space: nowrap; transform: translate(-50%, -100%); --li-r: 1; }
.li-zug[hidden] { display: none !important; }
.li-zug svg { width: 16px; height: 16px; color: var(--orange); }
.li-zug.links { flex-direction: row-reverse; padding: 7px 12px 7px 11px; transform: translate(-100%, -100%); --li-r: -1; }
.li-an .li-zug { animation: li-schubs 1.5s ease-in-out infinite; }
@keyframes li-schubs { 0%, 100% { translate: 0 0; } 50% { translate: calc(var(--li-r) * 8px) 0; } }

/* Markierung über dem Riss */
.li-marke { position: absolute; z-index: 5; pointer-events: none; }
.li-ecke { position: absolute; width: 14px; height: 14px; border: 2px solid var(--orange); transition: border-color .3s ease; }
.li-ecke.e1 { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.li-ecke.e2 { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.li-ecke.e3 { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.li-ecke.e4 { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.li-an .li-werk:not(.dicht) .li-marke:not(.treffer) .li-ecke { animation: li-puls 1.8s ease-in-out infinite; }
@keyframes li-puls { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.li-marke.treffer .li-ecke { border-color: #fff; }
.li-schild { position: absolute; bottom: calc(100% + 8px); left: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #fff; white-space: nowrap; }
.li-schild .code { transition: background-color .3s ease; }
.dicht .li-ecke { border-color: var(--frei); }
.dicht .li-schild .code { background: var(--frei); }
.dicht .li-schild-text { color: var(--frei); }

/* Messband-Zeiger */
.li-zeiger { position: absolute; left: 0; width: 0; height: 0; z-index: 5; will-change: transform; pointer-events: none; }
.li-zeiger::before { content: ""; position: absolute; left: -6px; top: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid #fff; }

/* Kamera-Einblendung */
.li-osd { position: absolute; inset: 0; z-index: 7; pointer-events: none; font-size: 12px; color: #fff; }
.li-osd-l { position: absolute; left: 18px; top: 16px; display: flex; align-items: center; gap: 14px; }
.li-rec { display: inline-flex; align-items: center; gap: 6px; }
.li-rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.li-an .li-rec i { animation: li-puls 1.6s ease-in-out infinite; }
.li-osd-r { position: absolute; right: 18px; top: 10px; display: flex; align-items: baseline; gap: 10px; }
.li-osd-klein { font-size: 11px; color: var(--stahl); }
.li-meter { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.li-osd-status { position: absolute; left: 18px; bottom: 44px; font-size: 12px; }
.dicht .li-osd-status { color: var(--frei); }

/* ---------- Steuerung ---------- */
.li-steuer { position: relative; background: var(--graphit); border-radius: 0 0 10px 10px; padding: 18px clamp(18px, 3vw, 32px) clamp(22px, 3vw, 30px); }
.li-leiste { list-style: none; margin: 0 0 clamp(16px, 2.4vw, 24px); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.li-leiste li { position: relative; padding-top: 11px; display: flex; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--stahl); text-transform: uppercase; }
.li-leiste li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .12); transition: background-color .3s ease; }
.li-leiste li.war::before { background: rgba(255, 255, 255, .6); }
.li-leiste li.ist { color: #fff; }
.li-leiste li.ist::before { background: var(--orange); }
.dicht .li-leiste li::before { background: var(--frei); }
.li-stand { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "z t" "s s" "a a"; column-gap: 16px; align-items: center; }
.li-zaehler { grid-area: z; display: flex; align-items: flex-start; font-family: var(--display); font-weight: 900; font-size: 58px; line-height: .78; letter-spacing: -.05em; color: var(--orange); font-variant-numeric: tabular-nums; }
.li-zaehler span { margin: 2px 0 0 5px; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--stahl); }
.dicht .li-zaehler b { color: var(--frei); }
.li-titel { grid-area: t; margin: 0; }
.dicht .li-titel { color: var(--frei); }
.li-satz { grid-area: s; margin: 12px 0 0; max-width: 38em; color: var(--stahl); font-size: 16px; line-height: 1.5; }
.li-nb { white-space: nowrap; }
.li-aktion { grid-area: a; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.li-a { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.li-tipp { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 700; }
.li-tipp svg { width: 20px; height: 20px; flex: none; color: var(--orange); }
.li-zurueck { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--stahl); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.li-zurueck:hover { color: #fff; }
@media (min-width: 900px) {
  .li-stand { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "z t a" "z s a"; column-gap: 28px; }
  .li-zaehler { font-size: clamp(72px, 8.4vw, 108px); align-self: center; }
  .li-zaehler span { margin-top: 4px; font-size: 14px; }
  .li-titel { align-self: end; }
  .li-satz { align-self: start; margin-top: 6px; }
  .li-aktion { margin-top: 0; justify-content: flex-end; }
  .li-a { justify-content: flex-end; }
}
.li-stand.neu .li-titel, .li-stand.neu .li-satz, .li-stand.neu .li-zaehler b { animation: li-rein .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes li-rein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Gedrückt halten */
.li-halten { position: relative; flex: none; min-height: 60px; width: 340px; max-width: 100%; padding: 0; border: 0; border-radius: var(--runde); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 2px var(--orange); color: #fff; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; overflow: hidden; }
.li-halten-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; }
.li-halten-text svg { width: 22px; height: 22px; flex: none; }
.li-halten-text b { font-size: 17px; font-weight: 800; }
.li-halten-text small { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--stahl); }
.li-fuell { position: absolute; inset: 0; background: var(--orange); color: var(--schwarz); clip-path: inset(0 100% 0 0); -webkit-clip-path: inset(0 100% 0 0); }
.li-fuell .li-halten-text small { color: rgba(17, 19, 21, .8); }
.li-halten.aktiv { box-shadow: inset 0 0 0 2px var(--orange-hell); }

/* Aushärten */
.li-haerten { gap: 12px; min-width: 240px; }
.li-haerten:disabled { cursor: default; background: var(--orange); }
.li-ring { width: 26px !important; height: 26px !important; transform: rotate(-90deg); }
.li-ring-bahn { fill: none; stroke: rgba(17, 19, 21, .22); stroke-width: 4; }
.li-ring-wert { fill: none; stroke: var(--schwarz); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100.53; stroke-dashoffset: 100.53; }

/* ---------- Unter der Bühne: Kurzliner und Inliner, Foto ---------- */
.li-unten { display: grid; gap: clamp(28px, 4vw, 48px); margin-top: clamp(48px, 7vw, 96px); }
.li-foto { margin: 0; }
.li-foto img { width: 100%; aspect-ratio: 1600 / 893; object-fit: cover; border-radius: var(--runde); background: var(--graphit); }
.li-foto figcaption { margin-top: 12px; font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--stahl); }
.li-karten { display: grid; gap: 14px; align-content: start; }
.li-karte { padding: 18px 22px 20px; border-radius: var(--runde); background: var(--graphit); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.li-karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.li-karte p { margin: 14px 0 0; font-size: 16px; color: var(--stahl); }
.li-skizze { width: 100%; height: auto; max-height: 64px; }
.lsk-wand { fill: #6E4526; }
.lsk-innen { fill: #2A1C12; }
.lsk-liner { fill: #CBCDC7; }
.lsk-riss { fill: none; stroke: var(--orange); stroke-width: 1.4; stroke-linejoin: round; }
.li-schluss { display: grid; gap: 4px 32px; align-items: end; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); }
.li-schluss p { margin: 0 0 8px; font-size: 15px; }
.li-schluss-k { display: block; margin-bottom: 2px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.li-schluss .knopf { justify-self: start; margin-top: 6px; }
@media (min-width: 900px) {
  .li-unten { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .li-schluss { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; }
  .li-schluss p { margin: 0; }
  .li-schluss .knopf { margin: 0; }
}

/* ---------- Handy ---------- */
@media (max-width: 759px) {
  .li-buehne, .li-steuer { margin-inline: calc(-1 * var(--rand)); border-radius: 0; }
  .li-steuer { padding-inline: var(--rand); }
  .li-lang, .li-osd-klein { display: none; }
  .li-osd-l { left: var(--rand); top: 13px; }
  .li-osd-r { right: var(--rand); top: 8px; }
  .li-meter { font-size: 19px; }
  .li-osd-status { left: var(--rand); bottom: 36px; }
  .li-schild { font-size: 11.5px; gap: 6px; }
  .li-schild .code { font-size: 12px; padding: 2px 6px; }
  .li-a { width: 100%; }
  .li-halten { width: 100%; }
}
@media (max-width: 559px) { .li-l-name { display: none; } .li-leiste li { justify-content: flex-start; } }

@media (prefers-reduced-motion: reduce) {
  .li-zug, .li-leck i, .li-ecke, .li-glut, .li-rec i { animation: none !important; }
  .li-stand.neu .li-titel, .li-stand.neu .li-satz, .li-stand.neu .li-zaehler b { animation: none; }
}
