/* ============================================================================
   Konto und Verwaltung: Profil oben rechts, Benutzer, Häuser, Abteilungen,
   Einladung. Baut auf den Bausteinen aus app.css auf (.seite, .grosstitel,
   .gruppe, .zeile, .segmente, .btn); hier steht nur, was diese Bildschirme
   eigen haben.
   ========================================================================== */

/* ------------------------------------------------- Profil oben rechts -- */
/* Ein Kreis mit den Initialen, wie bei Mail und Kontakten. Am Computer steht
   der Name daneben; am Telefon fehlt dafür der Platz neben dem Logo. */
.kopf-profil {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-width: var(--tap); min-height: var(--tap); padding: 0 var(--s2);
  background: none; border: 0; border-radius: var(--r-xs);
  color: var(--ink); font-size: 1.0625rem; line-height: 1.294; font-weight: 600;
}
.kopf-profil:active { opacity: .6; }
.kopf-name { display: none; max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 768px) { .kopf-name { display: inline; } }

/* Die Glocke: Symbol und die Zahl neuer Meldungen als Wort daneben, kein
   roter Punkt. Am Computer steht „Meldungen“ dabei. */
.kopf-glocke {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-width: var(--tap); min-height: var(--tap); padding: 0 var(--s2);
  background: none; border: 0; border-radius: var(--r-xs);
  color: var(--brand); font-size: 1.0625rem; line-height: 1.294;
}
.kopf-glocke:active { opacity: .6; }
.kopf-glocke-wort { display: none; }
@media (min-width: 768px) { .kopf-glocke-wort { display: inline; margin-left: var(--s1); } }
.kopf-zahl { font-weight: 700; font-variant-numeric: tabular-nums; }

.avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-flaeche); color: #fff;
  font-size: .9375rem; line-height: 1; font-weight: 700;
}
.avatar.grau { background: var(--surface-3); color: var(--ink); }
.avatar.gross { width: 72px; height: 72px; font-size: 1.625rem; }

/* ------------------------------------------------------------- Konto -- */
.profil-kopf {
  display: grid; justify-items: center; gap: 2px;
  padding: var(--s2) var(--s4) var(--s4); text-align: center;
}
.profil-kopf h1 { margin-top: var(--s3); font-size: 1.25rem; line-height: 1.25; font-weight: 600; }
.profil-kopf p { font-size: .9375rem; line-height: 1.333; color: var(--ink-2); overflow-wrap: anywhere; }
.profil-kopf .profil-status { margin-top: var(--s1); }

.gruppe.abstand-gross { margin-top: var(--s6); }
.zeile-zahl { font-variant-numeric: tabular-nums; }
.wort-warn { color: var(--warn-schrift); font-weight: 600; }

/* --------------------------------------------------------- Formulare -- */
/* Die Haarlinien zwischen den Feldern zieht .gruppe selbst (app.css). */
.verw-form .start-eingabe:disabled { color: var(--ink-2); -webkit-text-fill-color: var(--ink-2); opacity: 1; }
textarea.start-eingabe { resize: vertical; min-height: 88px; }
select.start-eingabe { cursor: pointer; }
.zwei-felder { display: grid; grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr); }
.zwei-felder > * + * { border-left: 1px solid var(--line); }
.start-eingabe.gross-schrift { text-transform: uppercase; font-weight: 600; letter-spacing: .04em; }

/* Auswahl mit Haken rechts, wie „Darstellung“: eine Rolle je Person. */
.wahl .zeile-rechts { color: var(--brand); }
.wahl [aria-checked="true"] .zeile-titel { color: var(--brand); }
.wahl .zeile[disabled] { cursor: default; }
.wahl .zeile[disabled] .zeile-titel { color: var(--ink-2); }

/* Mehrfachauswahl: ein echtes Kästchen links, die ganze Zeile ist die Tippfläche. */
.haken-zeile { cursor: pointer; }
.haken-zeile input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--brand-flaeche); }
.haken-zeile .zeile-titel { font-weight: 400; }
.haken-zeile.stark .zeile-titel { font-weight: 600; }

