/* ==========================================================================
   FadeUp Eventtechnik – Design-Tokens für Web
   Web Styleguide Version 1.0 (09/2026)
   ========================================================================== */

/* Montserrat selbst hosten (DSGVO) – nur die tatsächlich genutzten Schnitte */
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* ---- Farben: Flächen & Text (dunkel = Standard, siehe Hell-Modus unten) ---- */
  --fu-bg:              #0F0F10;   /* Anthrazit – Seitenhintergrund      */
  --fu-surface:         #17171A;   /* Karten, Header                     */
  --fu-surface-2:       #202024;   /* Hover-Flächen, Eingabefelder       */
  --fu-footer:          #0A0A0B;
  --fu-border:          #2B2B2E;
  --fu-border-strong:   #3A3A40;   /* Eingabefelder, Hover-Rahmen        */
  --fu-text:            #FFFFFF;
  --fu-text-muted:      #B4B4B9;   /* 9,3 : 1 auf --fu-bg                */
  --fu-placeholder:     #9A9AA0;   /* 5,8 : 1 auf --fu-surface-2         */

  /* ---- Akzent (nur für Interaktion) ---- */
  --fu-accent:          #00C8FF;   /* Cyan Blau – nur für Flächen (Buttons) */
  --fu-accent-hover:    #4DD9FF;
  --fu-accent-active:   #00A8D6;
  --fu-on-accent:       #0F0F10;   /* Text auf Cyan                      */
  --fu-accent-ink:      #00C8FF;   /* Cyan als Text/Icon/Rahmen – im Hell-Modus auf --fu-link-light umgestellt, da #00C8FF auf Weiß nur 2:1 Kontrast hat */

  /* ---- Helle Sektionen (immer hell, z. B. Rechtliches) ---- */
  --fu-light:           #FFFFFF;
  --fu-light-2:         #F4F4F5;
  --fu-ink:             #0F0F10;   /* Text auf Hell                      */
  --fu-link-light:      #0077A3;   /* Links auf Hell (5,0 : 1) – nie #00C8FF als Text auf Weiß */

  /* ---- Systemfarben (nur Feedback) ---- */
  --fu-success:         #22C55E;
  --fu-error:           #FF4D5E;
  --fu-warning:         #FFB020;

  /* ---- Typografie ---- */
  --fu-font:            "Montserrat", Arial, sans-serif;
  --fu-fs-display:      clamp(2.5rem, 1.6rem + 3.75vw, 4rem);     /* 40 → 64 px */
  --fu-fs-h1:           clamp(2rem, 1.4rem + 2.5vw, 3rem);        /* 32 → 48 px */
  --fu-fs-h2:           clamp(1.75rem, 1.45rem + 1.25vw, 2.25rem);/* 28 → 36 px */
  --fu-fs-h3:           clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);   /* 20 → 24 px */
  --fu-fs-body-l:       clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);/* 17 → 18 px */
  --fu-fs-body:         1rem;                                     /* 16 px      */
  --fu-fs-small:        0.875rem;                                 /* 14 px      */
  --fu-fs-label:        0.75rem;                                  /* 12 px      */
  --fu-lh-tight:        1.1;
  --fu-lh-body:         1.6;
  --fu-ls-label:        0.2em;
  --fu-ls-button:       0.08em;

  /* ---- Abstände (4-/8-px-System) ---- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;  --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;  --s-10: 128px;
  --fu-section:         clamp(64px, 40px + 6vw, 128px);

  /* ---- Layout ---- */
  --fu-container:       1200px;
  --fu-gutter:          24px;     /* Tablet 20px, Mobil 16px */

  /* ---- Form & Bewegung ---- */
  --fu-radius:          2px;      /* Buttons, Felder */
  --fu-radius-card:     4px;
  --fu-focus:           0 0 0 3px var(--fu-bg), 0 0 0 5px var(--fu-accent-ink);   /* 2px Ring, 3px Abstand */
  --fu-ease:            cubic-bezier(.2, .8, .2, 1);
  --fu-t-fast:          150ms;
  --fu-t-base:          250ms;
  --fu-t-reveal:        400ms;
}

