/* Akten-Ansicht (Session „Standort Akten View"). Rahmen und Bildfläche kommen aus stil.css
   (bilder-dialog, bi-kopf, nw-flaeche) — hier nur der Hinweis „keine Akte". */
#ak-dialog .ak-leer { padding: 1.25rem 1rem; }
#ak-dialog .ak-leer p { padding: 0; margin: 0 0 .5rem; }
#ak-pdf[hidden] { display: none; }
/* Zwei-Finger-Zoom nur in der Akte (akten_view.js): Ein Finger scrollt, die Geste zoomt nicht die Seite. */
#ak-flaeche { touch-action: pan-x pan-y; overscroll-behavior: contain; }
/* Hintergrund steht still, solange das Fenster offen ist (Philip, 15.11.2026, BGR-Blatt: „der Hintergrund scrollt und
   man kann nicht richtig reinzoomen"; Session „Design"). Gleiche Regel wie beim Protokoll-Fenster (protokoll.css).
   Ein einseitiges Blatt passt ganz ins Fenster — dann ist die Fläche nicht rollbar und jeder Wisch ging nach hinten. */
html:has(#ak-dialog[open]), html:has(#ak-dialog[open]) body { overflow: hidden; overscroll-behavior: none; }
#ak-flaeche img { max-width: none; cursor: zoom-in; }
/* Platzhalter je Seite, bis das Bild ganz dekodiert ist (A4 hoch, wie die Bilder aus kern.pdf_bild). */
#ak-flaeche .ak-seite { display: flex; align-items: center; justify-content: center; width: 100%;
  aspect-ratio: 1600 / 2263; margin: 0 auto .5rem; background: #fff; color: var(--leise); font-size: .9rem; }

/* Neues Aussehen (Philip, 15.11.2026, Entwurf „A"; Session „Design") — nur mit Klasse .ak-neu, die akten_view.js
   setzt (erst Konto philip). Oben nichts, unten feste Leiste: „PDF laden" groß + rotes Kreuz im grauen Kreis.
   Grauer Grund, jede Seite weiß mit feiner grauer Linie genau am Rand des PDFs. */
#ak-dialog .ak-fuss { display: none; }
#ak-dialog.ak-neu .bi-kopf { display: none; }
#ak-dialog.ak-neu .ak-fuss { display: flex; flex: none; align-items: center; gap: .7rem;
  margin: .7rem -1.15rem -1rem; padding: .65rem 1rem calc(.8rem + env(safe-area-inset-bottom));
  background: var(--flaeche); border-top: .5px solid var(--rand2); }
#ak-dialog .ak-fuss-ab { flex: 1; min-width: 0; display: flex; }
#ak-dialog.ak-neu #ak-pdf { flex: 1; display: flex; align-items: center; justify-content: center; margin: 0;
  padding: .85rem 1rem; border-radius: 99px; background: var(--akzent); color: #fff; font-size: 17px; font-weight: 600;
  text-decoration: none; }
#ak-dialog.ak-neu #ak-pdf[hidden] { display: none; }
#ak-dialog .ak-zu { flex: none; margin-left: auto; width: 52px; height: 52px; min-height: 0; padding: 0; border: 0;
  border-radius: 50%; background: var(--rand); color: #e5484d; display: flex; align-items: center; justify-content: center; cursor: pointer; }
#ak-dialog .ak-zu:active { background: var(--rand2); }
#ak-dialog .ak-zu svg { width: 24px; height: 24px; }
#ak-dialog.ak-neu #ak-flaeche { background: var(--grund); padding: 12px; }
#ak-dialog.ak-neu #ak-flaeche img, #ak-dialog.ak-neu #ak-flaeche .ak-seite {
  box-sizing: border-box; border: 1px solid #c7c7cc; border-radius: 4px; margin-bottom: 12px; }
@media (max-width: 640px) {
  #ak-dialog.ak-neu .ak-fuss { margin: .7rem -.8rem -.8rem; padding-inline: .75rem; }
  #ak-dialog.ak-neu #ak-flaeche { padding: 10px; border-radius: 10px; }
}

/* Knopf „Akte" in der Protokoll-Kachel (Philip, 08.11.2026: Entwurf „1" — blau gefüllt, weiß, soll ins
   Auge stechen). Nur dieser eine Knopf; die Kachel und die anderen Knöpfe bleiben wie sie sind. */
.karte.pr-karte .leiste button[data-pr-akten] { background: var(--akzent); color: #fff; font-weight: 600; }
.karte.pr-karte .leiste button[data-pr-akten]:hover:not(:disabled) { background: #0066d6; }
.karte.pr-karte .leiste button[data-pr-akten] svg { color: #fff; }
