/* Chat finden – Gestaltung nach Brandguide SPA Deluxe, Kapitel „Digital“, Abschnitt „Anwendungen“.
   Werte ausschließlich aus tokens.css. Bronze nur als Kicker, Wellenband und Linie – nie Fläche, nie Knopf, nie Status. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--flaeche-ruhig);
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
}

/* Logo und Wellen je Thema: hell auf Weiß, dunkel auf Graphit */
html:not([data-theme="dunkel"]) .nur-dunkel, [data-theme="dunkel"] .nur-hell { display: none !important; }

.seite {
  max-width: var(--layout-inhalt);
  margin: 0 auto;
  padding: var(--abstand-6) var(--abstand-12) var(--abstand-12);
  display: flex;
  flex-direction: column;
  gap: var(--abstand-6);
}

/* Kopf: Logo und Wellenband (nie hinter Text) */
.kopf { display: flex; flex-direction: column; gap: var(--abstand-3); }
.marke img { height: 20px; width: auto; display: block; }
.welle { width: 100%; max-width: 420px; height: 40px; display: block; }

/* Titel */
.kicker {
  margin: 0;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.kicker.akzent { color: var(--akzent-text); }
.titel h1 { margin: var(--abstand-2) 0 var(--abstand-3); font-size: 40px; line-height: 48px; font-weight: 300; }
.einleitung { margin: 0; max-width: var(--layout-text); color: var(--text-mittel); font-size: 15px; line-height: 24px; }

/* Suche */
.werkzeug { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--abstand-3); }
.feld { display: flex; flex-direction: column; gap: 6px; position: relative; }
.feld label { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text); }
.feld input {
  height: 48px;
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--flaeche);
  border: 1px solid var(--linie-kraeftig);
  border-radius: var(--radius-1);
  padding: 0 var(--abstand-4);
}
.feld input::placeholder { color: var(--text-leise); }
.feld input:focus-visible { outline: 2px solid transparent; box-shadow: var(--fokus); }
.suche { width: 420px; max-width: 100%; }
.suche input { padding-left: 42px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.suche .icon { position: absolute; left: 13px; bottom: 14px; color: var(--text-leise); pointer-events: none; }
.anzahl { margin: 0 0 14px auto; font-size: 13px; color: var(--text-mittel); }

/* Trefferliste in weißer Karte */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-1); }
.liste-kopf, .zeile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 140px 200px;
  align-items: center;
  gap: var(--abstand-4);
  padding: 0 var(--abstand-4);
}
.liste-kopf {
  min-height: 40px;
  background: var(--flaeche-ruhig);
  border-bottom: 1px solid var(--linie);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mittel);
}
.zahl { text-align: right; font-variant-numeric: tabular-nums; }
.liste { list-style: none; margin: 0; padding: 0; }
.liste > li { border-bottom: 1px solid var(--linie); }
.liste > li:last-child { border-bottom: 0; }
.zeile { min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
.zeile:hover { background: var(--flaeche-ruhig); }
.chatname { font-weight: 600; overflow-wrap: anywhere; }
.leise { color: var(--text-mittel); font-size: 13px; }
.mitglieder-mobil { display: none; }
.aktionen { display: flex; justify-content: flex-end; align-items: center; gap: var(--abstand-4); }

/* Status als Wort mit Punkt – nie Bronze */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-leise); white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: var(--radius-rund); background: currentColor; }
.chip.erfolg { color: var(--erfolg); }

/* Knöpfe: Graphit nur für die eine Hauptaktion (Bestätigen), sonst Rahmen oder Textlink */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 var(--abstand-4);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-1);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.knopf.primaer { background: var(--knopf); color: var(--auf-knopf); border: 1px solid var(--knopf); }
.knopf.sekundaer { background: transparent; color: var(--text); border: 1px solid var(--linie-kraeftig); }
.knopf:focus-visible, .textlink:focus-visible { outline: 2px solid transparent; box-shadow: var(--fokus); }
.knopf[disabled] { opacity: 0.6; cursor: progress; }
.textlink {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Bestätigung unter der Zeile: Hellgrau mit Bronze-Linie links (akzent-flaeche) */
.bestaetigen {
  margin: 0 var(--abstand-4) var(--abstand-4);
  padding: var(--abstand-4);
  background: var(--akzent-flaeche);
  border-left: 2px solid var(--akzent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--abstand-3) var(--abstand-4);
}
.bestaetigen p { margin: 0; flex: 1 1 280px; color: var(--text-mittel); }
.bestaetigen p b { color: var(--text); }
.bestaetigen .knoepfe { display: flex; gap: var(--abstand-3); }

/* Hinweise: immer mit Wort, nie nur Farbe */
.meldung { padding: var(--abstand-3) var(--abstand-4); border-radius: var(--radius-1); border: 1px solid; font-size: 14px; line-height: 22px; }
.meldung b { font-weight: 700; }
.meldung.erfolg { background: var(--erfolg-flaeche); border-color: var(--erfolg); color: var(--text); }
.meldung.fehler { background: var(--fehler-flaeche); border-color: var(--fehler); color: var(--text); }
.meldung.info { background: var(--flaeche); border-color: var(--linie-kraeftig); color: var(--text); }
.meldung .textlink { margin-left: var(--abstand-2); }

.leer { margin: 0; color: var(--text-mittel); }
.fuss p { margin: 0; font-size: 12px; color: var(--text-leise); }

.nur-leser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Teams auf dem Handy und schmale Fenster */
@media (max-width: 720px) {
  .seite { padding: var(--abstand-4) var(--abstand-4) var(--abstand-8); gap: var(--abstand-4); }
  .titel h1 { font-size: 28px; line-height: 36px; font-weight: 400; }
  .liste-kopf { display: none; }
  .zeile { grid-template-columns: minmax(0, 1fr); gap: var(--abstand-2); padding-top: var(--abstand-3); padding-bottom: var(--abstand-3); }
  .zeile .spalte-zahl, .zeile .spalte-zeit { display: none; }
  .mitglieder-mobil { display: block; }
  .aktionen { justify-content: flex-start; }
  .anzahl { margin: 0; width: 100%; }
}
