/**
 * pdf.css — PDF-Tool. Grundteile in werkzeug.css.
 */
.pdf { position: relative; }

/* ════════ ABLAGE (noch nichts geladen) ════════ */
.pdf-ablage {
  width: 100%; min-height: clamp(17rem, 46vh, 24rem);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 2rem 1rem;
  border: 2px dashed var(--border2); border-radius: var(--r2);
  background: var(--card); color: var(--text);
  font: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
@media (hover: hover) { .pdf-ablage:hover { border-color: var(--pri3); box-shadow: var(--shadow3); transform: translateY(-2px); } }
.pdf-ablage:active { transform: scale(0.99); }
.pdf-ablage:focus { outline: none; }
.pdf-ablage:focus-visible { border-color: var(--pri3); }
.pdf-ablage.drueber { border-color: var(--pri3); background: var(--card2); }
.pdf-ablage-symbol {
  width: 72px; height: 72px; margin-bottom: 0.6rem; border-radius: 28%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #3aa4b2, #1c6470); color: #fff;
  box-shadow: 0 10px 22px rgba(28, 100, 112, 0.25);
}
.pdf-ablage-symbol svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pdf-ablage-titel { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(1.25rem, 3vw, 1.6rem); letter-spacing: -0.02em; }
.pdf-ablage-info { font-size: 0.9rem; color: var(--sub); }
.pdf-ablage-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; margin-top: 1.2rem; max-width: 30rem; }
.pdf-ablage-chips span { padding: 0.3rem 0.7rem; border-radius: 99px; background: var(--bg2); color: var(--text2); font-size: 0.76rem; font-weight: 600; }

/* ════════ LEISTE ════════ */
.pdf-leiste {
  position: sticky; top: calc(var(--nav-h) + 0.6rem); z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.55rem; margin-bottom: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 8px 26px rgba(15, 42, 74, 0.08);
}
.pdf-leiste-links, .pdf-leiste-rechts { display: flex; align-items: center; gap: 0.4rem; }
.pdf-zaehler { padding: 0 0.4rem; font-size: 0.84rem; font-weight: 600; color: var(--sub); white-space: nowrap; }
@media (max-width: 640px) {
  .pdf-leiste-links .wz-knopf span, #pdfTeilen span { display: none; }
  .pdf-leiste-links .wz-knopf, #pdfTeilen { width: 40px; padding: 0; }
  .pdf-zaehler { padding: 0 0.1rem; font-size: 0.78rem; }
}
@media (max-width: 380px) { #pdfSpeichern span { display: none; } #pdfSpeichern { width: 40px; padding: 0; } }

/* ════════ DATEIEN ════════ */
/* Dateien: kleine Legende. Jede Datei hat eine Farbe; dieselbe Farbe
   steht als feiner Streifen oben an ihren Seiten (nur bei mehreren
   Dateien). Aufgeräumter als die Punkte vorher. */
.pdf-dateien { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.pdf-datei {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem; max-width: 100%;
  padding: 0.38rem 0.35rem 0.38rem 0.85rem; border-radius: 10px; overflow: hidden;
  background: var(--card); box-shadow: 0 1px 3px rgba(15, 42, 74, 0.06), inset 0 0 0 1px var(--border);
  font-size: 0.8rem; font-weight: 600; color: var(--text2);
  animation: pdfRein 0.3s var(--ease-out);
}
.pdf-datei::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--dfarbe); }
.pdf-datei i { display: none; }
.pdf-datei-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14rem; }
.pdf-datei small { padding: 0.08rem 0.4rem; border-radius: 99px; background: var(--bg2); color: var(--sub); font-weight: 700; font-size: 0.7rem; white-space: nowrap; }
.pdf-datei button {
  width: 22px; height: 22px; border-radius: 7px; border: 0; background: none; color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.pdf-datei button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .pdf-leeren:not(:disabled):hover { color: var(--danger); } }
