/* dashboard.css – wird nach app.css geladen, ergänzt Start, Veranstaltungen, Meine Einsätze, Offene Schichten */

/* ── Seitenkopf ─────────────────────────────────────────── */
.as-dash-head { margin-bottom: 28px; }
.as-dash-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.as-dash-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--as-blue); margin: 0 0 6px; }
.as-dash-head h1 { margin: 0 0 8px; }
.as-dash-lede { max-width: 640px; line-height: 1.55; font-size: 15px; color: var(--as-color-body); margin: 0; }
.as-dash-lede a { font-weight: 700; }

/* ── Sektionen ──────────────────────────────────────────── */
.as-dash-section { margin-bottom: 32px; }
.as-dash-section__title { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.as-dash-section__sub { font-size: 13px; color: rgba(49,49,49,.8); margin: 0 0 16px; }
.as-dash-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.as-dash-section__head .as-dash-section__title { margin: 0; }

/* ── Warnbox ────────────────────────────────────────────── */
.as-dash-warn { background: var(--as-white); border-left: 4px solid var(--as-color-error); box-shadow: var(--as-shadow-sm); margin-bottom: 32px; }
.as-dash-warn__title { font-size: 15px; font-weight: 700; margin: 0; padding: 14px 20px 6px; color: var(--as-color-error); }
.as-dash-warn__row { display: grid; grid-template-columns: 170px 1fr auto; gap: 8px 16px; align-items: center; padding: 12px 20px; border-top: 1px solid rgba(0,0,0,.08); font-size: 14px; }
.as-dash-warn__row:first-of-type { border-top: 0; }
.as-dash-warn__row a { font-weight: 700; white-space: nowrap; }
.as-dash-warn .as-badge { justify-self: start; }

/* ── KPI-Kacheln ────────────────────────────────────────── */
.as-dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.as-dash-kpi { background: var(--as-white); border-top: 3px solid var(--as-blue); box-shadow: var(--as-shadow-sm); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.as-dash-kpi--ok { border-top-color: var(--as-color-success); }
.as-dash-kpi--alert { border-top-color: var(--as-color-error); }
.as-dash-kpi__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(49,49,49,.75); }
.as-dash-kpi__value { font-size: 28px; font-weight: 700; line-height: 1.15; color: var(--as-color-heading); font-variant-numeric: tabular-nums; }
.as-dash-kpi__value small { font-size: 16px; font-weight: 400; color: rgba(49,49,49,.75); }
.as-dash-kpi__meta { font-size: 12px; color: rgba(49,49,49,.8); }
.as-dash-kpi a.as-dash-kpi__meta { font-weight: 700; }

/* ── Balken ─────────────────────────────────────────────── */
.as-dash-bar { height: 8px; background: rgba(0,0,0,.08); overflow: hidden; }
.as-dash-bar__fill { height: 100%; background: var(--as-blue); }
.as-dash-bar--ok .as-dash-bar__fill { background: var(--as-color-success); }
.as-dash-bar--alert .as-dash-bar__fill { background: var(--as-color-error); }
.as-dash-barline { display: flex; align-items: center; gap: 12px; }
.as-dash-barline .as-dash-bar { flex: 1; }
.as-dash-barline__text { font-size: 13px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--as-color-heading); }

