/* =================================================================
   WERKZEUGE (24.11.2026)
   -----------------------------------------------------------------
   Öffentliche Werkzeuge ohne Anmeldung:
     /werkzeuge/shotlist-erstellen.html
     /werkzeuge/drehplan-erstellen.html
     /werkzeuge/storyboard-erstellen.html (26.11.2026, Abschnitt 9)
   Kopfzeile, Menü und Fuß kommen von den Funktionsseiten. Farben und
   Knöpfe stammen aus funktionen.css und funktionen-seite.css
   (--akzent, --text, --text-2, --rand, --flaeche, .fs-btn, .fs-faq).
   Hier steht nur, was die Werkzeuge selbst brauchen, alles mit der
   Vorsilbe .wz-.

   Maße wie auf der Startseite (css/start-satz.css, 24.11.2026):
   - Schriftgrößen nur 60, 24 und 18 für Überschriften, 19 für die
     Unterzeile, 17 und 16 für Fließtext, 15 und 14 für Kleines
   - Knöpfe im Text 48 px hoch mit 16 px Schrift, Knöpfe und Felder
     im Werkzeug 40 px (am Handy 44 px)
   - Überschrift und Werkzeug stehen an den Kanten der Kopfzeile, die
     Texte darunter sind höchstens 1200 px breit
   - die Kopfzeile ist 72 px hoch (css/kopf.css), siehe --wz-kopfhoehe

   Regeln dieser Datei:
   - weiße Flächen, feine neutrale Linien, kein Verlauf, kein Leuchten
   - Lila nur für die Hauptaktion, für Links und beim Schreiben
   - Beschriftungen in normaler Schreibweise
   - Abstände im Vierer-Raster (4, 8, 12, 16, 24, 32, 48)
   - nichts reagiert auf die Maus, das man nicht anklicken kann
   - Listen richten sich nach ihrem Platz (Container-Abfragen), nicht
     nach der Fensterbreite: erst Zeilen mit Beschriftung, bei genug
     Platz eine Tabelle

   Aufbau: 1 Grundlagen · 2 Seitenkopf · 3 Karte und Felder ·
   4 Zeilenlisten · 5 Knöpfe · 6 Texte unter dem Werkzeug ·
   7 Rückfrage · 8 Druck · 9 Storyboard (Raster, Umschalter, Blatt)
   ================================================================= */

/* ---------- 1 Grundlagen ---------- */
:root {
  /* Linien und leise Flächen aus der Textfarbe #17161f (die Website ist immer hell) */
  --wz-feldrand: rgba(23, 22, 34, .18);
  --wz-feldrand-leise: rgba(23, 22, 34, .14);
  --wz-feldrand-stark: rgba(23, 22, 34, .42);
  --wz-leise: rgba(23, 22, 34, .06);
  --wz-platzhalter: #736f88;
  --wz-rot: #b42318;
  --wz-rot-tief: #912018;
  --wz-rot-leise: rgba(180, 35, 24, .09);
  --wz-akzent-tief: #4c33b8;
  /* Höhe der festen Kopfzeile aus css/kopf.css (#header-container). Ändert sie sich dort, hier nachziehen:
     Spaltenköpfe bleiben darunter stehen, und was den Fokus bekommt, rollt nicht darunter. */
  --wz-kopfhoehe: 72px;
}

/* Breite: Überschrift und Werkzeug haben dieselben Kanten wie die Kopfzeile (dort max-w-[1600px] mit 24, 32 und 48 px
   Rand) und beginnen an der Linie des Logos. Die Tabelle der Shots braucht den Platz. Die Texte darunter und der Fuß
   sind wie die Abschnitte der Startseite höchstens 1200 px breit und stehen mittig. */
.wz-innen { max-width: 1600px; padding-left: 24px; padding-right: 24px; }
.wz-text .wz-innen { max-width: 1296px; }
.wz-seite ~ .fk-fuss .fk-innen { max-width: 1296px; padding-left: 24px; padding-right: 24px; }
@media (min-width: 640px) {
  .wz-innen, .wz-seite ~ .fk-fuss .fk-innen { padding-left: 32px; padding-right: 32px; }
}
@media (min-width: 1024px) {
  .wz-innen, .wz-seite ~ .fk-fuss .fk-innen { padding-left: 48px; padding-right: 48px; }
}

/* Nur für Vorleseprogramme */
.wz-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.wz-seite [hidden] { display: none !important; }
/* Die Kopfzeile steht fest: Was den Fokus bekommt, rollt nicht darunter */
.wz-seite :is(input, select, textarea, button, summary, a, h2) { scroll-margin-top: calc(var(--wz-kopfhoehe) + 24px); }

/* ---------- 2 Seitenkopf: Überschrift und ein Satz ---------- */
.wz-kopf { padding: 48px 0 32px; }
.wz-kopf h1 { margin: 0 0 16px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.04; letter-spacing: -.04em; color: var(--text); text-wrap: balance; }
/* Ein Satz in zwei etwa gleich langen Zeilen (in Safari stand sonst das letzte Wort allein in einer dritten) */
.wz-kopf p { margin: 0; max-width: 42em; font-size: 1.1875rem; line-height: 1.55; color: var(--text-2); text-wrap: balance; }

/* ---------- 3 Karte und Felder ---------- */
.wz-karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 16px; }
.wz-teil { padding: 16px; }
.wz-teil + .wz-teil { border-top: 1px solid var(--rand); }
.wz-teil-titel { margin: 0 0 16px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.125rem; line-height: 1.3; letter-spacing: -.01em; color: var(--text); }
.wz-ohne-js { margin: 0; color: var(--text-2); }
@media (scripting: none) {
  .wz-karte > .wz-teil:not(.wz-ohne-js) { display: none; }
}
@media (min-width: 640px) {
  .wz-teil { padding: 24px; }
}