@media (hover: hover) { .pdf-datei button:hover { background: var(--bg2); color: var(--danger); } }
.pdf.mehrere .pdf-seite::before {
  content: ''; position: absolute; left: 14px; right: 14px; top: -1.5px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--dfarbe);
}
.pdf:not(.mehrere) .pdf-seite-unten i { display: none; }

/* ════════ SEITEN ════════ */
.pdf-raster {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(9.6rem, 1fr)); gap: clamp(0.6rem, 1.6vw, 1rem);
  user-select: none; -webkit-user-select: none;
}
@media (max-width: 560px) { .pdf-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; } }

.pdf-seite {
  position: relative;
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 0.5rem 0.5rem 0.4rem;
  border-radius: 16px; background: var(--card);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  transition: border-color 0.16s, box-shadow 0.2s, opacity 0.2s, background 0.16s;
}
/* Nur beim ersten Erscheinen; ein Verschieben im DOM würde sie sonst neu starten */
.pdf-seite.neu { animation: pdfRein 0.35s var(--ease-out) both; }
@keyframes pdfRein { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
@media (hover: hover) {
  .pdf-seite:not(.zieht):hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 14px 30px rgba(15, 42, 74, 0.14); border-color: var(--border2); }
}
.pdf-seite { transition: border-color 0.16s, box-shadow 0.25s var(--ease-out), opacity 0.2s, background 0.16s, transform 0.25s var(--ease-out); }
.pdf-seite.gewaehlt { border-color: var(--pri3); background: #f2f8fe; box-shadow: 0 0 0 3px rgba(90, 174, 232, 0.25); }

.pdf-bild {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1.3; border-radius: 10px; background: var(--bg);
  overflow: hidden;
}
.pdf-bild canvas {
  display: block; max-width: 92%; max-height: 92%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 42, 74, 0.18);
  transform: rotate(var(--dreh, 0deg)) scale(var(--sk, 1));
  transition: transform 0.35s var(--ease-out);
}
.pdf-bild .pdf-laedt {
  position: absolute; inset: 0; margin: auto;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid var(--border2); border-top-color: var(--pri3);
  animation: pdfDreh 0.9s linear infinite;
}
@keyframes pdfDreh { to { transform: rotate(360deg); } }

.pdf-seite-unten { display: flex; align-items: center; justify-content: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 700; color: var(--text2); font-variant-numeric: tabular-nums; }
.pdf-seite-unten i { width: 7px; height: 7px; border-radius: 50%; background: var(--dfarbe); }

/* Auswahl-Kreis oben links */
.pdf-haken {
  position: absolute; left: 0.85rem; top: 0.85rem; z-index: 2;
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.92); border: 1.5px solid var(--border2);
  color: #fff; opacity: 0; transform: scale(0.85);
  transition: opacity 0.16s, transform 0.2s var(--ease-out), background 0.16s, border-color 0.16s;
  pointer-events: none;
}
.pdf-haken svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pdf-seite.gewaehlt .pdf-haken { opacity: 1; transform: none; background: var(--pri2); border-color: var(--pri2); }
.pdf.waehlt .pdf-haken { opacity: 1; transform: none; }
@media (hover: hover) { .pdf-seite:hover .pdf-haken { opacity: 1; transform: none; } }

/* Schnellknöpfe oben rechts (nur mit Maus) */
.pdf-schnell {
  position: absolute; right: 0.85rem; top: 0.85rem; z-index: 2;
  display: flex; gap: 0.25rem;
  opacity: 0; transform: translateY(-3px);
  transition: opacity 0.16s, transform 0.2s var(--ease-out);
}
.pdf-schnell button {
  width: 28px; height: 28px; border-radius: 9px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.95); color: var(--text2);
  box-shadow: 0 2px 8px rgba(15, 42, 74, 0.16);
  transition: color 0.15s, transform 0.15s;
}
.pdf-schnell button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .pdf-seite:hover .pdf-schnell { opacity: 1; transform: none; }
  .pdf-schnell button:hover { color: var(--pri); transform: scale(1.08); }
  .pdf-schnell button.weg:hover { color: var(--danger); }
}
@media (hover: none) { .pdf-schnell { display: none; } }

