/* BAVORA OS · Brand Center (06.11.2026)
   Nutzt die einheitlichen CRM-Tokens (--bv-crm-*, --bv-gap, --sp-*); Mandantenfarben nur in der Vorschau. */
.bc-root { display: grid; gap: var(--bv-gap, 24px); padding-bottom: 96px; }
.bc-root .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bc-root h2 { font-size: 1.35rem; margin: 2px 0 0; letter-spacing: -.01em; }
.bc-root .eyebrow { color: var(--bv-crm-primary, #17523b); }
.bc-sub { font-size: 1rem; font-weight: 600; margin: 0 0 var(--sp-2); }
.bc-actions { display: flex; flex-wrap: wrap; gap: var(--bv-gap-sm, 12px); align-items: center; }
.bc-link { background: none; border: 0; padding: 2px 4px; color: var(--bv-crm-primary, #17523b); font-weight: 600; cursor: pointer; border-radius: 4px; text-decoration: underline; text-underline-offset: 3px; }
.bc-link:focus-visible, .bc-drop:focus-visible, .bc-segment__item:focus-visible, .bc-chip:focus-visible, .bc-jump a:focus-visible { outline: 3px solid var(--bv-crm-focus, #2e865c); outline-offset: 2px; }

/* Hero: Vorschau + Markenprofil */
.bc-hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); gap: var(--bv-gap, 24px); align-items: stretch; }
.bc-preview { display: grid; gap: var(--sp-4); align-content: start; }
.bc-preview__head { display: flex; justify-content: space-between; gap: var(--bv-gap-sm, 12px); align-items: flex-end; flex-wrap: wrap; }
.bc-preview__stage { min-height: 300px; display: grid; place-items: center; padding: var(--sp-5, 1.25rem); border-radius: var(--bv-crm-radius-card, 12px); background: repeating-linear-gradient(45deg, var(--bv-crm-primary-tint, #eef4ef) 0 10px, #f6f9f6 10px 20px); border: 1px solid var(--bv-crm-line-soft, #e6ede8); }
.bc-preview__note { margin: 0; }
.bc-segment { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--bv-crm-line, #d5e1d8); border-radius: 10px; background: #fff; }
.bc-segment__item { border: 0; background: transparent; padding: 7px 14px; border-radius: 7px; font: inherit; font-size: .875rem; font-weight: 600; color: var(--ink-soft, #3d3d3d); cursor: pointer; min-height: 36px; }
.bc-segment__item.active { background: var(--bv-crm-primary, #17523b); color: #fff; }

/* Vorschau: Kundenseite */
.bc-device { width: min(100%, 520px); border-radius: 14px; overflow: hidden; background: var(--bc-bg); color: var(--bc-text); box-shadow: 0 18px 40px -22px rgba(9, 43, 37, .45), 0 0 0 1px rgba(9, 43, 37, .08); font-family: var(--bc-body); }
.bc-device__chrome { display: flex; gap: 6px; align-items: center; padding: 9px 12px; background: #f1f3f2; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.bc-device__chrome span { width: 9px; height: 9px; border-radius: 50%; background: #d6dbd8; }
.bc-device__chrome em { margin-left: auto; font-style: normal; font-size: .72rem; color: #6b746f; font-family: var(--font-sans); }
.bc-device__page { padding: 18px 22px 22px; display: grid; gap: 18px; }
.bc-device__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bc-device__link { font-size: .8rem; opacity: .75; }
.bc-device__hero h3 { font-family: var(--bc-heading); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.15; margin: 0 0 8px; color: inherit; overflow-wrap: anywhere; }
.bc-device__hero p { margin: 0 0 16px; opacity: .82; font-size: .92rem; overflow-wrap: anywhere; }
.bc-device__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bc-device__btn { background: var(--bc-accent); color: var(--bc-on-accent); padding: 9px 16px; border-radius: 8px; font-weight: 600; font-size: .88rem; }
.bc-device__ghost { color: var(--bc-accent); padding: 9px 4px; font-weight: 600; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
.bc-device__card { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--bc-text) 14%, transparent); font-size: .85rem; }

.bc-mark { display: block; }
.bc-mark--sm { max-height: 34px; max-width: 150px; object-fit: contain; }
.bc-mark--xs { max-height: 24px; max-width: 110px; object-fit: contain; margin-top: 10px; }
.bc-mark--text { font-weight: 700; font-family: var(--bc-heading, inherit); font-size: 1rem; letter-spacing: -.01em; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Vorschau: Dokument */
.bc-paper { width: min(100%, 380px); aspect-ratio: 1 / 1.3; background: #fff; color: #1a1a1a; border-radius: 4px; padding: 26px 26px 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 18px 40px -22px rgba(9, 43, 37, .45), 0 0 0 1px rgba(0, 0, 0, .06); }
.bc-paper__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.bc-paper__title { font-family: var(--font-serif); font-size: 1.35rem; letter-spacing: .06em; color: var(--bc-doc-accent); }
.bc-paper__rule { height: 2px; background: var(--bc-doc-accent); width: 46px; }
.bc-paper__lines { display: grid; gap: 9px; margin-top: 4px; }
.bc-paper__lines span { height: 7px; border-radius: 4px; background: #eceeed; }
.bc-paper__lines .is-short { width: 55%; }
.bc-paper__total { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid #e6e6e6; font-size: .85rem; }
.bc-paper__total strong { color: var(--bc-doc-accent); font-size: 1.05rem; }
.bc-paper__foot { font-size: .68rem; color: #6d6d6d; border-top: 1px solid #efefef; padding-top: 8px; overflow-wrap: anywhere; }
.bc-paper__meta { margin-top: -6px; }

/* Vorschau: E-Mail */
.bc-mail { width: min(100%, 460px); background: #fff; color: #1f2a24; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(9, 43, 37, .45), 0 0 0 1px rgba(0, 0, 0, .06); }
.bc-mail__meta { display: grid; gap: 2px; padding: 14px 18px; border-bottom: 1px solid #edf0ee; }
.bc-mail__meta strong::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--bc-mail-accent); margin-right: 8px; vertical-align: 1px; }
.bc-mail__body { padding: 16px 18px 20px; font-size: .9rem; }
.bc-mail__body p { margin: 0 0 10px; }
.bc-mail__btn { display: inline-block; margin: 4px 0 14px; background: var(--bc-mail-accent); color: var(--bc-on-mail); padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: .85rem; }
.bc-mail__sig { color: #4b5550; border-top: 1px solid #edf0ee; padding-top: 10px; overflow-wrap: anywhere; }

/* Markenprofil */
.bc-score { display: grid; gap: var(--sp-3); align-content: start; }
.bc-score__value { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bc-score__value strong { font-size: 2rem; letter-spacing: -.02em; line-height: 1; }
.bc-score__state { font-size: .82rem; font-weight: 600; color: var(--bv-crm-primary, #17523b); background: var(--bv-crm-primary-tint, #eef4ef); padding: 3px 9px; border-radius: 999px; }
.bc-meter { height: 8px; border-radius: 999px; background: var(--bv-crm-line-soft, #e6ede8); overflow: hidden; }
.bc-meter span { display: block; height: 100%; background: var(--bv-crm-primary, #17523b); border-radius: inherit; transition: width .35s ease; }
.bc-checklist { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.bc-checklist li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--bv-crm-line-soft, #e6ede8); font-size: .9rem; }
.bc-checklist li:last-child { border-bottom: 0; }
.bc-checklist__icon { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--bv-crm-secondary-line, #8eaa97); display: grid; place-items: center; font-size: .72rem; font-weight: 700; }
.bc-checklist li.is-done .bc-checklist__icon { background: var(--bv-crm-primary, #17523b); border-color: var(--bv-crm-primary, #17523b); color: #fff; }
.bc-checklist li.is-done .bc-checklist__label { color: var(--ink-muted, #73716c); }

/* Sprungnavigation */
/* 07.11.2026: nicht mehr mitlaufend – die Leiste hat beim Scrollen Eingabefelder verdeckt. */
.bc-jump { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; background: #fff; border: 1px solid var(--bv-crm-line, #d5e1d8); border-radius: 12px; }
.bc-jump a { padding: 7px 12px; border-radius: 8px; font-size: .86rem; font-weight: 600; color: var(--ink-soft, #3d3d3d); text-decoration: none; }
.bc-jump a:hover { background: var(--bv-crm-primary-tint, #eef4ef); color: var(--bv-crm-primary, #17523b); }

/* Abschnitte */
.bc-section { display: grid; gap: var(--sp-5, 1.25rem); scroll-margin-top: 16px; }
.bc-section__head p { margin: 6px 0 0; max-width: 68ch; }
.bc-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--bv-gap, 24px); align-items: start; }
.bc-stack { display: grid; gap: var(--sp-4); }
.bc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--bv-gap, 24px); }
.bc-fields .field { margin: 0; }
.bc-fields .is-wide { grid-column: 1 / -1; }
.bc-field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bc-count { font-variant-numeric: tabular-nums; }

/* Logo */
.bc-logo { display: grid; gap: var(--sp-4); }
.bc-drop { border: 1.5px dashed var(--bv-crm-secondary-line, #8eaa97); border-radius: var(--bv-crm-radius-card, 12px); padding: var(--sp-5, 1.25rem); cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.bc-drop:hover, .bc-drop.is-over { background: var(--bv-crm-primary-tint, #eef4ef); border-color: var(--bv-crm-primary, #17523b); }
.bc-drop.has-logo { border-style: solid; border-color: var(--bv-crm-line, #d5e1d8); padding: var(--sp-3); }
.bc-drop__empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: var(--sp-4) 0; }
.bc-drop__icon { color: var(--bv-crm-primary, #17523b); }
.bc-logo-stage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--bv-gap-sm, 12px); }
.bc-logo-tile { margin: 0; display: grid; gap: 6px; }
.bc-logo-tile img { width: 100%; height: 110px; object-fit: contain; padding: 16px; border-radius: 10px; background: #fff; border: 1px solid var(--bv-crm-line-soft, #e6ede8); }
.bc-logo-tile.is-tinted img { background: var(--bc-tint, #fff); }
.bc-logo-tile.is-dark img { background: var(--bv-crm-forest, #092b25); border-color: var(--bv-crm-forest, #092b25); }
.bc-logo-tile figcaption { font-size: .78rem; color: var(--ink-muted, #73716c); text-align: center; }
.bc-usage { margin: 0; padding-left: 18px; display: grid; gap: 2px; }

/* Farben */
.bc-color { margin: 0; }
.bc-color__row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.bc-color__picker { width: 44px; height: 40px; padding: 2px; border: 1px solid var(--bv-crm-line, #d5e1d8); border-radius: 8px; background: #fff; cursor: pointer; }
.bc-color__hex { font-family: var(--font-mono); text-transform: lowercase; }
.bc-color__hex.is-invalid { border-color: var(--danger, #8f2f2f); }
.bc-palette { display: grid; gap: 6px; }
.bc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 6px; border: 1px solid var(--bv-crm-line, #d5e1d8); border-radius: 999px; background: #fff; font: inherit; font-family: var(--font-mono); font-size: .78rem; cursor: pointer; min-height: 32px; }
.bc-chip:hover { border-color: var(--bv-crm-primary, #17523b); }
.bc-chip__dot { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.bc-contrast-box { padding: var(--sp-4); border-radius: var(--bv-crm-radius-card, 12px); background: #fbfcfb; border: 1px solid var(--bv-crm-line-soft, #e6ede8); }
.bc-contrast { list-style: none; padding: 0; margin: 0 0 var(--sp-3); display: grid; gap: 8px; }
.bc-contrast li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: .88rem; }
.bc-contrast__sample { width: 44px; height: 32px; display: grid; place-items: center; border-radius: 8px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.bc-contrast__ratio { font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: .8rem; color: var(--ink-soft, #3d3d3d); }
.bc-badge { font-size: .74rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.bc-badge.is-good { background: var(--success-bg, #e8f0ea); color: var(--success, #3d6b4f); }
.bc-badge.is-warn { background: var(--warn-bg, #faf0dd); color: var(--warn, #a36a15); }
.bc-badge.is-bad { background: #f7e4e4; color: var(--danger, #8f2f2f); }
.bc-badge.is-muted { background: #f0f2f1; color: #5d6661; }
.bc-sync-box { border-top: 1px solid var(--bv-crm-line-soft, #e6ede8); padding-top: var(--sp-4); }
.bc-sync__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--bv-gap-sm, 12px); flex-wrap: wrap; margin-bottom: var(--sp-3); }
.bc-sync__head p { margin: 0; }
.bc-sync { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--bv-gap-sm, 12px); }
.bc-sync li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--bv-crm-line, #d5e1d8); border-radius: 10px; }
.bc-sync__label { display: grid; font-size: .88rem; font-weight: 600; min-width: 0; }
.bc-sync__label .small { font-weight: 400; font-family: var(--font-mono); font-size: .74rem; }
.bc-swatch { width: 28px; height: 28px; border-radius: 8px; background: repeating-linear-gradient(45deg, #eee 0 4px, #fff 4px 8px); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.bc-swatch--sm { width: 16px; height: 16px; border-radius: 5px; display: inline-block; vertical-align: -3px; margin-right: 6px; }

/* Typografie */
.bc-specimen { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--bv-gap, 24px); align-items: center; padding: var(--sp-5, 1.25rem); border-radius: var(--bv-crm-radius-card, 12px); background: #fbfcfb; border: 1px solid var(--bv-crm-line-soft, #e6ede8); }
.bc-specimen__big { font-family: var(--bc-heading); font-size: 4.5rem; line-height: 1; color: var(--bv-crm-primary, #17523b); }
.bc-specimen__h { font-family: var(--bc-heading); font-size: 1.4rem; line-height: 1.2; margin-bottom: 6px; overflow-wrap: anywhere; }
.bc-specimen__p { font-family: var(--bc-body); margin: 0 0 8px; }

/* Kontaktpunkte */
.bc-tps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--bv-gap-sm, 12px); }
.bc-tp { display: grid; grid-template-rows: auto 1fr auto; gap: var(--sp-3); padding: var(--sp-4); border: 1px solid var(--bv-crm-line, #d5e1d8); border-radius: var(--bv-crm-radius-card, 12px); background: #fff; }
.bc-tp__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--bv-crm-primary-tint, #eef4ef); color: var(--bv-crm-primary, #17523b); }
.bc-tp h3 { font-size: 1rem; margin: 0 0 4px; }
.bc-tp p { margin: 0 0 8px; }
.bc-tp__meta { font-size: .8rem; font-family: var(--font-mono); color: var(--ink-soft, #3d3d3d); overflow-wrap: anywhere; }
.bc-tp__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Speichern */
.bc-savebar { position: sticky; bottom: 12px; z-index: 6; display: flex; justify-content: space-between; align-items: center; gap: var(--bv-gap-sm, 12px); flex-wrap: wrap; padding: 12px 16px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border: 1px solid var(--bv-crm-line, #d5e1d8); border-radius: 12px; box-shadow: 0 10px 30px -18px rgba(9, 43, 37, .5); }
.bc-savebar__status { font-size: .88rem; color: var(--ink-muted, #73716c); }
.bc-savebar.is-dirty { border-color: var(--bv-crm-primary, #17523b); }
.bc-savebar.is-dirty .bc-savebar__status { color: var(--ink, #1a1a1a); font-weight: 600; }
.bc-savebar.is-dirty .bc-savebar__status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--warn, #a36a15); vertical-align: 1px; }

@media (max-width: 1100px) {
  .bc-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .bc-cols, .bc-fields { grid-template-columns: minmax(0, 1fr); }
  .bc-logo-stage { grid-template-columns: minmax(0, 1fr); }
  .bc-logo-tile img { height: 90px; }
  .bc-specimen { grid-template-columns: minmax(0, 1fr); }
  .bc-specimen__big { font-size: 3rem; }
  .bc-contrast li { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .bc-contrast__ratio { display: none; }
  .bc-preview__stage { padding: var(--sp-3); min-height: 0; }
  .bc-savebar { bottom: 8px; }
  .bc-savebar .bc-actions { width: 100%; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .bc-meter span, .bc-drop { transition: none; }
}
/* Ohne ungespeicherte Änderungen liegt die Leiste am Seitenende und verdeckt nichts. */
.bc-savebar:not(.is-dirty) { position: static; box-shadow: none; background: transparent; }
/* 07.11.2026: E-Mail-Design und Gutschein-Hero im Brand Center */
.bc-check { margin: 0; }
.bc-check__label { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: .92rem; }
.bc-check__label input { width: 18px; height: 18px; accent-color: var(--bv-crm-primary, #17523b); }
.bc-tp__hero { display: block; width: 100%; max-height: 120px; object-fit: cover; border-radius: 8px; margin-top: 10px; border: 1px solid var(--bv-crm-line-soft, #e6ede8); }
.bc-mail.is-compact .bc-mail__body { padding: 10px 14px 14px; font-size: .84rem; }
.bc-mail.is-compact .bc-mail__meta { padding: 10px 14px; }
.bc-mail.is-editorial .bc-mail__meta strong { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 400; }
.bc-mail.is-editorial .bc-mail__body { padding: 22px 26px 26px; line-height: 1.6; }
/* 12.11.2026: Persönliche E-Mail-Signatur – Formular und Vorschau */
.bc-sig-fields { border: 1px solid var(--bv-crm-line-soft, #e6ede8); border-radius: var(--bv-crm-radius-field, 8px); padding: 10px 14px 12px; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px 16px; }
.bc-sig-fields legend { padding: 0 6px; font-weight: 600; font-size: .85rem; }
.bc-sig-preview { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 8px; }
.bc-sig-preview.is-off .bc-sig-mail { opacity: .55; }
.bc-sig-mail { border: 1px solid var(--bv-crm-line-soft, #e6ede8); border-radius: var(--bv-crm-radius-card, 12px); background: #fff; overflow: hidden; }
.bc-sig-mail__text { padding: 14px 14px 0; font: 15px/1.6 Arial, Helvetica, sans-serif; color: #1f2a26; }