.segmente + .gruppe, .segmente + .gruppe-fuss { margin-top: var(--s3); }
.verw-knoepfe { display: grid; gap: var(--s2); margin: var(--s6) var(--rand) 0; }
.verw-knoepfe.oben { margin: 0 var(--rand) var(--s2); }
.verw-knoepfe.nah { margin-top: 0; }
.verw-fehler {
  margin: var(--s4) var(--s4) 0;
  font-size: .9375rem; line-height: 1.333; color: var(--bad);
}
.verw-hinweis {
  margin: var(--s4) var(--s4) 0;
  font-size: .9375rem; line-height: 1.333; color: var(--ink-2);
}

/* ----------------------------------------------------------- Häuser -- */
.hauptbild {
  position: relative; margin: 0 var(--rand); overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: var(--r-gruppe); background: var(--surface-2);
  display: grid; place-items: center; color: var(--ink-2);
}
.hauptbild img { width: 100%; height: 100%; object-fit: cover; }
.hauptbild-leer { display: grid; justify-items: center; gap: var(--s2); font-size: .9375rem; }
.hauptbild-knopf { position: absolute; right: var(--s3); bottom: var(--s3); }
.hauptbild-knopf.btn-zweit { background: var(--surface); }

/* Löschen: was verschwindet, dann das Kürzel. */
.folgen .zeile-titel { font-weight: 400; }
.folgen .zeile-titel b { font-weight: 700; font-variant-numeric: tabular-nums; }
.sicherheit-text { margin: 0 var(--s4) var(--s2); font-size: 1.0625rem; line-height: 1.294; }
.sicherheit-text b { font-size: 1.25rem; letter-spacing: .06em; }

/* ------------------------------------------------------- Meldungen -- */
.meldung .zeile-titel { font-weight: 400; }
.meldung.neu .zeile-titel { font-weight: 600; }
.wort-neu { color: var(--brand); font-weight: 600; }
.meldung-symbol {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: var(--r-bild); background: var(--surface-2); color: var(--brand);
}
.meldung-symbol.warn { color: var(--warn-schrift); }
.meldung-symbol.sofort { color: var(--orange-zeichen); }

/* ------------------------------------------- Neue Maßnahme, Langfristig -- */
.neu-form .abt-zeile .abt-haken .ic { color: var(--brand); }
.mn-neu.btn-block { width: auto; margin: 0 var(--rand); }
@media (min-width: 1024px) { .mn-neu.btn-block { margin: 0; } }
.mn-nr-klein { display: block; font-size: .9375rem; line-height: 1.333; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wort-langfristig { display: inline-flex; align-items: center; gap: var(--s1); }
.langfristig-hinweis { margin: 0 var(--s4) var(--s2); font-size: .9375rem; line-height: 1.333; color: var(--ink-2); }
.langfristig-knopf { margin: 0 var(--rand) var(--s2); }
.langfristig-knopf .btn { padding-left: var(--s2); }
.langfristig-wege { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.langfristig-wege .btn { flex: 1 1 auto; }
.mn-ort .erinnern { display: inline-flex; align-items: center; gap: var(--s1); }
/* „Erinnern am“: drei feste Zeiten und „Eigenes Datum“, auf dem Handy zwei mal
   zwei, damit jedes Wort in eine Zeile passt. */
.erinnern-wahl { flex-wrap: wrap; }
.erinnern-wahl button { flex: 1 1 calc(50% - 1px); }
@media (min-width: 600px) {
  .erinnern-wahl button { flex: 1 1 0; }
}
/* iOS setzt das Datum sonst in die Mitte des Felds. */
.start-eingabe[type="date"]::-webkit-date-and-time-value { text-align: left; }

/* ------------------------------------------------------- Einladung -- */
/* Der Link selbst: lesbar, markierbar, bricht um, statt über den Rand zu laufen. */
.link-kasten {
  margin: 0 var(--rand); padding: var(--s3) var(--s4);
  background: var(--surface); border-radius: var(--r-gruppe);
  font-size: .9375rem; line-height: 1.333; color: var(--ink);
  overflow-wrap: anywhere; -webkit-user-select: all; user-select: all;
}