/* Ziehen */
.pdf-seite.zieht { opacity: 0.35; border-style: dashed; box-shadow: none; }
.pdf-seite.mitgenommen { display: none; }
.pdf-geist {
  position: fixed; z-index: 600; left: 0; top: 0; pointer-events: none;
  transform-origin: 50% 50%;
  box-shadow: 0 22px 48px rgba(15, 42, 74, 0.28);
  border-color: var(--pri3);
  transition: none;
  animation: pdfGeist 0.18s var(--ease-out) both;
}
@keyframes pdfGeist { from { scale: 1; } to { scale: 1.05; } }
.pdf-geist-zahl {
  position: absolute; right: -8px; top: -8px;
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pri2); color: #fff; font-size: 0.8rem; font-weight: 800;
  box-shadow: 0 4px 10px rgba(15, 42, 74, 0.25);
}

/* ════════ AUSWAHL-LEISTE (unten schwebend) ════════ */
.pdf-auswahl {
  position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 300;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.2rem;
  max-width: calc(100vw - 1.4rem);
  padding: 0.35rem; border-radius: 18px;
  background: var(--text); color: #fff;
  box-shadow: 0 18px 40px rgba(15, 42, 74, 0.35);
  animation: pdfLeisteAuf 0.25s var(--ease-out);
}
@keyframes pdfLeisteAuf { from { opacity: 0; transform: translate(-50%, 12px); } }
/* Feste Breite: „1 Seite“ bis „999 Seiten“, die Leiste springt nicht mehr */
.pdf-auswahl-zahl { flex: 0 0 auto; width: 6.4rem; padding: 0 0.4rem 0 0.7rem; font-size: 0.84rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .pdf-auswahl-zahl { width: 5.6rem; } }
.pdf-aw-knopf {
  display: inline-flex; align-items: center; gap: 0.4rem;
  height: 38px; padding: 0 0.75rem; border-radius: 12px; border: 0;
  background: none; color: rgba(255, 255, 255, 0.88);
  font: inherit; font-size: 0.84rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, color 0.15s;
}
.pdf-aw-knopf svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .pdf-aw-knopf:hover { background: rgba(255, 255, 255, 0.1); color: #fff; } .pdf-aw-weg:hover { color: #ff8a7d; } }
.pdf-aw-knopf:active { background: rgba(255, 255, 255, 0.16); }
.pdf-aw-knopf:focus { outline: none; }
.pdf-aw-knopf:focus-visible { outline: 2px solid var(--pri3); }
.pdf-aw-alle { color: var(--pri3); }
.pdf-aw-zu { width: 38px; padding: 0; justify-content: center; }
@media (max-width: 600px) {
  .pdf-aw-knopf span { display: none; }
  .pdf-aw-knopf:not(.pdf-aw-alle) { width: 42px; padding: 0; justify-content: center; }
}

/* ════════ DATEI ÜBER DER SEITE ════════ */
.pdf-drop {
  position: fixed; inset: 0; z-index: 650;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 42, 74, 0.35); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  pointer-events: none;
  animation: wzSchleierAuf 0.15s ease;
}
.pdf-drop div {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 1rem 1.4rem; border-radius: 18px; background: var(--card);
  font-family: 'Sora', sans-serif; font-weight: 700; color: var(--text);
  box-shadow: 0 20px 50px rgba(15, 42, 74, 0.3);
}
.pdf-drop svg { width: 22px; height: 22px; fill: none; stroke: var(--pri2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ════════ TEILEN ════════ */
.pdf-teil-kopf p { margin: 0.25rem 0 0; font-size: 0.86rem; color: var(--sub); }
.pdf-teil-arten { display: flex; flex-direction: column; gap: 0.5rem; }
.pdf-teil-arten > [role="radio"] {
  position: relative;
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.8rem 0.9rem; border-radius: 16px;
  border: 0; background: var(--card2); box-shadow: inset 0 0 0 1px var(--border);
  text-align: left; color: var(--text); cursor: pointer;
  transition: background 0.2s, box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
@media (hover: hover) { .pdf-teil-arten > [role="radio"]:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--border2), 0 8px 20px rgba(15, 42, 74, 0.08); } }
.pdf-teil-arten > [role="radio"][aria-checked="true"] {
  background: var(--card);
  box-shadow: 0 0 0 2px var(--pri3), 0 10px 24px rgba(15, 42, 74, 0.10);
}
.pdf-teil-arten > [role="radio"]:focus { outline: none; }
.pdf-teil-arten > [role="radio"]:focus-visible { box-shadow: 0 0 0 2px var(--pri2); }
.pdf-teil-icon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg2); color: var(--sub);
  transition: background 0.2s, color 0.2s;
}
.pdf-teil-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
[aria-checked="true"] > .pdf-teil-icon { background: linear-gradient(145deg, #3aa4b2, #1c6470); color: #fff; }
.pdf-teil-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.pdf-teil-text b { font-size: 0.92rem; }
.pdf-teil-text small { font-size: 0.78rem; color: var(--sub); font-weight: 500; }
.pdf-teil-haken {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pri2); color: #fff;
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.2s, transform 0.25s cubic-bezier(0.34, 1.5, 0.6, 1);
}
.pdf-teil-haken svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
[aria-checked="true"] > .pdf-teil-haken { opacity: 1; transform: none; }
.pdf-teil-arten .wz-eingabe { padding: 0.45rem 0.65rem; font-size: 0.9rem; background: var(--card); }
.pdf-teil-zeile { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--text2); }
.pdf-teil-zahl { width: 5rem; }
.pdf-teil-vorschau { margin: 0; min-height: 1.3em; font-size: 0.84rem; font-weight: 600; color: var(--sub); }
.pdf-teil-vorschau.fehler { color: var(--danger); }

