/* EM2GO Produktberater – Haupt-CSS */
/* Google Fonts werden im HTML geladen */

:root {
  --green:        #16a34a;
  --green-light:  #dcfce7;
  --green-dark:   #15803d;
  --green-hover:  #f0fdf4;
  --black:        #111111;
  --gray-900:     #1a1a1a;
  --gray-700:     #374151;
  --gray-500:     #6b7280;
  --gray-300:     #d1d5db;
  --gray-100:     #f3f4f6;
  --gray-50:      #f9fafb;
  --white:        #ffffff;
  --border:       #e5e7eb;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:    0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:    0 10px 30px rgba(0,0,0,.12);
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    16px;
  --font-display: 'Sora', sans-serif;
  --font-body:    'Inter', sans-serif;
  --transition:   all .2s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
}
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.25; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---- Layout ---- */
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

/* ---- Header ---- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.header-logo img { height: 32px; width: auto; }
.header-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: .02em;
}
.btn-restart {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-500);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.btn-restart:hover { color: var(--black); border-color: var(--gray-300); background: var(--gray-50); }
.btn-restart svg { width: 14px; height: 14px; }

/* ---- Main Content ---- */
.main-content {
  flex: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  width: 100%;
}

/* ---- Hero Intro ---- */
.hero-intro {
  text-align: center;
  margin-bottom: 32px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero-title {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 10px;
}
.hero-subtitle {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 480px;
  margin: 0 auto;
}

/* ---- Progress Bar ---- */
.progress-wrap {
  margin-bottom: 20px;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 6px;
}
.progress-track {
  height: 6px;
  background: var(--gray-200, #e5e7eb);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 100px;
  transition: width .5s ease;
}

/* ---- Back Button ---- */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 16px;
  font-family: var(--font-body);
  transition: var(--transition);
}
.btn-back:hover { color: var(--black); }
.btn-back svg { width: 16px; height: 16px; transition: transform .15s; }
.btn-back:hover svg { transform: translateX(-2px); }

/* ---- Question Card ---- */
.question-block { animation: slideIn .3s ease; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
.question-text {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}
.question-subtitle {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

/* ---- Answer Cards ---- */
.answers-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.answer-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
}
.answer-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--green);
  transform: scaleY(0);
  transition: transform .2s ease;
  border-radius: 0 2px 2px 0;
}
.answer-card:hover {
  border-color: var(--green);
  background: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.answer-card:hover::before { transform: scaleY(1); }
.answer-icon {
  font-size: 28px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: background .2s;
}
.answer-card:hover .answer-icon { background: var(--green-light); }
.answer-body { flex: 1; min-width: 0; }
.answer-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
}
.answer-desc {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}
.answer-arrow {
  color: var(--gray-300);
  flex-shrink: 0;
  transition: var(--transition);
}
.answer-card:hover .answer-arrow { color: var(--green); transform: translateX(3px); }
.answer-arrow svg { width: 18px; height: 18px; }

/* ---- Result Page ---- */
.result-block { animation: scaleIn .35s ease; }
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: scale(1); }
}
.result-header {
  text-align: center;
  margin-bottom: 28px;
}
.result-check {
  width: 64px;
  height: 64px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.result-check svg { width: 32px; height: 32px; color: var(--green); }
.result-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 6px;
}
.result-subtitle { font-size: 15px; color: var(--gray-500); }

/* ---- Product Card ---- */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.product-card.primary {
  border: 2px solid var(--green);
  box-shadow: 0 0 0 4px rgba(22,163,74,.08), var(--shadow-md);
}
.product-card-header {
  background: var(--green);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-card-header span {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}
.product-card-header svg { width: 16px; height: 16px; color: var(--white); }
.product-card-body { padding: 20px; }
.product-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: .02em;
}
.badge-category-wallbox    { background: #eff6ff; color: #1d4ed8; }
.badge-category-dc-charger { background: #fff7ed; color: #c2410c; }
.badge-category-mobile     { background: #faf5ff; color: #7e22ce; }
.badge-power { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--border); }
.product-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
  font-family: var(--font-display);
  line-height: 1.3;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}
.product-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
  font-family: var(--font-display);
}
.product-price-note { font-size: 12px; color: var(--gray-500); }
.product-price-inquiry { font-size: 14px; font-weight: 600; color: var(--gray-500); }
.product-desc {
  font-size: 14px;
  color: var(--gray-700);
  margin-bottom: 14px;
  line-height: 1.55;
}
.product-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
  margin-bottom: 18px;
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--gray-700);
}
.highlight-item svg { width: 15px; height: 15px; color: var(--green); flex-shrink: 0; }
.btn-product {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  border: none;
  text-decoration: none;
}
.btn-product.primary {
  background: var(--green);
  color: var(--white);
}
.btn-product.primary:hover { background: var(--green-dark); text-decoration: none; }
.btn-product.secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1.5px solid var(--border);
}
.btn-product.secondary:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.btn-product svg { width: 15px; height: 15px; }

/* ---- Comparison Note ---- */
.comparison-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: #92400e;
  margin: 12px 0;
  line-height: 1.5;
}
.comparison-note strong { color: #78350f; }

/* ---- Alternative Label ---- */
.alt-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 20px 0 10px;
}

/* ---- Fleet Box ---- */
.fleet-box {
  background: var(--green-hover);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
}
.fleet-box h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}
.fleet-box p { font-size: 14px; color: var(--gray-700); margin-bottom: 14px; }

/* ---- Restart Link ---- */
.restart-wrap {
  text-align: center;
  margin-top: 28px;
}
.btn-restart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition);
}
.btn-restart-link:hover { color: var(--black); }
.btn-restart-link svg { width: 14px; height: 14px; }

/* ---- Loading Spinner ---- */
.spinner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 16px 20px;
  text-align: center;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gray-500);
}
.footer-links a { color: var(--gray-500); }
.footer-links a:hover { color: var(--black); text-decoration: none; }
.footer-sep { color: var(--gray-300); }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .main-content { padding: 20px 16px 48px; }
  .product-highlights { grid-template-columns: 1fr; }
  .header-label { display: none; }
}
