/* Dateipfad: assets/css/bi-zusatz-manage.css
   Event-Management: Bereiche «Unsere Geschichte», «Gästebuch», «Wichteln», «Kosten teilen» und die Erinnerung in der Gästeliste.
   Grundlage sind die Bausteine aus assets/css/bi-phasen-manage.css (pht-…); hier nur, was zusätzlich gebraucht wird. Mobile zuerst. */

.zmt-wrap [hidden] { display: none !important; }
.zmt-list { display: flex; flex-direction: column; gap: 10px; }
.zmt-row { border: 1px solid var(--border-color, #e2e8f0); border-radius: 16px; padding: 12px; background: var(--bg-body, #f8fafc); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.zmt-row-head { display: flex; gap: 8px; align-items: center; }
.zmt-row-head .form-control { flex: 1; min-width: 0; font-size: 16px; padding: 9px 10px; }
.zmt-row .form-control { width: 100%; box-sizing: border-box; font-size: 16px; }
.zmt-row textarea.form-control { min-height: 70px; resize: vertical; line-height: 1.45; field-sizing: content; max-height: 320px; }
.zmt-icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--border-color, #e2e8f0); background: var(--bg-card, #ffffff); color: var(--primary-color, #2771c8); cursor: pointer; flex-shrink: 0; font-size: 1rem; }
.zmt-tools { display: flex; gap: 2px; flex-shrink: 0; }
.zmt-tools button { border: none; background: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: var(--text-muted, #64748b); }
.zmt-tools button:hover:not(:disabled) { background: var(--bg-card, #ffffff); color: var(--text-main, #0f172a); }
.zmt-tools button:disabled { opacity: 0.3; cursor: default; }
.zmt-tools button.is-del:hover { color: #e11d48; }
.zmt-icons { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.zmt-icons button { aspect-ratio: 1; border-radius: 12px; border: 1.5px solid var(--border-color, #e2e8f0); background: var(--bg-card, #ffffff); cursor: pointer; font-size: 1.05rem; color: var(--text-main, #0f172a); }
.zmt-icons button.is-on { border-color: var(--primary-color, #2771c8); color: var(--primary-color, #2771c8); background: rgba(39, 113, 200, 0.08); }
.zmt-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 8px; }
.zmt-tpl { border: 1.5px solid var(--border-color, #e2e8f0); background: var(--bg-card, #ffffff); border-radius: 14px; padding: 11px 10px; cursor: pointer; font: inherit; text-align: left; display: flex; gap: 9px; align-items: center; color: var(--text-main, #0f172a); }
.zmt-tpl i { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: rgba(39, 113, 200, 0.1); color: var(--primary-color, #2771c8); flex-shrink: 0; }
.zmt-tpl > span { min-width: 0; }
.zmt-tpl b { display: block; font-size: 0.82rem; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.zmt-tpl small { display: block; font-size: 0.7rem; color: var(--text-muted, #64748b); }
.zmt-tpl.is-on { border-color: var(--primary-color, #2771c8); background: var(--primary-bg-light, rgba(39, 113, 200, 0.06)); }
.zmt-tpl:not(:disabled):hover { border-color: var(--primary-color, #2771c8); }
.zmt-start { margin-bottom: 16px; border-color: rgba(39, 113, 200, 0.35); }
#gstBody > .pht-note { margin-bottom: 14px; }
@media (max-width: 520px) {
    /* Station: Symbol & Werkzeuge in einer Zeile, «Wann?» darunter in voller Breite */
    #gstEntries .zmt-row-head { flex-wrap: wrap; }
    #gstEntries .zmt-row-head .zmt-tools { margin-left: auto; }
    #gstEntries .zmt-row-head .form-control[data-k="when"] { order: 3; flex: 1 1 100%; }
    .zmt-tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .zmt-tpl { flex-direction: column; align-items: flex-start; gap: 7px; }
}
.zmt-tpl-cur { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.86rem; font-weight: 700; color: var(--text-main, #0f172a); }
.zmt-tpl-cur i { color: var(--primary-color, #2771c8); margin-right: 4px; }
.zmt-tpl-cur .btn { width: auto; padding: 8px 12px; font-size: 0.82rem; }
.zmt-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.zmt-right { border: 1.5px solid var(--border-color, #e2e8f0); background: var(--bg-card, #ffffff); color: var(--text-muted, #64748b); border-radius: 20px; padding: 6px 11px; font: inherit; font-size: 0.74rem; font-weight: 800; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 5px; align-items: center; min-height: 34px; }
.zmt-right:hover:not(:disabled) { border-color: #10b981; color: #047857; }
.zmt-opt.is-right .zmt-right { background: #10b981; border-color: #10b981; color: #ffffff; }
.zmt-opt.is-right .form-control { border-color: #10b981; background: rgba(16, 185, 129, 0.08); box-shadow: inset 0 0 0 1px #10b981; }
.zmt-reveal { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid rgba(245, 158, 11, 0.35); border-radius: 14px; padding: 10px 12px; margin: 0 0 12px; font-size: 0.82rem; color: var(--text-main, #0f172a); background: rgba(245, 158, 11, 0.06); }
.zmt-reveal.is-on { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.35); }
.zmt-reveal .btn { justify-content: center; }
.zmt-present { width: 100%; justify-content: center; margin-top: 4px; }
.zmt-opt .form-control { padding: 8px 10px; }
.zmt-chiplist { display: flex; flex-wrap: wrap; gap: 6px; }
.zmt-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-color, #e2e8f0); background: var(--bg-card, #ffffff); border-radius: 999px; padding: 6px 6px 6px 12px; font-size: 0.8rem; font-weight: 700; color: var(--text-main, #0f172a); max-width: 100%; }
.zmt-chip span { overflow: hidden; text-overflow: ellipsis; }
.zmt-chip button { border: none; background: var(--bg-body, #f1f5f9); width: 24px; height: 24px; border-radius: 50%; cursor: pointer; color: var(--text-muted, #64748b); flex-shrink: 0; }
.zmt-addrow { display: flex; gap: 8px; margin-top: 8px; }
.zmt-addrow .form-control { flex: 1; min-width: 0; font-size: 16px; }
.zmt-entry { border: 1px solid var(--border-color, #e2e8f0); border-radius: 16px; padding: 12px; background: var(--bg-card, #ffffff); display: flex; flex-direction: column; gap: 8px; }
.zmt-entry.is-pending { border-color: rgba(245, 158, 11, 0.55); background: rgba(245, 158, 11, 0.05); }
.zmt-entry.is-hidden { opacity: 0.7; border-style: dashed; }
.zmt-entry.is-flagged { border-color: rgba(225, 29, 72, 0.45); }
.zmt-entry-top { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-muted, #64748b); }
.zmt-entry-top b { color: var(--text-main, #0f172a); font-size: 0.86rem; }
.zmt-entry-text { font-size: 0.88rem; line-height: 1.55; color: var(--text-main, #0f172a); white-space: pre-line; overflow-wrap: anywhere; }
.zmt-entry-prompt { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted, #64748b); }
.zmt-entry-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.zmt-entry-acts .btn { padding: 7px 11px; font-size: 0.78rem; }
.zmt-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.zmt-qr-img { width: 180px; height: 180px; background: #ffffff; border-radius: 16px; padding: 10px; border: 1px solid var(--border-color, #e2e8f0); box-sizing: border-box; }
.zmt-qr-img { position: relative; }
.zmt-qr-img svg { width: 100%; height: 100%; display: block; }
.zmt-qr-logo { position: absolute; top: 50%; left: 50%; width: 24%; height: 24%; transform: translate(-50%, -50%); background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 3px; box-sizing: border-box; object-fit: contain; }
.zmt-linkbox { display: flex; gap: 6px; width: 100%; }
.zmt-linkbox input { flex: 1; min-width: 0; font-family: monospace; font-size: 0.8rem; }
.zmt-group { border: 1px solid var(--border-color, #e2e8f0); border-radius: 18px; padding: 14px; background: var(--bg-card, #ffffff); display: flex; flex-direction: column; gap: 12px; }
.zmt-group.is-drawn { border-color: rgba(16, 185, 129, 0.45); }
.zmt-group-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.zmt-group-name { font-size: 1rem; font-weight: 800; color: var(--text-main, #0f172a); margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.zmt-people { display: flex; flex-direction: column; gap: 6px; }
.zmt-person { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid var(--border-color, #e2e8f0); border-radius: 12px; padding: 8px 8px 8px 12px; background: var(--bg-body, #f8fafc); font-size: 0.84rem; }
.zmt-person.is-gone { border-color: rgba(225, 29, 72, 0.4); background: rgba(225, 29, 72, 0.05); }
.zmt-person.is-pending { border-style: dashed; background: var(--bg-card, #ffffff); }
.zmt-person.is-pending b { color: var(--text-muted, #64748b); }
.zmt-person-main { min-width: 0; }
.zmt-person-main b { color: var(--text-main, #0f172a); }
.zmt-person-main small { display: block; color: var(--text-muted, #64748b); font-size: 0.72rem; }
.zmt-badge { font-size: 0.66rem; font-weight: 800; padding: 2px 7px; border-radius: 20px; background: var(--bg-card, #ffffff); border: 1px solid var(--border-color, #e2e8f0); color: var(--text-muted, #64748b); margin-left: 4px; white-space: nowrap; }
.zmt-badge.is-ok { color: #047857; border-color: rgba(16, 185, 129, 0.35); background: rgba(16, 185, 129, 0.08); }
.zmt-badge.is-bad { color: #be123c; border-color: rgba(225, 29, 72, 0.35); background: rgba(225, 29, 72, 0.06); }
.zmt-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.zmt-acts .btn { justify-content: center; }
.zmt-ex { display: flex; flex-direction: column; gap: 6px; }
.zmt-ex-row { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; border-radius: 12px; padding: 6px 6px 6px 12px; background: var(--bg-body, #f8fafc); border: 1px solid var(--border-color, #e2e8f0); }
.zmt-ex-row span { flex: 1; min-width: 0; }
.zmt-ex-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.zmt-ex-form .form-control { font-size: 16px; }
.zmt-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 0.84rem; }
.zmt-rank li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--bg-body, #f8fafc); }
.zmt-bar { height: 8px; border-radius: 6px; background: var(--bg-body, #f1f5f9); overflow: hidden; margin-top: 4px; }
.zmt-bar i { display: block; height: 100%; background: #10b981; }

/* Erinnerung (Gästeliste) */
.zme-card { background: var(--bg-card, #ffffff); border: 1px solid var(--border-color, #e2e8f0); border-radius: 18px; padding: 14px; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.zme-card.is-hot { border-color: rgba(245, 158, 11, 0.5); background: rgba(245, 158, 11, 0.05); }
.zme-top { display: flex; gap: 12px; align-items: flex-start; }
.zme-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(39, 113, 200, 0.12); color: var(--primary-color, #2771c8); }
.zme-card.is-hot .zme-icon { background: rgba(245, 158, 11, 0.16); color: #b45309; }
.zme-title { font-size: 0.95rem; font-weight: 800; color: var(--text-main, #0f172a); margin: 0 0 2px; }
.zme-text { font-size: 0.8rem; color: var(--text-muted, #64748b); line-height: 1.5; }
.zme-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.zme-acts .btn { justify-content: center; }
.zme-set { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-main, #0f172a); }
.zme-set select { width: auto; padding: 6px 8px; font-size: 16px; }
.zme-list { max-height: 300px; overflow-y: auto; border: 1px solid var(--border-color, #e2e8f0); border-radius: 14px; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.zme-li { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; font-size: 0.84rem; cursor: pointer; }
.zme-li:hover { background: var(--bg-body, #f8fafc); }
.zme-li input { width: 18px; height: 18px; accent-color: var(--primary-color, #2771c8); flex-shrink: 0; }
.zme-li.is-off { opacity: 0.55; cursor: default; }
.zme-li small { display: block; color: var(--text-muted, #64748b); font-size: 0.72rem; }
.zme-frame { width: 100%; height: 420px; border: 1px solid var(--border-color, #e2e8f0); border-radius: 14px; background: #f1f5f9; }

/* Zähler «x von y» in Feldern & Vorschau der Gästebuch-Einträge */
.zmt-wrap label .pht-count, .zmt-cnt { display: inline-flex; align-items: center; margin-left: 6px; font-size: 0.7rem; font-weight: 800; padding: 2px 8px; border-radius: 20px; background: var(--bg-body, #f1f5f9); color: var(--text-muted, #64748b); vertical-align: middle; white-space: nowrap; }
.zmt-wrap label .pht-count.is-full, .zmt-cnt.is-full { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.zmt-eye { border: none; background: var(--primary-bg-light, rgba(39, 113, 200, 0.08)); color: var(--primary-color, #2771c8); font: inherit; font-size: 0.74rem; font-weight: 800; border-radius: 20px; padding: 3px 10px; margin-left: 6px; cursor: pointer; vertical-align: middle; }
.zmt-eye:hover { filter: brightness(0.95); }
.gbt-looks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.gbt-look { border: 1.5px solid var(--border-color, #e2e8f0); border-radius: 18px; padding: 12px; }
.gbt-look.is-on { border-color: var(--primary-color, #2771c8); }
.gbt-look-h { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; font-size: 0.92rem; color: var(--text-main, #0f172a); }
.gbt-look-h small { flex-basis: 100%; color: var(--text-muted, #64748b); font-size: 0.76rem; }
.gbt-look-p { --bg-body: #f8fafc; --border-color: #e2e8f0; --text-muted: #64748b; background: #ffffff; border-radius: 14px; padding: 10px; }
.gbt-look-p .gb-list { grid-template-columns: minmax(0, 1fr) !important; }
.gbt-look-p.is-hz { background: #f7f1e7; --bg-body: #fffdf8; --border-color: #e5dacb; }
.gbt-look-p.is-hz .gb-entry { border-radius: 16px; }
.gbt-look-p.is-hz .gb-text { font-family: Georgia, 'Times New Roman', serif; font-size: 1.02rem; color: #2f2a24; }
@media (min-width: 560px) { .gbt-looks { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Vorlage mit Fragen (Geschichte) */
.gsw-lead { font-size: 0.92rem; line-height: 1.55; color: var(--text-main, #0f172a); margin: 0 0 12px; }
.gsw-list { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 6px; }
.gsw-list li { display: flex; gap: 10px; align-items: center; font-size: 0.86rem; color: var(--text-main, #0f172a); background: var(--bg-body, #f8fafc); border: 1px solid var(--border-color, #e2e8f0); border-radius: 12px; padding: 9px 12px; }
.gsw-list li i { width: 18px; text-align: center; color: var(--primary-color, #2771c8); }
.gsw-prog { display: grid; gap: 6px; margin: 0 0 14px; font-size: 0.76rem; font-weight: 800; color: var(--text-muted, #64748b); text-transform: uppercase; letter-spacing: 0.4px; }
.gsw-prog .zmt-bar i { background: var(--primary-color, #2771c8); transition: width 0.3s; }
.gsw-q { font-size: 1.15rem; margin: 0 0 12px; color: var(--text-main, #0f172a); display: flex; gap: 10px; align-items: center; }
.gsw-q i { color: var(--primary-color, #2771c8); }
.gsw-l { display: block; font-size: 0.82rem; font-weight: 800; color: var(--text-main, #0f172a); margin-bottom: 6px; }
.gsw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gsw-res { border: 1px solid var(--border-color, #e2e8f0); border-radius: 16px; padding: 12px 14px; margin: 0 0 12px; background: var(--bg-body, #f8fafc); }
.gsw-res > b { font-size: 1rem; color: var(--text-main, #0f172a); }
.gsw-res > p { margin: 4px 0 0; font-size: 0.84rem; color: var(--text-muted, #64748b); }
.gsw-st { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.gsw-st li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; }
.gsw-st li > i { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-bg-light, rgba(39, 113, 200, 0.1)); color: var(--primary-color, #2771c8); font-size: 0.75rem; flex-shrink: 0; }
.gsw-st li span { display: flex; flex-direction: column; gap: 1px; min-width: 0; color: var(--text-main, #0f172a); }
.gsw-st small { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted, #64748b); }
.gsw-st em { font-style: normal; color: var(--text-muted, #64748b); }
.gsw-quiz { border: 1px dashed var(--border-color, #cbd5e1); border-radius: 16px; padding: 12px 14px; margin: 0 0 6px; }
.gsw-quiz ul { margin: 0 0 10px; padding-left: 18px; font-size: 0.84rem; color: var(--text-main, #0f172a); display: grid; gap: 4px; }
.gsw-quiz small { color: var(--text-muted, #64748b); }
.gsw-quiz small b { color: #047857; }

/* Wichteln: Person nach der Auslosung (E-Mail erneut, Link, Ergebnis) */
.zmt-pm { display: grid; gap: 10px; }
.zmt-pm-item { border: 1px solid var(--border-color, #e2e8f0); border-radius: 16px; padding: 12px 14px; display: grid; gap: 8px; }
.zmt-pm-item b { font-size: 0.9rem; color: var(--text-main, #0f172a); display: flex; gap: 8px; align-items: center; }
.zmt-pm-item b i { color: var(--primary-color, #2771c8); width: 16px; text-align: center; }
.zmt-pm-item small { display: block; font-size: 0.78rem; color: var(--text-muted, #64748b); line-height: 1.45; margin-top: 3px; }
.zmt-pm-item .btn { justify-content: center; }
.zmt-pm-item textarea { min-height: 70px; }
/* Wichteln: «Wer beschenkt wen?» – alle Paare einer Gruppe */
.zmt-pairs { display: flex; flex-direction: column; gap: 6px; }
.zmt-pair { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; text-align: left; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--border-color, #e2e8f0); background: var(--bg-card, #ffffff); color: var(--text-main, #0f172a); font: inherit; font-size: 0.9rem; cursor: pointer; min-height: 44px; box-sizing: border-box; }
.zmt-pair:hover, .zmt-pair:focus-visible { border-color: #dc2626; }
.zmt-pair > i { color: #dc2626; font-size: 0.8rem; }
.zmt-pair .zmt-badge { margin-left: auto; }
.zmt-res { display: flex; gap: 12px; align-items: center; margin-top: 8px; padding: 12px 14px; border-radius: 14px; background: rgba(220, 38, 38, 0.06); border: 1px dashed rgba(220, 38, 38, 0.35); }
.zmt-res > span { font-size: 1.8rem; }
.zmt-res small { display: block; font-size: 0.76rem; color: var(--text-muted, #64748b); }
.zmt-res b { font-size: 1.15rem; color: var(--text-main, #0f172a); }

/* Wichteln: Auslosen – per E-Mail oder «Handy herumgeben» */
.zmt-modes { display: grid; gap: 8px; margin-bottom: 4px; }
.zmt-mode { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border-color, #e2e8f0); border-radius: 16px; cursor: pointer; background: var(--bg-card, #ffffff); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.zmt-mode:has(input:checked) { border-color: var(--primary-color, #2771c8); box-shadow: 0 0 0 2px var(--primary-bg-light, rgba(39, 113, 200, 0.18)); }
.zmt-mode input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--primary-color, #2771c8); }
.zmt-mode b { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; color: var(--text-main, #0f172a); }
.zmt-mode b i { color: var(--primary-color, #2771c8); width: 16px; text-align: center; }
.zmt-mode small { display: block; font-size: 0.78rem; color: var(--text-muted, #64748b); line-height: 1.45; margin-top: 3px; }

/* Wichteln: «Handy herumgeben» – Vollbild, das Smartphone geht reihum (eigene dunkle Bühne, gleich im hellen und dunklen Modus) */
.wpass { position: fixed; inset: 0; z-index: 100045; display: flex; flex-direction: column; background: #0f172a; background: radial-gradient(circle at 50% -10%, #7f1d1d 0%, #312e81 55%, #0f172a 100%); color: #f8fafc; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; animation: bzFade 0.18s ease; }
.wpass-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); }
.wpass-title { font-size: 0.85rem; font-weight: 800; color: rgba(248, 250, 252, 0.85); display: flex; gap: 8px; align-items: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpass-x { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: #ffffff; font-size: 1.5rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; }
.wpass-x:hover { background: rgba(255, 255, 255, 0.16); }
.wpass-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; width: 100%; max-width: 520px; margin: 0 auto; padding: 8px 20px 28px; padding-bottom: max(28px, env(safe-area-inset-bottom)); box-sizing: border-box; }
.wpass-emoji { font-size: 3.2rem; line-height: 1; }
.wpass-h { font-size: 1.5rem; font-weight: 900; margin: 0; line-height: 1.25; color: #ffffff; }
.wpass-p { font-size: 0.95rem; line-height: 1.55; margin: 0; color: rgba(248, 250, 252, 0.85); }
.wpass-small { font-size: 0.8rem; line-height: 1.45; margin: 0; color: rgba(248, 250, 252, 0.68); }
.wpass-step { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: rgba(248, 250, 252, 0.7); }
.wpass-av { width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(135deg, #dc2626, #f59e0b); display: flex; align-items: center; justify-content: center; font-size: 2.1rem; font-weight: 900; color: #ffffff; box-shadow: 0 12px 30px rgba(220, 38, 38, 0.35); }
.wpass-name { font-size: 2rem; font-weight: 900; line-height: 1.15; color: #ffffff; overflow-wrap: anywhere; margin-top: -8px; }
.wpass-btn { width: 100%; min-height: 56px; border-radius: 18px; border: none; font-size: 1.05rem; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; background: #ffffff; color: #0f172a; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); font-family: inherit; }
.wpass-btn.is-red { background: linear-gradient(135deg, #dc2626, #e11d48); color: #ffffff; }
.wpass-btn:disabled { opacity: 0.5; cursor: default; }
.wpass-btn:focus-visible, .wpass-link:focus-visible, .wpass-list button:focus-visible, .wpass-x:focus-visible { outline: 3px solid #fbbf24; outline-offset: 3px; }
.wpass-link { background: none; border: none; color: rgba(248, 250, 252, 0.85); font-size: 0.88rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px; font-family: inherit; display: inline-flex; gap: 8px; align-items: center; }
.wpass-list { width: 100%; display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wpass-list button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); color: #ffffff; font-size: 0.95rem; font-weight: 700; cursor: pointer; text-align: left; font-family: inherit; }
.wpass-list button:hover { background: rgba(255, 255, 255, 0.14); }
.wpass-list button > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.wpass-chip { font-size: 0.72rem; font-weight: 800; padding: 3px 9px; border-radius: 20px; background: rgba(255, 255, 255, 0.14); color: rgba(248, 250, 252, 0.9); white-space: nowrap; display: inline-flex; gap: 5px; align-items: center; }
.wpass-chip.is-ok { background: rgba(16, 185, 129, 0.25); color: #a7f3d0; }
.wpass-res { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wpass-gift { font-size: 3.4rem; line-height: 1; animation: wpassPop 0.5s ease; }
.wpass-res b { font-size: 2.3rem; font-weight: 900; line-height: 1.15; color: #ffffff; overflow-wrap: anywhere; animation: wpassPop 0.5s ease 0.08s both; }
.wpass-card { width: 100%; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 20px; padding: 14px 16px; box-sizing: border-box; text-align: left; }
.wpass-card[data-qrbox] { text-align: center; }
.wpass-ct { font-size: 0.8rem; font-weight: 800; color: rgba(248, 250, 252, 0.8); margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.wpass-wishes { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.wpass-wishes li { padding-left: 14px; position: relative; font-size: 0.92rem; color: #ffffff; }
.wpass-wishes li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: #fbbf24; }
.wpass-wishes small { display: block; color: rgba(248, 250, 252, 0.7); font-size: 0.78rem; margin-top: 2px; }
.wpass-qr { width: 200px; height: 200px; margin: 0 auto; }
.wpass-msg { width: 100%; box-sizing: border-box; padding: 10px 14px; border-radius: 14px; background: rgba(225, 29, 72, 0.22); border: 1px solid rgba(251, 113, 133, 0.5); color: #ffe4e6; font-size: 0.85rem; font-weight: 700; }
.wpass-msg[hidden] { display: none; }
@keyframes wpassPop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wpass, .wpass-gift, .wpass-res b { animation: none; } }

/* Reihenfolge auf der Einladung */
.bt-list { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; }
.bt-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; border-radius: 14px; border: 1px solid var(--border-color, #e2e8f0); background: var(--bg-card, #ffffff); }
.bt-item.is-fixed { background: var(--bg-body, #f8fafc); border-style: dashed; color: var(--text-muted, #64748b); }
.bt-item.is-off .bt-name { color: var(--text-muted, #64748b); }
.bt-ic { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-bg-light, rgba(39, 113, 200, 0.08)); color: var(--primary-color, #2771c8); flex-shrink: 0; }
.bt-item.is-fixed .bt-ic { background: transparent; color: var(--text-muted, #94a3b8); }
.bt-name { flex: 1; min-width: 0; font-weight: 800; font-size: 0.88rem; color: var(--text-main, #0f172a); display: flex; flex-direction: column; gap: 3px; }
.bt-name small { font-weight: 600; font-size: 0.72rem; color: var(--text-muted, #64748b); }
.bt-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.bt-tags .zm-pill { font-size: 0.66rem; padding: 2px 7px; }
.bt-lock { color: var(--text-muted, #cbd5e1); font-size: 0.8rem; margin-right: 8px; }

@media (min-width: 640px) {
    .zmt-icons { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .zmt-ex-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; }
    .zme-top { align-items: center; }
}
body.dark-mode .zmt-entry-text, body.dark-mode .zmt-group-name { color: var(--text-main, #e2e8f0); }

/* Meldung & Sperre (includes/moderation/host_panel.php): Verlauf mit dem BeInvited-Team wie ein Chat */
.mod-hp { display: grid; gap: 14px; }
.mod-new-pill { font-size: 0.66rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #e11d48; color: #ffffff; margin-left: 6px; letter-spacing: 0.3px; }
.mod-banner { display: flex; gap: 12px; align-items: flex-start; border-radius: 18px; padding: 14px 16px; border: 1.5px solid; }
.mod-banner b { display: block; font-size: 1rem; font-weight: 900; }
.mod-banner span { font-size: 0.84rem; color: var(--text-muted, #64748b); line-height: 1.45; }
.mod-banner-ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.mod-banner.is-block { background: rgba(225, 29, 72, 0.05); border-color: rgba(225, 29, 72, 0.3); }
.mod-banner.is-block b { color: #be123c; } .mod-banner.is-block .mod-banner-ic { background: rgba(225, 29, 72, 0.12); color: #e11d48; }
.mod-banner.is-review { background: rgba(245, 158, 11, 0.06); border-color: rgba(245, 158, 11, 0.35); }
.mod-banner.is-review b { color: #b45309; } .mod-banner.is-review .mod-banner-ic { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.mod-banner.is-ok { background: rgba(16, 185, 129, 0.05); border-color: rgba(16, 185, 129, 0.3); }
.mod-banner.is-ok b { color: #047857; } .mod-banner.is-ok .mod-banner-ic { background: rgba(16, 185, 129, 0.14); color: #059669; }
.mod-next { border: 1px dashed var(--border-color, #cbd5e1); border-radius: 16px; padding: 12px 16px; font-size: 0.84rem; }
.mod-next b { display: block; margin-bottom: 6px; color: var(--text-main, #0f172a); }
.mod-next ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--text-muted, #64748b); line-height: 1.45; }
.mod-next li.is-done { text-decoration: line-through; opacity: 0.7; }
.mod-next li.is-now { color: #b45309; font-weight: 700; }
.mod-case { border: 1px solid var(--border-color, #e2e8f0); border-radius: 18px; padding: 12px; background: var(--bg-body, #f8fafc); }
.mod-case-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 0.78rem; font-weight: 800; color: var(--text-muted, #64748b); margin: 0 2px 10px; }
.mod-case-head > span:first-child { margin-right: auto; }
.mod-chip { font-size: 0.68rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--bg-card, #ffffff); border: 1px solid var(--border-color, #e2e8f0); color: var(--text-muted, #64748b); display: inline-flex; gap: 5px; align-items: center; }
.mod-chip.is-blocked { color: #be123c; border-color: rgba(225, 29, 72, 0.35); background: rgba(225, 29, 72, 0.06); }
.mod-chip.is-open, .mod-chip.is-in_review, .mod-chip.is-wait { color: #b45309; border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.08); }
.mod-chip.is-closed { color: #047857; border-color: rgba(16, 185, 129, 0.35); background: rgba(16, 185, 129, 0.08); }
.mod-thread { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; padding: 2px; }
.mod-thread time { display: block; font-size: 0.68rem; color: var(--text-muted, #94a3b8); margin-top: 4px; font-weight: 600; }
.mod-ev { align-self: center; max-width: 100%; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; text-align: center; font-size: 0.76rem; color: var(--text-muted, #64748b); background: var(--bg-card, #ffffff); border: 1px dashed var(--border-color, #cbd5e1); border-radius: 999px; padding: 6px 12px; }
.mod-ev time { display: inline; margin: 0; }
.mod-ev .fa-flag { color: #e11d48; }
.mod-st { align-self: stretch; border-radius: 14px; padding: 10px 12px; border: 1px solid; background: var(--bg-card, #ffffff); }
.mod-st-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 0.86rem; }
.mod-st-head time { margin: 0 0 0 auto; }
.mod-st-body { font-size: 0.86rem; line-height: 1.5; color: var(--text-main, #0f172a); margin-top: 6px; overflow-wrap: anywhere; }
.mod-st-body small { display: block; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; color: #be123c; margin-bottom: 2px; }
.mod-st.is-block { border-color: rgba(225, 29, 72, 0.35); } .mod-st.is-block .mod-st-head { color: #be123c; }
.mod-st.is-ok { border-color: rgba(16, 185, 129, 0.35); } .mod-st.is-ok .mod-st-head { color: #047857; }
.mod-st.is-close { border-color: var(--border-color, #e2e8f0); } .mod-st.is-close .mod-st-head { color: var(--text-main, #0f172a); }
.mod-msg { display: flex; }
.mod-msg.is-own { justify-content: flex-end; }
.mod-bubble { max-width: min(560px, 88%); border-radius: 16px; padding: 10px 13px; font-size: 0.88rem; line-height: 1.5; box-sizing: border-box; }
.mod-msg.is-team .mod-bubble { background: var(--bg-card, #ffffff); border: 1px solid var(--border-color, #e2e8f0); border-bottom-left-radius: 6px; }
.mod-msg.is-own .mod-bubble { background: var(--primary-bg-light, rgba(39, 113, 200, 0.1)); border: 1px solid rgba(39, 113, 200, 0.25); border-bottom-right-radius: 6px; }
.mod-who { font-size: 0.72rem; font-weight: 800; color: var(--text-muted, #64748b); margin-bottom: 3px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mod-msg.is-team .mod-who { color: var(--primary-color, #2771c8); }
.mod-tag { font-size: 0.66rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: rgba(245, 158, 11, 0.14); color: #b45309; }
.mod-text { color: var(--text-main, #0f172a); overflow-wrap: anywhere; }
.mod-compose { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-color, #cbd5e1); }
.mod-compose label { font-size: 0.78rem; font-weight: 800; color: var(--text-main, #0f172a); }
.mod-compose textarea { min-height: 84px; resize: vertical; }
.mod-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mod-acts .btn { justify-content: center; }
.mod-older summary { cursor: pointer; font-size: 0.82rem; font-weight: 800; color: var(--text-muted, #64748b); padding: 6px 2px; }
.mod-older .mod-case { margin-top: 10px; }
@media (max-width: 600px) { .mod-acts .btn { flex: 1 1 100%; } .mod-bubble { max-width: 94%; } .mod-compose textarea { font-size: 16px; } }

/* Kacheln «Einstellungen & Co.» – öffnen ein Bearbeiten-Fenster (BZ.tool / BZ.panel in bi-zusatz.js) */
.zmx-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0 0 16px; }
.zmx-tool { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; text-align: left; padding: 11px 12px 11px 11px; border-radius: 16px; border: 1px solid var(--border-color, #e2e8f0); background: var(--bg-card, #ffffff); color: var(--text-main, #0f172a); cursor: pointer; font-family: inherit; box-sizing: border-box; transition: border-color 0.15s ease, transform 0.15s ease; }
.zmx-tool:hover:not(:disabled), .zmx-tool:focus-visible { border-color: var(--primary-color, #2771c8); }
.zmx-tool:active:not(:disabled) { transform: scale(0.99); }
.zmx-tool:disabled { cursor: default; opacity: 0.7; }
.zmx-tool-ic { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--primary-bg-light, rgba(39, 113, 200, 0.1)); color: var(--primary-color, #2771c8); font-size: 0.95rem; }
.zmx-tool.is-off .zmx-tool-ic { background: var(--bg-body, #f1f5f9); color: var(--text-muted, #64748b); }
.zmx-tool.is-warn .zmx-tool-ic { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.zmx-tool-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.zmx-tool-main b { font-size: 0.9rem; font-weight: 800; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.zmx-tool-main small { font-size: 0.76rem; color: var(--text-muted, #64748b); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.zmx-tool-go { color: var(--text-muted, #94a3b8); font-size: 0.78rem; flex-shrink: 0; }
@media (min-width: 640px) { .zmx-tools { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
/* Übersicht eines Bereichs: Kacheln, dann die Inhalte – mit gleichem Abstand */
.zmx-page { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.zmx-page > .zmx-tools, .zmx-page > .pht-note, .zmx-page > .pht-box { margin: 0; }
body.dark-mode .zmx-tool.is-warn .zmx-tool-ic { color: #fbbf24; }

/* Kompakte Vorschau-Listen in der Übersicht (z. B. Stationen) */
.zmx-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.zmx-mini li > button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border: 1px solid var(--border-color, #e2e8f0); border-radius: 12px; background: var(--bg-body, #f8fafc); color: var(--text-main, #0f172a); font-family: inherit; cursor: pointer; min-width: 0; box-sizing: border-box; }
.zmx-mini li > button:hover:not(:disabled) { border-color: var(--primary-color, #2771c8); }
.zmx-mini li > button:disabled { cursor: default; }
.zmx-mini-ic { width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--bg-card, #ffffff); border: 1px solid var(--border-color, #e2e8f0); color: #e11d48; font-size: 0.8rem; }
.zmx-mini-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.zmx-mini-txt small { font-size: 0.72rem; font-weight: 700; color: var(--text-muted, #64748b); }
.zmx-mini-txt b { font-size: 0.86rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zmx-mini-go { color: var(--text-muted, #94a3b8); font-size: 0.75rem; flex-shrink: 0; }
.zmx-more { font-size: 0.78rem; color: var(--text-muted, #64748b); margin-top: 8px; }
