/*
 * Ivalox – vorgebautes Stylesheet (ohne Build-Schritt einsatzbereit)
 *
 * Aufbau:
 *   1. components.css  – alle Komponenten im Stitch-Design (eine Quelle für beide Varianten)
 *   2. Design-Tokens, Basis (Preflight) und Utilities (Tailwind-kompatible Namen)
 *
 * "npm run build:css" erzeugt diese Datei aus assets/css/src/app.css neu.
 * Keine Inline-Styles, keine externen Ressourcen (CSP: style-src 'self').
 *
 * components.css bindet head.html.twig direkt davor ein (paralleles Laden, eigener Cache-Stand ?v=) –
 * früher per @import, das erst nach dieser Datei geladen wurde.
 */

/* ---------------------------------------------------------------------------
 * Design-Tokens (Stitch „Automotive Precision Light“, design/stitch/DESIGN.md)
 * ------------------------------------------------------------------------ */
:root {
    --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

    /* Markenfarbe: Chrom/Graphit (angelehnt an das Logo) */
    --brand-50: #fafafa;  --brand-100: #f4f4f5; --brand-200: #e4e4e7; --brand-300: #c4c4cc;
    --brand-400: #a1a1aa; --brand-500: #71717a; --brand-600: #27272a; --brand-700: #18181b;
    --brand-800: #0f0f10; --brand-900: #09090b;

    --slate-50: #f8fafc;  --slate-100: #f1f5f9; --slate-200: #e2e8f0; --slate-300: #cbd5e1;
    --slate-400: #94a3b8; --slate-500: #64748b; --slate-600: #475569; --slate-700: #3f4850;
    --slate-800: #1e293b; --slate-900: #0b1c30; --slate-950: #020617;

    --red-50: #fef2f2; --red-100: #fee2e2; --red-200: #fecaca; --red-500: #ef4444;
    --red-600: #ba1a1a; --red-700: #93000a; --red-800: #991b1b; --red-900: #7f1d1d;

    --emerald-50: #ecfdf5; --emerald-100: #d1fae5; --emerald-200: #a7f3d0; --emerald-500: #10b981;
    --emerald-600: #059669; --emerald-800: #065f46; --emerald-900: #064e3b;

    --amber-50: #fffbeb; --amber-100: #fef3c7; --amber-200: #fde68a; --amber-500: #f59e0b;
    --amber-800: #92400e; --amber-900: #78350f;

    --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.05);
    --shadow-md: 0 4px 20px -2px rgb(15 23 42 / 0.06), 0 2px 6px -1px rgb(15 23 42 / 0.03);
    --shadow-lg: 0 18px 40px -12px rgb(15 23 42 / 0.12), 0 4px 12px -4px rgb(15 23 42 / 0.06);
}

/* ---------------------------------------------------------------------------
 * Basis (Preflight)
 * ------------------------------------------------------------------------ */
*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--slate-200); }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; font-family: var(--font-sans); }
body { line-height: inherit; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: 700; }
code, kbd, pre, samp { font-family: var(--font-mono); font-size: 1em; }
small { font-size: 80%; }
s { text-decoration: line-through; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; background-color: transparent; letter-spacing: inherit; }
button, [role="button"], summary { cursor: pointer; }
:disabled { cursor: default; }
ol, ul, menu { list-style: none; }
table { border-collapse: collapse; text-indent: 0; border-color: inherit; }
textarea { resize: vertical; }
::placeholder { opacity: 1; color: var(--slate-400); }
fieldset { min-width: 0; }
summary { display: list-item; }
progress { vertical-align: baseline; }
[hidden]:where(:not([hidden="until-found"])) { display: none !important; }

/* ---------------------------------------------------------------------------
 * Utilities
 * ------------------------------------------------------------------------ */
