/* ---------------------------------------------------------
   VS Anfrage Funnel – Complete CSS
   Version: 2.1.x
--------------------------------------------------------- */

.vs-funnel {
  max-width: 980px;
  margin: 0 auto;
}

.vs-funnel * {
  box-sizing: border-box;
}

/* ------------------------------
   Steps / Header
------------------------------ */

.vs-steps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.vs-step {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  font-weight: 800;
  opacity: .55;
  user-select: none;
}

.vs-step.is-active {
  opacity: 1;
  border-color: #111827;
}

/* ------------------------------
   Panels
------------------------------ */

.vs-panel {
  display: none;
  position: relative; /* wichtig für Loader Overlay */
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.vs-panel.is-active {
  display: block;
}

.vs-panel h3 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 900;
}

@media (max-width: 720px) {
  .vs-panel h3 {
    font-size: 28px;
  }
}

/* ------------------------------
   Form fields
------------------------------ */

.vs-row {
  margin-top: 12px;
}

.vs-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vs-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 720px) {
  .vs-row-2,
  .vs-row-3 {
    grid-template-columns: 1fr;
  }
}

.vs-form label span {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}

.vs-form input,
.vs-form select,
.vs-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  background: #fff;
  font-size: 16px;
}

.vs-form textarea {
  resize: vertical;
  min-height: 110px;
}

.vs-form input:focus,
.vs-form select:focus,
.vs-form textarea:focus {
  border-color: #111827;
}

/* ------------------------------
   Services Grid (Step 1)
------------------------------ */

.vs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 720px) {
  .vs-grid {
    grid-template-columns: 1fr;
  }
}

/* Checkbox card */
.vs-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fafafa;
  cursor: pointer;
}

.vs-check input {
  width: 20px;
  height: 20px;
}

.vs-check span {
  font-weight: 900;
  margin: 0;
}

/* DSGVO block */
.vs-dsgvo {
  margin-top: 14px;
  background: #fff;
}

/* ------------------------------
   Actions / Buttons
------------------------------ */

.vs-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.vs-btn {
  appearance: none;
  border: 1px solid #111827;
  background: #fff;
  color: #111827;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
}

.vs-btn:hover {
  opacity: .92;
}

.vs-primary {
  background: #111827;
  color: #fff;
}

.vs-btn.is-loading {
  opacity: .7;
  cursor: wait;
}

.vs-hint {
  margin-top: 10px;
  opacity: .75;
  font-weight: 700;
}

/* ------------------------------
   Service specific boxes (Step 3)
------------------------------ */

.vs-box {
  display: none;
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed #e5e7eb;
  border-radius: 14px;
  background: #fcfcfc;
}

.vs-box h4 {
  margin: 0 0 10px;
  font-weight: 900;
}

/* ------------------------------
   Suggest (City/PLZ) – LIST, not buttons
------------------------------ */

.vs-city-wrap {
  position: relative;
}

.vs-suggest {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  z-index: 9999;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  overflow: hidden;
}

/* scroll container */
.vs-suggest-inner {
  max-height: 240px;
  overflow: auto;
}

/* list item */
.vs-suggest-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  border-radius: 0;
  font-weight: 800;
}

/* hover/focus */
.vs-suggest-item:hover,
.vs-suggest-item:focus {
  background: #f8fafc;
  outline: none;
}

.vs-suggest-city {
  font-weight: 900;
}

.vs-suggest-plz {
  opacity: .7;
  font-weight: 900;
}

/* Theme-resets (damit nichts pillig wird) */
.vs-suggest button,
.vs-suggest .button,
.vs-suggest-item {
  box-shadow: none !important;
  text-transform: none !important;
}

/* ------------------------------
   Step 4: Address Summary Box
------------------------------ */

.vs-summary {
  margin: 14px 0 12px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fafafa;
}

.vs-summary h4 {
  margin: 0 0 10px;
  font-weight: 900;
}

.vs-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

@media (max-width: 720px) {
  .vs-summary-grid {
    grid-template-columns: 1fr;
  }
}

.vs-summary-grid span {
  display: block;
  font-size: 12px;
  opacity: .7;
  font-weight: 800;
  margin-bottom: 2px;
}

.vs-summary-grid strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
}

/* ------------------------------
   Result Messages
------------------------------ */

.vs-result {
  margin-top: 12px;
  font-weight: 900;
}

.vs-result.is-ok {
  color: #065f46;
}

.vs-result.is-err {
  color: #991b1b;
}

/* ------------------------------
   Loader Overlay (IMPORTANT)
   default hidden -> only .is-active shows
------------------------------ */

.vs-loader {
  display: none !important; /* <- fix: sonst steht "Lädt..." dauerhaft */
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(2px);
  border-radius: 16px;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.vs-loader.is-active {
  display: flex !important;
}

.vs-spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid rgba(17,24,39,.15);
  border-top-color: rgba(17,24,39,.9);
  animation: vsSpin .8s linear infinite;
}

@keyframes vsSpin {
  to { transform: rotate(360deg); }
}

.vs-loader-text {
  font-weight: 900;
  opacity: .85;
  font-size: 14px;
}