/* ==========================================================================
   wieder5sterne.de — Brand Redesign (Orange & Navy Corporate Identity)
   ========================================================================== */

:root {
  --funnel-orange: #e96023;
  --funnel-orange-dark: #d85116;
  --funnel-orange-light: #ffedd5;
  --funnel-orange-subtle: #fff7ed;
  --funnel-orange-glow: rgba(233, 96, 35, 0.25);
  --funnel-navy: #0f1729;
  --funnel-gray-bg: #f8fafc;
  --funnel-gray-border: #e2e8f0;
  --funnel-dark: #0f172a;
  --funnel-success: #059669;
  --funnel-success-light: #ecfdf5;
}

/* ==========================================================================
   1. LOADING / SCAN SCREEN WITH PROGRESS CIRCLE & CHECKLIST
   ========================================================================== */

.w5s-scan-container {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
}

.w5s-scan-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--funnel-gray-border);
  margin-bottom: 20px;
}

.w5s-scan-biz-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--funnel-orange-subtle);
  color: var(--funnel-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--funnel-orange-light);
}
.w5s-scan-biz-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w5s-scan-biz-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--funnel-navy);
  margin: 0 0 4px;
}

.w5s-scan-biz-addr {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
}

.w5s-scan-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 640px) {
  .w5s-scan-body {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
}

.w5s-progress-circle-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w5s-progress-svg {
  transform: rotate(-90deg);
  width: 160px;
  height: 160px;
}

.w5s-progress-bg-circle {
  fill: none;
  stroke: #f1f5f9;
  stroke-width: 10;
}

.w5s-progress-bar-circle {
  fill: none;
  stroke: var(--funnel-orange);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.w5s-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  font-weight: 800;
  color: var(--funnel-navy);
  letter-spacing: -1px;
}
.w5s-progress-text small {
  font-size: 19px;
  font-weight: 600;
  color: #94a3b8;
  margin-left: 2px;
}

.w5s-scan-checklist-wrap h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--funnel-navy);
  margin: 0 0 6px;
}

.w5s-scan-checklist-wrap p.sub {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 0 20px;
}

.w5s-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.w5s-chk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: #94a3b8;
  transition: all 0.3s ease;
}

.w5s-chk-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  background: #f1f5f9;
  color: #cbd5e1;
  transition: all 0.3s ease;
}

.w5s-chk-item.done {
  color: var(--funnel-navy);
  font-weight: 500;
}
.w5s-chk-item.done .w5s-chk-icon {
  background: var(--funnel-success);
  color: #ffffff;
}

.w5s-chk-item.active {
  color: var(--funnel-orange-dark);
  font-weight: 700;
}
.w5s-chk-item.active .w5s-chk-icon {
  background: var(--funnel-orange-light);
  color: var(--funnel-orange-dark);
  box-shadow: 0 0 0 3px var(--funnel-orange-glow);
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.08); }
  100% { transform: scale(0.95); }
}

.w5s-scan-contact-box {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--funnel-gray-border);
  transition: all 0.3s ease;
}

.w5s-scan-contact-box.ready {
  background: var(--funnel-orange-subtle);
  border: 1.5px solid var(--funnel-orange);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 10px 25px -5px rgba(233, 96, 35, 0.15);
  animation: pulse-soft 2.5s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 8px 20px -5px rgba(233, 96, 35, 0.15); }
  50% { box-shadow: 0 10px 28px 0 rgba(233, 96, 35, 0.3); }
}

.w5s-scan-ready-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--funnel-orange-light);
  color: var(--funnel-orange-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.w5s-notify-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--funnel-orange-subtle);
  color: var(--funnel-orange-dark);
  border: 1px solid var(--funnel-orange-light);
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.w5s-notify-btn:hover {
  background: var(--funnel-orange-light);
  transform: translateY(-1px);
}

