/* CleanWhale Germany Building Hub & Services UI — matches 3-screen CleanWhale design */
.bw-building {
  background: #f5f7fb;
}
.bw-building .bw-top {
  border-bottom: 1px solid #e6ebf2;
}
.bw-building .bw-section {
  padding-bottom: 28px;
}

/* ---------- Hero (Map left + Quick Cleaning CTA right) ---------- */
.bw-building .bw-bhead {
  padding: 20px var(--gutter) 20px;
}
.bw-building .bw-sub {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #475569;
  font-size: 17px;
  margin-top: 8px;
}
.bw-building .bw-sub-pin {
  color: var(--cw99-blue);
  flex-shrink: 0;
}
.bw-bhero {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr);
  gap: 20px;
  margin-top: 20px;
  align-items: stretch;
}
.bw-bhero--single {
  grid-template-columns: 1fr;
}
.bw-bhero-map {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
}
.bw-map-stage {
  position: relative;
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f6;
}
.bw-map-stage .bw-plan {
  width: 100%;
  height: 100%;
  max-height: 310px;
  object-fit: cover;
  display: block;
}
.bw-bhero-map figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #64748b;
}
.bw-bhero-cta {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.bw-bhero-cta-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bw-bhero-cta-top strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}
.bw-bhero-cta-top span {
  display: block;
  color: #64748b;
  font-size: 15px;
  margin-top: 2px;
}
.bw-bhero-price {
  font-size: clamp(38px, 3.5vw, 52px);
  font-weight: 700;
  line-height: 1;
  color: #0f172a;
  margin: 6px 0;
}
.bw-bhero-tax {
  font-size: 13px;
  color: #475569;
  background: #eef4ff;
  border-radius: 8px;
  padding: 7px 10px;
}
.bw-bhero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--cw99-blue);
  color: #fff !important;
  font-weight: 700;
  font-size: 17px;
}
.bw-bhero-btn:hover {
  background: var(--cw99-blue-hover);
  text-decoration: none;
}

/* ---------- 4-Tab Bar & Building Passport Strip (#gebaeude) ---------- */
.bw-building .home-tabs,
.bw-building .hs-page-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 var(--gutter) 20px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}
.bw-building .home-tabs a,
.bw-building .hs-page-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  background: transparent;
  color: #334155;
  font-weight: 600;
  font-size: 16px;
  position: relative;
}
.bw-building .home-tabs a.is-active,
.bw-building .home-tabs a:hover,
.bw-building .hs-page-nav a:hover {
  color: var(--cw99-blue);
  background: #eef4ff;
  text-decoration: none;
}
.bw-building .bw-facts-strip {
  display: block;
  margin: 0 var(--gutter) 24px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.bw-building .bw-facts-5col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px 0;
}
.bw-fact-cell {
  padding: 4px 20px;
  border-right: 1px solid #e6ebf2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bw-fact-cell:first-of-type {
  padding-left: 4px;
}
.bw-fact-cell:last-of-type {
  border-right: 0;
}
.bw-fact-ico {
  width: 24px;
  height: 24px;
  color: #475569;
  margin-bottom: 4px;
}
.bw-fact-ico svg {
  width: 22px;
  height: 22px;
}
.bw-building .bw-fact-cell dd {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: #0f172a;
}
.bw-building .bw-fact-cell dd.bw-note {
  font-size: 12.5px;
  font-weight: 400;
  color: #64748b;
  opacity: 1;
}
.bw-building .bw-fact-cell dt {
  font-size: 14px;
  color: #64748b;
  opacity: 1;
}
.bw-building .gb-tags {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eef2f6;
}

/* ---------- Wohnlage & Bodenrichtwert Card (#lage) ---------- */
.bw-building .bw-price-card {
  display: block;
}
.bw-price-box {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.bw-price-split {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}
.bw-price-highlight {
  background: #eef4ff;
  border-radius: 14px;
  padding: 24px;
}
.bw-price-kicker {
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.bw-price-highlight .bw-bignum {
  color: var(--cw99-blue);
  font-size: clamp(36px, 3.6vw, 54px);
}
.bw-price-meta {
  font-size: 14.5px;
  color: #475569;
  margin-top: 10px;
  line-height: 1.5;
}
.bw-compare-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.bw-compare-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #64748b;
  padding-bottom: 8px;
  border-bottom: 1px solid #e6ebf2;
}
.bw-building .bw-compare {
  padding-top: 0;
  gap: 0;
}
.bw-building .bw-compare > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #eef2f6;
}
.bw-building .bw-compare dt {
  font-size: 15.5px;
  color: #1e293b;
}
.bw-building .bw-compare dd {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}

