/* LightDM Design v2 — Tech 2026 */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:ital,wght@0,400;0,500;0,700&display=swap');

/* ─── GLOBAL FONT SYSTEM (unscoped, alle Pages) ────── */
body,
button, input, textarea, select {
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
}
h1, h2, h3, h4, h5,
.hero-title, .page-title, .section-title,
.article-body h2, .article-body h3 {
  font-family: 'Space Grotesk', sans-serif !important;
}

/* ─── BASE TYPOGRAPHY (ldm-v2 scoped) ──────────────── */
.ldm-v2,
.ldm-v2 button,
.ldm-v2 input,
.ldm-v2 textarea,
.ldm-v2 select {
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
}

.ldm-v2 h1,
.ldm-v2 h2,
.ldm-v2 h3,
.ldm-v2 h4,
.ldm-v2 h5 {
  font-family: 'Space Grotesk', sans-serif !important;
  letter-spacing: -0.022em !important;
}

/* Monospace for badge labels */
.ldm-v2 [class*="tracking-["] {
  font-family: 'JetBrains Mono', monospace !important;
}
.ldm-badge {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.63rem !important;
  letter-spacing: 0.22em !important;
}

/* ─── SUBTLE GRID TEXTURE ──────────────────────────── */
.ldm-v2::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

/* ─── SOFT NEURAL CANVAS — fixed sitewide background ── */
#hero-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ─── WERTE SECTION ────────────────────────────────── */
.ldm-werte-grid {
  gap: 0 !important;
  border-top: 1px solid rgba(255,255,255,0.07) !important;
}

@media (min-width: 640px) {
  .ldm-werte-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (min-width: 1024px) {
  .ldm-werte-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

.ldm-werte-item {
  padding: 2.5rem 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}
@media (min-width: 640px) {
  .ldm-werte-item:nth-child(odd) {
    padding-right: 2rem !important;
    border-right: 1px solid rgba(255,255,255,0.07) !important;
  }
}
@media (min-width: 1024px) {
  .ldm-werte-item {
    padding: 2.75rem 2rem 2.75rem 0 !important;
    border-bottom: none !important;
    border-right: none !important;
  }
  .ldm-werte-item + .ldm-werte-item {
    padding-left: 2rem !important;
    border-left: 1px solid rgba(255,255,255,0.07) !important;
    padding-right: 0 !important;
  }
  .ldm-werte-item:nth-child(odd) {
    padding-right: 0 !important;
    border-right: none !important;
  }
}

.ldm-werte-ghost { display: none !important; }
.ldm-werte-icon  { display: none !important; }
.ldm-werte-inner { padding-top: 0 !important; }

.ldm-werte-num {
  display: block;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.62rem !important;
  font-weight: 500 !important;
  color: #F5C518 !important;
  letter-spacing: 0.28em !important;
  margin-bottom: 1.75rem !important;
  opacity: 0.85;
}
.ldm-werte-num::after {
  content: '';
  display: block;
  width: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(245,197,24,0.5), transparent);
  margin-top: 0.875rem;
}

.ldm-werte-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: #fff !important;
  margin-bottom: 0.875rem !important;
  line-height: 1.2 !important;
}

.ldm-werte-desc {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 0.875rem !important;
  line-height: 1.72 !important;
  color: rgba(255,255,255,0.38) !important;
  font-weight: 400 !important;
}

/* ─── HERO HEADLINE ────────────────────────────────── */
.ldm-v2 h1[class*="font-bold"],
.ldm-v2 h1[class*="font-black"] {
  letter-spacing: -0.03em !important;
}

/* ─── TICKER FONT ──────────────────────────────────── */
.ldm-v2 [class*="whitespace-nowrap"][class*="font-bold"],
.ldm-v2 [class*="animate-"][class*="font-bold"] {
  font-family: 'Space Grotesk', sans-serif !important;
  letter-spacing: 0.01em !important;
}

/* ─── CARD TITLES ──────────────────────────────────── */
.ldm-v2 h3[class*="font-bold"] {
  letter-spacing: -0.015em !important;
}

