/* ==========================================================================
   ONLINE FUTURE – ELITE TYPOGRAPHY SYSTEM (V 5.0.0)
   
   VOLLSTÄNDIGER MASTER CHEAT SHEET (Anwendung via "Extra Class Name"):
   --------------------------------------------------------------------------
   FLUID SIZING (Mobile-First + Auto-Line-Height):
   .fs-xxxxs bis .fs-xs   -> Micro-Copy & Labels (0.6rem - 1.05rem)
   .fs-s | .fs-m          -> Standard Fließtext (1.0rem - 1.6rem)
   .fs-l | .fs-xl         -> Sub-Headlines & Einleitungen
   .fs-xxl | .fs-xxxl     -> Große Headlines (optimierte Zeilenabstände)
   .fs-hero               -> Maximaler Impact (bis zu 10rem / 160px)

   BRAND & NEON EFFECTS:
   .text-grad-brand       -> Fließender Brand-Verlauf (Blau zu Grün)
   .btn-neon-green        -> Neon-Leuchteffekt in Brand-Grün
   .btn-neon-blue         -> Neon-Leuchteffekt in Brand-Blau
   .glow-text-green       -> Subtiler grüner Text-Glow
   .glow-text-blue        -> Subtiler blauer Text-Glow
   .text-grad-animate     -> Animierter Reveal-Farbverlauf beim Laden

   PREMIUM LAYOUT & GLASS:
   .glass-card            -> Heller Glaseffekt (Blur + Lichtkante)
   .glass-card-dark       -> Dunkler Glaseffekt (für dunkle Hintergründe)
   .theme-dark            -> Sektions-Inverter (Text in Row wird weiß)
   .underline-premium     -> Design-Unterstreichung mit Offset (kein Überkleben)

   LOGIC HELPERS (Präzisionswerkzeuge):
   .text-balance          -> Verteilt Text gleichmäßig (verhindert einzelne Wörter)
   .text-pretty           -> Optimiert Umbrüche für harmonisches Schriftbild
   .nowrap                -> Verhindert Zeilenumbruch komplett
   .tracking-tighter      -> Engerer Buchstabenabstand (High-End Look)
   .lh-none               -> Zeilenhöhe auf 1 (extrem enger Stapel-Look)

   INTERACTIVE TEXT FIX (Typing Animation):
   .ofa-interactive-fix   -> Zwingt Typing-Text in eine Zeile, verhindert
                             Layout-Shifts auf Mobile & kürzt Überlänge mit "..."
   ========================================================================== */

/* === 1. DESIGN TOKENS & BRAND COLORS ===================================== */
:root {
  --font-size-base: 16px;
  
  /* Brand Colors */
  --brand-green-dark:  rgba(0, 179, 12, 1);
  --brand-green-light: rgba(0, 255, 0, 1);
  --brand-blue-dark:   rgba(5, 118, 255, 1);
  --brand-blue-light:  rgba(0, 191, 255, 1);
  
  /* Fluid Core Scale */
  --fs-p:    clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  --fs-h1:   clamp(2.25rem, 1.5rem + 3.75vw, 4.5rem);
  --fs-h2:   clamp(1.85rem, 1.35rem + 2.5vw, 3.25rem);
  --fs-h3:   clamp(1.55rem, 1.25rem + 1.5vw, 2.25rem);
  
  --lh-body: 1.618;
  --lh-heading: 1.25;
  
  --fs-local: initial;
  --lh-local: initial;
  --color-local: inherit;
}

/* === 2. GLOBAL RESET & BASE (Low Specificity) ============================ */
html { font-size: var(--font-size-base) !important; }

:where(body) {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-p);
  line-height: var(--lh-body);
  color: var(--color-local);
  -webkit-font-smoothing: antialiased;
}

:where(h1, h2, h3, h4, h5, h6) {
  font-weight: 700;
  line-height: var(--lh-heading);
  margin-block: 0 0.5em;
  letter-spacing: -0.02em;
  color: var(--color-local);
}

/* === 3. BUILDER BRIDGE (Override Protection) ============================ */
[style*="font-size"]   { --fs-local: inherit !important; font-size: inherit !important; }
[style*="line-height"] { --lh-local: inherit !important; line-height: inherit !important; }
[style*="color"]       { --color-local: inherit !important; color: inherit !important; }

.l-main :where(h1, h2, h3, h4, h5, h6, p, span, div, li, .w-heading-h) {
  font-size: var(--fs-local, inherit);
  line-height: var(--lh-local, inherit);
  color: var(--color-local);
}