/* ---------- Nachbarhäuser & Versorgung Cards ---------- */
.bw-nearby-card {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  padding: 24px 26px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.bw-nearby-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bw-nearby-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid #dce3ee;
  background: #f8fafc;
  color: #1e293b !important;
  font-weight: 600;
  font-size: 15px;
}
.bw-nearby-pill:hover {
  border-color: var(--cw99-blue);
  color: var(--cw99-blue) !important;
  text-decoration: none;
}
.bw-nearby-pill.is-current {
  background: var(--cw99-blue);
  border-color: var(--cw99-blue);
  color: #fff !important;
}
.bw-nearby-table-details {
  margin-top: 14px;
}
.bw-nearby-table-details > summary {
  cursor: pointer;
  color: var(--cw99-blue);
  font-weight: 600;
  font-size: 14.5px;
}

/* ---------- Services unter dieser Adresse (#service) ---------- */
.hs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.hs-grid-1 {
  grid-template-columns: minmax(0, 680px);
}
.hs-card {
  min-width: 0;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hs-wide {
  grid-column: 1 / -1;
  margin-top: 20px;
}
.hs-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.hs-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #eef4ff;
  color: var(--cw99-blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 20px;
}
.hs-ico svg {
  width: 24px;
  height: 24px;
}
.hs-ico-sm {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 18px;
}
.hs-card h3 {
  font-size: 22px;
  line-height: 1.2;
}
.hs-sub {
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.4;
  margin-top: 3px;
}
.hs-brand {
  color: var(--cw99-blue);
  font-weight: 700;
  font-size: 14px;
}
.hs form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.hs-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hs label {
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  min-width: 0;
}
.hs select,
.hs input[type="number"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 5px;
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  min-height: 42px;
  padding: 6px 10px;
}
.hs-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  font-weight: 500 !important;
}
.hs-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--cw99-blue);
}
.hs-price-bar {
  margin-top: auto;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.hs-price-bar > span {
  font-size: 14px;
  color: #475569;
  font-weight: 500;
}
.hs-total {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.hs-total output,
.hs-total strong {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: #0f172a;
}
.hs-note {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}
.hs-note a {
  color: var(--cw99-blue);
}
.hs-tax-banner {
  margin-top: 16px;
  padding: 14px 18px;
  background: #eef4ff;
  border: 1px solid #dbe6fd;
  border-radius: 12px;
  color: #1e3a8a;
  font-size: 14px;
  line-height: 1.45;
}
.hs-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  background: var(--cw99-blue);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  margin-top: auto;
}
.hs-action:hover {
  background: var(--cw99-blue-hover);
  text-decoration: none;
}
.hs-job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  gap: 10px;
}
.hs-job-label {
  display: none;
  grid-column: 1 / -1;
}
.hs-more-jobs > summary {
  cursor: pointer;
  color: var(--cw99-blue);
  font-size: 13.5px;
  font-weight: 600;
  padding: 2px 0;
}

/* ---------- Per KI-Chat buchen Bar ---------- */
.hs-ai {
  margin-top: 20px;
  padding: 16px 22px;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}
.hs-ai-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.hs-ai-title {
  font-size: 18px;
  font-weight: 700;
}
.hs-ai-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.hs-ai-links > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 10px;
  color: #0f172a;
}
.hs-ai-links > a:hover {
  background: #f8fafc;
  text-decoration: none;
}
.hs-ai-links strong {
  display: block;
  font-size: 15px;
  line-height: 1.15;
}
.hs-ai-links > a > span > span {
  color: var(--cw99-blue);
  font-size: 13.5px;
}
.hs-ai-logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.hs-ai-logo-chatgpt {
  background: var(--cw99-blue);
  border-color: var(--cw99-blue);
}
.hs-ai-logo img {
  width: 22px;
  height: 22px;
  display: block;
}
.hs-ai-request button {
  border: 1px solid #d5deea;
  border-radius: 8px;
  padding: 8px 14px;
  min-height: 40px;
  color: var(--cw99-blue);
  background: #f8fafc;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.hs-ai-status {
  margin-top: 6px;
}
.hs-ai-details {
  margin-top: 6px;
}
.hs-ai-details summary {
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
}
.hs-ai textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #d5deea;
  border-radius: 8px;
  font: inherit;
  font-size: 13.5px;
}

/* ---------- Internet & Strom Unified Card ---------- */
.hs-ie-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 10px;
}
.hs-ie-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.hs-ie-title h3 {
  font-size: 24px;
}
.hs-ie-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
}
.hs-ie-thead {
  display: grid;
  grid-template-columns: 112px 1.35fr 0.9fr 0.85fr 1.1fr 112px;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}
