[hidden] { display: none !important; }
main form { display: grid; gap: .65rem; margin: 1rem 0; }
main label { display: block; font-weight: 650; }
main input, main select, main button, header button { min-height: 44px; font-size: 1rem; }
main button { margin: .2rem 0; }
main video { display: block; width: 100%; max-height: 45vh; object-fit: contain; }
main article { border-top: 1px solid var(--line); margin: 1rem 0; padding: .7rem 0; }
#status { min-height: 1.5em; font-weight: 800; color: var(--pink-dark); }
#balance { font-weight: 800; }

/* Mitarbeiterverwaltung */
body[data-role="admin"] main:has(#admin:not([hidden])) { max-width: 940px; }
body[data-role="admin"] #title { font-size: clamp(2rem, 5vw, 3rem); }
#team { background: white; border: 1px solid var(--line); border-radius: 20px; padding: clamp(16px, 3vw, 30px); margin-bottom: 2rem; box-shadow: 0 8px 32px #492c3b08; }
.team-bar, .team-assignment { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.team-bar h2 { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: 1.55rem; }
#team-total { color: #695a63; background: #f5efee; font-size: .85rem; border-radius: 24px; padding: 4px 9px; letter-spacing: normal; }
#team button { min-height: 44px; padding: 8px 16px; font-size: .9rem; }
#team .team-search { margin: 1.2rem 0 .6rem; }
.team-search span { font-size: .85rem; }
#team input { border-color: #d7c8cd; }
.team-account { border-top: 1px solid var(--line); margin: 0; padding: 0; }
#team summary { list-style: none; cursor: pointer; }
#team summary::-webkit-details-marker { display: none; }
#team summary:focus-visible, #team button:focus-visible { outline: 3px solid var(--pink-dark); outline-offset: 2px; }
.team-account > summary { display: grid; grid-template-columns: 38px minmax(0,1fr) auto 10px; align-items: center; gap: 12px; padding: 12px 4px; }
.team-account > summary::after, .team-action > summary::before { content: ''; width: 7px; height: 7px; border: solid #775b68; border-width: 0 2px 2px 0; transform: rotate(-45deg); }
.team-account[open] > summary::after, .team-action[open] > summary::before { transform: rotate(45deg); }
.team-account > summary:hover, .team-action > summary:hover { background: #fff8fa; }
.team-avatar { width: 38px; height: 38px; display: grid; place-items: center; background: #f8e7ed; color: #8e2851; border-radius: 12px; font-size: 1rem; font-weight: 750; }
.team-identity, .team-assignment > span { display: grid; gap: 3px; overflow-wrap: anywhere; }
#team small { font-size: .83rem; font-weight: 450; line-height: 1.4; color: #6b6067; }
.team-status { font-size: .78rem; font-weight: 700; color: #216044; background: #e9f5ef; padding: 4px 10px; border-radius: 24px; }
.team-status.locked { color: #84304e; background: #fbeaf0; }
.team-detail { background: #fcf8f7; border-radius: 12px; padding: 16px; margin: 0 0 10px 0; }
.team-detail h3 { font-size: .95rem; }
.team-assignment { padding: .45rem 0; }
.team-detail > button, .team-assignment button { background: white; color: #853251; border: 1px solid #dec5cf; }
.team-action { border-top: 1px solid var(--line); padding: 0; margin: 5px 0; }
.team-action > summary { min-height: 44px; display: flex; align-items: center; gap: 10px; color: #873153; font-weight: 650; }
#team form { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
#team form label { min-width: 0; font-size: .9rem; }
#team form button { grid-column: 1 / -1; justify-self: start; }
#team label:has(input[type="checkbox"]) { display: flex; flex-direction: row-reverse; align-items: center; justify-content: flex-end; min-height: 44px; gap: 8px; }
#team input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; accent-color: var(--pink-dark); }
@media (max-width: 560px) {
  body[data-role="admin"] main { padding-left: 14px; padding-right: 14px; }
  #team form { grid-template-columns: 1fr; }
  .team-account > summary { grid-template-columns: minmax(0,1fr) auto 10px; gap: 8px; }
  .team-avatar { display: none; }
}
