/* =========================================
   baufi-info24 Look (Orange + Stahlblau) + Leadstark
   ========================================= */

.baufi-br{
  --primary: #f28c28;        /* Orange */
  --primary-dark: #e07d1d;
  --secondary: #5f6f8a;      /* Stahl-/Schieferblau */
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #f5f6f8;
  --card: #ffffff;
  --border: #d7dbe2;

  font-family: inherit;
  color: var(--text);
}

.baufi-br *{ box-sizing:border-box; }

.baufi-br__head{ margin-bottom: 18px; }
.baufi-br__title{ font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.baufi-br__lead{ margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* Grid */
.baufi-br__grid{ display:grid; gap: 20px; }
@media (min-width: 900px){
  .baufi-br__grid{ grid-template-columns: 1.1fr .9fr; }
}

/* Cards */
.baufi-br__card{
  background: var(--card);
  border: 1px solid var(--border);
  padding: 18px;
}

/* Ergebnis-Card minimal hervorheben */
.baufi-br__cardResult{ border-top: 3px solid var(--primary); }

/* Section title */
.baufi-br__h{
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary);
}

/* Rows */
.baufi-br__row{
  display:grid;
  gap: 14px;
  margin-bottom: 14px;
}
@media (min-width: 520px){
  .baufi-br__row{ grid-template-columns: 1fr 1fr; }
}

/* Inputs */
.baufi-br__field label{
  display:block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text);
}

.baufi-br__field input,
.baufi-br__field select{
  width:100%;
  padding: 9px 10px;
  font-size: 14px;
  border: 1px solid var(--border);
  background:#fff;
}

.baufi-br__field input:focus,
.baufi-br__field select:focus{
  border-color: var(--primary);
  outline: none;
}

.baufi-br__hint{
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
}

.baufi-br__fineprint{
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.45;
}

/* KPI */
.baufi-br__results{ display:grid; gap: 12px; }

.baufi-br__kpi{
  border: 1px solid var(--border);
  padding: 12px;
  background:#fafafa;
}

.baufi-br__kpiT{ font-size: 12px; color: var(--muted); }
.baufi-br__kpiV{
  font-size: 18px;
  font-weight: 600;
  margin-top: 4px;
  color: var(--secondary);
}
.baufi-br__kpiS{
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.35;
}

