/* ═══════════════════════════════════════════════════════════════
   DealPilot V187 — Styling-Additions
   - Bodenrichtwert: BORIS-Link + KI-Button
   - Gebäudeanteil-Banner mit Grün/Gelb/Rot-Status
   Nutzt CSS-Variablen aus dem bestehenden Theme.
═══════════════════════════════════════════════════════════════ */

/* ── Bodenrichtwert-Helpers ── */
.brw-helpers {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.brw-helpers .btn-brw {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--card-bg, #fff);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 8px;
  color: var(--ch, #333);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.brw-helpers .btn-brw:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--gold, #c9a84c);
  transform: translateY(-1px);
}

.brw-helpers .btn-brw:active {
  transform: translateY(0);
}

.brw-helpers .btn-brw:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.brw-helpers .btn-brw-icon {
  font-size: 13px;
}

.brw-ai-status {
  font-size: 11px;
  color: var(--ch, #555);
  opacity: 0.75;
  margin-left: 4px;
  align-self: center;
}

.brw-ai-status.ok {
  color: #15803d;
  opacity: 1;
}

.brw-ai-status.err {
  color: #b91c1c;
  opacity: 1;
}

/* ── Gebäudeanteil-Banner ── */
.geb-ant-banner {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid;
  font-size: 13px;
  background: var(--card-bg, #fff);
  display: none;
  animation: gebSlideIn 0.25s ease-out;
}

@keyframes gebSlideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Status-Varianten — passend zu info-box-Pattern */
.geb-ant-banner.status-green {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(34, 197, 94, 0.02));
}

.geb-ant-banner.status-yellow {
  border-color: rgba(234, 179, 8, 0.4);
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.06), rgba(234, 179, 8, 0.02));
}

.geb-ant-banner.status-red {
  border-color: rgba(220, 38, 38, 0.4);
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.06), rgba(220, 38, 38, 0.02));
}

.geb-ant-banner.status-gold {
  border-color: rgba(201, 168, 76, 0.4);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.06), rgba(201, 168, 76, 0.02));
}

.geb-ant-banner-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 6px;
}

.geb-ant-banner-icon {
  font-size: 16px;
}

.geb-ant-banner-title {
  flex: 1;
}

.geb-ant-banner-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  font-size: 12px;
  padding: 8px 0;
}

.geb-ant-banner-grid .gab-label {
  color: var(--ch, #555);
  opacity: 0.85;
}

.geb-ant-banner-grid .gab-value {
  text-align: right;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.geb-ant-banner-grid .gab-value.highlight {
  font-weight: 700;
}

.geb-ant-banner.status-green .gab-value.status-text  { color: #15803d; font-weight: 700; }
.geb-ant-banner.status-yellow .gab-value.status-text { color: #a16207; font-weight: 700; }
.geb-ant-banner.status-red .gab-value.status-text    { color: #b91c1c; font-weight: 700; }
.geb-ant-banner.status-gold .gab-value.status-text   { color: var(--gold, #c9a84c); font-weight: 700; }

.geb-ant-banner-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  gap: 12px;
  flex-wrap: wrap;
}

.geb-ant-banner-hint {
  font-size: 11px;
  color: var(--ch, #555);
  opacity: 0.7;
  flex: 1;
  min-width: 200px;
}

.geb-ant-banner .btn-jump {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--gold, #c9a84c);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.geb-ant-banner .btn-jump:hover {
  background: #b8923f;
  transform: translateY(-1px);
}

.geb-ant-banner .btn-jump:active {
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════════
   V187-h4: Bodenrichtwert KI-Result-Box
═══════════════════════════════════════════════════════════════ */
.brw-ki-result {
  margin-top: 10px;
}
.brw-ki-card {
  background: rgba(201, 168, 76, 0.04);
  border: 0.5px solid rgba(201, 168, 76, 0.25);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink, #2a2a28);
}
.brw-ki-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.brw-ki-value {
  font-size: 22px;
  font-weight: 700;
  color: #2a2a28;
  letter-spacing: -0.5px;
}
.brw-ki-value .brw-ki-unit {
  font-size: 14px;
  font-weight: 500;
  color: #6b6a66;
  margin-left: 2px;
}
.brw-ki-conf {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.brw-ki-conf-ico {
  font-size: 13px;
  line-height: 1;
}
.brw-ki-reasoning,
.brw-ki-source {
  margin-bottom: 8px;
  font-size: 12.5px;
  color: #3a3a36;
}
.brw-ki-label {
  font-weight: 600;
  color: #5f5e5a;
  margin-right: 4px;
}
.brw-ki-srclink {
  color: #2a6e48;
  text-decoration: none;
  border-bottom: 0.5px dotted rgba(63,165,108,0.4);
  transition: all 0.15s ease;
}
.brw-ki-srclink:hover {
  color: #1a5e38;
  border-bottom-color: #2a6e48;
}
.brw-ki-hint {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.03);
  border-left: 2px solid rgba(201, 168, 76, 0.4);
  border-radius: 4px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #5f5e5a;
  font-style: italic;
}
.brw-ki-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.brw-ki-verify-btn {
  background: transparent;
  border: 0.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  color: #3a3a36;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.brw-ki-verify-btn:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.4);
  color: #8b7330;
}


/* ═══════════════════════════════════════════════════════════
   V191 — Deal-Aktion Stage-Layout + Junker-Banner
   ═══════════════════════════════════════════════════════════ */

/* Junker-Banner oben in Deal-Aktion */
.junker-action-banner {
  background: linear-gradient(135deg, #2A2727 0%, #1f1c1c 100%);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 18px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.junker-action-banner-icon {
  width: 48px;
  height: 48px;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.40);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.junker-action-banner-text {
  flex: 1;
  min-width: 0;
}
.junker-action-banner-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  color: #C9A84C;
  line-height: 1.15;
  margin-bottom: 2px;
}
.junker-action-banner-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}
.junker-action-banner-sub strong {
  color: #E8C964;
}
.junker-action-banner-contact {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.junker-action-banner-phone {
  color: #C9A84C;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.junker-action-banner-phone:hover {
  color: #E8C964;
}
.junker-action-banner-email {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 11px;
  white-space: nowrap;
}
.junker-action-banner-email:hover {
  color: rgba(255, 255, 255, 0.95);
}
@media (max-width: 768px) {
  .junker-action-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .junker-action-banner-contact {
    align-items: flex-start;
    flex-direction: row;
    gap: 12px;
  }
}

/* Stage-Sektionen */
.da-stage {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(42, 39, 39, 0.08);
}
.da-stage:first-of-type {
  margin-top: 16px;
  padding-top: 0;
  border-top: none;
}
.da-stage-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.da-stage-ico {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: #9a7f33;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  flex-shrink: 0;
}
.da-stage-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  color: #2A2727;
  line-height: 1;
}
.da-stage-sub {
  font-size: 12px;
  color: rgba(42, 39, 39, 0.6);
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid rgba(42, 39, 39, 0.15);
}
@media (max-width: 600px) {
  .da-stage-sub {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    width: 100%;
    margin-top: 2px;
  }
  .da-stage-head {
    flex-wrap: wrap;
  }
}

/* Coming Soon Sektion — gedämpfter */
.da-coming-soon {
  margin-top: 32px;
  padding: 18px;
  background: rgba(42, 39, 39, 0.02);
  border-radius: 10px;
  border: 1px dashed rgba(42, 39, 39, 0.12);
}
