/* ==========================================================================
   Welle 7.6 — Stammdaten-Modul (Personalien, Adressen, Objektdaten)
   Käufer-Vorschlag → Owner-Übernahme. Owner darf direkt editieren.
   ========================================================================== */

/* Page-Head erbt von .page__head — eigene Klassen nur für Spezifika */

.stammdaten-intro {
  color: var(--text-soft);
  font-size: .95rem;
  margin: 0 0 24px;
  max-width: 720px;
  line-height: 1.55;
}

/* ---------- Owner-Akten-Switcher ---------- */

.stammdaten-akte-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 14px 16px;
  background: rgba(202, 162, 106, .06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: center;
}

.stammdaten-akte-switch > label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-right: 6px;
}

.stammdaten-akte-switch select {
  font-family: inherit;
  font-size: .95rem;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.stammdaten-akte-switch select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Pending-Banner (offene Vorschläge) ---------- */

.stammdaten-pending-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  background: rgba(184, 131, 42, .08);
  border-left: 3px solid var(--warn);
  border-radius: 8px;
  margin: 0 0 24px;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.5;
}

.stammdaten-pending-banner::before {
  content: '⏳';
  font-size: 1.2rem;
  line-height: 1;
}

/* Beurkundet-Sperre */
.stammdaten-locked-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  background: rgba(20, 35, 58, .04);
  border-left: 3px solid var(--navy);
  border-radius: 8px;
  margin: 0 0 24px;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.5;
}

.stammdaten-locked-banner::before {
  content: '🔒';
  font-size: 1.1rem;
  line-height: 1;
}

/* ---------- Karten ---------- */

.stammdaten-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 980px) {
  .stammdaten-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stammdaten-card.is-wide {
    grid-column: 1 / -1;
  }
}

.stammdaten-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.stammdaten-card__head {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.stammdaten-card__head h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  color: var(--navy);
  letter-spacing: .005em;
}

.stammdaten-card__head .eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.stammdaten-card__body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Gruppen-Überschriften innerhalb einer Karte */
.stammdaten-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stammdaten-group--wide {
  grid-column: 1 / -1;
}

.stammdaten-sub {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 6px 0 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Felder ---------- */

.stammdaten-row-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .stammdaten-row-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .stammdaten-row-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stammdaten-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  position: relative;
  min-height: 58px;
  transition: border-color .15s, box-shadow .15s;
}

.stammdaten-field:hover {
  border-color: var(--line);
}

/* Klick-zu-Edit auf gesamter Zelle */
.stammdaten-field.is-editable {
  cursor: pointer;
}

.stammdaten-field.is-editable:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(202, 162, 106, .12);
}

/* Edit-Indikator (kleiner gold-farbener Stift in der oberen rechten Ecke) */
.stammdaten-field__edit {
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI Symbol', sans-serif;
  font-size: .8rem;
  color: var(--gold-dim);
  opacity: 0;
  transition: opacity .15s;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.stammdaten-field.is-editable:hover .stammdaten-field__edit {
  opacity: 1;
}

.stammdaten-field__label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.stammdaten-field__value {
  font-size: .98rem;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
}

.stammdaten-field__value:empty::before,
.stammdaten-field__value.is-empty::before {
  content: '—';
  color: var(--ivory-dim);
}

/* Pending-Punkt: gelber Indikator wenn Vorschlag offen */
.stammdaten-pending-dot {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(184, 131, 42, .18);
}

.stammdaten-field:has(.stammdaten-pending-dot) {
  border-color: var(--warn);
  background: rgba(184, 131, 42, .04);
}

.stammdaten-field:has(.stammdaten-pending-dot) .stammdaten-field__edit::after {
  display: none;
}

/* ---------- Empty-State ---------- */

.stammdaten-empty {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-soft);
  font-size: .95rem;
  background: rgba(202, 162, 106, .04);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------- Adress-Liste ---------- */

.stammdaten-addr-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stammdaten-addr-item {
  position: relative;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.stammdaten-addr-item.is-active {
  border-color: var(--gold);
  background: rgba(202, 162, 106, .04);
}

.stammdaten-addr-star {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory-dim);
  transition: color .15s, border-color .15s;
}

.stammdaten-addr-star:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.stammdaten-addr-item.is-active .stammdaten-addr-star {
  color: var(--gold);
  border-color: var(--gold);
}

.stammdaten-addr-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.stammdaten-addr-label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--navy);
  text-transform: uppercase;
}

