/* Setcard: ruhige Ansicht für Kunde und Kandidat. Bearbeiten nur über den Stift (Pop-up). */

/* Kopf: Bild/Logo, Name, Kennzahlen, Aktionen */
.sc-kopfkarte { display: grid; grid-template-columns: auto 1fr; gap: 16px 18px; align-items: start; }
.sc-kopfkarte .sc-bild .flogo.lg, .sc-kopfkarte .sc-bild .avatar.lg { width: 96px; height: 96px; border-radius: 20px; }
.sc-kopfkarte .sc-bild img.flogo.lg { padding: 8px; }
.sc-titel { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sc-titel h1 { font-size: 28px; margin: 0; line-height: 1.15; letter-spacing: -.03em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-untertitel { color: var(--muted); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.sc-untertitel .sep { opacity: .4; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sc-kontaktzeile { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; font-size: 14px; }
.sc-kontaktzeile a { color: var(--text); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.sc-kontaktzeile a:hover { color: var(--text); text-decoration: underline; }
.sc-kontaktzeile svg.i { width: 15px; height: 15px; color: var(--muted-2); }

/* Aktionsleiste: wenige Hauptaktionen + „Mehr“ */
.sc-aktionen { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.sc-aktionen .spacer { flex: 1; }
.sc-aktionen .btn { height: 36px; }

/* Hinweise unter dem Kopf */
.sc-hinweise { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sc-hinweise .notice { margin: 0; }

/* Bereiche */
.sc-bereiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-top: 14px; }
.sc-bereich { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 16px; background: var(--flaeche-2); min-width: 0; }
.sc-bereich.breit { grid-column: 1 / -1; }
.sc-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; min-height: 28px; }
.sc-kopf > svg.i { width: 16px; height: 16px; color: var(--muted-2); flex: none; }
.sc-kopf h3 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.sc-kopf .spacer { flex: 1; }
.sc-stift { opacity: .65; }
.sc-bereich:hover .sc-stift, .sc-stift:focus-visible { opacity: 1; }

/* Werte: Beschriftung klein oben, Inhalt darunter */
.sc-werte { display: grid; gap: 10px 18px; margin: 0; }
.sc-werte.sp1 { grid-template-columns: 1fr; }
.sc-werte.sp2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sc-werte.sp3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sc-werte > div { min-width: 0; }
.sc-werte > div.breit { grid-column: 1 / -1; }
.sc-werte dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin-bottom: 2px; }
.sc-werte dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; line-height: 1.4; }
.sc-werte dd a { color: var(--text); }
.sc-werte dd svg.i { width: 13px; height: 13px; vertical-align: -2px; }
.sc-text { font-size: 14px; line-height: 1.55; white-space: pre-wrap; margin: 0; }
.sc-leer { color: var(--muted); font-size: 13px; margin: 0; }

/* „Mehr“-Menü */
.mehr { position: relative; display: inline-block; }
.mehr-liste { display: none; position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; z-index: 50; padding: 6px; border-radius: 12px;
  background: var(--glas-voll); border: 1px solid var(--line-strong); box-shadow: var(--sch-2); }
.mehr.offen .mehr-liste { display: flex; flex-direction: column; }
.mehr-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border-radius: 8px; border: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 13.5px; text-align: left; text-decoration: none; cursor: pointer; }
.mehr-item:hover { background: var(--hover); }
.mehr-item svg.i { width: 15px; height: 15px; color: var(--muted); }
.mehr-item.gefahr { color: var(--gefahr-tx); }
.mehr-item.gefahr svg.i { color: var(--gefahr-tx); }
.mehr-trenner { height: 1px; background: var(--line); margin: 4px 2px; }

/* Bearbeiten-Pop-up */
.sc-edit .form-grid { margin-top: 6px; }
.sc-edit h2 { display: flex; align-items: center; gap: 8px; }

@media (max-width: 760px) {
  .sc-kopfkarte { grid-template-columns: 1fr; }
  .sc-werte.sp2, .sc-werte.sp3 { grid-template-columns: 1fr; }
}

/* Gemeinsame Regeln (aus der Prüfung): „Mehr“ immer rechts, Raster schrumpfen sauber auf schmalen Bildschirmen */
.sc-aktionen .mehr { margin-left: auto; }
.sc-bereiche { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.sc-werte.sp2 { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.sc-werte.sp3 { grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); }
.grid-main > * { min-width: 0; }