/* ════════ ARBEITET ════════ */
.pdf-arbeitet {
  position: fixed; left: 50%; top: 50%; z-index: 700;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.9rem 1.3rem; border-radius: 16px;
  background: var(--card); color: var(--text); font-weight: 600; font-size: 0.92rem;
  box-shadow: 0 24px 60px rgba(15, 42, 74, 0.3);
}
.pdf-arbeitet[hidden] { display: none; }
.pdf-kreisel { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--border2); border-top-color: var(--pri2); animation: pdfDreh 0.8s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .pdf-seite.neu, .pdf-datei, .pdf-auswahl, .pdf-geist { animation: none; }
  .pdf-bild canvas { transition: none; }
}

/* ════════ LUPE AN JEDER SEITE ════════ */
.pdf-seite-unten { position: relative; }
/* Die Lupe sitzt im normalen Fluss (eigene Spalte rechts), nicht mehr
   absolut mit translateY(-50%): das halbe Pixel ließ sie beim Überfahren
   und Umsortieren sichtbar zittern. */
.pdf-seite-unten { display: grid; grid-template-columns: 28px minmax(0, 1fr) 28px; align-items: center; justify-items: center; height: 28px; }
.pdf-seite-unten > span.mitte { display: inline-flex; align-items: center; gap: 0.35rem; grid-column: 2; }
.pdf-lupe {
  grid-column: 3;
  width: 28px; height: 28px; border-radius: 8px; border: 0; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; color: var(--muted);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: color 0.15s, background-color 0.15s;
}
.pdf-lupe svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
@media (hover: hover) { .pdf-lupe:hover { color: var(--pri); background: var(--bg2); } }
.pdf-lupe:active { background: var(--bg2); }
.pdf-lupe:focus { outline: none; }
.pdf-lupe:focus-visible { outline: 2px solid var(--pri3); }

