/* ═══════════════════════════════════════
   UTILITY-KLASSEN
   Ersatz fuer haeufige Inline-Styles.
   Werden schrittweise in den Views eingesetzt.
   ═══════════════════════════════════════ */

/* ─── Layout ─── */
.flex-1 { flex: 1; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.grid-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s-3); }
.relative { position: relative; }

/* ─── Spacing ─── */
.m-0 { margin: 0; }
.mt-1 { margin-top: var(--s-1); }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.mb-2 { margin-bottom: var(--s-2); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-6 { margin-bottom: var(--s-6); }
.p-0 { padding: 0; }
.p-3 { padding: var(--s-3); }
.p-4 { padding: var(--s-4); }
.p-5 { padding: var(--s-5); }
.p-6 { padding: var(--s-6); }
.px-4 { padding-left: var(--s-4); padding-right: var(--s-4); }
.py-2 { padding-top: var(--s-2); padding-bottom: var(--s-2); }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }

/* ─── Typografie ─── */
.text-xs { font-size: var(--fs-xs); }
.text-sm { font-size: var(--fs-sm); }
.text-base { font-size: var(--fs-base); }
.text-md { font-size: var(--fs-md); }
.text-lg { font-size: var(--fs-lg); }
.text-xl { font-size: var(--fs-xl); }
.text-2xl { font-size: var(--fs-2xl); }
.font-medium { font-weight: var(--fw-medium); }
.font-semibold { font-weight: var(--fw-semibold); }
.font-bold { font-weight: var(--fw-bold); }
.text-muted { color: var(--c-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; letter-spacing: var(--ls-wide); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── Sichtbarkeit ─── */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.hidden { display: none !important; }

/* ─── Farben / Hintergruende ─── */
.bg-surface { background: var(--c-surface); }
.bg-surface-2 { background: var(--c-surface-2); }
.bg-bg { background: var(--c-bg); }
.text-accent { color: var(--c-accent); }
.text-success { color: var(--c-success); }
.text-danger { color: var(--c-danger); }
.text-warning { color: var(--c-warning); }

/* ─── Borders ─── */
.border { border: 1px solid var(--c-border); }
.border-b { border-bottom: 1px solid var(--c-border); }
.border-t { border-top: 1px solid var(--c-border); }
.rounded-sm { border-radius: var(--r-sm); }
.rounded-md { border-radius: var(--r-md); }
.rounded-lg { border-radius: var(--r-lg); }
.rounded-full { border-radius: var(--r-full); }

/* ─── Schatten ─── */
.shadow-sm { box-shadow: var(--sh-sm); }
.shadow-md { box-shadow: var(--sh-md); }

/* ─── Input readonly (ersetzt inline style="background:var(--c-bg)") ─── */
.form-input-readonly { background: var(--c-bg) !important; cursor: default; }

/* ─── Modal-Groessen (ersetzt inline style="max-width:...") ─── */
.modal-xl { width: 900px; }
.modal-xxl { width: 1100px; max-width: 96vw; }
.modal-full { width: 96vw; max-height: 92vh; }