/* ==========================================================================
   MODAL / POPUP (Lead Capture "Benachrichtigen, wenn fertig")
   ========================================================================== */

.w5s-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 999999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
}
.w5s-modal-overlay.open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.w5s-modal-card {
  background: #ffffff !important;
  border-radius: 20px !important;
  padding: 28px 24px !important;
  max-width: 440px !important;
  width: 100% !important;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.45) !important;
  position: relative !important;
  border: 1px solid #e2e8f0 !important;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
  box-sizing: border-box !important;
}
.w5s-modal-overlay.open .w5s-modal-card {
  transform: translateY(0) scale(1) !important;
}

.w5s-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.w5s-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* ==========================================================================
   2. TOP COMPANY CARD & METRICS BADGES (angebot.php)
   ========================================================================== */

.w5s-biz-header-card {
  background: #ffffff;
  border: 1px solid var(--funnel-gray-border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.w5s-biz-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--funnel-gray-border);
  margin-bottom: 18px;
}

.w5s-biz-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.w5s-biz-header-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--funnel-orange-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--funnel-orange-light);
}
.w5s-biz-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w5s-biz-header-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--funnel-navy);
  margin: 0 0 2px;
}
.w5s-biz-header-address {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.w5s-btn-change {
  background: #ffffff;
  border: 1px solid var(--funnel-gray-border);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--funnel-navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.w5s-btn-change:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.w5s-biz-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 640px) {
  .w5s-biz-metrics-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.w5s-metric-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 14px;
}

.w5s-metric-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.w5s-metric-icon-g { background: #fee2e2; color: #dc2626; }
.w5s-metric-icon-star { background: #fef3c7; color: #d97706; }
.w5s-metric-icon-check { background: var(--funnel-orange-light); color: var(--funnel-orange-dark); }

.w5s-metric-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--funnel-navy);
  line-height: 1.1;
}
.w5s-metric-lbl {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

/* ==========================================================================
   3. TWO-COLUMN LAYOUT (angebot.php)
   ========================================================================== */

.w5s-funnel-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 980px) {
  .w5s-funnel-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   4. REVIEW SEARCH & FILTER BAR
   ========================================================================== */

.w5s-review-search-bar {
  position: relative;
  margin-bottom: 14px;
}
.w5s-review-search-bar input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--funnel-gray-border);
  border-radius: 14px;
  font-size: 14px;
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.w5s-review-search-bar input:focus {
  border-color: var(--funnel-orange);
  box-shadow: 0 0 0 3px var(--funnel-orange-glow);
}
.w5s-review-search-bar svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.w5s-filter-info-notice {
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

/* Review Cards */
.w5s-review-card-modern {
  background: #ffffff;
  border: 1.5px solid var(--funnel-gray-border);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  cursor: pointer;
  user-select: none;
}
.w5s-review-card-modern:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.w5s-review-card-modern.selected {
  border-color: var(--funnel-orange);
  background: var(--funnel-orange-subtle);
  box-shadow: 0 4px 14px rgba(233, 96, 35, 0.08);
}

.w5s-review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.w5s-review-author-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.w5s-custom-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.w5s-review-card-modern.selected .w5s-custom-checkbox {
  background: var(--funnel-orange);
  border-color: var(--funnel-orange);
  color: #ffffff;
}
.w5s-custom-checkbox svg {
  display: none;
}
.w5s-review-card-modern.selected .w5s-custom-checkbox svg {
  display: block;
}

.w5s-review-author {
  font-size: 15px;
  font-weight: 700;
  color: var(--funnel-navy);
}
.w5s-review-stars {
  color: #f59e0b;
  font-size: 13.5px;
  letter-spacing: 1px;
}
.w5s-review-date {
  font-size: 12.5px;
  color: #94a3b8;
}
.w5s-review-body-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: #475569;
  margin: 0;
  padding-left: 32px;
}

/* ==========================================================================
   5. STICKY SIMULATOR SIDEBAR (Right Column)
   ========================================================================== */

.w5s-simulator-sidebar {
  position: sticky;
  top: 90px;
  background: #ffffff;
  border: 1px solid var(--funnel-gray-border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.08);
}

.w5s-sim-company-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.w5s-sim-company-mini .avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--funnel-orange-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--funnel-orange-light);
}
.w5s-sim-company-mini .name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--funnel-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}
.w5s-sim-company-mini .sub {
  font-size: 11.5px;
  color: #94a3b8;
}

