/* Verwaltungsseiten (Mitarbeiter, Funktionen, Wissen, Anfragen, Einsatzdetail, Login, Fehler). Präfix as-ad-* */
.as-ad-head { margin-bottom: 24px; }
.as-ad-head__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.as-ad-eyebrow { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--as-blue); margin-bottom: 6px; }
.as-ad-head h1 { margin: 0 0 8px; }
.as-ad-lede { max-width: 640px; line-height: 1.55; font-size: 15px; margin: 0; color: var(--as-color-body); }
.as-ad-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.as-ad-actions form { margin: 0; }

.as-ad-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.as-ad-search { display: flex; gap: 8px; flex: 1; min-width: 240px; max-width: 480px; }
.as-ad-search input[type=text], .as-ad-search input[type=search] { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid rgba(0,0,0,.2); border-radius: 0; font-family: var(--as-font); font-size: 15px; min-height: 44px; }
.as-ad-search .as-btn { min-height: 44px; }
.as-ad-seg { display: inline-flex; border: 1px solid rgba(0,0,0,.2); background: var(--as-white); flex-wrap: wrap; }
.as-ad-seg a { padding: 10px 16px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--as-color-body); min-height: 44px; display: inline-flex; align-items: center; border-right: 1px solid rgba(0,0,0,.12); }
.as-ad-seg a:last-child { border-right: none; }
.as-ad-seg a.is-active { background: var(--as-blue); color: var(--as-white); }
.as-ad-count { font-size: 13px; color: rgba(49,49,49,.75); margin: 0 0 8px; font-variant-numeric: tabular-nums; }

.as-ad-scroll { overflow-x: auto; background: var(--as-white); box-shadow: var(--as-shadow-sm); border-top: var(--as-border-accent); }
.as-ad-scroll table.as-table { min-width: 720px; }
.as-ad-scroll table.as-table td { vertical-align: middle; }

.as-ad-empty { border: 1.5px dashed rgba(0,0,0,.25); padding: 24px; background: var(--as-white); }
.as-ad-empty strong { display: block; font-size: 16px; margin-bottom: 4px; color: var(--as-color-heading); }
.as-ad-empty p { margin: 0; font-size: 14px; line-height: 1.55; }

.as-ad-group { margin-bottom: 16px; }
.as-ad-group > h2 { font-size: 17px; margin: 0 0 4px; }
.as-ad-group > .as-ad-group__hint { font-size: 13px; color: rgba(49,49,49,.75); margin: 0 0 12px; }
.as-ad-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(49,49,49,.75); margin: 24px 0 8px; }

.as-ad-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.as-ad-kpi { background: var(--as-white); border-top: 3px solid var(--as-blue); padding: 20px 22px; box-shadow: var(--as-shadow-sm); }
.as-ad-kpi__label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(49,49,49,.75); }
.as-ad-kpi__value { display: block; font-size: 28px; font-weight: 700; color: var(--as-color-heading); font-variant-numeric: tabular-nums; }

.as-ad-fieldset { margin-bottom: 16px; }
.as-ad-fieldset h3 { margin-bottom: 4px; }
.as-ad-fieldset > p.as-ad-hint { margin: 0 0 16px; font-size: 14px; color: rgba(49,49,49,.8); line-height: 1.55; max-width: 640px; }
.as-ad-hint { font-size: 13px; color: rgba(49,49,49,.75); margin-top: 4px; }
.as-ad-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.as-ad-inline input[type=text], .as-ad-inline input[type=datetime-local] { padding: 10px 12px; border: 1px solid rgba(0,0,0,.2); border-radius: 0; font-family: var(--as-font); font-size: 15px; min-height: 44px; }
.as-ad-inline .as-btn { min-height: 44px; }
.as-ad-x { min-height: 44px; min-width: 44px; }

.as-ad-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