/* ─── CTA BUTTON ───────────────────────────────────── */
.ldm-v2 button[class*="bg-gradient"],
.ldm-v2 a[class*="bg-gradient"][class*="px-"] {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
}

/* ─── TECH STACK REDESIGN ──────────────────────────── */
.ldm-techstack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
@media (min-width: 1024px) {
  .ldm-techstack-grid { grid-template-columns: repeat(4, 1fr); }
}
.ldm-tech-cat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(245,197,24,0.12);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.3s;
}
.ldm-tech-cat:hover { border-color: rgba(245,197,24,0.35); }
.ldm-tech-cat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}
.ldm-tech-cat-label {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: #F5C518;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}
.ldm-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ldm-tech-pill {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(245,197,24,0.08);
  border: 1px solid rgba(245,197,24,0.2);
  color: rgba(255,255,255,0.85);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.ldm-tech-pill:hover {
  background: rgba(245,197,24,0.18);
  border-color: rgba(245,197,24,0.5);
  color: #fff;
}

/* ─── SHARED NAV (alle Standalone-Pages) ──────────────── */
.ldm-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(13,13,12,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(245,197,24,0.1); }
.ldm-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.ldm-nav-logo { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; text-decoration: none; font-family: 'Space Grotesk', sans-serif; }
.ldm-nav-logo span { color: #F5C518; }
.ldm-nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.ldm-nav-links > li > a, .ldm-nav-trigger { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.65); transition: color 0.2s; font-family: 'JetBrains Mono', monospace; cursor: pointer; background: none; border: none; padding: 0; display: flex; align-items: center; gap: 0.3rem; text-decoration: none; }
.ldm-nav-links > li > a:hover, .ldm-nav-trigger:hover { color: #F5C518; }
.ldm-nav-arrow { font-size: 0.6rem; display: inline-block; transition: transform 0.2s; }
.ldm-mega-open .ldm-nav-arrow { transform: rotate(180deg); }
.ldm-mega { display: none; position: fixed; top: 64px; left: 0; right: 0; background: #111110; border-bottom: 1px solid rgba(245,197,24,0.15); z-index: 99; padding: 2.5rem 0 3rem; }
.ldm-mega.open { display: block; }
.ldm-mega-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.ldm-mega-label { font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: #F5C518; margin-bottom: 1.25rem; display: block; }
.ldm-mega-links { display: flex; flex-direction: column; gap: 0.25rem; }
.ldm-mega-link { display: flex; align-items: center; justify-content: space-between; padding: 0.65rem 0.75rem; border-radius: 0.5rem; color: rgba(255,255,255,0.75); font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: background 0.2s, color 0.2s; font-family: 'Space Grotesk', sans-serif; }
.ldm-mega-link:hover { background: rgba(245,197,24,0.08); color: #F5C518; }
.ldm-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.ldm-hamburger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; display: block; }
.ldm-mobile-nav { display: none; position: fixed; inset: 0; background: #0d0d0c; z-index: 200; padding: 2rem 1.5rem; flex-direction: column; overflow-y: auto; }
.ldm-mobile-nav.open { display: flex; }
.ldm-mobile-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.ldm-mobile-close { font-size: 1.4rem; color: #fff; cursor: pointer; background: none; border: none; }
.ldm-mobile-nav > a, .ldm-mobile-sub a { font-size: 1.3rem; font-weight: 700; color: #fff; padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); display: block; text-decoration: none; transition: color 0.2s; font-family: 'Space Grotesk', sans-serif; }
.ldm-mobile-nav > a:hover { color: #F5C518; }
.ldm-mobile-itcheck { color: #F5C518 !important; font-weight: 700 !important; border-bottom: 1px solid rgba(245,197,24,0.2) !important; }
.ldm-mobile-sub a { font-size: 0.95rem; font-weight: 500; color: rgba(255,255,255,0.6); }
.ldm-mobile-label { font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: #F5C518; padding: 1.25rem 0 0.5rem; display: block; }
@media (max-width: 900px) { .ldm-nav-links, .ldm-nav-cta { display: none !important; } .ldm-hamburger { display: flex; } }

/* ─── SHARED FOOTER ────────────────────────────────────── */
.ldm-footer { background: #080807; border-top: 1px solid rgba(245,197,24,0.08); padding: 4rem 0 2rem; }
.ldm-footer-grid { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 3rem; margin-bottom: 3rem; }
@media (max-width: 900px) { .ldm-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .ldm-footer-grid { grid-template-columns: 1fr; } }
.ldm-footer-logo { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; font-family: 'Space Grotesk', sans-serif; }
.ldm-footer-logo span { color: #F5C518; }
.ldm-footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.35); line-height: 1.65; margin-bottom: 0.5rem; font-family: 'Space Grotesk', sans-serif; }
.ldm-footer-location { font-size: 0.75rem; color: rgba(255,255,255,0.25); font-family: 'JetBrains Mono', monospace; }
.ldm-footer-col h4 { font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: #F5C518; margin-bottom: 1rem; }
.ldm-footer-col a { display: block; font-size: 0.875rem; color: rgba(255,255,255,0.45); margin-bottom: 0.5rem; text-decoration: none; transition: color 0.2s; font-family: 'Space Grotesk', sans-serif; }
.ldm-footer-col a:hover { color: #F5C518; }
.ldm-footer-bottom { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.5rem 0; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.ldm-footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.25); font-family: 'JetBrains Mono', monospace; }
.ldm-footer-legal { display: flex; gap: 1.5rem; }
.ldm-footer-legal a { font-size: 0.78rem; color: rgba(255,255,255,0.25); text-decoration: none; transition: color 0.2s; }
.ldm-footer-legal a:hover { color: #F5C518; }

/* ─── BADGE REDESIGN — elegant line style ──────────────── */
.section-badge,
.ldm-section-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.45) !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-bottom: 1.5rem !important;
}
.section-badge::before,
.ldm-section-badge::before {
  content: '' !important;
  display: block !important;
  width: 24px !important;
  height: 1px !important;
  background: #F5C518 !important;
  flex-shrink: 0 !important;
}

/* ─── CTA Button — einheitlich ──────────────────────────── */
.btn-animated, .ldm-nav-cta {
  display: inline-flex !important; align-items: center; gap: 0.4rem;
  padding: 0.75rem 1.75rem !important; border-radius: 9999px !important;
  background: #111110 !important; color: #fff !important;
  font-size: 0.875rem !important; font-weight: 600 !important;
  letter-spacing: 0.01em; white-space: nowrap;
  text-decoration: none; border: 1.5px solid #F5C518 !important;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s !important;
  animation: none !important; isolation: auto !important;
}
.btn-animated::before, .btn-animated::after,
.ldm-nav-cta::before, .ldm-nav-cta::after { display: none !important; }
.btn-animated:hover, .ldm-nav-cta:hover {
  background: #F5C518 !important;
  color: #111 !important;
  box-shadow: 0 0 20px rgba(245,197,24,0.25) !important;
  transform: none !important;
}

/* ─── Card Top-Beam (Gold Glow on Hover) ────────────────── */
.ldm-v2 .card,
.ldm-v2 .plat-card,
.ldm-v2 .about-card,
.ldm-v2 .sc-card,
.ldm-v2 .pos-point {
  position: relative;
  overflow: hidden;
}
.ldm-v2 .card::after,
.ldm-v2 .plat-card::after,
.ldm-v2 .about-card::after,
.ldm-v2 .sc-card::after,
.ldm-v2 .pos-point::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 2px;
  background: linear-gradient(90deg, transparent, #F5C518, transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}
.ldm-v2 .card:hover::after,
.ldm-v2 .plat-card:hover::after,
.ldm-v2 .about-card:hover::after,
.ldm-v2 .sc-card:hover::after,
.ldm-v2 .pos-point:hover::after {
  opacity: 1;
}