/* Rating Progression Box */
.w5s-rating-progression-box {
  background: #f8fafc;
  border: 1px solid var(--funnel-gray-border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
}

.w5s-rating-progression-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.w5s-rating-side-score {
  text-align: center;
}
.w5s-rating-side-score .label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #94a3b8;
  text-transform: uppercase;
}
.w5s-rating-side-score .num {
  font-size: 26px;
  font-weight: 800;
  color: var(--funnel-navy);
  line-height: 1.1;
  margin: 2px 0;
}
.w5s-rating-side-score .stars {
  color: #f59e0b;
  font-size: 11px;
}

.w5s-rating-delta-pill {
  background: var(--funnel-orange-light);
  color: var(--funnel-orange-dark);
  font-size: 13.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.w5s-rating-progression-sub {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  margin: 8px 0 0;
  text-align: center;
}

/* Star Filter Pills */
.w5s-star-filter-section {
  margin-bottom: 20px;
}
.w5s-star-filter-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--funnel-navy);
  margin-bottom: 4px;
}
.w5s-star-filter-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 10px;
}

.w5s-star-pills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.w5s-star-pill-btn {
  background: #f8fafc;
  border: 1px solid var(--funnel-gray-border);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.w5s-star-pill-btn:hover {
  border-color: #cbd5e1;
}
.w5s-star-pill-btn.active {
  background: var(--funnel-orange);
  border-color: var(--funnel-orange);
  color: #ffffff;
}
.w5s-star-pill-btn .count {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.w5s-star-pill-btn .txt {
  font-size: 11.5px;
  margin-top: 3px;
  font-weight: 600;
}

/* Wunsch-Rating Slider */
.w5s-slider-box {
  margin-bottom: 24px;
  background: #f8fafc;
  padding: 14px 16px;
  border-radius: 16px;
}
.w5s-slider-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--funnel-navy);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.w5s-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: #e2e8f0;
  outline: none;
  margin: 8px 0;
}
.w5s-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--funnel-orange);
  cursor: pointer;
  box-shadow: 0 2px 6px var(--funnel-orange-glow);
  transition: transform 0.1s ease;
}
.w5s-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.w5s-slider-scales {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

/* Price Box */
.w5s-sim-price-box {
  border-top: 1px solid var(--funnel-gray-border);
  padding-top: 18px;
  margin-bottom: 20px;
}

.w5s-sim-price-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}
.w5s-sim-price-count {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}
.w5s-sim-price-total {
  font-size: 28px;
  font-weight: 800;
  color: var(--funnel-navy);
}

.w5s-sim-unit-price {
  font-size: 13px;
  color: var(--funnel-orange-dark);
  font-weight: 700;
  text-align: right;
  margin-bottom: 2px;
}
.w5s-sim-price-guarantee {
  font-size: 11.5px;
  color: #94a3b8;
  text-align: right;
  margin-bottom: 12px;
}

