/* =========================================================
   utilities.css – Utility Classes
   Leicht, modern, kompatibel zur neuen Design Language
   CEFAMEX Solutions · 2025
========================================================= */

/* ============================
   DISPLAY
============================ */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none !important; }

/* ============================
   FLEX-TOOLS
============================ */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================
   GRID-TOOLS
============================ */
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================
   SPACING – MARGIN
============================ */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }

.mx-auto { margin-left: auto; margin-right: auto; }

/* ============================
   SPACING – PADDING
============================ */
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.p-10 { padding: var(--space-10); }

/* ============================
   WIDTH
============================ */
.w-full { width: 100%; }
.w-half { width: 50%; }

.max-w-sm { max-width: 380px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 860px; }
.max-w-xl { max-width: 1200px; }

/* ============================
   TEXT
============================ */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-sm { font-size: var(--font-sm); }
.text-lg { font-size: var(--font-lg); }
.text-xl { font-size: var(--font-xl); }

/* ============================
   WEIGHT
============================ */
.light { font-weight: 300; }
.semibold { font-weight: 600; }
.bold { font-weight: 700; }

/* ============================
   COLORS
============================ */
.bg-white { background: #fff; }
.bg-light { background: var(--gray-100); }
.bg-soft-blue { background: var(--blue-50); }

/* ============================
   SHADOWS
============================ */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ============================
   BORDER RADIUS
============================ */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: 9999px; }

/* ============================
   RESPONSIVE UTILITIES
============================ */
@media (max-width: 900px) {
  .md-hidden { display: none !important; }
  .md-center { text-align: center; }
  .md-flex-col { flex-direction: column; }
  .md-w-full { width: 100%; }
  .md-mx-auto { margin-left: auto; margin-right: auto; }
}

@media (max-width: 600px) {
  .sm-hidden { display: none !important; }
  .sm-center { text-align: center; }
  .sm-flex-col { flex-direction: column; }
  .sm-w-full { width: 100%; }
}

