/* Dateipfad: assets/css/bi-zusatz.css
   Zusatz-Module auf der Einladung und ihren eigenen Seiten: Unsere Geschichte, Gästebuch, Wichteln, Kosten teilen.
   Nur Farb-Variablen des Designs (--primary-color, --bg-card, --text-main …) – so passen die Kacheln zu «Schlicht» und «Hochzeit».
   Mobile zuerst. Logik: assets/js/bi-zusatz.js und je Modul assets/js/bi-<modul>.js */

.zm-card [hidden], .bz-modal [hidden] { display: none !important; }
.zm-card { overflow-wrap: anywhere; }
.zm-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.zm-title { font-size: 1.3rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 10px; color: var(--text-main, #0f172a); line-height: 1.25; }
.zm-title > i { color: var(--primary-color, #2771c8); }
.zm-badge { font-size: 0.76rem; font-weight: 800; background: var(--primary-bg-light, rgba(39, 113, 200, 0.08)); color: var(--primary-color, #2771c8); border: 1px solid var(--border-color, rgba(39, 113, 200, 0.2)); padding: 4px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.zm-lead { font-size: 0.88rem; color: var(--text-muted, #64748b); margin: 0 0 16px; line-height: 1.55; white-space: pre-line; }
.zm-note { font-size: 0.84rem; line-height: 1.5; border-radius: 14px; padding: 11px 13px; background: var(--bg-body, #f8fafc); border: 1px solid var(--border-color, #e2e8f0); color: var(--text-muted, #64748b); display: flex; gap: 9px; align-items: flex-start; margin: 0 0 14px; }
.zm-note i { margin-top: 3px; color: var(--primary-color, #2771c8); }
.zm-note.is-warn { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.35); color: #92400e; }
.zm-note.is-warn i { color: #b45309; }
.zm-note.is-ok { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.3); color: #065f46; }
.zm-note.is-ok i { color: #059669; }
.zm-empty { text-align: center; color: var(--text-muted, #64748b); font-size: 0.86rem; padding: 18px 10px; }
.zm-empty i { display: block; font-size: 1.6rem; margin-bottom: 8px; opacity: 0.5; }
.zm-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.zm-row .btn { justify-content: center; }
.zm-btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.zm-btn-row .btn { flex: 1 1 180px; justify-content: center; }
.zm-link { border: none; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--primary-color, #2771c8); cursor: pointer; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.zm-small { font-size: 0.76rem; color: var(--text-muted, #64748b); }
.zm-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 800; padding: 3px 9px; border-radius: 20px; background: var(--bg-body, #f1f5f9); color: var(--text-muted, #64748b); border: 1px solid var(--border-color, #e2e8f0); white-space: nowrap; }
.zm-pill.is-ok { background: rgba(16, 185, 129, 0.12); color: #047857; border-color: rgba(16, 185, 129, 0.3); }
.zm-pill.is-warn { background: rgba(245, 158, 11, 0.12); color: #b45309; border-color: rgba(245, 158, 11, 0.3); }
.zm-pill.is-primary { background: var(--primary-bg-light, rgba(39, 113, 200, 0.1)); color: var(--primary-color, #2771c8); border-color: transparent; }
.zm-pill.is-off { background: transparent; color: var(--text-muted, #64748b); border-style: dashed; }
.zm-pill.is-info { background: rgba(14, 165, 233, 0.1); color: #0369a1; border-color: rgba(14, 165, 233, 0.28); }
body.dark-mode .zm-pill.is-ok { color: #34d399; }
body.dark-mode .zm-pill.is-warn { color: #fbbf24; }
body.dark-mode .zm-pill.is-info { color: #7dd3fc; }
.zm-field { margin-bottom: 12px; }
.zm-field > label, .zm-label { display: block; font-size: 0.8rem; font-weight: 800; margin-bottom: 6px; color: var(--text-main, #0f172a); }
.zm-field .form-control { width: 100%; box-sizing: border-box; font-size: 16px; }
.zm-field textarea.form-control { min-height: 96px; resize: vertical; line-height: 1.5; }
.zm-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; line-height: 1.45; cursor: pointer; color: var(--text-main, #0f172a); }
.zm-check input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--primary-color, #2771c8); }
.zm-check small { display: block; color: var(--text-muted, #64748b); font-size: 0.76rem; }
.zm-count { font-size: 0.72rem; color: var(--text-muted, #64748b); text-align: right; margin-top: 4px; }
.zm-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--border-color, #e2e8f0); font-size: 0.8rem; color: var(--text-muted, #64748b); }
.zm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.zm-spin { text-align: center; padding: 22px 0; color: var(--text-muted, #94a3b8); }

/* ---------------- Unsere Geschichte ---------------- */
.gs-line { position: relative; margin: 6px 0 4px; padding-left: 4px; }
.gs-line::before { content: ''; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--primary-color, #2771c8), rgba(127, 127, 127, 0.15)); border-radius: 2px; }
.gs-item { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 0 0 20px; }
.gs-item:last-child { padding-bottom: 0; }
.gs-dot { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg-card, #ffffff); border: 2px solid var(--primary-color, #2771c8); color: var(--primary-color, #2771c8); font-size: 0.9rem; position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--bg-card, #ffffff); }
.gs-item:last-child .gs-dot { background: var(--primary-color, #2771c8); color: #ffffff; }
.gs-when { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: var(--primary-color, #2771c8); margin: 7px 0 3px; }
.gs-name { font-size: 1.02rem; font-weight: 800; color: var(--text-main, #0f172a); margin: 0 0 4px; line-height: 1.3; }
.gs-text { font-size: 0.88rem; color: var(--text-muted, #64748b); line-height: 1.6; margin: 0; white-space: pre-line; }
.gs-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.gs-cardx { border: 1px solid var(--border-color, #e2e8f0); border-radius: 18px; padding: 16px; background: var(--bg-body, #f8fafc); display: flex; gap: 12px; align-items: flex-start; }
.gs-cardx .gs-dot { flex-shrink: 0; box-shadow: none; }
.gs-cardx .gs-when { margin-top: 0; }
.gs-more { margin-top: 12px; }
.gs-collapsed .gs-item:nth-child(n+5), .gs-collapsed .gs-cardx:nth-child(n+5) { display: none; }
.gs-quiz { margin-top: 22px; border: 1px solid var(--border-color, #e2e8f0); border-radius: 18px; padding: 18px 16px; background: var(--bg-body, #f8fafc); }
.gs-quiz h4 { margin: 0 0 4px; font-size: 1.05rem; display: flex; gap: 8px; align-items: center; color: var(--text-main, #0f172a); }
.gs-quiz h4 i { color: var(--primary-color, #2771c8); }
.gs-q { margin: 16px 0 0; }
.gs-q-text { font-weight: 800; font-size: 0.92rem; margin: 0 0 8px; color: var(--text-main, #0f172a); }
.gs-q-num { color: var(--primary-color, #2771c8); margin-right: 4px; }
.gs-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.gs-opt { text-align: left; border: 1.5px solid var(--border-color, #e2e8f0); background: var(--bg-card, #ffffff); color: var(--text-main, #0f172a); border-radius: 12px; padding: 11px 13px; font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; display: flex; gap: 8px; align-items: center; min-height: 46px; }
.gs-opt.is-on { border-color: var(--primary-color, #2771c8); background: var(--primary-bg-light, rgba(39, 113, 200, 0.08)); }
.gs-opt.is-right { border-color: #10b981; background: rgba(16, 185, 129, 0.1); }
.gs-opt.is-wrong { border-color: #fda4af; background: rgba(244, 63, 94, 0.07); }
.gs-opt:disabled { cursor: default; }
.gs-opt .gs-mark { margin-left: auto; font-size: 0.8rem; }
.gs-q-note { font-size: 0.78rem; color: var(--text-muted, #64748b); margin-top: 6px; }
.gs-score { text-align: center; padding: 10px 0 2px; }
.gs-score b { display: block; font-size: 2rem; color: var(--primary-color, #2771c8); line-height: 1.1; }
.gs-rank { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gs-rank li { display: flex; gap: 10px; align-items: center; background: var(--bg-card, #ffffff); border: 1px solid var(--border-color, #e2e8f0); border-radius: 12px; padding: 8px 12px; font-size: 0.86rem; }
.gs-rank li.is-me { border-color: var(--primary-color, #2771c8); font-weight: 800; }
.gs-rank .gs-place { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.78rem; background: var(--bg-body, #f1f5f9); flex-shrink: 0; }
.gs-rank li.is-first .gs-place { background: #fde68a; color: #92400e; }
.gs-rank .gs-pts { margin-left: auto; font-weight: 800; color: var(--text-muted, #64748b); }

/* ---------------- Gästebuch ---------------- */
.gb-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 4px; }
.gb-entry { border-radius: 18px; padding: 16px 16px 12px; background: var(--bg-body, #f8fafc); border: 1px solid var(--border-color, #e2e8f0); position: relative; }
.gb-entry[data-c="rose"] { background: #fff1f3; border-color: #fbd0d9; }
.gb-entry[data-c="sky"] { background: #eff6ff; border-color: #c7dcfa; }
.gb-entry[data-c="mint"] { background: #ecfdf5; border-color: #bfeedb; }
.gb-entry[data-c="sun"] { background: #fffbeb; border-color: #fde7a6; }
.gb-entry[data-c="lilac"] { background: #f5f3ff; border-color: #ddd6fe; }
.gb-entry[data-c="sand"] { background: #faf6f0; border-color: #eadccb; }
.gb-plain .gb-entry { background: var(--bg-body, #f8fafc) !important; border-color: var(--border-color, #e2e8f0) !important; }
.gb-entry.is-pending { opacity: 0.85; border-style: dashed; }
.gb-sticker { position: absolute; top: 12px; right: 14px; font-size: 1.5rem; line-height: 1; }
.gb-prompt { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted, #64748b); margin: 0 40px 6px 0; }
.gb-text { font-size: 0.95rem; line-height: 1.6; color: #0f172a; margin: 0; white-space: pre-line; padding-right: 30px; }
.gb-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 0.76rem; color: #64748b; }
.gb-meta b { color: #0f172a; font-weight: 800; }
.gb-acts { display: flex; gap: 2px; }
.gb-acts button { border: none; background: none; color: #64748b; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 0.85rem; }
.gb-acts button:hover { background: rgba(15, 23, 42, 0.06); color: #0f172a; }
.gb-form { border: 1px solid var(--border-color, #e2e8f0); border-radius: 18px; padding: 16px; background: var(--bg-card, #ffffff); margin-bottom: 16px; }
.gb-form h4 { margin: 0 0 12px; font-size: 1rem; color: var(--text-main, #0f172a); display: flex; gap: 8px; align-items: center; }
.gb-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.gb-chip { border: 1.5px solid var(--border-color, #e2e8f0); background: var(--bg-card, #ffffff); color: var(--text-main, #0f172a); border-radius: 999px; padding: 8px 12px; font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; line-height: 1.3; text-align: left; }
.gb-chip.is-on { border-color: var(--primary-color, #2771c8); background: var(--primary-bg-light, rgba(39, 113, 200, 0.08)); color: var(--primary-color, #2771c8); }
.gb-stickers { display: flex; gap: 4px; flex-wrap: wrap; }
.gb-st { width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--border-color, #e2e8f0); background: var(--bg-card, #ffffff); font-size: 1.25rem; cursor: pointer; }
.gb-st.is-on { border-color: var(--primary-color, #2771c8); box-shadow: 0 0 0 3px var(--primary-bg-light, rgba(39, 113, 200, 0.12)); }
.gb-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.gb-col { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(15, 23, 42, 0.12); cursor: pointer; }
.gb-col.is-on { box-shadow: 0 0 0 3px var(--primary-color, #2771c8); }
.gb-people .gb-chip i { font-size: 0.72rem; margin-right: 3px; }
.gb-people .gb-chip:not(.is-on) { color: var(--text-muted, #64748b); border-style: dashed; }
.gb-peek { display: grid; gap: 8px; margin: 0 0 14px; }
.gb-peek-e { font-size: 0.86rem; line-height: 1.5; color: var(--text-main, #0f172a); background: var(--bg-body, #f8fafc); border: 1px solid var(--border-color, #e2e8f0); border-radius: 14px; padding: 10px 12px; }
.gb-peek-e b { font-weight: 700; color: var(--text-muted, #64748b); white-space: nowrap; }
.gb-linkbtn { width: 100%; justify-content: center; }
.gb-filter { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 2px 0 10px; font-size: 0.8rem; color: var(--text-muted, #64748b); }

/* ---------------- Wichteln ---------------- */
.wi-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.wi-group { border: 1px solid var(--border-color, #e2e8f0); border-radius: 18px; padding: 16px; background: var(--bg-body, #f8fafc); }
.wi-group-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.wi-group-name { font-size: 1.02rem; font-weight: 800; color: var(--text-main, #0f172a); margin: 0; display: flex; gap: 8px; align-items: center; }
.wi-group-name i { color: var(--primary-color, #2771c8); }
.wi-budget { font-size: 0.82rem; font-weight: 800; color: var(--text-main, #0f172a); background: var(--bg-card, #ffffff); border: 1px solid var(--border-color, #e2e8f0); border-radius: 10px; padding: 4px 10px; white-space: nowrap; }
.wi-note { font-size: 0.84rem; color: var(--text-muted, #64748b); margin: 8px 0 0; line-height: 1.5; white-space: pre-line; }
.wi-members { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.wi-member { font-size: 0.74rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: var(--bg-card, #ffffff); border: 1px solid var(--border-color, #e2e8f0); color: var(--text-main, #0f172a); }
.wi-people { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.wi-person { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--bg-card, #ffffff); border: 1px solid var(--border-color, #e2e8f0); border-radius: 14px; padding: 9px 10px 9px 13px; }
.wi-person b { font-size: 0.88rem; color: var(--text-main, #0f172a); }
.wi-person .btn { padding: 8px 12px; font-size: 0.8rem; }
.wi-reveal { text-align: center; border-radius: 20px; padding: 26px 18px; background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(16, 185, 129, 0.08)); border: 1px dashed var(--border-color, #e2e8f0); }
.wi-reveal .wi-gift { font-size: 3rem; line-height: 1; display: block; margin-bottom: 10px; }
.wi-reveal .wi-gift.is-shake { animation: wiShake 0.9s ease; }
.wi-reveal h4 { margin: 0 0 6px; font-size: 1.05rem; color: var(--text-main, #0f172a); }
.wi-target { font-size: 1.7rem; font-weight: 900; color: var(--primary-color, #2771c8); margin: 4px 0 6px; }
@keyframes wiShake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(6deg); } }
.wi-wishes { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wi-wish { background: var(--bg-card, #ffffff); border: 1px solid var(--border-color, #e2e8f0); border-radius: 14px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; }
.wi-wish-main { flex: 1; min-width: 0; }
.wi-wish-title { font-weight: 800; font-size: 0.9rem; color: var(--text-main, #0f172a); }
.wi-wish-note { font-size: 0.8rem; color: var(--text-muted, #64748b); margin-top: 2px; }
.wi-wish a { font-size: 0.8rem; font-weight: 700; color: var(--primary-color, #2771c8); text-decoration: none; display: inline-flex; gap: 5px; align-items: center; margin-top: 4px; word-break: break-all; }
.wi-wish-acts { display: flex; gap: 2px; flex-shrink: 0; }
.wi-wish-acts button { border: none; background: none; width: 34px; height: 34px; border-radius: 50%; color: var(--text-muted, #64748b); cursor: pointer; }
.wi-wish-acts button:hover { background: var(--bg-body, #f1f5f9); }
.wi-legal { font-size: 0.72rem; color: var(--text-muted, #64748b); line-height: 1.45; margin-top: 8px; display: flex; gap: 6px; }
.wi-sec { margin-top: 18px; }
.wi-sec h4 { margin: 0 0 8px; font-size: 0.98rem; display: flex; gap: 8px; align-items: center; color: var(--text-main, #0f172a); }

/* ---------------- Kosten teilen ---------------- */
.ko-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.ko-kpi { background: var(--bg-body, #f8fafc); border: 1px solid var(--border-color, #e2e8f0); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.ko-kpi span { display: block; font-size: 0.7rem; font-weight: 700; color: var(--text-muted, #64748b); }
.ko-kpi b { font-size: 1.1rem; font-weight: 800; color: var(--text-main, #0f172a); font-variant-numeric: tabular-nums; }
.ko-kpi.is-plus b { color: #059669; } .ko-kpi.is-minus b { color: #e11d48; }
.ko-tabs { display: flex; gap: 4px; background: var(--bg-body, #f8fafc); border: 1px solid var(--border-color, #e2e8f0); border-radius: 12px; padding: 3px; margin-bottom: 12px; }
.ko-tabs button { flex: 1; border: none; background: none; border-radius: 9px; padding: 9px 6px; font: inherit; font-size: 0.8rem; font-weight: 700; color: var(--text-muted, #64748b); cursor: pointer; min-height: 40px; }
.ko-tabs button.active { background: var(--bg-card, #ffffff); color: var(--text-main, #0f172a); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }
.ko-list { display: flex; flex-direction: column; gap: 8px; }
.ko-exp { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--bg-body, #f8fafc); border: 1px solid var(--border-color, #e2e8f0); border-radius: 14px; padding: 10px 12px; cursor: pointer; text-align: left; font: inherit; width: 100%; color: inherit; }
.ko-exp-icon { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--bg-card, #ffffff); color: var(--primary-color, #2771c8); border: 1px solid var(--border-color, #e2e8f0); }
.ko-exp-title { font-weight: 800; font-size: 0.9rem; color: var(--text-main, #0f172a); }
.ko-exp-sub { font-size: 0.74rem; color: var(--text-muted, #64748b); margin-top: 2px; }
.ko-exp-amt { font-weight: 800; font-size: 0.92rem; color: var(--text-main, #0f172a); font-variant-numeric: tabular-nums; text-align: right; }
.ko-exp-amt small { display: block; font-size: 0.7rem; font-weight: 700; color: var(--text-muted, #64748b); }
.ko-bal { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--bg-body, #f8fafc); border: 1px solid var(--border-color, #e2e8f0); font-size: 0.88rem; }
.ko-bal.is-me { border-color: var(--primary-color, #2771c8); }
.ko-bal b { font-variant-numeric: tabular-nums; }
.ko-bal .is-plus { color: #059669; } .ko-bal .is-minus { color: #e11d48; }
.ko-settle { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 12px; border-radius: 14px; background: var(--bg-card, #ffffff); border: 1px solid var(--border-color, #e2e8f0); font-size: 0.86rem; }
.ko-settle .ko-arrow { color: var(--text-muted, #94a3b8); }
.ko-settle .ko-amt { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.ko-settle .btn { padding: 7px 11px; font-size: 0.78rem; }
.ko-split { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; border: 1px solid var(--border-color, #e2e8f0); border-radius: 14px; padding: 8px; }
.ko-split-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 96px; gap: 10px; align-items: center; font-size: 0.86rem; color: var(--text-main, #0f172a); }
.ko-split-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary-color, #2771c8); }
.ko-split-row .form-control { padding: 7px 8px; font-size: 16px; text-align: right; }
.ko-split-row .ko-share { text-align: right; font-size: 0.78rem; color: var(--text-muted, #64748b); font-variant-numeric: tabular-nums; }
.ko-scan { border: 1.5px dashed var(--primary-color, #2771c8); border-radius: 16px; padding: 14px; text-align: center; background: var(--primary-bg-light, rgba(39, 113, 200, 0.05)); margin-bottom: 12px; }
.ko-scan p { margin: 6px 0 0; font-size: 0.76rem; color: var(--text-muted, #64748b); line-height: 1.45; }
.ko-scan-progress { height: 8px; border-radius: 6px; background: var(--bg-body, #f1f5f9); overflow: hidden; margin-top: 10px; }
.ko-scan-progress i { display: block; height: 100%; width: 0; background: var(--primary-color, #2771c8); transition: width 0.3s ease; }
.ko-found { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; justify-content: center; }
.ko-found button { border: 1.5px solid var(--border-color, #e2e8f0); background: var(--bg-card, #ffffff); border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 0.8rem; font-weight: 800; cursor: pointer; color: var(--text-main, #0f172a); }
.ko-found button.is-best { border-color: var(--primary-color, #2771c8); color: var(--primary-color, #2771c8); }
.ko-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
/* Positionen einer Ausgabe */
.ko-items-toggle { display: inline-flex; align-items: center; gap: 7px; border: none; background: none; padding: 4px 0; font: inherit; font-size: 0.84rem; font-weight: 700; color: var(--primary-color, #2771c8); cursor: pointer; }
.ko-items-toggle.is-open { color: var(--text-main, #0f172a); }
.ko-items-toggle.is-open .zm-small { display: none; }
.ko-items { margin-top: 6px; }
.ko-items > .zm-label { display: none; }
.ko-it-rows { display: flex; flex-direction: column; gap: 6px; }
.ko-it { display: grid; grid-template-columns: minmax(0, 1fr) 92px 32px; gap: 6px; align-items: center; }
.ko-it .form-control { padding: 8px 10px; font-size: 16px; }
.ko-it .form-control[data-f="v"] { text-align: right; font-variant-numeric: tabular-nums; }
.ko-it-x { width: 32px; height: 32px; border: none; background: none; border-radius: 50%; color: var(--text-muted, #64748b); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0; }
.ko-it-x:hover { background: var(--bg-body, #f1f5f9); color: #e11d48; }
.ko-it-x[hidden] { display: block !important; visibility: hidden; }
.ko-it-sum { margin-top: 8px; line-height: 1.5; }
.ko-it-diff { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(245, 158, 11, 0.1); color: #b45309; font-weight: 600; }
.ko-it-diff .btn { padding: 6px 10px; font-size: 0.78rem; }
#koA.is-auto { background: var(--bg-body, #f1f5f9); color: var(--text-main, #0f172a); font-weight: 800; }
.ko-found button.is-items { border-color: var(--primary-color, #2771c8); background: var(--primary-color, #2771c8); color: #ffffff; }
.ko-iv { border: 1px solid var(--border-color, #e2e8f0); border-radius: 14px; padding: 4px 12px; margin-bottom: 4px; }
.ko-iv-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 0.86rem; border-bottom: 1px dashed var(--border-color, #e2e8f0); }
.ko-iv-row:last-child { border-bottom: none; }
.ko-iv-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ko-iv-row b.is-minus { color: #059669; }
.ko-tabs button { min-width: 0; line-height: 1.2; padding: 8px 4px; overflow-wrap: anywhere; }
/* Schmale Handys: Breite nach Inhalt, Wörter nicht mitten drin trennen («Wer schuldet wem» bricht an den Leerzeichen um) */
@media (max-width: 420px) { .ko-tabs button { font-size: 0.74rem; flex: 1 1 auto; overflow-wrap: normal; } }
.ko-limit { text-align: center; margin: 0 0 12px; }
.ko-limit.is-full { color: #b45309; font-weight: 700; }
.ko-bars { display: flex; flex-direction: column; gap: 10px; }
.ko-barrow { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 0.84rem; color: var(--text-main, #0f172a); }
.ko-barrow.is-me .ko-barlab { color: var(--primary-color, #2771c8); }
.ko-barlab { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ko-barlab i { color: var(--text-muted, #94a3b8); width: 16px; text-align: center; }
.ko-barlab small { display: block; font-weight: 600; font-size: 0.7rem; color: var(--text-muted, #64748b); }
.ko-bar { display: block; height: 10px; border-radius: 6px; background: var(--bg-body, #f1f5f9); overflow: hidden; }
.ko-bar i { display: block; height: 100%; border-radius: 6px; background: var(--primary-color, #2771c8); }
.ko-bar2 { display: flex; flex-direction: column; gap: 4px; }
.ko-bar.is-paid i { background: #10b981; }
.ko-bar.is-owed i { background: var(--primary-color, #2771c8); opacity: 0.55; }
.ko-barrow b { font-variant-numeric: tabular-nums; text-align: right; font-size: 0.84rem; }
.ko-barrow b small { display: block; font-size: 0.7rem; font-weight: 600; color: var(--text-muted, #64748b); }
.ko-legend { display: flex; gap: 14px; font-size: 0.72rem; color: var(--text-muted, #64748b); margin: -4px 0 10px; }
.ko-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.ko-legend i.is-paid { background: #10b981; } .ko-legend i.is-owed { background: var(--primary-color, #2771c8); opacity: 0.55; }

/* ---------------- Hinweis-/Formular-Fenster: mittig wie alle Popups (.modal-backdrop / .modal-card in assets/theme.php) ---------------- */
.bz-modal { position: fixed; inset: 0; z-index: 100050; background: rgba(15, 23, 42, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.bz-modal.is-open { display: flex; animation: bzFade 0.18s ease; }
.bz-card { background: var(--bg-card, #ffffff); color: var(--text-main, #0f172a); width: 100%; max-width: 480px; border-radius: var(--card-radius, 24px); padding: 25px; border: 1px solid var(--border-color, #e2e8f0); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18); max-height: 90vh; max-height: 90dvh; overflow-y: auto; box-sizing: border-box; animation: bzPop 0.2s ease; }
.bz-card.is-wide { max-width: 620px; }
.bz-card.is-center { text-align: center; max-width: 440px; }
@keyframes bzFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bzPop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.bz-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.bz-head h3 { margin: 0; font-size: 1.25rem; font-weight: 800; display: flex; align-items: center; gap: 8px; color: var(--text-main, #0f172a); line-height: 1.3; }
.bz-x { border: none; background: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: var(--text-muted, #64748b); font-size: 1.4rem; line-height: 1; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 0; }
.bz-x:hover { background: var(--bg-body, #f1f5f9); }
.bz-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin: 0 auto 14px; background: var(--primary-bg-light, rgba(39, 113, 200, 0.12)); color: var(--primary-color, #2771c8); }
.bz-icon.is-warn { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.bz-icon.is-danger { background: rgba(225, 29, 72, 0.1); color: #e11d48; }
.bz-icon.is-ok { background: rgba(16, 185, 129, 0.14); color: #059669; }
.bz-title { font-size: 1.2rem; font-weight: 800; margin: 0 0 8px; color: var(--text-main, #0f172a); }
.bz-text { font-size: 0.88rem; color: var(--text-muted, #64748b); line-height: 1.55; margin: 0 0 18px; text-align: left; }
.bz-acts { display: flex; gap: 10px; margin-top: 18px; justify-content: flex-end; }
/* Hinweis-Fenster wie die übrigen Popups: Symbol, Titel, Text und Knöpfe mittig */
.bz-card.is-center .bz-text { text-align: center; }
.bz-card.is-center .bz-acts { justify-content: center; }
/* Event-Management: Felder in Popups wie in den übrigen Popups dort (.form-group / .form-label) */
body.bz-manage .bz-card .zm-field { margin-bottom: 18px; }
body.bz-manage .bz-card .zm-field > label, body.bz-manage .bz-card .zm-label, body.bz-manage .bz-card .gsw-l { font-size: 0.8rem; font-weight: 700; color: var(--text-muted, #64748b); }
body.bz-manage .bz-card .bz-head { margin-bottom: 18px; }
body.bz-manage .bz-modal { padding: 20px; }
body.bz-manage .bz-card { padding: 25px; }
body.bz-manage .bz-card.is-center .bz-icon { width: 50px; height: 50px; font-size: 1.25rem; margin-bottom: 14px; }
.bz-acts .btn { flex: 1; justify-content: center; }
/* Bearbeiten-Fenster (BZ.panel): eigene Ebene unter BZ.sheet/BZ.confirm, Knöpfe unten immer sichtbar */
.bz-modal.zmx-panel { z-index: 100040; }
/* Hinweise der Verwaltung (Premium, Bestand, Löschen …) erscheinen über einem offenen Bearbeiten-Fenster */
body:has(.zmx-panel) .modal-backdrop { z-index: 100060 !important; }
.zmx-card { padding-bottom: 0 !important; display: flex; flex-direction: column; }
.zmx-body { min-width: 0; }
.zmx-foot { position: sticky; bottom: 0; z-index: 2; display: flex; gap: 10px; justify-content: flex-end; margin: 18px -25px 0; padding: 14px 25px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--bg-card, #ffffff); border-top: 1px solid var(--border-color, #e2e8f0); border-radius: 0 0 var(--card-radius, 24px) var(--card-radius, 24px); }
.zmx-foot .btn { justify-content: center; }
@media (max-width: 520px) {
    .bz-modal.zmx-panel { padding: 10px; }
    .zmx-card { padding: 20px 18px 0 !important; max-height: 94vh; max-height: 94dvh; }
    .zmx-foot { margin: 16px -18px 0; padding-left: 18px; padding-right: 18px; }
    .zmx-foot .btn { flex: 1; }
}
.bz-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; transition: all 0.25s ease; z-index: 100070; background: #0f172a; color: #ffffff; padding: 10px 16px; border-radius: 12px; font-size: 0.85rem; font-weight: 600; max-width: calc(100% - 32px); box-sizing: border-box; pointer-events: none; text-align: center; }
.bz-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.bz-toast.is-bad { background: #be123c; }

/* ---------------- Eigene Seite eines Moduls (/e/CODE/<modul>) ---------------- */
.zm-page-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.zm-page-top .zm-page-icon { width: 46px; height: 46px; border-radius: 14px; display: 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: 1.15rem; flex-shrink: 0; }
.zm-page-top small { display: block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted, #64748b); }
.zm-page-top b { display: block; font-size: 1.05rem; color: var(--text-main, #0f172a); line-height: 1.3; }
.zm-back { text-align: center; margin: 6px 0 20px; }
.zm-back .btn { justify-content: center; }

@media (max-width: 480px) {
    .bz-modal { padding: 14px; }
    .bz-card { padding: 22px 18px; }
    .bz-acts { flex-wrap: wrap; }
}
@media (min-width: 640px) {
    .gs-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .gs-opts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .gb-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .gb-list.is-one { grid-template-columns: minmax(0, 1fr); }
    .ko-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------------- Design «Hochzeit» ---------------- */
body.bi-theme-hochzeit .zm-title, body.bi-theme-hochzeit .gs-name, body.bi-theme-hochzeit .gs-quiz h4, body.bi-theme-hochzeit .wi-group-name,
body.bi-theme-hochzeit .gb-form h4, body.bi-theme-hochzeit .wi-sec h4, body.bi-theme-hochzeit .wi-target, body.bi-theme-hochzeit .zm-page-top b {
    font-family: var(--hz-display, Georgia, serif); font-weight: 400; letter-spacing: 0.2px;
}
body.bi-theme-hochzeit .zm-title { font-size: 1.7rem; }
body.bi-theme-hochzeit .gs-name { font-size: 1.25rem; }
body.bi-theme-hochzeit .wi-target { font-size: 2.1rem; }
body.bi-theme-hochzeit .gs-line::before { background: linear-gradient(var(--hz-gold, #b08d57), rgba(176, 141, 87, 0.15)); }
body.bi-theme-hochzeit .gs-dot { border-color: var(--hz-gold, #b08d57); color: var(--hz-gold-dark, #8a6a3b); }
body.bi-theme-hochzeit .gs-item:last-child .gs-dot { background: var(--hz-gold, #b08d57); color: #ffffff; }
body.bi-theme-hochzeit .gs-when { color: var(--hz-gold-dark, #8a6a3b); letter-spacing: 1.5px; }
body.bi-theme-hochzeit .gb-entry, body.bi-theme-hochzeit .wi-group, body.bi-theme-hochzeit .gs-quiz, body.bi-theme-hochzeit .gs-cardx { border-radius: 16px; }
body.bi-theme-hochzeit .gb-text { font-family: var(--hz-display, Georgia, serif); font-size: 1.08rem; line-height: 1.55; }
body.bi-theme-hochzeit .gb-peek-e { font-family: var(--hz-display, Georgia, serif); font-size: 1rem; background: var(--hz-paper, #fffdf8); border-color: var(--hz-line, #e5dacb); }
body.bi-theme-hochzeit .zm-badge { background: transparent; }
body.bi-theme-hochzeit .bz-modal { background: rgba(47, 42, 36, 0.55); }
body.bi-theme-hochzeit .bz-card { background: var(--hz-paper, #fffdf8); border-color: var(--hz-line, #e5dacb); border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(47, 42, 36, 0.45); }
body.bi-theme-hochzeit .bz-head h3, body.bi-theme-hochzeit .bz-title { font-family: var(--hz-display, Georgia, serif); font-weight: 400; font-size: 1.55rem; letter-spacing: 0.1px; }
body.bi-theme-hochzeit .bz-head h3 i { font-size: 0.75em; }

/* «Diese Seite melden» (includes/moderation/report_link.php) – Seiten ohne Event und Modul-Seiten */
.mr-wrap { display: flex; justify-content: center; margin: 6px 0 18px; }
.mr-link { background: none; border: none; color: var(--text-muted, #94a3b8); font-size: 0.78rem; font-weight: 700; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border-radius: 999px; font-family: inherit; }
.mr-link:hover, .mr-link:focus-visible { color: #e11d48; background: rgba(225, 29, 72, 0.06); }