.wz-felder { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.wz-feld { grid-column: 1 / -1; display: grid; gap: 6px; align-content: start; min-width: 0; }
.wz-etikett { font-size: .875rem; font-weight: 600; line-height: 1.3; color: var(--text-2); }

/* Ein Feld: neutrale Linie, kräftiger unter der Maus, lila beim Schreiben. Am Handy 44 px hoch und 16 px Schrift
   (darunter vergrößert Safari am iPhone die ganze Seite, sobald man ein Feld antippt).
   Die Zeilenhöhe ist fest (22 px) und füllt mit Innenabstand und Rand genau die Feldhöhe: So steht der Text in
   einzeiligen und mehrzeiligen Feldern auf derselben Linie. */
.wz-seite { --wz-feldhoehe: 44px; }
.wz-ein { display: block; width: 100%; min-width: 0; min-height: var(--wz-feldhoehe, 44px); margin: 0; padding: 10px 12px; border: 1px solid var(--wz-feldrand); border-radius: 10px; background-color: var(--flaeche); color: var(--text); font-family: inherit; font-size: 1rem; font-weight: 400; line-height: 22px; -webkit-appearance: none; appearance: none; transition: border-color .15s; }
.wz-ein::placeholder { color: var(--wz-platzhalter); opacity: 1; }
.wz-ein:hover { border-color: var(--wz-feldrand-stark); }
/* :focus-within gilt, wenn im Datums- oder Uhrzeitfeld das kleine Symbol am Ende den Fokus hat (das Feld selbst trägt dann kein :focus) */
.wz-ein:focus, .wz-ein:focus-within { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent); }
input.wz-ein, select.wz-ein { height: var(--wz-feldhoehe, 44px); }
textarea.wz-ein { resize: none; overflow: hidden; }
select.wz-ein { padding-right: 34px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%235b5870' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px 16px; }
.wz-ein[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.wz-ein[type="number"]::-webkit-outer-spin-button, .wz-ein[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wz-ein[type="date"], .wz-ein[type="time"] { font-variant-numeric: tabular-nums; }
/* Leeres Datum, leere Uhrzeit: das Muster des Browsers („TT.MM.JJJJ“, „--:--“) in der Farbe eines Platzhalters, beim Schreiben wie Text */
.wz-ein.wz-leer { color: var(--wz-platzhalter); }
.wz-ein.wz-leer:focus, .wz-ein.wz-leer:focus-within { color: var(--text); }
/* Safari am iPhone: Datum und Uhrzeit stehen sonst mittig und das leere Feld fällt zusammen */
.wz-ein::-webkit-date-and-time-value { text-align: left; min-height: 22px; }
.wz-ein::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }
@media (min-width: 1025px) {
  .wz-seite { --wz-feldhoehe: 40px; }
  .wz-ein { padding: 8px 12px; font-size: .9375rem; }
}

/* Kopffelder der Shotlist: Projektname, Drehtag, Kunde */
@media (min-width: 640px) {
  .wz-felder--shotlist .wz-f-drehtag { grid-column: span 5; }
  .wz-felder--shotlist .wz-f-kunde { grid-column: span 7; }
}
@media (min-width: 960px) {
  .wz-felder--shotlist .wz-f-projekt { grid-column: span 5; }
  .wz-felder--shotlist .wz-f-drehtag { grid-column: span 3; }
  .wz-felder--shotlist .wz-f-kunde { grid-column: span 4; }
}

/* Kopffelder des Drehplans */
.wz-felder--tag .wz-f-datum { grid-column: span 7; }
.wz-felder--tag .wz-f-nummer { grid-column: span 5; }
.wz-felder--ort .wz-f-uhrzeit { grid-column: span 5; }
@media (min-width: 640px) {
  .wz-felder--tag .wz-f-projekt, .wz-felder--tag .wz-f-firma { grid-column: span 6; }
  .wz-felder--tag .wz-f-datum, .wz-felder--tag .wz-f-nummer { grid-column: span 6; }
  .wz-felder--ort .wz-f-treffpunkt { grid-column: span 8; }
  .wz-felder--ort .wz-f-uhrzeit { grid-column: span 4; }
  .wz-felder--ort .wz-f-drehort { grid-column: span 5; }
  .wz-felder--ort .wz-f-adresse { grid-column: span 7; }
  .wz-felder--ort .wz-f-person { grid-column: span 7; }
  .wz-felder--ort .wz-f-telefon { grid-column: span 5; }
}
@media (min-width: 1100px) {
  .wz-felder--tag .wz-f-projekt, .wz-felder--tag .wz-f-firma { grid-column: span 4; }
  .wz-felder--tag .wz-f-datum, .wz-felder--tag .wz-f-nummer { grid-column: span 2; }
  .wz-felder--ort .wz-f-treffpunkt { grid-column: span 4; }
  .wz-felder--ort .wz-f-uhrzeit { grid-column: span 2; }
  .wz-felder--ort .wz-f-drehort { grid-column: span 3; }
  .wz-felder--ort .wz-f-adresse { grid-column: span 3; }
  .wz-felder--ort .wz-f-person { grid-column: span 4; }
  .wz-felder--ort .wz-f-telefon { grid-column: span 2; }
  .wz-felder--ort .wz-f-parken { grid-column: span 6; }
}

/* ---------- 4 Zeilenlisten: Shots, Tagesablauf, Team, Besetzung ---------- */
/* Grundaufbau (schmal): jede Zeile ist ein Block mit Beschriftung über jedem Feld, oben ihr Name und ihre Aktionen. */
.wz-liste { container-type: inline-size; container-name: wzliste; }
.wz-liste-kopf { display: none; }
.wz-zeilen { list-style: none; margin: 0; padding: 0; }
.wz-zeile { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px 8px; align-items: start; padding: 16px 0; border-top: 1px solid var(--rand); }
.wz-zeilen > .wz-zeile:first-child { padding-top: 0; border-top: 0; }
/* Name und Aktionen teilen sich die erste Zeile: Vier Symbolknöpfe (Shots) brauchen am Handy 182 px, drei (Drehplan) 136 px. */
.wz-zeile-nr { grid-column: 1 / span 6; grid-row: 1; align-self: center; font-size: .9375rem; font-weight: 700; line-height: 1.3; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wz-aktionen { grid-column: 7 / -1; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 2px; }
.wz-liste--shots .wz-zeile-nr { grid-column: 1 / span 4; }
.wz-liste--shots .wz-aktionen { grid-column: 5 / -1; }
.wz-zelle { grid-column: 1 / -1; display: grid; gap: 6px; align-content: start; min-width: 0; }

.wz-symbolknopf { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); cursor: pointer; transition: background-color .15s, color .15s; }
.wz-symbolknopf svg { display: block; width: 18px; height: 18px; }
.wz-symbolknopf:hover:not(:disabled) { background: var(--wz-leise); color: var(--text); }
.wz-symbolknopf--rot:hover:not(:disabled) { background: var(--wz-rot-leise); color: var(--wz-rot); }
.wz-symbolknopf:disabled { opacity: .28; cursor: default; }
@media (min-width: 640px) {
  .wz-symbolknopf { width: 36px; height: 36px; border-radius: 8px; }
}

.wz-liste-fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 16px; }
.wz-plus { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-left: -12px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--akzent); font-family: inherit; font-size: .9375rem; font-weight: 700; line-height: 1.25; cursor: pointer; transition: background-color .15s; }
.wz-plus svg { display: block; width: 16px; height: 16px; }
.wz-plus:hover { background: var(--akzent-weich); }
.wz-summe { margin: 0; font-size: .9375rem; line-height: 1.4; color: var(--text-2); font-variant-numeric: tabular-nums; }
.wz-summe b { font-weight: 700; color: var(--text); }
@media (min-width: 640px) {
  .wz-plus { min-height: 40px; }
}

