/* ============================================================
   Builderz Report (bzr-*): das eine Ergebnis-Modul der Checks.
   Konsumiert site.css-Tokens. Eine Spalte, nullbasierte Balken,
   Datenfarbe #1f7a4c, Referenzstriche formcodiert, kein Verdana,
   border-radius 0. Druck: helle Seite, break-inside avoid.
   ============================================================ */

.bzr-host {
  position: fixed;
  inset: 0;
  z-index: 1100;
  overflow-y: auto;
  padding: clamp(0px, 2.4vw, 40px);
  -webkit-overflow-scrolling: touch;
}

.bzr-host[hidden] { display: none !important; }

.bzr-host--inline {
  position: static;
  inset: auto;
  z-index: auto;
  overflow: visible;
  padding: 0;
}

.bzr-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 14, 9, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bzr-sheet {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto;
  background: var(--bone, #f4f0e8);
  color: var(--ink-soft, #171714);
  font-family: var(--sans, "Neue Montreal", "DM Sans", system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.65;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
}

.bzr-host--inline .bzr-sheet { box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18); }

/* ---------- Kopfleiste ---------- */

.bzr-bar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 4vw, 44px);
  background: var(--builderz-green, #0d2118);
  color: var(--bone, #f4f0e8);
}

.bzr-host--inline .bzr-bar { position: static; }

.bzr-bar__brand {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.7);
}

.bzr-bar__brand span { color: var(--bone, #f4f0e8); }
.bzr-bar__brand i { font-style: normal; }

.bzr-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(244, 240, 232, 0.3);
  background: transparent;
  color: var(--bone, #f4f0e8);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 240ms var(--ease-atelier, ease);
}

.bzr-close:hover { background: rgba(244, 240, 232, 0.1); }

/* ---------- Körper: eine Spalte, ruhiger Rhythmus ---------- */

.bzr-body {
  display: block;
  padding: clamp(26px, 5vw, 56px) clamp(20px, 4.5vw, 56px) clamp(30px, 5vw, 60px);
}

.bzr-cap {
  margin: 0 0 14px;
  color: var(--bronze, #9a7a4f);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bzr-note {
  margin: 0 0 clamp(24px, 3.4vw, 36px);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.14);
  max-width: 62ch;
  color: rgba(23, 23, 20, 0.6);
  font-size: 0.9rem;
  line-height: 1.55;
}

.bzr-note:empty { display: none; }
.bzr-note[data-state="error"] { color: #8f351e; }

/* ---------- Urteil: Stat-Kachel + ein Satz ---------- */

.bzr-verdict {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 36px);
  padding-bottom: clamp(26px, 3.6vw, 40px);
  border-bottom: 1px solid rgba(26, 26, 26, 0.14);
}

.bzr-verdict__title {
  margin: 0;
  font-family: var(--serif, "Tiempos Headline", Georgia, serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.018em;
  color: var(--ink-soft, #171714);
}

.bzr-verdict__lead {
  margin: 16px 0 0;
  max-width: 58ch;
  color: rgba(23, 23, 20, 0.74);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
}

.bzr-stat {
  justify-self: start;
  display: block;
  padding: 18px 24px 20px;
  border-top: 1px solid rgba(23, 23, 20, 0.18);
  border-bottom: 1px solid rgba(23, 23, 20, 0.18);
}

.bzr-stat__value {
  display: block;
  font-family: var(--serif, "Tiempos Headline", Georgia, serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink-soft, #171714);
}

.bzr-stat__label,
.bzr-stat__sub {
  display: block;
  margin-top: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(23, 23, 20, 0.58);
}

.bzr-stat__sub { margin-top: 4px; color: rgba(23, 23, 20, 0.42); }

/* ---------- Balken: nullbasiert, Referenzstrich + Textlabel ---------- */

.bzr-bars { padding: clamp(24px, 3.6vw, 40px) 0; border-bottom: 1px solid rgba(26, 26, 26, 0.14); }

.bzr-bars ul { margin: 0; padding: 0; list-style: none; }

.bzr-row { padding: 12px 0; }
.bzr-row + .bzr-row { border-top: 1px solid rgba(26, 26, 26, 0.08); }

.bzr-row__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}

.bzr-row__name { font-size: 0.94rem; color: var(--ink-soft, #171714); }

.bzr-row__value {
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  color: rgba(23, 23, 20, 0.66);
  white-space: nowrap;
}

.bzr-row__track {
  position: relative;
  height: 12px;
  background: rgba(23, 23, 20, 0.08);
}

.bzr-row__fill {
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  display: block;
  background: #1f7a4c;
}

.bzr-row__tick {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  margin-left: -1px;
  background: var(--ink-soft, #171714);
}

.bzr-row__bench {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: rgba(23, 23, 20, 0.58);
}

/* ---------- Die eine Baustelle zuerst ---------- */

.bzr-priority {
  margin: clamp(24px, 3.6vw, 40px) 0 0;
  padding: clamp(18px, 2.6vw, 26px) clamp(18px, 2.6vw, 26px) clamp(20px, 2.8vw, 28px);
  background: rgba(232, 223, 207, 0.55);
  border-left: 2px solid #1f7a4c;
}

.bzr-priority h3 {
  margin: 0;
  font-family: var(--serif, "Tiempos Headline", Georgia, serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.bzr-priority p {
  margin: 12px 0 0;
  max-width: 60ch;
  color: rgba(23, 23, 20, 0.76);
}

/* ---------- Befunde (max 3) ---------- */

.bzr-findings {
  margin-top: clamp(24px, 3.6vw, 40px);
  border-top: 1px solid rgba(26, 26, 26, 0.14);
}

.bzr-finding { padding: clamp(16px, 2.4vw, 22px) 0; border-bottom: 1px solid rgba(26, 26, 26, 0.08); }

.bzr-finding h3 {
  margin: 0;
  font-family: var(--serif, "Tiempos Headline", Georgia, serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.15;
}

.bzr-finding p {
  margin: 8px 0 0;
  max-width: 62ch;
  color: rgba(23, 23, 20, 0.72);
  font-size: 0.97rem;
}

/* ---------- Aus Ihren Antworten ---------- */

.bzr-diagnosis {
  margin-top: clamp(24px, 3.6vw, 40px);
  padding-top: clamp(18px, 2.6vw, 26px);
  border-top: 1px solid rgba(26, 26, 26, 0.14);
}

.bzr-diagnosis ul { margin: 0; padding: 0; list-style: none; }

.bzr-diagnosis li {
  position: relative;
  padding: 0 0 8px 18px;
  max-width: 62ch;
  color: rgba(23, 23, 20, 0.74);
  font-size: 0.95rem;
}

.bzr-diagnosis li:last-child { padding-bottom: 0; }

.bzr-diagnosis li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--bronze, #9a7a4f);
}

/* ---------- Belegblock: echtes Mandat ---------- */

.bzr-quote {
  margin-top: clamp(26px, 3.8vw, 44px);
  padding: clamp(20px, 3vw, 30px) 0;
  border-top: 1px solid rgba(23, 23, 20, 0.18);
  border-bottom: 1px solid rgba(23, 23, 20, 0.18);
}

.bzr-quote__stat { margin: 0 0 14px; }

.bzr-quote__stat strong {
  display: block;
  font-family: var(--serif, "Tiempos Headline", Georgia, serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.bzr-quote__stat span {
  display: block;
  margin-top: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(23, 23, 20, 0.58);
}

.bzr-quote blockquote {
  margin: 0;
  max-width: 56ch;
  font-family: var(--serif, "Tiempos Headline", Georgia, serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.28;
  color: var(--ink-soft, #171714);
}

.bzr-quote__cite {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: rgba(23, 23, 20, 0.6);
}

.bzr-quote__cite a {
  color: var(--ink-soft, #171714);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- CTA: ein Knopf, ein leiser Zweitknopf ---------- */

.bzr-cta {
  margin-top: clamp(26px, 3.8vw, 44px);
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--builderz-green, #0d2118);
  color: var(--bone, #f4f0e8);
}

.bzr-cap--cta { color: var(--bronze, #9a7a4f); }

.bzr-cta__lead {
  margin: 0 0 20px;
  max-width: 50ch;
  font-family: var(--serif, "Tiempos Headline", Georgia, serif);
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  line-height: 1.2;
  color: var(--bone, #f4f0e8);
}

.bzr-cta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.bzr-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 15px 28px;
  border: 1px solid var(--bone, #f4f0e8);
  background: var(--bone, #f4f0e8);
  color: var(--forest-atelier, #0a1811);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 420ms var(--ease-atelier, ease);
}

.bzr-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateX(-102%);
  background: var(--forest-atelier, #0a1811);
  transition: transform 440ms var(--ease-atelier, ease);
}

.bzr-button:hover::before { transform: translateX(0); }
.bzr-button:hover { color: var(--bone, #f4f0e8); }

.bzr-secondary {
  min-height: 44px;
  padding: 13px 18px;
  border: 1px solid rgba(244, 240, 232, 0.34);
  background: transparent;
  color: rgba(244, 240, 232, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 240ms var(--ease-atelier, ease), color 240ms var(--ease-atelier, ease);
}

.bzr-secondary:hover { border-color: rgba(244, 240, 232, 0.7); color: var(--bone, #f4f0e8); }

.bzr-cta__url {
  display: none;
  text-transform: none;
}

/* ---------- Breiter Viewport: Urteil zweispaltig, sonst eine Spalte ---------- */

@media (min-width: 720px) {
  .bzr-verdict { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .bzr-stat { justify-self: end; min-width: 200px; }
}

/* ============================================================
   DRUCK: helle Seite, keine dunklen Flächen, nichts zerrissen.
   ============================================================ */

@media print {
  body:has(.bzr-host:not([hidden])) > *:not(.bzr-host) { display: none !important; }
  html:has(.bzr-host:not([hidden])),
  body:has(.bzr-host:not([hidden])) { background: #fff !important; }

  .bzr-host:not([hidden]) {
    position: static !important;
    inset: auto !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .bzr-backdrop, .bzr-close, .bzr-secondary, .bzr-note { display: none !important; }

  .bzr-sheet { width: 100%; box-shadow: none; background: #fff; }

  .bzr-bar {
    position: static;
    background: #fff;
    color: var(--ink-soft, #171714);
    border-bottom: 1px solid rgba(26, 26, 26, 0.3);
    padding-left: 0;
    padding-right: 0;
  }

  .bzr-bar__brand, .bzr-bar__brand span { color: var(--ink-soft, #171714); }

  .bzr-body { padding: 18px 0 0; }

  .bzr-verdict, .bzr-bars, .bzr-priority, .bzr-findings,
  .bzr-diagnosis, .bzr-quote, .bzr-cta, .bzr-finding {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .bzr-priority { background: #fff; border: 1px solid rgba(26, 26, 26, 0.3); border-left: 2px solid #1f7a4c; }

  .bzr-cta {
    background: #fff;
    color: var(--ink-soft, #171714);
    border-top: 1px solid rgba(26, 26, 26, 0.3);
    padding: 18px 0 0;
  }

  .bzr-cta__lead { color: var(--ink-soft, #171714); }

  .bzr-button {
    background: #fff;
    color: var(--ink-soft, #171714);
    border: 1px solid var(--ink-soft, #171714);
  }

  .bzr-cta__url {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: rgba(23, 23, 20, 0.7);
  }

  .bzr-row__fill, .bzr-row__tick, .bzr-priority {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  @page { margin: 14mm; }
}