/* Darstellung & Position */
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.inset-x-0 { left: 0; right: 0; }
.top-0 { top: 0; }
.z-40 { z-index: 40; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* Größen */
.h-full { height: 100%; }
.h-fit { height: fit-content; }
.min-h-full { min-height: 100%; }
.min-w-0 { min-width: 0; }
.w-auto { width: auto; }
.w-full { width: 100%; }
.w-fit { width: fit-content; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.max-w-xs { max-width: 20rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.size-12 { width: 3rem; height: 3rem; }
.size-20 { width: 5rem; height: 5rem; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }

/* Flex & Grid */
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-x-6 { column-gap: 1.5rem; }
.gap-y-1 { row-gap: 0.25rem; }
.gap-y-2 { row-gap: 0.5rem; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Abstände */
.mx-auto { margin-left: auto; margin-right: auto; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pb-4 { padding-bottom: 1rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-14 { margin-top: 3.5rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.-mt-4 { margin-top: -1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-16 { margin-bottom: 4rem; }
.ml-1 { margin-left: 0.25rem; }
.scroll-mt-24 { scroll-margin-top: 6rem; }
.scroll-smooth { scroll-behavior: smooth; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; border-top-style: solid; }
.divide-slate-200 > :not([hidden]) ~ :not([hidden]) { border-color: var(--slate-200); }

/* Typografie */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.font-display { font-family: var(--font-display); }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-mono { font-family: var(--font-mono); }
.tracking-tight { letter-spacing: -0.025em; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.whitespace-nowrap { white-space: nowrap; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Farben */
.text-white { color: #fff; }
.text-muted { color: #52525b; }
.text-subtle { color: var(--slate-500); }
.text-primary { color: var(--brand-600); }
.text-slate-100 { color: var(--slate-100); }
.text-slate-200 { color: var(--slate-200); }
.text-slate-300 { color: var(--slate-300); }
.text-slate-400 { color: var(--slate-400); }
.text-slate-500 { color: var(--slate-500); }
.text-slate-600 { color: var(--slate-600); }
.text-slate-700 { color: var(--slate-700); }
.text-slate-800 { color: var(--slate-800); }
.text-slate-900 { color: var(--slate-900); }
.text-brand-400 { color: var(--brand-400); }
.text-brand-600 { color: var(--brand-600); }
.text-brand-700 { color: var(--brand-700); }
.text-red-600 { color: var(--red-600); }
.text-red-700 { color: var(--red-700); }
.bg-white { background-color: #fff; }
.bg-white\/90 { background-color: rgb(255 255 255 / 0.9); }
.bg-white\/5 { background-color: rgb(255 255 255 / 0.05); }
.bg-slate-50 { background-color: var(--slate-50); }
.bg-slate-100 { background-color: var(--slate-100); }
.bg-slate-900 { background-color: var(--slate-900); }
.bg-slate-950 { background-color: var(--slate-950); }
.bg-brand-50 { background-color: var(--brand-50); }
.bg-brand-500 { background-color: var(--brand-500); }

/* Rahmen, Schatten, Effekte */
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-slate-200 { border-color: var(--slate-200); }
.border-red-200 { border-color: var(--red-200); }
.border-white\/10 { border-color: rgb(255 255 255 / 0.1); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.shadow-lg { box-shadow: var(--shadow-lg); }
.backdrop-blur { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.transition { transition: color .15s, background-color .15s, border-color .15s, box-shadow .15s, opacity .15s; }
.cursor-pointer { cursor: pointer; }

/* Zustände */
.hover\:text-primary:hover { color: var(--brand-600); }
.hover\:text-brand-700:hover { color: var(--brand-700); }
.hover\:text-slate-800:hover { color: var(--slate-800); }
.hover\:border-brand-300:hover { border-color: var(--brand-300); }
.hover\:shadow-md:hover { box-shadow: var(--shadow-md); }
.group:hover .group-hover\:bg-slate-200 { background-color: var(--slate-200); }
.group:hover .group-hover\:text-brand-700 { color: var(--brand-700); }
.group:hover .group-hover\:opacity-90 { opacity: 0.9; }

/* ---------------------------------------------------------------------------
 * Responsive Varianten (sm ≥ 640px, md ≥ 768px, lg ≥ 1024px)
 * ------------------------------------------------------------------------ */
@media (min-width: 640px) {
    .sm\:block { display: block; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sm\:col-span-2 { grid-column: span 2 / span 2; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:items-center { align-items: center; }
    .sm\:items-start { align-items: flex-start; }
    .sm\:items-end { align-items: flex-end; }
    .sm\:w-32 { width: 8rem; }
    .sm\:w-auto { width: auto; }
    .sm\:text-5xl { font-size: 3rem; line-height: 1; }
}

@media (min-width: 768px) {
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:static { position: static; }
    .md\:order-last { order: 9999; }
    .md\:ml-auto { margin-left: auto; }
    .md\:p-0 { padding: 0; }
    .md\:border-0 { border-width: 0; }
    .md\:bg-transparent { background-color: transparent; }
    .md\:shadow-none { box-shadow: none; }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:justify-between { justify-content: space-between; }
    .md\:gap-1 { gap: 0.25rem; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:col-span-3 { grid-column: span 3 / span 3; }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:block { display: block; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:col-span-3 { grid-column: span 3 / span 3; }
    .lg\:items-center { align-items: center; }
    .lg\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
