/* Projekte am Handy (Moritz, 2026-11-18), zu deliveries-handy.js.
   Kunden schauen zwischen zwei Terminen nach: was ist neu, was wartet auf mich,
   Foto oder Video aufs Handy. Deshalb Zeilen statt Kacheln, eine Karte mit EINEM
   Hauptknopf je Ordner, Fotos im Raster, Video mit Freigabe direkt unter dem Bild.
   Gilt nur unter 768px (gleiche Grenze wie die Handy-Leiste in mobile-nav.js).

   Marke (REGELN.md): Unbounded Black nur fuer grosse Titel (Versalien, 1.1, -1 %),
   sonst Funnel Display in 400 und 600, nie in Versalien. Drei Schriftgroessen je Flaeche:
   28 (Titel), 17 (Zeilen, Knoepfe), 15 (Text); Schilder auf Fotos 13. Konturen 1 px
   (dunkel 20 % Weiss, hell #B0ADAC), keine Schatten, Fotos und Karten mit 20 px Ecken.
   Rot bleibt Warnungen vorbehalten: Auswahl, Freigabe und "wartet auf dich" sind neutral.
   Farben nur ueber die Theme-Variablen, animiert nur transform und opacity.
   Abstaende im 8er-Raster. Seiten-Style laedt davor, daher Praefix pjh- oder IDs. */

