/* ============================================================
   LichtFlow Media — Homepage Style
   Version: 1.0 | Based on: LichtFlow设计规范_标准版 v2.0
   ============================================================ */

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;700&family=Inter:wght@400;500;600&display=swap');

/* ===== CSS Reset & Custom Properties ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand Colors */
  --brand-blue: #1C387E;
  --brand-gold: #C9A84C;
  --logo-gold: #E1B44B;
  --signal-red: #C32D28;
  --pixel-blue: #009BDC;

  /* Backgrounds */
  --bg-white: #FFFFFF;
  --bg-light: #F5F5F5;
  --bg-dark: #000000;
  --bg-deep: #0A1628;

  /* Text */
  --text-dark: #1A1A1A;
  --text-mid: #666666;
  --text-light: #E8E8E8;
  --text-muted-dark: #A0A0A0;

  /* Gradients */
  --gradient-tricolor: linear-gradient(135deg, #E1B44B 0%, #C32D28 50%, #009BDC 100%);
  --gradient-gold-blue: linear-gradient(135deg, #C9A84C 0%, #1C387E 100%);
  --gradient-hero: linear-gradient(160deg, #1C387E 0%, #0A1628 100%);
  --gradient-footer: linear-gradient(180deg, #000000 0%, #0A1628 100%);

  /* Typography */
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Sizing */
  --nav-height: 72px;
  --nav-height-scrolled: 56px;
  --max-width: 1200px;
  --section-padding: 5rem 1.5rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { transition: color 0.2s, opacity 0.2s; }
img { max-width: 100%; display: block; }

/* ===== Utility ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ============================================================
   1. NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-white);
  height: var(--nav-height);
  transition: height 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid #E8E8E8;
}
.navbar.scrolled {
  height: var(--nav-height-scrolled);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 40px;
  width: auto;
  transition: height 0.3s ease;
}
.navbar.scrolled .nav-logo img {
  height: 32px;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-blue);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--brand-gold);
}

/* Nav Tools */
.nav-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.nav-phone {
  color: var(--text-mid);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--brand-blue); }

.nav-lang {
  background: var(--bg-light);
  border: 1px solid #D0D0D0;
  color: var(--text-dark);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: 0.03em;
}
.nav-lang:hover { background: #E8E8E8; }

.nav-rechner {
  background: var(--brand-gold);
  color: #fff;
  border: none;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-rechner:hover { background: #b8953f; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

/* ============================================================
   2. HERO SECTION
   ============================================================ */
.hero {
  margin-top: var(--nav-height);
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Hero decorative graphics */
.hero-deco-left {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: auto;
  opacity: 0.1;
  pointer-events: none;
}
.hero-deco-right {
  position: absolute;
  right: 0; bottom: 0;
  height: 80%;
  width: auto;
  opacity: 0.08;
  pointer-events: none;
}

/* Radial glow */
.hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -15%;
  width: 70%; height: 160%;
  background: radial-gradient(ellipse, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(10,22,40,0.6) 0%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 220px;
  height: auto;
  margin: 0 auto 2.5rem;
  filter: brightness(0) invert(1);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}
.hero h1 .gold {
  color: var(--brand-gold);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--text-muted-dark);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--brand-gold);
  color: #fff;
  padding: 0.9rem 2.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #b8953f; transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.9rem 2.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover {
  border-color: var(--brand-gold);
  background: rgba(201,168,76,0.08);
}

/* Tricolor accent line under hero */
.hero-accent {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-tricolor);
  z-index: 2;
}

/* ============================================================
   3. PRODUCTS SECTION
   ============================================================ */
.products {
  background: var(--bg-white);
  padding: var(--section-padding);
}

.section-label {
  font-family: var(--font-heading);
  color: var(--brand-gold);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-mid);
  font-size: 1.0625rem;
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-white);
  border: 1px solid #E8ECF2;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(28,56,126,0.1);
}

.product-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #E3E8F0 0%, #F0F3F7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-img-placeholder {
  color: var(--brand-blue);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.4;
}
/* Decorative pixel dots in placeholder */
.product-img::before {
  content: '';
  position: absolute;
  right: 12%; bottom: 10%;
  width: 60px; height: 60px;
  background-image: url('assets/graphics/aux-graphic-7.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.15;
}

.product-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: 0.4rem;
}

.product-desc {
  color: var(--text-mid);
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.product-link {
  color: var(--brand-gold);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s;
}
.product-link:hover {
  gap: 0.6rem;
  color: #b8953f;
}
.product-link .arrow {
  transition: transform 0.2s;
}
.product-link:hover .arrow {
  transform: translateX(2px);
}

/* ============================================================
   4. STATS SECTION
   ============================================================ */
.stats {
  background: var(--bg-light);
  padding: 3.5rem 1.5rem;
}

.stats-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--brand-gold);
  line-height: 1.15;
}

