/* ========================================
   Lichtenfeld-IT — Stylesheet
   ======================================== */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --accent: #f97316;
  --accent-light: #ffedd5;
  --purple: #6366f1;
  --purple-light: #ede9fe;
  --blue-light: #e0f2fe;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
  --font: 'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.7; overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 32px; }

/* ========================================
   Animated background blobs
   ======================================== */
.blob-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1; overflow: hidden; pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35;
  animation: blobFloat 20s ease-in-out infinite;
}
.blob-1 { width: 600px; height: 600px; background: #bae6fd; top: -10%; right: -5%; animation-delay: 0s; }
.blob-2 { width: 500px; height: 500px; background: #fde68a; bottom: 10%; left: -10%; animation-delay: -7s; }
.blob-3 { width: 400px; height: 400px; background: #c4b5fd; top: 40%; right: 20%; animation-delay: -14s; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -50px) scale(1.1); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(40px, 20px) scale(1.05); }
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: 1140px; margin: 0 auto; padding: 0 24px;
}
.logo-img { height: 40px; }
.nav { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative; z-index: 110;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: var(--text);
  position: absolute; left: 0; transition: all 0.3s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }
.nav-toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer; transition: all 0.3s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff; box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 8px 30px rgba(14, 165, 233, 0.4); color: #fff;
}
.btn-outline {
  background: transparent; color: var(--primary); border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ========================================
   Hero Section
   ======================================== */
.hero {
  padding: 140px 0 70px; text-align: center; position: relative;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
  background: linear-gradient(135deg, var(--blue-light), var(--purple-light));
  color: var(--primary-dark); margin-bottom: 28px;
}
.hero-label .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800;
  line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.01em;
}
.hero .gradient-text {
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 1.15rem; color: var(--text-muted); max-width: 620px;
  margin: 0 auto 36px; line-height: 1.8;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ========================================
   Ticker
   ======================================== */
.ticker {
  padding: 18px 0; overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary-dark), var(--purple));
  color: white;
}
.ticker-track {
  display: flex; gap: 56px; animation: ticker 25s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; opacity: 0.8; flex-shrink: 0;
}
.ticker-sep { opacity: 0.4; flex-shrink: 0; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ========================================
   Sections
   ======================================== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header .tag {
  display: inline-block; padding: 4px 14px; border-radius: 50px; font-size: 0.8rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--blue-light); color: var(--primary-dark); margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px;
}
.section-header p {
  font-size: 1.05rem; color: var(--text-muted); max-width: 600px; margin: 0 auto;
}

/* ========================================
   Service Blocks (colored cards on homepage)
   ======================================== */
.services { padding: 80px 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-block {
  border-radius: 20px; padding: 40px 28px; position: relative;
  overflow: hidden; transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer; text-decoration: none; color: var(--text); display: block;
}
.service-block:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.08); }
.service-block.sb-blue { background: var(--blue-light); }
.service-block.sb-orange { background: var(--accent-light); }
.service-block.sb-purple { background: var(--purple-light); }
.service-block .sb-num {
  font-size: 6rem; font-weight: 900; opacity: 0.07;
  position: absolute; top: -10px; right: 16px; line-height: 1;
}
.service-block h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; position: relative; }
.service-block p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; position: relative; line-height: 1.6; }
.service-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; transition: transform 0.3s;
}
.service-block:hover .service-arrow { transform: translateX(4px); }

/* ========================================
   Cards (generic)
   ======================================== */
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px;
  transition: all 0.3s ease;
}
.card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
}
.card .icon.blue { background: var(--blue-light); color: var(--primary); }
.card .icon.orange { background: var(--accent-light); color: var(--accent); }
.card .icon.purple { background: var(--purple-light); color: var(--purple); }
.card .icon.green { background: #dcfce7; color: #16a34a; }

/* ========================================
   Grids
   ======================================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ========================================
   Banner (image with overlay)
   ======================================== */
.banner {
  margin: 0 24px; border-radius: 24px; overflow: hidden; position: relative;
  height: 380px;
}
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(14,165,233,0.75), rgba(99,102,241,0.65));
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; color: white; text-align: center; padding: 24px;
}
.banner-overlay h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.banner-overlay p { font-size: 1.1rem; opacity: 0.9; max-width: 520px; }

/* ========================================
   Features Row
   ======================================== */
.features-section { padding: 80px 0; }
.features-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.feature-item {
  text-align: center; padding: 40px 20px;
  border-right: 1px solid var(--border); transition: background 0.3s;
}
.feature-item:last-child { border-right: none; }
.feature-item:hover { background: var(--bg-alt); }
.feature-icon { font-size: 1.8rem; margin-bottom: 12px; }
.feature-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.feature-item p { font-size: 0.9rem; color: var(--text-muted); }

/* ========================================
   Steps
   ======================================== */
.steps-section { padding: 80px 0; background: var(--bg-alt); }
.steps-flex { display: flex; gap: 0; align-items: stretch; }
.step-block {
  flex: 1; padding: 40px 28px; border-right: 1px solid var(--border);
  position: relative; transition: background 0.3s;
}
.step-block:last-child { border-right: none; }
.step-block:hover { background: white; }
.step-label {
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.step-block h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.step-block p { font-size: 0.9rem; color: var(--text-muted); }

/* ========================================
   Feature List (checkmarks)
   ======================================== */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  padding: 8px 0 8px 28px; position: relative;
  font-size: 0.95rem; color: var(--text);
}
.feature-list li::before {
  content: '\2713'; position: absolute; left: 0; top: 8px;
  color: var(--primary); font-weight: 700;
}

