/*
 * SANIQ Energie Portal – Main Stylesheet
 * Primärfarbe: RAL 6005 Moosgrün (#114232)
 */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Work Sans', system-ui, sans-serif;
  color: #4A4A6A;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: #1A1A2E;
  letter-spacing: -0.025em;
}

/* ---- Scroll Animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.visible        { opacity: 1; transform: translateY(0); }
.fade-up-delay-1        { transition-delay: 0.1s; }
.fade-up-delay-2        { transition-delay: 0.2s; }
.fade-up-delay-3        { transition-delay: 0.3s; }

/* ---- Sticky Navigation ---- */
.nav-scrolled {
  background: rgba(255,255,255,0.88) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}

/* ---- Gradient Text ---- */
.gradient-text {
  background: linear-gradient(135deg, #114232, #2E8B6E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- FAQ Accordion ---- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              padding 0.3s ease;
}
.faq-item.open .faq-answer  { max-height: 320px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.3s ease; }

/* ---- Cursor Blink (KI-Vorschlag) ---- */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #114232;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 1px;
}

/* ---- Hero Mockup Float ---- */
@keyframes float {
  0%, 100% { transform: translateY(0px);  }
  50%       { transform: translateY(-8px); }
}
.float-animation { animation: float 6s ease-in-out infinite; }

/* ---- Counter (tabular numbers) ---- */
.counter-value { font-variant-numeric: tabular-nums; }

/* ---- Mobile Menu Slide ---- */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu.open { max-height: 360px; }

/* ---- Pricing Cards ---- */
.pricing-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(17,66,50,0.12);
}

/* ---- Step Connector Arrow ---- */
.step-connector { position: relative; }
.step-connector::after {
  content: '→';
  position: absolute;
  right: -28px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #2E8B6E;
  font-weight: 700;
}
@media (max-width: 767px) {
  .step-connector::after { display: none; }
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: #F9FAFB; }
::-webkit-scrollbar-thumb { background: #C2DED5; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2E8B6E; }

/* ---- Button Interactions ---- */
.btn-primary {
  transition: all 0.25s ease;
}
.btn-primary:hover {
  background-color: #091D16;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17,66,50,0.30);
}

.btn-outline {
  transition: all 0.25s ease;
}
.btn-outline:hover {
  background-color: #EAF5F1;
  border-color: #114232;
}

/* ---- WordPress Nav Menu overrides ---- */
#navbar .menu { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
#navbar .menu a { font-size: 0.875rem; font-weight: 500; color: #1A1A2E; text-decoration: none; transition: color 0.2s; }
#navbar .menu a:hover { color: #114232; }
#navbar .menu .current-menu-item > a,
#navbar .menu .current-page-ancestor > a { color: #114232; }

/* ---- Responsive tweaks ---- */
@media (max-width: 640px) {
  .step-connector::after { display: none; }
}