/* ════════ SEITENANSICHT ════════ */
.pdf-ansicht {
  position: fixed; inset: 0; z-index: 680;
  display: flex; flex-direction: column;
  background: rgba(10, 26, 46, 0.94);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff;
  animation: wzSchleierAuf 0.2s ease;
}
.pdf-ansicht[hidden] { display: none; }
.pdf-ans-kopf {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(0.7rem, env(safe-area-inset-top)) 1rem 0.7rem;
}
.pdf-ans-zahl { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.pdf-ans-knoepfe { display: flex; gap: 0.35rem; }
.pdf-ans-knopf, .pdf-ans-pfeil {
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.1); color: #fff;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, transform 0.2s var(--ease-out), opacity 0.2s;
}
.pdf-ans-knopf svg, .pdf-ans-pfeil svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .pdf-ans-knopf:hover, .pdf-ans-pfeil:hover { background: rgba(255, 255, 255, 0.2); } }
.pdf-ans-knopf:active, .pdf-ans-pfeil:active { transform: scale(0.93); }
.pdf-ans-knopf:focus, .pdf-ans-pfeil:focus { outline: none; }
.pdf-ans-knopf:focus-visible, .pdf-ans-pfeil:focus-visible { outline: 2px solid var(--pri3); }
.pdf-ans-pfeil { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.pdf-ans-pfeil:active { transform: translateY(-50%) scale(0.93); }
.pdf-ans-pfeil.links { left: 1rem; }
.pdf-ans-pfeil.rechts { right: 1rem; }
.pdf-ans-pfeil:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 700px) {
  .pdf-ans-pfeil { top: auto; bottom: max(1rem, env(safe-area-inset-bottom)); transform: none; width: 46px; height: 46px; }
  .pdf-ans-pfeil:active { transform: scale(0.93); }
  .pdf-ans-pfeil.links { left: calc(50% - 56px); }
  .pdf-ans-pfeil.rechts { right: calc(50% - 56px); }
}
.pdf-ans-flaeche {
  position: relative; flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: auto; overscroll-behavior: contain;
  padding: 0 1rem 1.2rem;
  cursor: zoom-in;
}
.pdf-ans-flaeche.gross { align-items: flex-start; cursor: zoom-out; }
@media (max-width: 700px) { .pdf-ans-flaeche { padding-bottom: 5rem; } }
.pdf-ans-flaeche canvas {
  display: block; flex: 0 0 auto; margin: auto;
  background: #fff; border-radius: 3px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  transition: opacity 0.18s;
}
.pdf-ans-flaeche canvas.blass { opacity: 0.35; }
.pdf-ans-laedt {
  position: absolute; left: 50%; top: 50%; margin: -13px 0 0 -13px;
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.25); border-top-color: #fff;
  animation: pdfDreh 0.8s linear infinite;
}
.pdf-ans-laedt[hidden] { display: none; }

/* ════════ NACHFRAGE (Entfernen) ════════ */
.pdf-frage { width: min(23rem, calc(100vw - 2rem)); align-items: center; text-align: center; gap: 0.6rem; padding: 1.6rem 1.4rem 1.2rem; }
.pdf-frage-symbol {
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(231, 76, 60, 0.1); color: var(--danger);
  animation: pdfFrageSymbol 0.45s var(--ease-out) 0.05s both;
}
.pdf-frage-symbol svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pdfFrageSymbol { from { transform: scale(0.6) rotate(-12deg); opacity: 0; } }
.pdf-frage-text { margin: 0 0 0.4rem; font-size: 0.9rem; line-height: 1.5; color: var(--text2); }
.pdf-frage .wz-dialog-unten { width: 100%; justify-content: center; }
.pdf-frage .wz-dialog-unten .wz-knopf { flex: 1 1 0; justify-content: center; }
.pdf-frage-ja { background: var(--danger); border-color: var(--danger); color: #fff; }
@media (hover: hover) { .pdf-frage-ja:hover { background: #d64233; border-color: #d64233; color: #fff; } }
/* Weich schließen: Dialog und Schleier blenden aus statt zu springen */
.pdf-frage.geht { animation: pdfFrageWeg 0.17s ease-in forwards; }
.wz-schleier.geht { animation: pdfSchleierWeg 0.17s ease-in forwards; }
@keyframes pdfFrageWeg { to { opacity: 0; transform: translate(-50%, calc(-50% + 6px)) scale(0.98); } }
@keyframes pdfSchleierWeg { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pdf-frage-symbol { animation: none; } }
