/* ============================================================
   CRO.CSS – Conversion-Rate-Optimierung
   Floating CTA · Exit-Intent · Sticky Mobile · Reviews
   DSGVO-konform: kein Drittanbieter-Tracking
   ============================================================ */

/* ---- FLOATING CTA (Desktop) ---- */
.cro-float {
  position: fixed;
  bottom: 32px;
  right: 24px;
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.cro-float.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.cro-float-label {
  background: rgba(17,24,39,0.9);
  color: white;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  font-weight: 500;
}
.cro-float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1B6B4E;
  color: white;
  padding: 14px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 32px rgba(27,107,78,0.45);
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
}
.cro-float-btn:hover {
  background: #134f3a;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(27,107,78,0.55);
}
.cro-float-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  background: #374151;
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  font-family: 'Inter', sans-serif;
}
.cro-float-close:hover { background: #111827; }
.cro-float-wrap { position: relative; }

@media (max-width: 768px) {
  .cro-float { display: none; }
}

/* ---- STICKY MOBILE BUTTON ---- */
.cro-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: white;
  border-top: 1px solid #f3f4f6;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
}
.cro-sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #1B6B4E;
  color: white !important;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  min-height: 52px;
  line-height: 1.2;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.cro-sticky-btn:hover { background: #134f3a; }

@media (max-width: 768px) {
  .cro-sticky { display: block; }
  body { padding-bottom: 82px !important; }
}

/* ---- EXIT-INTENT OVERLAY ---- */
.cro-exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cro-exit-overlay.active {
  opacity: 1;
  visibility: visible;
}
.cro-exit-modal {
  background: white;
  border-radius: 20px;
  max-width: 460px;
  width: 100%;
  padding: 44px 36px;
  position: relative;
  text-align: center;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.3s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}
.cro-exit-overlay.active .cro-exit-modal {
  transform: scale(1) translateY(0);
}
.cro-exit-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #9ca3af;
  line-height: 1;
  padding: 4px;
  font-family: 'Inter', sans-serif;
}
.cro-exit-close:hover { color: #374151; }
.cro-exit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f5ee;
  color: #1B6B4E;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cro-exit-modal h3 {
  font-size: 23px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 10px;
  line-height: 1.2;
  font-family: 'Inter', sans-serif;
}
.cro-exit-modal > p {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 24px;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}
.cro-exit-field { margin-bottom: 10px; text-align: left; }
.cro-exit-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
  font-family: 'Inter', sans-serif;
}
.cro-exit-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #111827;
  background: #f9fafb;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.cro-exit-field input:focus {
  border-color: #1B6B4E;
  background: white;
  box-shadow: 0 0 0 3px rgba(27,107,78,0.1);
}
.cro-exit-submit {
  width: 100%;
  background: #1B6B4E;
  color: white;
  padding: 15px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, transform 0.2s;
  margin-top: 8px;
}
.cro-exit-submit:hover { background: #134f3a; transform: translateY(-1px); }
.cro-exit-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.cro-exit-skip {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: #9ca3af;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  background: none;
  border: none;
  text-decoration: underline;
}
.cro-exit-skip:hover { color: #374151; }
.cro-exit-privacy {
  font-size: 11px;
  color: #d1d5db;
  margin-top: 10px;
  font-family: 'Inter', sans-serif;
}

/* ---- REVIEWS WIDGET ---- */
.cro-reviews {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.cro-reviews-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.cro-reviews-stars {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 1px;
}
.cro-reviews-count {
  font-size: 13px;
  color: #6b7280;
  font-family: 'Inter', sans-serif;
}
.cro-review-card {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.cro-review-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.cro-review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1B6B4E;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}
.cro-review-name {
  font-weight: 700;
  font-size: 14px;
  color: #111827;
  font-family: 'Inter', sans-serif;
}
.cro-review-stars { color: #f59e0b; font-size: 13px; }
.cro-review-text {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}

/* ---- BAV RECHNER ---- */
.bav-rechner-section {
  background: #f9fafb;
  padding: 72px 24px;
}
.bav-rechner-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.bav-rechner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
  align-items: start;
}
.bav-rechner-card {
  background: white;
  border-radius: 20px;
  padding: 36px 32px;
  border: 1.5px solid #f3f4f6;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.bav-rechner-label {
  font-size: 11px;
  font-weight: 700;
  color: #1B6B4E;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}
.bav-field { margin-bottom: 24px; }
.bav-field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
}
.bav-field label span {
  color: #1B6B4E;
  font-weight: 800;
  font-size: 16px;
}
.bav-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  outline: none;
  cursor: pointer;
}
.bav-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1B6B4E;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(27,107,78,0.4);
  transition: transform 0.15s;
}
.bav-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.bav-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1B6B4E;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(27,107,78,0.4);
}
.bav-select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: #111827;
  background: #f9fafb;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.bav-select:focus { border-color: #1B6B4E; background: white; }

