/* ============================================================
   CE Immo Group – bewertung.html
   Landingpage "Kostenlose Immobilienbewertung"
   Wird ZUSÄTZLICH zu css/style.css geladen (nur bw-*-Klassen)
   ============================================================ */

/* ---------- Reduzierter Header (Conversion-Fokus) ---------- */

.bw-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  padding: 9px 20px;
  white-space: nowrap;
  transition: all 0.2s;
}
.bw-phone:hover { background: var(--navy); color: var(--white); }
.bw-phone .ico { font-size: 17px; line-height: 1; }

/* ---------- Hero ---------- */

.bw-hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(200, 162, 75, 0.25), transparent 60%),
    linear-gradient(115deg, var(--navy-dark) 0%, var(--navy) 70%);
  color: var(--white);
  text-align: center;
  padding: 84px 0 150px;
}

.bw-hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  max-width: 760px;
  margin: 0 auto 18px;
}

.bw-hero .bw-sub {
  font-size: clamp(17px, 2vw, 19.5px);
  color: rgba(255, 255, 255, 0.88);
  max-width: 660px;
  margin: 0 auto;
}

.bw-trust {
  list-style: none;
  margin: 30px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
}
.bw-trust li { font-weight: 600; font-size: 15.5px; }
.bw-trust li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  margin-right: 9px;
}

/* ---------- Formular-Karte ---------- */

.bw-form-section { padding: 0 0 84px; }
#bewertungsformular { scroll-margin-top: 96px; }

.bw-card {
  position: relative;
  z-index: 5;
  max-width: 780px;
  margin: -95px auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 38px 40px 42px;
}
.bw-card .btn { font-family: inherit; cursor: pointer; }

/* Fortschrittsbalken */

.bw-progress { margin-bottom: 30px; }
.bw-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.bw-step-title {
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12.5px;
}
.bw-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--navy-soft);
  overflow: hidden;
}
.bw-progress-fill {
  height: 100%;
  width: 20%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width 0.35s ease;
}

/* Schritte */

.bw-step {
  display: none;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.bw-step.active { display: block; animation: bwFade 0.35s ease; }
@keyframes bwFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.bw-step legend {
  padding: 0;
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.bw-hint { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }

/* Objektart-Kacheln */

.bw-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.bw-tile { position: relative; display: block; margin: 0; cursor: pointer; }
.bw-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.bw-tile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 14px;
  text-align: center;
  background: var(--white);
  transition: all 0.15s;
}
.bw-tile-inner .ico { font-size: 34px; line-height: 1; }
.bw-tile-inner .name { font-weight: 600; font-size: 16.5px; color: var(--navy); }
.bw-tile:hover .bw-tile-inner {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.bw-tile input:checked + .bw-tile-inner {
  border-color: var(--navy);
  background: var(--navy-soft);
  box-shadow: var(--shadow-sm);
}
.bw-tile input:focus-visible + .bw-tile-inner {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* Auswahl-Pills (Anlass / Zeithorizont) */

.bw-group-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  margin: 24px 0 10px;
}
.bw-group-label.first { margin-top: 0; }

.bw-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.bw-pill { position: relative; display: inline-block; margin: 0; cursor: pointer; }
.bw-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.bw-pill span {
  display: inline-block;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: all 0.15s;
}
.bw-pill:hover span { border-color: var(--navy); color: var(--navy); }
.bw-pill input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  font-weight: 600;
}
.bw-pill input:focus-visible + span {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* Navigation (Zurück / Weiter) */

.bw-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.bw-nav .bw-next-only { margin-left: auto; }
.bw-btn-back {
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
}
.bw-btn-back:hover { border-color: var(--navy); }

/* Fehlermeldung */

.bw-error {
  display: none;
  margin-top: 18px;
  background: #fbeaea;
  border-left: 4px solid #c0392b;
  color: #8f2c21;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 500;
}

/* Datenschutz + Microcopy */

.bw-privacy { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.bw-secure {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Sticky-Bottom-Leiste (nur mobil) ---------- */

.bw-sticky-cta { display: none; }

@media (max-width: 720px) {
  body { padding-bottom: 80px; }

  .bw-sticky-cta {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 130;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(25, 25, 61, 0.12);
  }
  .bw-sticky-cta .btn {
    flex: 1;
    text-align: center;
    padding: 13px 10px;
    font-size: 15px;
  }
  .bw-sticky-call {
    border: 1.5px solid var(--navy);
    color: var(--navy);
    background: var(--white);
  }
}

/* ---------- Responsive Feintuning ---------- */

@media (max-width: 720px) {
  .bw-hero { padding: 60px 0 120px; }
  .bw-card { margin-top: -80px; padding: 26px 18px 30px; }
  .bw-phone { padding: 8px 14px; font-size: 14.5px; }
  .bw-tile-inner { padding: 20px 10px; }
  .bw-tile-inner .ico { font-size: 30px; }
  .bw-step legend { font-size: 19px; }
  .bw-nav { margin-top: 24px; }
  .bw-nav .btn { padding: 13px 20px; }
}

@media (max-width: 380px) {
  .bw-pill span { padding: 9px 14px; font-size: 14px; }
  .bw-phone .num { display: none; }
  .bw-phone { border: none; padding: 6px; font-size: 22px; }
}