/* Shots, schmal: Szene neben der Einstellungsgröße, Dauer neben der Notiz */
.wz-liste--shots .wz-z-szene, .wz-liste--shots .wz-z-dauer { grid-column: span 4; }
.wz-liste--shots .wz-z-groesse, .wz-liste--shots .wz-z-notiz { grid-column: span 8; }
/* Shots, mittel: zwei Zeilen Felder je Shot */
@container wzliste (min-width: 640px) {
  .wz-liste--shots .wz-z-szene { grid-column: span 2; }
  .wz-liste--shots .wz-z-groesse { grid-column: span 3; }
  .wz-liste--shots .wz-z-perspektive { grid-column: span 4; }
  .wz-liste--shots .wz-z-bewegung { grid-column: span 3; }
  .wz-liste--shots .wz-z-beschreibung { grid-column: span 6; }
  .wz-liste--shots .wz-z-dauer { grid-column: span 2; }
  .wz-liste--shots .wz-z-notiz { grid-column: span 4; }
}

/* Tagesablauf, Team und Besetzung, schmal */
.wz-liste--ablauf .wz-z-von, .wz-liste--ablauf .wz-z-bis { grid-column: span 6; }
.wz-liste--team .wz-z-call, .wz-liste--besetzung .wz-z-call { grid-column: span 5; }
.wz-liste--team .wz-z-telefon, .wz-liste--besetzung .wz-z-maske { grid-column: span 7; }
/* mittel: zwei Zeilen Felder je Eintrag */
@container wzliste (min-width: 560px) {
  .wz-liste--ablauf .wz-z-von, .wz-liste--ablauf .wz-z-bis { grid-column: span 3; }
  .wz-liste--ablauf .wz-z-was { grid-column: span 6; }
  .wz-liste--ablauf .wz-z-ort { grid-column: span 5; }
  .wz-liste--ablauf .wz-z-notiz { grid-column: span 7; }
  .wz-liste--team .wz-z-name, .wz-liste--team .wz-z-aufgabe, .wz-liste--besetzung .wz-z-name, .wz-liste--besetzung .wz-z-rolle { grid-column: span 6; }
  .wz-liste--team .wz-z-call, .wz-liste--besetzung .wz-z-call { grid-column: span 4; }
  .wz-liste--team .wz-z-telefon, .wz-liste--besetzung .wz-z-maske { grid-column: span 8; }
}

/* Tabellenaufbau: Spaltenköpfe oben, eine Zeile je Eintrag, Beschriftungen nur noch für Vorleseprogramme.
   Die Spalten stehen als Variable an der Liste, Kopf und Zeilen nutzen dieselbe (darum stehen sie untereinander). */
.wz-liste--shots { --wz-spalten: 36px 60px 142px 178px 136px minmax(0, 5fr) 84px minmax(0, 3fr) 126px; }
.wz-liste--ablauf { --wz-spalten: 118px 118px minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr) 94px; }
.wz-liste--team { --wz-spalten: minmax(0, 4fr) minmax(0, 4fr) 118px minmax(0, 3fr) 94px; }
.wz-liste--besetzung { --wz-spalten: minmax(0, 3fr) minmax(0, 3fr) 118px minmax(0, 4fr) 94px; }

/* Shots: ab 1260 px Platz (Fenster ab etwa 1400 px). Darunter bliebe für die Beschreibung zu wenig (bei 1366 px Fensterbreite
   255 px, drei Zeilen je Shot), dort stehen zwei Zeilen Felder je Shot. */
@container wzliste (min-width: 1260px) {
  .wz-liste--shots .wz-liste-kopf { display: grid; }
  .wz-liste--shots .wz-zeile { grid-template-columns: var(--wz-spalten); gap: 0 6px; padding: 3px 0; border-top: 0; --wz-feldhoehe: 40px; --wz-feldrand: var(--wz-feldrand-leise); }
  .wz-liste--shots .wz-zeile > * { grid-column: auto; grid-row: auto; }
  .wz-liste--shots .wz-zeile .wz-etikett, .wz-liste--shots .wz-nr-wort { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .wz-liste--shots .wz-zeile-nr { display: flex; align-items: center; justify-content: center; align-self: start; height: 40px; font-size: .875rem; font-weight: 600; color: var(--text-2); }
  .wz-liste--shots .wz-aktionen { height: 40px; gap: 2px; }
  .wz-liste--shots .wz-symbolknopf { width: 30px; height: 30px; border-radius: 8px; }
  .wz-liste--shots .wz-ein { padding: 9px 10px; font-size: .875rem; line-height: 20px; }
  .wz-liste--shots select.wz-ein { padding-right: 30px; background-position: right 8px center; }
  .wz-liste--shots .wz-z-dauer .wz-ein { text-align: right; }
  .wz-liste--shots .wz-zeilen { padding-top: 5px; }
}
/* Tagesablauf, Team, Besetzung: ab 1000 px Platz */
@container wzliste (min-width: 1000px) {
  :is(.wz-liste--ablauf, .wz-liste--team, .wz-liste--besetzung) .wz-liste-kopf { display: grid; }
  :is(.wz-liste--ablauf, .wz-liste--team, .wz-liste--besetzung) .wz-zeile { grid-template-columns: var(--wz-spalten); gap: 0 6px; padding: 3px 0; border-top: 0; --wz-feldhoehe: 40px; --wz-feldrand: var(--wz-feldrand-leise); }
  :is(.wz-liste--ablauf, .wz-liste--team, .wz-liste--besetzung) .wz-zeile > * { grid-column: auto; grid-row: auto; }
  :is(.wz-liste--ablauf, .wz-liste--team, .wz-liste--besetzung) .wz-zeile .wz-etikett,
  :is(.wz-liste--ablauf, .wz-liste--team, .wz-liste--besetzung) .wz-zeile-nr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  :is(.wz-liste--ablauf, .wz-liste--team, .wz-liste--besetzung) .wz-aktionen { height: 40px; }
  :is(.wz-liste--ablauf, .wz-liste--team, .wz-liste--besetzung) .wz-symbolknopf { width: 30px; height: 30px; border-radius: 8px; }
  :is(.wz-liste--ablauf, .wz-liste--team, .wz-liste--besetzung) .wz-ein { padding: 8px 10px; }
  :is(.wz-liste--ablauf, .wz-liste--team, .wz-liste--besetzung) .wz-zeilen { padding-top: 5px; }
}
/* Spaltenköpfe: bleiben beim Rollen unter der festen Kopfzeile der Seite stehen */
.wz-liste-kopf { grid-template-columns: var(--wz-spalten); gap: 0 6px; align-items: end; position: sticky; top: var(--wz-kopfhoehe); z-index: 1; padding: 8px 0; margin-top: -8px; background: var(--flaeche); border-bottom: 1px solid var(--rand); font-size: .875rem; font-weight: 600; line-height: 1.3; color: var(--text-2); }
.wz-liste-kopf > span { min-width: 0; padding-left: 11px; }
.wz-liste-kopf > .wz-k-nr { padding-left: 0; text-align: center; }
.wz-liste--shots .wz-liste-kopf > .wz-k-dauer { padding-left: 0; padding-right: 11px; text-align: right; }

/* Aufklappbarer Abschnitt (Besetzung). Klickziel ist das ganze Band mit der Überschrift bis an den Rand der Karte
   (negativer Außenabstand hebt den Innenabstand des Abschnitts auf), nicht nur das Wort. */
.wz-klapp > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -16px; padding: 16px; list-style: none; cursor: pointer; border-radius: 16px; outline-offset: -4px; }
.wz-klapp > summary::-webkit-details-marker { display: none; }
.wz-klapp > summary .wz-teil-titel { margin: 0; transition: color .15s; }
.wz-klapp > summary:hover .wz-teil-titel { color: var(--akzent); }
.wz-klapp-neben { margin-left: 8px; font-family: 'Inter', system-ui, sans-serif; font-size: .875rem; font-weight: 500; letter-spacing: 0; color: var(--text-2); }
.wz-klapp-pfeil { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: -8px -8px -8px 0; border-radius: 8px; color: var(--text-2); transition: background-color .15s, transform .15s; }
.wz-klapp-pfeil svg { display: block; width: 18px; height: 18px; }
.wz-klapp > summary:hover .wz-klapp-pfeil { background: var(--wz-leise); color: var(--text); }
.wz-klapp[open] > summary .wz-klapp-pfeil { transform: rotate(180deg); }
.wz-klapp[open] > summary { margin-bottom: 0; }
@media (min-width: 640px) {
  .wz-klapp > summary { margin: -24px; padding: 24px; }
  .wz-klapp[open] > summary { margin-bottom: -8px; }
}