.stat-label {
  font-family: var(--font-body);
  color: var(--text-mid);
  font-size: 0.9375rem;
  margin-top: 0.35rem;
}

/* ============================================================
   5. WHY LICHTFLOW
   ============================================================ */
.why {
  background: var(--bg-white);
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

/* Background decorative graphic */
.why-deco {
  position: absolute;
  right: -5%;
  top: 10%;
  width: 250px;
  height: auto;
  opacity: 0.06;
  pointer-events: none;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 0.5rem;
}

.why-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  background: var(--bg-light);
  position: relative;
  transition: transform 0.25s;
}
.why-card:hover {
  transform: translateY(-4px);
}

.why-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--brand-blue);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-icon svg {
  width: 32px; height: 32px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
}
.why-card .why-sub {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--brand-gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}
.why-card p {
  color: var(--text-mid);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ============================================================
   6. CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--gradient-hero);
  padding: 5rem 1.5rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-tricolor);
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.cta-section p {
  color: var(--text-muted-dark);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  font-size: 1.0625rem;
}
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  margin-top: 1.25rem;
  transition: color 0.2s;
}
.cta-phone:hover { color: #fff; }

/* ============================================================
   7. FOOTER
   ============================================================ */
.footer {
  background: var(--gradient-footer);
  color: #999;
  padding: 4rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: #777;
}

.footer h4 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer ul {
  list-style: none;
}
.footer ul a {
  color: #777;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 2.2;
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--brand-gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: #555;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--brand-gold); }

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

/* ============================================================
   8. COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 2000;
  background: #1A1A2E;
  color: var(--text-light);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner p {
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 680px;
}
.cookie-banner a {
  color: var(--brand-gold);
  text-decoration: underline;
}
.cookie-btns {
  display: flex;
  gap: 0.75rem;
}
.cookie-accept {
  background: var(--brand-gold);
  color: #fff;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-accept:hover { background: #b8953f; }
.cookie-decline {
  background: transparent;
  color: #aaa;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.cookie-decline:hover { border-color: #fff; color: #fff; }

/* ============================================================
   9. FLOATING CTA
   ============================================================ */
.floating-cta {
  position: fixed;
  right: 1.5rem;
  bottom: 5rem;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.floating-cta.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.floating-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

.floating-btn--gold {
  background: var(--brand-gold);
  color: #fff;
  font-size: 1.25rem;
}
.floating-btn--blue {
  background: var(--brand-blue);
  color: #fff;
  font-size: 1.1rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet landscape */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.875rem; }
  .nav-phone { display: none; }
  .hero h1 { font-size: 2.5rem; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
    --nav-height-scrolled: 52px;
    --section-padding: 3.5rem 1.25rem;
  }

  .nav-links, .nav-tools { display: none; }
  .hamburger { display: flex; }

  /* Mobile nav overlay */
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0; bottom: 0;
    background: var(--brand-blue);
    padding: 2rem 1.5rem;
    gap: 0;
    z-index: 999;
  }
  .nav-links.active li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.active a {
    display: block;
    padding: 1rem 0;
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
  }

  /* Mobile tools in overlay */
  .nav-links.active .nav-mobile-tools {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .hero {
    min-height: 85vh;
  }
  .hero-logo {
    width: 160px;
    margin-bottom: 2rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .product-img {
    aspect-ratio: auto;
    min-height: 180px;
  }
  .product-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .stat-number { font-size: 2.25rem; }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-section h2 { font-size: 1.75rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .floating-cta {
    right: 1rem;
    bottom: 4rem;
  }
  .floating-btn {
    width: 46px;
    height: 46px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-logo { width: 130px; }
  .section-title { font-size: 1.75rem; }

  .product-card {
    grid-template-columns: 1fr;
  }
  .product-img { min-height: 160px; }

  .stat-number { font-size: 1.875rem; }
  .cta-section h2 { font-size: 1.5rem; }
}