/* Tabelle */
.baufi-br__table{
  width:100%;
  border-collapse: collapse;
  margin-top: 14px;
}
.baufi-br__table td{
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.baufi-br__table td:last-child{ text-align:right; font-weight: 500; }

/* Ergebnis-Badge oben */
.baufi-br__resultTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}
.baufi-br__resultBadge{
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px 12px;
  text-align:right;
  min-width: 160px;
}
.baufi-br__badgeLabel{ display:block; font-size: 12px; color: var(--muted); }
.baufi-br__badgeValue{
  display:block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

/* CTA Button */
.baufi-br__cta{
  display:inline-block;
  background: var(--primary);
  color:#fff;
  padding: 10px 16px;
  text-decoration:none;
  font-size: 14px;
  font-weight: 600;
  border: none;
}
.baufi-br__cta:hover{ background: var(--primary-dark); }
.baufi-br__ctaFull{ width:100%; text-align:center; cursor: pointer; }

/* Leadbox */
.baufi-br__leadbox{
  margin-top: 16px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 14px;
}
.baufi-br__leadboxTitle{ font-weight: 700; color: var(--secondary); margin-bottom: 4px; }
.baufi-br__leadboxText{ color: var(--muted); font-size: 13px; margin-bottom: 10px; line-height: 1.4; }

.baufi-br__formRow{
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-bottom: 12px;
}
@media (min-width: 520px){
  .baufi-br__formRow{ grid-template-columns: 1fr 1fr; }
}

.baufi-br__consent{
  display:flex;
  gap: 8px;
  align-items:flex-start;
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 12px;
  line-height: 1.35;
}

.baufi-br__formMsg{ margin-top: 10px; font-size: 13px; }
.baufi-br__formMsg.isSuccess{ color: #137333; }
.baufi-br__formMsg.isError{ color: #b3261e; }

/* Honeypot verstecken */
.baufi-br__hp{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
}

/* Marktzins Label + Button */
.baufi-br__marketLabel{
  font-size: 12px;
  color: var(--secondary);
  margin-right: 8px;
  font-weight: 600;
}

.baufi-br__marketBtn{
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--secondary);
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
}
.baufi-br__marketBtn:hover{ color: var(--primary); }


/* section headings */
.baufi-br__subhead{
  font-size:13px;
  font-weight:700;
  color:var(--secondary);
  margin:14px 0 6px;
  text-transform:uppercase;
  letter-spacing:.04em;
}


/* Sticky Ergebnis (Desktop) */
@media (min-width: 900px){
  .baufi-br__grid{ align-items: start; }
  .baufi-br__cardResult{
    position: sticky;
    top: 90px;
  }
}


/* Progress / Budget-Aufteilung */
.baufi-br__progress{
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

.baufi-br__progressTitle{
  font-size: 13px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.baufi-br__progressBar{
  width: 100%;
  height: 10px;
  background: #f0f2f5;
  border: 1px solid var(--border);
  display: flex;
}

.baufi-br__seg{ height: 100%; }
.baufi-br__segPrice{ background: var(--secondary); width: 0%; }
.baufi-br__segCosts{ background: var(--primary); width: 0%; }

.baufi-br__progressLegend{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.baufi-br__legendItem{ display: inline-flex; align-items: center; gap: 6px; }
.baufi-br__legendRight{ margin-left: auto; color: var(--text); }
.baufi-br__dot{
  width: 10px; height: 10px; display: inline-block;
  border: 1px solid var(--border);
}
.baufi-br__dotPrice{ background: var(--secondary); }
.baufi-br__dotCosts{ background: var(--primary); }


/* v1.5.0 Summary + CTA */
.baufi-br__summaryBox{
  margin-top:16px;
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(79,103,138,.16);
  background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(247,249,255,.94));
  box-shadow:0 10px 22px rgba(17,24,39,.06);
}
.baufi-br__summaryEyebrow{
  display:inline-flex;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(240,138,43,.12);
  color:#9a5b1e;
  border:1px solid rgba(240,138,43,.22);
  font-size:11px;
  font-weight:800;
  letter-spacing:.03em;
  text-transform:uppercase;
  margin-bottom:10px;
}
.baufi-br__summaryTitle{
  font-size:18px;
  font-weight:900;
  margin-bottom:10px;
  color:#111827;
}
.baufi-br__summaryRow{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:7px 0;
  border-bottom:1px dashed rgba(79,103,138,.12);
}
.baufi-br__summaryRow:last-of-type{ border-bottom:0; }
.baufi-br__summaryRow span{ color:#6b7280; }
.baufi-br__summaryRow strong{ color:#2F5E9E; font-weight:900; }
.baufi-br__ctaBox{
  margin-top:12px;
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(240,138,43,.28);
  background:radial-gradient(400px 120px at 0% 0%, rgba(240,138,43,.12), transparent 70%), rgba(240,138,43,.07);
  box-shadow:0 12px 24px rgba(240,138,43,.08);
}
.baufi-br__ctaTitle{ font-weight:900; margin-bottom:6px; }
.baufi-br__ctaText{ margin:0 0 10px; color:#4b5563; }
.baufi-br__ctaTrust{ margin:8px 0 12px; font-size:13px; color:#111827; }
.baufi-br__ctaTrust div{ margin:2px 0; }
.baufi-br__ctaBtn{
  width:100%;
  min-height:48px;
  border:none;
  border-radius:12px;
  background:#F08A2B;
  color:#fff;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 10px 18px rgba(240,138,43,.22);
}
.baufi-br__ctaBtn:hover{ filter:brightness(.97); transform:translateY(-1px); }

/* v1.5.1 summary/cta fix */
.baufi-br__summaryBox{
  margin-top:18px;
  padding:18px;
  border-radius:20px;
  border:1px solid rgba(79,103,138,.14);
  background:linear-gradient(180deg, #ffffff, #f7faff);
  box-shadow:0 12px 26px rgba(17,24,39,.06);
}
.baufi-br__summaryTitle{
  font-size:20px;
  line-height:1.2;
  margin-bottom:12px;
}
.baufi-br__summaryRow{
  align-items:center;
  padding:10px 0;
}
.baufi-br__summaryRow strong{
  font-size:18px;
}
.baufi-br__ctaBox{
  margin-top:16px;
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(240,138,43,.24);
  background:linear-gradient(180deg, rgba(240,138,43,.08), rgba(240,138,43,.04));
}
.baufi-br__ctaText{
  line-height:1.5;
}
.baufi-br__ctaBtn{
  transition:transform .15s ease, filter .15s ease;
}


/* v1.5.2 summary aligned to baufi style */
.baufi-br__summaryBox{
  position:relative;
  overflow:hidden;
  margin-top:20px;
  padding:20px;
  border-radius:22px;
  border:1px solid rgba(79,103,138,.14);
  background:
    radial-gradient(500px 160px at 0% 0%, rgba(47,94,158,.09), transparent 65%),
    linear-gradient(180deg, #ffffff, #f7faff);
  box-shadow:0 14px 30px rgba(17,24,39,.07);
}
.baufi-br__summaryBox::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(255,255,255,.22), transparent 28%);
}
.baufi-br__summaryEyebrow{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 11px;
  border-radius:999px;
  background:rgba(240,138,43,.12);
  color:#9a5b1e;
  border:1px solid rgba(240,138,43,.2);
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  margin-bottom:10px;
}
.baufi-br__summaryTitle{
  font-size:22px;
  line-height:1.15;
  font-weight:900;
  color:#111827;
  margin-bottom:6px;
}
.baufi-br__summaryLead{
  color:#6b7280;
  line-height:1.5;
  margin-bottom:14px;
  font-size:14px;
}
.baufi-br__summaryRow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:11px 0;
  border-bottom:1px dashed rgba(79,103,138,.14);
}
.baufi-br__summaryRow:last-of-type{
  border-bottom:none;
  margin-bottom:2px;
}
.baufi-br__summaryRow span{
  color:#6b7280;
  font-weight:600;
}
.baufi-br__summaryRow strong{
  color:#2F5E9E;
  font-size:19px;
  line-height:1.1;
  font-weight:900;
  text-align:right;
}
.baufi-br__ctaBox{
  margin-top:16px;
  padding:18px;
  border-radius:20px;
  border:1px solid rgba(240,138,43,.24);
  background:
    radial-gradient(420px 140px at 100% 0%, rgba(240,138,43,.12), transparent 65%),
    linear-gradient(180deg, rgba(240,138,43,.08), rgba(240,138,43,.04));
  box-shadow:0 12px 24px rgba(240,138,43,.08);
}
.baufi-br__ctaTitle{
  font-size:18px;
  font-weight:900;
  color:#111827;
  margin-bottom:6px;
}
.baufi-br__ctaText{
  margin:0 0 10px;
  color:#4b5563;
  line-height:1.55;
}
.baufi-br__ctaTrust{
  display:grid;
  gap:4px;
  margin:8px 0 14px;
  font-size:13px;
  color:#111827;
}
.baufi-br__ctaBtn{
  width:100%;
  min-height:50px;
  border:none;
  border-radius:14px;
  background:#F08A2B;
  color:#fff;
  font-weight:900;
  font-size:15px;
  cursor:pointer;
  box-shadow:0 12px 22px rgba(240,138,43,.24);
  transition:transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.baufi-br__ctaBtn:hover{
  filter:brightness(.98);
  transform:translateY(-1px);
  box-shadow:0 14px 24px rgba(240,138,43,.28);
}
@media (max-width: 640px){
  .baufi-br__summaryTitle{font-size:20px;}
  .baufi-br__summaryRow strong{font-size:17px;}
}


/* v1.5.3 summary in KPI/card style */
.baufi-br__summaryKpis{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:14px;
}
.baufi-br__summaryKpi{
  position:relative;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(79,103,138,.12);
  background:rgba(255,255,255,.78);
  box-shadow:0 8px 18px rgba(17,24,39,.04);
}
.baufi-br__summaryKpi--highlight{
  background:linear-gradient(180deg, rgba(47,94,158,.08), rgba(47,94,158,.03));
  border-color:rgba(47,94,158,.16);
}
.baufi-br__summaryKpiLabel{
  display:block;
  font-size:12px;
  font-weight:800;
  color:#6b7280;
  margin-bottom:6px;
}
.baufi-br__summaryKpiValue{
  display:block;
  font-size:22px;
  line-height:1.1;
  font-weight:900;
  color:#111827;
}
.baufi-br__summaryKpi--highlight .baufi-br__summaryKpiValue{
  color:#2F5E9E;
}
.baufi-br__summaryRow{
  display:none !important;
}
@media (max-width: 640px){
  .baufi-br__summaryKpis{
    grid-template-columns:1fr;
  }
  .baufi-br__summaryKpiValue{
    font-size:20px;
  }
}


/* v1.5.4 summary dashboard layout */
.baufi-br__summaryHero{
  position:relative;
  overflow:hidden;
  margin-top:14px;
  margin-bottom:14px;
  padding:18px 18px 16px;
  border-radius:20px;
  border:1px solid rgba(47,94,158,.16);
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(47,94,158,.12), transparent 68%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,255,.98));
  box-shadow:0 12px 24px rgba(17,24,39,.06);
}
.baufi-br__summaryHeroLabel{
  display:block;
  font-size:12px;
  font-weight:800;
  color:#6b7280;
  margin-bottom:6px;
}
.baufi-br__summaryHeroValue{
  display:block;
  font-size:34px;
  line-height:1.05;
  font-weight:900;
  color:#2F5E9E;
  letter-spacing:-.02em;
}
.baufi-br__summaryHeroHint{
  display:block;
  margin-top:8px;
  color:#6b7280;
  font-size:13px;
  line-height:1.45;
}
.baufi-br__summaryKpis{
  grid-template-columns:repeat(3, minmax(0,1fr));
}
.baufi-br__summaryKpi{
  min-height:104px;
}
.baufi-br__summaryKpiValue{
  font-size:20px;
}
.baufi-br__summaryKpi--highlight{
  display:none !important;
}
@media (max-width: 900px){
  .baufi-br__summaryKpis{
    grid-template-columns:1fr;
  }
  .baufi-br__summaryHeroValue{
    font-size:30px;
  }
}

/* v1.5.5 CTA button spacing fix */
.baufi-br__ctaBtn{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:54px !important;
  padding:14px 18px !important;
  line-height:1.2 !important;
  text-align:center !important;
  white-space:normal !important;
}

/* v1.5.6 separate result and lead card */
.baufi-br__summaryBox{
  margin-bottom:16px;
}
.baufi-br__leadCard{
  margin-top:0;
  padding:0;
  border-radius:22px;
  border:1px solid rgba(240,138,43,.20);
  background:linear-gradient(180deg, #fff, #fffaf5);
  box-shadow:0 12px 26px rgba(17,24,39,.05);
  overflow:hidden;
}
.baufi-br__leadCard .baufi-br__ctaBox{
  margin-top:0;
  border:none;
  border-radius:0;
  box-shadow:none;
  background:
    radial-gradient(420px 140px at 100% 0%, rgba(240,138,43,.12), transparent 65%),
    linear-gradient(180deg, rgba(240,138,43,.08), rgba(240,138,43,.04));
}