@media (prefers-reduced-motion: reduce) {
  .wz-klapp-pfeil { transition: none; }
}

/* ---------- 5 Knöpfe ---------- */
/* .fs-btn aus funktionen-seite.css, hier ohne farbigen Schatten und ohne Hüpfen: Der Knopf wechselt nur die Farbe. */
.wz-seite .fs-btn, .wz-dialog .fs-btn { justify-content: center; padding: 12px 22px; box-shadow: none; font-family: inherit; font-size: 1rem; line-height: 1.5; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.wz-seite .fs-btn:hover, .wz-dialog .fs-btn:hover { transform: none; border-color: var(--wz-feldrand-stark); }
/* Ein Knopf, der gerade nichts tun kann (Leeren bei leerem Werkzeug): blass, ohne Zeiger, ohne Antwort unter der Maus */
.wz-seite .fs-btn:disabled, .wz-seite .fs-btn:disabled:hover { border-color: var(--rand); opacity: .45; cursor: default; }
.wz-seite .fs-btn.p:hover, .wz-dialog .fs-btn.p:hover { background: var(--wz-akzent-tief); border-color: var(--wz-akzent-tief); }
.wz-seite .fs-btn.wz-klein, .wz-dialog .fs-btn.wz-klein { min-height: 44px; padding: 8px 12px; font-size: .9375rem; line-height: 1.25; }
.wz-seite .fs-btn.wz-rot { color: var(--wz-rot); }
.wz-dialog .fs-btn.wz-gefahr { background: var(--wz-rot); border-color: var(--wz-rot); color: #fff; }
.wz-dialog .fs-btn.wz-gefahr:hover { background: var(--wz-rot-tief); border-color: var(--wz-rot-tief); }
@media (min-width: 640px) {
  .wz-seite .fs-btn.wz-klein, .wz-dialog .fs-btn.wz-klein { min-height: 40px; padding: 8px 18px; }
}

/* Leiste unter dem Werkzeug: links Mitnehmen (PDF, CSV), rechts Beispiel und Leeren.
   Am Handy stehen PDF und CSV je in einer eigenen Zeile, darunter Beispiel und Leeren nebeneinander: Kein Knopf bricht um. */
.wz-leiste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wz-leiste .wz-luecke { display: none; }
.wz-leiste > .wz-ganz { grid-column: 1 / -1; }
.wz-hinweis { margin: 16px 0 0; max-width: 80ch; font-size: .875rem; line-height: 1.5; color: var(--text-2); }
@media (min-width: 640px) {
  .wz-leiste { display: flex; flex-wrap: wrap; align-items: center; }
  .wz-leiste .wz-luecke { display: block; flex: 1 1 auto; }
}

/* Sehr schmale Handys (unter 360 px): alles untereinander, damit kein Knopf umbricht und kein kurzes Feld seinen Wert abschneidet */
@media (max-width: 359px) {
  .wz-leiste { grid-template-columns: minmax(0, 1fr); }
  .wz-felder--tag .wz-f-datum, .wz-felder--tag .wz-f-nummer, .wz-felder--ort .wz-f-uhrzeit { grid-column: 1 / -1; }
  .wz-liste--team .wz-z-call, .wz-liste--team .wz-z-telefon, .wz-liste--besetzung .wz-z-call, .wz-liste--besetzung .wz-z-maske { grid-column: 1 / -1; }
}

/* ---------- 6 Texte unter dem Werkzeug ---------- */
/* Jeder Abschnitt ist eine Zeile mit feiner Linie: links die Überschrift, rechts der Text. Am Handy untereinander. */
.wz-text { padding: 52px 0 24px; }
.wz-abschnitt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 40px 0; border-top: 1px solid var(--rand); }
.wz-abschnitt h2 { margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.02em; color: var(--text); text-wrap: balance; }
.wz-abschnitt > div { min-width: 0; }
@media (min-width: 900px) {
  .wz-abschnitt { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; padding: 52px 0; }
}

.wz-prosa { max-width: 36em; font-size: 1.0625rem; line-height: 1.65; color: var(--text-2); }
.wz-prosa p { margin: 0 0 16px; }
.wz-prosa > :last-child { margin-bottom: 0; }
.wz-prosa b { font-weight: 600; color: var(--text); }
/* Wörter mit Bindestrich bleiben beisammen (kein Zeilenende nach „Team-“) */
.wz-fest { white-space: nowrap; }
.wz-punkte { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.wz-punkte li { position: relative; padding-left: 20px; }
.wz-punkte li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--text-2); }

