/* =========================================================
   Der Schnitt als Schnittplatz (Runde 4, nur Hero f), dem echten Mit Chat schneiden nachgebaut, ohne Werkzeug Namen.
   js/schnittplatz.js setzt beim Scrollen die Klassen: .getippt/.du/.denkt/.fertig am Abschnitt, .dran/.gespielt/.raus an Wörtern
   und Stücken der Spur. Kein Zoom: Stücke werden schmaler, Wörter klappen zu, alles schiebt sich.
   Ohne Bewegung steht der fertige Schnitt da (alle Stellen durchgestrichen).
   ========================================================= */
.spl { padding: 120px 0 110px; }
.spl-kopf .titel { max-width: 1100px; }
.spl-bahn { margin-top: 56px; }
.spl-buehne { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.spl-app { position: relative; display: flex; flex-direction: column; background: var(--s); color: var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 50px 120px -40px rgba(0,0,0,.8), 0 0 160px -40px rgba(36,71,209,.5); }
.spl-leiste { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; background: var(--s2); border-bottom: 1px solid var(--line); flex: none; }
.spl-leiste i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); }
.spl-leiste b { margin-left: 10px; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); }
.spl-oben { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); flex: none; }
.spl-oben > div { flex: 1; min-width: 0; display: grid; }
.spl-oben small { font-size: 10.5px; color: var(--muted); }
.spl-oben b { font-size: 15px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spl-zurueck { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.spl-reiter { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--s3); margin: 0; }
.spl-reiter i { font-style: normal; font-size: 12.5px; padding: 5px 12px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.spl-reiter i.an { background: var(--s); color: var(--ink); font-weight: 560; box-shadow: 0 1px 2px rgba(19,18,17,.1); }
.spl-fertig { font-size: 13px; font-weight: 560; padding: 8px 16px; border-radius: 999px; background: var(--line2); color: #fff; white-space: nowrap; transition: background .4s, box-shadow .4s; }
.spl.fertig .spl-fertig { background: var(--akzent); box-shadow: 0 0 0 5px rgba(36,71,209,.14); }

.spl-raster { display: grid; grid-template-columns: 250px minmax(0, 1fr) minmax(0, 1.25fr); min-height: 0; }
/* Chat */
.spl-chat { display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; border-right: 1px solid var(--line); min-width: 0; }
.spl-blase { margin: 0; font-size: 13px; line-height: 1.45; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: var(--s2); border: 1px solid var(--line); color: var(--ink2); }
.spl-blase.du { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--akzent); border-color: var(--akzent); color: #fff; max-width: 92%; }
.spl-blase b { color: var(--ink); }
.spl-denkt { display: inline-flex; gap: 4px; align-self: flex-start; padding: 12px 14px; }
.spl-denkt i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .5; }
html.bew .spl.denkt .spl-denkt i { animation: spl-punkt 1s ease-in-out infinite; }
html.bew .spl-denkt i:nth-child(2) { animation-delay: .15s; } html.bew .spl-denkt i:nth-child(3) { animation-delay: .3s; }
@keyframes spl-punkt { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: .9; transform: translateY(-3px); } }
.spl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.spl-chips i { font-style: normal; font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink2); white-space: nowrap; }
.spl-eingabe { display: flex; align-items: center; gap: 8px; min-height: 42px; border: 1px solid var(--line2); border-radius: 12px; padding: 6px 6px 6px 12px; }
.spl-eingabe em { flex: 1; min-width: 0; font-style: normal; font-size: 12.5px; color: var(--ink); }
.spl-eingabe em:empty::before { content: "Sag, was anders werden soll"; color: var(--muted); }
.spl-eingabe i { font-style: normal; font-size: 12px; font-weight: 560; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; }
/* Ohne Bewegung: der ganze Chat steht da */
html.bew .spl [data-spl-du], html.bew .spl [data-spl-denkt], html.bew .spl [data-spl-antwort] { display: none; }
html.bew .spl.du [data-spl-du], html.bew .spl.denkt [data-spl-denkt], html.bew .spl.fertig [data-spl-antwort] { display: block; animation: spl-blase .45s cubic-bezier(.16, 1, .3, 1); }
html.bew .spl.denkt [data-spl-denkt] { display: inline-flex; }
html.bew .spl.fertig [data-spl-denkt] { display: none; }
html:not(.bew) .spl [data-spl-denkt] { display: none; }
@keyframes spl-blase { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Video mit Untertitel */
.spl-mitte { display: grid; place-items: center; padding: 18px; background: #131211; min-width: 0; }
.spl-video { position: relative; height: min(52vh, 520px); aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #0f1416; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.spl-video video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.spl-untertitel { position: absolute; left: 8%; right: 8%; bottom: 16%; text-align: center; font-size: clamp(18px, 1.7vw, 26px); font-weight: 760; letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.spl-untertitel b { background: #e6c419; color: #131211; padding: 0 .18em; border-radius: .18em; text-shadow: none; }

/* Text rechts: Abspielkopf leuchtet, Füllwörter und Pausen werden durchgestrichen und klappen zu */
.spl-text { display: flex; flex-direction: column; padding: 16px 20px; border-left: 1px solid var(--line); background: var(--s2); min-width: 0; }
.spl-reiter.klein { align-self: flex-start; }
.spl-woerter { margin: 16px 0 0; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.75; letter-spacing: -.01em; color: var(--ink); }
.spl-woerter span { border-radius: 6px; padding: 1px 2px; transition: background .2s, color .2s; }
.spl-woerter span.gespielt { color: var(--ink); }
html.bew .spl-woerter span { color: var(--muted); }
html.bew .spl-woerter span.gespielt { color: var(--ink); }
.spl-woerter span.dran { background: var(--akzent); color: #fff !important; }
.spl-woerter s { display: inline-block; vertical-align: 1px; max-width: 5em; overflow: hidden; white-space: nowrap; text-decoration: none; font-size: .68em; line-height: 1.5; padding: 0 .5em; border-radius: 6px; position: relative;
  transition: max-width .55s cubic-bezier(.65, 0, .35, 1) .35s, padding .55s cubic-bezier(.65, 0, .35, 1) .35s, opacity .4s .45s, margin .55s .35s; }
.spl-woerter s.p { background: repeating-linear-gradient(135deg, var(--s3) 0 5px, #e6e2da 5px 10px); color: var(--muted); }
.spl-woerter s.a { background: #fde9ee; color: #c1355b; }
.spl-woerter s::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: #c1355b; transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.spl-woerter s.raus::after { transform: scaleX(1); }
.spl-woerter s.raus { max-width: 0; padding: 0; opacity: 0; margin: 0 -.14em; }
.spl-zahlen { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 14px; font-size: 13px; color: var(--muted); }
.spl-zahlen b { color: var(--ink); font-size: 18px; font-weight: 640; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-right: 3px; }
.spl-gespart { margin-left: auto; font-weight: 600; color: var(--ok); background: #e6f4ec; padding: 5px 10px; border-radius: 999px; transition: opacity .3s; }

/* Spur unten: Stücke mit Wellenform, Abspielkopf, Ausschnitte werden schmal */
.spl-spur { border-top: 1px solid var(--line); padding: 10px 16px 14px; background: var(--s); flex: none; }
.spl-spur-kopf { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 560; }
.spl-spur-kopf .mono { color: var(--muted); }
.spl-spur-zeile { position: relative; display: flex; gap: 3px; height: 46px; margin-top: 8px; }
.spl-spur-zeile i { flex: var(--g) 1 0; min-width: 0; overflow: hidden; display: flex; align-items: flex-end; padding: 0 5px 4px; border-radius: 6px; font-style: normal; font-size: 10.5px; font-weight: 560; white-space: nowrap;
  color: var(--akzent-2); background: linear-gradient(transparent 45%, var(--hauch) 45%), repeating-linear-gradient(90deg, #b9c6f5 0 2px, transparent 2px 4px) 0 22% / 100% 40% no-repeat, var(--hauch); border: 1px solid var(--a-linie);
  transition: flex-grow .6s cubic-bezier(.65, 0, .35, 1) .3s, padding .6s .3s, border-width .6s .3s, margin .6s .3s, opacity .4s .4s; }
.spl-spur-zeile i.p { background: repeating-linear-gradient(135deg, var(--s3) 0 5px, #e6e2da 5px 10px); border-color: var(--line2); }
.spl-spur-zeile i.a { background: #fde9ee; border-color: #f4c5cf; color: #c1355b; }
.spl-spur-zeile i.raus { flex-grow: 0; padding: 0; border-width: 0; margin-right: -3px; opacity: 0; }
.spl-abspiel { position: absolute; top: -6px; bottom: -6px; left: var(--kopf, 0%); width: 2px; background: var(--akzent); border-radius: 2px; box-shadow: 0 0 0 3px rgba(36,71,209,.15); }
.spl-abspiel::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 3px; background: var(--akzent); }
html:not(.bew) .spl-abspiel { display: none; }
.spl-unter { margin-top: 70px; }

/* Mit Bewegung: die App steht, während der Abschnitt durchscrollt */
html.bew .spl-bahn { height: 240vh; margin-top: 40px; }
html.bew .spl-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; padding-top: 92px; padding-bottom: 24px; display: flex; flex-direction: column; justify-content: center; }
html.bew .spl-app { max-height: 100%; }

@media (max-width: 1099px) {
  .spl-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .spl-chat { display: none; }
}
@media (max-width: 760px) {
  .spl-buehne { padding: 0 12px; }
  .spl-oben { padding: 10px 12px; gap: 8px; }
  .spl-oben .spl-reiter, .spl-zurueck { display: none; }
  .spl-oben b { white-space: normal; overflow: visible; font-size: 14px; line-height: 1.25; }
  .spl-fertig { padding: 7px 12px; font-size: 12px; }
  .spl-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
  .spl-mitte { padding: 10px; }
  .spl-video { height: auto; width: 100%; border-radius: 12px; }
  .spl-text { padding: 10px 10px 12px; }
  .spl-reiter.klein { display: none; }
  .spl-woerter { margin-top: 0; font-size: 14px; line-height: 1.7; }
  .spl-zahlen { gap: 6px 12px; font-size: 11.5px; }
  .spl-zahlen b { font-size: 15px; }
  .spl-gespart { margin-left: 0; }
  .spl-spur { padding: 8px 10px 10px; }
  .spl-spur-zeile { height: 34px; gap: 2px; }
  .spl-spur-zeile i { font-size: 0; padding: 0; }
  .spl-untertitel { font-size: 16px; }
  html.bew .spl-buehne { padding-top: 74px; padding-bottom: 14px; }
}

/* Ohne Bewegung: der fertige Schnitt (Füllwörter und Pausen durchgestrichen, in der Spur schmal), Fertig machen ist blau */
html:not(.bew) .spl-woerter s::after { transform: scaleX(1); }
html:not(.bew) .spl-woerter s { opacity: .55; }
html:not(.bew) .spl-spur-zeile i.p, html:not(.bew) .spl-spur-zeile i.a { flex-grow: 0; padding: 0; border-width: 0; margin-right: -3px; opacity: 0; }
html:not(.bew) .spl-fertig { background: var(--akzent); }