/* ── Veranstaltungskarten (Start) ───────────────────────── */
.as-dash-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.as-dash-card { background: var(--as-white); border-top: 3px solid var(--as-blue); box-shadow: var(--as-shadow-sm); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.as-dash-card--ok { border-top-color: var(--as-color-success); }
.as-dash-card--alert { border-top-color: var(--as-color-error); }
.as-dash-card__title { font-size: 18px; font-weight: 700; margin: 0; color: var(--as-color-heading); }
.as-dash-card__meta { font-size: 13px; color: rgba(49,49,49,.85); margin: 0; }
.as-dash-card__countdown { font-size: 14px; font-weight: 700; color: var(--as-color-heading); margin: 0; }
.as-dash-card__link { font-size: 14px; font-weight: 700; margin-top: auto; text-decoration: none; }
.as-dash-card__link:hover { text-decoration: underline; opacity: 1; }

/* ── Zweispaltiges Kartenraster + Mini-Tabellen ─────────── */
.as-dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.as-dash-card h3 { font-size: 15px; margin: 0; }
.as-dash-mini { width: 100%; border-collapse: collapse; font-size: 13px; }
.as-dash-mini th { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(49,49,49,.75); padding: 6px 8px 6px 0; border-bottom: 1px solid rgba(0,0,0,.12); }
.as-dash-mini td { padding: 0; border-bottom: 1px solid rgba(0,0,0,.07); }
.as-dash-mini .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.as-dash-mini th.is-num { padding-right: 0; }
.as-dash-mini td a { display: block; padding: 11px 8px 11px 0; color: var(--as-color-body); text-decoration: none; }
.as-dash-mini tr:hover td a { opacity: .8; }
.as-dash-mini td.is-num a { padding-right: 0; }
.as-dash-mini__sub { display: block; font-size: 12px; color: rgba(49,49,49,.75); }
.as-dash-list { list-style: none; margin: 0; padding: 0; }
.as-dash-list li { padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.07); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.as-dash-list li:last-child { border-bottom: 0; }
.as-dash-list strong { font-size: 14px; }

/* ── Empty-State ────────────────────────────────────────── */
.as-dash-empty { border: 1.5px dashed rgba(0,0,0,.25); padding: 22px 24px; background: transparent; font-size: 14px; line-height: 1.55; }
.as-dash-empty strong { display: block; font-size: 15px; margin-bottom: 4px; color: var(--as-color-heading); }
.as-dash-empty .as-btn { margin-top: 12px; }

/* ── Ampelzeilen (Phasen-Zusammenfassung) ───────────────── */
.as-dash-ampel { display: block; background: var(--as-white); border-left: 4px solid var(--as-blue); padding: 12px 16px; margin-bottom: 8px; box-shadow: var(--as-shadow-sm); }
.as-dash-ampel--ok { border-left-color: var(--as-color-success); }
.as-dash-ampel--alert { border-left-color: var(--as-color-error); }
.as-dash-ampel__title { font-weight: 700; font-size: 14px; color: var(--as-blue); }
.as-dash-ampel--ok .as-dash-ampel__title { color: var(--as-color-success); }
.as-dash-ampel--alert .as-dash-ampel__title { color: var(--as-color-error); }
.as-dash-ampel__meta { font-size: 12px; color: rgba(49,49,49,.8); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ── Hinweis-Zeile (Zusammenfassung unter Abschnitten) ──── */
.as-dash-note { font-size: 13px; color: rgba(49,49,49,.85); margin: 10px 0 0; }

/* ── Aufklappbereiche ───────────────────────────────────── */
.as-dash-details { background: var(--as-white); box-shadow: var(--as-shadow-sm); border-top: 3px solid rgba(0,0,0,.15); margin-bottom: 16px; }
.as-dash-details > summary { cursor: pointer; padding: 14px 20px; font-weight: 700; font-size: 15px; color: var(--as-color-heading); min-height: 44px; display: flex; align-items: center; }
.as-dash-details > summary:hover { opacity: .8; }
.as-dash-details__body { padding: 0 20px 20px; }
.as-dash-details__body h4 { font-size: 14px; margin: 18px 0 6px; }
.as-dash-details__body h4:first-child { margin-top: 4px; }
.as-dash-details--danger { border-top-color: var(--as-color-error); }
.as-dash-details--danger > summary { color: var(--as-color-error); }
.as-dash-arealist { list-style: none; margin: 0 0 16px; padding: 0; }
.as-dash-arealist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,.07); flex-wrap: wrap; }
.as-dash-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.as-dash-inline input[type=text] { flex: 1; min-width: 200px; padding: 10px 12px; border: 1px solid rgba(0,0,0,.2); border-radius: 0; font-family: inherit; font-size: 14px; }

/* ── Veranstaltungsliste ────────────────────────────────── */
.as-dash-evlist { display: grid; gap: 12px; }
.as-dash-evrow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr) auto; gap: 8px 24px; align-items: center; background: var(--as-white); border-top: 3px solid var(--as-blue); box-shadow: var(--as-shadow-sm); padding: 18px 22px; text-decoration: none; color: var(--as-color-body); }
.as-dash-evrow:hover { opacity: .8; }
.as-dash-evrow--past { border-top-color: rgba(0,0,0,.2); }
.as-dash-evrow--live { border-top-color: var(--as-color-success); }
.as-dash-evrow__name { font-size: 18px; font-weight: 700; color: var(--as-color-heading); margin: 0 0 2px; }
.as-dash-evrow__meta { font-size: 13px; margin: 0; color: rgba(49,49,49,.85); }
.as-dash-evrow__status { justify-self: end; min-width: 80px; text-align: right; }
.as-dash-group-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(49,49,49,.75); margin: 24px 0 10px; }
.as-dash-group-title:first-of-type { margin-top: 0; }