:root { --pjh-text: 15px; --pjh-kontur: rgba(244,244,244,0.2); --pjh-flaeche: var(--bg-s1, #161616); --pjh-ton: rgba(244,244,244,0.1); --pjh-ton-stark: rgba(244,244,244,0.16); }
[data-theme="light"] { --pjh-kontur: #B0ADAC; --pjh-flaeche: transparent; --pjh-ton: rgba(10,7,8,0.06); --pjh-ton-stark: rgba(10,7,8,0.1); }

/* Am Computer gibt es die Handy-Bausteine nicht */
#pjh-projekte, #pjh-kopf, #pjh-ordner, #pjh-video-kopf, #pjh-video-aktionen, #pjh-auswahlleiste, #pjh-stelle, .pjh-composer-fuss, #pjh-kommentar-info, .pjh-lb-hinweis, .pjh-rv-ico, .pjh-rv-zeit, #pjh-lb-sichern, #pjh-lb-wahl { display:none; }
.pjh-unsichtbar { position:absolute !important; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

@media (max-width:767px) {
  html.pjh { -webkit-tap-highlight-color:transparent; }
  /* theme.js blendet Farben auf allen divs, spans und Knoepfen 0,4 s ueber. Eine Wurzelklasse
     (0,1,0) schlaegt dessen Element-Regeln, verliert aber gegen jede eigene Klassen-Regel weiter
     unten (Wiki light-theme-fallen, Nachtrag 26.10.). */
  .pjh-bereich, .pjh-bereich :where(div, span, p, a, button, h1, h2, h3, i, section, img, input, textarea, label) { transition:none; }
  /* Fremde Bausteine in den Handy-Bereichen bringen eigene Farb-Uebergaenge mit, auch inline. */
  html.pjh :is(.pjh-kommentare, #pjh-composer, #project-actions, #version-bar, #detail-grid .dg-info),
  html.pjh :is(.pjh-kommentare, #pjh-composer, #project-actions, #version-bar, #detail-grid .dg-info) *, #vl-lightbox.pjh-lb * { transition:none !important; }
  html.pjh :is(.pjh-kommentare, #pjh-composer, #project-actions, #version-bar, #detail-grid .dg-info) :is(button, a, .cmt-row), #vl-lightbox.pjh-lb :is(button, a) { transition:transform .15s cubic-bezier(.16,1,.3,1), opacity .15s ease !important; }
  .pjh-bereich :where(p, span, h1, h2) { text-wrap:pretty; }

  /* ---- Ersetztes aus der Computer-Ansicht ---- */
  .pjh-ersetzt, html.pjh #sidebar-toggle-btn, html.pjh #sl-tray:not(.sl-offen), html.pjh #vl-actionbar { display:none !important; }
  /* "Share-Links verwalten" oeffnet die Leiste: dann ueber der Handy-Leiste, volle Breite (Fenja, 20.11.).
     Die Pille darunter schliesst sie wieder, die Details kommen als Fenster (share-admin.js). */
  html.pjh #sl-tray.sl-offen { left:16px !important; right:16px; z-index:130 !important; }
  html.pjh #sl-tray.sl-offen #sl-panel { width:auto !important; max-height:min(60vh, calc(100vh - 260px)) !important; }
  html.pjh #sl-tray.sl-offen #sl-panel > div:last-child { display:none; }
  html.pjh #sl-tray.sl-offen .sl-row { min-height:48px; }
  html.pjh #sl-tray.sl-offen #sl-pill { min-height:44px; margin-left:auto; }
  html.pjh #pjh-projekte, html.pjh #pjh-kopf, html.pjh #pjh-ordner, html.pjh #pjh-video-kopf, html.pjh #pjh-video-aktionen { display:block; }
  html.pjh main.page-content { padding-top:88px !important; padding-left:16px !important; padding-right:16px !important; }
  html.pjh #videos-view .vl-kopfzeile, html.pjh #videos-grid, html.pjh #videos-empty, html.pjh #breadcrumb-nav, html.pjh #breadcrumb-detail { display:none !important; }
  /* Team-Knoepfe am Ordner (Freigeben, Unterordner, Teilen, Menue): beschriftet, 44 px */
  html.pjh #videos-view > .flex.items-center.gap-4.mb-5 { margin-bottom:24px !important; min-height:0 !important; }
  html.pjh #videos-view > .flex.items-center.gap-4.mb-5:has(#project-actions:empty) { display:none; }
  html.pjh #project-actions { flex-wrap:wrap; gap:8px; }
  html.pjh #project-actions .hdr-btn { min-height:44px; padding:0 16px; font-family:'Funnel Display', sans-serif !important; font-size:var(--pjh-text, 15px) !important; font-weight:600 !important; text-transform:none !important; letter-spacing:0 !important; }
  html.pjh #project-actions .btn-text { display:inline !important; }
  html.pjh #project-actions .ctx-trigger { width:44px !important; height:44px !important; }
  /* "Unterordner" las sich als "zeigen": am Handy heisst der Knopf, was er tut (Name fuer Screenreader bleibt "Unterordner erstellen") */
  html.pjh #project-actions button[onclick^="createSubfolder"] .btn-text { display:none !important; }
  html.pjh #project-actions button[onclick^="createSubfolder"]::after { content:'Neuer Ordner'; }
  html.pjh #project-actions button[onclick^="createSubfolder"] { background:transparent !important; border:0 !important; box-shadow:inset 0 0 0 1px var(--pjh-kontur) !important; }
  .pjh-baum .material-symbols-outlined { font-size:18px; color:inherit !important; }
  .pjh-baum { gap:6px; }
  html.pjh #videos-grid-tail:not(:empty) { margin-top:24px; }
  html.pjh #proj-drop-zone { min-height:44px; }

  /* ---- Seitenkopf der Projektliste ---- */
  html.pjh #page-header { margin-bottom:24px !important; }
  html.pjh #page-header h1 { font-size:28px !important; line-height:1.1 !important; letter-spacing:-0.01em !important; font-weight:900 !important; }
  html.pjh #share-links-trigger-wrap { margin-top:16px !important; gap:8px !important; }
  html.pjh #share-links-trigger-wrap > * { min-height:44px; font-family:'Funnel Display', sans-serif !important; font-size:var(--pjh-text, 15px) !important; font-weight:600 !important; text-transform:none !important; letter-spacing:0 !important; }
  html.pjh #projects-kopf { margin-bottom:16px; }
  html.pjh #projects-jahre .vl-seg { display:flex; width:100%; padding:2px; box-shadow:none; }
  html.pjh #projects-jahre .vl-seg-btn { flex:1 1 0; min-height:44px; font-family:'Funnel Display', sans-serif; font-size:var(--pjh-text, 15px); font-weight:600; }
  html.pjh #projects-jahre .vl-seg-btn:not(.on) { color:var(--fg-a700, rgba(255,255,255,0.7)); }
  html.pjh #projects-jahre, html.pjh #projects-jahre .vl-seg { transition:none !important; }
  html.pjh #projects-jahre .vl-seg-btn { transition:transform .15s ease, opacity .15s ease !important; }
  html.pjh #projects-jahre .vl-seg-btn:active { transform:scale(.98); }

  /* ---- Knoepfe: Kontur-Pille, der eine Hauptknopf gefuellt ---- */
  .pjh-knopf { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:0 20px; border-radius:9999px; border:0; cursor:pointer;
    font-family:'Funnel Display', sans-serif; font-size:17px; font-weight:600; line-height:1.2; white-space:nowrap; text-decoration:none; touch-action:manipulation; user-select:none; -webkit-user-select:none;
    background:var(--btn-primary-bg, #F4F4F4); color:var(--btn-primary-fg, #0A0708);
    transition:transform .15s cubic-bezier(.16,1,.3,1), opacity .15s ease; }
  .pjh-knopf .material-symbols-outlined { font-size:20px; color:inherit !important; }
  .pjh-knopf:active { transform:scale(.98); }
  .pjh-knopf:focus-visible { outline:2px solid var(--fg-1, #F4F4F4); outline-offset:3px; }
  .pjh-knopf.leise { background:transparent; color:var(--fg-1, #F4F4F4); box-shadow:inset 0 0 0 1px var(--pjh-kontur); }
  .pjh-knopf.klein { min-height:44px; padding:0 16px; font-size:var(--pjh-text, 15px); }
  .pjh-knopf.breit { width:100%; }
  .pjh-knopf[disabled] { opacity:.5; cursor:default; transform:none; }
  .pjh-knopf > span:not(.material-symbols-outlined) { overflow:hidden; text-overflow:ellipsis; }
  @media (hover:hover) and (pointer:fine) { .pjh-knopf:not([disabled]):hover { opacity:.88; } }
  /* Jede Aktion hat Knopf-Form: kleine Kontur-Pille */
  .pjh-textknopf { display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px; padding:0 16px; margin:0; border:0; border-radius:9999px; background:none; cursor:pointer;
    box-shadow:inset 0 0 0 1px var(--pjh-kontur); white-space:nowrap;
    font-family:'Funnel Display', sans-serif; font-size:var(--pjh-text, 15px); font-weight:600; color:var(--fg-1, #F4F4F4); text-decoration:none; touch-action:manipulation; transition:opacity .15s ease, transform .15s ease; }
  .pjh-textknopf:active { transform:scale(.98); opacity:.7; }
  .pjh-textknopf:focus-visible { outline:2px solid var(--fg-1, #F4F4F4); outline-offset:2px; border-radius:8px; }
  .pjh-rund { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; flex-shrink:0; border-radius:50%; cursor:pointer;
    background:transparent; color:var(--fg-1, #F4F4F4); border:0; box-shadow:inset 0 0 0 1px var(--pjh-kontur); transition:transform .15s ease; }
  .pjh-rund .material-symbols-outlined { font-size:20px; color:inherit !important; }
  .pjh-rund:active { transform:scale(.96); }
  .pjh-rund:focus-visible { outline:2px solid var(--fg-1, #F4F4F4); outline-offset:2px; }

  /* ---- Kopf (Ordner, Video, Team-Firma) ---- */
  .pjh-kopfzeile { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:-8px 0 8px; }
  .pjh-zurueck { display:inline-flex; align-items:center; gap:2px; min-height:44px; max-width:100%; min-width:0; padding:0 12px 0 0; margin-left:-6px; border:0; background:none; cursor:pointer;
    font-family:'Funnel Display', sans-serif; font-size:17px; font-weight:600; color:var(--fg-1, #F4F4F4); touch-action:manipulation; transition:opacity .15s ease, transform .15s ease; }
  .pjh-zurueck .material-symbols-outlined { font-size:26px; color:inherit !important; flex-shrink:0; }
  .pjh-zurueck span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .pjh-zurueck:active { transform:translateX(-2px); opacity:.7; }
  .pjh-zurueck:focus-visible { outline:2px solid var(--fg-1, #F4F4F4); outline-offset:2px; border-radius:10px; }
  .pjh-titel { font-family:'Unbounded', sans-serif; font-weight:900; text-transform:uppercase; letter-spacing:-0.01em; font-size:28px; line-height:1.1;
    color:var(--fg-1, #F4F4F4); overflow-wrap:anywhere; hyphens:auto; margin:0 0 8px; }
  .pjh-titel.klein { font-size:24px; }
  .pjh-unter, .pjh-notiz { font-family:'Funnel Display', sans-serif; font-size:var(--pjh-text, 15px); font-weight:400; line-height:1.5; color:var(--fg-a700, rgba(255,255,255,0.7)); margin:0; }
  #pjh-kopf, #pjh-video-kopf { margin-bottom:24px; }
  .pjh-entwurf { display:inline-block; vertical-align:middle; padding:2px 8px; border-radius:9999px; font-family:'Funnel Display', sans-serif; font-size:var(--pjh-text, 15px); font-weight:600;
    letter-spacing:0; text-transform:none; color:var(--fg-1, #F4F4F4); box-shadow:inset 0 0 0 1px var(--pjh-kontur); }

  /* ---- Abschnitte und Zeilen ---- */
  .pjh-block { margin-bottom:32px; }
  .pjh-abschnitt { font-family:'Funnel Display', sans-serif; font-size:17px; font-weight:600; letter-spacing:0; text-transform:none; color:var(--fg-1, #F4F4F4); margin:0 0 8px; }
  .pjh-abschnitt-zeile { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
  .pjh-abschnitt-zeile .pjh-abschnitt { margin:0; }
  .pjh-anzahl { font-weight:400; color:var(--fg-a700, rgba(255,255,255,0.7)); }
  .pjh-zeile-wrap { position:relative; }
  .pjh-zeile { display:flex; align-items:center; gap:16px; min-height:88px; padding:8px; margin:0 -8px; border-radius:20px; text-decoration:none; color:inherit; cursor:pointer;
    touch-action:manipulation; transition:transform .15s cubic-bezier(.16,1,.3,1), opacity .15s ease; }
  .pjh-zeile:active { transform:scale(.98); opacity:.85; }
  .pjh-zeile:focus-visible { outline:2px solid var(--fg-1, #F4F4F4); outline-offset:-2px; }
  @media (hover:hover) and (pointer:fine) { .pjh-zeile:hover { opacity:.88; } }
  .pjh-zeile-bild { position:relative; flex-shrink:0; width:80px; height:80px; border-radius:20px; overflow:hidden; background:var(--pjh-ton);
    display:flex; align-items:center; justify-content:center; }
  .pjh-zeile-bild img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
  .pjh-zeile-bild.video { width:96px; height:72px; background:#0A0708; }
  .pjh-ersatz { font-size:28px; color:var(--fg-a700, rgba(255,255,255,0.7)) !important; }
  .pjh-ini { font-family:'Unbounded', sans-serif; font-weight:900; font-size:24px; color:var(--fg-a700, rgba(255,255,255,0.7)); }
  .pjh-play { position:absolute; left:50%; top:50%; width:32px; height:32px; margin:-16px 0 0 -16px; border-radius:50%; display:flex; align-items:center; justify-content:center;
    background:rgba(10,7,8,0.6); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
  .pjh-play .material-symbols-outlined { font-size:22px; color:#F4F4F4 !important; font-variation-settings:'FILL' 1; }
  .pjh-dauer { position:absolute; right:4px; bottom:4px; padding:1px 6px; border-radius:6px; background:rgba(10,7,8,0.72); color:#F4F4F4;
    font-family:'Funnel Display', sans-serif; font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; }
  .pjh-zeile-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
  .pjh-zeile-titel { font-family:'Funnel Display', sans-serif; font-size:17px; font-weight:600; line-height:1.3; color:var(--fg-1, #F4F4F4); overflow-wrap:anywhere;
    display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
  .pjh-zeile-meta { display:block; font-family:'Funnel Display', sans-serif; font-size:var(--pjh-text, 15px); font-weight:400; line-height:1.4; color:var(--fg-a700, rgba(255,255,255,0.7)); }
  .pjh-zeile-meta:has(.pjh-datum:empty):has(.pjh-zahlen:empty) { display:none; }
  /* Datum und Zahlen immer untereinander: jede Zeile gleich gebaut, kein Trennpunkt, der beim Umbruch haengt */
  .pjh-zeile-meta.mit-zahl { display:flex; flex-direction:column; }
  .pjh-zeile-meta .pjh-datum:empty, .pjh-zeile-meta .pjh-zahlen:empty { display:none; }
  .pjh-stand:empty { display:none; }
  .pjh-stand { margin-top:4px; }
  .pjh-pfeil { flex-shrink:0; font-size:24px; color:var(--fg-a700, rgba(255,255,255,0.7)) !important; margin-right:-4px; }
  /* Team-Menue an der Zeile ersetzt den Pfeil */
  .pjh-menue { position:absolute; right:-4px; top:50%; transform:translateY(-50%); }
  .pjh-menue .ctx-menu { position:static !important; }
  .pjh-menue .ctx-trigger { position:static !important; opacity:1 !important; width:44px !important; height:44px !important; border-radius:50% !important; background:transparent !important; box-shadow:inset 0 0 0 1px var(--pjh-kontur) !important; }
  .pjh-zeile-wrap:has(.pjh-menue) .pjh-pfeil { display:none; }
  /* Team: Platz fuer das Menue rechts, damit Zeile und Knopf nicht aneinanderstossen */
  .pjh-zeile-wrap:has(.pjh-menue) .pjh-zeile { padding-right:60px; }

  /* Stand: getoente Flaeche ohne Rand (sieht nicht aus wie ein Knopf). "Du bist dran" traegt der Text, kraeftiger getoent. */
  .pjh-pille { display:inline-flex; align-items:center; gap:6px; min-height:28px; padding:2px 10px; border-radius:9999px;
    font-family:'Funnel Display', sans-serif; font-size:var(--pjh-text, 15px); font-weight:400; line-height:1.3; color:var(--fg-a700, rgba(255,255,255,0.7)); background:var(--pjh-ton); }
  .pjh-pille .material-symbols-outlined { font-size:16px; color:inherit !important; }
  .pjh-pille.dran { font-weight:600; color:var(--fg-1, #F4F4F4); background:var(--pjh-ton-stark); }
  .pjh-pille.gut .material-symbols-outlined { color:inherit !important; font-variation-settings:'FILL' 1; }
  .pjh-leer { font-family:'Funnel Display', sans-serif; font-size:var(--pjh-text, 15px); line-height:1.5; color:var(--fg-a700, rgba(255,255,255,0.7)); padding:16px 0; }
  .pjh-leerkarte { display:flex; flex-direction:column; align-items:center; gap:16px; padding:32px 24px; margin-bottom:24px; text-align:center; border-radius:20px;
    box-shadow:inset 0 0 0 1px var(--pjh-kontur); font-family:'Funnel Display', sans-serif; font-size:var(--pjh-text, 15px); line-height:1.5; color:var(--fg-a700, rgba(255,255,255,0.7)); }
  .pjh-leerkarte > .material-symbols-outlined { font-size:32px; color:var(--fg-a700, rgba(255,255,255,0.7)) !important; }
  .pjh-info { font-family:'Funnel Display', sans-serif; font-size:var(--pjh-text, 15px); line-height:1.5; color:var(--fg-a700, rgba(255,255,255,0.7)); margin:8px 0 0; }
  .pjh-info:empty { display:none; }

  /* ---- Karte "Fotos bewerten" ---- */
  .pjh-karte { margin-bottom:32px; padding:16px; border-radius:20px; background:var(--pjh-flaeche); box-shadow:inset 0 0 0 1px var(--pjh-kontur); }
  .pjh-karte-kopf { display:flex; align-items:center; justify-content:space-between; gap:8px; }
  .pjh-karte-titel { font-family:'Funnel Display', sans-serif; font-size:17px; font-weight:600; color:var(--fg-1, #F4F4F4); margin:0 0 4px; }
  .pjh-karte > :last-child, .pjh-karte-teil > :last-child { margin-bottom:0; }
  .pjh-karte-teil { margin-top:16px; padding-top:16px; border-top:1px solid var(--pjh-kontur); }
  .pjh-karte .pjh-inline { font-size:20px; vertical-align:-4px; margin-right:6px; color:inherit !important; font-variation-settings:'FILL' 1; }
  .pjh-karte-titel .pjh-inline { margin-right:8px; }
  /* "Dabei sind 4 Fotos aus [Siegerehrung]": die Unterordner der Karte direkt erreichbar */
  .pjh-karte-ordner { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:16px; font-family:'Funnel Display', sans-serif; font-size:var(--pjh-text, 15px); line-height:1.5; color:var(--fg-a700, rgba(255,255,255,0.7)); }
  .pjh-ordnerlink { gap:2px; padding:0 8px 0 16px; max-width:100%; }
  .pjh-ordnerlink .material-symbols-outlined { font-size:20px; color:inherit !important; }
  .pjh-karte-text { font-family:'Funnel Display', sans-serif; font-size:var(--pjh-text, 15px); line-height:1.5; color:var(--fg-a700, rgba(255,255,255,0.7)); margin:0 0 16px; }
  .pjh-balken { display:flex; gap:2px; height:8px; border-radius:9999px; overflow:hidden; margin-bottom:8px; }
  .pjh-balken > span { display:block; min-width:4px; background:var(--fg-1, #F4F4F4); }
  .pjh-balken > span.offen { background:none; box-shadow:inset 0 0 0 1px var(--pjh-kontur); border-radius:0 9999px 9999px 0; }
  /* Ein Zeichen je Zustand (Haken, Stift, Strich, leerer Kreis), auf Theme-Flaechen in Schriftfarbe.
     Gruen und Gelb (Freigabe-Farben aus Portal und Freigabe-Link) nur als Zeichen auf dem Foto. */
  .pjh-chip .material-symbols-outlined { font-size:18px; color:inherit !important; }
  .pjh-erledigt { display:flex; align-items:center; gap:8px; margin:0; font-family:'Funnel Display', sans-serif; font-size:17px; font-weight:600; color:var(--fg-1, #F4F4F4); }
  .pjh-luft { height:16px; }
  .pjh-erledigt .material-symbols-outlined { font-size:22px; color:inherit !important; font-variation-settings:'FILL' 1; }

  /* ---- Filter: gewaehlt = gefuellt wie der Jahr-Umschalter ---- */
  .pjh-chips { display:flex; gap:8px; overflow-x:auto; margin:0 -16px 16px; padding:2px 16px; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
  .pjh-chips::-webkit-scrollbar { display:none; }
  .pjh-chip { display:inline-flex; align-items:center; gap:8px; flex-shrink:0; min-height:44px; padding:0 16px; border-radius:9999px; cursor:pointer;
    font-family:'Funnel Display', sans-serif; font-size:var(--pjh-text, 15px); font-weight:600; white-space:nowrap; color:var(--fg-1, #F4F4F4);
    background:transparent; border:0; box-shadow:inset 0 0 0 1px var(--pjh-kontur); touch-action:manipulation; transition:transform .15s ease; }
  .pjh-chip > span { font-weight:400; font-variant-numeric:tabular-nums; color:var(--fg-a700, rgba(255,255,255,0.7)); }
  .pjh-chip.an { background:var(--pjh-ton-stark); box-shadow:inset 0 0 0 1px var(--fg-1, #F4F4F4); }
  .pjh-chip.an > span { color:var(--fg-1, #F4F4F4); font-weight:600; }
  .pjh-chip:active { transform:scale(.98); }
  .pjh-chip:focus-visible { outline:2px solid var(--fg-1, #F4F4F4); outline-offset:2px; }
  .pjh-hinweis { font-family:'Funnel Display', sans-serif; font-size:var(--pjh-text, 15px); line-height:1.5; color:var(--fg-a700, rgba(255,255,255,0.7)); margin:0 0 8px; }

  /* ---- Foto-Raster: quadratisch, aussen 20 px Ecken ---- */
  /* Zwei Spalten: Fotos gross genug zum Beurteilen, die Schilder passen auch bei 360 px */
  .pjh-raster { display:grid; grid-template-columns:repeat(2, 1fr); gap:4px; border-radius:20px; overflow:hidden; }
  .pjh-raster-mehr { height:1px; }
  .pjh-kachel { position:relative; aspect-ratio:1; padding:0; border:0; overflow:hidden; cursor:pointer; background:var(--pjh-ton); touch-action:manipulation;
    transition:transform .15s cubic-bezier(.16,1,.3,1), opacity .15s ease; }
  .pjh-kachel img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
  .pjh-kachel:active { transform:scale(.98); }
  .pjh-kachel:focus-visible { outline:3px solid var(--fg-1, #F4F4F4); outline-offset:-3px; z-index:1; }
  .pjh-kachel.raus img { opacity:.4; }
  .pjh-kachel.entwurf img { opacity:.55; }
  /* Bewertung als Schild auf dem Foto: feste Farben in beiden Themes, liest sich als Zustand, nicht als Knopf */
  .pjh-marke { position:absolute; left:6px; bottom:6px; display:inline-flex; align-items:center; gap:6px; max-width:calc(100% - 12px); padding:2px 8px; border-radius:9999px;
    background:rgba(10,7,8,0.82); box-shadow:inset 0 0 0 1px rgba(244,244,244,0.2); color:#F4F4F4; font-family:'Funnel Display', sans-serif; font-size:13px; font-weight:600; line-height:1.4; white-space:nowrap; overflow:hidden; pointer-events:none; }
  .pjh-marke .material-symbols-outlined { font-size:15px; font-weight:700; color:#F4F4F4 !important; }
  .pjh-marke.approved .material-symbols-outlined { color:#30d158 !important; }
  .pjh-marke.edit .material-symbols-outlined { color:#ffd000 !important; }
  /* Auswaehlen: Kreis oben rechts, gewaehlt = weisser Kreis mit Haken und Rahmen ums Foto */
  .pjh-haken { position:absolute; top:6px; right:6px; width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center;
    background:rgba(10,7,8,0.35); box-shadow:inset 0 0 0 2px #F4F4F4; }
  .pjh-haken .material-symbols-outlined { font-size:18px; color:#0A0708 !important; opacity:0; transform:scale(.6); transition:opacity .15s ease, transform .15s cubic-bezier(.16,1,.3,1); }
  .pjh-kachel.gewaehlt .pjh-haken { background:#F4F4F4; }
  .pjh-kachel.gewaehlt .pjh-haken .material-symbols-outlined { opacity:1; transform:scale(1); }
  .pjh-kachel.gewaehlt::after { content:''; position:absolute; inset:0; box-shadow:inset 0 0 0 3px #F4F4F4; pointer-events:none; }
  .pjh-raster.waehlen .pjh-kachel img { transition:transform .15s cubic-bezier(.16,1,.3,1); }
  .pjh-kachel.gewaehlt img { transform:scale(.92); }

  /* ---- Leiste beim Auswaehlen: liegt ueber der Handy-Leiste (120), wie die Fotos-App ---- */
  html.pjh #pjh-auswahlleiste { display:block; position:fixed; left:0; right:0; bottom:0; z-index:130;
    padding:12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background:var(--bg-s1, #161616) !important; border-top:1px solid var(--pjh-kontur); }
  [data-theme="light"] #pjh-auswahlleiste { background:var(--bg-body, #F7F4F2) !important; }
  .pjh-leiste-oben { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
  .pjh-leiste-zahl { font-family:'Funnel Display', sans-serif; font-size:var(--pjh-text, 15px); font-weight:600; color:var(--fg-1, #F4F4F4); }
  .pjh-leiste-knoepfe { display:flex; gap:8px; }
  .pjh-leiste-knoepfe .pjh-knopf { flex:1 1 0; min-width:0; padding:0 12px; }
  .pjh-leiste-knoepfe .pjh-knopf:last-child { flex:1.6 1 0; }
  body.pjh-waehlt main.page-content { padding-bottom:calc(160px + env(safe-area-inset-bottom, 0px)) !important; }
  body.pjh-waehlt #vl-mobile-nav { visibility:hidden; }
  body.pjh-waehlt #cchat-fab, body.pjh-waehlt #gchat-fab { bottom:calc(140px + env(safe-area-inset-bottom, 0px)) !important; }
  body.pjh-waehlt .vl-rvtoast { bottom:calc(132px + env(safe-area-inset-bottom, 0px)) !important; }
  @media (max-width:399px) { .pjh-ab400 { display:none !important; } .pjh-leiste-knoepfe .pjh-knopf { padding:0 8px !important; } }

  /* Bestaetigung der Seite (showToast): unter der oberen Leiste, Markenschrift, Rand neutral statt rot */
  html.pjh #dv-toast { pointer-events:none; top:auto !important; bottom:calc(96px + env(safe-area-inset-bottom, 0px)) !important; max-width:calc(100vw - 32px); width:max-content; text-align:center;
    font-family:'Funnel Display', sans-serif !important; font-size:var(--pjh-text, 15px) !important; box-shadow:none !important; border-color:rgba(244,244,244,0.2) !important; }
  /* Hinweis mit "rueckgaengig": gross genug fuer den Daumen, Knopf 44 px, ohne Unterstrich */
  html.pjh .vl-rvtoast { font-size:var(--pjh-text, 15px) !important; padding:4px 4px 4px 16px !important; border-radius:9999px !important; box-shadow:none !important; border:1px solid var(--pjh-kontur) !important; }
  html.pjh .vl-rvtoast button { min-height:44px; min-width:44px; padding:0 16px !important; font-size:var(--pjh-text, 15px) !important; font-weight:600; text-decoration:none !important; border-radius:9999px; box-shadow:inset 0 0 0 1px var(--pjh-kontur); flex-shrink:0; white-space:nowrap; }
  /* Langer Satz bricht um, statt den Knopf aus dem Bild zu schieben */
  html.pjh .vl-rvtoast > span { flex:1 1 auto; min-width:0; line-height:1.35; }
  /* Knopf wie ueberall gross geschrieben ("Rückgängig"); der Text der Seite bleibt am Computer, wie er ist */
  html.pjh .vl-rvtoast button { text-transform:capitalize; }

  /* ---- Video ---- */
  html.pjh #detail-view { display:flex; flex-direction:column; --pjh-text: 16px; }
  html.pjh #detail-view.hidden { display:none; }
  html.pjh #version-bar { order:1; }
  html.pjh #pjh-video-kopf { order:0; margin-bottom:16px; }
  html.pjh #compare-view { order:2; }
  html.pjh #detail-grid { order:3; display:flex !important; flex-direction:column; gap:0; }
  html.pjh #detail-grid .dg-video { order:0; }
  html.pjh #detail-grid #pjh-composer { order:0; }
  html.pjh #pjh-video-aktionen { order:1; margin:24px 0 32px; }
  html.pjh #detail-grid .dg-info { order:2; margin-bottom:24px; }
  html.pjh #detail-grid #tc-panel { order:3; }
  html.pjh #detail-grid .dg-chat { order:4; margin-top:16px; }
  /* Buehne im Querformat: Bild oben, Steuerleiste darunter statt ueber dem unteren Bilddrittel.
     Hochformat (vl-hoch) bleibt, wie views.css es am Handy festlegt (9:16, Pille ueber dem Bild). */
  html.pjh #video-container { box-shadow:none !important; border-radius:20px !important; }
  html.pjh #video-container.vl-player:not(.vl-hoch):not(.vl-kino):not(:fullscreen) {
    --pjh-h: calc((100vw - 32px) / var(--pjh-r, var(--r, 1.7778)));
    aspect-ratio:auto !important; min-height:0 !important; height:calc(var(--pjh-h) + 76px) !important; background:#0A0708 !important; }
  html.pjh #video-container.vl-player:not(.vl-hoch):not(.vl-kino):not(:fullscreen) > video { bottom:76px !important; height:auto !important; border-radius:20px 20px 0 0 !important; }
  /* Beim Schreiben bleibt das Bild klein im Blick, das Feld sitzt direkt darunter */
  body.pjh-schreibt #video-container.vl-player:not(.vl-hoch):not(.vl-kino):not(:fullscreen) { --pjh-h: min(var(--pjh-schreib-h, 28dvh), calc((100vw - 32px) / var(--pjh-r, var(--r, 1.7778)))); }
  body.pjh-schreibt #video-container.vl-player.vl-hoch:not(.vl-kino):not(:fullscreen) { width:calc((var(--pjh-schreib-h, 36dvh) + 76px) * var(--r, .5625)) !important; }
  /* Hochformat: Buehne bleibt 9:16 (wie im Player festgelegt), das Bild endet aber ueber der Leiste,
     damit die Steuerung wie im Querformat unter dem Bild steht und nichts verdeckt. Feste Hoehe:
     mit height:auto nahm das Video seine eigene Hoehe und lief unter die Leiste. */
  html.pjh #video-container.vl-player.vl-hoch:not(.vl-kino):not(:fullscreen) > video { top:0 !important; bottom:auto !important; left:50% !important; right:auto !important;
    height:calc(100% - 76px) !important; width:auto !important; aspect-ratio:var(--r, .5625); transform:translateX(-50%); object-fit:contain; border-radius:20px !important; }
  /* Die Zeitanzeige bleibt auch auf kleinen Handys (Buehne unter 320 px) */
  html.pjh #video-container.vl-winzig .vl-pill .vl-p-time { display:block; }
  body.pjh-schreibt #pjh-video-aktionen .pjh-stapel, body.pjh-schreibt #pjh-video-aktionen .pjh-stand-text { display:none; }
  .pjh-fassungen { display:flex; gap:8px; overflow-x:auto; margin:16px -16px 0; padding:2px 16px; scrollbar-width:none; }
  .pjh-fassungen::-webkit-scrollbar { display:none; }
  .pjh-video-aktionen .pjh-stapel { display:flex; flex-direction:column; gap:8px; }
  /* Freigeben und Aenderung wuenschen: solange das Video wartet, fest unten ueber der Navigationsleiste (wie okay.html).
     Die Hoehe der Navigationsleiste misst deliveries-handy.js (--pjh-nav-h). Beim Schreiben (Tastatur) verschwindet die Leiste. */
  /* <main> traegt nach dem Einblenden translateY(0): ein transformierter Vorfahre wird zum Bezugsrahmen fuer position:fixed.
     Ohne Transform sitzt die Leiste am Bildschirmrand statt am unteren Ende der Seite. */
  html.pjh main.page-content.ready { transform:none; }
  html.pjh #detail-view:not(.hidden) #pjh-fixleiste { position:fixed; left:0; right:0; bottom:var(--pjh-nav-h, calc(64px + env(safe-area-inset-bottom, 0px))); z-index:119;
    flex-direction:row; align-items:stretch; gap:8px; margin:0; padding:12px 16px; background:var(--bg-s1, #161616); border-top:1px solid var(--pjh-kontur); }
  [data-theme="light"] #pjh-fixleiste { background:var(--bg-body, #F7F4F2); }
  #pjh-fixleiste .pjh-knopf { flex:1 1 0; min-width:0; padding:0 4px; font-size:15px; white-space:nowrap; }
  .pjh-pille.pjh-okayfehlt { white-space:nowrap; }
  /* Video samt Steuerung bleibt ueber der festen Leiste im Bild: Hoehe = Fenster - Navigation - Leiste (73 px) - Kopf und Titel (~210 px).
     Hochformat: Buehne wird schmaler, bleibt aber 9:16 (wie beim Schreiben). */
  html.pjh body:has(#detail-view:not(.hidden) #pjh-fixleiste):not(.pjh-schreibt) #video-container.vl-player.vl-hoch:not(.vl-kino):not(:fullscreen) { width:min(100%, calc(max(300px, calc(100dvh - var(--pjh-nav-h, 64px) - 73px - 210px)) * var(--r, .5625))) !important; margin-left:auto; margin-right:auto; }
  body:has(#detail-view:not(.hidden) #pjh-fixleiste) main.page-content { padding-bottom:calc(var(--pjh-nav-h, 64px) + 96px) !important; }
  body:has(#detail-view:not(.hidden) #pjh-fixleiste) :is(#cchat-fab, #gchat-fab) { bottom:calc(var(--pjh-nav-h, 64px) + 84px) !important; }
  body:has(#detail-view:not(.hidden) #pjh-fixleiste) #dv-toast { bottom:calc(var(--pjh-nav-h, 64px) + 84px) !important; }
  body.pjh-schreibt #pjh-fixleiste, body:has(#detail-view :is(input, textarea, [contenteditable="true"]):focus) #pjh-fixleiste { display:none !important; }
  .pjh-video-aktionen .pjh-mitnehmen { margin:32px 0 8px; }
  .pjh-stand-text { font-family:'Funnel Display', sans-serif; font-size:var(--pjh-text, 15px); line-height:1.5; color:var(--fg-a700, rgba(255,255,255,0.7)); margin:0 0 16px; }
  .pjh-video-aktionen .pjh-erledigt { margin-bottom:8px; }
  .pjh-video-aktionen .pjh-textknopf { margin-top:8px; }
  .pjh-video-aktionen .pjh-zweiter { margin-top:8px; }
  .pjh-handy-knoepfe { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .pjh-handy-knoepfe .pjh-knopf { padding:0 8px; min-width:0; }
  /* Rueckgaengig nach dem Freigeben mit sichtbarer Frist */
  .pjh-frist-zeile { display:flex; align-items:center; gap:12px; margin-top:8px; }
  .pjh-video-aktionen .pjh-frist-zeile .pjh-textknopf { margin:0; }
  .pjh-frist { font-family:'Funnel Display', sans-serif; font-size:var(--pjh-text, 15px); color:var(--fg-a700, rgba(255,255,255,0.7)); font-variant-numeric:tabular-nums; }
  /* Gegenentscheidung nach dem Aenderungswunsch: kleiner und mit Abstand, kein gleich grosser Knopf */
  .pjh-video-aktionen .pjh-gegen { margin-top:16px; }
  /* Team-Zeile unter dem Player (Laden, Standbild, Teilen, Untertitel, Vorschaubild): 44 px, Kontur-Pillen */
  html.pjh #detail-grid .dg-info :is(#download-area, .flex.flex-wrap) { gap:8px !important; }
  html.pjh #detail-grid .dg-info button { min-height:44px; font-family:'Funnel Display', sans-serif !important; font-size:var(--pjh-text, 15px) !important; font-weight:600 !important; text-transform:none !important; letter-spacing:0 !important; box-shadow:none !important; }
  html.pjh #detail-grid .dg-info #dl-btn { background:transparent !important; color:var(--fg-1, #F4F4F4) !important; border:1px solid var(--pjh-kontur) !important; }
  html.pjh #detail-grid .dg-info button .material-symbols-outlined { color:inherit !important; }
  /* Team: Fassungen-Leiste mit 44 px */
  html.pjh #version-bar .ver-pill, html.pjh #version-bar .ver-toggle, html.pjh #version-bar .ver-add { min-height:44px; height:auto; font-size:var(--pjh-text, 15px); }
  html.pjh #version-bar .ctx-trigger { width:44px !important; height:44px !important; }
  html.pjh #version-bar .ver-label { font-size:var(--pjh-text, 15px); color:var(--fg-a700, rgba(255,255,255,0.7)); }
  html.pjh #version-bar .ver-toggle { min-width:44px; justify-content:center; color:var(--fg-a700, rgba(255,255,255,0.7)); }
  /* Am Handy nur "Fassung 2": Haken (aktuelle Fassung) las sich als "freigegeben", die Zahl
     (Kommentare) blieb unerklaert, die aufklappbare Liste braucht es neben dem Menue nicht */
  html.pjh #version-bar .ver-pill-cnt, html.pjh #version-bar .ver-pill .material-symbols-outlined, html.pjh #version-bar .ver-toggle { display:none !important; }
  html.pjh #version-bar .ver-pills { gap:8px; }
  /* Nicht gewaehlte Fassung in voller Schrift (grau las sich als gesperrt), der Unterschied ist die Flaeche */
  html.pjh #version-bar .ver-pill { color:var(--fg-1, #F4F4F4) !important; }
  /* Die offene Fassung wie beim Kunden: getoent mit voller Kontur */
  html.pjh #version-bar .ver-pill.on { background:var(--pjh-ton-stark) !important; border-color:var(--fg-1, #F4F4F4) !important; }
  /* "Mehr zu Fassung 2" und "Neue Fassung" in einer Zeile, links beginnend */
  html.pjh #version-upload-hint { margin-left:0 !important; }
  html.pjh #version-bar .ver-add { padding:0 12px !important; gap:4px !important; color:var(--fg-1, #F4F4F4) !important; }
  /* Menue der offenen Fassung mit Wort ("Mehr zu Fassung 2") statt nur drei Punkten */
  html.pjh #version-bar .ver-ctx-aktiv .ctx-trigger:has(.pjh-ctx-wort) { width:auto !important; height:44px !important; padding:0 12px 0 8px; gap:4px; display:inline-flex; align-items:center; opacity:1; border-radius:9999px;
    font-family:'Funnel Display', sans-serif; font-size:var(--pjh-text, 15px); font-weight:600; color:var(--fg-1, #F4F4F4); }
  html.pjh #version-bar .ver-ctx-aktiv .ctx-trigger .material-symbols-outlined { color:inherit !important; }
  html.pjh #version-bar .ver-dot { display:none; }

  /* Kommentare: Liste waechst mit, Eingabe darunter mit der Stelle im Video */
  html.pjh .pjh-kommentare { height:auto !important; max-height:none !important; min-height:0 !important; border-radius:20px; box-shadow:inset 0 0 0 1px var(--pjh-kontur); border:0 !important; background:var(--pjh-flaeche) !important; }
  html.pjh .pjh-kommentare #chat-messages { max-height:none; overflow:visible; padding:8px 12px; }
  html.pjh .pjh-kommentare > div:first-child { border-bottom-color:var(--pjh-kontur) !important; }
  html.pjh .pjh-kommentare > div:first-child p { color:var(--fg-1, #F4F4F4) !important; font-family:'Funnel Display', sans-serif !important; font-size:17px !important; font-weight:600 !important; letter-spacing:0 !important; text-transform:none !important; }
  html.pjh .pjh-kommentare > div:first-child .material-symbols-outlined { display:none; }
  html.pjh .pjh-kommentare #msg-count { font-family:'Funnel Display', sans-serif !important; font-size:var(--pjh-text, 15px) !important; letter-spacing:0 !important; text-transform:none !important; color:var(--fg-a700, rgba(255,255,255,0.7)) !important; }
  html.pjh #pjh-kommentar-info { display:block; margin:0; padding:12px 16px 0; }
  html.pjh .pjh-kommentare .cmt-row { min-height:48px; padding:12px 4px !important; border-bottom-color:var(--pjh-kontur) !important; }
  html.pjh .pjh-kommentare .cmt-row:focus-visible { outline:2px solid var(--fg-1, #F4F4F4); outline-offset:-2px; }
  /* Kommentartext bleibt 16 px wie im Player am Handy (views.css, qa-player-ausbau) */
  html.pjh .pjh-kommentare .cmt-row .cmt-body { color:var(--fg-1, #F4F4F4) !important; }
  html.pjh .pjh-kommentare .cmt-row .cmt-body + p { font-size:var(--pjh-text, 15px) !important; color:var(--fg-a700, rgba(255,255,255,0.7)) !important; white-space:pre-line; }
  html.pjh .pjh-kommentare .cmt-row .cmt-tc { min-height:28px; display:inline-flex; align-items:center; font-size:var(--pjh-text, 15px) !important; font-weight:600 !important;
    background:var(--pjh-ton-stark) !important; color:var(--fg-1, #F4F4F4) !important; }
  html.pjh .pjh-kommentare .cmt-row .cmt-tc.done { color:var(--fg-a700, rgba(255,255,255,0.7)) !important; }
  html.pjh .pjh-kommentare .cmt-row .cmt-tc::before { content:''; width:6px; height:6px; border-radius:50%; background:#ffd000; margin-right:6px; flex-shrink:0; }
  html.pjh .pjh-kommentare .cmt-row { border-radius:0 !important; }
  /* Unter dem letzten Kommentar liegt schon der Rand des Eingabe-Bereichs: keine zweite Linie */
  html.pjh .pjh-kommentare .cmt-row:last-child { border-bottom:0 !important; }
  /* Aktionen (bearbeiten, loeschen, erledigt) unter den Text, die Spalte bleibt breit */
  html.pjh .pjh-kommentare .cmt-row { flex-wrap:wrap; }
  html.pjh .pjh-kommentare .cmt-row > span:last-child:not(:empty) { width:100%; justify-content:flex-end; margin-left:0 !important; }
  /* Freigegeben: Kommentieren nur noch auf Wunsch */
  html.pjh .pjh-kommentare.pjh-zu #pjh-composer { display:none; }
  /* Allgemeiner Chat (Status-Meldungen ohne Stelle): fuer Kunden am Handy aus, der Stand steht oben;
     fuers Team ohne Rot und Versalien */
  html.pjh #tc-panel.pjh-kunde ~ #general-chat-panel { display:none !important; }
  html.pjh #general-chat-panel { border-radius:20px; box-shadow:inset 0 0 0 1px var(--pjh-kontur); border:0 !important; background:var(--pjh-flaeche) !important; height:auto !important; }
  html.pjh #general-chat-panel .bg-primary { display:none; }
  html.pjh #general-chat-panel p { font-family:'Funnel Display', sans-serif !important; letter-spacing:0 !important; text-transform:none !important; }
  html.pjh #general-chat-panel > div:first-child p { font-size:17px !important; font-weight:600 !important; color:var(--fg-1, #F4F4F4) !important; }
  html.pjh #general-chat-panel .msg-mine, html.pjh #general-chat-panel .msg-other { background:var(--pjh-ton-stark) !important; color:var(--fg-1, #F4F4F4) !important; border:0 !important; }
  html.pjh #general-chat-panel .msg-mine p, html.pjh #general-chat-panel .msg-other p { font-size:var(--pjh-text, 15px) !important; color:var(--fg-1, #F4F4F4) !important; }
  html.pjh .pjh-kommentare .cmt-act, html.pjh .pjh-kommentare button[onclick*="toggleCommentDone"] { width:44px; height:44px; opacity:1; display:inline-flex; align-items:center; justify-content:center; }
  /* Team: Abhaken mit Wort, der Kreis allein war unklar */
  html.pjh .pjh-kommentare button[onclick*="toggleCommentDone"] { width:auto; gap:6px; padding:0 14px 0 10px !important; border-radius:9999px; box-shadow:inset 0 0 0 1px var(--pjh-kontur);
    font-family:'Funnel Display', sans-serif; font-size:var(--pjh-text, 15px); font-weight:600; }
  html.pjh .pjh-kommentare button[aria-label="Als erledigt markieren"]::after { content:'Erledigt'; color:var(--fg-1, #F4F4F4); }
  html.pjh .pjh-kommentare button[aria-label="Als offen markieren"]::after { content:'Wieder offen'; color:var(--fg-1, #F4F4F4); }
  html.pjh .pjh-kommentare .cmt-row > span:last-child { gap:8px !important; }
  /* Kommentar-Antworten: die Wurzel ist ein Raster (Zeitstelle | Text | Aktionen). Am Handy wie oben bei
     den Zeilen ohne Antworten: Aktionen in eigener Zeile ueber die volle Breite, rechtsbuendig, sonst
     druecken vier 44-px-Knoepfe den Text in eine Wortspalte. */
  html.pjh .pjh-kommentare .cmt-thread > .cmt-row { grid-template-columns:auto minmax(0,1fr); }
  html.pjh .pjh-kommentare .cmt-thread > .cmt-row > .cmt-aktionen:not(:empty) { grid-column:1 / -1; justify-content:flex-end; margin-left:0 !important; gap:8px !important; }
  html.pjh .pjh-kommentare .cmt-row .cmt-tc { cursor:pointer; min-height:44px !important; min-width:56px; justify-content:center; }
  html.pjh .pjh-kommentare .cmt-row .cmt-tc:focus-visible { outline:2px solid var(--fg-1, #F4F4F4); outline-offset:2px; }
  html.pjh .pjh-kommentare .cmt-act .material-symbols-outlined, html.pjh .pjh-kommentare button[onclick*="toggleCommentDone"] .material-symbols-outlined { font-size:20px !important; color:var(--fg-a700, rgba(255,255,255,0.7)) !important; }
  html.pjh .pjh-kommentare button[onclick*="toggleCommentDone"] { color:var(--fg-a700, rgba(255,255,255,0.7)) !important; }
  /* Erledigt abhaken ist Sache des Teams */
  html.pjh .pjh-kommentare.pjh-kunde button[onclick*="toggleCommentDone"] { display:none !important; }
  html.pjh :is(.pjh-kommentare, #pjh-composer) .flex.items-center.gap-2.mb-2 { display:none !important; }
  .pjh-kommentar-leer { margin:0; padding:8px 4px; font-family:'Funnel Display', sans-serif; font-size:var(--pjh-text, 15px); line-height:1.5; color:var(--fg-a700, rgba(255,255,255,0.7)); }
  html.pjh #pjh-stelle { display:block; margin:0 0 8px; font-family:'Funnel Display', sans-serif; font-size:var(--pjh-text, 15px); line-height:1.5; color:var(--fg-a700, rgba(255,255,255,0.7)); }
  html.pjh #pjh-stelle b { font-weight:600; color:var(--fg-1, #F4F4F4); font-variant-numeric:tabular-nums; }
  html.pjh #pjh-composer { border-top-color:var(--pjh-kontur) !important; }
  /* Interne Kommentare: Schalter Extern/Intern ueber der Stelle (deliveries-handy.js setzt ihn hierher) */
  html.pjh #pjh-composer .sicht-schalter.pjh-sicht { margin:0 0 12px; }
  html.pjh #pjh-composer .flex.gap-2 { align-items:flex-end; }
  html.pjh .pjh-kommentare #chat-input, html.pjh #pjh-composer #chat-input { display:block; min-height:48px; max-height:200px; resize:none; overflow-y:auto; padding:12px 16px !important; border-radius:24px !important;
    font-family:'Funnel Display', sans-serif !important; font-size:16px !important; line-height:1.45; color:var(--fg-1, #F4F4F4) !important; background:transparent !important; border:1px solid var(--pjh-kontur) !important; }
  html.pjh #chat-input::placeholder { color:var(--fg-a700, rgba(255,255,255,0.7)); opacity:1; }
  html.pjh #chat-input:focus { --tw-ring-color:transparent; outline:2px solid var(--fg-1, #F4F4F4); outline-offset:2px; }
  html.pjh #chat-input + button { width:48px !important; height:48px !important; background:var(--btn-primary-bg, #F4F4F4) !important; box-shadow:none !important; }
  html.pjh #chat-input + button .material-symbols-outlined { color:var(--btn-primary-fg, #0A0708) !important; font-size:20px !important; }
  body.pjh-schreibt #pjh-composer { margin-top:12px; padding:16px !important; border:0 !important; border-radius:20px; background:var(--pjh-flaeche); box-shadow:inset 0 0 0 1px var(--pjh-kontur); }
  /* Stelle genau treffen: Schritte um eine Sekunde */
  .pjh-schritte { display:flex; align-items:center; gap:8px; margin:0 0 8px; }
  .pjh-schritte .pjh-knopf { min-width:64px; padding:0 12px; }
  html.pjh .pjh-schritte #pjh-stelle { flex:1; margin:0; text-align:center; }
  html.pjh #general-chat-input { min-height:48px; font-size:16px !important; }

  /* ---- Foto-Grossansicht (immer dunkel, Farben fest) ---- */
  #vl-lightbox.pjh-lb > div:first-child { padding:calc(8px + env(safe-area-inset-top, 0px)) 16px 8px !important; gap:8px !important; }
  #vl-lightbox.pjh-lb #lb-title { font-family:'Funnel Display', sans-serif !important; font-size:17px !important; font-weight:600 !important; white-space:normal !important; }
  #vl-lightbox.pjh-lb #lb-meta { font-family:'Funnel Display', sans-serif !important; font-size:var(--pjh-text, 15px) !important; color:rgba(255,255,255,0.7) !important; }
  #vl-lightbox.pjh-lb #lb-download, #vl-lightbox.pjh-lb #pjh-lb-sichern { min-height:44px; padding:0 16px !important; font-size:var(--pjh-text, 15px) !important; font-family:'Funnel Display', sans-serif !important;
    text-transform:none !important; letter-spacing:0 !important; font-weight:600 !important; display:inline-flex; align-items:center; gap:6px; white-space:nowrap; border-radius:9999px;
    background:transparent !important; color:#F4F4F4 !important; box-shadow:inset 0 0 0 1px rgba(244,244,244,0.2) !important; }
  #vl-lightbox.pjh-lb #lb-download .material-symbols-outlined, #vl-lightbox.pjh-lb #pjh-lb-sichern .material-symbols-outlined { color:#F4F4F4 !important; font-size:18px; }
  #vl-lightbox.pjh-lb #lb-download.pjh-weg { display:none; }
  #vl-lightbox.pjh-lb :is(button, a):focus { box-shadow:none; }
  #vl-lightbox.pjh-lb :is(button, a):focus-visible { outline:2px solid #F4F4F4 !important; outline-offset:2px; }
  /* Saetze, die nach einer Aktion den Fokus bekommen (tabindex -1), sind kein Bedienelement: ohne Ring */
  html.pjh .pjh-bereich [tabindex="-1"]:focus { outline:none; }
  #vl-lightbox.pjh-lb button[aria-label="Schließen"] { width:44px !important; height:44px !important; flex-shrink:0; background:transparent !important; border-color:rgba(244,244,244,0.2) !important; }
  #vl-lightbox.pjh-lb > div:nth-child(2) { padding:0 0 8px !important; }
  #vl-lightbox.pjh-lb #lb-img { border-radius:20px !important; box-shadow:none !important; touch-action:pinch-zoom; }
  #vl-lightbox.pjh-lb #lb-title:focus { outline:none; }
  #vl-lightbox.pjh-lb #pjh-lb-wahl .material-symbols-outlined { font-size:18px; }
  #vl-lightbox.pjh-lb #pjh-lb-wahl { display:inline-flex; position:absolute; left:16px; bottom:16px; margin:0; font-size:var(--pjh-text, 15px); padding:4px 12px; }
  /* Blaettern auch ohne Wischen (VoiceOver, Schalter): kleine Knoepfe an den Seiten */
  #vl-lightbox.pjh-lb .lb-nav { width:44px !important; height:44px !important; top:50% !important; margin-top:-22px; background:rgba(10,7,8,0.55) !important; border:1px solid rgba(244,244,244,0.2) !important; color:#F4F4F4 !important; }
  #vl-lightbox.pjh-lb .lb-nav[style*="left"] { left:8px !important; }
  #vl-lightbox.pjh-lb .lb-nav[style*="right"] { right:8px !important; }
  #vl-lightbox.pjh-lb .vl-rvfoot { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; padding:8px 16px 0 !important; margin:0 !important; border:0 !important; background:none !important; }
  #vl-lightbox.pjh-lb .vl-rvbtn { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; min-height:64px; padding:0 8px !important; border-radius:9999px !important;
    background:transparent !important; color:#F4F4F4 !important; border:0 !important; box-shadow:inset 0 0 0 1px rgba(244,244,244,0.2) !important;
    font-family:'Funnel Display', sans-serif !important; font-size:17px !important; font-weight:600 !important; letter-spacing:0 !important; text-transform:none !important; }
  #vl-lightbox.pjh-lb .vl-rvbtn:active { transform:scale(.98); }
  #vl-lightbox.pjh-lb .vl-rvbtn:focus-visible { outline:2px solid #F4F4F4; outline-offset:2px; }
  #vl-lightbox.pjh-lb .vl-rvbtn kbd, #vl-lightbox.pjh-lb .vl-rvhint { display:none !important; }
  /* Gewaehlt: gefuellt, wie jeder Hauptknopf im Dunkeln */
  #vl-lightbox.pjh-lb .pjh-rv-ico { display:block; font-size:20px; line-height:1; color:inherit !important; }
  #vl-lightbox.pjh-lb .vl-rvbtn.approved:not(.on) .pjh-rv-ico { color:#30d158 !important; }
  #vl-lightbox.pjh-lb .vl-rvbtn.edit:not(.on) .pjh-rv-ico { color:#ffd000 !important; }
  #vl-lightbox.pjh-lb .vl-rvbtn.on { background:#F4F4F4 !important; color:#0A0708 !important; box-shadow:none !important; }
  #vl-lightbox.pjh-lb .pjh-lb-hinweis .pjh-textknopf { color:#F4F4F4; margin:4px 0 0 4px; box-shadow:inset 0 0 0 1px rgba(244,244,244,0.2); }
  #vl-lightbox.pjh-lb .pjh-lb-hinweis { display:block; margin:8px 16px calc(12px + env(safe-area-inset-bottom, 0px)); text-align:center; font-family:'Funnel Display', sans-serif; font-size:var(--pjh-text, 15px); line-height:1.5; color:rgba(255,255,255,0.7); }
  #vl-lightbox.pjh-lb .pjh-lb-hinweis[hidden] { display:none; }
  /* Wunsch zu einem Foto: direkt unter dem Foto, solange es auf "Bearbeiten" steht */
  #vl-lightbox.pjh-lb .pjh-lb-wunsch { display:flex; flex-direction:column; gap:8px; margin:12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); font-family:'Funnel Display', sans-serif; }
  #vl-lightbox.pjh-lb .pjh-lb-wunsch label { font-size:17px; font-weight:600; color:#F4F4F4; }
  #vl-lightbox.pjh-lb .pjh-lb-wunsch textarea { width:100%; min-height:72px; max-height:30dvh; resize:none; padding:12px 16px; border-radius:20px; border:0; outline:none;
    background:rgba(244,244,244,0.08); color:#F4F4F4; box-shadow:inset 0 0 0 1px rgba(244,244,244,0.2); font-family:'Funnel Display', sans-serif; font-size:16px; line-height:1.5; }
  /* Die Grossansicht bleibt im Hellen dunkel: theme.js gibt Textfeldern dort weisse Flaeche mit !important */
  #vl-lightbox.pjh-lb .pjh-lb-wunsch textarea { background:#1d1a1b !important; color:#F4F4F4 !important; -webkit-text-fill-color:#F4F4F4; caret-color:#F4F4F4 !important; color-scheme:dark !important; border:0 !important; }
  #vl-lightbox.pjh-lb .pjh-lb-wunsch textarea::placeholder { color:rgba(255,255,255,0.6) !important; -webkit-text-fill-color:rgba(255,255,255,0.6); }
  #vl-lightbox.pjh-lb .pjh-lb-wunsch textarea:focus-visible { box-shadow:inset 0 0 0 2px #F4F4F4; }
  #vl-lightbox.pjh-lb .pjh-lb-wunsch-info { margin:0; font-size:var(--pjh-text, 15px); line-height:1.5; color:rgba(255,255,255,0.7); }
  #vl-lightbox.pjh-lb .pjh-lb-wunsch-knoepfe { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  #vl-lightbox.pjh-lb .pjh-lb-wunsch .pjh-knopf { min-height:48px; padding:0 12px; font-size:var(--pjh-text, 15px); }
  #vl-lightbox.pjh-lb .pjh-lb-wunsch .pjh-knopf.leise { color:#F4F4F4; box-shadow:inset 0 0 0 1px rgba(244,244,244,0.2); }
  #vl-lightbox.pjh-lb .pjh-lb-wunsch .pjh-knopf:not(.leise) { background:#F4F4F4; color:#0A0708; }
  #vl-lightbox.pjh-lb .pjh-lb-wunsch .pjh-knopf:not(.leise)[disabled] { background:transparent; color:#F4F4F4; box-shadow:inset 0 0 0 1px rgba(244,244,244,0.2); opacity:.5; }
  /* Beim Schreiben: Wahl-Knoepfe und Blaettern ruhen, das Foto schrumpft ueber der Tastatur */
  #vl-lightbox.pjh-lb.pjh-lb-schreibt .vl-rvfoot, #vl-lightbox.pjh-lb.pjh-lb-schreibt .lb-nav, #vl-lightbox.pjh-lb.pjh-lb-schreibt .pjh-lb-wunsch-info { display:none !important; }
  #vl-lightbox.pjh-lb.pjh-lb-schreibt .pjh-lb-wunsch { margin-bottom:8px; }
  #vl-lightbox.pjh-lb.pjh-lb-schreibt { top:var(--pjh-vv-top, 0px) !important; bottom:auto !important; height:var(--pjh-vv-h, 100%) !important; }
  #vl-lightbox.pjh-lb.pjh-lb-schreibt > div:nth-child(2) { flex:none !important; height:auto; }
  #vl-lightbox.pjh-lb.pjh-lb-schreibt #lb-img { max-height:calc(var(--pjh-vv-h, 100dvh) * .36) !important; }
  /* Feld direkt unter dem Foto; darunter liegt beim echten Handy die Tastatur. Der Hinweis oben ruht so lange (er laege auf dem Foto). */
  html.pjh body:has(#vl-lightbox.pjh-lb-schreibt) .vl-rvtoast { display:none !important; }
  /* Hinweis mit Rueckgaengig: in der Grossansicht oben, nicht auf den Knoepfen */
  html.pjh body:has(#vl-lightbox.pjh-lb) .vl-rvtoast { top:calc(76px + env(safe-area-inset-top, 0px)); bottom:auto !important; left:16px; right:16px; }
  html.pjh body:has(#vl-lightbox.pjh-lb) #dv-toast { top:calc(76px + env(safe-area-inset-top, 0px)) !important; bottom:auto !important; }
  body.pjh-waehlt #dv-toast { bottom:calc(140px + env(safe-area-inset-bottom, 0px)) !important; }

  @media (prefers-reduced-motion: reduce) {
    .pjh-knopf, .pjh-zeile, .pjh-kachel, .pjh-chip, .pjh-rund, .pjh-zurueck, .pjh-haken .material-symbols-outlined, .pjh-kachel img, #vl-lightbox.pjh-lb #lb-img { transition:none !important; }
  }
}
.pjh-lagewarte .pjh-stand-text, .pjh-lagewarte .pjh-stapel, .pjh-lagewarte .pjh-gegen { visibility:hidden; }
.pjh-lagewarte #fp-handy { visibility:hidden; }
.pjh-erledigt.pjh-ruhig .material-symbols-outlined { font-variation-settings:'FILL' 0; }
.pjh-stand-text.pjh-satz-z { margin:0 0 4px; max-width:60ch; }
html.vl-rahmen.vl-pj-gesperrt .fp-okaykarte.fp-schmal { display:none; }
/* Nach der Entscheidung: "Als Nächstes wartet" (nur mit Rahmen, deliveries-handy.js weiterBlock) */
.pjh-weiter { margin:16px 0 8px; }
.pjh-weiter .pjh-abschnitt { margin-bottom:8px; }
.pjh-weiter .pjh-info { margin:8px 0 12px; }
.pjh-weiter > .pjh-knopf:first-of-type:not(.leise) { justify-content:space-between; text-align:left; }
.pjh-weiter > .pjh-knopf > span:not(.material-symbols-outlined) { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; white-space:normal; padding:8px 0; }