/* === 4. MASSIVE FLUID SCALE (High Priority) ============================== */
html body .fs-xxxxs { --fs-local: clamp(0.6rem, 0.58rem + 0.1vw, 0.7rem) !important; font-size: var(--fs-local) !important; line-height: 1.5 !important; }
html body .fs-xxxs  { --fs-local: clamp(0.7rem, 0.65rem + 0.2vw, 0.85rem) !important; font-size: var(--fs-local) !important; line-height: 1.5 !important; }
html body .fs-xxs   { --fs-local: clamp(0.8rem, 0.75rem + 0.25vw, 0.95rem) !important; font-size: var(--fs-local) !important; line-height: 1.5 !important; }
html body .fs-xs    { --fs-local: clamp(0.9rem, 0.85rem + 0.3vw, 1.05rem) !important; font-size: var(--fs-local) !important; line-height: 1.5 !important; }
html body .fs-s     { --fs-local: clamp(1rem, 0.95rem + 0.4vw, 1.2rem) !important; font-size: var(--fs-local) !important; line-height: 1.6 !important; }
html body .fs-m     { --fs-local: clamp(1.2rem, 1.1rem + 0.6vw, 1.6rem) !important; font-size: var(--fs-local) !important; line-height: 1.6 !important; }
html body .fs-l     { --fs-local: clamp(1.5rem, 1.35rem + 1vw, 2.2rem) !important; font-size: var(--fs-local) !important; line-height: 1.2 !important; }
html body .fs-xl    { --fs-local: clamp(2rem, 1.7rem + 1.8vw, 3.5rem) !important; font-size: var(--fs-local) !important; line-height: 1.15 !important; }
html body .fs-xxl   { --fs-local: clamp(2.5rem, 2rem + 3vw, 5rem) !important; font-size: var(--fs-local) !important; line-height: 1.1 !important; }
html body .fs-xxxl  { --fs-local: clamp(3.5rem, 2.5rem + 6vw, 8rem) !important; font-size: var(--fs-local) !important; line-height: 1.05 !important; }
html body .fs-hero  { --fs-local: clamp(3rem, 2rem + 7vw, 10rem) !important; font-size: var(--fs-local) !important; font-weight: 900 !important; line-height: 1.0 !important; letter-spacing: -0.04em !important; }

/* === 5. INTERACTIVE TEXT FIX (Typing Animation) ========================= */
html body .ofa-interactive-fix {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important; /* Fügt "..." hinzu, falls Wort zu lang */
  display: block !important;
  width: 100% !important;
  min-height: 1.2em;
}

/* === 6. NEON GLOW & BRAND GRADIENTS ====================================== */
html body .text-grad-brand {
  background: linear-gradient(90deg, var(--brand-blue-dark), var(--brand-blue-light), var(--brand-green-light), var(--brand-green-dark));
  background-size: 300% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: inline-block; animation: gradient-flow 4s ease infinite;
}

html body .btn-neon-green, html body .btn-neon-blue {
  padding: 1rem 2.5rem; border-radius: 50px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none; cursor: pointer; color: #fff !important; text-decoration: none !important;
  display: inline-block; text-align: center;
}
html body .btn-neon-green { background: var(--brand-green-dark); box-shadow: 0 0 15px rgba(0, 255, 0, 0.4); }
html body .btn-neon-green:hover { background: var(--brand-green-light); box-shadow: 0 0 30px rgba(0, 255, 0, 0.8); transform: translateY(-3px); }

html body .btn-neon-blue { background: var(--brand-blue-dark); box-shadow: 0 0 15px rgba(0, 191, 255, 0.4); }
html body .btn-neon-blue:hover { background: var(--brand-blue-light); box-shadow: 0 0 30px rgba(0, 191, 255, 0.8); transform: translateY(-3px); }

html body .glow-text-green { text-shadow: 0 0 12px rgba(0, 255, 0, 0.6); }
html body .glow-text-blue  { text-shadow: 0 0 12px rgba(0, 191, 255, 0.6); }

html body .text-grad-animate {
  background: linear-gradient(90deg, var(--brand-blue-dark), var(--brand-blue-light), var(--brand-green-light), var(--brand-green-dark));
  background-size: 300% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: inline-block; animation: reveal-flow 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* === 7. GLASSMORPHISM & THEME LOGIC ====================================== */
html body .theme-dark { --color-local: #ffffff !important; }
html body .theme-dark :where(h1, h2, h3, h4, h5, h6, p, span, li, i) { color: #ffffff !important; }

html body .glass-card, html body .glass-card-dark {
  backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-radius: 1.5rem; padding: clamp(1.5rem, 5vw, 3rem);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  z-index: 1; position: relative;
}
html body .glass-card      { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); }
html body .glass-card-dark { background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff !important; }
html body .glass-card:hover, html body .glass-card-dark:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); }

/* === 8. LOGIC HELPERS ==================================================== */
html body .text-balance { text-wrap: balance !important; }
html body .text-pretty  { text-wrap: pretty !important; }
html body .nowrap       { white-space: nowrap !important; }
html body .tracking-tighter { letter-spacing: -0.05em !important; }
html body .lh-none      { line-height: 1 !important; }
html body .underline-premium { text-decoration: underline; text-decoration-color: var(--brand-blue-dark); text-decoration-thickness: 2px; text-underline-offset: 0.25em; text-decoration-skip-ink: all; }

/* Keyframes */
@keyframes gradient-flow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes reveal-flow { 0% { background-position: 0% 50%; opacity: 0; transform: translateY(10px); } 100% { background-position: 100% 50%; opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }