[hidden] { display: none !important; }
.hero-topline { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.hero-heading { min-width: 0; }
.hero-topline .admin-toggle { flex: 0 0 auto; min-height: 40px; padding: 9px 13px; border: 1px solid #ffffff66; background: transparent; color: white; }
.hero-topline .admin-toggle:hover { background: #ffffff18; color: white; }
.hero-topline .admin-toggle:disabled { background: #ffffff0d; color: #d9e1ef; border-color: #ffffff33; cursor: default; }
@media (min-width: 641px) {
    .hero-topline .admin-toggle { min-height: 44px; padding: 11px 18px; font-size: 14px; background: #ffffff0a; }
    .hero-topline .admin-toggle:hover { background: #ffffff18; }
}
.admin-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.admin-export { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: white; color: var(--primary); text-decoration: none; font-size: 13px; font-weight: bold; }
.admin-export:hover { background: #edf3fb; }
.admin-event-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.admin-event-header > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.admin-event-header h2 { margin: 4px 0 0; font-size: 22px; }
.admin-eyebrow { color: var(--muted); font-size: 12px; font-weight: bold; }
.admin-event-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.admin-help { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 32px; height: 32px; padding: 0; border: 1px solid #b88418; border-radius: 50%; background: var(--gold); color: #493000; font-family: Georgia, serif; font-size: 19px; font-weight: bold; font-style: normal; cursor: help; }
.admin-help:hover, .admin-help[aria-expanded="true"] { background: var(--gold-light); color: #493000; border-color: #b88418; }
.admin-tooltip { position: fixed; z-index: 150; width: max-content; max-width: min(320px, calc(100vw - 16px)); padding: 12px 14px; border: 1px solid #e8cc85; border-radius: 10px; background: #fff8e7; color: #493000; font-size: 14px; font-weight: normal; line-height: 1.5; overflow-wrap: anywhere; box-shadow: 0 6px 24px #020b2626; }
.help-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 6px; }
.helper-admin-dialog .help-label-row label { margin: 0; min-width: 0; }
.help-label-row .checkbox { flex: 1; }
.copy-hint { padding: 12px; border: 1px solid #c7d8ed; border-radius: 8px; background: #edf3fb; color: var(--primary); font-size: 14px; line-height: 1.5; }
.admin-group-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: start; gap: 8px; padding: 12px 14px 0; }
.admin-group-actions button { min-height: 44px; }
.admin-shift-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: start; gap: 8px; }
.admin-shift-actions button { min-height: 44px; }
.admin-more-actions { min-width: 0; max-width: 100%; }
.admin-more-actions > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: white; color: var(--primary); font-size: 13px; list-style: none; cursor: pointer; }
.admin-more-actions > summary::-webkit-details-marker { display: none; }
.admin-more-actions > summary:hover, .admin-more-actions[open] > summary { background: #edf3fb; }
.admin-event-actions .admin-event-action {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    box-sizing: border-box; min-height: 44px; padding: 10px 14px;
    border: 1px solid var(--primary); border-radius: 10px;
    background: var(--primary); color: white; font-family: inherit;
    font-size: 13px; font-weight: normal; line-height: 22px;
    text-decoration: none; white-space: nowrap; cursor: pointer;
}
.admin-event-actions .admin-event-action:hover,
.admin-event-actions .admin-more-actions[open] > summary { background: var(--primary-dark); border-color: var(--primary-dark); }
.action-dots { font-size: 20px; line-height: 1; }
.admin-actions-panel { display: grid; gap: 6px; padding: 8px; margin-top: 6px; border: 1px solid var(--border); border-radius: 10px; background: white; }
.admin-actions-panel > button, .admin-actions-panel .admin-export { width: 100%; white-space: normal; text-align: left; justify-content: flex-start; min-height: 44px; }
.admin-actions-panel .admin-remove { border-color: transparent; }
.delete-shift-list { max-height: 260px; overflow-y: auto; list-style: none; padding: 0; border: 1px solid var(--border); border-radius: 8px; }
.delete-shift-list li { display: grid; gap: 6px; padding: 12px; overflow-wrap: anywhere; }
.delete-shift-list li + li { border-top: 1px solid var(--border); }
.helper-admin-dialog h2 { margin-top: 0; color: var(--primary); }
.helper-admin-dialog label:not(.checkbox) { display: block; font-weight: bold; margin: 14px 0 6px; }
.helper-admin-dialog input:not([type="checkbox"]), .helper-admin-dialog textarea, .helper-admin-dialog select {
    display: block; width: 100%; margin: 6px 0 14px; padding: 11px 12px;
    border: 1px solid var(--border); border-radius: 8px; font: inherit; background: white; color: var(--text);
}
.helper-admin-dialog textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, button:focus-visible, a:focus-visible {
    outline: 3px solid var(--gold); outline-offset: 2px;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.order-settings { margin-top: 16px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; }
.order-settings > summary { cursor: pointer; color: var(--primary); font-size: 14px; font-weight: bold; }
.order-settings .muted, #slotGroupHint { font-size: 13px; line-height: 1.5; }
.admin-group { background: #f4f6fb; }
.slot.admin-shift { display: block; margin: 14px; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: white; }
.admin-shift-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.admin-shift-header h3 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.admin-shift-header > div { min-width: 0; }
.admin-shift-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 10px; }
.admin-capacity { color: var(--primary); background: #edf3fb; border-radius: 6px; padding: 5px 9px; font-size: 13px; font-weight: bold; }
.admin-capacity.is-full { color: #654300; background: #fff2d4; }
.admin-helpers { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.admin-helpers-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.admin-helpers-header h4 { margin: 0; font-size: 14px; }
.admin-helpers-header button { font-size: 13px; }
.admin-edit { background: white; color: var(--primary); border: 1px solid var(--border); font-weight: normal; white-space: nowrap; }
.admin-edit:hover { background: #edf3fb; }
.admin-planning { margin: 18px 0; border: 1px solid var(--border); border-radius: 10px; background: white; }
.admin-planning > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px; color: var(--primary); font-size: 14px; list-style: none; cursor: pointer; }
.admin-planning > summary::-webkit-details-marker { display: none; }
.admin-planning > summary::after { content: "▾"; margin-left: auto; }
.admin-planning[open] > summary::after { content: "▴"; }
.admin-planning > summary:hover { background: #edf3fb; border-radius: 10px; }
.admin-planning-content { padding: 16px; border-top: 1px solid #ead6a5; border-radius: 0 0 10px 10px; background: #fffaf0; }
.planning-active-filter { padding: 3px 8px; border-radius: 6px; background: #edf3fb; font-size: 12px; }
.admin-planning h3 { margin: 0; font-size: 16px; }
.admin-planning p { margin: 8px 0 14px; font-size: 14px; }
.planning-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.planning-filter { background: white; color: var(--primary); border: 1px solid var(--border); }
.planning-filter:hover { background: #edf3fb; color: var(--primary); border-color: #bfd1e8; }
.planning-filter[aria-pressed="true"] { background: var(--primary); color: white; border-color: var(--primary); }
.planning-filter[aria-pressed="true"]:hover { background: var(--primary-soft); color: white; border-color: var(--primary-soft); }
.slot.admin-shift.needs-helpers { border-left: 4px solid var(--gold-dark); }
.state-pill { padding: 4px 9px; border-radius: 6px; background: #edf3fb; font-size: 13px; }
.state-pill.inactive { background: #fff2d4; color: #654300; }
.signup-list { list-style: none; padding: 0; margin: 12px 0 0; }
.signup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--border); }
.signup-row:last-child { padding-bottom: 0; }
.signup-person { min-width: 0; }
.signup-person summary { padding: 8px 0; background: none; display: block; color: var(--text); list-style: none; cursor: pointer; font-weight: bold; overflow-wrap: anywhere; }
.admin-shift .signup-person summary::after { content: "Details"; font-size: 11px; color: var(--muted); font-weight: normal; margin-left: 10px; }
.admin-shift .signup-person[open] summary::after { content: "Details schließen"; }
.signup-contact { margin: 4px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.signup-row button { flex-shrink: 0; }
.admin-remove { background: white; color: #8e3543; border: 1px solid #eed5d9; font-size: 12px; font-weight: normal; }
.admin-remove:hover { background: #fff0f2; }
.delete-control { margin-top: 24px; }
.admin-empty { color: var(--muted); font-size: 14px; padding: 12px 0 2px; }
.signup-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 10px; background: #edf0f5; margin: 18px 0; }
.signup-methods button { background: transparent; color: var(--muted); padding: 10px; }
.signup-methods button[aria-pressed="true"] { background: white; color: var(--primary); box-shadow: 0 1px 5px #0001; }
.member-results { display: grid; gap: 6px; max-height: 240px; overflow-y: auto; }
.member-result { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; background: white; color: var(--text); border: 1px solid var(--border); text-align: left; }
.member-result:hover { background: #edf3fb; }
.selected-member { display: flex; flex-direction: column; gap: 5px; padding: 14px; border: 1px solid #bfd1e8; border-radius: 10px; background: #f3f7fc; }
.danger { background: var(--danger); color: white; }
.admin-message { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); width: min(600px, calc(100% - 32px)); padding: 14px 18px; border-radius: 10px; background: var(--primary); color: white; box-shadow: 0 4px 20px #0003; z-index: 100; }
.admin-message.error { background: var(--danger); }
.helper-admin-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100% - 40px); overflow-y: auto; padding: 24px; border: 0; border-radius: 16px; box-shadow: 0 12px 60px #0004; }
.helper-admin-dialog::backdrop { background: #020b2699; }
.form-message { color: var(--danger); background: #fff0f2; padding: 12px; border-radius: 8px; }
.helper-admin-dialog .actions { display: flex; gap: 10px; margin-top: 20px; }
@media (max-width: 540px) {
    .form-grid { grid-template-columns: 1fr; }
    .slot.admin-shift { margin: 10px; padding: 14px; }
    .admin-event-header { flex-direction: column; align-items: stretch; }
    .admin-shift-header { gap: 12px; flex-direction: column; align-items: stretch; }
    .admin-shift-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-shift-actions .admin-edit { white-space: normal; }
    .admin-shift-header .admin-edit { font-size: 12px; padding: 8px; }
    .admin-helpers-header { align-items: flex-start; flex-direction: column; }
    .admin-helpers-header button { width: 100%; }
    .signup-row { gap: 8px; grid-template-columns: minmax(0, 1fr) auto; }
    .signup-row .admin-remove { max-width: 135px; padding: 8px; }
    .slot-info { min-width: 0; }
    .admin-toolbar > button { flex: 1 1 auto; }
    #discardDialog .actions { flex-direction: column; }
    #groupDialog .actions { flex-wrap: wrap; }
    #groupDialog .actions button { flex: 1 1 auto; }
    .admin-group-actions .admin-edit { white-space: normal; }
    .admin-group-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (hover: none) {
    .admin-help { width: 44px; height: 44px; }
}