.wz-tabelle { width: 100%; margin: 0 0 16px; border-collapse: collapse; font-size: 1rem; }
.wz-tabelle th, .wz-tabelle td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rand); text-align: left; vertical-align: top; }
.wz-tabelle td:last-child, .wz-tabelle th:last-child { padding-right: 0; }
.wz-tabelle thead th { padding-top: 0; font-size: .875rem; font-weight: 600; line-height: 1.3; color: var(--text-2); }
.wz-tabelle tbody th { font-weight: 600; color: var(--text); white-space: nowrap; }

/* Übergang zum Produkt: ein Satz, zwei Knöpfe, ein Link */
.wz-weiter-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 16px; }
.wz-link { color: var(--akzent); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .15s; }
.wz-link:hover { text-decoration-color: currentColor; }

/* Fragen: Aufbau .fs-faq aus funktionen-seite.css, hier in der rechten Spalte. Linien stehen nur zwischen den Fragen,
   oben und unten begrenzt die Linie des Abschnitts. */
.wz-seite .fs-faq details:first-of-type { padding-top: 0; border-top: 0; }
.wz-seite .fs-faq details:last-of-type { padding-bottom: 0; border-bottom: 0; }
.wz-seite .fs-faq summary { transition: color .15s; }
.wz-seite .fs-faq summary::-webkit-details-marker { display: none; }
.wz-seite .fs-faq summary:hover { color: var(--akzent); }
.wz-seite .fs-faq details p { max-width: 38em; }

/* Passt dazu: schlichte Textlinks mit einem Satz */
.wz-passt { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 36em; font-size: 1.0625rem; line-height: 1.5; }
.wz-passt li { display: grid; gap: 2px; }
.wz-passt span { font-size: .9375rem; line-height: 1.5; color: var(--text-2); }