/* ========================================
   Reference Box
   ======================================== */
.reference-box {
  background: linear-gradient(135deg, var(--blue-light), var(--purple-light));
  border-radius: var(--radius); padding: 32px;
  margin-bottom: 24px;
}
.reference-box h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.reference-box p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0; }
.reference-box .tag {
  display: inline-block; padding: 4px 14px; border-radius: 50px; font-size: 0.75rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  background: rgba(14,165,233,0.15); color: var(--primary-dark); margin-bottom: 12px;
}

/* ========================================
   Process Flow
   ======================================== */
.process-flow {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin-bottom: 16px;
}
.process-flow h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.flow-steps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.flow-step {
  background: var(--blue-light); padding: 6px 14px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 500; color: var(--primary-dark);
}
.flow-arrow { color: var(--text-muted); font-size: 0.9rem; }

/* ========================================
   FAQ Accordion
   ======================================== */
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-item h3 {
  padding: 20px 24px; font-size: 1rem; font-weight: 600; margin-bottom: 0;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  transition: background 0.2s;
}
.faq-item h3:hover { background: var(--bg-alt); }
.faq-item h3::after { content: '+'; font-size: 1.3rem; color: var(--primary); transition: transform 0.3s; }
.faq-item.open h3::after { content: '\2212'; }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 20px; }
.faq-answer p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0; }

/* ========================================
   Contact Form & Grid
   ======================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.9rem; font-weight: 600;
  margin-bottom: 6px; color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--border);
  border-radius: 12px; font-family: var(--font); font-size: 0.95rem;
  background: var(--bg); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.contact-info-block { margin-bottom: 28px; }
.contact-info-block h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.contact-info-block p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 4px; }
.contact-info-block a { color: var(--primary); }

/* ========================================
   CTA Section
   ======================================== */
.cta {
  padding: 80px 24px; text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: white;
  margin: 60px 24px; border-radius: 24px;
  position: relative; overflow: hidden;
}
.cta-glow {
  position: absolute; inset: 0; opacity: 0.15;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.4) 0%, transparent 60%);
}
.cta h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 12px; position: relative; }
.cta p { font-size: 1.1rem; opacity: 0.85; margin-bottom: 32px; position: relative; }
.cta .btn {
  background: white; color: var(--primary-dark); font-weight: 700;
  position: relative; box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.cta .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }

/* ========================================
   Footer
   ======================================== */
.footer-bar {
  padding: 32px 0; display: flex; justify-content: space-between; align-items: center;
}
.footer-bar p { font-size: 0.85rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ========================================
   Legal Pages
   ======================================== */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { font-size: 1.4rem; font-weight: 700; margin-top: 40px; margin-bottom: 12px; }
.legal-content h3 { font-size: 1.1rem; font-weight: 600; margin-top: 24px; margin-bottom: 8px; }
.legal-content p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.7; }
.legal-content ul { margin: 12px 0 12px 20px; }
.legal-content li { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 4px; }
.legal-content a { color: var(--primary); }
.legal-content strong { color: var(--text); }

/* ========================================
   Scroll Reveal
   ======================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(.25,.8,.25,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.96); transition: all 0.6s ease; }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
  .nav {
    display: none; flex-direction: column; gap: 0;
    position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border); padding: 16px 0;
  }
  .nav.open { display: flex; }
  .nav li { width: 100%; }
  .nav a {
    display: block; padding: 14px 24px; font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav li:last-child a { border-bottom: none; }
  .nav .btn-primary {
    margin: 12px 24px; border-radius: 50px; text-align: center;
    display: block; padding: 14px 24px !important; font-size: 1rem !important;
  }
  .nav-toggle { display: block; }

  .hero { padding: 120px 0 50px; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }

  .services-grid, .grid-2, .grid-3 { grid-template-columns: 1fr !important; }

  .features-row { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--border); }
  .feature-item:last-child { border-bottom: none; }

  .steps-flex { flex-direction: column; }
  .step-block { border-right: none; border-bottom: 1px solid var(--border); }
  .step-block:last-child { border-bottom: none; }

  .banner { height: 260px; margin: 0 16px; }
  .cta { margin: 40px 16px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .flow-arrow { display: none; }
  .footer-bar { flex-direction: column; gap: 12px; text-align: center; }

  /* Keep the colored blobs visible on mobile, but freeze the animation.
     The moving blur halo was getting clipped by .blob-bg's overflow edge,
     producing the flickering rectangle artifact. Static blobs = no flicker. */
  .blob { animation: none; }
  .blob-1 { transform: translate(20px, -30px); }
  .blob-2 { transform: translate(-10px, 20px); }
  .blob-3 { transform: translate(20px, 10px); }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .card { padding: 24px 20px; }
  .btn { padding: 12px 24px; width: 100%; justify-content: center; }
  /* Nav Kontakt button: width:100% from .btn + 24px side margins overflow
     the viewport. Let the block element fill its parent minus the margins. */
  .nav .btn-primary { width: auto; }
}
