/* PW Rohrreinigung Nord – Seitenteile der Hauptsitzung: Hero, Befunde, Leistungen, Ablauf, Ausrüstung, Fragen. */

/* ---------- Hero: Kamerafahrt ---------- */
.held { position: relative; background: #050607; }
.held-spur { position: relative; height: 330vh; }
.held-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #050607; isolation: isolate; }
.held-ersatz, .held-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.held-ersatz { object-fit: cover; z-index: 0; }
.held-canvas { z-index: 1; opacity: 0; transition: opacity .9s ease; }
.held-buehne { cursor: grab; }
.held-buehne.schwenkt { cursor: grabbing; }
.held-buehne.bereit .held-canvas { opacity: 1; }
.held-buehne.ohne-webgl .held-canvas { display: none; }
.held-schleier { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(5, 6, 7, .86) 0%, rgba(5, 6, 7, .45) 34%, rgba(5, 6, 7, 0) 58%),
              linear-gradient(to bottom, rgba(5, 6, 7, .7) 0%, rgba(5, 6, 7, 0) 26%); }
@media (min-width: 900px) {
  .held-schleier { background: linear-gradient(to right, rgba(5, 6, 7, .78) 0%, rgba(5, 6, 7, .35) 38%, rgba(5, 6, 7, 0) 62%),
                                linear-gradient(to top, rgba(5, 6, 7, .6) 0%, rgba(5, 6, 7, 0) 40%),
                                linear-gradient(to bottom, rgba(5, 6, 7, .6) 0%, rgba(5, 6, 7, 0) 22%); }
}

