/* KOVA Abbruch · Eine Tonne auf ihrem Weg (Abbruch-Runde 3, Stufe 3; Logik tonne.js). Grundzustand (ohne Skript, ruhig, Telefon, schmale
   Fenster): die fünf Halte untereinander an einer roten Linie, je mit Zeichen, Titel, Satz und Tor. Ab 1180 × 720 mit Skript eine gehaltene
   Bühne: oben die Route mit den Halten als Sechsecke, die Tonne fährt beim Scrollen mit (Lage über --x, --y), die Linie hinter ihr leuchtet,
   jeder erreichte Halt bekommt seinen Haken; darunter der Halt, der dran ist. Bewegt werden transform, opacity und stroke-dashoffset. */

.tonne{overflow-x:clip}
.tn-weg{display:none}
/* Liste */
.tn-halte{position:relative;margin:clamp(40px,6svh,64px) 0 0;padding:0;list-style:none;display:grid;gap:30px}
.tn-halte::before{content:"";position:absolute;left:27px;top:20px;bottom:20px;width:2px;background:linear-gradient(180deg,#BF3B2D,rgba(191,59,45,.2))}
.tn-p{position:relative;display:grid;grid-template-columns:56px minmax(0,1fr);gap:22px;align-items:start}
.tn-z{display:grid;place-items:center;width:56px;height:64px;clip-path:var(--sechs,polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%));
  background:linear-gradient(160deg,#3A3C3E,#1F2122)}
.tn-z svg{width:30px;height:30px;fill:none;stroke:#EEEBE5;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;--zi-a:#E86A5A;overflow:visible}
.tn-nr{display:block;font-size:11.5px;letter-spacing:.04em;color:#E86A5A}
.tn-text h3{margin-top:6px;font-weight:600;font-size:clamp(22px,2vw,30px);line-height:1.1;letter-spacing:-.03em;color:#F6F2EC}
.tn-text p{margin-top:8px;max-width:34em;font-size:15.5px;line-height:1.6;color:rgba(238,235,229,.7)}
.tn-text .tn-tor-t{display:inline-flex;align-items:center;gap:8px;margin-top:12px;padding:5px 10px 4px 8px;font-size:11.5px;color:#FFF8F6;background:rgba(191,59,45,.32);
  box-shadow:inset 0 0 0 1px rgba(232,106,90,.5);clip-path:polygon(5px 0,100% 0,100% calc(100% - 5px),calc(100% - 5px) 100%,0 100%,0 5px)}
.tn-text .tn-tor-t::before{content:"";width:12px;height:12px;background:#E86A5A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.3l2 2L9 4' fill='none' stroke='%231D1E1F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat}
@media (max-width:760px){
  .tn-halte::before{left:21px}
  .tn-p{grid-template-columns:44px minmax(0,1fr);gap:16px}
  .tn-z{width:44px;height:50px}.tn-z svg{width:24px;height:24px}
  .tn-text p{font-size:14.5px}
}

/* ── Gehaltene Bühne ──────────────────────────────────────────────────────────────────────────────────────────────────────── */
@media (min-width:1180px) and (min-height:720px){
  html.js:not(.ruhig) .tonne .kopfzeile{margin-bottom:0}
  html.js:not(.ruhig) .tn-strecke{position:relative;height:calc(var(--bh) * 4.2);margin:calc(-1 * var(--kopf)) calc(-1 * var(--rand)) 0}
  html.js:not(.ruhig) .tn-buehne{position:sticky;top:0;height:var(--bh);overflow:hidden;display:grid;grid-template-rows:minmax(0,1.05fr) minmax(0,.95fr);
    padding:calc(var(--kopf) + clamp(18px,3svh,36px)) max(var(--rand),calc((100% - 1320px) / 2)) clamp(24px,3.6svh,44px)}
  html.js:not(.ruhig) .tn-weg{position:relative;display:block;align-self:center}
  .tn-karte{display:block;width:100%;height:auto;overflow:visible}
  .tn-pfad{fill:none;stroke:rgba(238,235,229,.14);stroke-width:3;stroke-dasharray:2 9;stroke-linecap:round}
  .tn-pfad-an{fill:none;stroke:#E86A5A;stroke-width:3.5;stroke-linecap:round;stroke-dasharray:1 1;stroke-dashoffset:calc(1 - var(--p,0));filter:drop-shadow(0 0 6px rgba(232,106,90,.6))}
  .tn-hex{fill:#232526;stroke:rgba(238,235,229,.22);stroke-width:1.5;transition:fill .3s ease,stroke .3s ease}
  .tn-halt use,.tn-waage{fill:none;stroke:rgba(238,235,229,.6);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;--zi-a:rgba(232,106,90,.7);transition:stroke .3s ease}
  .tn-name{font:600 15px/1 var(--mono-f,"Geist Mono"),monospace;fill:rgba(238,235,229,.75);text-anchor:middle;letter-spacing:.01em}
  .tn-tor{font:500 12px/1 var(--mono-f,"Geist Mono"),monospace;fill:#E86A5A;text-anchor:middle;opacity:0;transition:opacity .3s ease}
  .tn-halt.erreicht .tn-hex{fill:#BF3B2D;stroke:#F08A76}
  .tn-halt.erreicht :is(use,.tn-waage){stroke:#FFF8F6;--zi-a:#FFD9CF}
  .tn-halt.erreicht .tn-tor{opacity:1}
  .tn-halt.erreicht .tn-name{fill:#FFF8F6}
  /* die Tonne */
  .tn-tonne{position:absolute;left:0;top:0;z-index:3;display:flex;align-items:center;gap:8px;padding:7px 12px 7px 8px;white-space:nowrap;font-size:12.5px;color:#1D1E1F;
    background:#F4F1EC;box-shadow:0 14px 24px -12px rgba(0,0,0,.7);transform:translate3d(var(--x,0),var(--y,0),0) translate(-50%,calc(-100% - 44px));
    clip-path:polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px);will-change:transform}
  .tn-tonne b{font-weight:600;font-size:13.5px}
  .tn-brocken{width:20px;height:16px;background:linear-gradient(150deg,#A9A49C,#6F6A63);clip-path:polygon(12% 18%,58% 0,100% 30%,88% 82%,40% 100%,0 66%);transition:transform .35s ease}
  .tonne.schotter .tn-brocken{background:radial-gradient(circle at 25% 35%,#B4AEA5 0 2.5px,transparent 3px),radial-gradient(circle at 65% 30%,#9C968D 0 2.5px,transparent 3px),
    radial-gradient(circle at 45% 70%,#8E8A84 0 3px,transparent 3.5px),radial-gradient(circle at 80% 72%,#B4AEA5 0 2px,transparent 2.5px);clip-path:none}
  /* unten der Halt, der dran ist */
  html.js:not(.ruhig) .tn-halte{display:grid;margin:0;gap:0;align-self:start;padding-top:clamp(10px,2svh,26px)}
  html.js:not(.ruhig) .tn-halte::before{content:none}
  html.js:not(.ruhig) .tn-p{grid-area:1 / 1;display:block;max-width:720px}
  html.js:not(.ruhig) .tn-z{display:none}
  html.js:not(.ruhig) .tn-text{opacity:0;visibility:hidden;transform:translate3d(0,-10px,0);transition:opacity .18s ease,transform .3s ease,visibility 0s linear .18s}
  html.js:not(.ruhig) .tn-p.jetzt .tn-text{opacity:1;visibility:visible;transform:none;transition:opacity .4s ease .16s,transform .7s var(--s-kurve) .16s,visibility 0s}
  html.js:not(.ruhig) .tn-p.jetzt~.tn-p:not(.jetzt) .tn-text{transform:translate3d(0,16px,0)}
  html.js:not(.ruhig) .tn-text h3{font-size:clamp(30px,2.8vw,46px)}
  html.js:not(.ruhig) .tn-text p{font-size:17.5px}
}