/* Hell-Modus: folgt der Browser-/Systemeinstellung (prefers-color-scheme).
   Cyan bleibt Flächenfarbe (Buttons); als Text/Icon/Rahmen wechselt es auf
   das dunklere --fu-link-light, weil #00C8FF auf Weiß nicht ausreichend
   kontrastiert (siehe --fu-accent-ink oben). */
@media (prefers-color-scheme: light) {
  :root {
    --fu-bg:            #FFFFFF;
    --fu-surface:       #F5F5F6;
    --fu-surface-2:     #EAEAEC;
    --fu-footer:        #F0F0F1;
    --fu-border:        #DCDCDF;
    --fu-border-strong: #C7C7CC;
    --fu-text:          #0F0F10;
    --fu-text-muted:    #4A4A4F;   /* 8,3 : 1 auf --fu-bg                */
    --fu-placeholder:   #8A8A90;
    --fu-accent-ink:    #0077A3;
  }
}

/* Breakpoints: Mobil < 640 | Tablet 640–1023 | Desktop 1024–1439 | Wide ≥ 1440 */

/* ---- Basis ---- */
body {
  background: var(--fu-bg);
  color: var(--fu-text);
  font-family: var(--fu-font);
  font-size: var(--fu-fs-body);
  line-height: var(--fu-lh-body);
}
.fu-light { background: var(--fu-light-2); color: var(--fu-ink); }
.fu-light a { color: var(--fu-link-light); }

.fu-container { max-width: var(--fu-container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 640px)  { .fu-container { padding-inline: 32px; } }
@media (min-width: 1024px) { .fu-container { padding-inline: 48px; } }

.fu-label {
  font-size: var(--fu-fs-label); font-weight: 600;
  letter-spacing: var(--fu-ls-label); text-transform: uppercase;
}
.fu-label::before { content: "// "; color: var(--fu-accent-ink); }
.fu-light .fu-label::before { color: var(--fu-link-light); }

/* ---- Buttons ---- */
.fu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--s-5);
  font: 600 var(--fu-fs-small)/1 var(--fu-font);
  letter-spacing: var(--fu-ls-button); text-transform: uppercase;
  border-radius: var(--fu-radius); border: 1.5px solid transparent;
  cursor: pointer; transition: background-color var(--fu-t-fast) var(--fu-ease), color var(--fu-t-fast) var(--fu-ease);
}
.fu-btn:focus-visible { outline: none; box-shadow: var(--fu-focus); }
.fu-btn--primary { background: var(--fu-accent); color: var(--fu-on-accent); }
.fu-btn--primary:hover { background: var(--fu-accent-hover); }
.fu-btn--primary:active { background: var(--fu-accent-active); }
.fu-btn--secondary { background: transparent; color: var(--fu-text); border-color: var(--fu-text); }
.fu-btn--secondary:hover { background: var(--fu-text); color: var(--fu-ink); }
.fu-btn:disabled { background: var(--fu-border); color: #7A7A80; border-color: transparent; cursor: not-allowed; }
@media (max-width: 639px) { .fu-btn { width: 100%; } }

/* ---- Formulare ---- */
.fu-input {
  width: 100%; min-height: 48px; padding: 0 var(--s-4);
  background: var(--fu-surface-2); color: var(--fu-text);
  border: 1px solid var(--fu-border-strong); border-radius: var(--fu-radius);
  font: 400 1rem/1.4 var(--fu-font);
}
.fu-input::placeholder { color: var(--fu-placeholder); }
.fu-input:focus { outline: none; border: 2px solid var(--fu-accent-ink); }
.fu-input[aria-invalid="true"] { border: 2px solid var(--fu-error); }

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