.stammdaten-addr-lines {
  font-size: .94rem;
  color: var(--text);
  line-height: 1.4;
  white-space: pre-line;
}

.stammdaten-addr-note {
  font-size: .82rem;
  color: var(--text-soft);
  font-style: italic;
}

.stammdaten-addr-actions {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
}

.stammdaten-addr-pending {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(184, 131, 42, .18);
}

.stammdaten-addr-empty {
  text-align: center;
  padding: 18px;
  color: var(--text-soft);
  font-size: .9rem;
  background: rgba(202, 162, 106, .04);
  border: 1px dashed var(--line);
  border-radius: 10px;
}

.stammdaten-addr-add {
  align-self: flex-start;
  margin-top: 4px;
}

/* ---------- Dialog ---------- */

dialog.stammdaten-dlg {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(20, 35, 58, .25);
  max-width: 560px;
  width: 92vw;
  color: var(--text);
}

dialog.stammdaten-dlg::backdrop {
  background: rgba(20, 35, 58, .55);
  backdrop-filter: blur(2px);
}

dialog.stammdaten-dlg .stammdaten-dlg__head {
  padding: 22px 26px 14px;
  border-bottom: 1px solid var(--line-soft);
}

dialog.stammdaten-dlg h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--navy);
}

dialog.stammdaten-dlg .stammdaten-dlg__sub {
  font-size: .85rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.5;
}

.stammdaten-dlg__form {
  padding: 18px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stammdaten-dlg__current {
  padding: 10px 14px;
  background: rgba(20, 35, 58, .04);
  border-left: 3px solid var(--navy-3);
  border-radius: 8px;
  font-size: .9rem;
}

.stammdaten-dlg__current .stammdaten-dlg__current-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-soft);
  display: block;
  margin-bottom: 3px;
}

.stammdaten-dlg__current .stammdaten-dlg__current-value {
  color: var(--text);
}

.stammdaten-dlg__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stammdaten-dlg__row > label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.stammdaten-dlg__row--3 {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 10px;
}

@media (max-width: 540px) {
  .stammdaten-dlg__row--3 {
    grid-template-columns: 1fr;
  }
}

.stammdaten-dlg__row--check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.stammdaten-dlg__row--check label {
  font-size: .9rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  color: var(--text);
}

.stammdaten-dlg-input,
dialog.stammdaten-dlg input,
dialog.stammdaten-dlg select,
dialog.stammdaten-dlg textarea {
  font-family: inherit;
  font-size: .95rem;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
}

dialog.stammdaten-dlg textarea {
  min-height: 70px;
  resize: vertical;
  line-height: 1.45;
}

dialog.stammdaten-dlg input:focus,
dialog.stammdaten-dlg select:focus,
dialog.stammdaten-dlg textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

dialog.stammdaten-dlg input[type="checkbox"] {
  width: auto;
  accent-color: var(--gold);
}

.stammdaten-dlg__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 26px 22px;
  border-top: 1px solid var(--line-soft);
  margin-top: 4px;
  background: rgba(202, 162, 106, .03);
}

/* ---------- Toast (lokal, falls global nicht da) ---------- */

.stammdaten-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: var(--ivory);
  padding: 12px 22px;
  border-radius: 30px;
  font-size: .92rem;
  letter-spacing: .02em;
  box-shadow: 0 10px 30px rgba(20, 35, 58, .22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 9999;
}

.stammdaten-toast.is-in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ---------- Owner-only Badge ---------- */

.stammdaten-card[data-owner-only="true"] .stammdaten-card__head::after {
  content: 'Eigentümer-Daten';
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  background: rgba(202, 162, 106, .12);
  padding: 3px 10px;
  border-radius: 30px;
}

/* ---------- Responsive Feinschliff ---------- */

@media (max-width: 640px) {
  .stammdaten-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .stammdaten-akte-switch {
    flex-direction: column;
    align-items: stretch;
  }

  .stammdaten-akte-switch select {
    width: 100%;
  }
}

/* =====================================================================
 * Welle 7.6 — Pflicht / Empfohlen / Audit-Banner / Vita-Bubble
 * ===================================================================== */