/* Mengenrabatt Accordion */
.w5s-mengenrabatt-toggle {
  background: #ffffff;
  border: 1px solid var(--funnel-gray-border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--funnel-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 18px;
  transition: all 0.15s ease;
}
.w5s-mengenrabatt-toggle:hover {
  background: #f8fafc;
}
.w5s-mengenrabatt-table {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  font-size: 12.5px;
  margin-bottom: 18px;
  display: none;
}
.w5s-mengenrabatt-table.show {
  display: block;
}

.w5s-btn-primary-cta {
  background: var(--funnel-orange);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 20px -4px rgba(233, 96, 35, 0.4);
  transition: all 0.2s ease;
  text-decoration: none;
}
.w5s-btn-primary-cta:hover {
  background: var(--funnel-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -4px rgba(233, 96, 35, 0.5);
}

/* ==========================================================================
   6. 3-STEP CHECKOUT FUNNEL ([1] Unternehmen -> [2] Kontakt -> [3] Abschluss)
   ========================================================================== */

.w5s-steps-checkout-card {
  background: #ffffff;
  border: 1px solid var(--funnel-gray-border);
  border-radius: 24px;
  padding: 32px 28px;
  margin-top: 24px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.w5s-step-indicator-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 32px;
}
.w5s-step-indicator-bar::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.w5s-step-node {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  background: #ffffff;
  padding: 0 8px;
  cursor: pointer;
}

.w5s-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.w5s-step-node.active .w5s-step-num {
  background: var(--funnel-orange);
  color: #ffffff;
}
.w5s-step-node.done .w5s-step-num {
  background: var(--funnel-navy);
  color: #ffffff;
}

.w5s-step-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
}
.w5s-step-node.active .w5s-step-text {
  color: var(--funnel-navy);
  font-weight: 700;
}

.w5s-checkout-pane {
  display: none;
}
.w5s-checkout-pane.active {
  display: block;
}

.w5s-pane-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--funnel-navy);
  margin: 0 0 18px;
}

.w5s-form-group {
  margin-bottom: 16px;
  text-align: left;
}
.w5s-form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--funnel-navy);
  margin-bottom: 6px;
}
.w5s-form-control {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--funnel-gray-border);
  border-radius: 12px;
  font-size: 14.5px;
  background: #ffffff;
  outline: none;
  box-sizing: border-box;
  transition: all 0.15s ease;
}
.w5s-form-control:focus {
  border-color: var(--funnel-orange);
  box-shadow: 0 0 0 3px var(--funnel-orange-glow);
}

.w5s-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  .w5s-form-row-2 {
    grid-template-columns: 1fr;
  }
}

.w5s-step-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--funnel-gray-border);
}

.w5s-btn-nav-prev {
  background: #f1f5f9;
  border: none;
  padding: 12px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}
.w5s-btn-nav-prev:hover {
  background: #e2e8f0;
}

.w5s-btn-nav-next {
  background: var(--funnel-orange);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 9999px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.w5s-btn-nav-next:hover {
  background: var(--funnel-orange-dark);
}

/* ==========================================================================
   7. LIVE AUDIT FINDINGS & SCAN RESULTS VIEW (Clean, Spacious, Uncluttered)
   ========================================================================== */

.w5s-scan-loading-view {
  animation: fadeIn 0.3s ease;
}

.w5s-scan-results-view {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  scroll-margin-top: 82px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.w5s-results-success-banner {
  background: #f8fafc;
  border: 1px solid #dbe5f0;
  border-radius: 14px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.w5s-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #0f766e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.w5s-results-headline {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 3px;
  line-height: 1.2;
}

.w5s-results-sub {
  font-size: 13px;
  color: #475569;
  margin: 0;
  line-height: 1.4;
}

.w5s-scan-findings-wrap {
  margin-bottom: 22px;
}

.w5s-findings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .w5s-findings-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .w5s-finding-card.highlight {
    grid-column: 1 / -1 !important;
  }
}

.w5s-finding-card {
  background: #fff;
  border: 1px solid #dce4ee;
  border-radius: 12px;
  padding: 15px 16px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.w5s-finding-card.highlight {
  background: #fff7ed;
  border-color: #fb923c;
  box-shadow: none;
}

.w5s-finding-lbl {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 5px;
}

.w5s-finding-card.highlight .w5s-finding-lbl {
  color: var(--funnel-orange-dark);
}

.w5s-finding-val {
  font-size: 19px;
  font-weight: 800;
  color: var(--funnel-navy);
  line-height: 1.1;
}

.w5s-finding-val.orange {
  color: var(--funnel-orange-dark);
}

.w5s-finding-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

/* Reviews Teaser Section */
.w5s-scan-reviews-preview {
  margin-top: 18px;
  margin-bottom: 20px;
  text-align: left;
}

.w5s-scan-reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.w5s-scan-reviews-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--funnel-navy);
  margin: 0;
}

