/* Buchungs-Vorführung: Postfach (postfach.js) und Bezahlung (zahlung.js).
   Das Postfach gehört zur Vorführung, nicht zum Betrieb: darum im Stil der Hinweisleiste (dunkel, Webgut-Grün #2f5d50).
   Die Bezahlung übernimmt die Farbe des Betriebs über --zl-akzent und --zl-auf. */

/* ---------- Postfach: Knopf und Hinweis ---------- */
.pf-knopf { position:fixed; right:18px; bottom:18px; z-index:90; display:inline-flex; align-items:center; gap:9px; min-height:52px; padding:0 18px 0 15px; border:0; border-radius:99px; cursor:pointer;
  background:#1d1915; color:#fbf7f0; font:600 16.5px/1 "Source Sans 3", system-ui, sans-serif; box-shadow:0 14px 30px -12px rgba(0,0,0,.55), 0 0 0 2px rgba(255,255,255,.7); --focus:#1f5fbf; }
.pf-knopf svg { width:22px; height:22px; flex:none; }
.pf-knopf:hover { background:#2f5d50; }
.pf-zahl { display:inline-grid; place-items:center; min-width:24px; height:24px; padding:0 7px; border-radius:99px; background:#9cc9b5; color:#14211c; font-size:15px; font-weight:700; }
.pf-knopf.neu { animation:pf-hupf .7s cubic-bezier(.3,1.6,.5,1); }
@keyframes pf-hupf { 0% { transform:scale(1); } 40% { transform:scale(1.12); } 100% { transform:scale(1); } }
.pf-blase { position:fixed; right:18px; bottom:84px; z-index:90; width:min(360px, calc(100vw - 36px)); padding:13px 16px 12px; border-radius:10px; border-left:5px solid #2f5d50; background:#fff; color:#1d1915;
  font:400 16px/1.4 "Source Sans 3", system-ui, sans-serif; box-shadow:0 18px 40px -14px rgba(0,0,0,.45); cursor:pointer; }
.pf-blase b { display:block; font-weight:700; color:#2f5d50; margin-bottom:2px; }
.pf-blase small { display:block; margin-top:3px; font-size:16px; color:#4d463f; }
@media (max-width:760px) {
  body:has(.dock) .pf-knopf { bottom:84px; }
  body:has(.dock) .pf-blase { bottom:146px; }
  .pf-knopf { right:12px; }
  /* am Handy nur der Umschlag mit Zähler, damit der Knopf wenig verdeckt; das Wort bleibt für Screenreader */
  .pf-knopf { width:56px; height:56px; padding:0; justify-content:center; }
  .pf-knopf svg { width:24px; height:24px; }
  .pf-wort { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .pf-zahl { position:absolute; top:-5px; right:-5px; }
}
@media (prefers-reduced-motion:reduce) { .pf-knopf.neu { animation:none; } }

/* ---------- Postfach: Fenster ---------- */
dialog.pf { margin:0 0 0 auto; padding:0; border:0; width:min(780px, 100%); max-width:100%; height:100dvh; max-height:100dvh; background:#faf8f5; color:#1d1915;
  font:400 17px/1.5 "Source Sans 3", system-ui, sans-serif; box-shadow:-20px 0 60px rgba(0,0,0,.3); --focus:#1f5fbf; }
dialog.pf::backdrop { background:rgba(20,16,12,.55); }
.pf h2 { font:700 25px/1.15 "Source Sans 3", system-ui, sans-serif; margin:0 0 6px; }
.pf-kopf { position:sticky; top:0; z-index:2; display:flex; gap:16px; align-items:flex-start; justify-content:space-between; padding:20px 24px 18px; background:#1d1915; color:#f3eee7; --focus:#9cc9b5; }
.pf-kopf p { font-size:16px; color:#ddd3c6; max-width:36em; }
.pf-zu { flex:none; width:44px; height:44px; border-radius:50%; border:0; background:rgba(255,255,255,.1); color:#fff; cursor:pointer; display:grid; place-items:center; }
.pf-zu:hover { background:rgba(255,255,255,.2); }
.pf-zu svg { width:22px; height:22px; }
.pf-uhr { margin:18px 24px 6px; padding:16px 18px; border:1px solid #e2d9cc; border-radius:10px; background:#fff; display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:10px 18px; align-items:center; }
.pf-uhr-text { display:flex; gap:12px; align-items:flex-start; }
.pf-uhr-text svg { width:28px; height:28px; flex:none; color:#2f5d50; margin-top:2px; }
.pf-uhr-text p { font-size:16.5px; color:#4d463f; }
.pf-uhr-text b { color:#1d1915; }
.pf-vorspulen { min-height:46px; padding:0 18px; border:0; border-radius:8px; background:#2f5d50; color:#fff; font:700 16.5px/1 "Source Sans 3", system-ui, sans-serif; cursor:pointer; }
.pf-vorspulen:hover { background:#244a40; }
.pf-vorspulen:disabled { background:#b9b2aa; color:#2a2622; cursor:not-allowed; }
.pf-uhrzeit { grid-column:1 / -1; font-size:16px; color:#4d463f; }
.pf-filter { display:flex; flex-wrap:wrap; gap:6px; margin:14px 24px 6px; }
.pf-filter button { min-height:40px; padding:0 14px; border-radius:99px; border:1.5px solid #d6ccbf; background:#fff; color:#1d1915; font:600 16px/1 "Source Sans 3", system-ui, sans-serif; cursor:pointer; }
.pf-filter button[aria-pressed="true"] { background:#1d1915; border-color:#1d1915; color:#fff; }
.pf-liste { list-style:none; margin:0; padding:4px 24px 40px; }
.pf-leer { padding:28px 4px; color:#4d463f; }
.pf-eintrag { width:100%; display:grid; grid-template-columns:auto minmax(0, 1fr) auto; gap:4px 14px; align-items:center; padding:14px 8px; border:0; border-bottom:1px solid #e6ddd1; background:none; color:inherit; text-align:left; cursor:pointer; font:inherit; position:relative; }
.pf-eintrag:hover { background:#f1ebe2; }
.pf-icon { width:40px; height:40px; border-radius:50%; display:grid; place-items:center; background:#e3eee9; color:#2f5d50; }
.pf-icon.betrieb { background:#f4e7d4; color:#7a4b14; }
.pf-icon svg { width:21px; height:21px; }
.pf-mitte b { display:block; font-weight:600; line-height:1.3; }
.pf-mitte span { display:block; font-size:16px; color:#4d463f; }
.pf-eintrag.ungelesen .pf-mitte b { font-weight:700; }
.pf-eintrag.ungelesen::before { content:""; position:absolute; left:-12px; top:50%; width:8px; height:8px; margin-top:-4px; border-radius:50%; background:#2f5d50; }
.pf-rechts { text-align:right; font-size:16px; color:#4d463f; line-height:1.3; }
.pf-rechts span { display:block; white-space:nowrap; }
.pf-wege { font-weight:600; color:#2f5d50; }

/* ---------- Postfach: eine Nachricht ---------- */
.pf-ansicht { padding:14px 24px 48px; }
.pf-zurueck { display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0 12px 0 6px; margin-left:-6px; border:0; border-radius:8px; background:none; color:#1d1915; font:600 16.5px/1 "Source Sans 3", system-ui, sans-serif; cursor:pointer; }
.pf-zurueck:hover { background:#efe8de; }
.pf-zurueck svg { width:20px; height:20px; }
.pf-felder { display:grid; grid-template-columns:auto minmax(0, 1fr); gap:4px 16px; margin:10px 0 14px; padding:14px 16px; background:#fff; border:1px solid #e2d9cc; border-radius:10px; font-size:16.5px; }
.pf-felder dt { color:#4d463f; }
.pf-felder dd { margin:0; overflow-wrap:anywhere; }
.pf-notiz { margin:0 0 14px; padding:10px 14px; border-left:4px solid #2f5d50; background:#eef3f0; font-size:16px; }
.pf-reiter { display:flex; gap:4px; border-bottom:1.5px solid #d6ccbf; margin-bottom:14px; }
.pf-reiter button { min-height:44px; padding:0 16px; border:0; background:none; color:#4d463f; font:600 16.5px/1 "Source Sans 3", system-ui, sans-serif; cursor:pointer; position:relative; }
.pf-reiter button[aria-selected="true"] { color:#1d1915; }
.pf-reiter button[aria-selected="true"]::after { content:""; position:absolute; left:8px; right:8px; bottom:-1.5px; height:3px; background:#2f5d50; }
.pf-klein { font-size:16px; color:#4d463f; margin-bottom:12px; }
.pf-schalter { display:inline-flex; align-items:center; gap:10px; margin-bottom:12px; font-size:16px; cursor:pointer; }
.pf-schalter input { width:20px; height:20px; accent-color:#2f5d50; }
.pf-mail { border:1px solid #ddd3c6; border-radius:10px; overflow:auto; background:#f2efea; }
.pf-mail a { word-break:break-word; }
.pf-text { white-space:pre-wrap; overflow-wrap:anywhere; margin:0; padding:18px; border:1px solid #ddd3c6; border-radius:10px; background:#fff; font:400 16px/1.5 Consolas, "Courier New", monospace; color:#1d1915; }
.pf-handy { width:min(320px, 100%); padding:26px 16px 20px; border-radius:30px; background:#1d1915; box-shadow:inset 0 0 0 2px #3a332c; }
.pf-sms { margin:0 0 10px; padding:11px 14px; border-radius:18px 18px 18px 4px; background:#ecebe8; color:#111; font-size:16.5px; line-height:1.4; overflow-wrap:anywhere; }
.pf-sms a { color:#0b57c2; }
.pf-handy span { display:block; color:#d9d0c4; font-size:16px; }
@media (max-width:760px) {
  dialog.pf { width:100%; }
  .pf-kopf { padding:16px 16px 14px; }
  .pf-uhr { margin:14px 14px 4px; grid-template-columns:minmax(0, 1fr); }
  .pf-filter { margin:12px 14px 4px; }
  .pf-liste { padding:4px 14px 40px; }
  .pf-eintrag { grid-template-columns:auto minmax(0, 1fr); }
  .pf-rechts { grid-column:2; text-align:left; }
  .pf-rechts span { display:inline; margin-right:8px; }
  .pf-ansicht { padding:12px 14px 48px; }
}

/* ---------- Bezahlung ---------- */
.zl { font-size:17px; }
.zl-betrag { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:12px 16px; border-radius:8px; background:rgba(0,0,0,.045); }
.zl-betrag b { font-size:26px; }
.zl-an { margin:10px 0 0; font-size:16.5px; }
.zl-titel { font-weight:700; margin:16px 0 8px; font-size:16.5px; }
.zl-arten { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:8px; margin-bottom:14px; }
.zl-arten button { display:flex; flex-direction:column; align-items:center; gap:6px; padding:12px 4px 10px; border:1.5px solid #d9d2c8; border-radius:10px; background:#fff; color:#3b3631; font:600 15px/1.2 system-ui, sans-serif; cursor:pointer; }
.zl-arten button[aria-pressed="true"] { border-color:#635bff; box-shadow:0 0 0 1px #635bff; background:#f7f7ff; color:#2f2a9c; }
.zl-logos { display:flex; align-items:center; justify-content:center; gap:6px; height:36px; }
.zl-eps { font:italic 800 24px/1 Arial, sans-serif; color:#c8102e; letter-spacing:-.02em; }
.zl-klarna { font:800 15px/1 Arial, sans-serif; color:#0b051d; background:#ffb3c7; padding:7px 10px; border-radius:7px; }
.zl-box { padding:18px; border:1px solid #e3e8ee; border-radius:12px; background:#fff; font-family:system-ui, -apple-system, "Segoe UI", sans-serif; color:#30313d; }
.zl-test { display:inline-block; margin:0 0 12px; padding:3px 10px; border-radius:6px; background:#fff1cc; color:#5e4600; font-size:15px; font-weight:600; }
.zl-feld { display:flex; justify-content:space-between; align-items:center; padding:12px 14px; margin-bottom:10px; border:1px solid #e3e8ee; border-radius:8px; color:#5f6672; font-size:16px; }
.zl-zwei { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.zl-klein { font-size:16px; color:#5f6672; margin:8px 0; }
.zl-sicher { display:flex; align-items:center; gap:8px; margin:6px 0 0; font-size:15px; color:#5f6672; }
.zl-sicher svg { width:15px; height:15px; flex:none; }
.zl-tun { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:18px; }
.zl-zahlen, .zl-zurueck { min-height:50px; padding:0 22px; border-radius:var(--zl-rund, 8px); border:0; cursor:pointer; font:inherit; font-weight:700; }
.zl-zahlen { background:var(--zl-akzent, #1d1915); color:var(--zl-auf, #fff); }
.zl-zahlen:disabled { opacity:.6; cursor:progress; }
.zl-zurueck { background:transparent; color:inherit; box-shadow:inset 0 0 0 1.5px currentColor; }
@media (max-width:760px) { .zl-arten { grid-template-columns:repeat(3, minmax(0, 1fr)); } .zl-betrag b { font-size:22px; } }