/* --- Pflicht-Stern am Label --- */
.stammdaten-field__req {
  color: var(--gold-dim, #b89766);
  font-weight: 700;
  margin-left: 2px;
}

/* --- Punkte: Rot = Pflicht fehlt, Gold/dezent = Empfohlen fehlt --- */
.stammdaten-required-dot,
.stammdaten-recommended-dot {
  position: absolute;
  top: 12px;
  right: 36px;
  font-size: .9rem;
  line-height: 1;
  pointer-events: none;
}
.stammdaten-required-dot {
  color: #c0392b; /* warmes Rot, nicht schreiend */
  text-shadow: 0 0 6px rgba(192, 57, 43, .25);
}
.stammdaten-recommended-dot {
  color: var(--gold-dim, #b89766);
  opacity: .75;
}

/* --- Feld-Hervorhebung bei fehlender Pflichtangabe --- */
.stammdaten-field.missing-required {
  background: linear-gradient(
    180deg,
    rgba(192, 57, 43, .04) 0%,
    rgba(192, 57, 43, .02) 100%
  );
  border-left: 2px solid rgba(192, 57, 43, .55);
}
.stammdaten-field.missing-required .stammdaten-field__label {
  color: #8e2c22;
}
.stammdaten-field.missing-recommended {
  border-left: 2px solid rgba(184, 151, 102, .35);
}
.stammdaten-empty.is-required-missing {
  color: #c0392b;
  font-style: italic;
}
.stammdaten-empty.is-recommended-missing {
  color: var(--gold-dim, #b89766);
  font-style: italic;
}

/* --- Audit-Banner: Pflichtfelder fehlen (rot, ruhig) --- */
.stammdaten-required-banner {
  background: linear-gradient(
    180deg,
    rgba(192, 57, 43, .08) 0%,
    rgba(192, 57, 43, .04) 100%
  );
  border: 1px solid rgba(192, 57, 43, .35);
  border-left: 3px solid #c0392b;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 16px 0 22px;
  color: #5a1f17;
  font-size: .95rem;
  line-height: 1.5;
}
.stammdaten-required-banner strong {
  color: #8e2c22;
}
.stammdaten-required-list {
  margin: 8px 0 0;
  padding: 0 0 0 18px;
  list-style: disc;
  color: #5a1f17;
}
.stammdaten-required-list li {
  margin: 2px 0;
  font-size: .9rem;
}

/* --- Audit-Banner: nur Empfohlen fehlt (golden, weich) --- */
.stammdaten-recommended-banner {
  background: rgba(184, 151, 102, .08);
  border: 1px solid rgba(184, 151, 102, .3);
  border-left: 3px solid var(--gold-dim, #b89766);
  border-radius: 10px;
  padding: 12px 18px;
  margin: 16px 0 22px;
  color: #6b5530;
  font-size: .92rem;
  line-height: 1.5;
}
.stammdaten-recommended-banner strong {
  color: var(--gold-dim, #b89766);
}

/* =====================================================================
 * Vita-Bubble (erste, einfache Variante für Welle 7.6)
 * Welle 7.7 wird das in einen zentralen Hint-Service auslagern.
 * ===================================================================== */

.bv-vita-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9500;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 380px;
  padding: 16px 18px 14px;
  background: linear-gradient(
    180deg,
    rgba(28, 32, 40, .96) 0%,
    rgba(20, 24, 30, .96) 100%
  );
  color: #f3ece0;
  border: 1px solid rgba(184, 151, 102, .35);
  border-radius: 14px;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, .45),
    0 2px 8px rgba(0, 0, 0, .25),
    inset 0 1px 0 rgba(255, 255, 255, .05);
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transition: opacity .28s ease, transform .28s ease;
  pointer-events: none;
  font-family: inherit;
}
.bv-vita-bubble.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.bv-vita-bubble__avatar {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #d4b87a, #8a6f3f);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px rgba(212, 184, 122, .25);
}
.bv-vita-bubble__monogram {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #2a1f0e;
  line-height: 1;
}
.bv-vita-bubble__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(212, 184, 122, .55);
  animation: bvVitaPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes bvVitaPulse {
  0%   { transform: scale(.9); opacity: .9; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

.bv-vita-bubble__body {
  flex: 1;
  min-width: 0;
}
.bv-vita-bubble__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  font-size: .82rem;
}
.bv-vita-bubble__head strong {
  color: #d4b87a;
  letter-spacing: .04em;
  font-weight: 600;
  font-size: .92rem;
}
.bv-vita-bubble__sub {
  color: rgba(243, 236, 224, .55);
  font-size: .75rem;
  font-style: italic;
}
.bv-vita-bubble__text {
  margin: 4px 0 10px;
  line-height: 1.5;
  font-size: .92rem;
  color: #e8dfcd;
}
.bv-vita-bubble__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.bv-vita-bubble__actions .btn {
  font-size: .82rem;
  padding: 6px 12px;
}
.bv-vita-bubble__actions .btn--ghost {
  background: transparent;
  border: 1px solid rgba(212, 184, 122, .35);
  color: #d4b87a;
}
.bv-vita-bubble__actions .btn--ghost:hover {
  background: rgba(212, 184, 122, .1);
}
.bv-vita-bubble__actions .btn:not(.btn--ghost) {
  background: rgba(212, 184, 122, .15);
  border: 1px solid rgba(212, 184, 122, .4);
  color: #d4b87a;
}

/* Mobile */
@media (max-width: 640px) {
  .bv-vita-bubble {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}

/* =====================================================================
 * Welle 7.6 — Owner-Cockpit-Karte «Stammdaten der Käufer»
 * Eingehängt in #cp-body
 * ===================================================================== */

.cp-card.cp-card--stammdaten {
  background: #fff;
  border: 1px solid var(--line-soft, #e6dfd2);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 0 0 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}

.cp-card--stammdaten .cp-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft, #e6dfd2);
  padding-bottom: 12px;
}
.cp-card--stammdaten .cp-card__icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-top: 2px;
}
.cp-card--stammdaten h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: 1.28rem;
  font-weight: 600;
  color: #1c1814;
}
.cp-card--stammdaten .cp-card__sub {
  margin: 2px 0 0;
  font-size: .85rem;
  color: #6b6256;
}

/* KPI-Reihe */
.cp-stamm-kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.cp-stamm-kpi__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 14px;
  background: #faf7f1;
  border: 1px solid var(--line-soft, #e6dfd2);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  color: #1c1814;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.cp-stamm-kpi__item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
  border-color: var(--gold-dim, #b89766);
}
.cp-stamm-kpi__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 600;
  color: #6b6256;
}
.cp-stamm-kpi__lbl {
  font-size: .78rem;
  color: #6b6256;
  margin-top: 6px;
  letter-spacing: .02em;
}
.cp-stamm-kpi__item.is-active {
  background: linear-gradient(180deg, rgba(212, 184, 122, .12), rgba(212, 184, 122, .06));
  border-color: rgba(212, 184, 122, .55);
}
.cp-stamm-kpi__item.is-active .cp-stamm-kpi__num {
  color: #8a6f3f;
}
.cp-stamm-kpi__item.is-warning {
  background: linear-gradient(180deg, rgba(192, 57, 43, .08), rgba(192, 57, 43, .03));
  border-color: rgba(192, 57, 43, .35);
}
.cp-stamm-kpi__item.is-warning .cp-stamm-kpi__num {
  color: #8e2c22;
}
.cp-stamm-kpi__item.is-soft {
  background: rgba(184, 151, 102, .06);
  border-color: rgba(184, 151, 102, .25);
}

/* Sections */
.cp-stamm-section {
  margin-top: 14px;
}
.cp-stamm-section h4 {
  margin: 0 0 8px;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #6b6256;
  font-weight: 700;
}
.cp-stamm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cp-stamm-akte {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  background: #faf7f1;
  border: 1px solid var(--line-soft, #e6dfd2);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: #1c1814;
  transition: background .12s, border-color .12s;
}
.cp-stamm-akte:hover {
  background: #f5efe2;
  border-color: var(--gold-dim, #b89766);
}
.cp-stamm-akte__name {
  font-weight: 600;
  flex-shrink: 0;
}
.cp-stamm-akte__detail {
  flex: 1;
  font-size: .82rem;
  color: #6b6256;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-stamm-akte__pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 12px;
  font-size: .78rem;
  font-weight: 700;
}
.cp-stamm-akte__pill--pending {
  background: rgba(212, 184, 122, .2);
  color: #8a6f3f;
}
.cp-stamm-akte__pill--required {
  background: rgba(192, 57, 43, .12);
  color: #8e2c22;
}
.cp-stamm-allgood {
  margin: 8px 0 0;
  padding: 12px 14px;
  background: rgba(46, 125, 79, .08);
  border-left: 3px solid #2e7d4f;
  border-radius: 6px;
  color: #2e5a3d;
  font-size: .9rem;
}

@media (max-width: 640px) {
  .cp-stamm-kpi {
    grid-template-columns: 1fr;
  }
  .cp-stamm-akte {
    flex-wrap: wrap;
  }
  .cp-stamm-akte__detail {
    width: 100%;
    white-space: normal;
  }
}
