@font-face {
  font-family: Inter;
  src: url("/brand/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("/brand/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #332b4d;
  --muted: #6b6875;
  --brand: #4b3f72;
  --accent: #f2c879;
  --surface: #fff;
  --bg: #fbf7f0;
  --line: #e6dfe9;
  --danger: #a43b35;
  --radius: 16px;
  /* Farbvariablen je Verwendung (t = Schrift, f = Fläche/Rahmen/Schatten), Dunkelmodus 20.10.2026 */
  --brand-text: #4b3f72;
  --accent-text: #f2c879;
  --danger-text: #a43b35;
  --f-000000: #000000;
  --f-12313b66: #12313b66;
  --f-1d1830: #1d1830;
  --f-1d7a3e: #1d7a3e;
  --f-29223e: #29223e;
  --f-332b4d: #332b4d;
  --f-3d3256: #3d3256;
  --f-4b3f72: #4b3f72;
  --f-6b537633: #6b537633;
  --f-6b6875: #6b6875;
  --f-9478b1: #9478b1;
  --f-b3a0c8: #b3a0c8;
  --f-b6ce92: #b6ce92;
  --f-b89955: #b89955;
  --f-c69214: #c69214;
  --f-c6b9d1: #c6b9d1;
  --f-d4e0c3: #d4e0c3;
  --f-dcd3e8: #dcd3e8;
  --f-e2d9ed: #e2d9ed;
  --f-e4cc99: #e4cc99;
  --f-e4e1ec: #e4e1ec;
  --f-e7b75f: #e7b75f;
  --f-eaf4e9: #eaf4e9;
  --f-ecc8c0: #ecc8c0;
  --f-ecdcae: #ecdcae;
  --f-ede7ef: #ede7ef;
  --f-edf1f5: #edf1f5;
  --f-edf3e7: #edf3e7;
  --f-eee6f4: #eee6f4;
  --f-eee8d7: #eee8d7;
  --f-eee8f4: #eee8f4;
  --f-eef3e6: #eef3e6;
  --f-f0dcb0: #f0dcb0;
  --f-f0e8f6: #f0e8f6;
  --f-f1eaf5: #f1eaf5;
  --f-f2c879: #f2c879;
  --f-f2eafa: #f2eafa;
  --f-f2edf8: #f2edf8;
  --f-f2f8e8: #f2f8e8;
  --f-f3edf7: #f3edf7;
  --f-f5d99d: #f5d99d;
  --f-f8f4ec: #f8f4ec;
  --f-f8f4fc: #f8f4fc;
  --f-f9efd9: #f9efd9;
  --f-faf0d9: #faf0d9;
  --f-faf1df: #faf1df;
  --f-faf8f2: #faf8f2;
  --f-fbe7e4: #fbe7e4;
  --f-fbf7f0: #fbf7f0;
  --f-fff0ed: #fff0ed;
  --f-fff1da: #fff1da;
  --f-fff4d4: #fff4d4;
  --f-fff4df: #fff4df;
  --f-fff6df: #fff6df;
  --f-fff7f5: #fff7f5;
  --f-fffaf0: #fffaf0;
  --f-fffcf8: #fffcf8;
  --f-ffffff: #ffffff;
  --f-ffffffed: #ffffffed;
  --s-092f4833: #092f4833;
  --s-4b3f7210: #4b3f7210;
  --s-4b3f7212: #4b3f7212;
  --s-4b3f7225: #4b3f7225;
  --t-2a2238: #2a2238;
  --t-332b4d: #332b4d;
  --t-40552d: #40552d;
  --t-406440: #406440;
  --t-425531: #425531;
  --t-465b32: #465b32;
  --t-4b3f72: #4b3f72;
  --t-4d6470: #4d6470;
  --t-6b6680: #6b6680;
  --t-6b6b6b: #6b6b6b;
  --t-705522: #705522;
  --t-715200: #715200;
  --t-795813: #795813;
  --t-7a2a1d: #7a2a1d;
  --t-7b540a: #7b540a;
  --t-802d28: #802d28;
  --t-913b32: #913b32;
  --t-b3acc7: #b3acc7;
  --t-c7c1d9: #c7c1d9;
  --t-ddd6e8: #ddd6e8;
  --t-e6dfed: #e6dfed;
  --t-efebf7: #efebf7;
  --t-f2c879: #f2c879;
  --t-f7ecff: #f7ecff;
  --t-ffffff: #ffffff;
  /* dunkle Schrift auf Akzentgelb, in beiden Darstellungen gleich */
  --auf-akzent: #2a2238;
  color-scheme: light;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
/* Logo auf hellen Flächen: dunkle Schrift im hellen, helle Schrift im dunklen Modus. */
img.logo-dunkel {
  display: none;
}
:root[data-darstellung="dunkel"] img.logo-hell {
  display: none;
}
:root[data-darstellung="dunkel"] img.logo-dunkel {
  display: inline-block;
}
/* Dunkelmodus (pwa/public/darstellung.js setzt data-darstellung). */
:root[data-darstellung="dunkel"] {
  color-scheme: dark;
  --ink: #ece8f5;
  --muted: #b3aec2;
  --brand: #4b3f72;
  --brand-text: #c9bdf0;
  --accent: #f2c879;
  --accent-text: #f2c879;
  --surface: #221d2e;
  --bg: #16131d;
  --line: #3a334a;
  --danger: #a43b35;
  --danger-text: #f0a39d;
  --f-000000: #000000;
  --f-12313b66: #12313b66;
  --f-1d1830: #1d1830;
  --f-1d7a3e: #1d7a3e;
  --f-29223e: #29223e;
  --f-332b4d: #332b4d;
  --f-3d3256: #3d3256;
  --f-4b3f72: var(--brand);
  --f-6b537633: #c2b2c933;
  --f-6b6875: #6b6875;
  --f-9478b1: #9478b1;
  --f-b3a0c8: #564a63;
  --f-b6ce92: #5e6d47;
  --f-b89955: #b89955;
  --f-c69214: #c69214;
  --f-c6b9d1: #494050;
  --f-d4e0c3: #3f4833;
  --f-dcd3e8: #322b3c;
  --f-e2d9ed: #2e2638;
  --f-e4cc99: #675735;
  --f-e4e1ec: #2b253a;
  --f-e7b75f: #8e713c;
  --f-eaf4e9: #251f31;
  --f-ecc8c0: #4b2f29;
  --f-ecdcae: #584c2b;
  --f-ede7ef: #272235;
  --f-edf1f5: #231d2f;
  --f-edf3e7: #262033;
  --f-eee6f4: #262033;
  --f-eee8d7: #3a3425;
  --f-eee8f4: #252032;
  --f-eef3e6: #262134;
  --f-f0dcb0: #564827;
  --f-f0e8f6: #241f31;
  --f-f1eaf5: #241f30;
  --f-f2c879: #f2c879;
  --f-f2eafa: #221d2e;
  --f-f2edf8: #211c2d;
  --f-f2f8e8: #231e30;
  --f-f3edf7: #221d2e;
  --f-f5d99d: #f5d99d;
  --f-f8f4ec: #221d2e;
  --f-f8f4fc: #1d1927;
  --f-f9efd9: #292338;
  --f-faf0d9: #292337;
  --f-faf1df: #262134;
  --f-faf8f2: #1e1a29;
  --f-fbe7e4: #241f30;
  --f-fbf7f0: var(--bg);
  --f-fff0ed: #1e1a29;
  --f-fff1da: #262134;
  --f-fff4d4: #292337;
  --f-fff4df: #241f31;
  --f-fff6df: #241f31;
  --f-fff7f5: #1b1725;
  --f-fffaf0: #1d1928;
  --f-fffcf8: #1a1623;
  --f-ffffff: var(--surface);
  --f-ffffffed: #17141fed;
  --s-092f4833: #092f4833;
  --s-4b3f7210: #4b3f7210;
  --s-4b3f7212: #4b3f7212;
  --s-4b3f7225: #4b3f7225;
  --t-2a2238: #dad5e4;
  --t-332b4d: var(--ink);
  --t-40552d: #d0ddc3;
  --t-406440: #bbd1bb;
  --t-425531: #cfdbc4;
  --t-465b32: #cddac0;
  --t-4b3f72: var(--brand-text);
  --t-4d6470: #b4c2c9;
  --t-6b6680: #aeabba;
  --t-6b6b6b: #b7b7b7;
  --t-705522: #e4d3b3;
  --t-715200: #fbe6b0;
  --t-795813: #eed9ad;
  --t-7a2a1d: #e7b5ad;
  --t-7b540a: #f4dbab;
  --t-802d28: #e0adaa;
  --t-913b32: #daa5a0;
  --t-b3acc7: #b3acc7;
  --t-c7c1d9: #c7c1d9;
  --t-ddd6e8: #ddd6e8;
  --t-e6dfed: #e6dfed;
  --t-efebf7: #efebf7;
  --t-f2c879: var(--accent-text);
  --t-f7ecff: #f7ecff;
  --t-ffffff: #ffffff;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button,
a {
  cursor: pointer;
}
button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--f-ffffff);
  color: var(--ink);
  padding: 10px 15px;
  font-weight: 600;
}
button:hover {
  background: var(--f-f3edf7);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--t-4b3f72);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--f-9478b1);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -1.2px;
  line-height: 1.2;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 13px;
}
.primary {
  background: var(--brand);
  color: var(--t-ffffff);
  border-color: var(--brand);
}
.primary:hover {
  background: var(--f-332b4d);
}
.subtle {
  background: transparent;
  border-color: transparent;
}
.shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: var(--f-ffffff);
  border-right: 1px solid var(--line);
  padding: 26px 15px;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.8px;
}
.logo img {
  width: 39px;
  height: 39px;
}
.sidebar .logo {
  padding: 0 10px;
}
.workspace {
  margin: 0 8px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
}
.workspace small {
  display: block;
}
.nav {
  display: grid;
  gap: 4px;
}
.nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 13px;
  border-radius: 10px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 550;
}
.nav a.active {
  color: var(--brand-text);
  background: var(--f-eee8f4);
  font-weight: 700;
}
.nav a:hover {
  background: var(--bg);
}
.nav-label {
  font-size: 11px;
  letter-spacing: 1.3px;
  color: var(--muted);
  margin: 18px 12px 7px;
  text-transform: uppercase;
  font-weight: 700;
}
.nav-label:first-child {
  margin-top: 0;
}
.side-bottom {
  margin-top: auto;
  padding: 14px 10px 0;
  border-top: 1px solid var(--line);
}
.side-bottom p {
  font-size: 13px;
}
.content {
  min-width: 0;
}
.topbar {
  background: var(--f-ffffffed);
  border-bottom: 1px solid var(--line);
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
  gap: 12px;
}
.topbar .date {
  font-size: 14px;
  color: var(--muted);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--f-eee8f4);
  font-size: 13px;
  font-weight: 700;
}
.demo-tag {
  font-size: 12px;
  border: 1px solid var(--f-b6ce92);
  color: var(--t-40552d);
  border-radius: 20px;
  background: var(--f-f2f8e8);
  padding: 5px 10px;
  white-space: nowrap;
}
.main {
  max-width: 1500px;
  padding: 32px 36px 48px;
  margin: auto;
}
.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.pagehead p {
  color: var(--muted);
  margin-top: 7px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 750;
  color: var(--muted);
  margin-bottom: 10px;
}
.welcome {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  background: var(--brand);
  color: var(--t-ffffff);
  padding: 28px 30px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
}
.welcome h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
}
.welcome p {
  color: var(--t-e6dfed);
  margin-top: 8px;
  max-width: 530px;
}
.welcome .eyebrow {
  color: var(--t-f2c879);
}
.welcome button {
  background: var(--accent);
  color: var(--auf-akzent);
  border: 0;
  align-self: center;
  white-space: nowrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: var(--radius);
  display: block;
}
.stat:hover {
  border-color: var(--f-b3a0c8);
  color: var(--ink);
}
.stat label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.stat strong {
  display: block;
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 8px 0;
}
.stat small {
  display: block;
  font-size: 12px;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 22px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
  min-width: 0;
}
.panelhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.panelhead a {
  font-size: 13px;
  font-weight: 650;
  color: var(--t-4b3f72);
}
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--f-ede7ef);
  min-width: 0;
}
.row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.row:first-child {
  padding-top: 0;
}
.row .grow {
  flex: 1;
  min-width: 0;
}
.row p,
.row strong,
.record h3 {
  overflow-wrap: anywhere;
}
.row small {
  display: block;
  margin-top: 3px;
}
.row .badge {
  flex-shrink: 0;
}
.initial {
  display: grid;
  place-items: center;
  background: var(--f-f1eaf5);
  border-radius: 11px;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
}
.time {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  width: 52px;
  flex-shrink: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 6px;
  padding: 4px 8px;
  background: var(--f-edf3e7);
  color: var(--t-465b32);
  font-size: 12px;
  font-weight: 650;
  white-space: normal;
}
.badge.warn {
  background: var(--f-fff1da);
  color: var(--t-7b540a);
}
.badge.neutral {
  background: var(--f-edf1f5);
  color: var(--t-4d6470);
}
.badge.danger {
  background: var(--f-fbe7e4);
  color: var(--t-913b32);
}
.quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.quick button {
  font-size: 13px;
  text-align: left;
  background: var(--bg);
  padding: 13px 12px;
}
.quick button span {
  display: block;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 8px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
input,
select,
textarea {
  border: 1px solid var(--f-c6b9d1);
  border-radius: 9px;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--f-ffffff);
  max-width: 100%;
  width: 100%;
}
input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
.toolbar input {
  flex: 1;
  min-width: 140px;
}
.toolbar select {
  width: auto;
}
.records {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.record {
  background: var(--f-ffffff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}
.record h3 {
  font-size: 18px;
  margin: 10px 0 7px;
}
.record p {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 14px;
}
.record .actions {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.record .actions button {
  font-size: 13px;
}
.empty {
  text-align: center;
  padding: 45px 20px;
  border: 1px dashed var(--f-c6b9d1);
  border-radius: var(--radius);
  background: var(--f-ffffff);
  color: var(--muted);
}
.notice {
  background: var(--f-eef3e6);
  border: 1px solid var(--f-d4e0c3);
  color: var(--t-425531);
  border-radius: 11px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
}
.notice.error {
  background: var(--f-fff0ed);
  border-color: var(--f-ecc8c0);
  color: var(--t-913b32);
}
.stack {
  display: grid;
  gap: 16px;
}
.settings {
  max-width: 760px;
}
.field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
}
.field small {
  font-weight: 400;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field.wide {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.mobilebar,
.mobile-menu {
  display: none;
}
dialog {
  /* eigene Fläche statt der Systemfarbe „Canvas“ (im Dunkelschema fast schwarz) */
  background-color: var(--surface);
  color: var(--ink);
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100dvh - 30px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  box-shadow: 0 25px 100px var(--s-092f4833);
}
dialog::backdrop {
  background: var(--f-12313b66);
  backdrop-filter: blur(3px);
}
dialog h2 {
  margin-bottom: 8px;
}
dialog .intro {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}
.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(145deg, var(--f-eee6f4), var(--f-fbf7f0) 50%, var(--f-f9efd9));
}
.login-card {
  width: 100%;
  max-width: 450px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--f-ffffff);
}
.login-card h1 {
  margin: 34px 0 12px;
}
.login-card form {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}
.login-card .primary {
  width: 100%;
}
.login-card small {
  display: block;
  margin-top: 24px;
}
.login-card .demo-tag {
  display: inline-block;
  margin-top: 24px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--t-ffffff);
  z-index: 20;
  box-shadow: 0 8px 35px var(--s-4b3f7225);
  max-width: calc(100vw - 32px);
  display: none;
}
#toast.visible {
  display: block;
}
.chat {
  max-width: 850px;
}
.chat-message {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--f-ffffff);
  margin: 16px 0;
  overflow-wrap: anywhere;
}
.chat-message.mine {
  background: var(--f-f3edf7);
  margin-left: 30px;
}
.chat form {
  display: flex;
  gap: 10px;
}
.chat button {
  flex-shrink: 0;
}
.mini-list {
  margin-top: 12px;
}
.mini-list p {
  border-top: 1px solid var(--line);
  padding: 8px 0;
  font-size: 14px;
}
.loading {
  padding: 40px;
}
.totals {
  background: var(--bg);
  padding: 16px;
  border-radius: 10px;
  margin-top: 14px;
}
.link-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.link-list a {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.footer-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 28px;
}
.overflow-anywhere {
  overflow-wrap: anywhere;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.detail-grid dt {
  color: var(--muted);
  font-size: 12px;
}
.detail-grid dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.pillbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.pillbar a {
  border: 1px solid var(--line);
  background: var(--f-ffffff);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
}
.pillbar a.selected {
  background: var(--brand);
  color: var(--t-ffffff);
}
.photo {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
}
.lock {
  padding: 32px;
}
.record-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.audit {
  white-space: pre-wrap;
  font-size: 12px;
  overflow-wrap: anywhere;
  background: var(--bg);
  padding: 12px;
  border-radius: 8px;
}
.error-text {
  color: var(--danger-text);
  font-size: 14px;
  min-height: 21px;
}
.offline-banner {
  margin: 0;
  border-radius: 0;
  background: var(--f-fff1da);
  border: 0;
  color: var(--t-7b540a);
}
.install-help {
  font-size: 14px;
}
.section-gap {
  margin-top: 25px;
}
@media (min-width: 1600px) {
  .main {
    padding-top: 40px;
  }
  .stats {
    gap: 22px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  .main {
    padding: 25px;
  }
  .topbar {
    padding: 14px 25px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .quick {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .welcome {
    flex-wrap: wrap;
  }
  .sidebar {
    padding: 22px 10px;
  }
  .nav a {
    font-size: 13px;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .topbar {
    min-height: 66px;
    padding: 12px 18px;
  }
  .topbar .date {
    display: none;
  }
  .topbar .mobile-logo {
    display: flex;
  }
  .mobile-logo {
    font-weight: 750;
    font-size: 20px;
  }
  .main {
    padding: 24px 18px 110px;
  }
  .pagehead {
    align-items: flex-start;
    gap: 12px;
  }
  .pagehead p {
    font-size: 14px;
  }
  .pagehead button {
    font-size: 13px;
    padding: 9px 12px;
    flex-shrink: 0;
  }
  .welcome {
    padding: 22px;
  }
  .welcome h2 {
    font-size: 21px;
  }
  .welcome p {
    font-size: 14px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 25px;
  }
  .stat label {
    font-size: 12px;
  }
  .columns {
    gap: 0;
  }
  .panel {
    padding: 20px;
  }
  .quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .records {
    grid-template-columns: 1fr;
  }
  .record {
    padding: 20px;
  }
  .mobilebar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--f-ffffff);
    border-top: 1px solid var(--line);
    z-index: 5;
    padding: 9px 4px max(9px, env(safe-area-inset-bottom));
  }
  .mobilebar a {
    min-height: 48px;
    font-size: 10px;
    text-align: center;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    color: var(--muted);
    border-radius: 8px;
  }
  .mobilebar a.active {
    color: var(--brand-text);
    background: var(--f-eee8f4);
  }
  .mobile-menu {
    display: block;
  }
  .mobile-menu .nav {
    grid-template-columns: 1fr 1fr;
  }
  .mobile-menu .nav-label {
    grid-column: 1/-1;
  }
  .formgrid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .formgrid .wide {
    grid-column: auto;
  }
  .chat form {
    flex-wrap: wrap;
  }
  .chat input {
    flex: 1;
    min-width: 160px;
  }
  .login-card {
    padding: 26px;
  }
  .row {
    gap: 10px;
  }
  .row .badge {
    max-width: 90px;
  }
  .top-actions {
    gap: 8px;
  }
  .top-actions .install-label {
    display: none;
  }
  dialog {
    padding: 22px 18px;
  }
  .link-list {
    grid-template-columns: 1fr;
  }
  #toast {
    bottom: 95px;
  }
  .avatar {
    display: none;
  }
  .welcome button {
    width: 100%;
  }
  .panelhead h2 {
    font-size: 18px;
  }
  .panelhead a {
    font-size: 12px;
  }
}
@media (min-width: 721px) {
  .mobile-logo {
    display: none;
  }
}
@media (max-width: 350px) {
  .main {
    padding-left: 12px;
    padding-right: 12px;
  }
  .topbar {
    padding: 12px;
  }
  .stat {
    padding: 12px;
  }
  .stat strong {
    font-size: 23px;
  }
  .pagehead {
    flex-wrap: wrap;
  }
  .top-actions button {
    font-size: 12px;
    padding: 8px;
  }
  .mobile-menu .nav {
    grid-template-columns: 1fr;
  }
  .row {
    flex-wrap: wrap;
  }
  .row .grow {
    min-width: 120px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background 0.16s ease,
      border-color 0.16s ease;
  }
}
.pagehead > div {
  min-width: 0;
}
h1 {
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .pagehead {
    flex-wrap: wrap;
  }
}
.mobile-menu {
  display: block;
}
.mobile-menu .nav a {
  overflow-wrap: anywhere;
  min-width: 0;
}
@media (max-width: 720px) {
  .mobile-menu .nav {
    grid-template-columns: 1fr;
  }
}
.file-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 15px;
  background: var(--brand);
  color: var(--t-ffffff);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

/* Original Mondbüro brand: logo-lockup, Fraunces, Inter, indigo and gold. */
h1,
.welcome h2,
.login-card h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 550;
  letter-spacing: -0.6px;
}
h1 {
  font-size: clamp(30px, 3vw, 40px);
}
.sidebar {
  background: var(--f-1d1830);
  border-right-color: var(--f-332b4d);
  color: var(--t-efebf7);
}
.sidebar .logo {
  padding: 0 8px;
}
.logo .brand-lockup {
  width: 190px;
  height: auto;
  max-width: 100%;
}
.sidebar .workspace {
  background: var(--f-29223e);
  border-color: var(--f-4b3f72);
  color: var(--t-efebf7);
}
.sidebar .workspace small {
  color: var(--t-c7c1d9);
}
.sidebar .nav a {
  color: var(--t-ddd6e8);
}
.sidebar .nav a:hover {
  background: var(--f-332b4d);
}
.sidebar .nav a.active {
  color: var(--t-f2c879);
  background: var(--f-3d3256);
}
.sidebar .nav-label {
  color: var(--t-b3acc7);
}
.sidebar .side-bottom {
  border-color: var(--f-4b3f72);
}
.sidebar .side-bottom small {
  color: var(--t-c7c1d9);
}
.sidebar .side-bottom p {
  color: var(--t-f2c879);
}
.welcome {
  background:
    radial-gradient(ellipse at top right, var(--f-6b537633), transparent 70%),
    linear-gradient(115deg, var(--f-332b4d), var(--f-4b3f72));
}
.welcome button {
  color: var(--auf-akzent);
  background: linear-gradient(135deg, var(--f-f5d99d), var(--f-f2c879));
  border: 1px solid var(--f-f5d99d);
}
.welcome .eyebrow {
  color: var(--t-f2c879);
}
.welcome h2 {
  font-size: 27px;
}
.login-card .logo .brand-lockup {
  width: 235px;
}
.login-card {
  box-shadow: 0 20px 70px var(--s-4b3f7212);
}
.mobile-logo img {
  width: 132px;
  height: 46px;
  object-fit: contain;
}
.topbar {
  background: var(--f-fffcf8);
}
.initial,
.avatar {
  color: var(--t-4b3f72);
}
.primary {
  box-shadow: 0 3px 8px var(--s-4b3f7210);
}
.stat strong {
  color: var(--t-332b4d);
}
.sidebar .logo img {
  border-radius: 0;
}
.topbar .demo-tag {
  background: var(--f-faf0d9);
  border-color: var(--f-e4cc99);
  color: var(--t-705522);
}
@media (max-width: 720px) {
  .topbar {
    padding: 8px 12px;
  }
  .top-actions {
    gap: 4px;
  }
  .top-actions [data-install] {
    font-size: 12px;
    padding: 8px;
    min-height: 44px;
  }
  .mobile-logo img {
    width: 116px;
    height: 40px;
  }
  .welcome h2 {
    font-size: 25px;
  }
}
@media (max-width: 350px) {
  .topbar {
    gap: 4px;
  }
  .mobile-logo img {
    width: 99px;
    height: 36px;
  }
  .demo-tag {
    padding: 4px 7px;
    font-size: 11px;
  }
  .top-actions [data-install] {
    padding: 7px 5px;
    font-size: 11px;
  }
}
.rental-property,
.rental-unit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.rental-property:last-child,
.rental-unit:last-child {
  border-bottom: 0;
}
.rental-property > div,
.rental-unit > div {
  min-width: 0;
}
.record-link {
  display: inline-block;
  color: var(--brand-text);
  font-weight: 650;
  min-height: 44px;
  align-content: center;
  overflow-wrap: anywhere;
}
.rental-file {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.rental-file > div {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.rental-file small {
  display: block;
}
.damage-photo {
  width: 140px;
  height: 105px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.rental-video {
  width: 240px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--f-000000);
  border-radius: 10px;
  border: 1px solid var(--line);
}
.rental-property h3 {
  font-size: 20px;
}
.panelhead {
  flex-wrap: wrap;
}
h3 {
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .rental-property,
  .rental-unit {
    flex-wrap: wrap;
  }
  .rental-property .eyebrow {
    display: block;
  }
  .damage-photo {
    width: 100px;
    height: 80px;
  }
  .rental-file {
    gap: 10px;
  }
  .panelhead button {
    font-size: 13px;
  }
}
@media (max-width: 720px) {
  .rental-file { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .rental-file > .record-link, .rental-file > button { grid-column: 1 / -1; justify-self: start; }
}
.invoice-line { border:1px solid var(--line); border-radius:12px; padding:16px; margin:12px 0; min-width:0; }
.invoice-line legend { padding:0 6px; font-weight:650; }
.invoice-line .formgrid { margin-top:12px; }
.invoice-preview { white-space:pre-wrap; overflow-wrap:anywhere; font-family:inherit; background:var(--bg); padding:18px; border-radius:12px; font-size:14px; line-height:1.6; }
.archive-drop{padding:28px;border:2px dashed var(--accent,var(--f-b89955));border-radius:12px;text-align:center;cursor:pointer;background:var(--f-faf8f2);overflow-wrap:anywhere}.archive-drop.dragging{background:var(--f-eee8d7);border-style:solid}.archive-drop input{max-width:100%;margin-top:14px}#archive-progress{overflow-wrap:anywhere}

.notification-bell{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:6px;background:var(--surface)}.notification-bell span{font-size:12px;font-weight:700;min-width:18px;text-align:center;color:var(--ink)}
/* Mieterservice, Mietzahlungen: Zeilen mit Aktionen brechen auf schmalen Bildschirmen um. */
.row.stackable { flex-wrap: wrap; }
/* Auftragsakte: Angebote & Rechnungen (P-64) – Aktionen ohne Abstand nach unten. */
.belege-row .toolbar { margin-bottom: 0; }
.row.stackable .grow { min-width: 12rem; }
@media (max-width: 640px) {
  .row.stackable .grow { flex-basis: 100%; }
  .row.stackable .toolbar { width: 100%; }
}
/* Archiveingang: Ergebnis je Datei, Herkunft der Vorschläge, Verlauf */
.archive-status{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.archive-status [hidden]{display:none}
.archive-results{list-style:none;margin:12px 0 18px;padding:0;display:grid;gap:8px}
.archive-result{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);min-width:0;overflow-wrap:anywhere}
.archive-result strong{overflow-wrap:anywhere;min-width:0}
.archive-result-text{flex:1 1 100%;color:var(--muted);font-size:14px;overflow-wrap:anywhere}
.archive-result.error{border-color:var(--f-ecc8c0);background:var(--f-fff7f5)}
.archive-result.warning{border-color:var(--f-f0dcb0);background:var(--f-fffaf0)}
.archive-warning{color:var(--t-7b540a)!important;overflow-wrap:anywhere}
.archive-source{margin:-6px 0 4px;font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.archive-year{margin:0;font-size:14px}
.archive-history{margin:8px 0 0;padding-left:20px;font-size:14px;overflow-wrap:anywhere}
.archive-history ul{margin:4px 0 8px;padding-left:18px}
.archive-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;font-size:13px}
#archive-ocr-notice{background:var(--f-fffaf0);border-color:var(--f-f0dcb0);color:var(--t-7b540a)}
.archive-core{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:4px 0 8px;min-width:0}
.archive-core-text{flex:1 1 12rem;font-size:14px;color:var(--muted);overflow-wrap:anywhere;min-width:0}
.archive-core button,.archive-result button{font-size:13px}
.archive-result.core{border-color:var(--f-ecc8c0);background:var(--f-fff7f5)}
#archive-core-notice{background:var(--f-fff7f5);border-color:var(--f-ecc8c0);color:var(--t-7a2a1d)}
/* Mitarbeiter & Zeiterfassung (Pro): Erfassung am Einsatzort, Live-Teamübersicht,
   Mitarbeiteransicht und Baustellendashboard. Ab 320 px Breite nutzbar. */
.team-toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.team-live,
.team-list,
.team-days {
  list-style: none;
  margin: 0;
  padding: 0;
}
.team-live-row,
.team-list > li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  overflow-wrap: anywhere;
}
.team-live-row:first-child,
.team-list > li:first-child {
  border-top: 0;
}
.team-live-name {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.team-live-row p,
.team-list p {
  margin: 4px 0 0;
  font-size: 14px;
}
.team-hint {
  margin-top: 8px;
  font-size: 14px;
}
.team-hint p {
  margin: 0;
}
.team-staff {
  display: grid;
  gap: 12px;
}
.team-person summary {
  cursor: pointer;
  overflow-wrap: anywhere;
}
.team-facts {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}
.team-facts dt {
  font-size: 13px;
  color: var(--muted);
}
.team-facts dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}
.team-days li {
  font-size: 14px;
  padding: 2px 0;
}
.team-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.team-tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface);
  min-width: 0;
}
.team-tile span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.team-tile strong {
  display: block;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.team-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.team-photo {
  margin: 0;
  min-width: 0;
}
.team-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}
.team-photo figcaption {
  font-size: 13px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.team-actions button {
  min-height: 44px;
}
.team-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.team-preview {
  max-width: 100%;
  max-height: 40vh;
  border-radius: 10px;
  display: block;
}
/* Arbeitszeitauswertung (PV-42) */
.team-report-list {
  display: grid;
  gap: 12px;
}
.team-report-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px;
}
.team-report-days li {
  overflow-wrap: anywhere;
}
@media (max-width: 420px) {
  .team-actions button {
    flex: 1 1 100%;
  }
  .team-row {
    grid-template-columns: 1fr;
  }
}
/* Verweise auf Impressum und Datenschutz der Website (App, Anmeldung, Mieterseite). */
.legal-links {
  font-size: 13px;
  color: var(--muted);
}
.legal-links a {
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-block;
  padding: 6px 2px;
}
.app-legal {
  margin-top: 32px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* Löschweg (loeschung-ui.js) */
button.danger {
  color: var(--danger-text);
  border-color: var(--danger);
}
button.primary.danger {
  background: var(--danger);
  color: var(--t-ffffff);
}
.loesch-liste {
  margin: 8px 0 16px;
  padding-left: 18px;
  max-height: 240px;
  overflow-y: auto;
}
.loesch-liste li small {
  display: block;
  color: var(--muted, var(--t-6b6b6b));
}
.loesch-tabelle {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  table-layout: fixed;
}
.loesch-tabelle th,
.loesch-tabelle td {
  overflow-wrap: anywhere;
}
@media (max-width: 560px) {
  .loesch-tabelle thead {
    display: none;
  }
  .loesch-tabelle tr,
  .loesch-tabelle td {
    display: block;
  }
  .loesch-tabelle td + td {
    border-top: 0;
    padding-top: 0;
  }
}
.loesch-tabelle th,
.loesch-tabelle td {
  text-align: left;
  vertical-align: top;
  padding: 6px 8px;
  border-top: 1px solid var(--line);
}

/* Hilfe & erste Schritte (hilfe-ui.js) */
.help-list { margin: .5rem 0 0 1.2rem; padding: 0; }
.help-list li { margin: .35rem 0; }

/* Erste Schritte (erster-durchlauf-ui.js) */
.button-link { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 15px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.first-run-progress progress { width: 100%; height: 10px; accent-color: var(--brand-text); }
.first-run-progress p { margin: .25rem 0 0; }
.first-run-steps { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
.first-run-step.done { opacity: .8; }
.first-run-step h2 { font-size: 1.1rem; }
.first-run-step .archive-drop { min-height: 4rem; }
.first-run-chain { margin: .75rem 0 0 1.2rem; padding: 0; display: grid; gap: .35rem; }
.first-run-chain li strong { display: inline-block; min-width: 9rem; }
.first-run-chain li a, .first-run-chain li span { overflow-wrap: anywhere; }

/* Nachrichten: Push-Auswahl je Art (notifications-ui.js) */
.push-arten { border: 0; padding: 0; margin: 0; min-width: 0; }
.push-arten legend { padding: 0; margin-bottom: 0.5rem; }

/* Navigation in Abschnitten (Inhaber 09.10.2026): Seitenleiste und „Mehr“ gleich. */
.nav-group { display: grid; gap: 2px; min-width: 0; }
.nav-group + .nav-group { margin-top: 6px; }
.nav-group .nav-label { margin: 12px 13px 4px; }
.nav-group:first-child .nav-label { margin-top: 0; }
.nav a { min-width: 0; }
.nav a.nav-dezent { font-size: 13px; font-weight: 500; opacity: .85; }
.nav :focus-visible, .mobilebar a:focus-visible, .finanz-reiter a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sidebar .nav { gap: 0; }
.sidebar .nav a { min-height: 40px; padding: 8px 13px; }
.mobile-menu .nav-group { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; column-gap: 8px; }
.mobile-menu .nav-group .nav-label { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .mobile-menu .nav-group { grid-template-columns: 1fr; }
}
/* Reiter im Bereich „Rechnungen“ */
.finanz-reiter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.finanz-reiter a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 550; color: var(--ink); text-decoration: none; }
.finanz-reiter a:hover { background: var(--f-eee8f4); }
.finanz-reiter a.active { background: var(--brand); border-color: var(--brand); color: var(--t-ffffff); font-weight: 650; }
@media (max-width: 720px) {
  .finanz-reiter { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .finanz-reiter a { flex: 0 0 auto; }
}

/* Klappmenüs (Inhaber 09.10.2026): Abschnittskopf als Schalter, Pfeil dreht sich.
   Eingeklappt: Höhe 0, unsichtbar und inert (nicht fokussierbar, nicht vorgelesen). */
.nav-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 40px; margin: 6px 0 0; padding: 8px 13px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; text-align: left; cursor: pointer; }
.nav-kopf:hover { background: var(--bg); color: var(--ink); }
.nav-kopf:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.nav-group .nav-kopf .nav-label { margin: 0; color: inherit; }
.nav-pfeil { flex: 0 0 auto; transform: rotate(0deg); }
.nav-klapp.offen .nav-pfeil { transform: rotate(90deg); }
.nav-klapp.offen .nav-kopf { color: var(--ink); }
.nav-liste { display: grid; grid-template-rows: 1fr; }
.nav-liste > div { display: grid; gap: 2px; min-height: 0; overflow: hidden; }
.nav-klapp:not(.offen) .nav-liste { grid-template-rows: 0fr; visibility: hidden; }
/* Fokusrahmen innen, damit overflow:hidden ihn nicht abschneidet. */
.nav-liste a:focus-visible { outline-offset: -3px; }
@media (prefers-reduced-motion: no-preference) {
  .nav-pfeil { transition: transform .18s ease; }
  .nav-liste { transition: grid-template-rows .18s ease, visibility 0s linear .18s; }
  .nav-klapp.offen .nav-liste { transition: grid-template-rows .18s ease, visibility 0s; }
}
/* „Mehr“ (Handy): Köpfe über die volle Breite, Einträge darunter im Raster. */
.mobile-menu .nav-klapp { grid-template-columns: 1fr; }
.mobile-menu .nav-liste > div { grid-template-columns: 1fr 1fr; column-gap: 8px; }
@media (max-width: 720px) {
  .mobile-menu .nav-liste > div { grid-template-columns: 1fr; }
}
/* Dunkle Seitenleiste: Köpfe in den Farben der bisherigen Abschnittsüberschriften. */
.sidebar .nav-kopf { color: var(--t-b3acc7); }
.sidebar .nav-kopf:hover { background: var(--f-332b4d); color: var(--t-efebf7); }
.sidebar .nav-klapp.offen .nav-kopf { color: var(--t-efebf7); }

/* Ruhige Standardansicht: ein Tagesfokus, kurze Vorschauen und klare Vertiefung. */
.dashboard-quiet { display: grid; gap: 20px; }
.dashboard-quiet > .panel, .dashboard-card { margin-bottom: 0; }
.dashboard-today { border-left: 4px solid var(--brand); }
.dashboard-summary { color: var(--muted); margin: 0 0 12px; }
.dashboard-actions { padding: 2px 0 6px; }
.dashboard-actions h2 { font-size: 16px; margin-bottom: 12px; }
.dashboard-actions .toolbar { flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.dashboard-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dashboard-card { min-width: 0; text-decoration: none; color: var(--ink); }
.dashboard-card h2 { font-size: 17px; }
.dashboard-card .panelhead { align-items: flex-start; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.dashboard-card .row { padding: 12px 0; }
.dashboard-number { display: block; font-size: 26px; margin: 12px 0; }
.dashboard-fold { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 16px 0; background: var(--surface); }
.dashboard-fold > summary { cursor: pointer; font-weight: 600; color: var(--brand-text); overflow-wrap: anywhere; }
.dashboard-fold[open] > summary { margin-bottom: 16px; }
.dashboard-fold > .panel { margin-bottom: 0; border: 0; padding: 0; }
.dashboard-fold .dashboard-cards { margin-bottom: 18px; }
.dashboard-fold summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 5px; border-radius: 3px; }
.dashboard-cost-note { padding: 4px 0 18px; }
.dashboard-cost-note h2 { font-size: 16px; }
.first-run-card { margin-top: 22px; }
@media (max-width: 1000px) { .dashboard-cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) {
  .dashboard-cards { grid-template-columns: minmax(0,1fr); }
  .dashboard-fold { padding: 16px; }
  .dashboard-actions .toolbar > button { white-space: normal; }
}

.dashboard-warning { background: var(--f-fff4df); border-color: var(--accent); color: var(--ink); }
/* Schiebeschalter (schalter.js): an = Knopf rechts, Spur grün; aus = Knopf
   links, Spur weiß mit Rand. Das unsichtbare Kontrollkästchen liegt über dem
   ganzen Schalter (Trefferfläche mindestens 44 × 44 px). */
.schalter {
  --schalter-an: var(--f-1d7a3e);
  --schalter-rand: var(--f-6b6875);
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  min-width: 44px;
  padding: 2px 0;
  cursor: pointer;
}
.schalter > input[type="checkbox"][role="switch"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: inherit;
  z-index: 1;
}
.schalter-spur {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 32px;
  border: 2px solid var(--schalter-rand);
  border-radius: 999px;
  background: var(--f-ffffff);
}
.schalter-knopf {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--schalter-rand);
  transform: translateX(0);
}
.schalter > input:checked + .schalter-spur {
  background: var(--schalter-an);
  border-color: var(--schalter-an);
}
.schalter > input:checked + .schalter-spur .schalter-knopf {
  background: var(--f-ffffff);
  transform: translateX(22px);
}
.schalter > input:focus-visible + .schalter-spur {
  outline: 3px solid var(--f-9478b1);
  outline-offset: 3px;
}
.schalter-text {
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.schalter-beschriftung {
  font-weight: 650;
}
.schalter-hinweis {
  color: var(--muted);
  font-weight: 400;
}
.schalter-zustand {
  flex: 0 0 auto;
  min-width: 2.5em;
  font-weight: 700;
  color: var(--schalter-rand);
}
.schalter-zustand::after {
  content: "Aus";
}
.schalter > input:checked ~ .schalter-zustand {
  color: var(--schalter-an);
}
.schalter > input:checked ~ .schalter-zustand::after {
  content: "An";
}
.schalter:has(> input:disabled) {
  cursor: not-allowed;
}
.schalter > input:disabled ~ .schalter-spur,
.schalter > input:disabled ~ .schalter-zustand {
  opacity: 0.55;
}
.schalter-status:empty {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .schalter-spur,
  .schalter-knopf {
    transition:
      background-color 0.15s ease,
      border-color 0.15s ease,
      transform 0.15s ease;
  }
}
