:root {
  --bg: #f3f5f8;
  --card: #ffffff;
  --ink: #1b2530;
  --muted: #5d6b7a;
  --line: #d9dfe6;
  /* Hauptfarbe (Knöpfe, aktive Auswahl, Markierungen): hier ändern.
     --primary-rgb ist dieselbe Farbe als Zahlen (R, G, B) für die halbtransparenten Stellen. */
  --primary: #2b66d1;
  --primary-rgb: 43, 102, 209;
  --focus: #8fb3f0; /* Rahmen bei Tastatur-Fokus: hellere Variante der Hauptfarbe */

  --normal-bg: #e3edfc;
  --normal-line: #7da6e8;
  --normal-dot: #6d98e0;
  --imp-bg: #fbe2e2;
  --imp-line: #e88d8d;
  --imp-dot: #e07a7a;
  --block-bg: #e5e7ea;
  --block-line: #a1a8b1;
  --block-dot: #9099a4;

  --ok-bg: #e0f3e6;
  --ok-ink: #1d6b3a;
  --err-bg: #fde6e6;
  --err-ink: #a12727;
  --info-bg: #e3edfc;
  --info-ink: #1f4f9e;

  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-top: calc(53px + env(safe-area-inset-top)); /* Platz für die feste Kopfzeile */
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

h1 { font-size: 1.5rem; line-height: 1.25; margin: 20px 0 12px; }
h2 { font-size: 1.2rem; line-height: 1.3; margin: 0; }
p { margin: 0 0 12px; }
a { color: var(--primary); }
code { background: #e9edf2; padding: 1px 6px; border-radius: 6px; font-size: .92em; }

.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; margin-top: 14px; }

/* Kopfzeile */
.top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top);
}
.topin { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; }
.who { color: var(--muted); font-size: 14px; text-align: right; }

