/* Verwaltung der Tools Fahrgemeinschaft, Newsletter und Veranstaltungen – ergänzt /tools/buchung/buchung.css
   (dunkles muenzlein-Design). --wz = Farbe des Tools, --f = Farbe des gerade bearbeiteten Objekts. */

.wz-app { --f: var(--wz); }
.wz-held-bild { position: relative; display: grid; justify-items: center; }
.wz-attrappe { width: min(100%, 390px); padding: 16px; border-radius: 24px; background: #fff; color: #0f172a; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; box-shadow: 0 40px 90px -30px color-mix(in srgb, var(--wz) 60%, transparent), 0 0 0 1px rgba(255, 255, 255, .15); transform: rotate(-2deg); animation: bu-schweben 7s ease-in-out infinite; }
.wz-attrappe-kopf { display: flex; align-items: center; gap: 12px; margin: -16px -16px 14px; padding: 18px 16px; border-radius: 24px 24px 0 0; background: var(--wz); color: #fff; }
.wz-attrappe-kopf > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .2); font-size: 24px; }
.wz-attrappe-kopf b { display: block; font-size: 14px; } .wz-attrappe-kopf small { opacity: .9; font-size: 12px; }
.wz-a-zeile { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #e2e8f0; border-radius: 14px; font-size: 12px; }
.wz-a-zeile + .wz-a-zeile { margin-top: 8px; }
.wz-a-zeile > i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: hsl(var(--h) 70% 45%); color: #fff; font-style: normal; font-weight: 800; }
.wz-a-zeile.such > i { border-radius: 50%; }
.wz-a-zeile b { display: block; font-size: 13px; } .wz-a-zeile small { color: #64748b; }
.wz-a-zeile em { padding: 2px 8px; border-radius: 99px; background: #dcfce7; color: #166534; font-style: normal; font-weight: 700; white-space: nowrap; }
.wz-a-zeile em.voll { background: #f1f5f9; color: #64748b; } .wz-a-zeile.such em { background: #fef3c7; color: #92400e; }
.wz-a-mail { display: grid; gap: 8px; } .wz-a-mail .wz-a-balken { height: 9px; border-radius: 9px; background: #e2e8f0; } .wz-a-mail .wz-a-balken.kurz { width: 60%; } .wz-a-mail .wz-a-bild { height: 92px; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--wz) 30%, #fff), color-mix(in srgb, var(--wz) 70%, #fff)); }
.wz-a-mail .wz-a-knopf { justify-self: start; padding: 7px 14px; border-radius: 10px; background: var(--wz); color: #fff; font-size: 12px; font-weight: 700; }
.wz-a-ticket { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border: 2px dashed #e2e8f0; border-radius: 16px; }
.wz-a-ticket > span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: repeating-conic-gradient(#0f172a 0 25%, #fff 0 50%) 0 0 / 14px 14px; box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 7px #0f172a; }
.wz-a-ticket b { display: block; font-size: 14px; } .wz-a-ticket small { color: #64748b; font-size: 12px; } .wz-a-ticket em { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 99px; background: #dcfce7; color: #166534; font-style: normal; font-weight: 700; font-size: 11px; }

.wz-start-karte { text-align: center; max-width: 640px; }
.wz-start-karte .t-feld { text-align: left; }
.wz-start-motiv { display: inline-block; font-size: 56px; animation: wl-wippen 3s ease-in-out infinite; }
@keyframes wl-wippen { 50% { transform: translateY(-6px) rotate(-5deg); } }
.wz-schmal { max-width: 680px; }

/* Kacheln (Übersicht) */
.wz-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.wz-kachel { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 14px; padding: 18px 46px 18px 18px; border-radius: 20px; background: var(--flaeche); border: 1px solid var(--rand); color: inherit !important; text-decoration: none; overflow: hidden; animation-delay: calc(var(--i, 0) * 50ms); transition: transform .25s var(--kurve), border-color .2s, box-shadow .25s; }
.wz-kachel::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--f); }
.wz-kachel:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--f) 60%, transparent); box-shadow: 0 24px 44px -24px var(--f); }
.wz-kachel.pause { opacity: .62; }
.wz-kachel-motiv { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: linear-gradient(135deg, var(--f), color-mix(in srgb, var(--f) 55%, #312e81)); font-size: 30px; transition: transform .35s var(--feder); }
.wz-kachel:hover .wz-kachel-motiv { transform: scale(1.1) rotate(-6deg); }
.wz-kachel-text { display: grid; min-width: 0; } .wz-kachel-text b { color: #fff; font-size: 1.06rem; overflow-wrap: anywhere; } .wz-kachel-text small { color: var(--text-3); }
.wz-kachel-pfeil { position: absolute; right: 18px; top: 50%; color: var(--text-3); transform: translateY(-50%); transition: transform .25s var(--kurve), color .2s; }
.wz-kachel:hover .wz-kachel-pfeil { transform: translate(4px, -50%); color: var(--gelb); }
.wz-marke-neu { position: absolute; top: 10px; right: 12px; padding: .15rem .55rem; border-radius: 99px; background: var(--gelb); color: #111; font-style: normal; font-size: .72rem; font-weight: 800; }
.wz-kachel-neu { display: grid; place-items: center; align-content: center; gap: .4rem; min-height: 96px; border: 2px dashed var(--rand-2); border-radius: 20px; background: transparent; color: var(--text-3); font: 600 15px 'Exo 2', sans-serif; cursor: pointer; transition: border-color .2s, color .2s; }
.wz-kachel-neu i { font-size: 1.4rem; } .wz-kachel-neu:hover { border-color: var(--gelb); color: #fff; }

/* Kopf eines Objekts */
.wz-objekt-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.2rem; margin-bottom: 1.2rem; }
.wz-objekt-kopf > div:nth-child(2) { flex: 1 1 280px; min-width: 0; }
.wz-objekt-kopf h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.4rem); overflow-wrap: anywhere; }
.wz-objekt-kopf .ueber { margin-bottom: .3rem; }
.wz-objekt-motiv { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: linear-gradient(135deg, var(--f), color-mix(in srgb, var(--f) 55%, #312e81)); font-size: 38px; box-shadow: 0 14px 30px -14px var(--f); }
.wz-zahlen { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: .4rem 0 0; color: var(--text-2); font-size: .92rem; } .wz-zahlen b { color: #fff; }
.wz-pause { color: #fda4af; }

/* Listen */
.wz-gruppe > h2 { display: flex; align-items: baseline; gap: .6rem; }
.wz-liste { display: grid; gap: .6rem; margin: .4rem 0 0; padding: 0; list-style: none; }
.wz-zeile { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: start; gap: .9rem; padding: .85rem 1rem; border-radius: 16px; background: var(--flaeche); border: 1px solid var(--rand); transition: border-color .2s; }
.wz-zeile:hover { border-color: var(--rand-2); }
.wz-zeile.wartet { border-color: rgba(255, 198, 26, .45); background: rgba(255, 198, 26, .06); }
.wz-zeile.aus { opacity: .55; }
.wz-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: hsl(var(--h, 200) 65% 45%); color: #fff; font-weight: 800; }
.wz-zeile-text { display: grid; gap: .2rem; min-width: 0; } .wz-zeile-text b { color: #fff; } .wz-zeile-text small { color: var(--text-3); overflow-wrap: anywhere; } .wz-zeile-text small a { color: var(--text-2); }
.wz-zeile-text p { margin: .2rem 0 0; }
.wz-zeile-knoepfe { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .4rem; }
.wz-anfragen { color: var(--text-2) !important; } .wz-anfragen i { color: #4ade80; }
.bu-pille.warn { background: rgba(255, 198, 26, .16); color: #ffe08a; }
.bu-pille.gut { background: rgba(74, 222, 128, .14); color: #86efac; }
.bu-pille.aus { background: rgba(248, 113, 113, .14); color: #fca5a5; }
.wz-gaeste > summary { list-style: none; cursor: pointer; } .wz-gaeste > summary::-webkit-details-marker { display: none; }
.wz-gaeste > summary h2 { display: flex; align-items: baseline; gap: .6rem; margin: 0; }
.wz-gaeste > summary h2::after { content: '\f078'; margin-left: auto; font: 900 .8rem 'Font Awesome 6 Free'; color: var(--text-3); transition: transform .25s var(--kurve); }
.wz-gaeste[open] > summary h2::after { transform: rotate(180deg); }

/* Formulare */
.wz-zeilen { display: grid; gap: .5rem; margin-bottom: .7rem; }
.wz-termin { display: grid; grid-template-columns: 150px 110px minmax(0, 1fr) auto; gap: .5rem; align-items: center; }
.wz-reihe { display: grid; gap: .5rem; align-items: end; padding: .7rem; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--rand); }
.wz-reihe .t-feld { margin: 0; }
.wz-neu { animation: wz-auf .35s var(--kurve) both; }
@keyframes wz-auf { from { opacity: 0; transform: translateY(-6px); } }
.wz-app input[type=date], .wz-app input[type=time], .wz-app input[type=datetime-local] { color-scheme: dark; }
.wz-zeilen input, .wz-zeilen select, .wz-reihe input, .wz-reihe select { width: 100%; padding: .6rem .7rem; border-radius: 11px; border: 1px solid var(--rand-2); background: rgba(0, 0, 0, .25); color: var(--text); font: 500 14px 'Exo 2', sans-serif; }
.wz-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.wz-chips label { cursor: pointer; } .wz-chips input { position: absolute; opacity: 0; }
.wz-chips span { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border: 1px solid var(--rand-2); border-radius: 99px; color: var(--text-2); font-size: .88rem; transition: background .2s, border-color .2s, color .2s; }
.wz-chips input:checked + span { border-color: var(--f); background: color-mix(in srgb, var(--f) 20%, transparent); color: #fff; }
.wz-chips input:focus-visible + span { outline: 2px solid var(--f); outline-offset: 2px; }
.wz-speichern-seite { position: sticky; bottom: 12px; z-index: 5; margin: 0 0 18px; padding: .6rem; }
.wz-stufe.voll h2 i { color: #4ade80; }
.wz-stufe h2 i { color: var(--gelb); }
.wz-hinweis-box { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 14px; background: rgba(255, 198, 26, .08); border: 1px solid rgba(255, 198, 26, .3); color: var(--text-2); font-size: .9rem; }
.wz-hinweis-box i { color: var(--gelb); margin-top: .2rem; } .wz-hinweis-box p { margin: 0; }
.wz-werkzeug { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.wz-suche { flex: 1 1 240px; position: relative; } .wz-suche i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.wz-suche input { width: 100%; padding: .65rem .9rem .65rem 2.4rem; border-radius: 12px; border: 1px solid var(--rand-2); background: rgba(0, 0, 0, .25); color: var(--text); font: 500 14px 'Exo 2', sans-serif; }
.wz-tabelle-box { overflow-x: auto; }
table.wz-tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; }
.wz-tabelle th { padding: .55rem .6rem; border-bottom: 1px solid var(--rand-2); color: var(--text-3); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.wz-tabelle td { padding: .65rem .6rem; border-bottom: 1px solid var(--rand); vertical-align: top; }
.wz-tabelle tr:hover td { background: var(--flaeche); }
.wz-tabelle td b { color: #fff; } .wz-tabelle td small { display: block; color: var(--text-3); }
.wz-balken { height: 10px; border-radius: 10px; background: var(--flaeche-2); overflow: hidden; }
.wz-balken > span { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--f), color-mix(in srgb, var(--f) 60%, #fff)); transition: width .5s var(--kurve); }
@media (max-width: 640px) {
    .wz-termin { grid-template-columns: 1fr 1fr auto; } .wz-termin input[type=text] { grid-column: 1 / 3; grid-row: 2; }
    .wz-zeile { grid-template-columns: 36px minmax(0, 1fr); } .wz-zeile-knoepfe { grid-column: 1 / -1; justify-content: flex-start; } .wz-avatar { width: 36px; height: 36px; }
    .wz-kachel { grid-template-columns: 48px minmax(0, 1fr); } .wz-kachel-motiv { width: 48px; height: 48px; font-size: 24px; }
}
.wz-app .bu-segmente { flex-wrap: wrap; max-width: 100%; }
.wz-app .bu-felder-2 > * { min-width: 0; }

/* Veranstaltungen: Belegung, Anmeldungen, Einstellungen, Einlass */
.wz-belegung { display: grid; gap: .6rem; margin-bottom: 1rem; }
.wz-belegung-text { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; } .wz-belegung-text b { color: #fff; } .wz-belegung-text small { color: var(--text-3); }
.wz-anm-liste { display: grid; gap: .6rem; }
.wz-anm { border-radius: 16px; background: var(--flaeche); border: 1px solid var(--rand); transition: border-color .2s; }
.wz-anm[open] { border-color: color-mix(in srgb, var(--f) 50%, var(--rand)); }
.wz-anm > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .8rem 1rem; list-style: none; cursor: pointer; }
.wz-anm > summary::-webkit-details-marker { display: none; }
.wz-anm-nr { min-width: 2.6rem; color: var(--text-3); font-weight: 700; font-variant-numeric: tabular-nums; }
.wz-anm-name { display: grid; min-width: 0; } .wz-anm-name b { color: #fff; } .wz-anm-name small { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-anm-marken { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.wz-anm-storniert { opacity: .6; }
.wz-anm-inhalt { display: grid; gap: 1rem; padding: 1rem; border-top: 1px solid var(--rand); }
.wz-daten { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; margin: 0; }
.wz-daten > div { padding: .55rem .75rem; border-radius: 12px; background: rgba(0, 0, 0, .18); } .wz-daten > div.breit { grid-column: 1 / -1; }
.wz-daten dt { color: var(--text-3); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; } .wz-daten dd { margin: .15rem 0 0; color: var(--text); overflow-wrap: anywhere; } .wz-daten dd a { color: var(--text-2); }
.wz-anm-personen { display: grid; gap: .5rem; } .wz-anm-personen > button { justify-self: start; }
.wz-person { display: grid; grid-template-columns: minmax(0, 1fr) auto 90px auto; align-items: center; gap: .5rem; }
.wz-person:not(:has(.wz-platz)) { grid-template-columns: minmax(0, 1fr) auto auto; }
.wz-person input, .wz-anm-aktionen select { width: 100%; padding: .5rem .7rem; border-radius: 10px; border: 1px solid var(--rand-2); background: rgba(0, 0, 0, .25); color: var(--text); font: 500 14px 'Exo 2', sans-serif; }
.wz-anm-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-top: .8rem; border-top: 1px dashed var(--rand); }
.wz-anm-aktionen form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; }
.wz-anm-aktionen select { width: auto; }
.wz-anm-aktionen > form:last-child { margin-left: auto; }
.wz-reihe.wz-ticket { grid-template-columns: minmax(0, 1.4fr) 100px 100px 90px; }
.wz-reihe.wz-ticket .wz-breit { grid-column: 1 / 4; }
.wz-reihe.wz-zimmer { grid-template-columns: minmax(0, 1fr) 120px 90px auto; }
.wz-reihe.wz-frage { grid-template-columns: minmax(0, 1fr) 150px auto auto; }
.wz-reihe .bu-haken, .wz-reihe .bu-icon-knopf { align-self: center; }
.wz-reihe.wz-ticket .bu-icon-knopf { justify-self: end; }
.wz-einlass-zahl { display: flex; align-items: baseline; gap: .6rem; margin: .4rem 0 .6rem; } .wz-einlass-zahl b { color: #fff; font-size: 2.6rem; line-height: 1; } .wz-einlass-zahl span { color: var(--text-2); }
.wz-einlass-form { display: grid; gap: .8rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--rand); }
@media (max-width: 640px) {
    .wz-anm > summary { grid-template-columns: minmax(0, 1fr); } .wz-anm-nr { display: none; } .wz-anm-marken { justify-content: flex-start; }
    .wz-reihe.wz-ticket, .wz-reihe.wz-zimmer, .wz-reihe.wz-frage { grid-template-columns: 1fr 1fr; } .wz-reihe .wz-breit, .wz-reihe.wz-ticket .wz-breit { grid-column: 1 / -1; }
    .wz-person { grid-template-columns: minmax(0, 1fr) 80px auto; } .wz-person .bu-pille { grid-column: 1 / -1; justify-self: start; grid-row: 2; }
}