/* Kamera-Einblendung */
.osd { position: absolute; z-index: 4; inset: calc(var(--kopf-h) + env(safe-area-inset-top, 0px) + 10px) var(--rand) auto; display: grid; grid-template-columns: 1fr auto; row-gap: 10px; font-size: 12px; line-height: 1.35; color: #F4F2EC; pointer-events: none; }
.osd > div { display: flex; flex-direction: column; gap: 2px; }
.osd-or, .osd-ur { align-items: flex-end; text-align: right; }
.osd-leise { color: rgba(244, 242, 236, .72); }
.osd-rec { display: inline-flex; align-items: center; gap: 6px; }
.osd-rec i { width: 8px; height: 8px; border-radius: 50%; background: #FF3B30; animation: rec 1.4s steps(2, jump-none) infinite; }
@keyframes rec { 50% { opacity: .15; } }
.osd-meter { font-size: 14px; text-transform: none; }
.osd-meter b { font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.osd-befund { margin-top: 4px; color: var(--orange); min-height: 1.35em; }
.osd-befund.frei { color: var(--frei); }
@media (min-width: 900px) { .osd { font-size: 13px; } }

/* Befund-Marken im Rohr */
.held-marken { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.held-marke { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; border: 0; padding: 0; background: none; cursor: pointer; will-change: transform, opacity; -webkit-tap-highlight-color: transparent; }
.hm-punkt { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--orange); background: rgba(253, 79, 2, .25); }
.hm-punkt::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--orange); opacity: 0; animation: puls 2s ease-out infinite; }
@keyframes puls { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.hm-schild { position: absolute; left: 16px; top: -22px; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 8px; white-space: nowrap; font-size: 12px; color: #fff; background: rgba(8, 9, 10, .74); border-left: 2px solid var(--orange); border-radius: 0 4px 4px 0; }
.hm-schild .code { font-size: 11px; padding: 2px 6px; }
.hm-m { color: rgba(255, 255, 255, .7); }
.held-marke.links .hm-schild { left: auto; right: 16px; border-left: 0; border-right: 2px solid var(--orange); border-radius: 4px 0 0 4px; padding: 0 8px 0 12px; }
.held-marke:hover .hm-schild, .held-marke:focus-visible .hm-schild { background: rgba(253, 79, 2, .92); color: var(--schwarz); }
.held-marke:hover .hm-m { color: var(--schwarz); }
@media (max-width: 520px) { .hm-name { max-width: 128px; overflow: hidden; text-overflow: ellipsis; } .hm-m { display: none; } .osd { font-size: 11px; } }

/* Texte */
.held-text { position: absolute; z-index: 5; left: var(--rand); right: var(--rand); bottom: calc(clamp(28px, 6vh, 64px) + env(safe-area-inset-bottom, 0px)); max-width: 820px; }
@media (min-width: 1100px) { .held-start .h1 { font-size: clamp(64px, 6.6vw, 100px); } }
.held-text .lead { color: rgba(255, 255, 255, .88); margin-bottom: 26px; }
.held-start .h1 { margin-bottom: 20px; text-wrap: balance; }
.held-stau, .held-frei { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .2, 1); pointer-events: none; visibility: hidden; }
.held-stau.da, .held-frei.da { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.held-stau .h2 { margin-bottom: 12px; }
.held-stau .lead { margin-bottom: 22px; max-width: 26em; }
.held-frei .frei-kicker { color: var(--frei); }
.held-frei .h1 { margin-bottom: 18px; }
.frei-zeile { width: min(420px, 78%); height: auto; margin-top: 4px; opacity: 0; transform: translateY(10px); transition: opacity .8s ease .5s, transform .8s ease .5s; }
.held-frei.da .frei-zeile { opacity: .92; transform: none; }
.held-hinweis { position: absolute; z-index: 5; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: none; align-items: center; gap: 10px; font-size: 11px; color: rgba(255, 255, 255, .75); transition: opacity .4s ease; pointer-events: none; }
.held-maus { width: 18px; height: 28px; border: 2px solid currentColor; border-radius: 10px; position: relative; }
.held-maus i { position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: maus 1.8s ease-in-out infinite; }
@keyframes maus { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { opacity: 0; } }
@media (min-width: 900px) { .held-hinweis { display: flex; } }

/* Freispülen-Knopf */
.spuel-knopf { position: relative; width: 132px; height: 132px; border-radius: 50%; border: 0; padding: 0; background: rgba(12, 13, 15, .78); color: #fff; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; transition: transform .2s ease, box-shadow .3s ease; box-shadow: 0 0 0 0 rgba(253, 79, 2, .0); }
.spuel-knopf.aktiv { transform: scale(.95); box-shadow: 0 0 0 10px rgba(253, 79, 2, .16), 0 0 60px rgba(180, 210, 255, .35); }
.spuel-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.spuel-bahn { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 5; }
.spuel-wert { fill: none; stroke: var(--orange); stroke-width: 6; stroke-linecap: round; }
.spuel-innen { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 100%; }
.spuel-innen svg { width: 28px; height: 28px; color: var(--orange); margin-bottom: 4px; }
.spuel-innen b { font-size: 17px; font-weight: 800; }
.spuel-innen small { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.spuel-knopf:not(.aktiv) .spuel-innen svg { animation: tropf 2.2s ease-in-out infinite; }
@keyframes tropf { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .spuel-knopf .spuel-innen svg, .hm-punkt::after, .held-maus i { animation: none !important; } }

/* ---------- Befunde ---------- */
.bf-liste { display: grid; gap: 14px; }
@media (min-width: 700px) { .bf-liste { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .bf-liste { grid-template-columns: repeat(5, 1fr); } }
.bf-karte { position: relative; display: flex; flex-direction: column; text-align: left; border: 0; padding: 0; background: var(--graphit); color: var(--weiss); border-radius: var(--runde); overflow: hidden; cursor: pointer; transition: transform .3s cubic-bezier(.2, .8, .2, 1), background-color .3s ease; }
.bf-karte:hover { transform: translateY(-4px); background: var(--graphit-2); }
.bf-bild { position: relative; aspect-ratio: 16 / 10; background: #000; overflow: hidden; }
.bf-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.bf-karte:hover .bf-bild img { transform: scale(1.05); }
.bf-bild .osd-text { position: absolute; left: 10px; top: 10px; font-size: 11px; color: #fff; }
.bf-bild .bf-m { position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: #fff; }
.bf-text { padding: 16px 16px 20px; display: grid; gap: 6px; }
.bf-text .h4 { display: flex; align-items: center; gap: 10px; }
.bf-text p { margin: 0; font-size: 15px; color: var(--stahl); line-height: 1.45; }
.bf-mehr { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; font-size: 14px; color: var(--orange); }
.bf-mehr svg { width: 16px; height: 16px; }
@media (max-width: 699px) {
  .bf-karte { flex-direction: row; align-items: stretch; }
  .bf-bild { width: 38%; aspect-ratio: auto; flex: none; }
  .bf-text { padding: 14px 14px 16px; }
  .bf-text p { font-size: 14px; }
}

/* Befund-Blatt */
.bf-monitor { position: relative; border-radius: var(--runde); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.bf-monitor img { width: 100%; height: 100%; object-fit: cover; }
.bf-osd { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #fff; }
.bf-schritte { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.bf-schritte li { counter-increment: s; position: relative; padding-left: 44px; min-height: 32px; display: flex; align-items: center; }
.bf-schritte li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--orange); width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; }

/* ---------- Leistungen ---------- */
.ls-liste { display: grid; gap: 16px; }
@media (min-width: 760px) { .ls-liste { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .ls-liste { grid-template-columns: repeat(3, 1fr); } }
.ls-karte { display: grid; grid-template-rows: auto 1fr; background: var(--weiss); border-radius: var(--runde); overflow: hidden; color: var(--tinte); box-shadow: 0 1px 0 rgba(17, 19, 21, .06); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease; }
.ls-karte:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(17, 19, 21, .35); }
.ls-bild { position: relative; aspect-ratio: 4 / 3; background: #15181b; overflow: hidden; }
.ls-bild img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.ls-karte:hover .ls-bild img { transform: scale(1.04); }
.ls-nr { position: absolute; left: 14px; top: 12px; font-family: var(--mono); font-weight: 700; font-size: 13px; color: #fff; letter-spacing: .06em; }
.ls-text { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.ls-tags { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-tief); font-weight: 600; }
.ls-text p { margin: 0; color: var(--tinte-2); font-size: 16px; }
.ls-knoepfe { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.ls-knoepfe .knopf { min-height: 44px; font-size: 15px; padding: 0 16px; }
.ls-blatt-bild { border-radius: var(--runde); overflow: hidden; background: #15181b; aspect-ratio: 16 / 10; margin-bottom: 18px; }
.ls-blatt-bild img { width: 100%; height: 100%; object-fit: cover; }
.ls-blatt h3 { margin: 20px 0 8px; }

/* ---------- Ablauf ---------- */
.ab-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; background: var(--kalk-2); border-radius: var(--runde); overflow: hidden; }
@media (min-width: 900px) { .ab-liste { grid-template-columns: repeat(3, 1fr); } }
.ab-schritt { position: relative; background: var(--weiss); padding: clamp(24px, 3vw, 40px); min-height: 240px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.ab-schritt .ab-nr { font-family: var(--mono); font-weight: 700; font-size: clamp(64px, 9vw, 120px); line-height: .9; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--tinte); }
.ab-schritt h3 { font-size: clamp(26px, 3vw, 36px); }
.ab-schritt p { margin: 0; color: var(--tinte-2); }
.ab-schritt::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; background: var(--schwarz); transform: rotate(45deg); }
.ab-schritt:nth-child(2)::after { background: var(--orange); }
.ab-schritt .ab-sym { position: absolute; right: 14px; top: 14px; z-index: 1; width: 26px; height: 26px; color: #fff; }

/* ---------- Ausrüstung ---------- */
.ar-buehne { position: relative; }
.ar-band { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 360px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rand); padding: 4px var(--rand) 18px; margin-inline: calc(-1 * var(--rand)); scrollbar-width: none; overscroll-behavior-x: contain; }
.ar-band::-webkit-scrollbar { display: none; }
@media (min-width: 1240px) { .ar-band { margin-inline: calc((min(var(--breite), 100vw - 2 * var(--rand)) - 100vw) / 2); padding-inline: calc((100vw - min(var(--breite), 100vw - 2 * var(--rand))) / 2); scroll-padding-inline: calc((100vw - min(var(--breite), 100vw - 2 * var(--rand))) / 2); } }
.ar-karte { scroll-snap-align: start; background: var(--graphit); border-radius: var(--runde); overflow: hidden; display: flex; flex-direction: column; }
.ar-bild { aspect-ratio: 4 / 5; background: #121417; overflow: hidden; }
.ar-bild img { width: 100%; height: 100%; object-fit: cover; }
.ar-text { padding: 16px 18px 22px; display: grid; gap: 6px; }
.ar-text p { margin: 0; color: var(--stahl); font-size: 15px; }
.ar-steuer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.ar-punkte { display: flex; gap: 6px; }
.ar-punkte i { width: 22px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .2); transition: background-color .3s ease, width .3s ease; }
.ar-punkte i.an { background: var(--orange); width: 38px; }
.ar-pfeile { display: flex; gap: 8px; }
.ar-pfeile button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ar-pfeile button:hover { background: var(--orange); color: var(--schwarz); }
.ar-pfeile svg { width: 22px; height: 22px; }

/* ---------- Fragen ---------- */
.fr-raster { display: grid; gap: var(--r4); }
@media (min-width: 960px) { .fr-raster { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.fr-liste { display: grid; gap: 10px; }
.fr-frage { background: var(--weiss); border-radius: var(--runde); overflow: hidden; }
.fr-frage summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 20px; font-weight: 800; font-size: 18px; }
.fr-frage summary::-webkit-details-marker { display: none; }
.fr-frage summary svg { width: 22px; height: 22px; flex: none; color: var(--orange-tief); transition: transform .3s ease; }
.fr-frage[open] summary svg { transform: rotate(45deg); }
.fr-frage p { margin: 0; padding: 0 20px 20px; color: var(--tinte-2); }
.fr-sofort { margin-top: var(--r4); background: var(--schwarz); color: var(--weiss); border-radius: var(--runde); padding: clamp(22px, 3vw, 32px); }
.fr-sofort h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.fr-sofort h3 svg { width: 24px; height: 24px; color: var(--orange); }
.fr-sofort ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: t; }
.fr-sofort li { counter-increment: t; display: grid; grid-template-columns: 34px 1fr; gap: 12px; color: rgba(255, 255, 255, .88); font-size: 16px; }
.fr-sofort li::before { content: counter(t, decimal-leading-zero); font-family: var(--mono); font-weight: 700; color: var(--orange); }
.fr-sofort li b { color: #fff; }

/* Aufnahme der Standbilder (nur Werkzeug) */
body.aufnahme .osd, body.aufnahme .held-marken, body.aufnahme .held-text, body.aufnahme .held-hinweis, body.aufnahme .held-schleier, body.aufnahme .kopf, body.aufnahme .leiste { display: none !important; }

.held-status { margin-top: 18px; color: rgba(255, 255, 255, .86); }
/* Kundenstimme */
.ab-stimme { margin: clamp(28px, 4vw, 48px) 0 0; display: grid; gap: 14px; max-width: 820px; }
.ab-stimme blockquote { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.8vw, 32px); line-height: 1.25; letter-spacing: -0.015em; color: var(--tinte); }
.ab-stimme blockquote::before { content: "„"; color: var(--orange-tief); }
.ab-stimme blockquote::after { content: "“"; color: var(--orange-tief); }
.ab-stimme figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--tinte-2); }
.ab-stimme .sterne { display: inline-flex; gap: 2px; color: var(--orange-tief); }
.ab-stimme .sterne svg { width: 16px; height: 16px; fill: currentColor; }
.ab-stimme a { color: var(--tinte-2); }

@media (max-width: 599px) {
  .nur-gross { display: none; }
  .held-start .knopfreihe { flex-wrap: nowrap; gap: 10px; }
  .held-start .knopfreihe .knopf { padding: 0 16px; font-size: 16px; flex: 1 1 auto; white-space: nowrap; }
  .held-start .lead { margin-bottom: 20px; }
  .held-status { margin-top: 14px; font-size: 12px; }
}

/* Niedrige Querformate (Laptopfenster, Handy quer): Hero-Text an die Höhe binden */
@media (orientation: landscape) and (max-height: 760px) {
  .held-start .h1 { font-size: clamp(34px, 10.5vh, 96px); margin-bottom: 12px; }
  .held-stau .h2 { font-size: clamp(30px, 8vh, 64px); }
  .held-frei .h1 { font-size: clamp(34px, 10vh, 96px); }
  .held-text .lead { font-size: clamp(15px, 2.6vh, 20px); margin-bottom: 14px; }
  .held-start .kicker { margin-bottom: 8px; }
  .spuel-knopf { width: 108px; height: 108px; }
  .held-status { margin-top: 10px; }
  .held-hinweis { display: none; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .held-text .lead, .held-status, .held-start .kicker, .frei-zeile { display: none; }
  .osd-ol .osd-leise, .osd-or [data-osd-zeit] { display: none; }
}