.w5s-scan-preview-card {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--funnel-orange);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  text-align: left;
}

.w5s-preview-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.w5s-preview-author {
  font-size: 14px;
  font-weight: 700;
  color: var(--funnel-navy);
}

.w5s-preview-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 2px;
}

.w5s-preview-text {
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
  margin: 0 0 10px;
  font-style: italic;
}

.w5s-scan-reason-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #9a3412;
  margin-bottom: 8px;
}

.w5s-scan-chance-tag {
  font-size: 12px;
  font-weight: 700;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Unlock Box / Contact Box in Results View */
.w5s-scan-unlock-box {
  background: #0f172a;
  border: 0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
  text-align: left;
}

@media (max-width: 640px) {
  .w5s-scan-unlock-box {
    padding: 18px 16px;
  }
}

.w5s-scan-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .w5s-scan-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.w5s-scan-form-grid .full-width {
  grid-column: 1 / -1;
}

.w5s-field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--funnel-navy);
  margin-bottom: 5px;
}

.w5s-btn-unlock-cta {
  width: 100%;
  padding: 14px 24px;
  font-size: 15.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  box-shadow: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.w5s-btn-unlock-cta:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.w5s-unlock-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  font-size: 12px;
  color: #cbd5e1;
  flex-wrap: wrap;
}

