/* Gestaltungsgrundlage des Whiteboards: Tokens, drei Auftritte, Bausteine (Knopf, Pille, Dialog, Feld, Meldung).
   Werte aus den Attrappen entwurf/board-entwurf-1b.html und -2.html, Grundtöne wie die Homepage (Relaunch/quellen/stil.css).
   Der Auftritt steht als Klasse am <body>: auftritt-seiler, auftritt-bhk, auftritt-neutral.
   Regel Beraterhaus: kein Grün und kein Blau in der Bedienoberfläche, deshalb laufen alle Akzente über die Tokens. */

:root {
  /* Auftritt Seiler.OE ist die Grundeinstellung */
  --akzent: #377A00;
  --akzent-hell: #EAF7EB;
  --akzent-dunkel: #2d5f00;
  --akzent-rand: #cfe3c5;
  --ink: #012104;
  --head: #151716;
  --muted: #4a5e4b;
  --linie: #e3e7e0;
  --sand: #f7f6f2;
  --flaeche: #fbfbf9;
  --rand-feld: #cfd5cc;
  --warn: #b2452c;
  --schatten-pille: 0 4px 18px rgba(1, 33, 4, .06);
  --schatten-karte: 0 20px 50px rgba(1, 33, 4, .12);
  --schatten-dialog: 0 24px 60px rgba(0, 0, 0, .2);

  /* Kartenfarben (Namen wie in den Daten) */
  --k-salbei: #DCEFD2;
  --k-sand: #F7E9B9;
  --k-himmel: #D7E7F6;
  --k-rose: #F7DCD5;
  --k-flieder: #E6DFF3;
  --k-weiss: #ffffff;
  --k-text: #1c2a1d;

  --schrift-kopf: 'Open Sans', system-ui, sans-serif;
  --schrift-text: 'Work Sans', system-ui, sans-serif;
  --beruehren: 44px;
}

body.auftritt-seiler {
  --akzent: #377A00;
  --akzent-hell: #EAF7EB;
  --akzent-dunkel: #2d5f00;
  --akzent-rand: #cfe3c5;
}

/* Beraterhaus: Farbe nur aus dem Logo, Linien leicht gewärmt, Schrift neutral grau statt grünlich */
body.auftritt-bhk {
  --akzent: #9e2a22;
  --akzent-hell: #F9F0ED;
  --akzent-dunkel: #7d211b;
  --akzent-rand: #e6c9c2;
  --ink: #2B2B2B;
  --head: #2B2B2B;
  --muted: #7A7A7A;
  --linie: #E3C9C2;
}

/* Neutral: ohne Logo, Akzent Graphit */
body.auftritt-neutral {
  --akzent: #3A3A3A;
  --akzent-hell: #eeefec;
  --akzent-dunkel: #262626;
  --akzent-rand: #d4d6d1;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

body {
  font-family: var(--schrift-text);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 { font-family: var(--schrift-kopf); font-weight: 600; color: var(--head); line-height: 1.25; }
h1 { font-size: 26px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
b, strong { font-weight: 500; }
a { color: var(--akzent); }
img { max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 2.5px solid var(--akzent); outline-offset: 2px; }

/* Logos: je Auftritt nur das passende sichtbar; neutral zeigt keines */
.logo { display: block; height: 26px; width: auto; }
.logo.logo-bhk, .logo.logo-seiler { display: none; }
body.auftritt-seiler .logo.logo-seiler { display: block; }
body.auftritt-bhk .logo.logo-bhk { display: block; }

/* Kleine Überschrift in Versalien (Attrappe: .kl, Stapelfeld h4) */
.klein {
  font: 500 12px var(--schrift-text);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Knöpfe: Hauptknopf im Akzent, .zweit weiß mit Rand, .warn für Löschen und Zurücksetzen */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--beruehren);
  min-width: var(--beruehren);
  padding: 11px 20px;
  font: 500 15px var(--schrift-text);
  line-height: 1.2;
  color: #fff;
  background: var(--akzent);
  border: 1px solid var(--akzent);
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: filter .12s;
  -webkit-tap-highlight-color: transparent;
}
.knopf:hover { filter: brightness(.93); }
.knopf:active { filter: brightness(.86); }
.knopf.zweit { background: #fff; color: var(--ink); border-color: var(--rand-feld); }
.knopf.zweit:hover { filter: none; background: #f3f5f1; }
.knopf.warn { background: var(--warn); border-color: var(--warn); color: #fff; }
.knopf.breit { width: 100%; padding: 15px; font-size: 17px; border-radius: 10px; }
.knopf:disabled, .knopf[aria-disabled="true"] { opacity: .5; cursor: default; filter: none; }

/* Schwebende Fläche über dem Board (Titel, Leute, Werkzeuge, Zoom); die Lage setzt board.css */
.pille {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 12px;
  box-shadow: var(--schatten-pille);
}

/* Eingabefeld */
.feld {
  display: block;
  width: 100%;
  min-height: var(--beruehren);
  padding: 11px 13px;
  font: 400 15px var(--schrift-text);
  color: var(--ink);
  background: #fafbf9;
  border: 1.5px solid var(--rand-feld);
  border-radius: 10px;
  outline: 0;
  transition: border-color .12s;
}
.feld:focus { border-color: var(--akzent); background: #fff; }
.feld.gross { padding: 14px 16px; font-size: 18px; background: #fff; }
.feld::placeholder { color: #8a968b; }
textarea.feld { resize: vertical; line-height: 1.45; }
label.beschriftung { display: block; margin: 14px 0 6px; font-size: 14px; color: var(--muted); }

/* Dialog über einem Schleier; ausblenden mit dem Attribut hidden am Schleier */
.schleier {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(21, 23, 22, .28);
}
.dialog {
  width: 520px;
  max-width: 100%;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 28px 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--schatten-dialog);
}
.dialog h2 { margin-bottom: 6px; }
.dialog p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.dialog .knoepfe { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* Hinweis- und Fehlermeldung (im Formular oder schwebend) */
.meldung {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--akzent-dunkel);
  background: var(--akzent-hell);
  border: 1px solid var(--akzent-rand);
  border-radius: 10px;
}
.meldung.fehler { color: #8a2f1c; background: #fbebe6; border-color: #efc7bb; }
.meldung.achtung { color: #6b4e00; background: #fff8e6; border-color: #f0dca0; }

/* Schalter „Ansicht“ (js/ansicht.js) in Verwaltung und Board */
.ansicht-segmente {
  display: inline-flex; align-items: center; gap: 2px; padding: 2px 3px 2px 12px;
  background: #fff; border: 1px solid var(--linie); border-radius: 12px; font-size: 13.5px; color: var(--muted);
}
.ansicht-segmente .ansicht-lab { margin-right: 4px; white-space: nowrap; }
.ansicht-segmente .ansicht-wahl { display: inline-flex; gap: 2px; }
.ansicht-knopf {
  min-width: 44px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent;
  font: 400 13.5px var(--schrift-text); color: var(--ink); cursor: pointer; white-space: nowrap;
}
.ansicht-knopf:hover { background: #f3f5f1; }
.ansicht-knopf.an { background: var(--akzent-hell); color: var(--akzent-dunkel); font-weight: 500; }
/* Nicht in der eigenen Ansicht: deutlich in der Akzentfarbe */
.ansicht-segmente.fremd { border-color: var(--akzent); }
.ansicht-segmente.fremd .ansicht-lab { color: var(--akzent); font-weight: 500; }
.ansicht-segmente.fremd .ansicht-knopf.an { background: var(--akzent); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
