/* myFlow Portfolio OS
   Tokens ausschließlich aus docs/patterns/brand-guide.md und design-styleguide.md.
   Zwei begründete Ausnahmen: die Statusfarben, siehe unten. */

:root {
  --petrol:      #097392;
  --petrol-dark: #064f66;
  --coral:       #D55534;
  --mint:        #83B4B3;
  --cream:       #FFF0CE;
  --ink:         #383838;
  --gray:        #F5F5F5;
  --white:       #FFFFFF;
  --line:        #E5E9EE;

  /* Statusfarben: abgedunkelte Ableitungen, weil Cream auf Weiß unsichtbar und
     Mint als kleiner Punkt zu schwach ist. Nur für Statuszeichen. */
  --status-kritisch: var(--coral);
  --status-achtung:  #C98A2E;
  --status-stabil:   #4E8F8D;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--gray);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; font-weight: 600; }

/* --- Wortmarke: nur "Flow" fett, Bullet und Suffix in Coral --------------- */
.wortmarke { font-family: 'Poppins'; font-size: 1.05rem; white-space: nowrap; }
.wortmarke .my     { font-weight: 300; color: var(--petrol); }
.wortmarke .flow   { font-weight: 700; color: #1c2b30; }
.wortmarke .bullet { font-weight: 300; color: var(--coral); }
.wortmarke .suffix { font-weight: 300; color: var(--coral); }
.wortmarke.hell .flow { color: var(--white); }
.wortmarke.hell .my   { color: #9fdcea; }

/* --- Kopf: weiß, kein farbiger Hintergrund ------------------------------- */
.kopf {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.kopf-links { display: flex; align-items: center; gap: 14px; }
.kopf .titel { font-family: 'Poppins'; font-weight: 600; color: var(--petrol-dark); }
.kopf-rechts { display: flex; align-items: center; gap: 8px; }

.pille {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--petrol);
  text-decoration: none;
  font-size: 14px;
}
.pille:hover { background: var(--gray); }
.pille.aktiv { background: var(--petrol); color: var(--white); border-color: var(--petrol); }
.badge {
  padding: 4px 12px; border-radius: 999px;
  background: #eaf4f6; border: 1px solid var(--mint);
  color: var(--petrol-dark); font-size: 13px;
}
.benutzer { color: #6b778c; font-size: 14px; margin-left: 8px; }

/* --- Arbeitsfläche -------------------------------------------------------- */
.flaeche { flex: 1; padding: 28px; max-width: 1400px; width: 100%; margin: 0 auto; }
.karte {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.abschnitt { margin-bottom: 28px; }
.abschnitt > h2 { font-size: 1.15rem; color: var(--petrol-dark); margin-bottom: 12px; }

/* --- Kennzahlen ----------------------------------------------------------- */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.kennzahl .label { font-size: 13px; color: #6b778c; }
.kennzahl .wert {
  font-family: 'Poppins'; font-weight: 600; font-size: 1.7rem;
  color: var(--petrol-dark); font-variant-numeric: tabular-nums; margin-top: 4px;
}
.kennzahl .wert.warnung { color: var(--coral); }
.kennzahl .zusatz { font-size: 12px; color: #6b778c; margin-top: 4px; }

/* --- Pipeline: Sättigungsrampe statt Farbcode ---------------------------- */
.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.spalte { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.spalte .balken { height: 5px; border-radius: 999px; background: var(--petrol); margin-bottom: 10px; }
.spalte .name { font-family: 'Poppins'; font-weight: 600; font-size: 13px; color: var(--petrol-dark); }
.spalte .zahlen { font-size: 12px; color: #6b778c; margin-top: 2px; font-variant-numeric: tabular-nums; }
.spalte ul { list-style: none; margin-top: 10px; }
.spalte li { font-size: 12.5px; padding: 5px 0; border-top: 1px solid var(--line); }
.spalte li a { color: var(--ink); text-decoration: none; }
.spalte li a:hover { color: var(--petrol); }
.spalte li span { display: block; color: #6b778c; font-size: 11.5px; }

/* --- Diagramme: gerechnete Geometrie, keine Bibliothek -------------------- */
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.trichter-zeile { display: flex; align-items: center; gap: 12px; padding: 5px 0; }
.trichter-label { width: 150px; flex-shrink: 0; font-size: 13.5px; color: var(--ink); }
.trichter-label small { display: block; color: #6b778c; font-size: 11.5px; }

/* Bahn = die Skala. Muss sichtbar sein, sonst schwebt der Balken im Nichts:
   auf einer weißen Karte braucht die Bahn eine graue Fläche. */
.trichter-bahn {
  flex: 1; position: relative; background: var(--gray);
  border-radius: 999px; height: 26px;
  display: flex; align-items: center;
}
/* --- Trichter als Form, nicht als Balken --------------------------------- */
.trichter-raster {
  display: grid; grid-template-columns: 168px 1fr 150px;
  align-items: stretch; gap: 12px;
}
.trichter-namen, .trichter-zahlen { display: flex; flex-direction: column; }
.trichter-name, .trichter-zahl {
  flex: 1; display: flex; align-items: center; font-size: 13.5px;
}
.trichter-name { color: var(--ink); flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; }
/* Füllgrad und Sollwert sind eine Angabe und brechen nicht um: „60 % von
   100.000 €" gehört zusammen, getrennt liest es sich als zwei Zahlen. Die
   Spalte ist breit genug für die längste Variante. */
.trichter-name small {
  color: #6b778c; font-size: 11.5px; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.trichter-name small .soll { color: #97a2ad; }
.trichter-zahl {
  justify-content: flex-end; font-variant-numeric: tabular-nums;
  color: var(--petrol-dark);
}
.trichter-zahl small { color: #6b778c; margin-left: 6px; }
/* Kein preserveAspectRatio="none": Die viewBox trägt Höhe und Breite in
   denselben Einheiten, damit der Trichter nicht in die Breite gezerrt wird. */
.trichter-svg { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; }
.verloren-zeile small { color: #97a2ad; margin-left: 6px; }

.verloren-zeile {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  color: #6b778c; font-size: 13.5px;
}
.verloren-wert { font-variant-numeric: tabular-nums; }
.verloren-wert small { margin-left: 6px; }
/* Der Füllstand liegt darüber und läuft von links durch. */
.trichter-balken {
  position: relative; height: 26px; border-radius: 999px;
  background: var(--petrol); min-width: 3px;
}
.trichter-balken.mint { background: var(--mint); opacity: 1; }
.trichter-balken.grau { background: #9aa4ae; }
.trichter-zeile.verloren .trichter-label { color: #6b778c; }
.trichter-wert {
  width: 116px; flex-shrink: 0; text-align: right;
  font-variant-numeric: tabular-nums; font-size: 13.5px; color: var(--petrol-dark);
}
.trichter-wert small { color: #6b778c; margin-left: 4px; }

.legende-ideal {
  display: inline-block; width: 22px; height: 10px; vertical-align: middle;
  border: 1px solid var(--line); border-radius: 3px; margin: 0 3px;
  background: repeating-linear-gradient(
    135deg, #E9EDF1, #E9EDF1 5px, #F3F5F8 5px, #F3F5F8 10px
  );
}

.karten-titel { font-size: 1.05rem; color: var(--petrol-dark); margin-bottom: 14px; }
.fussnote { margin-top: 10px; font-size: 13px; color: #6b778c; }
.einleitung { max-width: 68ch; margin: -6px 0 22px; font-size: 15.5px; color: #4a5560; line-height: 1.55; }
.leer-klein { color: #6b778c; font-style: italic; }
.spalte.verloren .balken { background: #9aa4ae; }
.spalte.verloren .name { color: #6b778c; }

.donut-zeile { display: flex; align-items: center; gap: 18px; }
.donut { width: 118px; height: 118px; flex-shrink: 0; }

/* --- Kundenbalken mit Abschnitten ---------------------------------------- */
/* Sättigungsrampe wie im Trichter: je weiter im Geschäft, desto kräftiger.
   Kein eigener Farbcode, den man auswendig lernen müsste. */
.segment-balken {
  display: flex; height: 26px; border-radius: 999px; overflow: hidden; min-width: 3px;
}
.segment { display: block; height: 100%; }
.segment.angebot      { background: var(--petrol); opacity: .35; }
.segment.auftrag      { background: var(--petrol); opacity: .60; }
.segment.umsetzung    { background: var(--petrol); opacity: .85; }
.segment.abgerechnet  { background: var(--petrol-dark); }

.segment-legende {
  display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px;
  font-size: 12.5px; color: #6b778c;
}
.segment-legende span { display: flex; align-items: center; gap: 6px; }
.segment-punkt { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.segment-punkt.angebot     { background: var(--petrol); opacity: .35; }
.segment-punkt.auftrag     { background: var(--petrol); opacity: .60; }
.segment-punkt.umsetzung   { background: var(--petrol); opacity: .85; }
.segment-punkt.abgerechnet { background: var(--petrol-dark); }

.aufklappbar { margin-top: 8px; }
.aufklappbar > summary {
  cursor: pointer; font-size: 13px; color: var(--petrol);
  padding: 6px 0; list-style: none;
}
.aufklappbar > summary::-webkit-details-marker { display: none; }
.aufklappbar > summary::before { content: "▸ "; }
.aufklappbar[open] > summary::before { content: "▾ "; }
.aufklappbar > summary:hover { color: var(--petrol-dark); }

/* --- CRM-Firmensuche ------------------------------------------------------ */
.crm-suche { position: relative; padding: 14px 16px; background: #f7fafb; border-radius: 10px; }
.crm-treffer {
  margin-top: 8px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--white); overflow: hidden; max-height: 280px; overflow-y: auto;
}
.crm-treffer-zeile {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line);
  background: none; font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.crm-treffer-zeile:last-child { border-bottom: 0; }
.crm-treffer-zeile:hover { background: #eaf4f6; }
.crm-treffer-zeile small { color: #97a2ad; font-size: 11.5px; white-space: nowrap; }
.crm-hinweis { padding: 10px 12px; font-size: 13px; color: #6b778c; }
.crm-hinweis.erfolg { color: var(--petrol-dark); background: #eaf4f6; }
.crm-marke {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  background: #eaf4f6; color: var(--petrol-dark); font-size: 11.5px;
  text-decoration: none; white-space: nowrap;
}
.crm-marke:hover { background: var(--mint); }

/* --- Journal -------------------------------------------------------------- */
.eintrag-formular {
  display: grid; grid-template-columns: 200px 1fr auto; gap: 12px; align-items: end;
  padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
}
.eintrag-formular .feld.breit { grid-column: auto; }
.eintrag-formular button { align-self: end; }

.eintrag { padding: 12px 0; border-bottom: 1px solid var(--line); }
.eintrag-kopf { font-size: 12.5px; color: #97a2ad; display: flex; align-items: center; gap: 6px; }
.eintrag-text { margin-top: 3px; }
.eintrag-typ {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: var(--gray); color: #6b778c; font-size: 11px;
}
/* Zeichen statt reiner Farbe: die Herkunft eines Eintrags muss auch
   schwarzweiß und bei Farbfehlsichtigkeit ablesbar bleiben. */
.eintrag-typ.typ-zustandswechsel { background: #eaf4f6; color: var(--petrol-dark); }
.eintrag-typ.typ-finanz          { background: #f2f6f6; color: #3f6e6d; }
.eintrag-typ.typ-entscheidung    { background: var(--cream); color: #7a5a1c; }
.eintrag-typ.typ-risiko          { background: #fdeee9; color: var(--coral); }
.eintrag-typ.typ-korrektur       { background: #fdeee9; color: var(--coral); }

/* Überholt heißt durchgestrichen, nicht verschwunden. */
.eintrag.ueberholt .eintrag-text { text-decoration: line-through; color: #97a2ad; }
.eintrag-korrektur {
  margin-top: 8px; padding: 8px 12px; border-left: 3px solid var(--coral);
  background: #fdf6f3; font-size: 14px;
}
.eintrag-aktion { margin-top: 6px; }
.eintrag-aktion summary {
  cursor: pointer; font-size: 12px; color: #97a2ad; list-style: none;
}
.eintrag-aktion summary::-webkit-details-marker { display: none; }
.eintrag-aktion summary:hover { color: var(--petrol); }
.eintrag-aktion form { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; }
.eintrag-aktion textarea { flex: 1; }

/* --- Abweichungen: Vorzeichen zählt, nicht nur die Farbe ------------------ */
.minus { color: var(--coral); white-space: nowrap; }
.plus  { color: var(--status-stabil); white-space: nowrap; }
tr.hervor > td { background: #fafbfc; font-size: 14.5px; }

/* --- Trichterkopf: Füllgrad gegen das Jahresziel -------------------------- */
.trichter-kopf {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line);
  font-size: 14px; color: #6b778c;
}
.trichter-fuellgrad {
  font-family: 'Poppins', system-ui, sans-serif; font-weight: 600;
  font-size: 26px; color: var(--petrol); margin-right: 4px;
}
.trichter-kopf-zahlen { font-size: 13.5px; white-space: nowrap; }

/* --- Initiativenliste: Spaltenbreiten ------------------------------------ */
/* Der Wert trägt zwei Zeilen (Betrag und Beratertage) und braucht Luft,
   der Partner steht meist auf „-". */
.initiativenliste .sp-wert { width: 140px; text-align: right; white-space: nowrap; }
.initiativenliste .sp-wert small { display: block; font-size: 11.5px; color: #97a2ad; }
.initiativenliste .sp-partner { width: 110px; }
.initiativenliste .sp-liegezeit { width: 80px; text-align: right; white-space: nowrap; }

/* --- Werkzeugleiste und Filter ------------------------------------------- */
.werkzeugleiste {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; flex-wrap: wrap;
}
.filter { display: flex; gap: 12px; flex-wrap: wrap; }
.filter label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: #6b778c; }

/* --- Formulare ------------------------------------------------------------ */
.eingabe {
  font-family: 'Inter', system-ui, sans-serif; font-size: 14px; color: var(--ink);
  padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--white); width: 100%;
}
.eingabe:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(9,115,146,.12); }
.auswahl { padding-right: 28px; }
.haken { width: 16px; height: 16px; accent-color: var(--petrol); }

.feldraster { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feld { display: flex; flex-direction: column; gap: 5px; }
.feld.breit { grid-column: 1 / -1; }
.feld > label { font-size: 12.5px; color: #6b778c; }
.feld .pflicht { color: var(--coral); }
.feld .hilfe { font-size: 12px; color: #97a2ad; line-height: 1.4; }
.feld .fehler { font-size: 12px; color: var(--coral); }
.fehlerkasten { border-color: var(--coral); color: var(--coral); }

.formular-fuss { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
button.knopf { cursor: pointer; }
.knopf.klein { padding: 5px 12px; font-size: 12.5px; }

.meldung {
  padding: 10px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px;
  background: #eaf4f6; border: 1px solid var(--mint); color: var(--petrol-dark);
}
.meldung.fehler { background: #fdeee9; border-color: var(--coral); color: var(--coral); }

/* --- Tabellen: keine Zebrastreifen --------------------------------------- */
table.liste { width: 100%; border-collapse: collapse; }
table.liste th {
  text-align: left; font-family: 'Poppins'; font-weight: 600; font-size: 13px;
  color: var(--petrol-dark); border-bottom: 2px solid var(--petrol); padding: 9px 10px;
}
table.liste td { border-bottom: 1px solid var(--line); padding: 9px 10px; font-size: 14px; }
table.liste td.zahl { text-align: right; font-variant-numeric: tabular-nums; }
table.liste a { color: var(--ink); text-decoration: none; }
table.liste a:hover { color: var(--petrol); }

/* --- Ampel: nie nur Farbe, immer mit Zeichen ----------------------------- */
.ampel { font-weight: 600; white-space: nowrap; }
.ampel.kritisch { color: var(--status-kritisch); }
.ampel.achtung  { color: var(--status-achtung); }
.ampel.stabil   { color: var(--status-stabil); }

/* --- Schaltflächen -------------------------------------------------------- */
.knopf {
  display: inline-block; padding: 9px 18px; border-radius: 999px;
  background: var(--coral); color: var(--white); text-decoration: none;
  font-family: 'Poppins'; font-weight: 600; font-size: 14px; border: none;
}
/* In Zeilen und Karten mit Ampel: Petrol-Outline statt Coral, damit dieselbe
   Farbe nicht gleichzeitig "hier klicken" und "hier ist etwas kaputt" heißt. */
.knopf.rand { background: transparent; color: var(--petrol); border: 1px solid var(--petrol); }

.hinweis { background: var(--cream); border-radius: 8px; padding: 12px 16px; font-size: 14px; }
.leer { color: #6b778c; font-style: italic; padding: 14px 0; }

/* --- Fuß ------------------------------------------------------------------ */
.fuss {
  background: var(--petrol-dark); color: #cfe6ee;
  padding: 32px 28px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px;
}
.fuss h4 { color: var(--white); font-size: 14px; margin-bottom: 8px; }
.fuss p { font-size: 13px; line-height: 1.6; margin-top: 8px; }
.fuss a { display: block; color: #cfe6ee; font-size: 13px; text-decoration: none; padding: 2px 0; }
.fuss a:hover { color: var(--white); }

/* --- Mobil ---------------------------------------------------------------- */
@media (max-width: 768px) {
  .flaeche { padding: 16px; }
  .kopf { padding: 12px 16px; }
  .kennzahlen { grid-template-columns: 1fr; }
  .zwei-spalten { grid-template-columns: 1fr; }
  .trichter-raster { grid-template-columns: 124px 1fr 104px; gap: 8px; }
  .trichter-name, .trichter-zahl { font-size: 12px; }
  .trichter-label { width: 92px; font-size: 12.5px; }
  .trichter-wert { width: 84px; font-size: 12.5px; }
  .pipeline { display: flex; overflow-x: auto; gap: 10px; }
  .pipeline .spalte { min-width: 78vw; }
  .tabelle-scroll { overflow-x: auto; }
}

/* Ehemalige Ansprechpartner: sichtbar, aber zurückgenommen. Löschen wäre
   falsch - alte Journal-Einträge und Stakeholder zeigen sonst ins Leere. */
tr.verblasst > td { color: #97a2ad; }
tr.verblasst small { font-style: italic; }

/* --- Seitenkopf: Titel und Handlung nebeneinander ------------------------ */
.seitenkopf {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; margin-bottom: 26px;
}
/* Der Titelblock wächst, die Knöpfe nicht - dadurch stehen sie rechts, und
   zwar auch dann noch, wenn der Titel lang wird und die Zeile umbricht. */
.seitenkopf > :first-child { flex: 1 1 300px; min-width: 0; }
.seitentitel {
  font-size: 1.65rem; color: var(--petrol-dark); line-height: 1.25;
  max-width: 44ch;
}
.seitenkopf-zusatz {
  margin-top: 8px; font-size: 13.5px; color: #6b778c;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
/* margin-left:auto statt space-between: Bei Umbruch rutschen die Knöpfe sonst
   nach links unter den Titel statt rechts stehen zu bleiben. */
.seitenkopf-knoepfe { display: flex; gap: 10px; flex-shrink: 0; margin-left: auto; }

/* Formulare, die als Tabellenzelle oder Zeile mitlaufen sollen. */
.reihe { display: flex; gap: 8px; align-items: center; margin: 0; }
.reihe.zufuegen {
  margin: 30px 0 8px; padding-top: 24px; border-top: 1px solid var(--line);
  flex-wrap: wrap; row-gap: 12px; align-items: center;
}
/* Ohne feste Breiten zieht `.eingabe { width: 100% }` jedes Auswahlfeld auf
   die volle Zeile und die Reihe bricht in drei Zeilen auseinander. */
.reihe.zufuegen select[name="person"] { flex: 0 1 340px; }
.reihe.zufuegen select[name="rolle"]  { flex: 0 1 190px; }
.reihe.zufuegen button { flex: 0 0 auto; }
.eingabe.klein { padding: 4px 8px; font-size: 13px; width: auto; }

/* Zellen, in denen Auswahlfelder oder Knöpfe stehen, brauchen mehr Höhe als
   reine Textzellen. */
.liste td:has(form) { padding-top: 8px; padding-bottom: 8px; }
.liste td .reihe select { margin: 0; }

/* --- Overlay: ungespeicherte Eingaben ------------------------------------ */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(28, 43, 48, .45);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.overlay[hidden] { display: none; }
.overlay-kasten {
  background: var(--white); border-radius: 12px; padding: 26px 28px;
  max-width: 440px; box-shadow: 0 10px 40px rgba(0,0,0,.22);
  border-top: 4px solid var(--coral);
}
.overlay-kasten h2 { font-size: 1.15rem; color: var(--petrol-dark); margin-bottom: 10px; }
.overlay-kasten p { font-size: 14.5px; color: #4a5560; line-height: 1.55; }
.overlay-knoepfe { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* --- Suche in der Initiativenliste --------------------------------------- */
.filter-suche { flex: 1 1 260px; min-width: 220px; }
.filter-suche .eingabe { min-width: 220px; }
.initiativenliste .treffer {
  display: block; font-size: 11.5px; color: var(--petrol); margin-top: 2px;
}

/* --- Weitere Initiativen desselben Kunden -------------------------------- */
.geschwister {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: -8px 0 22px;
}
.geschwister-titel { font-size: 12.5px; color: #97a2ad; }
.geschwister-pille {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  color: var(--petrol); text-decoration: none; font-size: 13.5px;
}
.geschwister-pille:hover { background: #eaf4f6; border-color: var(--mint); }
.geschwister-pille small { color: #97a2ad; font-size: 11.5px; white-space: nowrap; }
/* Erledigtes und Verlorenes bleibt erreichbar, tritt aber zurück. */
.geschwister-pille.erledigt, .geschwister-pille.verloren { color: #6b778c; background: var(--gray); }

/* --- Anmeldeseite --------------------------------------------------------- */
.anmelden-seite { background: var(--gray); }
.anmelden {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 40px 24px; gap: 18px; min-height: 100vh;
}
.anmelden-karte { width: 100%; max-width: 380px; padding: 32px 30px; }
.anmelden-karte h1 {
  font-size: 1.4rem; color: var(--petrol-dark); margin: 18px 0 20px;
}
.anmelden-karte .feld { margin-bottom: 16px; }
.anmelden-karte input {
  font-family: 'Inter', system-ui, sans-serif; font-size: 15px; color: var(--ink);
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--white); width: 100%;
}
.anmelden-karte input:focus {
  outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(9,115,146,.12);
}
.knopf.breit { width: 100%; text-align: center; margin-top: 4px; }
.anmelden-fuss { font-size: 12.5px; color: #97a2ad; }
.anmelden-fuss a { color: #6b778c; }

/* --- Kontomenü in der Kopfleiste ----------------------------------------- */
.konto { position: relative; }
.konto summary { cursor: pointer; list-style: none; }
.konto summary::-webkit-details-marker { display: none; }
.konto-menue {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.1); padding: 6px; min-width: 170px;
  display: flex; flex-direction: column;
}
.konto-menue a, .konto-menue button {
  display: block; width: 100%; text-align: left; padding: 8px 12px;
  border: 0; border-radius: 6px; background: none; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--ink); text-decoration: none;
}
.konto-menue a:hover, .konto-menue button:hover { background: var(--gray); color: var(--petrol); }

/* --- Organisationen: Rollen ---------------------------------------------- */
.rollenmarke {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; margin-right: 4px; white-space: nowrap;
  background: var(--gray); color: #6b778c;
}
.rollenmarke.rolle-kunde   { background: #eaf4f6; color: var(--petrol-dark); }
.rollenmarke.rolle-partner { background: var(--cream); color: #7a5a1c; }
.rollenmarke.rolle-intern  { background: #f2f6f6; color: #3f6e6d; }

/* Auswahlkästchen nebeneinander statt untereinander - es sind nur drei. */
.rollenwahl ul { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
.rollenwahl label {
  display: flex; align-items: center; gap: 7px; font-size: 14.5px; color: var(--ink);
  cursor: pointer;
}
.rollenwahl input { width: 16px; height: 16px; accent-color: var(--petrol); }
/* Kunde und Potenzial unterscheiden sich nicht nur im Farbton, sondern in
   der Fuellung: gefuellt gegen umrandet. Das bleibt auch im Schwarzweissdruck
   und bei Farbfehlsichtigkeit lesbar - dieselbe Ueberlegung wie bei der Ampel,
   die Zeichen statt reiner Farbe benutzt. */
.statusmarke {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-size: 11.5px; white-space: nowrap; font-weight: 500;
  border: 1px solid transparent;
  /* Gleiche Breite fuer beide Marken: „Kunde" ist kuerzer als „Potenzial",
     und ungleich breite Flaechen lesen sich in einer Spalte als verrutscht. */
  min-width: 84px; text-align: center;
}
.statusmarke.status-kunde {
  background: var(--mint); color: var(--petrol-dark); border-color: #6ba3a2;
}
.statusmarke.status-potenzial {
  background: var(--gray); color: #6b778c; border-color: #e3e7ec;
  font-weight: 400;
}

/* Abschnittsüberschrift mit Handlung rechts daneben. */
.abschnitt-kopf {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 12px;
}
.abschnitt-kopf h2 { margin-bottom: 0; }
.abschnitt-kopf form { margin: 0; }

/* Mehrere Knöpfe in einer Tabellenzelle nebeneinander statt untereinander. */
.zeilenaktionen { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.zeilenaktionen form { margin: 0; }

/* Symbolknopf für Zeilenhandlungen.
   In einer Liste steht die Handlung zwanzigmal untereinander - beschriftet
   frisst sie Breite, die den Daten fehlt. Die Erklärung liefert das
   title-Attribut beim Darüberfahren, aria-label die Vorlesehilfe. */
.symbolknopf {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0;
  border: 1px solid var(--rand, #dcdcdc); border-radius: 6px;
  background: #fff; color: #6b6b6b; cursor: pointer;
  transition: color .12s, border-color .12s, background .12s;
}
.symbolknopf svg {
  width: 17px; height: 17px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.symbolknopf:hover, .symbolknopf:focus-visible {
  color: var(--petrol, #097392); border-color: var(--petrol, #097392);
  background: #f0f7fa;
}
.symbolknopf:focus-visible { outline: 2px solid var(--petrol, #097392); outline-offset: 1px; }