.hs-ie-row {
  border-bottom: 1px solid #eef2f6;
}
.hs-ie-summary {
  list-style: none;
  display: grid;
  grid-template-columns: 112px 1.35fr 0.9fr 0.85fr 1.1fr 112px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
}
.hs-ie-summary::-webkit-details-marker {
  display: none;
}
.hs-op-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 92px;
  height: 36px;
}
.hs-op-img {
  max-width: 84px;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.hs-op-box-telekom .hs-op-img {
  max-height: 28px;
}
.hs-op-box-vodafone .hs-op-img,
.hs-op-box-o2 .hs-op-img,
.hs-op-box-1und1 .hs-op-img {
  width: 34px;
  height: 34px;
}
.hs-ie-plan strong {
  display: block;
  font-size: 15px;
}
.hs-ie-plan small {
  color: #64748b;
  font-size: 13px;
}
.hs-ie-speed,
.hs-ie-term {
  font-size: 15px;
  color: #1e293b;
}
.hs-ie-price strong {
  font-size: 17px;
  color: #0f172a;
}
.hs-ie-toggle,
.hs-ie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--cw99-blue) !important;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.hs-ie-btn:hover {
  background: #eef4ff;
  border-color: var(--cw99-blue);
  text-decoration: none;
}
.hs-ie-body {
  margin: 0 14px 14px;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
.hs-ie-breakdown h4 {
  font-size: 15px;
  margin-bottom: 10px;
}
.hs-ie-breakdown dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 14px;
  border-bottom: 1px dashed #e2e8f0;
}
.hs-ie-perks ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  font-size: 14px;
  color: #1e293b;
}
.hs-ie-perks li {
  margin: 6px 0;
}
.hs-energy-row {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #e6ebf2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.hs-energy-left {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 440px;
}
.hs-energy-left strong {
  font-size: 17px;
}
.hs-energy-calc {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1;
}
.hs-energy-calc label {
  width: auto;
  min-width: 135px;
}
.hs-energy-out {
  display: flex;
  flex-direction: column;
  padding: 6px 12px;
  background: #f8fafc;
  border-radius: 8px;
}
.hs-energy-out span {
  font-size: 12px;
  color: #64748b;
}
.hs-energy-out output {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}
.hs-energy-out small {
  font-size: 12px;
  color: #64748b;
}

/* ---------- Hausratversicherung Card ---------- */
.hs-ins-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.hs-ins-header h3 {
  font-size: 24px;
}
.hs-ins-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.hs-ins-calc {
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
}
.hs-ins-input-wrap {
  position: relative;
}
.hs-ins-input-wrap span {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-weight: 600;
}
.hs-ins-summary {
  background: #eef4ff;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hs-ins-summary > span {
  font-size: 13px;
  color: #475569;
}
.hs-ins-summary output {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
}
.hs-ins-summary small {
  font-size: 12.5px;
  color: #475569;
}
.hs-ins-thead {
  display: grid;
  grid-template-columns: 196px 1.4fr 130px 128px;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}
.hs-ins-row {
  display: grid;
  grid-template-columns: 196px 1.4fr 130px 128px;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-bottom: 1px solid #eef2f6;
}
.hs-ins-prov {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hs-ins-logo-box {
  width: 80px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hs-ins-img {
  max-width: 78px;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.hs-ins-img-huk {
  max-height: 22px;
}
.hs-ins-img-allianz {
  max-height: 22px;
}
.hs-ins-img-ergo {
  max-height: 24px;
}
.hs-ins-img-generali {
  max-height: 32px;
}
.hs-ins-scope {
  font-size: 14.5px;
  color: #334155;
}
.hs-ins-price strong {
  font-size: 16px;
  color: #0f172a;
}

/* Collapsible Datenquellen */
.bw-sources-collapse {
  margin: 0 var(--gutter) 36px;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  padding: 14px 20px;
}
.bw-sources-collapse > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: #334155;
}
.bw-sources-collapse .bw-sources {
  padding: 16px 0 4px;
  grid-template-columns: 1fr;
}

@media (max-width: 1024px) {
  .hs-ins-layout,
  .bw-bhero,
  .bw-price-split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .hs-grid {
    grid-template-columns: 1fr;
  }
  .bw-building .home-tabs,
  .bw-building .hs-page-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .hs-ie-thead,
  .hs-ins-thead {
    display: none;
  }
  .hs-ie-summary,
  .hs-ins-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hs-ie-body {
    grid-template-columns: 1fr;
  }
  .bw-fact-cell {
    border-right: 0;
    border-bottom: 1px solid #eef2f6;
    padding: 10px 4px;
  }
}
