/* ============================================================
   Ausbildungsmatrix — Modul-Styles (Prefix aus-)
   ============================================================ */
.aus-state{ display:flex; flex-direction:column; align-items:center; gap:14px; padding:60px 20px; color:#64748b; }
.aus-spinner{ width:34px; height:34px; border:3px solid #e2e8f0; border-top-color:var(--brand,#0099cc); border-radius:50%; animation:aus-spin .8s linear infinite; }
@keyframes aus-spin{ to{ transform:rotate(360deg); } }
.aus-spinner.sm{ width:18px; height:18px; border-width:2px; }
.aus-hv-run{ display:flex; align-items:center; gap:10px; margin:8px 0; color:#475569; font-size:14px; }
.aus-help{ font-size:14px; line-height:1.5; color:#334155; }
.aus-help p{ margin:0 0 11px; }
.aus-help .aus-dot{ display:inline-block; vertical-align:middle; margin:0 1px; }
.aus-help a{ color:var(--brand,#0099cc); }
/* Review-Ansicht */
.aus-rev-file{ border:1px solid #e2e8f0; border-radius:10px; padding:10px 12px; margin-bottom:10px; background:#fff; }
.aus-rev-head{ font-size:14px; margin-bottom:6px; }
.aus-rev-head a{ color:var(--brand,#0099cc); }
.aus-rev-items{ display:flex; flex-direction:column; gap:6px; }
.aus-rev-item{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.aus-rev-item .aus-sel{ min-width:220px; }
.aus-rev-chk{ display:flex; align-items:center; }
.aus-rev-meta{ flex:1; min-width:120px; }
.aus-rev-act{ display:flex; gap:8px; margin-top:8px; }

.aus-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:12px; flex-wrap:wrap; }
.aus-title h2{ margin:0; font-size:20px; }
.aus-count{ color:#64748b; font-size:13px; }
.aus-head-actions{ display:flex; gap:8px; }

.aus-filters{ display:flex; gap:10px; align-items:center; margin-bottom:10px; flex-wrap:wrap; }
.aus-search{ position:relative; flex:1; min-width:220px; }
.aus-search i{ position:absolute; left:10px; top:50%; transform:translateY(-50%); width:16px; height:16px; color:#94a3b8; }
.aus-search input{ width:100%; padding:8px 10px 8px 32px; border:1px solid #d7dde4; border-radius:8px; font-size:14px; }
.aus-sel{ padding:8px 10px; border:1px solid #d7dde4; border-radius:8px; font-size:14px; background:#fff; }
.aus-temp{ display:inline-flex; align-items:center; gap:6px; font-size:13px; color:#475569; white-space:nowrap; }
.aus-mth.former{ color:#94a3b8; font-style:italic; }
.aus-former{ display:inline-block; margin-left:6px; font-size:10px; font-style:normal; background:#f1f5f9; color:#64748b; border-radius:4px; padding:0 5px; vertical-align:middle; }

.aus-chips{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom:10px; }
.aus-chip{ border:1px solid #d7dde4; background:#fff; color:#475569; border-radius:999px; padding:4px 12px; font-size:13px; cursor:pointer; }
.aus-chip.on{ background:var(--brand-soft,#e6f6fc); border-color:var(--brand,#0099cc); color:var(--brand-dark,#007ba8); font-weight:600; }

.aus-legend{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:10px; font-size:12.5px; color:#475569; }
.aus-lg{ display:inline-flex; align-items:center; gap:6px; }
.aus-dot{ display:inline-block; width:11px; height:11px; border-radius:50%; background:#cbd5e1; flex:none; }
.aus-dot.ok{ background:#16a34a; } .aus-dot.warn{ background:#f59e0b; }
.aus-dot.bad{ background:#dc2626; } .aus-dot.miss{ background:#fff; border:2px solid #dc2626; width:9px; height:9px; }
.aus-dot.none{ background:#e2e8f0; }

/* ---- Matrix ---- */
.aus-matrix-wrap{ overflow:auto; max-height:calc(100vh - 300px); border:1px solid #e2e8f0; border-radius:10px; background:#fff; }
.aus-matrix{ border-collapse:separate; border-spacing:0; font-size:13px; }
.aus-matrix th, .aus-matrix td{ border-bottom:1px solid #eef2f6; border-right:1px solid #eef2f6; }
.aus-corner{ position:sticky; left:0; top:0; z-index:5; background:#f1f5f9; text-align:left; padding:8px 10px; min-width:220px; }
.aus-matrix thead th.aus-vth{ position:sticky; top:0; z-index:3; background:#f8fafc; height:150px; vertical-align:bottom; padding:6px 0; width:34px; min-width:34px; max-width:34px; }
.aus-vth span{ display:inline-block; writing-mode:vertical-rl; transform:rotate(180deg); white-space:nowrap; max-height:140px; overflow:hidden; text-overflow:ellipsis; font-weight:600; color:#334155; padding:4px 0; }
.aus-grp-cell{ position:sticky; left:0; background:#eef6fb; color:var(--brand-dark,#007ba8); font-weight:700; padding:6px 10px; text-transform:uppercase; letter-spacing:.4px; font-size:11.5px; z-index:2; }
.aus-grp-n{ color:#94a3b8; font-weight:600; }
.aus-mth{ position:sticky; left:0; background:#fff; text-align:left; padding:6px 10px; font-weight:500; white-space:nowrap; z-index:1; box-shadow:1px 0 0 #eef2f6; }
.aus-ma-nr{ display:inline-block; min-width:22px; color:#94a3b8; font-size:11.5px; }
.aus-row:hover .aus-mth{ background:#f8fbfe; }

.aus-cell{ text-align:center; padding:2px; height:30px; position:relative; }
.aus-cell.edit{ cursor:pointer; }
.aus-cell.edit:hover{ outline:2px solid var(--brand,#0099cc); outline-offset:-2px; }
.aus-cell .aus-dot{ margin:0 auto; }
.aus-celltxt{ display:block; font-size:9.5px; line-height:1; color:#475569; margin-top:1px; }
.aus-cell.ok{ background:#f0fdf4; } .aus-cell.warn{ background:#fffbeb; }
.aus-cell.bad{ background:#fef2f2; } .aus-cell.miss{ background:#fff5f5; }
.aus-cell.none{ background:#fff; }
.aus-empty{ text-align:center; color:#94a3b8; padding:24px; }

/* ---- Fälligkeiten-Liste ---- */
.aus-list-card{ border:1px solid #e2e8f0; border-radius:10px; background:#fff; overflow:hidden; }
.aus-flist{ width:100%; border-collapse:collapse; font-size:13.5px; }
.aus-flist th{ text-align:left; background:#f8fafc; color:#475569; padding:8px 10px; border-bottom:1px solid #eef2f6; font-size:12px; }
.aus-flist td{ padding:8px 10px; border-bottom:1px solid #f1f5f9; }
.aus-frow{ cursor:pointer; }
.aus-frow:hover{ background:#f8fbfe; }
.aus-dim{ color:#94a3b8; }
.aus-pill{ display:inline-block; padding:2px 9px; border-radius:999px; font-size:11.5px; font-weight:600; }
.aus-pill.warn{ background:#fef3c7; color:#92400e; } .aus-pill.bad{ background:#fee2e2; color:#991b1b; }
.aus-pill.miss{ background:#fff; border:1px solid #dc2626; color:#991b1b; }

/* ---- Modal (Zellen-Editor) ---- */
.aus-modal-bg{ position:fixed; inset:0; background:rgba(15,23,42,.45); display:flex; align-items:center; justify-content:center; z-index:9000; padding:16px; }
.aus-modal{ background:#fff; border-radius:14px; width:min(480px,100%); box-shadow:0 20px 50px rgba(0,0,0,.25); overflow:hidden; }
.aus-modal.wide{ width:min(1000px,100%); max-height:90vh; display:flex; flex-direction:column; }
.aus-modal.wide .aus-modal-body{ overflow:auto; flex:1; }
.aus-modal.med{ width:min(720px,100%); max-height:90vh; display:flex; flex-direction:column; }
.aus-modal.med .aus-modal-body{ overflow:auto; flex:1; }
.aus-modal-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:16px 18px; border-bottom:1px solid #eef2f6; }
.aus-modal-typ{ font-weight:700; font-size:15px; color:#0f172a; }
.aus-modal-ma{ color:#64748b; font-size:13px; margin-top:2px; }
.aus-modal-body{ padding:16px 18px; display:flex; flex-direction:column; gap:12px; }
.aus-field{ display:flex; flex-direction:column; gap:4px; }
.aus-field label{ font-size:12px; color:#64748b; font-weight:600; }
.aus-field input, .aus-field select, .aus-field textarea{ padding:8px 10px; border:1px solid #d7dde4; border-radius:8px; font-size:14px; font-family:inherit; }
.aus-row2{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.aus-openlink{ font-size:13px; color:var(--brand-dark,#007ba8); display:inline-flex; align-items:center; gap:4px; text-decoration:none; }
.aus-nw{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.aus-nwfile{ display:inline-flex; align-items:center; gap:5px; font-size:13px; color:#334155; }
.aus-nw code, .aus-dim code{ background:#f1f5f9; padding:1px 5px; border-radius:4px; }
.aus-modal-foot{ display:flex; align-items:center; gap:8px; padding:14px 18px; border-top:1px solid #eef2f6; background:#fafcfe; }
.aus-modal-foot .aus-dim code{ background:#f1f5f9; padding:1px 5px; border-radius:4px; }

/* ---- Katalog-/Soll-Editor ---- */
.aus-vth.edit{ cursor:pointer; }
.aus-vth.edit:hover{ background:#eef6fb; }
.aus-vth.edit:hover span{ color:var(--brand-dark,#007ba8); }
.aus-checkline{ display:flex; gap:18px; flex-wrap:wrap; }
.aus-checkline label{ display:inline-flex; align-items:center; gap:6px; font-size:13.5px; color:#334155; }
.aus-soll{ border-top:1px solid #eef2f6; padding-top:12px; margin-top:2px; }
.aus-soll-lbl{ font-size:12px; color:#64748b; font-weight:600; margin-bottom:6px; }
.aus-soll-list{ display:flex; gap:16px; flex-wrap:wrap; }
.aus-soll-item{ display:inline-flex; align-items:center; gap:6px; font-size:14px; color:#334155; background:#f8fafc; border:1px solid #e2e8f0; border-radius:8px; padding:6px 12px; cursor:pointer; }

/* ---- Planung ---- */
.aus-tchip{ display:inline-block; background:#eef6fb; color:#334155; border-radius:6px; padding:1px 7px; font-size:12px; margin-right:3px; }
.aus-pill.st-geplant{ background:#e0e7ff; color:#3730a3; } .aus-pill.st-gebucht{ background:#dbeafe; color:#1d4ed8; }
.aus-pill.st-durchgefuehrt{ background:#dcfce7; color:#166534; } .aus-pill.st-storniert{ background:#f1f5f9; color:#64748b; }
.aus-planform{ max-width:640px; display:flex; flex-direction:column; gap:12px; }
.aus-kosten summary{ cursor:pointer; font-size:13px; color:#64748b; font-weight:600; padding:4px 0; }
.aus-kosten{ border:1px solid #eef2f6; border-radius:8px; padding:8px 12px; }
.aus-form-actions{ display:flex; gap:8px; }
.aus-plansec{ border-top:1px solid #eef2f6; padding-top:14px; margin-top:4px; }
.aus-sec-lbl{ display:flex; align-items:center; gap:6px; font-size:13px; font-weight:700; color:#0f172a; margin-bottom:8px; }
.aus-tn-list{ display:flex; flex-direction:column; gap:6px; }
.aus-tn-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; background:#f8fafc; border:1px solid #eef2f6; border-radius:8px; padding:6px 10px; font-size:14px; }
.aus-tn-act{ display:flex; gap:4px; }
.aus-att-list{ display:flex; flex-direction:column; gap:4px; }
.aus-att{ display:inline-flex; align-items:center; gap:6px; font-size:13.5px; color:#334155; }
.btn.small{ padding:3px 8px; font-size:12.5px; }