/* Funktionen */
.as-ad-grid { display: grid; gap: 12px; }
.as-ad-type { background: var(--as-white); border-top: 3px solid var(--as-blue); box-shadow: var(--as-shadow-sm); }
.as-ad-type > summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 44px; }
.as-ad-type > summary::-webkit-details-marker { display: none; }
.as-ad-type__name { font-size: 17px; font-weight: 700; color: var(--as-color-heading); }
.as-ad-type__meta { font-size: 13px; color: rgba(49,49,49,.8); font-variant-numeric: tabular-nums; }
.as-ad-type__toggle { font-size: 13px; font-weight: 700; color: var(--as-blue); }
.as-ad-type[open] .as-ad-type__toggle::after { content: " ‹"; }
.as-ad-type:not([open]) .as-ad-type__toggle::after { content: " ›"; }
.as-ad-type__body { padding: 0 20px 20px; border-top: 1px solid rgba(0,0,0,.08); }
.as-ad-type__body h4 { margin: 20px 0 8px; font-size: 15px; }
.as-ad-type__danger { margin-top: 24px; padding-top: 16px; border-top: 1px dashed rgba(0,0,0,.15); }
.as-ad-days { display: flex; gap: 4px 14px; flex-wrap: wrap; }
.as-ad-days label { font-weight: 400; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.as-ad-newbox { background: var(--as-white); border-top: 3px solid var(--as-blue); box-shadow: var(--as-shadow-sm); margin-bottom: 16px; }
.as-ad-newbox > summary { list-style: none; cursor: pointer; padding: 0; }
.as-ad-newbox > summary::-webkit-details-marker { display: none; }
.as-ad-newbox > summary .as-btn { margin: 12px 20px; }
.as-ad-newbox[open] > summary .as-btn { background: var(--as-white); color: var(--as-blue); border: 1px solid var(--as-blue); }
.as-ad-newbox__body { padding: 0 20px 20px; }

/* Wissensdatenbank */
.as-ad-faq { background: var(--as-white); border-left: 3px solid var(--as-blue); box-shadow: var(--as-shadow-sm); margin-bottom: 8px; }
.as-ad-faq > summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: 15px; color: var(--as-color-heading); display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 44px; }
.as-ad-faq > summary::-webkit-details-marker { display: none; }
.as-ad-faq > summary::after { content: "›"; color: var(--as-blue); font-size: 18px; flex-shrink: 0; }
.as-ad-faq[open] > summary::after { content: "‹"; }
.as-ad-faq__body { padding: 0 18px 16px; }
.as-ad-faq__body p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; }
.as-ad-faq__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }

/* Änderungsanfragen */
.as-ad-req { background: var(--as-white); border-left: 4px solid var(--as-color-error); box-shadow: var(--as-shadow-sm); padding: 18px 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.as-ad-req__title { font-size: 16px; font-weight: 700; color: var(--as-color-error); margin: 0 0 4px; }
.as-ad-req__meta { font-size: 13px; color: rgba(49,49,49,.85); line-height: 1.6; margin: 0 0 4px; }
.as-ad-req__acts { display: flex; flex-direction: column; gap: 8px; min-width: 200px; }
.as-ad-req__acts form { margin: 0; }
.as-ad-req__acts .as-btn { width: 100%; min-height: 44px; text-align: center; }
.as-ad-req__tel { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; }

/* Einsatzdetail */
.as-ad-shift__when { background: var(--as-white); border-top: 3px solid var(--as-blue); padding: 20px 22px; margin-bottom: 16px; box-shadow: var(--as-shadow-sm); }
.as-ad-shift__date { font-size: 24px; font-weight: 700; color: var(--as-color-heading); margin: 0; }
.as-ad-shift__time { font-size: 32px; font-weight: 700; color: var(--as-blue); margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.as-ad-shift__row { margin: 0 0 6px; font-size: 15px; line-height: 1.5; }
.as-ad-shift__row .as-ad-k { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(49,49,49,.75); }
.as-ad-tel { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--as-blue); font-weight: 700; text-decoration: none; margin-top: 8px; }
.as-ad-check .as-checklist-item { padding: 0; }
.as-ad-check .as-checklist-item label { flex: 1; padding: 14px 4px; min-height: 52px; align-items: flex-start; }
.as-ad-check .as-checklist-item input[type=checkbox] { width: 28px; height: 28px; margin: 12px 4px 12px 0; }
.as-ad-check .as-checklist-title { font-size: 16px; }
.as-ad-btn-lg { min-height: 48px; padding: 12px 24px; font-size: 15px; }

/* Login / Fehler */
.as-ad-login-intro { font-size: 15px; line-height: 1.55; margin: 0 0 24px; }
.as-ad-login-help { font-size: 13px; color: rgba(49,49,49,.8); margin: 16px 0 0; line-height: 1.55; }
.as-ad-error { max-width: 560px; margin: 48px auto; background: var(--as-white); border-top: 3px solid var(--as-blue); padding: 32px; box-shadow: var(--as-shadow-sm); }
.as-ad-error__code { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--as-blue); display: block; margin-bottom: 8px; }
.as-ad-error p { font-size: 15px; line-height: 1.6; }

@media (max-width: 640px) {
  .as-ad-head h1 { font-size: 24px; }
  .as-ad-head__row { align-items: stretch; }
  .as-ad-actions .as-btn { flex: 1; text-align: center; }
  .as-ad-seg { width: 100%; }
  .as-ad-seg a { flex: 1; justify-content: center; padding: 10px 8px; }
  .as-ad-req__acts { width: 100%; }
  .as-ad-shift__time { font-size: 28px; }
  .as-ad-error { margin: 24px 0; padding: 24px; }
  .as-btn { min-height: 44px; }
}
.as-ad-req--tausch { border-left-color: var(--as-blue); }
.as-ad-req--tausch .as-ad-req__title { color: var(--as-color-heading, #313131); }
