/* KOVA · Persönlich (Premium-Runde, Punkt 3 „Taulant spricht“, docs/40; Verhalten persoenlich.js). Zwei Stellen, an denen der Inhaber selbst
   auftritt: die Unterschrift unter seinem Brief zeichnet sich Zug für Zug, sobald sie ins Bild kommt, und im Schluss öffnet die Karte „Ein Wort
   von Taulant“ sein Video im Hochformat, mit Ton, Untertiteln und der Lichtfuge als Fortschritt. Die Unterschrift ist ein Platzhalter, bis
   Taulant selbst unterschreibt (der Brief ist ohnehin data-entwurf); das Video liegt unter /bilder/video/ (nie im Repo), bis dahin ist die
   Karte data-entwurf. Ohne Skript und bei ruhiger Bewegung steht die Unterschrift fertig da. */

/* ── Unterschrift im Brief ─────────────────────────────────────────────────────────────────────────────────────── */
.unterschrift.mit-zug{align-items:center}
.unterschrift .zug{flex:0 0 100%;display:block;width:min(250px,72%);height:auto;margin:-4px 0 0 -6px;overflow:visible;
  fill:none;stroke:var(--sz-tinte,#1F2020);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;
  will-change:transform} /* eigene Ebene: die Striche malen nur sich neu, nicht das ganze Briefpapier mit seiner Struktur */
/* jeder Zug hat seine Dauer (--d) und seinen Einsatz (--v), wie mit dem Stift: T, Stamm mit „aulant“, A, „lija“, Punkte, Strich */
/* Lücke 2 und Versatz etwas über 1: sonst steht am Anfang jedes noch nicht gezogenen Zugs die runde Stiftkante als Punkt */
.unterschrift .zug path{stroke-dasharray:1 2;stroke-dashoffset:0;transition:stroke-dashoffset var(--d,.6s) cubic-bezier(.45,.05,.4,1) calc(var(--v,0s) + .25s)}
html.js:not(.ruhig) .unterschrift.mit-zug:not(.zeichnet) .zug path{stroke-dashoffset:1.02;transition:none}
html body .unterschrift.mit-zug:not(.mit-fuge) .name{font-size:14px;font-weight:500;letter-spacing:0;color:var(--basalt)}
/* Bis Taulant selbst unterschreibt (docs/42): sein Name in der Hausschrift, darunter zeichnet sich die Lichtfuge mit dem 30°-Knick des
   Kristalls (wie im Fuß mit Marke), in den Tönen des Fachbetriebs. Gezeichnet wie die Unterschrift: Klasse „zeichnet“ aus persoenlich.js. */
.unterschrift.mit-fuge{display:grid;grid-template-columns:auto 1fr;align-items:baseline;column-gap:16px;row-gap:2px}
.unterschrift.mit-fuge .name{grid-area:1/1}
.unterschrift.mit-fuge > span:not(.name){grid-area:1/2;justify-self:end}
.unterschrift.mit-fuge .zug{grid-area:2/1;width:min(220px,100%);margin:0;stroke:none}
.unterschrift.mit-fuge .zug path{vector-effect:non-scaling-stroke;stroke-linejoin:round}
.unterschrift.mit-fuge .zug .w{stroke:rgba(var(--akz-rgb,246,207,122),.55);stroke-width:5;filter:blur(3px)}
.unterschrift.mit-fuge .zug .l{stroke:var(--akz-2,#C9932F);stroke-width:1.4}
@media (max-width:520px){
  .unterschrift.mit-fuge{grid-template-columns:1fr}
  .unterschrift.mit-fuge > span:not(.name){grid-area:3/1;justify-self:start;margin-top:8px}
}
body[data-fach="fenster-tueren"] .zug{--sz-tinte:#1C2B3A}
body[data-fach="immobilien"] .zug{--sz-tinte:#30363B}

/* ── Ein Wort von Taulant: Karte im Schluss (dunkle Platte) ────────────────────────────────────────────────────── */
.tv-karte{display:flex;align-items:center;gap:16px;width:fit-content;max-width:100%;margin-top:22px;padding:9px 22px 9px 9px;border-radius:22px;
  color:#EEEBE5;text-decoration:none;background:linear-gradient(180deg,rgba(255,246,236,.1),rgba(255,246,236,.04));
  box-shadow:inset 0 1px 0 rgba(255,236,212,.14),0 0 0 1px rgba(238,235,229,.12);transition:transform .5s var(--kurve),box-shadow .3s ease}
.tv-karte:hover{transform:translate3d(0,-2px,0);box-shadow:inset 0 1px 0 rgba(255,236,212,.2),0 0 0 1px rgba(238,235,229,.24)}
.tv-karte:focus-visible{outline:2px solid var(--akz-hell);outline-offset:3px}
/* Bild im Sechseck wie der Rufknopf, darüber das Zeichen zum Abspielen */
.tv-bild{position:relative;flex:none;width:58px;height:67px;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);background:#2A2C2E}
.tv-bild img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 18%}
.tv-bild i{position:absolute;inset:0;display:grid;place-items:center;background:rgba(14,15,16,.32);transition:background .3s ease}
.tv-bild i::before{content:"";margin-left:3px;border-left:11px solid #fff;border-top:7px solid transparent;border-bottom:7px solid transparent}
.tv-karte:hover .tv-bild i{background:rgba(14,15,16,.12)}
.tv-text{display:grid;gap:3px;min-width:0}
.tv-text b{font-weight:500;font-size:15px;line-height:1.25;color:#EEEBE5}
.tv-text small{font-size:13px;line-height:1.35;color:rgba(238,235,229,.6)}
.tv-dauer{flex:none;margin-left:6px;font-family:"Geist Mono",ui-monospace,monospace;font-size:12px;color:var(--akz-hell)}

/* ── Video im Dialog, Hochformat ───────────────────────────────────────────────────────────────────────────────── */
.tv-dialog{padding:0;border:0;margin:auto;background:none;color:#EEEBE5;max-width:none;max-height:none;overflow:visible}
.tv-dialog::backdrop{background:rgba(12,13,14,.82)}
html:has(.tv-dialog[open]){overflow:hidden;scrollbar-gutter:stable}
.tv-rahmen{position:relative;height:min(84svh,760px,calc((100vw - 32px) * 16 / 9));aspect-ratio:9 / 16;border-radius:24px;overflow:hidden;
  background:#0E0F10;box-shadow:0 0 0 1px rgba(255,255,255,.08),0 40px 120px -30px rgba(0,0,0,.8)}
.tv-rahmen video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tv-rahmen video::cue{font-family:Geist,system-ui,sans-serif;font-size:17px;line-height:1.4;background:rgba(14,15,16,.66)}
.tv-name{position:absolute;z-index:2;left:0;right:0;top:0;margin:0;padding:18px 70px 40px 20px;display:grid;gap:2px;pointer-events:none;
  background:linear-gradient(180deg,rgba(14,15,16,.62),rgba(14,15,16,0))}
.tv-name b{font-weight:500;font-size:15px}.tv-name small{font-size:12.5px;color:rgba(238,235,229,.68)}
.tv-start{position:absolute;inset:0;z-index:1;display:grid;place-items:center;padding:0;border:0;background:none;cursor:pointer}
.tv-start i{display:grid;place-items:center;width:76px;height:76px;border-radius:50%;background:rgba(14,15,16,.45);
  box-shadow:0 0 0 1px rgba(255,255,255,.28);transition:opacity .3s ease,transform .45s var(--kurve)}
.tv-start i::before{content:"";margin-left:5px;border-left:20px solid #fff;border-top:12px solid transparent;border-bottom:12px solid transparent}
.tv-start:focus-visible i{box-shadow:0 0 0 2px var(--akz-hell)}
.tv-dialog.spielt .tv-start i{opacity:0;transform:scale(.88)}
.tv-zu{position:absolute;z-index:3;top:14px;right:14px;display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:50%;
  background:rgba(14,15,16,.5);box-shadow:0 0 0 1px rgba(255,255,255,.16);color:#fff;cursor:pointer}
.tv-zu svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.tv-zu:focus-visible{box-shadow:0 0 0 2px var(--akz-hell)}
/* Fortschritt als Lichtfuge in der Farbe des Fachbetriebs */
.tv-fuge{position:absolute;z-index:2;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg,var(--akz-hell),var(--akz-tief));
  transform-origin:left;transform:scaleX(0);box-shadow:0 0 12px rgba(var(--akz-rgb),.6)}
html:not(.ruhig) .tv-dialog[open] .tv-rahmen{animation:tv-auf .55s var(--kurve) both}
html:not(.ruhig) .tv-dialog[open]::backdrop{animation:tv-grund .35s ease both}
@keyframes tv-auf{from{opacity:0;transform:translate3d(0,24px,0) scale(.97)}}
@keyframes tv-grund{from{opacity:0}}

/* Form nach dem Charakter: Fenster präzise Ecken, Abbruch die Fase im 30°-Raster */
body[data-fach="fenster-tueren"] .tv-karte{border-radius:8px}
body[data-fach="fenster-tueren"] .tv-rahmen{border-radius:10px}
body[data-fach="abbruch"] .tv-karte{border-radius:0;clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px)}
body[data-fach="abbruch"] .tv-rahmen{border-radius:0;clip-path:polygon(18px 0,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%,0 18px)}

@media (max-width:760px){
  .tv-karte{width:100%;padding-right:16px}
  .tv-dauer{margin-left:auto}
  .tv-rahmen{border-radius:20px}
}
