/* Leipzig Monteurzimmer – Design-Tokens (Stand 28.11.2026)
   Basis: Logo-Farben Orange #F26A1B + Anthrazit #1F2A30, Logo-Schrift Montserrat.
   Schriften lokal einbinden (kein Google-Fonts-Request, DSGVO). */

@font-face { font-family: "Montserrat"; src: url("/assets/fonts/Montserrat-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/Montserrat-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/Montserrat-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- 1. Farben (Hell = Standard) ---------- */
:root {
  --orange: #F26A1B;
  --orange-text: #B84A0B;
  --anthrazit: #1F2A30;
  --anthrazit-flaeche: #1F2A30;
  --muted: #5B666D;
  --surface: #FFFFFF;
  --surface-alt: #F4F5F6;
  --weiss: #FFFFFF;
  --linie: #DDE1E3;
  --orange-50: #FEF2EA;
  --orange-100: #FDE0CC;
  --orange-200: #FAC09A;
  --orange-300: #F69A5E;
  --orange-400: #F4823D;
  --orange-500: var(--orange);
  --orange-600: #D85A10;
  --orange-700: #B84A0B;
  --orange-800: #933A08;
  --orange-900: #6E2B06;
  --grau-50: #F4F5F6;
  --grau-100: #E9ECEE;
  --grau-200: #DDE1E3;
  --grau-300: #C3C9CD;
  --grau-400: #87929A;
  --grau-500: #69757C;
  --grau-600: #5B666D;
  --grau-700: #3E4A51;
  --grau-800: #2A363D;
  --grau-900: #1F2A30;
  --success: #15803D;
  --success-bg: #ECFDF3;
  --warning: #A16207;
  --warning-bg: #FEF9E7;
  --error: #B91C1C;
  --error-bg: #FDECEC;
  --info: #1D5F8A;
  --info-bg: #EAF3F9;
  --text-auf-orange: #1F2A30;
  --ghost-hover: #FEF2EA;
  --sekundaer-hover: #2A363D;
  --sekundaer-active: #3E4A51;
  --rahmen-feld: #87929A;
  --rahmen-feld-hover: #5B666D;
  --placeholder: #69757C;
  --disabled-flaeche: #E9ECEE;
  --disabled-text: #87929A;
  --fokus: #1F2A30;
}

/* Dunkelmodus – optional, per <html data-theme="dark"> */
[data-theme="dark"] {
  --orange-text: #FF8A45;
  --anthrazit: #EEF1F2;
  --anthrazit-flaeche: #2A363D;
  --muted: #9AA5AB;
  --surface: #14191C;
  --surface-alt: #1B2225;
  --linie: #2F3A40;
  --success: #4ADE80;
  --success-bg: #0F2A1B;
  --warning: #FACC15;
  --warning-bg: #2A230A;
  --error: #F87171;
  --error-bg: #2E1515;
  --info: #7CC0EA;
  --info-bg: #10222E;
  --ghost-hover: #1B2225;
  --sekundaer-hover: #354148;
  --rahmen-feld: #6B7980;
  --rahmen-feld-hover: #9AA5AB;
  --placeholder: #8C979D;
  --disabled-flaeche: #232C31;
  --disabled-text: #6B7980;
  --fokus: #FF8A45;
}

:root {
  /* ---------- 2. Typografie ---------- */
  --font-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  /*         Größe (mobil → desktop)                      Line-Height                       Letter-Spacing */
  --fs-display: clamp(2rem, 1.55rem + 1.9vw, 2.75rem);  --lh-display: clamp(2.25rem, 1.8rem + 1.9vw, 3rem); --ls-display: -0.02em;  /* 32 → 44px */
  --fs-h1: clamp(1.625rem, 1.45rem + 0.75vw, 2rem);     --lh-h1: clamp(2rem, 1.8rem + 0.75vw, 2.375rem);    --ls-h1: -0.015em; /* 26 → 32px */
  --fs-h2: clamp(1.3125rem, 1.22rem + 0.4vw, 1.5rem);   --lh-h2: clamp(1.75rem, 1.7rem + 0.2vw, 1.875rem);   --ls-h2: -0.01em;  /* 21 → 24px */
  --fs-h3: 1.1875rem; --lh-h3: 1.625rem; --ls-h3: -0.005em; /* 19px */
  --fs-h4: 1.0625rem; --lh-h4: 1.5rem;   --ls-h4: 0;        /* 17px */
  --fs-body-lg: 1.125rem; --lh-body-lg: 1.8125rem; --ls-body-lg: 0;       /* 18px */
  --fs-body:    1rem;     --lh-body:    1.625rem;  --ls-body:    0;       /* 16px */
  --fs-small:   0.875rem; --lh-small:   1.3125rem; --ls-small:   0.005em; /* 14px */
  --fs-label:   0.8125rem;--lh-label:   1.125rem;  --ls-label:   0.01em;  /* 13px, 600 */
  --fs-button:  1rem;     --lh-button:  1.25rem;   --ls-button:  0.01em;  /* 16px, 600 */
  --fs-caption: 0.75rem;  --lh-caption: 1rem;      --ls-caption: 0.06em;  /* 12px, 600, VERSALIEN */
  --fw-regular: 400; --fw-semibold: 600; --fw-bold: 700;

  /* ---------- 3. Spacing (4px-Raster: Zahl × 4 = px) ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --band-y: clamp(var(--space-12), 6vw, var(--space-16)); /* Abstand zwischen Seitenbändern */
  --container-max: 1200px;
  --measure: 70ch;

  /* ---------- Radius (gerade Kanten wie im Logo) ---------- */
  --radius-none: 0px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-full: 9999px;

  /* ---------- Bewegung (keine Schatten im System) ---------- */
  --duration: 150ms;
}

/* Basis-Typografie */
body { font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 400; color: var(--anthrazit); background: var(--surface); }
h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 600; color: var(--anthrazit); margin: 0 0 var(--space-4); }
.display { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); font-weight: 600; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); }
p  { max-width: var(--measure); }
a  { color: var(--orange-text); text-underline-offset: 2px; }
a:hover { color: var(--anthrazit); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Leipzig Monteurzimmer – Komponenten (Buttons, Eingabefelder). Gerade Kanten, keine Schatten, keine Verläufe. */

/* ---------- Buttons ---------- */
.lmz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: var(--space-3) var(--space-5);
  font-family: var(--font-sans); font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: 0.01em;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.lmz-btn--sm { min-height: 36px; padding: var(--space-2) var(--space-4); font-size: 14px; }
.lmz-btn--lg { min-height: 52px; padding: var(--space-4) var(--space-8); font-size: 18px; }

.lmz-btn:focus-visible, .lmz-btn.is-focus { outline: 2px solid var(--fokus); outline-offset: 2px; }

/* Primär – Logo-Orange mit dunkler Schrift */
.lmz-btn--primary { background: var(--orange); color: var(--text-auf-orange); }
.lmz-btn--primary:hover, .lmz-btn--primary.is-hover { background: var(--orange-400); }
.lmz-btn--primary:active, .lmz-btn--primary.is-active { background: var(--orange); border-color: var(--orange-600); }

/* Sekundär – Anthrazit-Fläche */
.lmz-btn--secondary { background: var(--anthrazit-flaeche); color: var(--weiss); }
.lmz-btn--secondary:hover, .lmz-btn--secondary.is-hover { background: var(--sekundaer-hover); }
.lmz-btn--secondary:active, .lmz-btn--secondary.is-active { background: var(--sekundaer-active); }

/* Outline */
.lmz-btn--outline { background: var(--surface); color: var(--anthrazit); border-color: var(--anthrazit); }
.lmz-btn--outline:hover, .lmz-btn--outline.is-hover { background: var(--surface-alt); }
.lmz-btn--outline:active, .lmz-btn--outline.is-active { background: var(--disabled-flaeche); }

/* Ghost / Textlink-Button */
.lmz-btn--ghost { background: transparent; color: var(--orange-text); }
.lmz-btn--ghost:hover, .lmz-btn--ghost.is-hover { background: var(--ghost-hover); }
.lmz-btn--ghost:active, .lmz-btn--ghost.is-active { background: var(--ghost-hover); border-color: var(--orange-text); }

/* Disabled – alle Varianten */
.lmz-btn:disabled, .lmz-btn[aria-disabled="true"], .lmz-btn.is-disabled {
  background: var(--disabled-flaeche); color: var(--disabled-text); border-color: transparent; cursor: not-allowed;
}
.lmz-btn--ghost:disabled, .lmz-btn--ghost.is-disabled { background: transparent; }

/* ---------- Eingabefelder ---------- */
.lmz-field { display: flex; flex-direction: column; gap: var(--space-2); font-family: var(--font-sans); }
.lmz-label { font-size: 13px; font-weight: 600; line-height: 18px; letter-spacing: 0.01em; color: var(--anthrazit); }
.lmz-help  { font-size: 14px; line-height: 21px; color: var(--muted); }

.lmz-input {
  width: 100%; box-sizing: border-box; min-height: 44px;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.4; color: var(--anthrazit);
  background: var(--surface); border: 1px solid var(--rahmen-feld); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lmz-input::placeholder { color: var(--placeholder); opacity: 1; }
.lmz-input:hover, .lmz-input.is-hover { border-color: var(--rahmen-feld-hover); }
.lmz-input:focus, .lmz-input.is-active { outline: none; border-color: var(--anthrazit); box-shadow: 0 0 0 2px var(--orange); }
.lmz-input:disabled, .lmz-input.is-disabled { background: var(--disabled-flaeche); border-color: var(--disabled-flaeche); color: var(--disabled-text); cursor: not-allowed; }
.lmz-input:disabled::placeholder, .lmz-input.is-disabled::placeholder { color: var(--disabled-text); }
.lmz-input[aria-invalid="true"], .lmz-input.is-error { border: 2px solid var(--error); }
.lmz-input[aria-invalid="true"]:focus, .lmz-input.is-error.is-active { box-shadow: none; }
.lmz-error { font-size: 14px; line-height: 21px; font-weight: 600; color: var(--error); }
textarea.lmz-input { min-height: 120px; resize: vertical; }
