/* ==========================================================================
   TEQMINDS – Website „Kollaborative Intelligenz für Immobilien“
   Baut auf tq.css (Tokens, Header, Buttons, Formular, Footer, Rechtstexte) auf.
   ========================================================================== */

:root {
  --hx-violet-300: #B9AEE6;   /* Akzent auf dunklen Flächen (7.9:1 auf violet-900) */
  --hx-on-dark:    #D9D4EE;
  --hx-shadow:     0 40px 80px -40px rgba(36, 26, 74, .45), 0 2px 6px rgba(36, 26, 74, .06);
  --hx-ease:       cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Einblenden beim Scrollen (nur mit JavaScript) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--hx-ease), transform .7s var(--hx-ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hx-hero { position: relative; overflow: hidden; background: var(--tq-violet-900); color: var(--hx-on-dark); min-height: min(860px, calc(100svh - 72px)); display: flex; align-items: flex-end; }
.hx-hero__media { position: absolute; inset: 0; }
.hx-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hx-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,17,47,.92) 0%, rgba(23,17,47,.72) 45%, rgba(23,17,47,.25) 100%), linear-gradient(0deg, rgba(23,17,47,.85) 0%, rgba(23,17,47,0) 45%); }
.hx-hero__mark { position: absolute; inset: 0; background: url("../form_teqminds.png") no-repeat right -6% center / auto 125%; opacity: .07; }
.hx-hero__inner { position: relative; width: 100%; padding-top: var(--tq-s8); padding-bottom: var(--tq-s5); }
.hx-display { color: #fff; font-size: clamp(2.75rem, 1.2rem + 5.6vw, 6.25rem); line-height: 1; letter-spacing: -.04em; font-weight: 500; max-width: 11.5em; margin: 0 0 var(--tq-s4); }
.hx-display em { font-style: normal; color: var(--hx-violet-300); }
.hx-hero__lead { font-size: var(--tq-fs-lead); line-height: 1.55; max-width: 36em; color: var(--hx-on-dark); margin-bottom: var(--tq-s5); }
.hx-btn--light { color: #fff; border-color: rgba(255,255,255,.7); background: transparent; }
.hx-btn--light:hover { background: #fff; color: var(--tq-ink); border-color: #fff; }
.hx-hero__meta { margin: clamp(3.5rem, 8vw, 6rem) 0 0; padding-top: var(--tq-s3); border-top: 1px solid rgba(255,255,255,.2); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tq-s4); }
.hx-hero__meta dt { font-family: var(--tq-mono); font-size: var(--tq-fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--hx-violet-300); margin-bottom: .35rem; }
.hx-hero__meta dd { margin: 0; font-size: .9375rem; color: #E7E3F6; }
.hx-hero__toggle { position: absolute; right: var(--tq-gutter); top: var(--tq-s3); width: 40px; height: 35px; border: 0; cursor: pointer; background: rgba(255,255,255,.14); clip-path: var(--tq-hex); }
.hx-hero__toggle:hover { background: rgba(255,255,255,.28); }
.hx-hero__toggle span { position: absolute; left: 50%; top: 50%; width: 10px; height: 12px; margin: -6px 0 0 -5px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.hx-hero__toggle.is-paused span { border: 0; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; width: 0; margin-left: -3px; }
@media (max-width: 720px) {
  .hx-hero__meta { grid-template-columns: 1fr; gap: var(--tq-s3); }
  .hx-hero__inner { padding-top: var(--tq-s7); }
  .hx-hero__mark { background-position: 60% center; }
}

/* ---------- Warum-Zeile mit wechselndem Ende ---------- */
.hx-why { border-top: 0; }
.hx-why__h { font-size: clamp(2rem, 1.1rem + 3.2vw, 3.75rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 500; max-width: 18em; }
.hx-why__h > span:first-child { color: var(--tq-ink); }
.hx-rotor { display: grid; color: var(--tq-violet); overflow: hidden; }
.hx-rotor__w { grid-area: 1 / 1; opacity: 0; transform: translateY(.6em); transition: opacity .5s var(--hx-ease), transform .6s var(--hx-ease); }
.hx-rotor__w.is-on { opacity: 1; transform: none; }
.hx-rotor__w.is-out { opacity: 0; transform: translateY(-.6em); }
.hx-pains { list-style: none; margin: var(--tq-s7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tq-s4); }
.hx-pains li { border-top: 1px solid var(--tq-ink); padding-top: var(--tq-s3); }
.hx-pains .tq-num { display: block; margin-bottom: var(--tq-s2); }
.hx-pains h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: .5rem; }
.hx-pains p { font-size: .9375rem; color: var(--tq-muted); }
html[lang="de"] .hx-pains p { hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 860px) { .hx-pains { grid-template-columns: 1fr; gap: var(--tq-s3); margin-top: var(--tq-s5); } }

/* ---------- Ablauf: Schritte links, App-Ansicht rechts (sticky) ---------- */
.hx-walk { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--tq-s6); margin-top: var(--tq-s5); }
.hx-walk__steps { list-style: none; margin: 0; padding: 0; }
.hx-walk__step { min-height: 68vh; display: flex; flex-direction: column; justify-content: center; }
.hx-walk__step:first-child { min-height: 52vh; justify-content: flex-start; padding-top: 12vh; }
.hx-walk__step:last-child { min-height: 60vh; }
.hx-walk__text { border-left: 2px solid var(--tq-line); padding: var(--tq-s1) 0 var(--tq-s1) var(--tq-s3); opacity: .38; transition: opacity .4s ease, border-color .4s ease; }
.hx-walk__step.is-on .hx-walk__text { opacity: 1; border-color: var(--tq-violet); }
.hx-walk__text .tq-num { display: block; margin-bottom: var(--tq-s1); }
.hx-walk__text h3 { font-size: clamp(1.375rem, 1.1rem + .9vw, 1.75rem); letter-spacing: -.02em; line-height: 1.15; margin-bottom: var(--tq-s2); }
.hx-walk__text p { color: var(--tq-muted); max-width: 30em; }
html[lang="de"] .hx-walk__text p { hyphens: auto; -webkit-hyphens: auto; }
.hx-walk__stage { position: relative; }
.hx-app--sticky { position: sticky; top: calc(50vh - 270px + 36px); height: 540px; }
.hx-app--inline { display: none; }
.hx-walk-sec .tq-note { margin-top: var(--tq-s5); }

/* App-Fenster */
.hx-app__screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tq-line); border-radius: 6px; box-shadow: var(--hx-shadow); overflow: hidden;
  opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .45s var(--hx-ease), transform .55s var(--hx-ease); pointer-events: none; }
.hx-app[data-active="1"] [data-screen="1"], .hx-app[data-active="2"] [data-screen="2"],
.hx-app[data-active="3"] [data-screen="3"], .hx-app[data-active="4"] [data-screen="4"] { opacity: 1; transform: none; }
.hx-app__bar { display: flex; align-items: center; gap: .75rem; height: 46px; padding: 0 1rem; border-bottom: 1px solid var(--tq-line); background: #FBFBFA; flex: none; }
.hx-app__dot { width: 16px; height: 14px; background: var(--tq-violet); clip-path: var(--tq-hex); flex: none; }
.hx-app__case { font-size: .875rem; font-weight: 600; color: var(--tq-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-app__status { margin-left: auto; flex: none; font-family: var(--tq-mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .55rem; background: var(--tq-sand); color: var(--tq-muted); }
.hx-app__status.is-turn { background: var(--tq-violet); color: #fff; }
.hx-app__status.is-done { background: #E3F1EA; color: var(--tq-ok); }
.hx-app__body { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .85rem; flex: 1; min-height: 0; }
.hx-app__k { font-family: var(--tq-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tq-muted); }
.hx-app__h { font-size: 1.0625rem; font-weight: 600; color: var(--tq-ink); letter-spacing: -.01em; margin-top: -.5rem; }
.hx-app__foot { margin-top: auto; padding-top: .75rem; border-top: 1px dashed var(--tq-line); font-family: var(--tq-mono); font-size: .75rem; color: var(--tq-muted); }
.hx-src { font-family: var(--tq-mono); font-size: .6875rem; color: var(--tq-violet-700); background: var(--tq-violet-50); padding: .2rem .45rem; white-space: nowrap; align-self: start; }

.hx-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.hx-chips > * { font-family: var(--tq-mono); font-size: .71875rem; padding: .25rem .55rem; border: 1px solid var(--tq-line); background: var(--tq-sand); color: var(--tq-text); }
.hx-chips--dark > * { background: transparent; border-color: rgba(255,255,255,.22); color: #E7E3F6; }

.hx-tl { list-style: none; margin: 0; padding: 0; }
.hx-tl li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: .75rem; align-items: start; padding: .6rem 0; border-top: 1px solid var(--tq-line); }
.hx-tl li:last-child { border-bottom: 1px solid var(--tq-line); }
.hx-tl__ico { width: 30px; height: 30px; display: grid; place-items: center; background: var(--tq-violet-50); color: var(--tq-violet); }
.hx-ico { width: 18px; height: 18px; }
.hx-tl__when { display: block; font-family: var(--tq-mono); font-size: .6875rem; color: var(--tq-muted); text-transform: uppercase; letter-spacing: .05em; }
.hx-tl p, .hx-checks p, .hx-done p { margin: 0; font-size: .875rem; color: var(--tq-ink); line-height: 1.45; }

.hx-checks, .hx-done, .hx-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.hx-checks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: .75rem; padding: .7rem .8rem; border: 1px solid var(--tq-line); }
.hx-checks li > div { display: grid; gap: .35rem; justify-items: start; }
.hx-checks__ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #E3F1EA; color: var(--tq-ok); }
.hx-checks__ico svg { width: 14px; height: 14px; }
.hx-checks li.is-note { border-color: #CFC6EE; background: var(--tq-violet-50); }
.hx-checks li.is-note .hx-checks__ico { background: var(--tq-violet-100); color: var(--tq-violet-700); }

.hx-opts li { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border: 1px solid var(--tq-line); font-size: .875rem; color: var(--tq-ink); }
.hx-opts li.is-sel { border-color: var(--tq-violet); background: var(--tq-violet-50); }
.hx-opts__radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--tq-muted); flex: none; position: relative; }
.hx-opts li.is-sel .hx-opts__radio { border-color: var(--tq-violet); }
.hx-opts li.is-sel .hx-opts__radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--tq-violet); }
.hx-why-line { margin: 0; font-size: .8125rem; color: var(--tq-muted); }
.hx-app__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.hx-ok { display: flex; align-items: center; gap: .5rem; color: var(--tq-ok); font-size: .9375rem; }
.hx-ok svg { width: 18px; height: 18px; }
.hx-done li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .65rem 0; border-top: 1px solid var(--tq-line); }

/* Aufbau-Animation der aktiven Ansicht */
.hx-app__screen.is-active :is(.hx-tl li, .hx-checks li, .hx-opts li, .hx-done li) { animation: tq-build .5s var(--hx-ease) both; animation-delay: calc(var(--i, 0) * 110ms + 180ms); }
.hx-app__screen.is-active .hx-pulse { animation: hx-pulse 1.8s ease-out 1.1s 2; }
@keyframes hx-pulse { 0% { box-shadow: 0 0 0 0 rgba(101,76,191,.55); } 100% { box-shadow: 0 0 0 14px rgba(101,76,191,0); } }

.hx-progress { position: absolute; left: 0; right: 0; bottom: -26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hx-progress span { height: 3px; background: var(--tq-line); transition: background-color .4s ease; }
.hx-app[data-active="1"] .hx-progress span:nth-child(-n+1),
.hx-app[data-active="2"] .hx-progress span:nth-child(-n+2),
.hx-app[data-active="3"] .hx-progress span:nth-child(-n+3),
.hx-app[data-active="4"] .hx-progress span:nth-child(-n+4) { background: var(--tq-violet); }

@media (max-width: 900px) {
  .hx-walk { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hx-walk__stage { display: none; }
  .hx-walk__step, .hx-walk__step:first-child, .hx-walk__step:last-child { min-height: 0; padding: 0; margin-top: var(--tq-s5); }
  .hx-walk__text { opacity: 1; border-color: var(--tq-violet); }
  .hx-app--inline { display: block; margin-top: var(--tq-s3); }
  .hx-app--inline .hx-app__screen { position: relative; opacity: 1; transform: none; }
}
@media (max-width: 480px) {
  .hx-app__body { padding: 1rem; }
  .hx-tl li, .hx-done li { grid-template-columns: 30px minmax(0, 1fr); }
  .hx-tl .hx-src, .hx-done .hx-src { grid-column: 2; justify-self: start; }
  .hx-app__case { font-size: .8125rem; }
}

/* ---------- Einsatzfelder ---------- */
.hx-cards { list-style: none; margin: var(--tq-s6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tq-s3); }
.hx-card { background: #fff; border: 1px solid var(--tq-line); display: flex; flex-direction: column; transition: border-color .2s ease, transform .3s var(--hx-ease); }
.hx-card:hover { border-color: var(--tq-violet); transform: translateY(-3px); }
.js .hx-card[data-reveal].is-in:hover { transform: translateY(-3px); }
.hx-card__media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tq-violet-900); }
.hx-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--hx-ease); }
.hx-card:hover .hx-card__media img { transform: scale(1.04); }
.hx-card__body { padding: var(--tq-s3); display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.hx-card h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.hx-card p { font-size: .9375rem; color: var(--tq-muted); }
.hx-card .hx-chips { margin-top: auto; padding-top: .5rem; }
@media (max-width: 1100px) { .hx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hx-cards { grid-template-columns: 1fr; } }

/* ---------- Plattform: Schichten ---------- */
.hx-plat-sec .tq-lead { color: var(--hx-on-dark); }
.hx-plat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--tq-s6); margin-top: var(--tq-s6); align-items: start; }
.hx-stack { position: relative; padding-right: var(--tq-s4); }
.hx-stack__hint { display: block; font-family: var(--tq-mono); font-size: var(--tq-fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--hx-violet-300); margin-bottom: var(--tq-s2); }
.hx-stack__layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hx-layer { width: 100%; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 24px; align-items: center; gap: .5rem; padding: 1.05rem 1.25rem; text-align: left; cursor: pointer;
  font: 500 1.0625rem/1.2 var(--tq-font); color: var(--hx-on-dark); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); border-radius: var(--tq-radius);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .35s var(--hx-ease); }