/* ── Meine Einsätze ─────────────────────────────────────── */
.as-dash-hero { display: block; background: var(--as-white); border-top: 3px solid var(--as-blue); border-left: 0; box-shadow: var(--as-shadow-md); padding: 24px 28px; text-decoration: none; color: var(--as-color-body); margin-bottom: 20px; }
.as-dash-hero:hover { opacity: .8; }
.as-dash-hero__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--as-blue); margin: 0 0 8px; }
.as-dash-hero__title { font-size: 28px; font-weight: 700; line-height: 1.2; margin: 0 0 6px; color: var(--as-color-heading); }
.as-dash-hero__time { font-size: 18px; font-weight: 700; margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.as-dash-hero__meta { font-size: 14px; margin: 0 0 4px; }
.as-dash-hero__countdown { font-size: 14px; font-weight: 700; color: var(--as-blue); margin: 12px 0 0; }
.as-dash-hero__link { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--as-blue); }
.as-dash-week { font-size: 15px; font-weight: 700; margin: 28px 0 10px; color: var(--as-color-heading); }
.as-dash-shift { display: block; background: var(--as-white); border-top: 3px solid var(--as-blue); box-shadow: var(--as-shadow-sm); padding: 16px 20px; text-decoration: none; color: var(--as-color-body); }
.as-dash-shift:hover { opacity: .8; }
.as-dash-shift__title { font-size: 16px; font-weight: 700; margin: 0 0 2px; color: var(--as-color-heading); }
.as-dash-shift__time { font-size: 14px; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.as-dash-shift__meta { font-size: 13px; margin: 2px 0 0; color: rgba(49,49,49,.85); }
.as-dash-shift__hint { font-size: 12px; color: rgba(49,49,49,.8); margin-left: 6px; }
.as-dash-shifts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.as-dash-cal input[type=text] { width: 100%; padding: 10px 12px; border: 1px solid rgba(0,0,0,.2); border-radius: 0; font-family: inherit; font-size: 14px; min-height: 44px; }
.as-dash-cal p { font-size: 14px; line-height: 1.55; margin: 0 0 12px; }

/* ── Offene Schichten ───────────────────────────────────── */
.as-dash-vol { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.as-dash-vol .as-dash-card { gap: 8px; }
.as-dash-vol__day { font-size: 18px; font-weight: 700; margin: 0; color: var(--as-color-heading); }
.as-dash-vol__time { font-size: 14px; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.as-dash-vol__actions { margin-top: auto; padding-top: 6px; }

/* ── Mobil ──────────────────────────────────────────────── */
@media (max-width: 720px) {
  .as-dash-head h1 { font-size: 26px; }
  .as-dash-warn__row { grid-template-columns: 1fr; padding: 12px 16px; }
  .as-dash-warn__row a { white-space: normal; min-height: 44px; display: inline-flex; align-items: center; }
  .as-dash-kpis { grid-template-columns: 1fr 1fr; gap: 12px; }
  .as-dash-kpi { padding: 16px; }
  .as-dash-kpi__value { font-size: 24px; }
  .as-dash-evrow { grid-template-columns: 1fr; padding: 16px; }
  .as-dash-evrow__status { justify-self: start; text-align: left; }
  .as-dash-hero { padding: 20px; }
  .as-dash-hero__title { font-size: 22px; }
  .as-dash-card { padding: 18px; }
  .as-dash-mini td a { padding-top: 13px; padding-bottom: 13px; }
  .as-dash-card__link, .as-dash-hero__link { display: inline-flex; align-items: center; min-height: 44px; }
  .as-dash-vol { grid-template-columns: 1fr; }
  .as-dash-details > summary { min-height: 48px; }
  .as-dash-vol .as-btn, .as-dash-details .as-btn { min-height: 44px; }
  .as-dash-head__row .as-btn { width: 100%; text-align: center; }
}
@media (max-width: 380px) {
  .as-dash-kpis { grid-template-columns: 1fr; }
}