.w5s-scan-unlock-box #w5s-scan-contact-title,
.w5s-scan-unlock-box .w5s-field-label { color: #ffffff !important; }
.w5s-scan-unlock-box #w5s-scan-contact-desc { color: #cbd5e1 !important; }
.w5s-scan-unlock-box .w5s-form-control { border-color: #475569; background: #fff; }
.w5s-scan-empty-state {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #dbe5f0;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}
.w5s-scan-empty-state strong { color: #0f172a; font-size: 14px; }

/* ==========================================================================
   RESPONSIVE MOBILE STYLES & OPTIMIZATIONS (<= 980px & <= 640px)
   ========================================================================== */

@media (max-width: 980px) {
  .w5s-funnel-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  .w5s-simulator-sidebar {
    order: 1 !important;
    position: static !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .w5s-funnel-main-col {
    order: 2 !important;
    width: 100% !important;
  }
}

@media (max-width: 640px) {
  /* Während der Prüfung zählt der Inhalt, nicht der Werbe-Header. Die
     Firmenprüfung bleibt damit auf iPhone und kleinen Samsung-Geräten in
     einem kompakten ersten Bildschirm. */
  .hero.w5s-scan-active {
    padding: 8px 0 14px !important;
  }
  .hero.w5s-scan-active .hero-headline,
  .hero.w5s-scan-active .w5s-hero-pills,
  .hero.w5s-scan-active .w5s-payment-trust-section,
  .hero.w5s-scan-active .w5s-hero-feature-card {
    display: none !important;
  }
  .hero.w5s-scan-active .hero-inner {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  /* Hero card full-width on mobile — volle Breite bis 10px Rand */
  .hero.w5s-scan-active .hero-search-card.active-scan,
  .hero-search-card.active-scan {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 12px !important;
    border-radius: 16px !important;
  }
  .hero.w5s-scan-active .w5s-scan-header {
    gap: 10px !important;
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
  }
  .hero.w5s-scan-active .w5s-scan-biz-avatar {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
  }
  .hero.w5s-scan-active .w5s-scan-body,
  .hero.w5s-scan-active .w5s-scan-grid {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
    text-align: left !important;
  }
  .hero.w5s-scan-active .w5s-progress-circle-wrap,
  .hero.w5s-scan-active .w5s-progress-svg {
    width: 94px !important;
    height: 94px !important;
    flex: 0 0 94px !important;
    margin: 0 !important;
  }
  .hero.w5s-scan-active .w5s-progress-text {
    font-size: 21px !important;
  }
  .hero.w5s-scan-active .w5s-scan-checklist-wrap {
    min-width: 0 !important;
    text-align: left !important;
  }
  .hero.w5s-scan-active .w5s-scan-checklist-wrap h3,
  .hero.w5s-scan-active #w5s-scan-loading-headline,
  .hero.w5s-scan-active .w5s-scan-checklist-wrap p.sub,
  .hero.w5s-scan-active #w5s-scan-loading-sub {
    text-align: left !important;
  }
  .hero.w5s-scan-active .w5s-scan-checklist-wrap h3,
  .hero.w5s-scan-active #w5s-scan-loading-headline {
    font-size: 15px !important;
  }
  .hero.w5s-scan-active .w5s-scan-checklist-wrap p.sub,
  .hero.w5s-scan-active #w5s-scan-loading-sub {
    font-size: 11.5px !important;
    margin-bottom: 8px !important;
  }
  .hero.w5s-scan-active .w5s-checklist {
    gap: 6px !important;
    margin-bottom: 8px !important;
  }
  .hero.w5s-scan-active .w5s-chk-item {
    font-size: 11.5px !important;
    gap: 7px !important;
  }
  .hero.w5s-scan-active .w5s-chk-item:nth-child(n+4) {
    display: none !important;
  }
  .hero.w5s-scan-active .w5s-notify-btn,
  .hero.w5s-scan-active #w5s-btn-open-notify {
    min-height: 36px !important;
    padding: 8px 10px !important;
  }

  /* 1. Hero Card & Search Box on Mobile */
  .hero-search-card {
    padding: 20px 16px !important;
    border-radius: 20px !important;
  }
  .hero-search-card.active-scan {
    max-width: 100% !important;
    padding: 20px 16px !important;
  }
  .hero-search-input-wrap {
    height: 52px !important;
  }
  .hero-search-input {
    font-size: 15px !important;
  }
  .hero-search-btn {
    width: 44px !important;
    height: 44px !important;
    font-size: 16px !important;
  }

  /* 2. Scan Screen Active Loading (0% - 99%) on Mobile */
  .w5s-scan-body,
  .w5s-scan-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 18px !important;
    text-align: center !important;
  }
  .w5s-progress-circle-wrap {
    width: 130px !important;
    height: 130px !important;
    margin: 0 auto !important;
  }
  .w5s-progress-svg {
    width: 130px !important;
    height: 130px !important;
  }
  .w5s-progress-text {
    font-size: 26px !important;
  }
  .w5s-scan-checklist-wrap {
    width: 100% !important;
    text-align: left !important;
  }
  .w5s-scan-checklist-wrap h3,
  #w5s-scan-loading-headline {
    font-size: 17px !important;
    text-align: center !important;
    margin-bottom: 4px !important;
  }
  .w5s-scan-checklist-wrap p.sub,
  #w5s-scan-loading-sub {
    font-size: 13px !important;
    text-align: center !important;
    margin-bottom: 16px !important;
  }
  .w5s-checklist {
    margin-bottom: 16px !important;
    gap: 10px !important;
  }
  .w5s-chk-item {
    font-size: 13.5px !important;
    gap: 10px !important;
  }
  .w5s-notify-btn,
  #w5s-btn-open-notify {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 16px !important;
    font-size: 13.5px !important;
    box-sizing: border-box !important;
  }

  /* 3. Scan Results View (100% Complete) on Mobile */
  .w5s-results-success-banner {
    padding: 12px 14px !important;
    border-radius: 14px !important;
    gap: 10px !important;
  }
  .w5s-banner-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
  }
  .w5s-results-headline {
    font-size: 15.5px !important;
  }
  .w5s-results-sub {
    font-size: 12px !important;
  }

  /* 3 Metric Cards on Mobile: Highlight spans top, 2 metrics below */
  .w5s-findings-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .w5s-finding-card.highlight {
    grid-column: 1 / -1 !important;
    padding: 12px 14px !important;
  }
  .w5s-finding-card {
    padding: 10px 12px !important;
    border-radius: 12px !important;
  }
  .w5s-finding-lbl {
    font-size: 10px !important;
  }
  .w5s-finding-val {
    font-size: 17px !important;
  }
  .w5s-finding-sub {
    font-size: 11px !important;
  }

  /* Problem Review Preview Card */
  .w5s-scan-preview-card {
    padding: 14px 14px !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
  }
  .w5s-preview-card-top {
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }
  .w5s-preview-author {
    font-size: 13.5px !important;
  }
  .w5s-preview-stars {
    font-size: 14px !important;
  }

  /* Unlock / Contact Form Card */
  .w5s-scan-unlock-box {
    padding: 18px 16px !important;
    border-radius: 16px !important;
  }
  .w5s-scan-form-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .w5s-scan-unlock-box input,
  .w5s-form-control {
    height: 48px !important;
    font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
  }
  .w5s-btn-unlock-cta {
    height: 52px !important;
    font-size: 16px !important;
  }
  .w5s-unlock-trust-row {
    font-size: 11px !important;
    gap: 8px !important;
  }

  /* 4. Offer Page (angebot.php) Mobile Tuning */
  .w5s-biz-header-card {
    padding: 18px 14px !important;
    border-radius: 16px !important;
    margin-bottom: 16px !important;
  }
  .w5s-biz-header-top {
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
  }
  .w5s-biz-header-title {
    font-size: 16.5px !important;
  }
  .w5s-biz-metrics-row {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }
  .w5s-metric-item {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 8px 4px !important;
    border-radius: 10px !important;
    gap: 4px !important;
  }
  .w5s-metric-icon-badge {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
  }
  .w5s-metric-val {
    font-size: 15px !important;
  }
  .w5s-metric-lbl {
    font-size: 10px !important;
    line-height: 1.15 !important;
  }

  /* Simulator Sidebar Card */
  .w5s-simulator-sidebar {
    padding: 18px 14px !important;
    border-radius: 18px !important;
  }
  .w5s-rating-progression-box {
    padding: 12px 10px !important;
  }
  .w5s-rating-side-score .num {
    font-size: 22px !important;
  }
  .w5s-sim-price-total {
    font-size: 24px !important;
  }
  .w5s-btn-primary-cta {
    padding: 14px 20px !important;
    font-size: 15.5px !important;
  }

  /* Review Cards List */
  .w5s-review-card-modern {
    padding: 14px 14px !important;
    border-radius: 14px !important;
  }
  .w5s-review-body-text {
    padding-left: 0 !important;
    margin-top: 4px !important;
  }

  /* 3-Step Checkout on Mobile */
  .w5s-steps-checkout-card {
    padding: 20px 14px !important;
    border-radius: 18px !important;
    margin-top: 16px !important;
  }
  .w5s-step-indicator-bar {
    margin-bottom: 22px !important;
  }
  .w5s-step-node {
    padding: 0 2px !important;
    gap: 4px !important;
  }
  .w5s-step-num {
    width: 24px !important;
    height: 24px !important;
    font-size: 11px !important;
  }
  .w5s-step-text {
    font-size: 11.5px !important;
  }
  .w5s-checkout-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .w5s-checkout-pane input,
  .w5s-checkout-pane select {
    height: 48px !important;
    font-size: 16px !important;
  }
}