.bav-result-card {
  background: white;
  border-radius: 20px;
  padding: 36px 32px;
  border: 2px solid #e8f5ee;
  box-shadow: 0 4px 24px rgba(27,107,78,0.08);
  position: sticky;
  top: 80px;
}
.bav-result-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}
.bav-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-family: 'Inter', sans-serif;
}
.bav-result-row:last-child { border-bottom: none; }
.bav-result-row-label {
  font-size: 14px;
  color: #6b7280;
}
.bav-result-row-label.primary { color: #374151; font-weight: 600; }
.bav-result-row-label.total { color: #111827; font-weight: 800; font-size: 16px; }
.bav-result-row-value {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}
.bav-result-row-value.green { color: #1B6B4E; }
.bav-result-row-value.total {
  font-size: 28px;
  font-weight: 900;
  color: #1B6B4E;
}
.bav-progress-wrap { margin-bottom: 24px; }
.bav-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #9ca3af;
  font-family: 'Inter', sans-serif;
  margin-bottom: 6px;
}
.bav-progress-bar {
  height: 10px;
  background: #e5e7eb;
  border-radius: 5px;
  overflow: hidden;
}
.bav-progress-fill {
  height: 100%;
  border-radius: 5px;
  background: #1B6B4E;
  transition: width 0.5s ease;
}
.bav-result-summary {
  background: #f0fdf4;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
  border-left: 4px solid #1B6B4E;
}
.bav-result-summary p {
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
  margin: 0;
}
.bav-result-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #1B6B4E;
  color: white !important;
  padding: 16px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(27,107,78,0.35);
  text-align: center;
  line-height: 1.3;
}
.bav-result-cta:hover { background: #134f3a; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(27,107,78,0.45); }
.bav-disclaimer {
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}

@media (max-width: 900px) {
  .bav-rechner-grid { grid-template-columns: 1fr; }
  .bav-result-card { position: static; }
}

/* ---- FÖRDERMITTEL-CHECK QUIZ ---- */
.avd-quiz-section {
  background: #111827;
  padding: 80px 24px;
}
.avd-quiz-inner {
  max-width: 760px;
  margin: 0 auto;
}
.avd-quiz-header { text-align: center; margin-bottom: 40px; }
.avd-quiz-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(27,107,78,0.3);
  border: 1px solid rgba(27,107,78,0.5);
  color: #6ee7b7;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.avd-quiz-header h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 900;
  color: white;
  line-height: 1.15;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}
.avd-quiz-header h2 span { color: #6ee7b7; }
.avd-quiz-header p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}

.avd-quiz-card {
  background: white;
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.avd-step { display: none; }
.avd-step.active { display: block; }

.avd-step-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
}
.avd-step-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #e5e7eb;
  transition: background 0.3s;
}
.avd-step-dot.done { background: #1B6B4E; }
.avd-step-dot.active { background: #6ee7b7; }

.avd-step-num {
  font-size: 11px;
  font-weight: 700;
  color: #1B6B4E;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}
.avd-step h3 {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 24px;
  line-height: 1.25;
  font-family: 'Inter', sans-serif;
}

.avd-option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}
.avd-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  background: #f9fafb;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  text-align: center;
  line-height: 1.3;
  user-select: none;
}
.avd-option:hover { border-color: #1B6B4E; background: #f0fdf4; transform: translateY(-1px); }
.avd-option.selected { border-color: #1B6B4E; background: #e8f5ee; color: #1B6B4E; }
.avd-option-icon { font-size: 24px; }

.avd-slider-wrap { margin-bottom: 24px; }
.avd-slider-value-display {
  text-align: center;
  margin-bottom: 16px;
}
.avd-slider-big {
  font-size: 48px;
  font-weight: 900;
  color: #1B6B4E;
  line-height: 1;
  font-family: 'Inter', sans-serif;
}
.avd-slider-big-unit {
  font-size: 24px;
  color: #6b7280;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}
.avd-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e5e7eb;
  outline: none;
  cursor: pointer;
}
.avd-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1B6B4E;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(27,107,78,0.45);
  transition: transform 0.15s;
}
.avd-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.avd-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1B6B4E;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 10px rgba(27,107,78,0.45);
}
.avd-slider-range {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #9ca3af;
  font-family: 'Inter', sans-serif;
  margin-top: 8px;
}

.avd-next-btn {
  width: 100%;
  background: #1B6B4E;
  color: white;
  padding: 16px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(27,107,78,0.3);
  margin-top: 8px;
}
.avd-next-btn:hover { background: #134f3a; transform: translateY(-1px); }
.avd-next-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Result step */
.avd-result { display: none; }
.avd-result.active { display: block; }
.avd-result-header {
  text-align: center;
  margin-bottom: 28px;
}
.avd-result-header h3 {
  font-size: 22px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}
.avd-result-header p {
  font-size: 14px;
  color: #6b7280;
  font-family: 'Inter', sans-serif;
}
.avd-result-highlight {
  background: #f0fdf4;
  border: 2px solid #1B6B4E;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}
.avd-result-big {
  font-size: 52px;
  font-weight: 900;
  color: #1B6B4E;
  line-height: 1;
  font-family: 'Inter', sans-serif;
}
.avd-result-big-unit {
  font-size: 22px;
  color: #6b7280;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}
.avd-result-sub {
  font-size: 14px;
  color: #374151;
  font-family: 'Inter', sans-serif;
  margin-top: 8px;
}
.avd-result-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}
.avd-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-family: 'Inter', sans-serif;
}
.avd-result-row:last-child { border-bottom: none; }
.avd-result-row span:first-child { font-size: 14px; color: #6b7280; }
.avd-result-row span:last-child { font-size: 14px; font-weight: 700; color: #374151; }
.avd-result-row span:last-child.green { color: #1B6B4E; }
.avd-result-row span:last-child.special { color: #f59e0b; }

.avd-result-cta-box { margin-top: 20px; }
.avd-result-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #1B6B4E;
  color: white !important;
  padding: 18px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(27,107,78,0.4);
  text-align: center;
  line-height: 1.3;
}
.avd-result-cta:hover { background: #134f3a; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(27,107,78,0.5); }
.avd-result-note {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  margin-top: 10px;
  font-family: 'Inter', sans-serif;
}
.avd-reset-btn {
  background: none;
  border: none;
  font-size: 12px;
  color: #d1d5db;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  display: block;
  margin: 8px auto 0;
  text-decoration: underline;
}
.avd-reset-btn:hover { color: #6b7280; }

@media (max-width: 600px) {
  .avd-quiz-card { padding: 28px 20px; }
  .avd-option-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .avd-option { padding: 12px 8px; font-size: 13px; }
  .avd-slider-big { font-size: 40px; }
  .avd-result-big { font-size: 40px; }
}