/* ---------- 7 Rückfrage (Leeren, Beispiel laden) ---------- */
/* Ein ruhiges Fenster: Titel, ein Satz zur Folge, unten rechts die Aktion, links daneben Abbrechen. Kein Weichzeichner dahinter. */
.wz-dialog { width: min(440px, calc(100vw - 32px)); max-width: none; margin: auto; padding: 0; border: 1px solid var(--rand); border-radius: 16px; background: var(--flaeche); color: var(--text); box-shadow: 0 24px 48px -24px rgba(23, 22, 34, .4); }
.wz-dialog::backdrop { background: rgba(23, 22, 34, .45); }
.wz-dialog:not([open]) { display: none; }
/* Browser ohne showModal (Safari vor 15.4): dasselbe Fenster, fest am unteren Rand */
.wz-dialog--ersatz[open] { display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; margin: 0 auto; }
.wz-dialog-innen { padding: 24px; }
.wz-dialog h2 { margin: 0 0 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.125rem; line-height: 1.3; letter-spacing: -.01em; }
.wz-dialog p { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--text-2); }
.wz-dialog-fuss { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
@media (max-width: 639px) {
  /* Am Handy kommt das Fenster von unten und nimmt die ganze Breite */
  .wz-dialog { width: 100%; max-height: none; margin: auto 0 0; border-width: 1px 0 0; border-radius: 16px 16px 0 0; }
  .wz-dialog-innen { padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .wz-dialog-fuss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 8 Druck ---------- */
/* „Als PDF speichern“ druckt nicht die Seite, sondern ein eigenes Blatt (.wz-druck), das die Skripte aus den Eingaben bauen
   und bei jeder Änderung nachführen. Kopfzeile, Menü, Werkzeug, Texte und Fuß der Seite fehlen im Druck.
   Format und Rand setzt das jeweilige Skript (seitenformat in werkzeug-gemeinsam.js), weil beide Seiten dieses Stilblatt
   teilen: Shotlist A4 quer, Drehplan A4 hoch, unten 17 mm Rand, wo die Fußzeile im Rand steht, sonst 12 mm.
   Geprüft in Chrome und in der Engine von Safari. Safari übernimmt den Rand, aber nicht das Querformat: Dort wählt man
   es im Druckfenster. Die Tabelle der Shotlist richtet sich darum nach der Breite des Blatts und bleibt auch hochkant lesbar.
   Safari setzt außerdem alles knapp 7 % größer als Chrome, die Maße unten lassen dafür Luft. */
.wz-druck { display: none; }

@page { margin: 12mm; }
/* Fußzeile auf jeder Seite, wo der Browser Randfelder kennt (Chrome und Edge ab 131). Sie steht oben im unteren Rand,
   darunter bleibt Platz für die Kopf- und Fußzeilen, die der Browser auf Wunsch selbst druckt. Browser ohne Randfelder
   (Safari, Firefox) überspringen diese Regel und zeigen stattdessen die Zeile .wz-d-fuss am Ende des Blatts. */
@page {
  @bottom-left { content: "Erstellt mit tidalmuse.de"; vertical-align: top; padding-top: 4mm; font-family: 'Inter', system-ui, sans-serif; font-size: 8pt; color: #555; }
  @bottom-right { content: "Seite " counter(page) " von " counter(pages); vertical-align: top; padding-top: 4mm; font-family: 'Inter', system-ui, sans-serif; font-size: 8pt; color: #555; }
}

@media print {
  html, body { background: #fff !important; }
  body { margin: 0; color: #000; }
  body > *:not(.wz-druck) { display: none !important; }

  .wz-druck { display: block; font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 9.5pt; line-height: 1.4; color: #000; }
  .wz-druck * { box-sizing: border-box; }

  .wz-d-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 10mm; margin: 0 0 4mm; padding: 0 0 3.5mm; border-bottom: 1.25pt solid #000; }
  .wz-d-kopf > div { min-width: 0; }
  .wz-d-titel { margin: 0; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-weight: 800; font-size: 19pt; line-height: 1.15; letter-spacing: -.015em; overflow-wrap: break-word; }
  .wz-d-unter { margin: 1.5mm 0 0; font-size: 10pt; color: #222; }
  .wz-d-rechts { flex: none; max-width: 45%; text-align: right; font-size: 10pt; color: #222; }
  .wz-d-rechts b { display: block; font-weight: 700; color: #000; }

  .wz-d-tabelle { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 9pt; line-height: 1.38; }
  .wz-d-tabelle thead { display: table-header-group; }
  /* Keine Zeile wird über zwei Seiten geteilt. Chrome und Firefox halten das tr zusammen. Safari beachtet das nur bei
     Blöcken, darum steht der Text jeder Zelle in einem Block (.wz-d-z), und in Safari sind alle Blöcke einer Zeile gleich
     hoch (100 % der Zelle, dafür braucht die Zelle eine Höhenangabe): So wandern sie gemeinsam auf die nächste Seite.
     Ohne die gleiche Höhe blieben einzeilige Zellen stehen und nur die mehrzeiligen rutschten weiter.
     Die gleiche Höhe gilt nur für Safari (nur dort gibt es die Schriftangabe -apple-system-body): Firefox rechnet
     100 % von der angegebenen Höhe 1 px, dort lägen alle Zeilen übereinander. */
  .wz-d-tabelle tr, .wz-d-z { break-inside: avoid; page-break-inside: avoid; }
  @supports (font: -apple-system-body) {
    .wz-d-tabelle td { height: 1px; }
    .wz-d-z { height: 100%; }
  }
  .wz-d-tabelle th { padding: 1.2mm 3mm 1.2mm 0; border-bottom: .9pt solid #000; text-align: left; vertical-align: bottom; font-size: 8pt; font-weight: 700; }
  .wz-d-tabelle td { padding: 1.3mm 3mm 1.3mm 0; border-bottom: .5pt solid #9a9a9a; text-align: left; vertical-align: top; white-space: pre-line; overflow-wrap: break-word; }
  .wz-d-tabelle th:last-child, .wz-d-tabelle td:last-child { padding-right: 0; }
  .wz-d-tabelle .wz-d-zahl { text-align: right; font-variant-numeric: tabular-nums; }
  .wz-d-tabelle .wz-d-fest { white-space: nowrap; font-variant-numeric: tabular-nums; }
  .wz-d-fuss { margin: 3mm 0 0; font-size: 8pt; color: #555; break-before: avoid; page-break-before: avoid; }
  html.wz-randfelder .wz-d-fuss { display: none; }

  /* Shotlist: für A4 quer gedacht. Die Spalten richten sich nach Inhalt und Blattbreite statt nach festen Maßen:
     Nr., Einstellungsgröße, Perspektive, Bewegung und Dauer sind so breit wie ihr längster Eintrag (.wz-d-eng),
     die Szene so breit wie ihr längstes Wort, Beschreibung und Notiz teilen sich den Rest. So bleibt die Tabelle auch
     hochkant lesbar (mit festen Maßen blieb dort für die Beschreibung ein Buchstabe je Zeile). */
  .wz-druck--shotlist .wz-d-tabelle { table-layout: auto; }
  .wz-druck--shotlist .wz-d-tabelle th, .wz-druck--shotlist .wz-d-tabelle td { padding-right: 5mm; }
  .wz-druck--shotlist .wz-d-tabelle th:last-child, .wz-druck--shotlist .wz-d-tabelle td:last-child { padding-right: 0; }
  .wz-druck--shotlist .wz-d-eng { width: 1%; white-space: nowrap; }
  .wz-druck--shotlist .wz-s-szene { width: 1%; }
  .wz-druck--shotlist th { white-space: nowrap; }
  .wz-druck--shotlist .wz-s-beschreibung { min-width: 40mm; }
  .wz-druck--shotlist .wz-s-notiz { min-width: 26mm; }

  /* Drehplan: A4 hoch, 186 mm nutzbare Breite */
  /* rechts ein halber Millimeter Luft: Safari schneidet sonst die rechte Linie des zweiten Blocks am Blattrand ab */
  .wz-d-bloecke { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5mm; margin: 0 0 4mm; padding-right: .5mm; }
  .wz-d-bloecke.wz-d-einzeln { grid-template-columns: minmax(0, 1fr); }
  .wz-d-block { padding: 2.5mm 4mm 3mm; border: .9pt solid #000; break-inside: avoid; }
  .wz-d-block-titel { margin: 0 0 1mm; font-size: 8pt; font-weight: 700; }
  .wz-d-block-gross { margin: 0; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-weight: 800; font-size: 14pt; line-height: 1.2; overflow-wrap: break-word; }
  .wz-d-block-text { margin: .8mm 0 0; font-size: 10pt; white-space: pre-line; overflow-wrap: break-word; }
  .wz-d-angaben { display: grid; grid-template-columns: 46mm minmax(0, 1fr); gap: 1.2mm 4mm; margin: 0 0 1mm; font-size: 9.5pt; }
  .wz-d-angaben dt { margin: 0; font-weight: 700; }
  .wz-d-angaben dd { margin: 0; white-space: pre-line; overflow-wrap: break-word; }
  .wz-d-abschnitt { margin: 4.5mm 0 0; }
  .wz-d-abschnitt-titel { margin: 0 0 1.5mm; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-weight: 800; font-size: 12pt; line-height: 1.25; break-after: avoid; page-break-after: avoid; }
  .wz-druck--drehplan .wz-s-zeit { width: 17mm; }
  .wz-druck--drehplan .wz-s-ort { width: 38mm; }
  .wz-druck--drehplan .wz-s-notiz { width: 46mm; }
  .wz-druck--drehplan .wz-s-call { width: 22mm; }
  .wz-druck--drehplan .wz-s-telefon { width: 40mm; }
  .wz-druck--drehplan .wz-s-halb { width: 50mm; }
}
/* Shotlist hochkant (Safari ohne gewähltes Querformat): kleinere Schrift und engere Spalten, damit Beschreibung und Notiz
   Platz behalten. Gemessen wird die Breite des Blatts selbst (Container-Abfrage): Eine Medienabfrage nach dem Format
   (orientation) wertet Chrome vor dem Seitenformat aus, sie träfe dort auch auf das Querformat zu. */
@media print {
  .wz-druck--shotlist { container-type: inline-size; container-name: wzblatt; }
  @container wzblatt (max-width: 215mm) {
    .wz-druck--shotlist .wz-d-tabelle { font-size: 8pt; }
    .wz-druck--shotlist .wz-d-tabelle th { padding-right: 2mm; font-size: 7pt; }
    .wz-druck--shotlist .wz-d-tabelle td { padding-right: 2mm; }
    .wz-druck--shotlist .wz-d-tabelle th:last-child, .wz-druck--shotlist .wz-d-tabelle td:last-child { padding-right: 0; }
    .wz-druck--shotlist .wz-s-beschreibung { min-width: 34mm; }
    .wz-druck--shotlist .wz-s-notiz { min-width: 22mm; }
  }
}

/* ---------- 9 Storyboard (26.11.2026) ---------- */
/* /werkzeuge/storyboard-erstellen.html mit werkzeug-storyboard.js. Bildfelder im Raster statt Zeilen. Der Raster richtet
   sich nach seinem Platz (Container-Abfrage): eine Spalte am Handy, ab 560 px zwei, ab 840 px so viele wie gewählt.
   Im Format 16:9 steht das Bild über den Feldern. Im Format 9:16 steht es links daneben, sobald die Karte breit genug ist,
   sonst schmal und mittig darüber (sonst würde ein Shot sehr hoch). */

/* Kopffelder: Projektname, Datum, Kunde */
@media (min-width: 640px) {
  .wz-felder--storyboard .wz-f-datum { grid-column: span 5; }
  .wz-felder--storyboard .wz-f-kunde { grid-column: span 7; }
}
@media (min-width: 960px) {
  .wz-felder--storyboard .wz-f-projekt { grid-column: span 5; }
  .wz-felder--storyboard .wz-f-datum { grid-column: span 3; }
  .wz-felder--storyboard .wz-f-kunde { grid-column: span 4; }
}

/* Ansicht: drei Umschalter (Bildformat, Shots je Zeile, PDF-Blatt). Die gewählte Seite ist eine weiße Fläche mit feiner
   Linie auf einer leisen Spur, ohne Lila: Lila bleibt der Hauptaktion, den Links und dem Schreiben. */
.wz-sb-ansicht { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 32px; margin: 0 0 24px; }
.wz-wahl { min-width: 0; margin: 0; padding: 0; border: 0; }
.wz-wahl legend { margin: 0 0 6px; padding: 0; font-size: .875rem; font-weight: 600; line-height: 1.3; color: var(--text-2); }
.wz-wahl-knoepfe { display: flex; padding: 3px; border-radius: 12px; background: var(--wz-leise); }
.wz-wahl-knoepfe label { position: relative; display: block; flex: 1 1 0; }
.wz-wahl-knoepfe input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.wz-wahl-knoepfe span { display: flex; align-items: center; justify-content: center; min-width: 60px; min-height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; font-size: .9375rem; font-weight: 600; line-height: 1; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; transition: color .15s, background-color .15s, border-color .15s; }
.wz-wahl-knoepfe label:hover span { color: var(--text); }
.wz-wahl-knoepfe input:checked + span { border-color: var(--wz-feldrand); background: var(--flaeche); color: var(--text); }
.wz-wahl-knoepfe input:focus-visible + span { outline: 2px solid var(--akzent); outline-offset: 1px; }
@media (min-width: 1025px) {
  .wz-wahl-knoepfe span { min-height: 32px; }
}

/* Raster */
.wz-sb-liste { container-type: inline-size; container-name: wzsb; border-radius: 16px; }
.wz-sb-raster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@container wzsb (min-width: 560px) {
  .wz-sb-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container wzsb (min-width: 840px) {
  .wz-sb-liste[data-spalten="3"] .wz-sb-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Ein Shot: oben Nummer und Aktionen, darunter Bild und Felder. Die Karte misst ihren eigenen Platz (für 9:16, unten). */
.wz-sb-shot { container-type: inline-size; container-name: wzsbshot; display: grid; gap: 12px; align-content: start; min-width: 0; padding: 12px 12px 16px; border: 1px solid var(--rand); border-radius: 14px; background: var(--flaeche); scroll-margin: calc(var(--wz-kopfhoehe) + 16px) 0 16px; }
.wz-sb-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; margin: -4px -4px 0 0; }
.wz-sb-nr { padding-left: 2px; font-size: .9375rem; font-weight: 700; line-height: 1.3; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wz-sb-aktionen { display: flex; align-items: center; gap: 2px; }
.wz-sb-inhalt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.wz-sb-angaben { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px 8px; align-content: start; min-width: 0; }
.wz-sb-angaben .wz-z-groesse { grid-column: span 8; }
.wz-sb-angaben .wz-z-dauer { grid-column: span 4; }

/* Bildfläche. Feste Breite (100 %): Ohne sie hatte eine Fläche mit aspect-ratio in WebKit schon einmal die Größe 0 × 0. */
.wz-sb-bild { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--flaeche-2); overflow: hidden; }
/* 9:16: In einer schmalen Karte steht das Bild mittig über den Feldern, höchstens 200 px breit (daneben blieben den Feldern
   am Handy keine 160 px, Wörter brachen im Textfeld um). Ab 380 px Platz in der Karte steht es links neben den Feldern. */
.wz-sb-liste[data-format="916"] .wz-sb-bild { width: min(60%, 200px); justify-self: center; aspect-ratio: 9 / 16; }
@container wzsbshot (min-width: 380px) {
  .wz-sb-liste[data-format="916"] .wz-sb-inhalt { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .wz-sb-liste[data-format="916"] .wz-sb-bild { width: 100%; }
  .wz-sb-liste[data-format="916"] .wz-sb-angaben .wz-z-groesse,
  .wz-sb-liste[data-format="916"] .wz-sb-angaben .wz-z-dauer { grid-column: 1 / -1; }
}
.wz-sb-bild img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.wz-sb-bild--ganz img { object-fit: contain; }
/* Feine Linie über dem Bild: Sie hält auch helle Bilder und Skizzen zusammen */
.wz-sb-bild--voll::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--rand); border-radius: inherit; pointer-events: none; }

/* Leere Fläche: ein großer Knopf zum Auswählen, zugleich Ziel zum Hineinziehen. Am Touchscreen heißt er nur „Bild auswählen“. */
.wz-sb-waehlen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; margin: 0; padding: 12px; border: 1px dashed rgba(23, 22, 34, .28); border-radius: 10px; background: transparent; color: var(--text-2); font-family: inherit; font-size: .875rem; font-weight: 600; line-height: 1.35; text-align: center; text-wrap: balance; cursor: pointer; transition: border-color .15s, color .15s, background-color .15s; }
.wz-sb-waehlen svg { display: block; width: 22px; height: 22px; flex: none; }
.wz-sb-waehlen:hover { border-color: var(--wz-feldrand-stark); background: var(--wz-leise); color: var(--text); }
.wz-sb-waehlen:focus-visible { outline: 2px solid var(--akzent); outline-offset: -2px; }
.wz-sb-finger { display: none; }
@media (hover: none) {
  .wz-sb-maus { display: none; }
  .wz-sb-finger { display: inline; }
}

/* Beim Hineinziehen: der Shot unter dem Zeiger, oder das ganze Raster für neue Shots */
.wz-sb-bild.wz-sb-ziel { outline: 2px solid var(--akzent); outline-offset: 2px; }
.wz-sb-bild.wz-sb-ziel .wz-sb-waehlen { border-color: var(--akzent); background: var(--akzent-weich); color: var(--akzent); }
.wz-sb-liste.wz-sb-ziel { outline: 2px dashed var(--akzent); outline-offset: 8px; }

/* Knöpfe auf dem Bild: ersetzen, ganz zeigen oder füllen, entfernen. Im Format 9:16 untereinander. */
.wz-sb-bildknoepfe { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.wz-sb-liste[data-format="916"] .wz-sb-bildknoepfe { flex-direction: column; }
.wz-sb-bildknopf { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(23, 22, 34, .16); border-radius: 9px; background: rgba(255, 255, 255, .94); color: var(--text); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.wz-sb-bildknopf svg { display: block; width: 18px; height: 18px; }
.wz-sb-bildknopf:hover { border-color: var(--wz-feldrand-stark); background: #fff; }
.wz-sb-bildknopf--rot:hover { color: var(--wz-rot); }
.wz-sb-bildknopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }
@media (min-width: 640px) {
  .wz-sb-bildknopf { width: 32px; height: 32px; border-radius: 8px; }
}
.wz-sb-ungesichert { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--wz-rot); font-size: .75rem; font-weight: 600; line-height: 1.3; }

/* Unter dem Raster: zwei Knöpfe zum Hinzufügen, rechts die Summe, darunter eine Meldung (nur wenn es etwas zu sagen gibt) */
.wz-sb-plusse { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.wz-sb-plusse .wz-plus + .wz-plus { margin-left: 0; }
.wz-plus:disabled { opacity: .45; cursor: default; background: transparent; }
.wz-sb-meldung { margin: 8px 0 0; max-width: 80ch; font-size: .875rem; line-height: 1.5; color: var(--text-2); }
.wz-sb-meldung:empty { display: none; }
.wz-sb-meldung--wichtig { color: var(--wz-rot); }

/* Schritte im Ratgeber: nummeriert, die Zahl in einem feinen Kreis */
.wz-schritte { list-style: none; counter-reset: wzschritt; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.wz-schritte li { position: relative; padding-left: 36px; counter-increment: wzschritt; }
.wz-schritte li::before { content: counter(wzschritt); position: absolute; left: 0; top: .1em; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--wz-feldrand); border-radius: 50%; font-size: .8125rem; font-weight: 700; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }

/* Blatt für das PDF. Format und Rand setzt werkzeug-storyboard.js (A4 quer oder hoch, 10 mm Rand). Je Zeile des Rasters
   ein Block, der nie über zwei Seiten geteilt wird. Das Blatt richtet sich nach seiner wirklichen Breite (Container-
   Abfrage), nicht nach der Wahl: Safari druckt hochkant, bis man im Druckfenster das Querformat wählt.
   Maße für A4 quer (277 mm Breite, sechs Shots je Seite bei drei je Zeile) und hoch (190 mm Breite). */
@media print {
  .wz-druck--storyboard { container-type: inline-size; container-name: wzsbblatt; }
  .wz-druck--storyboard .wz-d-kopf { margin-bottom: 5mm; }
  /* rechts ein halber Millimeter Luft: Chrome schnitt hochkant die rechte Linie der letzten Spalte am Blattrand ab */
  .wz-sb-d-reihe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 6mm; margin: 0 0 6mm; padding-right: .5mm; break-inside: avoid; page-break-inside: avoid; }
  /* Kein Abstand nach der letzten Zeile: WebKit legte dafür eine leere Seite an */
  .wz-sb-d-reihe:last-child { margin-bottom: 0; }
  .wz-sb-d--n2 .wz-sb-d-reihe { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8mm; }
  .wz-sb-d-shot { min-width: 0; }
  .wz-sb-d-bild { position: relative; width: 100%; aspect-ratio: 16 / 9; border: .9pt solid #000; overflow: hidden; }
  .wz-sb-d--f916 .wz-sb-d-bild { aspect-ratio: 9 / 16; }
  .wz-sb-d-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .wz-sb-d-ganz img { object-fit: contain; }
  .wz-sb-d-text { min-width: 0; padding-top: 2mm; font-size: 8.5pt; line-height: 1.36; }
  .wz-sb-d-meta { display: flex; align-items: baseline; gap: 2.5mm; margin: 0 0 1mm; }
  .wz-sb-d-nr { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-weight: 800; font-size: 10.5pt; line-height: 1; color: #000; }
  .wz-sb-d-beschreibung { margin: 0 0 1mm; white-space: pre-line; overflow-wrap: break-word; }
  .wz-sb-d-ton { margin: 0; white-space: pre-line; overflow-wrap: break-word; color: #222; }
  .wz-sb-d-ton b { font-weight: 700; color: #000; }
  /* Leere Vorlage: Linien zum Ausfüllen von Hand, 6 mm Abstand wie auf liniertem Papier */
  .wz-sb-d-leer { padding-top: .5mm; }
  .wz-sb-d-zeile { display: flex; align-items: flex-end; gap: 1.5mm; height: 6mm; font-size: 7.5pt; line-height: 1.2; color: #333; }
  .wz-sb-d-zeile .wz-sb-d-nr { margin-right: 1mm; }
  .wz-sb-d-strich { flex: 1 1 auto; min-width: 6mm; height: 4mm; border-bottom: .5pt solid #8a8a8a; }
  .wz-sb-d-strich--kurz { flex: 0 0 12mm; }
  .wz-d-rechts.wz-sb-d-ausfuellen { width: 72mm; text-align: left; }
  /* Herkunft im Kopf statt am Blattende, nur ohne Randfelder (dort steht sie in der Fußzeile jeder Seite) */
  .wz-sb-d-marke { display: block; margin-top: 1.2mm; font-size: 8pt; font-weight: 400; color: #555; }
  .wz-sb-d-ausfuellen .wz-sb-d-marke { text-align: right; }
  html.wz-randfelder .wz-sb-d-marke { display: none; }
  /* Bild neben dem Text: im Format 9:16 immer, im Format 16:9 bei zwei Shots je Zeile auf dem Querblatt */
  .wz-sb-d--f916 .wz-sb-d-shot { display: grid; grid-template-columns: 40mm minmax(0, 1fr); column-gap: 3.5mm; align-items: start; }
  .wz-sb-d--f916 .wz-sb-d-text { padding-top: 0; }
  @container wzsbblatt (max-width: 215mm) {
    .wz-sb-d--f916.wz-sb-d--n3 .wz-sb-d-shot { grid-template-columns: 24mm minmax(0, 1fr); column-gap: 2.5mm; }
  }
  @container wzsbblatt (min-width: 216mm) {
    .wz-sb-d--f169.wz-sb-d--n2 .wz-sb-d-shot { display: grid; grid-template-columns: 80mm minmax(0, 1fr); column-gap: 4mm; align-items: start; }
    .wz-sb-d--f169.wz-sb-d--n2 .wz-sb-d-text { padding-top: 0; }
  }
}