.hx-layer:hover { border-color: var(--hx-violet-300); color: #fff; }
.hx-layer.is-on { background: var(--tq-violet); border-color: var(--tq-violet); color: #fff; transform: translateX(10px); }
.hx-layer__num { font-family: var(--tq-mono); font-size: .8125rem; color: var(--hx-violet-300); }
.hx-layer.is-on .hx-layer__num { color: #E7E3F6; }
.hx-layer__hex { width: 22px; height: 19px; background: rgba(255,255,255,.18); clip-path: var(--tq-hex); transition: background-color .25s ease; }
.hx-layer.is-on .hx-layer__hex { background: #fff; }
.hx-stack__core { margin-top: 14px; padding: 1rem 1.25rem; border: 1px dashed rgba(255,255,255,.3); display: grid; gap: .25rem; }
.hx-stack__core strong { color: #fff; font-weight: 600; }
.hx-stack__core span { font-size: .875rem; color: var(--hx-on-dark); }
/* Datenfluss: Punkte wandern von den Anbindungen nach oben */
.hx-stack__flow { position: absolute; right: 0; top: 2.25rem; bottom: 0; width: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.hx-stack__flow i { position: absolute; left: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--hx-violet-300); bottom: -6px; animation: hx-flow 3.6s linear infinite; }
.hx-stack__flow i:nth-child(2) { animation-delay: 1.2s; }
.hx-stack__flow i:nth-child(3) { animation-delay: 2.4s; }
@keyframes hx-flow { from { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translateY(-520px); opacity: 0; } }
.hx-panel { position: relative; padding: var(--tq-s5); background: rgba(255,255,255,.04); border-top: 3px solid var(--tq-violet); min-height: 340px; }
.hx-panel__item .tq-num { color: var(--hx-violet-300); display: block; margin-bottom: var(--tq-s2); }
.hx-panel__item h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); letter-spacing: -.03em; margin-bottom: var(--tq-s3); }
.hx-panel__item p { font-size: var(--tq-fs-lead); line-height: 1.55; color: var(--hx-on-dark); max-width: 30em; margin-bottom: var(--tq-s4); }
.hx-panel__item:not([hidden]) > * { animation: tq-build .5s var(--hx-ease) both; }
.hx-panel__item:not([hidden]) > :nth-child(2) { animation-delay: .06s; }
.hx-panel__item:not([hidden]) > :nth-child(3) { animation-delay: .12s; }
.hx-panel__item:not([hidden]) > :nth-child(4) { animation-delay: .18s; }
.hx-panel [hidden] { display: none !important; }
@media (max-width: 900px) {
  .hx-plat { grid-template-columns: minmax(0, 1fr); gap: var(--tq-s4); }
  .hx-stack { padding-right: 0; }
  .hx-stack__flow { display: none; }
  .hx-layer.is-on { transform: none; }
  .hx-panel { padding: var(--tq-s4) var(--tq-s3); min-height: 0; }
}

/* ---------- Grundsätze ---------- */
.hx-big { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.5rem); letter-spacing: -.035em; line-height: 1.06; }
.hx-pr { list-style: none; margin: var(--tq-s6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tq-s4); }
.hx-pr li { border-top: 1px solid var(--tq-ink); padding-top: var(--tq-s3); }
.hx-pr__ico { width: 46px; height: 40px; display: grid; place-items: center; clip-path: var(--tq-hex); background: var(--tq-violet-100); color: var(--tq-violet-700); margin-bottom: var(--tq-s3); }
.hx-pr__ico .hx-ico { width: 20px; height: 20px; }
.hx-pr h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: .5rem; }
.hx-pr p { font-size: .9375rem; color: var(--tq-muted); }
html[lang="de"] .hx-pr p { hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 900px) { .hx-pr { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hx-pr { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.hx-contact .hx-big { margin: var(--tq-s2) 0 var(--tq-s3); }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .hx-stack__flow { display: none; }
}

/* Ausgewogene Umbrüche in Überschriften */
.tq-h2, .hx-big, .hx-display, .hx-why__h, .hx-walk__text h3 { text-wrap: balance; }

/* ==========================================================================
   Konzeptdarstellung der Plattform – feste Arbeitsfläche, skaliert wie ein Video,
   nicht bedienbar und nicht markierbar
   ========================================================================== */
.pf-scale { position: relative; width: 100%; overflow: hidden; border-radius: 10px; box-shadow: var(--hx-shadow); background: #fff; -webkit-user-select: none; user-select: none; pointer-events: none; }
.pf { position: absolute; left: 0; top: 0; width: 860px; height: 560px; transform: scale(var(--s, 1)); transform-origin: 0 0;
  display: grid; grid-template-columns: 56px 520px 284px; grid-template-rows: 48px 512px; background: #fff; overflow: hidden;
  font: 400 13px/1.4 var(--tq-font); color: var(--tq-text); -webkit-user-select: none; user-select: none; pointer-events: none; }
.pf b { font-weight: 500; color: var(--tq-ink); }
.pf small { display: block; font-size: 11.5px; color: var(--tq-muted); }
.pf em { font-style: normal; }
.pf--narrow { width: 520px; grid-template-columns: 0 520px 0; }
.pf--narrow .pf-rail, .pf--narrow .pf-side, .pf--narrow .pf-search { display: none; }
.pf--narrow .pf-cursor { margin-left: -56px; }
.pf--narrow .pf-ripple { margin-left: -74px; }

.pf-rail { grid-column: 1; grid-row: 1 / 3; background: var(--tq-violet-900); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; }
.pf-logo { width: 26px; height: 23px; background: var(--tq-violet); clip-path: var(--tq-hex); position: relative; margin-bottom: 14px; flex: none; }
.pf-logo::after { content: ""; position: absolute; inset: 6px 7px; background: #fff; clip-path: var(--tq-hex); }
.pf-rail i { width: 36px; height: 36px; display: grid; place-items: center; color: #8E84B8; border-radius: 8px; }
.pf-rail i.is-on { background: rgba(255,255,255,.1); color: #fff; }
.pf-rail svg { width: 18px; height: 18px; }
.pf-avatar { margin-top: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--hx-violet-300); color: var(--tq-violet-900); font: 600 11px/28px var(--tq-font); text-align: center; }
.pf-top { grid-column: 2 / 4; grid-row: 1; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--tq-line); min-width: 0; }
.pf-crumb { font-size: 12.5px; color: var(--tq-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pf-crumb b { color: #C4C4CC; margin: 0 4px; }
.pf-search { margin-left: auto; flex: none; width: 170px; height: 28px; border: 1px solid var(--tq-line); border-radius: 6px; color: #9A9AA3; padding: 0 10px; font-size: 12px; line-height: 26px; }
.pf-pill { flex: none; font: 500 10.5px/1 var(--tq-mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; border-radius: 4px; background: var(--tq-sand); color: var(--tq-muted); }
.pf--narrow .pf-pill { margin-left: auto; }
.pf-pill.is-turn { background: var(--tq-violet); color: #fff; }
.pf-pill.is-done { background: #E3F1EA; color: var(--tq-ok); }
.pf-main { grid-column: 2; grid-row: 2; position: relative; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.pf-side { grid-column: 3; grid-row: 2; border-left: 1px solid var(--tq-line); background: #FAFAF9; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.pf-card { background: #fff; border: 1px solid var(--tq-line); border-radius: 8px; padding: 12px 14px; display: grid; gap: 4px; }
.pf-k { font: 500 10px/1.2 var(--tq-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tq-muted); }
.pf-h { font-size: 12px; font-weight: 600; color: var(--tq-muted); }
.pf-title { font-size: 16px; font-weight: 600; color: var(--tq-ink); letter-spacing: -.01em; margin-top: -6px; }
.pf-chips { display: flex; gap: 6px; }
.pf-chips span { font: 10.5px/1 var(--tq-mono); padding: 5px 7px; background: var(--tq-sand); border: 1px solid var(--tq-line); border-radius: 4px; }
.pf-src { font: 10px/1 var(--tq-mono); color: var(--tq-violet-700); background: var(--tq-violet-50); padding: 4px 6px; border-radius: 4px; white-space: nowrap; }
.pf-foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--tq-line); font: 11px var(--tq-mono); color: var(--tq-muted); }
.pf-cursor { position: absolute; left: 0; top: 0; width: 20px; height: 24px; z-index: 6; opacity: 0; }
.pf-cursor svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.pf-ripple { position: absolute; z-index: 5; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: rgba(101,76,191,.35); opacity: 0; }
.pf ul, .pf ol { list-style: none; margin: 0; padding: 0; }

/* Szene 1 – Eingang und Vorgangsakte */
.s1-inbox { position: absolute; left: 24px; right: 24px; top: 22px; opacity: 0; }
.pf-inbox li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; height: 60px; padding: 0 14px; margin-top: 8px; border: 1px solid var(--tq-line); border-radius: 8px; background: #fff; }
.pf-inbox b { display: block; font-size: 13px; font-weight: 600; }
.pf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tq-violet); }
.pf-inbox em { font: 10px/1 var(--tq-mono); color: var(--tq-violet-700); background: var(--tq-violet-100); padding: 4px 6px; border-radius: 4px; }
.pf-tl li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--tq-line); }
.pf-tl small { font: 10px var(--tq-mono); text-transform: uppercase; letter-spacing: .05em; }
.pf-tl b { display: block; font-size: 12.5px; }
.pf-ic { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: var(--tq-violet-50); color: var(--tq-violet); }
.pf-ic svg { width: 15px; height: 15px; }
.pf-objpic { height: 64px; border-radius: 6px; background: linear-gradient(135deg, #3A2C70, var(--tq-violet-900)); display: grid; place-items: center; color: #fff; margin: 4px 0 6px; }
.pf-objpic svg { width: 30px; height: 30px; }
.s1-obj b { font-size: 13px; font-weight: 600; }
.pf-srclist li { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 3px 0; }
.pf-srclist span { width: 6px; height: 6px; border-radius: 50%; background: var(--tq-violet); }
.pf-count { margin-top: 6px; font: 11px var(--tq-mono); color: var(--tq-violet-700); background: var(--tq-violet-50); padding: 6px 8px; border-radius: 6px; }

/* Szene 2 – Abgleich */
.pf-prog { display: grid; gap: 6px; }
.pf-prog__bar { height: 6px; background: var(--tq-sand); border-radius: 3px; overflow: hidden; }
.pf-prog__bar i { display: block; height: 100%; background: var(--tq-violet); border-radius: 3px; transform-origin: 0 50%; }
.pf-prog__t { display: grid; font: 11px var(--tq-mono); color: var(--tq-muted); }
.pf-prog__t em { grid-area: 1 / 1; }
.pf-prog__t .a { opacity: 0; }
.pf-checks { display: grid; gap: 8px; }
.pf-checks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 11px 14px; border: 1px solid var(--tq-line); border-radius: 8px; }
.pf-checks li.is-note { border-color: #CFC6EE; background: var(--tq-violet-50); }
.pf-checks li > div { display: grid; gap: 6px; justify-items: start; }
.pf-checks b { font-size: 13px; }
.pf-state { position: relative; width: 24px; height: 24px; }
.pf-spin { position: absolute; inset: 0; border: 2px solid var(--tq-line); border-top-color: var(--tq-violet); border-radius: 50%; opacity: 0; }
.pf-res { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: #E3F1EA; color: var(--tq-ok); }
.pf-res svg { width: 13px; height: 13px; }
.is-note .pf-res { background: var(--tq-violet-100); color: var(--tq-violet-700); }
.pf-doc b { font-size: 13px; font-weight: 600; margin: 2px 0 4px; }
.pf-lines i { display: block; height: 6px; background: #ECECEA; border-radius: 3px; margin: 7px 0; }
.pf-hl { margin: 6px 0; font-size: 12px; color: var(--tq-ink); line-height: 1.5; }
.pf-hl mark { color: inherit; padding: 1px 2px; background: linear-gradient(var(--tq-violet-100), var(--tq-violet-100)) no-repeat 0 0 / 100% 100%; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Szene 3 – Entscheidung */
.pf-banner { display: flex; align-items: center; gap: 8px; background: var(--tq-violet); color: #fff; font-size: 12px; font-weight: 600; padding: 8px 12px; border-radius: 6px; }
.pf-banner::before { content: ""; width: 12px; height: 10px; background: #fff; clip-path: var(--tq-hex); }
.pf-opts { display: grid; gap: 8px; }
.pf-opts li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--tq-line); border-radius: 8px; }
.pf-opts li.is-sel { border-color: var(--tq-violet); background: var(--tq-violet-50); }
.pf-opts b { font-size: 13px; }
.pf-opts em { margin-left: auto; font: 10px/1 var(--tq-mono); text-transform: uppercase; letter-spacing: .05em; background: var(--tq-violet); color: #fff; padding: 4px 6px; border-radius: 4px; }
.pf-radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #9A9AA3; flex: none; position: relative; }
.is-sel .pf-radio { border-color: var(--tq-violet); }
.is-sel .pf-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--tq-violet); }
.pf-actions { position: absolute; left: 24px; bottom: 24px; display: flex; gap: 8px; }
.pf-btn { display: inline-grid; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--tq-ink); border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--tq-ink); background: #fff; white-space: nowrap; }
.pf-btn.is-primary { background: var(--tq-violet); border-color: var(--tq-violet); color: #fff; }
.pf-btn em { grid-area: 1 / 1; display: flex; align-items: center; gap: 6px; }
.pf-btn em svg { width: 14px; height: 14px; }
.s3-go { background: var(--tq-ok) !important; border-color: var(--tq-ok) !important; }
.s3-go .a { opacity: 0; }
.pf-big { font-size: 22px; font-weight: 600 !important; letter-spacing: -.02em; }
.pf-meter { height: 8px; background: var(--tq-sand); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.pf-meter i { display: block; width: 56%; height: 100%; background: var(--tq-violet); border-radius: 4px; transform-origin: 0 50%; }
.pf-why li { display: grid; gap: 5px; justify-items: start; padding: 8px 0; border-top: 1px solid var(--tq-line); }
.pf-why b { font-size: 12.5px; }

/* Szene 4 – Erledigt */
.pf-okt { display: flex; align-items: center; gap: 8px; color: var(--tq-ok); margin-top: -4px; }
.pf-okt svg { width: 18px; height: 18px; }
.pf-done li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 80px; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--tq-line); }
.pf-done b { font-size: 13px; }
.pf-st { display: grid; justify-items: end; font: 10.5px var(--tq-mono); }
.pf-st em { grid-area: 1 / 1; }
.pf-st .a { color: var(--tq-muted); opacity: 0; }
.pf-st .b { color: var(--tq-ok); }
.pf-toast { position: absolute; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 8px; background: var(--tq-violet-900); color: #fff; font-size: 12.5px; padding: 10px 14px; border-radius: 8px; box-shadow: 0 12px 30px -10px rgba(23,17,47,.6); }
.pf-toast svg { width: 16px; height: 16px; color: #9FE0BF; }
.pf-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 8px; text-align: center; }
.pf-cal em { font: 9.5px var(--tq-mono); color: var(--tq-muted); }
.pf-cal span { font-size: 11px; padding: 3px 0; border-radius: 4px; }
.pf-cal .is-today { box-shadow: inset 0 0 0 1px var(--tq-line); }
.pf-cal .is-hit { background: var(--tq-violet); color: #fff; font-weight: 600; }
.pf-log li { display: flex; gap: 8px; font-size: 12px; padding: 6px 0; border-top: 1px solid var(--tq-line); }
.pf-log small { font: 10.5px var(--tq-mono); }
.s4-cal b, .s3-why b { font-weight: 500; }

/* ---------- Abspielen (Klasse .play wird per JavaScript gesetzt) ---------- */
@keyframes pf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pf-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes pf-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes pf-hold { 0%, 99% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pf-spin { to { transform: rotate(360deg); } }
@keyframes pf-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pf-hit { to { border-color: var(--tq-violet); background: var(--tq-violet-50); } }
@keyframes pf-mark { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
@keyframes pf-rip { 0% { opacity: .9; transform: scale(.2); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes pf-approve { from { background: var(--tq-violet); border-color: var(--tq-violet); } to { background: var(--tq-ok); border-color: var(--tq-ok); } }
@keyframes pf-toast { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pf-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pf-cur1 { 0% { opacity: 0; transform: translate(640px, 470px); } 15% { opacity: 1; } 55% { transform: translate(282px, 118px); } 60% { transform: translate(282px, 118px) scale(.85); } 66% { transform: translate(282px, 118px); opacity: 1; } 100% { transform: translate(300px, 160px); opacity: 0; } }
@keyframes pf-cur3 { 0% { opacity: 0; transform: translate(600px, 460px); } 15% { opacity: 1; } 60% { transform: translate(118px, 510px); } 66% { transform: translate(118px, 510px) scale(.85); } 72% { transform: translate(118px, 510px); opacity: 1; } 100% { transform: translate(140px, 530px); opacity: 0; } }
@keyframes pf-curm { 0% { opacity: 0; transform: translate(470px, 330px); } 15% { opacity: 1; } 60% { transform: translate(54px, 354px); } 66% { transform: translate(54px, 354px) scale(.85); } 72% { transform: translate(54px, 354px); opacity: 1; } 100% { transform: translate(70px, 372px); opacity: 0; } }
@keyframes pm-skel { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pm-press { 0% { transform: none; } 40% { transform: scale(.95); background: var(--tq-violet-700); } 100% { transform: none; background: var(--tq-violet-700); } }

.pf.play .s1-inbox { animation: pf-out .35s 1.8s both; }
.pf.play .pf-inbox li { animation: pf-in .4s calc(var(--i) * .12s + .1s) both; }
.pf.play .pf-inbox li.is-hit { animation: pf-in .4s calc(var(--i) * .12s + .1s) both, pf-hit .3s .8s forwards; }
.pf.play .pf-inbox em { animation: pf-pop .3s .9s both; }
.pf.play .s1-file { animation: pf-in .4s 1.95s both; }
.pf.play .pf-tl li { animation: pf-in .4s calc(2.25s + var(--i) * .32s) both; }
.pf.play .s1-obj { animation: pf-in .4s 2.05s both; }
.pf.play .pf-srclist li { animation: pf-in .3s calc(2.35s + var(--i) * .32s) both; }
.pf.play .pf-count { animation: pf-pop .35s 4.1s both; }
.pf.play[data-scene="1"] .pf-cursor { animation: pf-cur1 2.4s .2s both; }
.pf[data-scene="1"] .pf-ripple { left: 290px; top: 125px; }
.pf.play[data-scene="1"] .pf-ripple { animation: pf-rip .5s 1.6s both; }

.pf.play .pf-prog__bar i { animation: pf-grow 3.3s .3s linear both; }
.pf.play .pf-prog__t .a { animation: pf-hold 3.6s both; }
.pf.play .pf-prog__t .b { animation: pf-in .3s 3.6s both; }
.pf.play .pf-checks li { animation: pf-in .35s calc(.2s + var(--i) * .15s) both; }
.pf.play .pf-checks .pf-spin, .pf.play .pf-done .pf-spin { animation: pf-spin .8s linear infinite, pf-hold var(--hold) both; }
.pf.play .pf-checks li { --hold: calc(1s + var(--i) * .75s); }
.pf.play .pf-checks .pf-res, .pf.play .pf-done .pf-res { animation: pf-pop .3s var(--hold) both; }
.pf.play .pf-checks .pf-src { animation: pf-in .3s calc(var(--hold) + .05s) both; }
.pf.play .s2-foot { animation: pf-in .4s 4s both; }
.pf.play .pf-doc { animation: pf-in .4s .4s both; }
.pf.play .pf-hl mark { animation: pf-mark .8s 1.9s both; }

.pf.play .pf-banner { animation: pf-in .35s .1s both; }
.pf.play .pf-opts li { animation: pf-in .35s calc(.35s + var(--i) * .12s) both; }
.pf.play[data-scene="3"] .pf-actions { animation: pf-in .35s .8s both; }
.pf.play .s3-cost { animation: pf-in .35s .5s both; }
.pf.play .pf-meter i { animation: pf-grow 1s 1s both; }
.pf.play .pf-why li { animation: pf-in .3s calc(.8s + var(--i) * .2s) both; }
.pf.play[data-scene="3"] .pf-cursor { animation: pf-cur3 2.2s 1.4s both; }
.pf[data-scene="3"] .pf-ripple { left: 125px; top: 518px; }
.pf.play[data-scene="3"] .pf-ripple { animation: pf-rip .5s 2.8s both; }
.pf.play .s3-go { animation: pf-approve .3s 2.9s both; }
.pf.play .s3-go .a { animation: pf-hold 2.9s both; }
.pf.play .s3-go .b { animation: pf-in .25s 2.95s both; }

.pf.play .pf-okt { animation: pf-in .35s .1s both; }
.pf.play .pf-done li { --hold: calc(.9s + var(--i) * .6s); animation: pf-in .35s calc(.3s + var(--i) * .12s) both; }
.pf.play .pf-st .a { animation: pf-hold var(--hold) both; }
.pf.play .pf-st .b { animation: pf-in .25s var(--hold) both; }
.pf.play .pf-toast { animation: pf-toast .45s 3.4s both; }
.pf.play .s4-cal { animation: pf-in .35s .4s both; }
.pf.play .pf-cal .is-hit { animation: pf-pop .35s 1.4s both; }
.pf.play .pf-log li { animation: pf-in .3s calc(.9s + var(--i) * .6s) both; }

/* Ablauf: Spieler rechts (Desktop), Ansicht je Schritt (mobil) */
.hx-walk { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--tq-s5); }
.hx-player { position: sticky; top: 120px; aspect-ratio: 860 / 560; }
.hx-screen { position: absolute; inset: 0; opacity: 0; transform: translateY(10px); transition: opacity .45s var(--hx-ease), transform .55s var(--hx-ease); }
.hx-player[data-active="1"] [data-screen="1"], .hx-player[data-active="2"] [data-screen="2"],
.hx-player[data-active="3"] [data-screen="3"], .hx-player[data-active="4"] [data-screen="4"] { opacity: 1; transform: none; }
.hx-player .hx-progress { bottom: -26px; }
.hx-player[data-active="1"] .hx-progress span:nth-child(-n+1), .hx-player[data-active="2"] .hx-progress span:nth-child(-n+2),
.hx-player[data-active="3"] .hx-progress span:nth-child(-n+3), .hx-player[data-active="4"] .hx-progress span:nth-child(-n+4) { background: var(--tq-violet); }
.hx-walk__inline { display: none; }
@media (max-width: 900px) {
  .hx-walk { grid-template-columns: minmax(0, 1fr); }
  .hx-walk__inline { display: block; margin-top: var(--tq-s3); }
}

/* Oberfläche: erzeugte Ansicht */
.hx-gen > * { animation: none !important; }
.pf--mini { display: block; width: 560px; height: 400px; }
.pm-top { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--tq-line); }
.pm-top .pf-logo { width: 20px; height: 18px; margin: 0; }
.pm-top .pf-logo::after { inset: 5px 5px; }
.pm-top small { font: 500 10.5px var(--tq-mono); text-transform: uppercase; letter-spacing: .08em; }
.pm-tag { margin-left: auto; background: var(--tq-violet-100); color: var(--tq-violet-700); }
.pm-body { position: relative; height: 356px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.pm-title { font-size: 17px; font-weight: 600; color: var(--tq-ink); letter-spacing: -.01em; }
.pm-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pm-fields small { font: 10px var(--tq-mono); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.pm-sel { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 12px; border: 1px solid var(--tq-line); border-radius: 6px; font-size: 13px; color: var(--tq-ink); }
.pm-sel em { display: inline-block; white-space: nowrap; overflow: hidden; }
.pm-sel::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--tq-muted); border-bottom: 1.5px solid var(--tq-muted); transform: translateY(-2px) rotate(45deg); flex: none; }
.pm-table { margin: 0; border: 1px solid var(--tq-line); border-radius: 6px; overflow: hidden; }
.pm-table div { display: flex; justify-content: space-between; padding: 8px 12px; font-size: 13px; }
.pm-table div + div { border-top: 1px solid var(--tq-line); }
.pm-table dt { color: var(--tq-muted); }
.pm-table dd { margin: 0; font-family: var(--tq-mono); color: var(--tq-ink); }
.pm-table .is-flag { background: var(--tq-violet-50); }
.pm-table .is-flag dt, .pm-table .is-flag dd { color: var(--tq-violet-700); font-weight: 500; }
.pm-draft { border: 1px solid var(--tq-line); border-left: 3px solid var(--tq-violet); border-radius: 6px; padding: 12px 14px; font-size: 13px; color: var(--tq-ink); }
.pm-draft p { margin: 0 0 10px; }
.pm-file { display: inline-block; font: 11px var(--tq-mono); padding: 3px 7px; background: var(--tq-sand); border: 1px solid var(--tq-line); border-radius: 4px; }
.pm-basis { margin: 0; font-size: 12px; color: var(--tq-muted); }
.pm-basis b { color: var(--tq-ink); }
.pf--mini .pf-actions { left: 20px; bottom: 20px; }
.pm-skel { position: absolute; left: 0; right: 0; top: 44px; bottom: 0; padding: 18px 20px; display: grid; align-content: start; gap: 12px; background: #fff; opacity: 0; }
.pm-skel i { display: block; height: 14px; width: 55%; background: #EEEEEC; border-radius: 6px; }
.pm-skel i:nth-child(2), .pm-skel i:nth-child(3) { height: 38px; width: 100%; }
.pm-skel i:nth-child(4) { width: 70%; }
.pf--mini .pf-ripple { left: 60px; top: 362px; }
.pf--mini.play .pm-skel { animation: pm-skel .7s both; }
.pf--mini.play .pm-title { animation: pf-in .35s .5s both; }
.pf--mini.play .pm-fields > div, .pf--mini.play .pm-table > div { animation: pf-in .35s calc(.65s + var(--i) * .15s) both; }
.pf--mini.play .pm-sel em { animation: pf-type .5s calc(.9s + var(--i) * .15s) both; }
.pf--mini.play .pm-draft { animation: pf-in .35s .65s both; }
.pf--mini.play .pm-draft em { display: inline; animation: pf-in 1s .9s both; }
.pf--mini.play .pm-basis { animation: pf-in .3s 1.5s both; }
.pf--mini.play .pf-actions { animation: pf-in .3s 1.7s both; }
.pf--mini.play .pf-cursor { animation: pf-curm 1.8s 1.9s both; }
.pf--mini.play .pf-ripple { animation: pf-rip .5s 3.05s both; }
.pf--mini.play .pm-go { animation: pm-press .4s 3.1s both; }
.tq-ui__col.is-gen .tq-ui__stage { min-height: 0; }
.pf-scale--mini { box-shadow: 0 20px 40px -24px rgba(36,26,74,.4), 0 0 0 1px var(--tq-line); }

/* ==========================================================================
   Einsatzfelder – Animationen
   ========================================================================== */
.hx-card__media { aspect-ratio: 4 / 3; }
.fx { display: block; width: 100%; height: 100%; }
.fx .f-dot { fill: #fff; opacity: .06; }
.fx .f-ground { stroke: rgba(185,174,230,.35); stroke-width: 1; }
.fx .b-body, .fx .f-roof { fill: #231A4C; stroke: #5A49A6; stroke-width: 1.5; }
.fx .b-win, .fx .b-floor { fill: #3A2E72; }
.fx .f-card { fill: #fff; }
.fx .f-t { font: 600 11px var(--tq-font); fill: #0B0B0F; }
.fx .f-ts { font: 500 9.5px var(--tq-mono); fill: #4F3A9E; }
.fx .f-line { fill: #E4E2EC; }
.fx .f-chip, .fx .f-bar-bg { fill: #ECE8F8; }
.fx .f-bar { fill: #654CBF; }
.fx .f-hex { fill: #654CBF; }
.fx .f-tick { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fx .f-path { fill: none; stroke: #B9AEE6; stroke-width: 1.5; stroke-dasharray: 4 4; }
.fx .f-drop { fill: #B9AEE6; }
.fx .f-node { fill: #B9AEE6; }
.fx .f-arc { fill: none; stroke: #B9AEE6; stroke-width: 1.5; stroke-linecap: round; opacity: .2; }
.fx .f-hub { fill: #654CBF; stroke: #B9AEE6; stroke-width: 1.5; }
.fx .f-barv { fill: #654CBF; }
.fx .f-day { fill: #ECE8F8; }
.fx * { transform-box: fill-box; }

/* WEG: Zustimmungen leuchten auf, Beschluss wird gefasst */
.fx--weg .v { animation: fx-win 8s infinite; }
.fx--weg .v1 { animation-delay: .35s; } .fx--weg .v2 { animation-delay: .7s; } .fx--weg .v3 { animation-delay: 1.05s; }
.fx--weg .v4 { animation-delay: 1.4s; } .fx--weg .v5 { animation-delay: 1.75s; } .fx--weg .v6 { animation-delay: 2.1s; } .fx--weg .v7 { animation-delay: 2.45s; }
@keyframes fx-win { 0% { fill: #3A2E72; } 5%, 70% { fill: #B9AEE6; } 80%, 100% { fill: #3A2E72; } }
.fx--weg .weg-doc { animation: fx-card 8s infinite; }
.fx--weg .weg-bar { transform-origin: 0 50%; animation: fx-bar 8s infinite; }
.fx--weg .weg-stamp { transform-origin: 50% 50%; animation: fx-stamp 8s infinite; }
@keyframes fx-card { 0%, 30% { opacity: 0; transform: translateX(14px); } 38%, 86% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes fx-bar { 0%, 40% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); } }
@keyframes fx-stamp { 0%, 62% { opacity: 0; transform: scale(.3); } 68%, 86% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }

/* Miete: Schaden wird gemeldet und an den Dienstleister übergeben */
.fx--miet .b-win.hit { animation: fx-alert 6s infinite; }
@keyframes fx-alert { 0%, 100% { fill: #3A2E72; } 8%, 60% { fill: #B9AEE6; } }
.fx--miet .miet-drop { animation: fx-drop 1.5s infinite ease-in; }
@keyframes fx-drop { 0% { opacity: 0; transform: translateY(-8px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(26px); } }
.fx--miet .miet-ring { fill: none; stroke: #B9AEE6; stroke-width: 1.5; transform-origin: 50% 50%; animation: fx-ring 2s infinite; }
@keyframes fx-ring { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.8); } }
.fx--miet .miet-path { animation: fx-flow 1s linear infinite; }
@keyframes fx-flow { to { stroke-dashoffset: -16; } }
.fx--miet .miet-ticket { animation: fx-card 6s infinite; }
.fx--miet .miet-chip { transform-origin: 0 50%; animation: fx-chip 6s infinite; }
@keyframes fx-chip { 0%, 48% { opacity: 0; transform: scaleX(.4); } 55%, 86% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
.fx--miet .miet-status { fill: #B9AEE6; animation: fx-status 6s infinite; }
@keyframes fx-status { 0%, 62% { fill: #B9AEE6; } 66%, 100% { fill: #3BB273; } }

/* Gewerbe: Flächen, Indexentwicklung, Wartungstermin */
.fx--gewerbe .b-floor { animation: fx-floor 8s infinite; }
.fx--gewerbe .fl1 { animation-delay: .3s; } .fx--gewerbe .fl2 { animation-delay: .6s; } .fx--gewerbe .fl3 { animation-delay: .9s; }
.fx--gewerbe .fl4 { animation-delay: 1.2s; } .fx--gewerbe .fl5 { animation-delay: 1.5s; } .fx--gewerbe .fl6 { animation-delay: 1.8s; } .fx--gewerbe .fl7 { animation-delay: 2.1s; }
@keyframes fx-floor { 0%, 100% { fill: #3A2E72; } 6%, 40% { fill: #6F5BC8; } }
.fx--gewerbe .gw-line { stroke-dasharray: 200; stroke-dashoffset: 200; stroke-width: 2.5; stroke: #654CBF; animation: fx-draw 8s infinite; }
@keyframes fx-draw { 0%, 10% { stroke-dashoffset: 200; } 45%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.fx--gewerbe .gw-hit { animation: fx-day 8s infinite; }
@keyframes fx-day { 0%, 55% { fill: #ECE8F8; } 60%, 92% { fill: #654CBF; } 100% { fill: #ECE8F8; } }

/* Bestand: Gebäudesensorik meldet an einen gemeinsamen Kern */
.fx--bestand .f-arc { animation: fx-arc 2.4s infinite; }
.fx--bestand .a2 { animation-delay: .3s; }
.fx--bestand .s1 .f-arc { animation-delay: .6s; } .fx--bestand .s1 .a2 { animation-delay: .9s; }
.fx--bestand .s2 .f-arc { animation-delay: 1.2s; } .fx--bestand .s2 .a2 { animation-delay: 1.5s; }
.fx--bestand .s3 .f-arc { animation-delay: 1.8s; } .fx--bestand .s3 .a2 { animation-delay: 2.1s; }
@keyframes fx-arc { 0%, 100% { opacity: .15; } 30% { opacity: 1; } }
.fx--bestand .bs-link { opacity: .55; animation: fx-flow 1.2s linear infinite; }
.fx--bestand .f-hub { transform-origin: 50% 50%; animation: fx-hub 2.4s infinite; }
@keyframes fx-hub { 0%, 100% { transform: none; } 50% { transform: scale(1.12); } }
.fx--bestand .f-barv { transform-origin: 50% 100%; animation: fx-barv 6s infinite; }
.fx--bestand .bv1 { animation-delay: .2s; } .fx--bestand .bv2 { animation-delay: .4s; } .fx--bestand .bv3 { animation-delay: .6s; }
@keyframes fx-barv { 0%, 100% { transform: scaleY(.35); } 40%, 70% { transform: scaleY(1); } }

/* Nur abspielen, wenn sichtbar */
.hx-card:not(.is-in) .fx * { animation-play-state: paused; }
.s1-file { display: flex; flex-direction: column; gap: 12px; }
/* Feinschliff Einsatzfelder und erzeugte Oberfläche */
.fx .f-sky { fill: #1C1542; opacity: .9; }
.fx .f-floor { fill: #120D27; }
.fx .b-body { filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.fx .f-card { filter: drop-shadow(0 8px 18px rgba(0,0,0,.35)); }
@keyframes fx-card { 0%, 10% { opacity: 0; transform: translateX(14px); } 18%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes fx-bar { 0%, 22% { transform: scaleX(0); } 45%, 100% { transform: scaleX(1); } }
@keyframes fx-stamp { 0%, 48% { opacity: 0; transform: scale(.3); } 54%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes fx-chip { 0%, 32% { opacity: 0; transform: scaleX(.4); } 40%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes fx-status { 0%, 50% { fill: #B9AEE6; } 55%, 100% { fill: #3BB273; } }
.pf--mini { height: 380px; }
.pm-body { height: 336px; }
.pf--mini .pf-ripple { top: 342px; }
@keyframes pf-curm { 0% { opacity: 0; transform: translate(470px, 310px); } 15% { opacity: 1; } 60% { transform: translate(54px, 334px); } 66% { transform: translate(54px, 334px) scale(.85); } 72% { transform: translate(54px, 334px); opacity: 1; } 100% { transform: translate(70px, 352px); opacity: 0; } }

/* ==========================================================================
   Plattform – Schichten als isometrische Wabenplatten
   ========================================================================== */
.hx-plat { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.hx-iso { position: relative; aspect-ratio: 520 / 570; max-width: 640px; }
.js .hx-iso[data-reveal] { transform: none; }
.hx-iso__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hx-iso .pl { cursor: pointer; }
.hx-iso .lift { transition: transform .45s var(--hx-ease); }
.hx-iso .top { fill: #2A2058; stroke: #5A49A6; stroke-width: 1.2; transition: fill .35s ease, stroke .35s ease; }
.hx-iso .s { stroke: #5A49A6; stroke-width: 1; transition: fill .35s ease; }
.hx-iso .s-r { fill: #221A4A; } .hx-iso .s-f { fill: #1B143C; } .hx-iso .s-l { fill: #150F30; }
.hx-iso .ring { fill: none; stroke: rgba(185,174,230,.28); stroke-width: 1; }
.hx-iso .glow { fill: none; stroke: #B9AEE6; stroke-width: 2; opacity: 0; }
.hx-iso .lead { stroke: rgba(185,174,230,.45); stroke-width: 1; }
.hx-iso .pl--core .top { fill: transparent; stroke-dasharray: 5 5; stroke: #8E84B8; }
.hx-iso .pl--core .s { fill: transparent; stroke: none; }
.hx-iso .pl--core .ring { stroke-dasharray: 3 5; }
.hx-iso .pl:hover .top { stroke: #B9AEE6; }

/* aktive Schicht: violett und angehoben */
.hx-iso[data-active="0"] [data-layer="0"] .lift, .hx-iso[data-active="1"] [data-layer="1"] .lift, .hx-iso[data-active="2"] [data-layer="2"] .lift,
.hx-iso[data-active="3"] [data-layer="3"] .lift, .hx-iso[data-active="4"] [data-layer="4"] .lift, .hx-iso[data-active="5"] [data-layer="5"] .lift { transform: translateY(-12px); }
.hx-iso[data-active="0"] [data-layer="0"] .top, .hx-iso[data-active="1"] [data-layer="1"] .top, .hx-iso[data-active="2"] [data-layer="2"] .top,
.hx-iso[data-active="3"] [data-layer="3"] .top, .hx-iso[data-active="4"] [data-layer="4"] .top, .hx-iso[data-active="5"] [data-layer="5"] .top { fill: var(--tq-violet); stroke: #C9BEF2; }
.hx-iso[data-active="0"] [data-layer="0"] .s, .hx-iso[data-active="1"] [data-layer="1"] .s, .hx-iso[data-active="2"] [data-layer="2"] .s,
.hx-iso[data-active="3"] [data-layer="3"] .s, .hx-iso[data-active="4"] [data-layer="4"] .s { fill: #4F3A9E; }
.hx-iso[data-active="0"] [data-layer="0"] .ring, .hx-iso[data-active="1"] [data-layer="1"] .ring, .hx-iso[data-active="2"] [data-layer="2"] .ring,
.hx-iso[data-active="3"] [data-layer="3"] .ring, .hx-iso[data-active="4"] [data-layer="4"] .ring, .hx-iso[data-active="5"] [data-layer="5"] .ring { stroke: rgba(255,255,255,.55); }
.hx-iso[data-active="5"] [data-layer="5"] .top { fill: rgba(101,76,191,.55); stroke-dasharray: none; }

/* Aufbau beim Hineinscrollen: Platten setzen sich von unten nach oben auf */
.js .hx-iso:not(.is-in) .drop { opacity: 0; }
.hx-iso.is-in .drop { animation: pl-drop .7s var(--hx-ease) calc(var(--o) * .14s + .1s) both; }
@keyframes pl-drop { from { opacity: 0; transform: translateY(-46px); } to { opacity: 1; transform: none; } }
/* Impuls läuft danach fortlaufend vom Kern nach oben */
.hx-iso.is-in .glow { animation: pl-pulse 4.2s ease-in-out calc(var(--o) * .32s + 1.2s) infinite; }
@keyframes pl-pulse { 0% { opacity: 0; } 8% { opacity: .9; } 22%, 100% { opacity: 0; } }

/* Beschriftungen an den Platten (zugleich die Bedienelemente) */
.hx-iso__lbl.hx-layer { position: absolute; transform: translateY(-50%); width: auto; display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .8rem; background: transparent; border: 1px solid transparent; border-radius: var(--tq-radius); font-size: 1rem; white-space: nowrap; }
.hx-iso__lbl.hx-layer:hover { border-color: rgba(185,174,230,.5); transform: translateY(-50%); }
.hx-iso__lbl.hx-layer.is-on { background: var(--tq-violet); border-color: var(--tq-violet); transform: translateY(calc(-50% - 12px * var(--lift, 1))); }
.hx-iso__lbl .hx-layer__num { font-size: .75rem; }
.hx-iso__lbl[data-layer="5"] .hx-layer__name { color: #B9AEE6; }
.hx-iso__lbl[data-layer="5"].is-on .hx-layer__name { color: #fff; }

@media (max-width: 900px) {
  .hx-plat { grid-template-columns: minmax(0, 1fr); }
  .hx-iso { max-width: 560px; width: 100%; }
}
@media (max-width: 560px) {
  .hx-iso__lbl.hx-layer { font-size: .8125rem; padding: .3rem .5rem; gap: .4rem; }
  .hx-iso__lbl .hx-layer__num { font-size: .6875rem; }
}
@media (prefers-reduced-motion: reduce) { .js .hx-iso:not(.is-in) .drop { opacity: 1; } }

/* Explosionsansicht: Platten oberhalb der gewählten Schicht weichen nach oben aus */
.hx-iso .pl { transition: transform .5s var(--hx-ease); }
.hx-iso__lbl.hx-layer { transition: margin-top .5s var(--hx-ease), background-color .25s ease, border-color .25s ease, color .25s ease; }
.hx-iso[data-active="1"] .pl[data-layer="0"],
.hx-iso[data-active="2"] .pl[data-layer="0"],
.hx-iso[data-active="2"] .pl[data-layer="1"],
.hx-iso[data-active="3"] .pl[data-layer="0"],
.hx-iso[data-active="3"] .pl[data-layer="1"],
.hx-iso[data-active="3"] .pl[data-layer="2"],
.hx-iso[data-active="4"] .pl[data-layer="0"],
.hx-iso[data-active="4"] .pl[data-layer="1"],
.hx-iso[data-active="4"] .pl[data-layer="2"],
.hx-iso[data-active="4"] .pl[data-layer="3"],
.hx-iso[data-active="5"] .pl[data-layer="0"],
.hx-iso[data-active="5"] .pl[data-layer="1"],
.hx-iso[data-active="5"] .pl[data-layer="2"],
.hx-iso[data-active="5"] .pl[data-layer="3"],
.hx-iso[data-active="5"] .pl[data-layer="4"] { transform: translateY(-36px); }
.hx-iso[data-active="1"] .hx-iso__lbl[data-layer="0"],
.hx-iso[data-active="2"] .hx-iso__lbl[data-layer="0"],
.hx-iso[data-active="2"] .hx-iso__lbl[data-layer="1"],
.hx-iso[data-active="3"] .hx-iso__lbl[data-layer="0"],
.hx-iso[data-active="3"] .hx-iso__lbl[data-layer="1"],
.hx-iso[data-active="3"] .hx-iso__lbl[data-layer="2"],
.hx-iso[data-active="4"] .hx-iso__lbl[data-layer="0"],
.hx-iso[data-active="4"] .hx-iso__lbl[data-layer="1"],
.hx-iso[data-active="4"] .hx-iso__lbl[data-layer="2"],
.hx-iso[data-active="4"] .hx-iso__lbl[data-layer="3"],
.hx-iso[data-active="5"] .hx-iso__lbl[data-layer="0"],
.hx-iso[data-active="5"] .hx-iso__lbl[data-layer="1"],
.hx-iso[data-active="5"] .hx-iso__lbl[data-layer="2"],
.hx-iso[data-active="5"] .hx-iso__lbl[data-layer="3"],
.hx-iso[data-active="5"] .hx-iso__lbl[data-layer="4"] { margin-top: calc(-36px * var(--iso-s, 1)); }
.hx-iso { --iso-s: 1; }
.hx-iso__lbl.hx-layer.is-on { transform: translateY(calc(-50% - 12px * var(--iso-s, 1))); }

/* TEQMINDS-Symbol (wie Favicon) in den Plattform-Ansichten */
img.pf-logo { width: 30px; height: 30px; background: none; clip-path: none; margin-bottom: 12px; display: block; }
.pm-top img.pf-logo { width: 22px; height: 22px; margin: 0; }

/* ==========================================================================
   v3: großflächige Arbeitsfläche (1240 × 780) mit Vorgangsliste und Kamerafahrt
   ========================================================================== */
.pf { width: 1240px; height: 780px; grid-template-columns: 64px 280px 556px 340px; grid-template-rows: 56px 724px; }
.pf-rail { grid-column: 1; grid-row: 1 / 3; gap: 4px; padding: 14px 0; }
.pf-rail__sp { flex: 1; }
img.pf-logo { margin-bottom: 14px; }
.pf-top { grid-column: 2 / 5; }
.pf-list { grid-column: 2; grid-row: 2; border-right: 1px solid var(--tq-line); background: #FCFCFB; overflow: hidden; display: flex; flex-direction: column; }
.pf-main { grid-column: 3; grid-row: 2; }
.pf-side { grid-column: 4; grid-row: 2; }
.pf-list__h { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px; }
.pf-list__h b { font-size: 15px; font-weight: 600; }
.pf-plus { width: 26px; height: 26px; border: 1px solid var(--tq-line); border-radius: 6px; display: grid; place-items: center; color: var(--tq-violet); font-size: 16px; line-height: 1; }
.pf-filter { display: flex; gap: 6px; padding: 0 16px 12px; border-bottom: 1px solid var(--tq-line); }
.pf-filter span { font-size: 11px; padding: 5px 9px; border-radius: 12px; background: var(--tq-sand); color: var(--tq-muted); white-space: nowrap; }
.pf-filter .is-on { background: var(--tq-violet-100); color: var(--tq-violet-700); font-weight: 500; }
.pf-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 4px; padding: 12px 16px; border-bottom: 1px solid var(--tq-line); border-left: 3px solid transparent; }
.pf-list li > div { grid-row: 1 / 3; min-width: 0; }
.pf-list li b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-list li small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-list li.is-on { background: var(--tq-violet-50); border-left-color: var(--tq-violet); }
.pf-time { font: 10px var(--tq-mono); color: var(--tq-muted); justify-self: end; }
.pf-tag { font: 500 9.5px/1 var(--tq-mono); text-transform: uppercase; letter-spacing: .04em; padding: 4px 5px; border-radius: 3px; background: var(--tq-sand); color: var(--tq-muted); justify-self: end; }
.pf-tag.t0 { background: var(--tq-violet); color: #fff; }
.pf-tag.t1 { background: #FBE7E5; color: var(--tq-error); }

.pf--narrow { width: 556px; height: 560px; grid-template-columns: 0 0 556px 0; grid-template-rows: 56px 504px; }
.pf--narrow .pf-list { display: none; }
.pf--narrow .pf-cursor { margin-left: -344px; }
.pf--narrow .pf-ripple { margin-left: -364px; }

.pf[data-scene="3"] .pf-actions { top: 300px; bottom: auto; }
.pf-toast { top: 330px; bottom: auto; }
.pf[data-scene="1"] .pf-ripple { left: 544px; top: 133px; }
.pf[data-scene="3"] .pf-ripple { left: 418px; top: 374px; }
@keyframes pf-cur1 { 0% { opacity: 0; transform: translate(1000px, 700px); } 15% { opacity: 1; } 55% { transform: translate(534px, 123px); } 60% { transform: translate(534px, 123px) scale(.85); } 66% { transform: translate(534px, 123px); opacity: 1; } 100% { transform: translate(552px, 165px); opacity: 0; } }
@keyframes pf-cur3 { 0% { opacity: 0; transform: translate(900px, 640px); } 15% { opacity: 1; } 60% { transform: translate(410px, 366px); } 66% { transform: translate(410px, 366px) scale(.85); } 72% { transform: translate(410px, 366px); opacity: 1; } 100% { transform: translate(430px, 390px); opacity: 0; } }

/* Kamera: zoomt während der Szene auf den relevanten Bereich und wieder heraus */
.pf-cam { position: absolute; inset: 0; transform-origin: var(--fx, 50%) var(--fy, 30%); }
.pf-cam[data-scene="1"] { --fx: 50%; --fy: 20%; }
.pf-cam[data-scene="2"] { --fx: 62%; --fy: 26%; }
.pf-cam[data-scene="3"] { --fx: 42%; --fy: 34%; }
.pf-cam[data-scene="4"] { --fx: 56%; --fy: 30%; }
.pf-cam.play { animation: pf-zoom 9.5s cubic-bezier(.45, 0, .2, 1) both; will-change: transform; }
@keyframes pf-zoom { 0%, 6% { transform: none; } 18%, 74% { transform: scale(1.45); } 88%, 100% { transform: none; } }
.pf-scale--narrow .pf-cam.play { animation: none; }

/* Oberfläche: Arbeitsfläche 720 × 440 mit Navigationsleiste */
.pf--mini { display: grid; width: 720px; height: 440px; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: 44px 396px; }
.pf--mini .pf-rail { padding: 10px 0; gap: 2px; }
.pf--mini .pf-rail i { width: 32px; height: 32px; }
.pf--mini .pf-rail svg { width: 16px; height: 16px; }
.pf--mini img.pf-logo { width: 26px; height: 26px; margin-bottom: 8px; }
.pf--mini .pf-avatar { width: 24px; height: 24px; line-height: 24px; font-size: 10px; }
.pm-top { grid-column: 2; grid-row: 1; }
.pm-crumb { font-size: 12.5px; color: var(--tq-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pm-body { grid-column: 2; grid-row: 2; height: 396px; }
.pm-skel { left: 52px; }
.pf--mini .pf-ripple { left: 112px; top: 402px; }
@keyframes pf-curm { 0% { opacity: 0; transform: translate(620px, 360px); } 15% { opacity: 1; } 60% { transform: translate(106px, 394px); } 66% { transform: translate(106px, 394px) scale(.85); } 72% { transform: translate(106px, 394px); opacity: 1; } 100% { transform: translate(124px, 412px); opacity: 0; } }
.pf--mini.pf--mini-n { width: 400px; grid-template-columns: 0 minmax(0, 1fr); }
.pf--mini-n .pf-rail, .pf--mini-n .pm-crumb { display: none; }
.pf--mini-n .pm-skel { left: 0; }
.pf--mini-n .pf-cursor { margin-left: -52px; }
.pf--mini-n .pf-ripple { margin-left: -72px; }

/* ==========================================================================
   Performance beim Scrollen
   ========================================================================== */
.tq-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,.97); }
.pf-scale { contain: layout paint; }
.fx .b-body, .fx .f-card { filter: none; }
.hx-card:not(.is-vis) .fx * { animation-play-state: paused; }
.hx-iso:not(.is-vis) .glow { animation-play-state: paused; }
.pf.play .pf-checks .pf-spin, .pf.play .pf-done .pf-spin { animation: pf-spin .8s linear 5, pf-hold var(--hold) both; }
.hx-player { aspect-ratio: 1240 / 780; top: 130px; }

/* ==========================================================================
   04 Oberfläche: gleicher Maßstab wie im Ablauf, fester Zoom auf den Vorgang
   ========================================================================== */
.pf-cam--static { transform: scale(1.55); transform-origin: 50% 7%; }
.pf-scale--mini.is-narrow .pf-cam--static { transform: none; }
.pf--mini2 .pf-main { gap: 14px; }
.pm-kick { display: flex; align-items: center; gap: 10px; }
.pm-kick .pm-tag { margin-left: 0; }
.pf--mini2 .pm-title { font-size: 17px; margin-top: -4px; }
.pf--mini2 .pf-actions { top: 268px; bottom: auto; }
.pf--mini2 .pm-skel { position: absolute; inset: 0; left: 0; top: 0; padding: 22px 24px; }
.pf--mini2 .pf-ripple { left: 408px; top: 342px; }
.pf--mini2.pf--narrow .pf-cursor { margin-left: -344px; }
.pf--mini2.pf--narrow .pf-ripple { margin-left: -364px; }
@keyframes pf-curm2 { 0% { opacity: 0; transform: translate(760px, 520px); } 15% { opacity: 1; } 60% { transform: translate(400px, 334px); } 66% { transform: translate(400px, 334px) scale(.85); } 72% { transform: translate(400px, 334px); opacity: 1; } 100% { transform: translate(418px, 352px); opacity: 0; } }
.pf--mini2.play .pm-skel { animation: pm-skel .7s both; }
.pf--mini2.play .pm-kick, .pf--mini2.play .pm-title { animation: pf-in .35s .5s both; }
.pf--mini2.play .pm-fields > div, .pf--mini2.play .pm-table > div { animation: pf-in .35s calc(.65s + var(--i) * .15s) both; }
.pf--mini2.play .pm-sel em { animation: pf-type .5s calc(.9s + var(--i) * .15s) both; }
.pf--mini2.play .pm-draft { animation: pf-in .35s .65s both; }
.pf--mini2.play .pm-draft em { display: inline; animation: pf-in 1s .9s both; }
.pf--mini2.play .pm-basis { animation: pf-in .3s 1.5s both; }
.pf--mini2.play .pf-actions { animation: pf-in .3s 1.7s both; }
.pf--mini2.play .pm-src li { animation: pf-in .3s calc(1.5s + var(--i) * .2s) both; }
.pf--mini2.play .pf-cursor { animation: pf-curm2 1.8s 1.9s both; }
.pf--mini2.play .pf-ripple { animation: pf-rip .5s 3.05s both; }
.pf--mini2.play .pm-go { animation: pm-press .4s 3.1s both; }
.pf--mini2 .pf-actions { top: 304px; }
.pf--mini2 .pf-ripple { top: 378px; }
@keyframes pf-curm2 { 0% { opacity: 0; transform: translate(760px, 540px); } 15% { opacity: 1; } 60% { transform: translate(400px, 370px); } 66% { transform: translate(400px, 370px) scale(.85); } 72% { transform: translate(400px, 370px); opacity: 1; } 100% { transform: translate(418px, 388px); opacity: 0; } }
.pf--mini2.pf--narrow { height: 460px; grid-template-rows: 56px 404px; }

/* ==========================================================================
   04 Oberfläche v2: je Vorgang eigene, erzeugte Arbeitsansicht
   ========================================================================== */
.pf-cam--static { transform: scale(1.4); transform-origin: 84.7% 8.1%; }
.pf--mini2 .pf-main.pg { grid-column: 3 / 5; padding: 24px 72px 0 28px; gap: 10px; background: #FBFBFA; }
.pf--mini2 .pm-title { font-size: 22px; letter-spacing: -.02em; margin-top: 0; }
.pg-grid { position: absolute; left: 28px; right: 72px; top: 96px; height: 304px; display: grid; gap: 16px; }
.pg-card { position: relative; background: #fff; border: 1px solid var(--tq-line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; min-width: 0; box-shadow: 0 8px 20px -16px rgba(36,26,74,.35); }
.pg-k { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 500 10px/1.2 var(--tq-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tq-muted); white-space: nowrap; }
.pg-k > span { letter-spacing: .04em; }
.pg-av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--tq-violet-100); color: var(--tq-violet-700); font-size: 11.5px; font-weight: 600; }
.pg-basis { position: absolute; left: 28px; right: 72px; top: 414px; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.pg-basis b { font: 500 10px var(--tq-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tq-muted); margin-right: 4px; }
.pg-basis span { font-size: 11.5px; color: var(--tq-violet-700); background: var(--tq-violet-50); border: 1px solid #DDD5F5; padding: 4px 8px; border-radius: 4px; }
.pf--mini2 .pf-actions { top: 452px; left: 28px; }
.pm-go .b { opacity: 0; }
.pg-toast { top: 20px; right: 72px; bottom: auto; opacity: 0; }

/* Schadensmeldung */
.pg--damage .pg-grid { grid-template-columns: 210px 236px minmax(0, 1fr); }
.pg-pic { position: relative; height: 82px; border-radius: 6px; overflow: hidden; flex: none; }
.pg-pic svg { width: 100%; height: 100%; display: block; }
.pg-pic small { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; font-size: 10px; color: #fff; background: linear-gradient(transparent, rgba(11,11,15,.55)); }
.pg-quote { margin: 0; font-size: 12px; line-height: 1.4; color: var(--tq-ink); }
.pg-stain { transform-box: fill-box; transform-origin: center; }
.pg-drop { opacity: 0; }
.pg-puddle { transform-box: fill-box; transform-origin: center; }
.pg-sec__svg { width: 100%; height: auto; display: block; }
.pg-sec__svg text { font: 9.5px var(--tq-font); fill: var(--tq-muted); }
.pg-floor { fill: #fff; stroke: #D9D6DE; stroke-width: 1; }
.pg-roof { fill: none; stroke: #B9B4C7; stroke-width: 1.5; }
.pg-bath { fill: #F1EEF9; }
.pg-riser { stroke: #DCE5F5; stroke-width: 5; stroke-linecap: round; }
.pg-flow { stroke: #4A7BD0; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 5 9; opacity: 0; }
.pg-src { fill: none; stroke: var(--tq-violet); stroke-width: 2; transform-box: fill-box; transform-origin: center; opacity: 0; }
.pg-src2 { fill: var(--tq-violet); opacity: 0; }
.pg-pin { opacity: 0; transform-box: fill-box; transform-origin: center; }
.pg-pin circle { fill: var(--tq-error); }
.pg-pin text { fill: #fff !important; font: 700 12px var(--tq-font) !important; text-anchor: middle; }
.pg-cause { margin: auto 0 0; font-size: 12px; font-weight: 500; color: var(--tq-violet-700); }
.pg-firms ul { display: grid; gap: 8px; }
.pg-firms li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--tq-line); border-radius: 8px; }
.pg-firms li b { font-size: 13px; }
.pg-eta { text-align: right; }
.pg-eta b { font: 500 12px var(--tq-mono); }
.pg-bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--tq-sand); overflow: hidden; }
.pg-bar i { display: block; height: 100%; border-radius: 3px; background: #B7ABE0; transform-origin: 0 50%; }
.pg-firms li.is-sug .pg-bar i { background: var(--tq-violet); }
.pg-badge { position: absolute; top: -1px; right: -1px; font: 500 9.5px/1 var(--tq-mono); text-transform: uppercase; letter-spacing: .05em; background: var(--tq-violet); color: #fff; padding: 5px 7px; border-radius: 0 8px 0 6px; opacity: 0; }

/* Rechnung */
.pg--invoice .pg-grid { grid-template-columns: 300px 72px minmax(0, 1fr); gap: 0; }
.pg-doc, .pg-match { padding: 0; gap: 0; }
.pg-doc__h, .pg-match > .pg-k { height: 62px; padding: 14px 16px 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; }
.pg-match > .pg-k { padding-top: 16px; }
.pg-doc__h b { font-size: 14px; font-weight: 600; }
.pg-doc__cols { height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font: 500 9.5px var(--tq-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--tq-muted); border-top: 1px solid var(--tq-line); border-bottom: 1px solid var(--tq-line); background: #FAFAF9; }
.pg-match .pg-doc__cols { padding-right: 48px; }
.pg-doc ul li, .pg-match ul li { height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid #F0EFEC; font-size: 12.5px; }
.pg-doc li span, .pg-match li span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-doc li b, .pg-match li b { font: 500 12px var(--tq-mono); }
.pg-doc__sum { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; font-size: 12.5px; }
.pg-doc__sum b { font: 600 13px var(--tq-mono); }
.pg-scan { position: absolute; left: 0; right: 0; top: 96px; height: 34px; background: linear-gradient(90deg, transparent, rgba(101,76,191,.16) 30%, rgba(101,76,191,.16) 70%, transparent); border-bottom: 2px solid var(--tq-violet); opacity: 0; }
.pg-links { width: 72px; height: 304px; overflow: visible; }
.pg-link { fill: none; stroke: #A797DC; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pg-link.is-flag { stroke: var(--tq-error); }
.pg-match li i { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #E3F1EA; color: var(--tq-ok); }
.pg-match li i svg { width: 12px; height: 12px; }
.pg-match li.is-flag { color: var(--tq-error); background: #FDF3F2; }
.pg-match li.is-flag span { font-style: italic; }
.pg-match li.is-flag i { background: #FBE7E5; color: var(--tq-error); }
.pg-sums { display: grid; gap: 5px; padding: 9px 16px 0; }
.pg-sums > div { display: grid; grid-template-columns: 64px minmax(0, 1fr) 76px; align-items: center; gap: 10px; font-size: 11.5px; }
.pg-sums b { font: 500 11.5px var(--tq-mono); text-align: right; }
.pg-sbar { height: 8px; border-radius: 4px; background: var(--tq-sand); overflow: hidden; }
.pg-sbar i { display: block; height: 100%; background: #B7ABE0; border-radius: 4px; transform-origin: 0 50%; }
.pg-sums > div:nth-child(2) .pg-sbar i { background: linear-gradient(90deg, var(--tq-violet) 0 92%, var(--tq-error) 92%); }
.pg-diff { display: flex !important; justify-content: space-between; color: var(--tq-error); font-weight: 600; }
.pg-diff b { font-size: 13px; color: var(--tq-error); }

/* Mieteranfrage */
.pg--request .pg-grid { grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: 214px 74px; }
.pg-tl { grid-column: 1 / -1; }
.pg-mail { gap: 6px; padding: 12px 14px; }
.pg-mail__h { display: flex; align-items: center; gap: 10px; }
.pg-mail__h b { font-size: 12.5px; }
.pg-mail__h small { font-size: 10.5px; }
.pg-mail__s { font-size: 13px; font-weight: 600 !important; margin-top: 2px; }
.pg-mail p { margin: 0; font-size: 12px; line-height: 1.4; }
.pg-det { display: grid; gap: 4px; }
.pg-det li { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--tq-violet-700); background: var(--tq-violet-50); padding: 3px 8px; border-radius: 4px; }
.pg-det svg { width: 12px; height: 12px; flex: none; }
.pg-comp__h { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--tq-muted); }
.pg-ch { font: 500 10px var(--tq-mono); text-transform: uppercase; letter-spacing: .05em; padding: 4px 7px; border-radius: 4px; background: var(--tq-sand); }
.pg-seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); height: 30px; padding: 3px; border-radius: 7px; background: var(--tq-sand); font-size: 12px; }
.pg-seg span { position: relative; z-index: 1; display: grid; place-items: center; color: var(--tq-muted); }
.pg-seg i { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc((100% - 6px) / 3); border-radius: 5px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.pg-text { margin: 0; flex: 1; font-size: 13px; line-height: 1.5; color: var(--tq-ink); padding: 8px 10px; border: 1px solid var(--tq-line); border-left: 3px solid var(--tq-violet); border-radius: 6px; }
.pg-text span { opacity: 0; }
.pg-caret { display: inline-block; width: 1.5px; height: 14px; background: var(--tq-violet); vertical-align: -2px; opacity: 0; }
.pg-att { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--tq-line); border-radius: 6px; opacity: 0; }
.pg-att b { font-size: 12px; }
.pg-att small { font-size: 10.5px; }
.pg-att > svg { width: 16px; height: 16px; margin-left: auto; color: var(--tq-muted); }
.pg-pdf { flex: none; width: 28px; height: 32px; border-radius: 3px; background: var(--tq-error); color: #fff; font: 700 8.5px/32px var(--tq-font); text-align: center; }
.pg-tl { padding: 12px 16px; }
.pg-tl ol { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.pg-tl__line { position: absolute; left: 7px; right: 25%; top: 7px; height: 2px; background: var(--tq-line); }
.pg-tl__line b { position: absolute; inset: 0; width: 42%; background: var(--tq-violet); transform-origin: 0 50%; }
.pg-tl li { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 8px; align-items: start; }
.pg-tl li b { font-size: 12px; line-height: 16px; }
.pg-tl li small { grid-column: 2; font-size: 10.5px; }
.pg-node { grid-row: 1 / 3; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #C9C6D3; display: grid; place-items: center; }
.pg-node svg { width: 10px; height: 10px; }
.pg-tl .is-ok .pg-node { background: var(--tq-ok); border-color: var(--tq-ok); color: #fff; }
.pg-tl .is-run .pg-node { border-color: var(--tq-violet); background: var(--tq-violet-100); }
.pg-tl .is-end .pg-node { border-color: var(--tq-error); }
.pg-tl .is-end b { color: var(--tq-error); }

/* Heizungsstörung */
.pg--heating .pg-grid { grid-template-columns: minmax(0, 1fr) 250px; grid-template-rows: 200px 88px; }
.pg-units { grid-column: 2; grid-row: 1 / 3; }
.pg-live { display: flex; align-items: center; gap: 6px; color: var(--tq-error); }
.pg-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--tq-error); }
.pg-val { display: flex; align-items: baseline; gap: 14px; }
.pg-val b { font-size: 26px; font-weight: 600 !important; letter-spacing: -.03em; color: var(--tq-error); line-height: 1; }
.pg-val span { font-size: 12px; color: var(--tq-muted); }
.pg-warn { margin-left: auto; font: 500 10px/1 var(--tq-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--tq-error); background: #FBE7E5; padding: 5px 7px; border-radius: 4px; opacity: 0; }
.pg-chart__svg { width: 100%; height: 96px; display: block; overflow: visible; }
.pg-gl { position: static; fill: none; stroke: #EFEDE9; stroke-width: 1; }
.pg-band { fill: rgba(31,122,77,.1); }
.pg-line { fill: none; stroke: var(--tq-violet); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.pg-below { fill: rgba(197,48,48,.13); opacity: 0; }
.pg-cross { stroke: var(--tq-error); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; vector-effect: non-scaling-stroke; }
.pg-now { fill: var(--tq-error); opacity: 0; }
.pg-now2 { fill: rgba(197,48,48,.25); opacity: 0; transform-box: fill-box; transform-origin: center; }
.pg-ticks { display: flex; justify-content: space-between; font: 10px var(--tq-mono); color: var(--tq-muted); }
.pg-bld { position: relative; padding: 0 8px; }
.pg-bld__roof { display: block; height: 14px; margin: 0 -4px; background: #DCD8E4; clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.pg-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px; background: #EFEDF3; border-radius: 0 0 4px 4px; }
.pg-cells span { position: relative; height: 27px; border-radius: 3px; display: grid; place-items: center; font: 500 11px var(--tq-mono); color: var(--tq-ink); background: #F4F3F1; }
.pg-cells .is-call i { position: absolute; right: -5px; top: -6px; width: 17px; height: 17px; border-radius: 50%; background: var(--tq-error); color: #fff; display: grid; place-items: center; opacity: 0; }
.pg-cells .is-call svg { width: 10px; height: 10px; }
.pg-legend { display: flex; align-items: center; gap: 10px; font: 10px var(--tq-mono); color: var(--tq-muted); margin-top: auto; }
.pg-legend span { display: flex; align-items: center; gap: 4px; }
.pg-legend i { width: 10px; height: 10px; border-radius: 2px; }
.pg-legend .c0 { background: #F6DFC6; } .pg-legend .c3 { background: #A9C3EC; }
.pg-legend em { margin-left: auto; display: flex; align-items: center; gap: 4px; color: var(--tq-error); }
.pg-legend em svg { width: 11px; height: 11px; }
.pg-sla { flex-direction: row; align-items: center; gap: 14px; }
.pg-sla b { font-size: 13.5px; font-weight: 600 !important; }
.pg-sla small { font-size: 11.5px; }
.pg-sla .pg-k { margin-bottom: 4px; }
.pg-ring { width: 58px; height: 58px; flex: none; transform: rotate(-90deg); }
.pg-ring circle { fill: none; stroke: var(--tq-sand); stroke-width: 6; }
.pg-ring .pg-ring__v { stroke: var(--tq-violet); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pg-ring__t { position: absolute; left: 14px; top: 50%; width: 58px; transform: translateY(-50%); text-align: center; font-size: 12px !important; }

/* Abspielen */
@keyframes pg-pop { 0% { opacity: 0; transform: translateY(14px) scale(.97); } 100% { opacity: 1; transform: none; } }
@keyframes pg-draw { to { stroke-dashoffset: 0; } }
@keyframes pg-fade { to { opacity: 1; } }
@keyframes pg-grow { from { transform: scale(0); } to { transform: none; } }
@keyframes pg-growx { from { transform: scaleX(0); } }
@keyframes pg-pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes pg-dropf { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(30px); } }
@keyframes pg-flowa { to { stroke-dashoffset: -28; } }
@keyframes pg-wet { to { fill: rgba(74,123,208,.22); } }
@keyframes pg-sug { to { border-color: var(--tq-violet); background: var(--tq-violet-50); box-shadow: 0 0 0 3px rgba(101,76,191,.12); } }
@keyframes pg-scan { 0% { opacity: 1; transform: translateY(0); } 90% { opacity: 1; transform: translateY(102px); } 100% { opacity: 0; transform: translateY(102px); } }
@keyframes pg-flag { to { background: #FBE7E5; color: var(--tq-error); } }
@keyframes pg-seg { to { transform: translateX(100%); } }
@keyframes pg-segc { to { color: var(--tq-ink); font-weight: 500; } }
@keyframes pg-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes pg-fly { 0% { opacity: 0; transform: translateX(-60px) scale(.9); } 100% { opacity: 1; transform: none; } }
@keyframes pg-cold-1 { from { background: #F4F3F1; } to { background: #EEE6DA; } }
@keyframes pg-cold-0 { from { background: #F4F3F1; } to { background: #F6DFC6; } }
@keyframes pg-cold-2 { from { background: #F4F3F1; } to { background: #CFDDF3; } }
@keyframes pg-cold-3 { from { background: #F4F3F1; } to { background: #A9C3EC; } }
@keyframes pg-done { 0%, 100% { background: var(--tq-ok); border-color: var(--tq-ok); } }
@keyframes pg-curm { 0% { opacity: 0; transform: translate(1100px, 700px); } 15% { opacity: 1; } 60% { transform: translate(430px, 522px); } 66% { transform: translate(430px, 522px) scale(.85); } 72% { transform: translate(430px, 522px); opacity: 1; } 100% { transform: translate(448px, 540px); opacity: 0; } }

.pf--mini2 .pg ~ .pf-ripple, .pf--mini2 .pf-ripple { left: 438px; top: 530px; }
.pf--mini2.play .pg-card { animation: pg-pop .5s calc(.6s + var(--i) * .18s) cubic-bezier(.2, .7, .2, 1) both; }
.pf--mini2.play .pg-basis span { animation: pf-in .3s calc(2.6s + var(--i) * .1s) both; }
.pf--mini2.play .pg-basis b { animation: pf-in .3s 2.5s both; }
.pf--mini2.play .pf-actions { animation: pf-in .35s 2.9s both; }
.pf--mini2.play .pf-cursor { animation: pg-curm 1.8s 3.1s both; }
.pf--mini2.play .pf-ripple { animation: pf-rip .5s 4.2s both; }
.pf--mini2.play .pm-go { animation: pm-press .35s 4.2s both, pg-done .1s 4.5s both; }
.pf--mini2.play .pm-go .a { animation: pf-out .15s 4.5s both; }
.pf--mini2.play .pm-go .b { animation: pf-in .25s 4.55s both; }
.pf--mini2.play .pg-toast { animation: pf-toast .4s 4.7s both; }

/* Schaden */
.pf--mini2.play .pg-stain { animation: pg-grow 1.4s .9s cubic-bezier(.2, .7, .2, 1) both; }
.pf--mini2.play .pg-puddle { animation: pg-grow 1.4s 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.pf--mini2.play .pg-drop { animation: pg-dropf 1.3s 1.6s ease-in infinite; }
.pf--mini2.play .pg-drop--b { animation-delay: 2.2s; }
.pf--mini2.play .pg-bath.is-hit { animation: pg-wet .6s calc(1.3s + var(--i) * .2s) both; }
.pf--mini2.play .pg-flow { animation: pg-fade .4s 1.6s both, pg-flowa .9s 1.6s linear infinite; }
.pf--mini2.play .pg-pin { animation: pf-pop .35s calc(1.4s + var(--i) * .25s) cubic-bezier(.3, 1.6, .5, 1) both; }
.pf--mini2.play .pg-src2 { animation: pg-fade .3s 2s both; }
.pf--mini2.play .pg-src { animation: pg-pulse 1.6s 2s ease-out infinite; }
.pf--mini2.play .pg-cause { animation: pf-in .35s 2.1s both; }
.pf--mini2.play .pg-firms li { animation: pf-in .35s calc(1.3s + var(--i) * .15s) both; }
.pf--mini2.play .pg-firms .pg-bar i { animation: pg-growx .8s calc(1.5s + var(--i) * .15s) cubic-bezier(.2, .7, .2, 1) both; }
.pf--mini2.play .pg-firms li.is-sug { animation: pf-in .35s 1.3s both, pg-sug .4s 2.4s both; }
.pf--mini2.play .pg-badge { animation: pf-pop .3s 2.5s both; }

/* Rechnung */
.pf--mini2.play .pg-doc li, .pf--mini2.play .pg-match li { animation: pf-in .25s calc(1s + var(--i) * .25s) both; }
.pf--mini2.play .pg-scan { animation: pg-scan 1.1s .95s linear both; }
.pf--mini2.play .pg-doc li.is-flag { animation: pf-in .25s 1.75s both, pg-flag .3s 2.1s both; }
.pf--mini2.play .pg-link { animation: pg-draw .45s calc(1.15s + var(--i) * .25s) ease-out both; }
.pf--mini2.play .pg-match li { animation-delay: calc(1.35s + var(--i) * .25s); }
.pf--mini2.play .pg-sums > div { animation: pf-in .3s calc(2.2s + var(--i) * .12s) both; }
.pf--mini2.play .pg-sbar i { animation: pg-growx .7s calc(2.3s + var(--i) * .12s) cubic-bezier(.2, .7, .2, 1) both; }
.pf--mini2.play .pg-diff { animation: pf-pop .3s 2.6s both; }

/* Anfrage */
.pf--mini2.play .pg-det li { animation: pf-in .3s calc(1.1s + var(--i) * .2s) both; }
.pf--mini2.play .pg-seg i { animation: pg-seg .35s 1.3s cubic-bezier(.3, .8, .3, 1) both; }
.pf--mini2.play .pg-seg .is-on { animation: pg-segc .2s 1.4s both; }
.pf--mini2.play .pg-text span { animation: pg-fade .12s calc(1.5s + var(--w) * .045s) both; }
.pf--mini2.play .pg-caret { animation: pg-blink .8s 1.5s steps(1) infinite; }
.pf--mini2.play .pg-att { animation: pg-fly .45s 2.6s cubic-bezier(.2, .8, .3, 1.2) both; }
.pf--mini2.play .pg-tl li { animation: pf-in .3s calc(1.6s + var(--i) * .15s) both; }
.pf--mini2.play .pg-tl__line b { animation: pg-growx .9s 1.8s cubic-bezier(.2, .7, .2, 1) both; }
.pf--mini2.play .pg-tl .is-run .pg-node { animation: pg-sug 1s 2.4s ease-in-out infinite alternate; }

/* Heizung */
.pf--mini2.play .pg-line { animation: pg-draw 1.6s .9s cubic-bezier(.4, 0, .3, 1) both; }
.pf--mini2.play .pg-below { animation: pg-fade .5s 2.1s both; }
.pf--mini2.play .pg-cross { animation: pg-fade .3s 2.1s both; }
.pf--mini2.play .pg-warn { animation: pf-pop .3s 2.3s both; }
.pf--mini2.play .pg-now { animation: pg-fade .2s 2.4s both; }
.pf--mini2.play .pg-now2 { animation: pg-pulse 1.4s 2.4s ease-out infinite; }
.pf--mini2.play .pg-live i { animation: pg-blink 1.2s steps(1) infinite; }
.pf--mini2.play .pg-cells .c0 { animation: pg-cold-0 .4s calc(1.1s + var(--i) * .05s) both; }
.pf--mini2.play .pg-cells .c1 { animation: pg-cold-1 .4s calc(1.1s + var(--i) * .05s) both; }
.pf--mini2.play .pg-cells .c2 { animation: pg-cold-2 .4s calc(1.1s + var(--i) * .05s) both; }
.pf--mini2.play .pg-cells .c3 { animation: pg-cold-3 .4s calc(1.1s + var(--i) * .05s) both; }
.pf--mini2.play .pg-cells .is-call i { animation: pf-pop .35s 2.2s cubic-bezier(.3, 1.6, .5, 1) both; }
.pf--mini2.play .pg-ring__v { animation: pg-draw 1.2s 1.6s cubic-bezier(.4, 0, .3, 1) both; }

/* Unsichtbar: Endlos-Animationen anhalten */
.pf-scale--mini:not(.is-vis) .pg * { animation-play-state: paused !important; }

/* Mobil: nur Arbeitsbereich, zwei Elemente je Vorgang */
.pf--mini2.pf--narrow { height: 570px; grid-template-rows: 56px 514px; }
.pf--mini2.pf--narrow .pf-main.pg { grid-column: 3; padding: 24px 24px 0; }
.pf--narrow .pg-grid, .pf--narrow .pg-basis { left: 24px; right: 24px; }
.pf--mini2.pf--narrow .pf-actions { left: 24px; }
.pf--narrow .pg-toast { right: 24px; }
.pf--mini2.pf--narrow .pf-cursor { margin-left: -348px; }
.pf--mini2.pf--narrow .pf-ripple { margin-left: -368px; }
.pf--narrow .pg--damage .pg-grid { grid-template-columns: 210px minmax(0, 1fr); }
.pf--narrow .pg-photos, .pf--narrow .pg-links, .pf--narrow .pg-mail, .pf--narrow .pg-units { display: none; }
.pf--narrow .pg--invoice .pg-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.pf--narrow .pg--request .pg-grid { grid-template-columns: minmax(0, 1fr); }
.pf--narrow .pg--heating .pg-grid { grid-template-columns: minmax(0, 1fr); }
.pg-firms li { padding-top: 18px; }
.pg-firms li small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-tl li b { position: relative; justify-self: start; background: #fff; padding-right: 8px; }
.pg-tl li .pg-node { position: relative; }
.pf--narrow .pg-toast { top: 404px; }
.pg-tl li small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Hero: zwei Angaben (Basis, Grundsatz) */
.hx-hero__meta { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--tq-s6); }
.hx-hero__meta dd { max-width: 30em; }
@media (max-width: 760px) { .hx-hero__meta { grid-template-columns: 1fr; gap: var(--tq-s3); } }
.hx-hero__meta { grid-template-columns: minmax(0, 27em) auto; justify-content: start; column-gap: 0; }
.hx-hero__meta > div + div { padding-left: var(--tq-s5); margin-left: var(--tq-s5); border-left: 1px solid rgba(255,255,255,.2); }
@media (max-width: 760px) { .hx-hero__meta { grid-template-columns: 1fr; } .hx-hero__meta > div + div { padding-left: 0; margin-left: 0; border-left: 0; } }

/* Kennzeichnung der Konzeptdarstellungen; Erläuterung gesammelt im Footer */
.pf-scale[data-note]::after { content: attr(data-note); position: absolute; right: 8px; bottom: 8px; z-index: 10; font: 500 10px/1 var(--tq-mono); letter-spacing: .04em; color: #fff; background: rgba(23,17,47,.7); padding: 4px 7px; border-radius: 3px; }
.tq-footer__note { margin: 0 0 var(--tq-s3); max-width: 60em; font-size: .75rem; line-height: 1.5; color: var(--tq-muted); }

/* Hero: Inhalt höher, Poster immer randlos (als Hintergrund statt Video-Poster) */
.hx-hero { align-items: center; min-height: min(780px, calc(100svh - 72px)); }
.hx-hero__inner { padding-top: var(--tq-s7); padding-bottom: var(--tq-s8); }
.hx-hero__media { background: var(--tq-violet-900) url("media/hero-poster.svg") center / cover no-repeat; }
/* Form-Grafik ohne Transparenz: immer randlos füllen, sonst wird ihre Kante als Balken sichtbar */
.hx-hero__mark { background-size: cover; background-position: 80% center; }

/* ==========================================================================
   Einsatzfelder v2: leichte, isometrische Strichzeichnungen
   ========================================================================== */
.hx-card__media { background: #F4F3F0; border-bottom: 1px solid var(--tq-line); }
.fx * { transform-box: view-box; }
.fx [class^="i-"] { stroke: #3A3550; stroke-width: .8; stroke-linejoin: round; stroke-linecap: round; }
.fx .i-tile { fill: #FCFCFB; }
.fx .i-side { fill: #E6E4EA; }
.fx .i-ring { fill: none; stroke: #CFCBD9; stroke-dasharray: 2 3; }
.fx .i-t { fill: #FFFFFF; }
.fx .i-l { fill: #EEEDF2; }
.fx .i-r { fill: #F8F7FA; }
.fx .i-roof { fill: #E3E0EA; }
.fx .i-w { fill: #FFFFFF; stroke-width: .6; }
.fx .i-glass { fill: #F1EEFA; stroke-width: .6; }
.fx .i-band { fill: #FFFFFF; stroke-width: .6; }
.fx .i-crown { fill: #FFFFFF; stroke: #3A3550; stroke-width: .8; }
.fx .i-sheet { fill: #FFFFFF; filter: drop-shadow(0 6px 4px rgba(58,53,80,.08)); }
.fx .i-acc { fill: none; stroke: #654CBF; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.fx .i-sig { fill: none; stroke: #654CBF; stroke-width: .9; opacity: 0; transform-box: fill-box; transform-origin: center; }
.fx .i-link { fill: none; stroke: #9C8BDB; stroke-width: .8; stroke-dasharray: 2 4; }
.fx .i-node { fill: #FFFFFF; stroke: #654CBF; stroke-width: 1; }
.fx .i-hub { fill: #FFFFFF; stroke: #654CBF; stroke-width: 1; }
.fx .i-hub2 { fill: #654CBF; stroke: none; }

/* Bewegung: ruhig und langsam */
.fx--weg .weg-doc { animation: fx-float 5s ease-in-out infinite; }
@keyframes fx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.fx--weg .weg-tick { animation: fx-tick 6s ease-out infinite; }
@keyframes fx-tick { 0%, 25% { stroke-dashoffset: 1; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
.fx .is-lit { animation: fx-lit 6s ease-in-out infinite; }
.fx .is-lit.n1 { animation-delay: .8s; } .fx .is-lit.n2 { animation-delay: 1.6s; }
@keyframes fx-lit { 0%, 100% { fill: #FFFFFF; } 35%, 65% { fill: #DCD4F6; } }
.fx--miet .is-lit { animation: fx-lit2 4s ease-in-out infinite; }
@keyframes fx-lit2 { 0%, 100% { fill: #FFFFFF; } 20%, 70% { fill: #B9AAEA; } }
.fx--miet .i-sig { animation: fx-sig 4s ease-out infinite; }
.fx--miet .s2 { animation-delay: 1s; }
@keyframes fx-sig { 0%, 15% { opacity: 0; transform: scale(.4); } 25% { opacity: .9; } 70%, 100% { opacity: 0; transform: scale(2.2); } }
.fx--gewerbe .i-band { animation: fx-lit 7s ease-in-out infinite; }
.fx--gewerbe .f1 { animation-delay: .35s; } .fx--gewerbe .f2 { animation-delay: .7s; } .fx--gewerbe .f3 { animation-delay: 1.05s; }
.fx--gewerbe .f4 { animation-delay: 1.4s; } .fx--gewerbe .f5 { animation-delay: 1.75s; }
.fx--bestand .i-link { animation: fx-dash 2.4s linear infinite; }
@keyframes fx-dash { to { stroke-dashoffset: -12; } }
.fx--bestand .i-node { animation: fx-node 4s ease-in-out infinite; }
.fx--bestand .n1 { animation-delay: .6s; } .fx--bestand .n2 { animation-delay: 1.2s; } .fx--bestand .n3 { animation-delay: 1.8s; } .fx--bestand .n4 { animation-delay: 2.4s; }
@keyframes fx-node { 0%, 100% { fill: #FFFFFF; } 30%, 50% { fill: #654CBF; } }
.fx--bestand g:last-child { animation: fx-float 5s ease-in-out infinite; }
.fx .i-shadow { fill: #E9E7EE; stroke: none; }
.fx .i-crown { fill: #FFFFFF; }
.fx--bestand g:last-child { animation: none; }
.fx--bestand .bs-hub { animation: fx-float 5s ease-in-out infinite; }
.fx--gewerbe .i-band { animation: fx-band 9s ease-in-out infinite; }
.fx--gewerbe .f1 { animation-delay: 1s; } .fx--gewerbe .f2 { animation-delay: 2s; } .fx--gewerbe .f3 { animation-delay: 3s; }
.fx--gewerbe .f4 { animation-delay: 4s; } .fx--gewerbe .f5 { animation-delay: 5s; }
@keyframes fx-band { 0%, 100% { fill: #FFFFFF; } 8%, 30% { fill: #E4DDF9; } 40% { fill: #FFFFFF; } }

/* Einsatzfelder: Beispiele als schlichte Liste statt Boxen */
.hx-card .hx-chips { display: block; margin-top: .25rem; padding-top: 0; }
.hx-card .hx-chips > * { font-family: var(--tq-font); font-size: .875rem; line-height: 1.4; padding: .55rem 0; border: 0; border-top: 1px solid var(--tq-line); background: none; color: var(--tq-muted); }
@media (min-width: 861px) { .hx-card h3 { min-height: 2.5em; } }
.hx-contact .tq-h2 { margin: var(--tq-s2) 0 var(--tq-s3); }

/* ==========================================================================
   Ablauf v4: beginnt auf dem Start-Dashboard, fünf Schritte
   ========================================================================== */
.hx-player[data-active="5"] [data-screen="5"] { opacity: 1; transform: none; }
.hx-progress { grid-template-columns: repeat(5, 1fr); }
.hx-player[data-active="5"] .hx-progress span { background: var(--tq-violet); }

.pf-main.db { grid-column: 2 / 5; padding: 28px 32px; gap: 18px; background: #FBFBFA; }
.db-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.db-h { font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--tq-ink); margin-top: 6px; }
.db-ready { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--tq-violet-700); background: var(--tq-violet-50); border: 1px solid #DDD5F5; padding: 7px 12px; border-radius: 16px; }
.db-ready i { width: 11px; height: 10px; background: var(--tq-violet); clip-path: var(--tq-hex); }
.db-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.db-kpi { background: #fff; border: 1px solid var(--tq-line); border-radius: 10px; padding: 14px 16px; }
.db-kpi small { font-size: 11.5px; }
.db-kpi b { display: grid; font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin-top: 6px; }
.db-kpi b em { grid-area: 1 / 1; }
.db-kpi .b { opacity: 0; color: var(--tq-violet); }
.db-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 16px; }
.db-list { align-content: start; padding: 0; gap: 0; border-radius: 10px; overflow: hidden; }
.db-card__h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.db-card__h b { font-size: 14px; font-weight: 600; }
.db-card__h span { font-size: 11.5px; color: var(--tq-violet); }
.db-list li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto 72px; gap: 14px; align-items: center; height: 62px; padding: 0 16px; border-top: 1px solid var(--tq-line); border-left: 3px solid transparent; overflow: hidden; }
.db-list li b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-list li small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-list li .pf-dot { background: #C9C9CF; }
.db-list li.is-new .pf-dot { background: var(--tq-violet); }
.db-list .pf-tag { justify-self: start; }
.db-aside { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 16px; min-height: 0; }
.db-aside .pf-card { border-radius: 10px; padding: 14px 16px; align-content: start; gap: 6px; }
.db-today li { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: baseline; padding: 9px 0; border-top: 1px solid var(--tq-line); }
.db-today li:first-child { border-top: 0; }
.db-today small { font: 11px var(--tq-mono); color: var(--tq-violet-700); }
.db-today b { font-size: 12.5px; }
.db-ch li { display: grid; grid-template-columns: 96px minmax(0, 1fr) 20px; gap: 10px; align-items: center; padding: 7px 0; font-size: 12px; }
.db-ch i { height: 6px; background: var(--tq-sand); border-radius: 3px; overflow: hidden; }
.db-ch i b { display: block; height: 100%; background: var(--tq-violet); border-radius: 3px; transform-origin: 0 50%; }
.db-ch em { font: 11px var(--tq-mono); text-align: right; color: var(--tq-ink); }

.pf-cam[data-scene="0"] { --fx: 18%; --fy: 30%; }
.pf.play[data-scene="0"] .db-head { animation: pf-in .35s .1s both; }
.pf.play[data-scene="0"] .db-kpi { animation: pf-in .35s calc(.25s + var(--i) * .1s) both; }
.pf.play[data-scene="0"] .db-list, .pf.play[data-scene="0"] .db-aside .pf-card { animation: pf-in .4s .6s both; }
.pf.play[data-scene="0"] .db-list li:not(.is-new) { animation: pf-in .3s calc(.8s + var(--i) * .08s) both; }
.pf.play[data-scene="0"] .db-list li.is-new { animation: db-arrive .6s 2s both, db-flash 1.6s 2.4s both; }
.pf.play[data-scene="0"] .db-kpi .a { animation: pf-out .2s 2.3s both; }
.pf.play[data-scene="0"] .db-kpi .b { animation: pf-pop .35s 2.4s both; }
.pf.play[data-scene="0"] .db-ch i b { animation: pf-grow .6s calc(1s + var(--i) * .1s) both; }
.pf.play[data-scene="0"] .db-today li { animation: pf-in .3s calc(1s + var(--i) * .1s) both; }
.pf.play[data-scene="0"] .pf-cursor { animation: db-cur 2.4s 3s both; }
.pf.play[data-scene="0"] .pf-ripple { animation: pf-rip .5s 4.45s both; }
.pf.play[data-scene="0"] .db-list li.is-new.is-new { animation: db-arrive .6s 2s both, db-flash 1.6s 2.4s both, db-sel .3s 4.5s forwards; }
.pf[data-scene="0"] .pf-ripple { left: 322px; top: 338px; }
@keyframes db-arrive { from { height: 0; opacity: 0; border-top-width: 0; } to { height: 62px; opacity: 1; } }
@keyframes db-flash { 0% { background: var(--tq-violet-100); } 100% { background: #fff; } }
@keyframes db-sel { to { background: var(--tq-violet-50); border-left-color: var(--tq-violet); } }
@keyframes db-cur { 0% { opacity: 0; transform: translate(1000px, 680px); } 15% { opacity: 1; } 58% { transform: translate(320px, 334px); } 62% { transform: translate(320px, 334px) scale(.85); } 68% { transform: translate(320px, 334px); opacity: 1; } 100% { transform: translate(332px, 346px); opacity: 0; } }

/* Mobil: nur Kennzahlen und Liste */
.pf--db.pf--narrow .pf-main.db { padding: 22px 20px; gap: 14px; }
.pf--db.pf--narrow .db-ready, .pf--db.pf--narrow .db-aside, .pf--db.pf--narrow .pf-cursor, .pf--db.pf--narrow .pf-ripple { display: none; }
.pf--db.pf--narrow .db-cols { grid-template-columns: minmax(0, 1fr); }
.pf--db.pf--narrow .db-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf--db.pf--narrow .db-kpi:nth-child(n+3) { display: none; }
.pf--db.pf--narrow .db-list li { grid-template-columns: 8px minmax(0, 1fr) 64px; }
.pf--db.pf--narrow .db-list .pf-time { display: none; }

/* ==========================================================================
   01 Oberfläche: großflächige, leichte Bühne direkt nach den Problemen
   ========================================================================== */
.hx-move { background: linear-gradient(#fff, #F6F5F9 40%, #fff); }
.hx-move__ui { margin-top: var(--tq-s5); }
.hx-move .tq-ui__bar { justify-content: flex-start; margin-bottom: var(--tq-s4); }
.hx-move .tq-ui__tabs { border: 0; border-radius: 0; gap: var(--tq-s3); border-bottom: 1px solid var(--tq-line); }
.hx-move .tq-ui__tab { background: none; padding: .6rem .25rem; color: var(--tq-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.hx-move .tq-ui__tab + .tq-ui__tab { border-left: 0; }
.hx-move .tq-ui__tab:hover { background: none; color: var(--tq-ink); }
.hx-move .tq-ui__tab[aria-pressed="true"] { background: none; color: var(--tq-ink); border-bottom-color: var(--tq-violet); }
.hx-move .pf-scale--mini { border-radius: 14px; box-shadow: 0 40px 80px -48px rgba(36,26,74,.45), 0 0 0 1px rgba(36,26,74,.08); }
.hx-move__pts { list-style: none; margin: var(--tq-s4) auto 0; padding: 0; max-width: 1100px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tq-s3); font-size: .9375rem; color: var(--tq-muted); }
.hx-move__pts li { position: relative; padding-left: 1.5rem; }
.hx-move__pts li::before { content: ""; position: absolute; left: 0; top: .42em; width: 12px; height: 10.5px; background: var(--tq-violet); clip-path: var(--tq-hex); }
html[lang="de"] .hx-move__pts li { hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 760px) {
  .hx-move__ui { margin-top: var(--tq-s4); }
  .hx-move .tq-ui__bar { justify-content: flex-start; }
  .hx-move .tq-ui__tabs { width: 100%; display: flex; flex-wrap: nowrap; overflow-x: auto; background: none; gap: var(--tq-s2); scrollbar-width: none; }
  .hx-move .tq-ui__tab { flex: none; padding: .6rem .25rem; }
  .hx-move__pts { grid-template-columns: minmax(0, 1fr); gap: var(--tq-s2); }
}
.hx-move .pf-cam--static { transform: none; }