/* Untere Navigation */
.tabs {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 10;
}
.tabs a {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 64px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
.tabs a.on { color: var(--primary); font-weight: 600; box-shadow: inset 0 3px 0 var(--primary); }
.tabs .ic { font-size: 22px; line-height: 1; }
.badge-n {
  position: absolute;
  top: 6px;
  left: calc(50% + 6px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #d33;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

/* Meldungen */
.flash { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: 10px; margin: 12px 0; font-weight: 500; }
.flash { touch-action: pan-y; }
.tabs .ic img { display: block; width: 26px; height: 26px; }
.tabs a:not(.on) .ic img { opacity: .6; }
.flash-x {
  flex: none;
  width: 28px; height: 28px;
  margin: -4px -8px -4px 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 15px;
  line-height: 1;
  opacity: .65;
  cursor: pointer;
}
.flash-x:hover { opacity: 1; background: rgba(0, 0, 0, .08); }
.flash.ok { background: var(--ok-bg); color: var(--ok-ink); }
.flash.err { background: var(--err-bg); color: var(--err-ink); }
.flash.info { background: var(--info-bg); color: var(--info-ink); }

/* Kalender */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.cal-head h1 { margin: 0; font-size: 1.05rem; text-align: center; }
.nav-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 24px;
  line-height: 1;
}
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; }
.dow { text-align: center; font-size: 13px; color: var(--muted); padding: 4px 0; }
.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 52px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}
.day .num { font-size: 16px; font-weight: 600; }
.day.today { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.day.sel { background: var(--primary); border-color: var(--primary); color: #fff; }
.dots { display: flex; gap: 3px; height: 8px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot.normal { background: var(--normal-dot); }
.dot.important { background: var(--imp-dot); }
.dot.block { background: var(--block-dot); }
.day.sel .dot { box-shadow: 0 0 0 1.5px #fff; }

.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.legend .dot { margin-right: 6px; vertical-align: middle; }

.day-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 24px 0 12px; }

.empty {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
}

/* Termin-Karten */
.appt {
  background: var(--card);
  border: 1px solid var(--line);
  border-left-width: 8px;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.appt.normal { background: var(--normal-bg); border-color: var(--normal-line); }
.appt.important { background: var(--imp-bg); border-color: var(--imp-line); }
.appt.block { background: var(--block-bg); border-color: var(--block-line); }
.appt.mine { box-shadow: 0 0 0 2px rgba(var(--primary-rgb), .45); }

.appt-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.time { font-weight: 650; font-variant-numeric: tabular-nums; }
.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(0, 0, 0, .12);
  white-space: nowrap;
}
.chip.normal { color: #1f4f9e; }
.chip.important { color: #8c2323; }
.chip.block { color: #444b55; }
.chip.role { color: var(--ink); background: #eef1f5; }

.appt-title { font-size: 1.15rem; font-weight: 650; margin-top: 6px; }
.me { font-weight: 400; color: var(--muted); font-size: .9em; }
.contact { margin-top: 6px; font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.contact a { color: var(--ink); }
.note {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .7);
  border-radius: 8px;
  font-size: 15px;
}
.done-tag { margin-top: 8px; color: var(--ok-ink); font-weight: 600; }
.is-done .appt-title { opacity: .8; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.actions form { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b8c2ce;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.danger { color: #b02525; border-color: #e3a3a3; }
.btn.small { min-height: 32px; padding: 0 11px; font-size: 14px; border-radius: 7px; }
.btn.block { display: flex; width: 100%;  margin: 0 auto 14px; }
.btn:disabled { opacity: .6; cursor: default; }

/* Formulare */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.form label .muted { font-weight: 400; }
.form .btn { width: 100%; }
input, select, textarea {
  font: inherit;
  font-size: 16px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #b8c2ce;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.form label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; font-size: 16px; }
.check input { width: 24px; height: 24px; min-height: 24px; flex: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form h2 { margin-bottom: -4px; }

/* Art des Termins: große Auswahlflächen */
fieldset.kinds { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.kinds legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 8px; }
.form label.kind { display: block; flex: 1 1 90px; position: relative; gap: 0; }
.kind input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.kind span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  font-size: 15px;
  border-radius: 8px;
  border: 2px solid var(--line);
  font-weight: 650;
}
.kind.normal span { background: var(--normal-bg); border-color: var(--normal-line); }
.kind.important span { background: var(--imp-bg); border-color: var(--imp-line); }
.kind.block span { background: var(--block-bg); border-color: var(--block-line); }
.kind input:checked + span { outline: 2px solid var(--ink); outline-offset: 1px; }
.kind input:focus-visible + span { outline: 3px solid var(--focus); }

.login { max-width: 420px; margin: 6vh auto 0; }

/* Meldungen-Liste */
.notif { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.notif .nbody { flex: 1; min-width: 0; }
.notif form { margin: 0; }
.notif .flash-x { margin: -4px -6px 0 0; }

/* Passwort zurücksetzen (Verwaltung) */
details.pwreset summary { list-style: none; cursor: pointer; }
details.pwreset summary::-webkit-details-marker { display: none; }
.form details.pwreset summary.btn { width: auto; }
details.pwreset[open] summary { margin-bottom: 10px; }
.notif.unread { border-left: 6px solid var(--primary); background: #f1f6ff; }
.notif time { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

/* Personenliste */
.urow { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.urow.off { opacity: .6; }
.uname { font-weight: 650; }

/* Popup mit Termindetails */
.apptdlg {
  position: fixed;
  border: 0;
  padding: 0;
  border-radius: 14px;
  width: min(440px, calc(100% - 24px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  color: var(--ink);
  box-shadow: 0 16px 48px rgba(20, 30, 45, .35);
}
.apptdlg::backdrop { background: rgba(20, 30, 45, .45); }
.apptdlg .appt { margin: 0; border-radius: 0; border-width: 0 0 0 8px; padding: 16px 48px 16px 16px; min-height: 120px; }
.dlg-date { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.dlg-x {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 1;
  width: 34px; height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .8);
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
}
.dlg-x:hover { background: #fff; }

/* Benutzermenü */
.usermenu { position: relative; }
.usermenu summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 2px;
  cursor: pointer;
  max-width: 62vw;
}
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu .un { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu .ro { display: none; color: var(--muted); font-size: 14px; }
.usermenu .caret { color: var(--muted); }
.usermenu[open] .caret { color: var(--primary); }
.usermenu .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(20, 30, 45, .16);
  padding: 6px;
  z-index: 20;
}
.usermenu .menu a,
.usermenu .menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.usermenu .menu a:hover,
.usermenu .menu button:hover { background: #eef2f7; }
.usermenu .menu form { margin: 0; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.usermenu .menu button { color: #b02525; font-weight: 600; }

/* Ansichten Tag / Woche / Monat */
.views { display: flex; gap: 3px; padding: 3px; margin-top: 10px; background: #e5e9ef; border-radius: 10px; }
.views a {
  flex: 1;
  text-align: center;
  line-height: 32px;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.views a.on { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; }

/* Zeitleiste */
html, body { overflow-x: hidden; }
.tlwrap {
  margin-top: 12px;
  overflow: auto; /* nur der Kalender scrollt, nicht die ganze Seite */
  max-height: calc(100vh - 400px);
  max-height: calc(100dvh - 400px);
  min-height: 280px;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tlg { display: grid; grid-template-columns: 46px repeat(var(--cols), minmax(0, 1fr)); }
.tlg.week { min-width: 800px; }
.tl-corner, .tl-axis { position: sticky; left: 0; z-index: 3; background: #fff; }
.tl-corner { border-bottom: 1px solid var(--line); }
.tl-h { border-top: 1px solid var(--line); padding: 2px 4px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-dh {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  color: var(--ink);
  text-decoration: none;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.tl-dh b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 15px; }
.tl-dh.today b { background: var(--primary); color: #fff; }
.tl-dh { position: sticky; top: 0; z-index: 2; background: #fff; }
.tl-corner { top: 0; z-index: 4; }
.tl-col { position: relative; border-left: 1px solid var(--line); }
.tl-col.today { background: #f4f8ff; }
.tl-slot { display: block; border-top: 1px solid var(--line); }
a.tl-slot:hover { background: rgba(var(--primary-rgb), .08); }
.tl-slot.off { background: #f1f3f6; }
/* Markierter Zeitraum (Ziehen oder Tippen im Kalender) */
.tl-col, .tl-slot { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.selecting { -webkit-user-select: none; user-select: none; cursor: ns-resize; }
/* nur eine Farbfläche im Kalender, kein Termin-Aussehen */
.tl-sel {
  position: absolute;
  left: 0; right: 0;
  z-index: 1;
  background: rgba(var(--primary-rgb), .22);
  pointer-events: none;
}
.tl-slot { -webkit-user-drag: none; -webkit-tap-highlight-color: transparent; }

/* Linie für die aktuelle Uhrzeit */
.tl-now {
  position: absolute;
  left: 0; right: 0;
  height: 0;
  margin-top: -1px;
  border-top: 2px solid #a3aab3;
  z-index: 2;
  pointer-events: none;
}
.tl-now.is-today { border-top-color: #5b6470; }
.tl-now.is-today::before {
  content: "";
  position: absolute;
  left: -4px; top: -5px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #5b6470;
}

.tl-ev {
  position: absolute;
  left: 3px;
  right: 3px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 2px 6px;
  border: 1px solid;
  border-left-width: 5px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.25;
  color: var(--ink);
  text-decoration: none;
}
.tl-ev b { font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tl-ev.short { flex-direction: row; align-items: center; gap: 6px; padding-top: 0; padding-bottom: 0; line-height: 1.1; }
.tl-ev.short strong { flex: 1 1 auto; min-width: 0; }
.tl-ev.short b { flex: none; }
.tl-ev strong { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-ev em { font-style: italic; font-size: 12px; color: #3b4654; overflow: hidden; }
.wrap.wide { max-width: 1200px; }
.tl-ev.normal { background: var(--normal-bg); border-color: var(--normal-line); }
.tl-ev.important { background: var(--imp-bg); border-color: var(--imp-line); }
.tl-ev.block { background: var(--block-bg); border-color: var(--block-line); }
.tl-ev.is-done { opacity: .75; }
.week .tl-ev { left: 2px; right: 2px; padding: 1px 4px; border-left-width: 4px; font-size: 12px; }
.week .tl-ev.short { flex-direction: column; align-items: stretch; gap: 0; justify-content: center; }
.week .tl-ev.short b { font-size: 10px; }
.week .tl-ev b { font-size: 11px; }

@media (min-width: 520px) {
  .usermenu .ro { display: inline; }
}

@media (min-width: 700px) {
  body { font-size: 18px; }
  .day { min-height: 68px; }
  .day .num { font-size: 18px; }
  .form .btn { width: auto; }
}

/* PWA-Hinweis im Benutzermenü */
.usermenu .menu .pwa-hint { margin: 0; padding: 8px 14px; font-size: 14px; color: var(--muted); max-width: 240px; }

/* Feedback */
.fb-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 12px 14px; margin-bottom: 10px; }
.fb-item.unread { border-left: 4px solid var(--primary); }
.fb-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.fb-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.fb-actions { display: flex; gap: 8px; margin-top: 10px; }
.fb-actions form { margin: 0; }

/* Hinweis vor der App-Installation */
.pwa-dialog { border: 0; border-radius: 14px; padding: 20px; max-width: min(92vw, 420px); box-shadow: 0 10px 40px rgba(0,0,0,.3); color: var(--text, #1d2433); }
.pwa-dialog::backdrop { background: rgba(0,0,0,.45); }
.pwa-dialog h2 { margin: 0 0 8px; font-size: 20px; }
.pwa-dialog p { margin: 0 0 16px; line-height: 1.45; }
.pwa-dialog-btns { display: flex; gap: 10px; justify-content: flex-end; }

/* Das hidden-Attribut muss immer gewinnen (sonst überschreibt z. B. display:flex im Menü es) */
[hidden] { display: none !important; }
.usermenu .menu #pwa-install { color: var(--ink); font-weight: 400; }

/* Name oben links: Antippen wechselt die Sprache */
.top .brand { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding-right: 12px; }

/* Info-Symbol („i“ im Kreis) mit Pop-up */
.info-i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; margin-left: 6px; vertical-align: middle;
  border: 1.5px solid var(--primary); border-radius: 50%;
  color: var(--primary); background: #fff;
  font: italic 700 13px/1 Georgia, 'Times New Roman', serif; font-style: normal;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}
.info-i:hover, .info-i:focus-visible { background: var(--primary); color: #fff; outline: none; }
.info-dialog p { margin: 0 0 16px; white-space: pre-line; }
h2 .info-i { font-size: 13px; }

/* Normale Wochentage (Verwaltung) und geschlossene Tage im Wochenplan */
.daychecks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.daycheck { width: auto; min-height: 36px; }
.tl-col.closed { background: repeating-linear-gradient(135deg, #f3f5f8, #f3f5f8 8px, #eceff4 8px, #eceff4 16px); }
.adminviews { margin: 4px 0 16px; }

/* Feedback als Verlauf (Chat) */
.fb-chat { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.fb-msg { max-width: 86%; align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; }
.fb-msg.mine { align-self: flex-end; background: var(--normal-bg); border-color: var(--normal-line); border-radius: 14px 14px 4px 14px; }
.fb-msg.unread { box-shadow: inset 4px 0 0 var(--primary); }
.fb-msg .fb-meta { margin-bottom: 2px; font-size: 12px; }
.fb-thread.unread { border-left: 4px solid var(--primary); }
.fb-reply textarea { min-height: 72px; }
/* Feedback-Seite der Anwender: Eingabezeile fest unten (über der Navigation), der Verlauf scrollt mit der Seite */
.fb-page { padding-bottom: 112px; }   /* Platz, damit die letzte Nachricht nicht unter der Eingabezeile liegt */
.fb-page .fb-chat { margin: 0; }
.fb-compose {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  width: min(760px, 100%);
  bottom: calc(64px + env(safe-area-inset-bottom));   /* direkt über der unteren Navigation */
  z-index: 9;
  display: flex; gap: 8px; align-items: flex-end;
  padding: 8px 16px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.fb-compose textarea { min-height: 76px; max-height: 140px; resize: none; }   /* mehr Zeilen sichtbar: Höhe hier ändern */
.fb-send { flex: none; width: 46px; height: 46px; min-height: 0; padding: 0; border-radius: 50%; }
.fb-send svg { display: block; }