/* Tool „Gemeinsame Kasse“ – Verwaltung (index.php), auf buchung.css/werk.css. */

/* Startseite: Attrappe */
.ag-attrappe { display: grid; gap: .55rem; padding: 1.1rem; }
.ag-a-kopf { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; margin-bottom: .3rem; }
.ag-a-kopf span { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--wz) 22%, transparent); font-size: 1.5rem; }
.ag-a-kopf small { color: #64748b; }
.ag-a-zeile { display: flex; align-items: center; gap: .6rem; padding: .5rem .65rem; border-radius: 12px; background: rgba(15, 23, 42, .04); }
.ag-a-zeile i { margin-left: auto; font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.ag-a-zeile i.plus { color: #047857; } .ag-a-zeile i.minus { color: #dc2626; }
.ag-a-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: hsl(var(--h) 60% 45%); color: #fff; font-size: .8rem; font-weight: 800; }
.ag-a-ausgleich { display: flex; align-items: center; gap: .5rem; margin-top: .2rem; padding: .6rem .75rem; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--wz) 60%, transparent); color: #475569; font-size: .92rem; }
.ag-a-ausgleich b { margin-left: auto; color: #0f172a; }

/* Neue Kasse */
.ag-motive { display: flex; flex-wrap: wrap; gap: .4rem; }
.ag-motive label { position: relative; cursor: pointer; }
.ag-motive input { position: absolute; opacity: 0; }
.ag-motive span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; border: 1.5px solid var(--rand-2); background: var(--flaeche); font-size: 1.35rem; transition: border-color .2s, transform .2s var(--feder); }
.ag-motive input:checked + span { border-color: var(--wz); background: color-mix(in srgb, var(--wz) 16%, var(--flaeche)); transform: scale(1.08); }
.ag-motive input:focus-visible + span { outline: 2px solid var(--wz); outline-offset: 2px; }
.ag-start { max-width: 640px; }

/* Kacheln */
.ag-kachel-status { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-left: auto; background: rgba(251, 191, 36, .14); color: #fbbf24; }
.ag-kachel-status.gut { background: rgba(52, 211, 153, .14); color: #34d399; }

/* Mitglieder & Salden */
.ag-mitglieder { display: grid; gap: .45rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.ag-mitglieder details { border: 1px solid var(--rand); border-radius: 16px; background: var(--flaeche); }
.ag-mitglieder summary { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; cursor: pointer; list-style: none; }
.ag-mitglieder summary::-webkit-details-marker { display: none; }
.ag-m-text { display: grid; min-width: 0; } .ag-m-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ag-m-text small { color: var(--text-3); font-size: .8rem; }
.ag-saldo { margin-left: auto; padding: .2rem .65rem; border-radius: 99px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ag-saldo.plus { background: rgba(52, 211, 153, .14); color: #34d399; } .ag-saldo.minus { background: rgba(248, 113, 113, .14); color: #f87171; } .ag-saldo.null { color: var(--text-3); }
.ag-m-mehr { display: grid; gap: .7rem; padding: 0 .8rem .8rem; }
.ag-m-form { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: .6rem; align-items: end; }
.ag-m-neu { display: flex; align-items: center; gap: .5rem; } .ag-m-neu .t-feld { flex: 1; min-width: 0; margin: 0; }
.ag-unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 640px) { .ag-m-form { grid-template-columns: 1fr; } }
.ag-ausgleich { display: grid; gap: .45rem; margin: 0 0 .6rem; padding: 0; list-style: none; }
.ag-ausgleich li { display: flex; align-items: center; gap: .55rem; padding: .6rem .8rem; border-radius: 14px; background: var(--flaeche); }
.ag-ausgleich i { color: var(--text-3); } .ag-ausgleich span { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.ag-alles-gut { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .8rem 1rem; border-radius: 14px; background: rgba(52, 211, 153, .1); color: var(--text-2); }
.ag-alles-gut span { font-size: 1.4rem; }

/* Rechte */
.ag-rechte { display: grid; gap: .5rem; margin: .2rem 0 1rem; }
.ag-rechte label { position: relative; cursor: pointer; }
.ag-rechte input { position: absolute; opacity: 0; }
.ag-rechte span { display: grid; grid-template-columns: 2rem 1fr; column-gap: .5rem; align-items: center; padding: .7rem .85rem; border-radius: 14px; border: 1.5px solid var(--rand-2); background: var(--flaeche); transition: border-color .2s, background .2s; }
.ag-rechte i { grid-row: span 2; color: var(--text-3); font-size: 1.1rem; text-align: center; }
.ag-rechte small { color: var(--text-3); font-size: .8rem; line-height: 1.4; }
.ag-rechte input:checked + span { border-color: var(--wz); background: color-mix(in srgb, var(--wz) 12%, var(--flaeche)); }
.ag-rechte input:checked + span i { color: var(--wz); }
.ag-rechte input:focus-visible + span { outline: 2px solid var(--wz); outline-offset: 2px; }
.ag-motiv-feld input { max-width: 120px; font-size: 1.4rem; text-align: center; }
