/* Design 2026 (Update 18) – Vorschau, wird nur mit ?design=2026 geladen. Aufbau: Seitenmenü, 3-Spalten-Raster, Salbei + Kundenfarbe (--accent). */
:root {
  --accent: #5F7A5A;
  --bg: #F1F0EA;
  --panel: #FAFAF7;
  --surface: #FFFFFF;
  --surface-2: #EEF0EA;
  --ink: #26302A;
  --muted: #5A665D;
  --line: #E3E6DD;
  --yolk: var(--accent);
  --yolk-ink: #FFFFFF;
  --yolk-soft: color-mix(in srgb, var(--accent) 16%, #FFFFFF);
  --green: #3C5634;
  --green-soft: #E3ECDD;
  --red: #A8402E;
  --red-soft: #FBE5DA;
  --warn: #8A5A12;
  --warn-soft: #FBF1DE;

  --f-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 22px;
  --gap: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141815;
    --panel: #1A1F1B;
    --surface: #212722;
    --surface-2: #2A312C;
    --ink: #ECEFE9;
    --muted: #A3AEA6;
    --line: #343C36;
    --yolk: color-mix(in srgb, var(--accent) 55%, #FFFFFF);
    --yolk-ink: #10140F;
    --yolk-soft: color-mix(in srgb, var(--accent) 32%, #212722);
    --green: #9CC59A;
    --green-soft: #22302A;
    --red: #EC8F7C;
    --red-soft: #3A221D;
    --warn: #E7B45A;
    --warn-soft: #362B19;
    color-scheme: dark;
  }
}

/* =========================================================
   Design 2026 (Update 18): Seitenmenü, 3-Spalten-Raster, Salbei
   ========================================================= */
h1, h2 { font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.1rem; }
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 0.9rem; font-weight: 500; }
:focus-visible { outline-color: var(--accent); }

/* Gerüst mit Seitenmenü */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.side {
  position: sticky; top: 0; align-self: start; height: 100vh; height: 100dvh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 22px;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 14px 16px max(14px, env(safe-area-inset-left, 0px));
}
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; text-decoration: none; min-width: 0; }
.side-logo { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 800; font-size: 1rem; display: grid; place-items: center; flex: none; }
.side-name { font-weight: 800; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-toggle { display: none; }
.side-nav { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.side-group { display: flex; flex-direction: column; gap: 2px; }
.side-group-title { padding: 0 12px 4px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.side-link { min-height: 42px; padding: 0 12px; border-radius: 12px; text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.side-link:hover { background: var(--surface-2); color: var(--ink); }
.side-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.side-link.is-active { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }
.side-link.is-active .side-dot { background: var(--accent); }
.side-link .nav-badge { margin-left: auto; }
.nav-badge { background: var(--accent); color: #fff; }
.side-me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 10px 0; border-top: 1px solid var(--line); }
.side-me-name { font-weight: 700; font-size: 0.9rem; flex: 1; min-width: 0; }
.side-me form { margin: 0; }

.has-shell .wrap {
  max-width: none; width: auto; min-width: 0;
  margin: 12px 12px 12px 0; border-radius: 28px; background: var(--panel);
  padding: 28px clamp(16px, 3vw, 40px) 48px; gap: var(--gap);
}
.wrap { gap: var(--gap); }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; z-index: 20; height: auto; overflow: visible; gap: 0; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; background: var(--bg); }
  .side-toggle {
    display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 0.92rem var(--f-body); cursor: pointer;
  }
  .side-nav { display: none; padding-top: 16px; max-height: calc(100dvh - 80px); overflow-y: auto; }
  .side.is-open .side-nav { display: flex; }
  .side-toggle[aria-expanded="true"] .nav-caret { transform: translateY(1px) rotate(-135deg); }
  .has-shell .wrap { margin: 0 8px 8px; border-radius: 22px; padding: 22px 14px 40px; }
}

/* Raster: drei gleich breite Spalten, Bereiche S / M / L */
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.s2 { grid-column: span 2; }
.s3 { grid-column: 1 / -1; }
.grid-main { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.grid-main > :first-child { grid-column: span 2; }
.stack { gap: var(--gap); }
.tiles, .tiles-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 860px) {
  .g3, .grid-main { grid-template-columns: minmax(0, 1fr); }
  .g3 > *, .grid-main > * { grid-column: auto; }
  .tiles, .tiles-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Flächen, Kacheln, Knöpfe */
.panel { border-radius: var(--r); padding: 22px; }
.tile { border-radius: 20px; padding: 16px 18px; }
.tile:first-child { background: var(--yolk-soft); color: var(--ink); border-color: transparent; }
.tile:first-child .tile-label, .tile:first-child .tile-sub { color: var(--muted); }
.tile:first-child .tile-num { color: var(--accent-ink); }
.tile-num, .tile-num.mono { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.02em; }
.btn { border-radius: 12px; min-height: 44px; font-weight: 700; }
.btn-sm { min-height: 36px; border-radius: 10px; }
.btn-primary { background: var(--ink); color: var(--surface); }
.flash { border-radius: 14px; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea { border-radius: 12px; }
.form input:focus, .form select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--yolk-soft); }
.wb-fill { background: color-mix(in srgb, var(--accent) 40%, var(--surface)); }
.wb-fill.is-today { background: var(--accent); }
.wb-track { border-radius: 8px; }
.link { color: var(--accent); }
@media (prefers-color-scheme: dark) { .link { color: var(--yolk); } }

/* Startseite: Was braucht dich */
.needs { background: var(--yolk-soft); border-radius: var(--r); padding: 28px 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-width: 0; }
.needs-title { margin: 0; font-size: clamp(1.7rem, 1.1rem + 1.8vw, 2.8rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 500; text-wrap: balance; }
.needs-title strong { font-weight: 800; }
.needs-sub { margin: 0; font-weight: 600; }
.need-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.need-chip { min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 9px; }
.need-chip:hover { box-shadow: inset 0 0 0 1px var(--line); }
.need-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #C8862A; }
.need-bad { background: var(--red); }
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; text-decoration: none; color: inherit; min-width: 0; }
a.kpi:hover { border-color: var(--accent); }
.kpi-label { font-size: 0.8rem; color: var(--muted); }
.kpi-num { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-sub { font-size: 0.78rem; font-weight: 600; color: var(--green); }

/* Zeitstrahl Reservierungen */
.tl { display: flex; flex-direction: column; }
.tl-row { display: grid; grid-template-columns: 52px 14px minmax(0, 1fr); gap: 14px; }
.tl-time { padding-top: 13px; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.tl-line { display: flex; flex-direction: column; align-items: center; }
.tl-line::before { content: ""; margin-top: 18px; width: 14px; height: 14px; border-radius: 50%; box-sizing: border-box; background: var(--surface); border: 3px solid var(--accent); flex: none; }
.tl-line::after { content: ""; flex: 1; width: 2px; background: var(--line); }
.tl-row:last-child .tl-line::after { background: transparent; }
.st-angekommen .tl-line::before { background: var(--accent); }
.st-storniert .tl-line::before, .st-abgelehnt .tl-line::before { border-color: var(--line); }
.tl-card { min-width: 0; padding-bottom: 10px; }
.tl .rk-time { display: none; }
@media (max-width: 520px) { .tl-row { grid-template-columns: 44px 12px minmax(0, 1fr); gap: 10px; } }

/* Text auf hellen Akzentflächen */
:root { --accent-ink: color-mix(in srgb, var(--accent) 62%, #000); }
@media (prefers-color-scheme: dark) { :root { --accent-ink: color-mix(in srgb, var(--accent) 35%, #fff); } }
.pill-angefragt, .pill-offen, .pill-abw-beantragt, .g-group-note, .ws-self input:checked + span { color: var(--accent-ink); }
.pill-angefragt { background: var(--warn-soft); color: var(--warn); }

/* Anpassungen an den aktuellen Server-Stand (Marketing-Design) */
.has-shell .topbar { display: none; }
body.has-shell { background: var(--bg); font-family: var(--f-body); }
.todo { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.todo-tile { border-radius: 20px; }
.todo-num { font-family: var(--f-display); font-weight: 800; }
.todo-tile.is-bad { background: var(--ink); color: var(--surface); }
.todo-tile.is-bad .todo-sub { color: color-mix(in srgb, var(--surface) 75%, transparent); }
.todo-tile.is-bad .todo-num { color: #F2C46B; }
.todo-tile.is-ok .todo-num { color: var(--accent); }
.todo-tile.is-ok .todo-ico { background: var(--yolk-soft); color: var(--accent-ink); }
.todo-tile.is-warn .todo-ico { background: #F2C46B; }
h1 { font-family: var(--f-display); }
.page-head h1 { font-weight: 800; }
@media (max-width: 860px) { .todo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.side-logo-img { height: 34px; width: auto; display: block; }
@media (prefers-color-scheme: dark) { .side-logo-img { filter: brightness(0) invert(0.92); } }

/* Menü kompakt: Gruppen auf- und zuklappen (immer nur eine offen) */
.side-nav { gap: 2px; }
.side-group { gap: 1px; }
.side-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 10px; user-select: none; }
.side-group > summary::-webkit-details-marker { display: none; }
.side-group > summary:hover { background: var(--surface-2, rgb(0 0 0 / 0.04)); color: var(--ink); }
.side-group > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.side-group[open] > summary { color: var(--ink); }
.side-group[open] { padding-bottom: 8px; }
.side-chev { margin-left: auto; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-1px) rotate(-45deg); transition: transform .15s ease; opacity: .55; flex: none; }
.side-group[open] > summary .side-chev { transform: translateY(-3px) rotate(45deg); }
.side-group > summary .nav-badge { margin-left: auto; }
.side-group > summary .nav-badge + .side-chev { margin-left: 6px; }
.side-group[open] > summary .nav-badge { display: none; }
.side-group[open] > summary .nav-badge + .side-chev { margin-left: auto; }
.side-link { min-height: 36px; font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) { .side-chev { transition: none; } }

/* Startseite aus Bausteinen (Design 2026): festes 3er-Raster, S/M/L, Anpassen-Modus */
.dash-top { align-items: center; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dash-edit-btn { display: inline-flex; align-items: center; gap: 8px; }
.dash-title { margin: 0; }
.dash-t-edit, .dash-hint, .dash-panel, .w-tools { display: none; }
.dash-edit .dash-t-edit { display: inline; }
.dash-edit .dash-hint { display: block; margin: 0; padding: 14px 18px; border-radius: 18px; background: var(--yolk-soft); font-weight: 600; font-size: 0.92rem; }
.dash-edit .dash-edit-btn { background: var(--accent); border-color: var(--accent); color: #fff; }
.dash-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); align-items: start; }
.dash-edit .dash-wrap { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.dash { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.dash > .w { min-width: 0; box-sizing: border-box; border-radius: var(--r); padding: 22px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.dash > .w[hidden] { display: none; }
.dash > .w.needs { background: var(--yolk-soft); border-color: transparent; padding: 28px 30px; justify-content: space-between; min-height: 100%; }
.dash > .w.w-id-kpis { background: transparent; border: 0; padding: 0; }
.dash-edit .dash > .w.w-id-kpis { padding: 14px; background: var(--panel); }
.w-1 { grid-column: span 1; } .w-2 { grid-column: span 2; } .w-3 { grid-column: 1 / -1; }
.dash-leer { grid-column: 1 / -1; }
.w-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.w-head h2 { margin: 0; }
.dash .empty { margin: 0; }
.w-id-kpis .kpi-grid { height: 100%; }

/* Bearbeiten */
.dash-edit .dash > .w { outline: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 3px; }
.dash-edit .w-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.w-name { margin-right: auto; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.w-size { display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--bg); }
.w-size button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 0.75rem; font-weight: 800; cursor: pointer; }
.w-size button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.12); }
.w-btn { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; display: inline-grid; place-items: center; }
.w-btn.w-off { border-color: transparent; background: var(--red-soft); color: var(--red); }
.dash-edit .w a, .dash-edit .w form, .dash-edit .w .rk-actions { pointer-events: none; }
.dash-edit .w .w-tools, .dash-edit .w .w-tools * { pointer-events: auto; }
.dash-edit .dash-panel { display: flex; flex-direction: column; gap: var(--gap); position: sticky; top: 16px; }
.dash-panel .panel { display: flex; flex-direction: column; gap: 8px; }
.dash-panel h2, .dash-panel p { margin: 0; }
.dash-presets { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.dash-preset { min-height: 52px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.dash-preset span { font-size: 0.78rem; color: var(--muted); }
.dash-preset.is-on { background: var(--yolk-soft); border: 2px solid var(--accent); }
.dash-lib { display: flex; flex-direction: column; }
.dash-switch { min-height: 50px; padding: 4px 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; text-align: left; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.dash-switch > span:first-child { flex: 1; display: flex; flex-direction: column; }
.dash-switch strong { font-size: 0.9rem; }
.dash-switch small { font-size: 0.76rem; color: var(--muted); }
.sw { width: 42px; height: 26px; flex: none; border-radius: 13px; padding: 3px; box-sizing: border-box; background: var(--line); display: flex; justify-content: flex-start; transition: background .15s; }
.sw::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); }
.dash-switch[aria-checked="true"] .sw { background: var(--accent); justify-content: flex-end; }

/* Inhalte einzelner Bausteine */
.w .people li.is-out { opacity: 0.6; }
.hy-temp { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: inherit; font-size: 0.9rem; }
.hy-ok { background: var(--green-soft); color: var(--green); }
.hy-warn { background: var(--warn-soft); color: var(--warn); }
.hy-bad { background: var(--red-soft); color: var(--red); }
.hy-temp strong { color: var(--ink); }
.hy-list { display: flex; flex-direction: column; gap: 6px; }
.hy-row { display: flex; justify-content: space-between; font-size: 0.88rem; font-weight: 600; }
.hy-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.hy-bar span { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.mk-status { margin: 0; padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 0.9rem; }
.mk-next { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.notiz-form { display: flex; flex-direction: column; gap: 10px; }
.notiz-form textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); font: inherit; font-size: 0.92rem; resize: vertical; }
.notiz-save { align-self: flex-start; }
#anfragen-liste:empty { display: none; }

@media (max-width: 1180px) {
  .dash-edit .dash-wrap { grid-template-columns: minmax(0, 1fr); }
  .dash-edit .dash-panel { position: static; }
}
@media (max-width: 1000px) {
  .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-2, .w-3 { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .w-1, .w-2, .w-3 { grid-column: 1 / -1; }
  .dash > .w.needs { padding: 22px; }
}

/* Handy: feste Leiste unten (wie im Entwurf), Menü als ganzes Blatt */
.tabbar { display: none; }
@media (max-width: 900px) {
  .side { position: static; }
  .side-toggle { display: none !important; }
  .side.is-open .side-nav { display: flex; position: fixed; z-index: 60; left: 0; right: 0; top: 0; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); max-height: none; padding: calc(22px + env(safe-area-inset-top, 0px)) 16px 20px; background: var(--bg); overflow-y: auto; }
  body.menu-offen { overflow: hidden; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); }
  .tab { position: relative; min-height: 54px; min-width: 0; padding: 0 2px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: 600 0.68rem var(--f-body); text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
  .tab > span:not(.tab-badge) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab.is-active { color: var(--ink); font-weight: 800; }
  .tab.is-active svg { color: var(--accent); }
  .tab-menu[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); }
  .tab-badge { position: absolute; top: 3px; left: calc(50% + 5px); min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--red); color: #fff; font-size: 0.65rem; font-weight: 800; display: grid; place-items: center; }
  .has-shell .wrap { margin-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  .side.is-open .side-link { min-height: 46px; font-size: 1rem; }
  .side.is-open .side-group > summary { min-height: 46px; font-size: 0.78rem; }
}

/* Baustein Umsatz der Woche */
.uw-sum { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.uw { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-decoration: none; color: inherit; }
.uw-track { height: 96px; display: flex; align-items: flex-end; }
.uw-bar { display: block; width: 100%; min-height: 3px; border-radius: 6px 6px 3px 3px; background: color-mix(in srgb, var(--accent) 35%, var(--surface)); }
.uw-bar.is-today { background: var(--accent); }
.uw-day { display: block; margin-top: 5px; text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--muted); }

/* Mein Bereich (Mitarbeiter) */
.mein-hero { border-radius: var(--r); padding: 26px 28px; background: var(--yolk-soft); color: var(--ink); display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; }
.mein-hero.is-in { background: var(--accent); color: #fff; }
.mh-status { font-weight: 700; font-size: 0.95rem; opacity: 0.9; }
.mh-big { font-size: clamp(2.6rem, 2rem + 2.4vw, 3.6rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; }
.mh-sub { font-size: 0.95rem; opacity: 0.9; }
.mein-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mein-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mq { min-height: 76px; border-radius: 18px; padding: 12px; box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; font-size: 0.82rem; font-weight: 700; }
.mq:hover { border-color: var(--accent); }
.mq-dot { width: 10px; height: 10px; border-radius: 50%; }
.mein-side .kpi { flex: 1; }

/* Dienstplan (Design 2026): Hinweis oben, Plan links (2/3), Anfragen + Stunden rechts */
.dp-head { align-items: center; }
.dp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dp-actions form { margin: 0; }
.dp-pfeil { width: 44px; min-width: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.dp-status { padding: 16px 20px; border-radius: 20px; background: var(--yolk-soft); font-weight: 600; font-size: 0.95rem; }
.dp-status.is-warn { background: var(--warn-soft); color: var(--warn); }
.dp-grid { align-items: start; }
.dp-plan { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.dp-side { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.dp-side .panel { display: flex; flex-direction: column; gap: 12px; }
.dp-side .panel > p { margin: 0; }
.dp-anfrage { border-radius: 16px; padding: 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; }
.dp-entscheid { display: flex; gap: 8px; margin: 8px 0 0; }
.dp-entscheid .btn { flex: 1; min-height: 40px; }
.dp-std { display: flex; flex-direction: column; gap: 5px; }
.dp-std.is-leer { opacity: 0.55; }
.dp-std-row { display: flex; justify-content: space-between; gap: 8px; font-size: 0.88rem; font-weight: 700; }
.dp-zuviel { color: var(--red); font-weight: 800; }

/* Wochenplan-Tabelle im neuen Look (Dienstplan, Wochenplanung, Mitarbeiter-Plan) */
.has-shell .pt-wrap { border-radius: 18px; }
.dp-plan .pt-wrap { border: 0; background: transparent; border-radius: 0; }
.has-shell .pt { border-collapse: separate; border-spacing: 6px; }
.dp-plan .pt { min-width: 720px; }
.has-shell .pt th, .has-shell .pt td { border: 0; }
.has-shell .pt .pt-corner { width: 92px; }
.has-shell .pt thead th { padding: 8px 4px; border-radius: 10px; background: var(--surface-2); text-align: center; box-shadow: none; }
.has-shell .pt thead th.pt-corner { background: transparent; }
.has-shell .pt thead th.is-today { background: var(--accent); color: #fff; }
.has-shell .pt thead th.is-today .pt-dt { color: rgb(255 255 255 / 0.85); }
.has-shell .pt thead th.is-today .today-tag { display: none; }
.has-shell .pt-wt { font-size: 0.85rem; }
.has-shell .pt .is-today { background: transparent; }
.has-shell .pt tbody th { background: transparent; padding: 8px 2px; vertical-align: middle; }
.has-shell .pt td { padding: 0; background: transparent; }
.has-shell .pt .sc, .has-shell .pt .ps { border-radius: 12px; border: 1px solid var(--line); border-left: 3px solid var(--c, var(--a, var(--line))); background: var(--surface); padding: 8px; }
.has-shell .pt td.is-today .sc, .has-shell .pt td.is-today .ps { background: var(--yolk-soft); border-color: transparent; border-left-color: var(--c, var(--a)); }
.has-shell .pt .sc.is-conflict, .has-shell .pt .ps.is-conflict { background: var(--warn-soft); border: 1.5px dashed #C8862A; box-shadow: none; }
.has-shell .pt .sc-add { border-radius: 12px; min-height: 30px; }
.dp-plan .pt-mob .pd { background: var(--surface); }
@media (max-width: 1180px) {
  .dp-grid { grid-template-columns: minmax(0, 1fr); }
  .dp-grid > * { grid-column: auto; }
}

.has-shell .pt .sc { padding: 7px 8px; gap: 0; }
.has-shell .pt .sc-av, .has-shell .pt .sc > .sc-txt > .sc-area { display: none; }
.has-shell .pt .sc-name { font-size: 0.82rem; font-weight: 700; }
.has-shell .pt .sc-time { white-space: nowrap; font-size: 0.74rem; }
.dp-plan .pt { min-width: 640px; }
.has-shell .pt-row:not(.pt-abw) td { height: auto; }
.has-shell .pt-abw td .abw-chip { border-radius: 10px; }

/* Reservierungen (Design 2026): Liste links, Formular immer rechts */
.res-grid { align-items: start; }
.res-main, .res-side { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.res-main .panel { display: flex; flex-direction: column; gap: 14px; }
.res-main .empty { margin: 0; }
.res-side .panel-form { margin: 0; }
.res-side .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.res-side .form-actions .btn-primary { flex: 1; }
.res-info { border-radius: 20px; padding: 18px 20px; background: var(--yolk-soft); display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; }
@media (max-width: 1180px) { .res-grid { grid-template-columns: minmax(0, 1fr); } .res-grid > * { grid-column: auto; } }

/* Seiten an den Entwurf angeglichen: Diagramme in Akzentfarbe, Kennzahlen-Reihen, Checklisten nebeneinander */
:root { --chart: color-mix(in srgb, var(--accent) 40%, var(--surface)); --chart-hi: var(--accent); }
.wb-fill { background: color-mix(in srgb, var(--accent) 40%, var(--surface)); }
.wb-fill.is-today { background: var(--accent); }
.tiles:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .tiles:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hyg-listen { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); align-items: start; }
.hyg-listen > .panel { margin: 0; }
.cl-bar span { background: var(--accent); }

/* Einstellungen */
.es-grid { align-items: start; }
.es-grid .panel { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.es-grid h2, .es-grid p { margin: 0; }
.es-h2 { margin-top: 10px !important; }
.es-logo { height: 84px; border-radius: 16px; background: var(--surface-2); display: grid; place-items: center; }
.es-logo img { max-height: 46px; max-width: 80%; }
.es-facts { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.es-facts div { display: flex; justify-content: space-between; gap: 10px; font-size: 0.9rem; }
.es-facts dt { color: var(--muted); } .es-facts dd { margin: 0; font-weight: 700; }
.es-farben { display: flex; flex-direction: column; gap: 14px; }
.es-swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.es-swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.es-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.es-swatch span { width: 48px; height: 48px; border-radius: 50%; box-shadow: inset 0 0 0 3px var(--surface); border: 2px solid transparent; }
.es-swatch input:checked + span { border-color: var(--ink); }
.es-swatch input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.es-swatch input:checked ~ small { color: var(--ink); font-weight: 800; }
.es-vorschau { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--v) 16%, var(--surface)); font-size: 0.9rem; }
.es-ok { background: var(--v); border-color: var(--v); color: #fff; }
.es-links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.es-verb { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.es-v { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.es-v:hover { border-color: var(--accent); }
.es-v > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.es-v small { color: var(--muted); font-size: 0.78rem; }
.es-state { flex: none; font-size: 0.75rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; }
.es-state.is-ok { background: var(--green-soft); color: var(--green); }
.es-state.is-off { background: var(--surface-2); color: var(--muted); }
.side-settings { margin-bottom: 6px; }
@media (max-width: 1000px) { .es-grid { grid-template-columns: minmax(0, 1fr); } .es-grid > * { grid-column: auto; } }

/* Reservierungen wie im Entwurf: Zeitraum-Umschalter, Zeilen mit Status und Bestätigen */
.res-head { align-items: flex-end; }
.res-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.seg-pills { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.seg-pills a { min-height: 38px; padding: 0 16px; border-radius: 10px; display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.9rem; }
.seg-pills a:hover { background: var(--surface-2); }
.seg-pills a.is-on { background: var(--ink); color: var(--surface); }
.res-tag input { min-height: 46px; border-radius: 14px; width: 150px; }
.rz-list { display: flex; flex-direction: column; gap: 8px; }
.rz { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); }
.rz-angefragt { background: var(--warn-soft); }
.rz-storniert, .rz-abgelehnt { opacity: 0.7; }
.rz.is-late { box-shadow: inset 3px 0 0 var(--red); }
.rz-zeit { width: 84px; display: flex; flex-direction: column; flex: none; }
.rz-zeit strong { font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.rz-zeit small { font-size: 0.75rem; color: var(--muted); }
.rz-main { flex: 1 1 200px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rz-name { font-weight: 700; color: var(--ink); text-decoration: none; }
.rz-name:hover { text-decoration: underline; }
.rz-main small { font-size: 0.8rem; color: var(--muted); }
.rz-main small a { color: inherit; }
.rz-note { color: var(--warn) !important; }
.rz-main .res-tags { margin-top: 4px; }
.rz-pill { padding: 4px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; background: var(--green-soft); color: var(--green); flex: none; }
.rz-p-angefragt { background: #FBEFD9; color: #7A4E0E; }
.rz-p-angekommen { background: var(--accent); color: #fff; }
.rz-p-storniert, .rz-p-abgelehnt { background: var(--surface); color: var(--muted); }
.rz-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.rz-actions form { margin: 0; }
.rz-actions .chip-go { background: var(--accent); border-color: var(--accent); color: #fff; min-height: 40px; padding: 0 14px; border-radius: 12px; font-weight: 700; }
@media (prefers-color-scheme: dark) { .rz-p-angefragt { background: var(--warn-soft); color: var(--warn); } }
@media (max-width: 640px) { .rz-actions { width: 100%; } .res-filter, .seg-pills { width: 100%; } .seg-pills a { flex: 1; justify-content: center; padding: 0 8px; } }

/* Stempeluhr (Tablet) wie im Entwurf: farbige Spalte links mit großer Uhr, Namenskarten rechts */
body.k26 { display: block; background: var(--bg); color: var(--ink); font-family: var(--f-body); }
.k26-wrap { min-height: 100vh; min-height: 100dvh; box-sizing: border-box; display: flex; gap: 16px; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 16px; }
.k26-side { width: 340px; flex: none; box-sizing: border-box; border-radius: 28px; padding: 34px; background: var(--accent); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.k26-brand img { height: 40px; width: auto; display: block; }
.k26-brand { font-weight: 800; font-size: 1.1rem; }
.k26-uhr { display: flex; flex-direction: column; gap: 8px; }
.k26-uhr #k-date { font-size: 1rem; font-weight: 600; opacity: 0.9; color: #fff; }
.k26-uhr #k-clock { font-size: clamp(4.5rem, 3rem + 4vw, 7.5rem); font-weight: 800; line-height: 0.85; letter-spacing: -0.05em; font-family: var(--f-body); }
.k26-dienst { border-radius: 20px; padding: 18px; background: rgb(255 255 255 / 0.16); display: flex; flex-direction: column; gap: 4px; }
.k26-dienst span { font-size: 0.9rem; font-weight: 600; opacity: 0.9; }
.k26-dienst strong { font-size: 2.4rem; font-weight: 800; color: #fff; }
.k26-links { display: flex; flex-wrap: wrap; gap: 8px; }
.k26 .k26-links .k-link { color: #fff; border-color: rgb(255 255 255 / 0.35); font-size: 0.9rem; }
.k26-main { flex: 1; min-width: 0; max-width: none; margin: 0; box-sizing: border-box; border-radius: 28px; padding: 32px; background: var(--panel); display: flex; flex-direction: column; gap: 22px; }
.k26-titel h1 { margin: 0; font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; }
.k26-titel .k-hint { margin: 6px 0 0; font-weight: 600; }
.k26 .k-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.k26 .k-person { border-radius: 24px; padding: 22px; min-height: 0; background: var(--surface); border: 2px solid var(--line); justify-content: space-between; gap: 14px; font-family: var(--f-body); }
.k26 .k-person.is-in { border-color: var(--accent); background: var(--surface); }
.k26 .k-person .avatar { width: 60px; height: 60px; font-size: 1.2rem; font-weight: 800; background: var(--surface-2); color: var(--ink); }
.k26 .k-person.is-in .avatar { background: var(--yolk-soft); }
.k26-wer { display: flex; flex-direction: column; gap: 4px; }
.k26 .k-name { font-family: var(--f-body); font-size: 1.5rem; font-weight: 800; }
.k26 .k-state { margin: 0; font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.k26 .k-person.is-in .k-state { color: var(--muted); font-weight: 500; }
.k26-act { align-self: stretch; min-height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.95rem; background: var(--accent); color: #fff; }
.k26 .k-person.is-in .k26-act { background: var(--surface-2); color: var(--ink); }
.k26 .k-sheet { font-family: var(--f-body); border-radius: 28px; }
.k26 .k-go { background: var(--accent); border-color: var(--accent); }
@media (max-width: 860px) {
  .k26-wrap { flex-direction: column; }
  .k26-side { width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 20px 22px; }
  .k26-uhr #k-clock { font-size: 3rem; }
  .k26-dienst strong { font-size: 1.6rem; }
}

/* Anfragen vom Team (Abwesenheiten) wie im Entwurf */
.an-zahl { padding: 10px 16px; border-radius: 999px; background: #FBEFD9; color: #7A4E0E; font-weight: 800; font-size: 0.9rem; }
.an-zahl.is-ok { background: var(--green-soft); color: var(--green); }
.an-grid { align-items: start; }
.an-main, .an-side { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.an-side .panel { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.an-side .panel > p { margin: 0; }
.an-card { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 16px; padding: 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.an-card.an-leer { flex-direction: column; gap: 4px; }
.an-card.an-konflikt { border-color: #E9C98F; }
.an-av { width: 48px !important; height: 48px !important; font-size: 0.9rem; font-weight: 800; flex: none; }
.an-txt { flex: 1 1 240px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.an-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.an-kopf strong { font-size: 1.05rem; }
.an-tag { padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; background: var(--surface-2); }
.an-tag.is-urlaub { background: #E3ECDD; color: #2F4A2B; }
.an-tag.is-wunschfrei { background: #E4ECF3; color: #24425A; }
.an-tag.is-krank { background: #FBE5DA; color: #7A2E12; }
.an-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.an-btns form { margin: 0; }
.an-btns .btn { min-height: 42px; }
.an-wa { width: 100%; }
@media (prefers-color-scheme: dark) { .an-tag.is-urlaub, .an-tag.is-wunschfrei, .an-tag.is-krank { background: var(--surface-2); color: var(--ink); } .an-zahl { background: var(--warn-soft); color: var(--warn); } }
@media (max-width: 1180px) { .an-grid { grid-template-columns: minmax(0, 1fr); } .an-grid > * { grid-column: auto; } }

/* Hygiene: Protokoll der Woche */
.hyg-prot { display: flex; flex-direction: column; gap: 12px; }
.hyg-prot p { margin: 0; }
.hyg-prot-wrap { overflow-x: auto; }
.hyg-tab { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 4px; font-size: 0.86rem; }
.hyg-tab th, .hyg-tab td { padding: 8px 6px; border-radius: 10px; text-align: center; vertical-align: middle; }
.hyg-tab thead th { background: var(--surface-2); font-weight: 800; font-size: 0.78rem; }
.hyg-tab thead th small { font-weight: 600; color: var(--muted); }
.hyg-tab thead th.is-today { background: var(--accent); color: #fff; }
.hyg-tab thead th.is-today small { color: rgb(255 255 255 / 0.85); }
.hyg-tab tbody th { text-align: left; font-weight: 700; background: transparent; }
.hyg-tab td { background: var(--panel); }
.hyg-tab td.is-today { background: var(--yolk-soft); }
.ht { display: block; font-weight: 700; font-variant-numeric: tabular-nums; }
.ht.is-bad { color: var(--red); }
.ht-leer { color: var(--muted); }

/* Speisekarte wie im Entwurf: Liste links, „Heute aus“ und QR-Code rechts */
.sp-grid { align-items: start; }
.sp-main { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.sp-main > .panel { margin: 0; }
.sp-side { display: flex; flex-direction: column; gap: var(--gap); position: sticky; top: 16px; min-width: 0; }
.sp-side .panel { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.sp-side h2, .sp-side p { margin: 0; }
.sp-aus { background: var(--warn-soft); border-color: transparent; }
.sp-aus-zahl { font-size: 1.6rem; font-weight: 800; }
.sp-aus-liste { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.sp-aus-liste a { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 0.82rem; font-weight: 600; }
.sp-qr img { width: 180px; height: 180px; align-self: center; border-radius: 12px; background: #fff; padding: 6px; }
.has-shell .kat-nav a { border-radius: 999px; }
@media (max-width: 1180px) { .sp-grid { grid-template-columns: minmax(0, 1fr); } .sp-grid > * { grid-column: auto; } .sp-side { position: static; } }

/* Umsatz wie im Entwurf: Diagramm links, „Bezahlt mit“ rechts */
.um-grid { align-items: start; }
.um-grid > .s2 > .panel { margin: 0; }
.um-side { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.um-side .panel { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.um-split { display: flex; height: 18px; border-radius: 9px; overflow: hidden; background: var(--surface-2); }
.um-split span:first-child { background: var(--accent); }
.um-split span:last-child { background: color-mix(in srgb, var(--accent) 35%, var(--surface)); }
.um-split-leg { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 0.85rem; font-weight: 700; }
.um-split-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.um-k { background: var(--accent); } .um-b { background: color-mix(in srgb, var(--accent) 35%, var(--surface)); }
.um-pay { grid-template-columns: minmax(0, 1fr) !important; }
.um-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3C9A5A; margin-right: 8px; vertical-align: 1px; }
@media (max-width: 1180px) { .um-grid { grid-template-columns: minmax(0, 1fr); } .um-grid > * { grid-column: auto; } }

/* Startseite: Suchfeld oben wie im Entwurf */
.dash-suche { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); min-width: 220px; }
.dash-suche:focus-within { border-color: var(--accent); }
.dash-suche input { flex: 1; min-width: 0; border: 0 !important; outline: none; background: transparent !important; box-shadow: none !important; padding: 0 !important; min-height: 0 !important; font: inherit; color: var(--ink); }
@media (max-width: 640px) { .dash-suche { width: 100%; } }

.seg-pills a { white-space: nowrap; }
@media (max-width: 640px) { .seg-pills a { font-size: 0.8rem; padding: 0 6px; min-height: 40px; } .res-tag, .res-tag input { width: 100%; } }

/* ===== Neue Funktionen 2026: Tischplan, Küchen-Monitor, Einstellungen, Tausch, Lücken ===== */
/* Tischplan */
.tp-wann { display: flex; gap: 8px; align-items: center; margin: 0; }
.tp-wann input, .tp-wann select { min-height: 44px; border-radius: 12px; }
.tp-grid-wrap { align-items: start; }
.tp-grid-wrap > .panel { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tp-floor { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows), 58px); gap: 8px; padding: 12px; border-radius: 18px; background: var(--panel); background-image: radial-gradient(circle, var(--line) 1px, transparent 1.5px); background-size: calc(100% / var(--cols)) 66px; }
.tp-t { min-width: 0; border-radius: 14px; padding: 8px 10px; display: flex; flex-direction: column; justify-content: center; gap: 2px; text-decoration: none; color: var(--ink); background: var(--surface); border: 2px solid var(--line); overflow: hidden; }
.tp-t strong { font-size: 1rem; font-weight: 800; }
.tp-t span { font-size: 0.78rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-t small { font-size: 0.72rem; color: var(--muted); }
.tp-t.is-round { border-radius: 999px; align-items: center; text-align: center; }
.tp-t.is-frei { background: var(--surface); }
.tp-t.is-res { background: var(--yolk-soft); border-color: var(--accent); }
.tp-t.is-anfrage { background: var(--warn-soft); border-color: #C8862A; border-style: dashed; }
.tp-t.is-da { background: var(--accent); border-color: var(--accent); color: #fff; }
.tp-t.is-da small { color: rgb(255 255 255 / 0.85); }
.tp-t[aria-current="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }
a.tp-t:hover { border-color: var(--ink); }
.tp-floor.is-edit .tp-t { cursor: grab; touch-action: none; user-select: none; border-style: dashed; }
.tp-floor.is-edit .tp-t.is-drag { cursor: grabbing; box-shadow: 0 8px 20px rgb(0 0 0 / 0.15); z-index: 2; }
.tp-legende { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.tp-legende i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; border: 2px solid var(--line); background: var(--surface); }
.tp-legende i.is-res { background: var(--yolk-soft); border-color: var(--accent); }
.tp-legende i.is-anfrage { background: var(--warn-soft); border-color: #C8862A; }
.tp-legende i.is-da { background: var(--accent); border-color: var(--accent); }
.tp-liste { max-height: 80vh; overflow: auto; }
.tp-edit { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.tp-edit legend { font-weight: 800; padding: 0 4px; }
.tp-edit label { font-size: 0.8rem; }
.tp-weg { color: var(--red); }
.tp-zu { display: flex; gap: 8px; margin: 6px 0 0; }
.tp-zu select { flex: 1; min-width: 0; }
.tp-zeile { padding: 6px 0; border-top: 1px solid var(--line); font-weight: 600; }
.tp-sel { background: var(--yolk-soft); border-color: transparent; }
.tp-sel-status { font-size: 1.2rem; }
.tp-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tp-kpis div { border-radius: 18px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.tp-kpis strong { font-size: 1.6rem; font-weight: 800; }
.tp-kpis span { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 1180px) { .tp-grid-wrap { grid-template-columns: minmax(0, 1fr); } .tp-grid-wrap > * { grid-column: auto; } }
@media (max-width: 640px) { .tp-floor { grid-template-rows: repeat(var(--rows), 46px); gap: 4px; padding: 6px; } .tp-t { padding: 4px 6px; } .tp-t span { display: none; } }

/* Küchen-Monitor */
.km { display: flex; flex-direction: column; gap: 18px; }
.km.is-voll { min-height: 100vh; min-height: 100dvh; padding: 16px; box-sizing: border-box; background: var(--bg); }
.km-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.km-head h1 { margin: 0; }
.km-head p { margin: 2px 0 0; }
.km-head-r { display: flex; align-items: center; gap: 12px; }
.km-zahl { padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--surface); font-weight: 800; }
.km-uhr { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.km-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.km-bons { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.km-bon { border-radius: 22px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: opacity .3s, transform .3s; }
.km-bon.is-weg { opacity: 0; transform: scale(0.96); }
.km-bon-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; background: var(--yolk-soft); font-size: 1.15rem; }
.km-bon.is-gelb .km-bon-kopf { background: #E8B04A; color: #26302A; }
.km-bon.is-rot .km-bon-kopf { background: #B4532A; color: #fff; }
.km-alter { font-weight: 800; font-variant-numeric: tabular-nums; }
.km-items { list-style: none; margin: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 1.1rem; }
.km-items li small { display: block; color: var(--red); font-size: 0.85rem; font-weight: 700; }
.km-note { margin: 0 16px 12px; padding: 8px 10px; border-radius: 10px; background: var(--red-soft); color: var(--red); font-weight: 700; }
.km-fertig { margin: auto 16px 16px; }
.km-fertig .btn { width: 100%; min-height: 52px; font-size: 1.05rem; }
.km-leer { grid-column: 1 / -1; padding: 40px; border-radius: 22px; background: var(--yolk-soft); text-align: center; font-size: 1.3rem; font-weight: 800; }
.km-side { display: flex; flex-direction: column; gap: 12px; }
.km-box { border-radius: 20px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.km-box.is-warn { background: var(--red-soft); color: var(--red); border-color: transparent; font-weight: 700; }
.km-box-t { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); cursor: default; }
.km-neu summary { cursor: pointer; list-style: none; }
.km-neu summary::-webkit-details-marker { display: none; }
.km-neu .form { margin-top: 8px; }
.km-tisch { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); }
.km-tisch strong { width: 48px; flex: none; font-variant-numeric: tabular-nums; }
.km-tisch span { display: flex; flex-direction: column; font-weight: 700; }
.km-tisch small { font-weight: 500; color: var(--muted); }
.km-aus { display: flex; flex-wrap: wrap; gap: 6px; }
.km-aus span { padding: 4px 10px; border-radius: 999px; background: var(--warn-soft); font-size: 0.85rem; font-weight: 700; }
.km-zurueck { display: flex; justify-content: space-between; gap: 8px; margin: 0; font-size: 0.88rem; }
@media (max-width: 900px) { .km-grid { grid-template-columns: minmax(0, 1fr); } }

/* Einstellungen: Schalter, Module, POS */
.es-form { display: flex; flex-direction: column; gap: 10px; }
.es-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.es-switch-row > span { display: flex; flex-direction: column; }
.es-switch-row small { color: var(--muted); font-size: 0.78rem; font-weight: 500; }
.es-switch { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; flex: none; border-radius: 13px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.es-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); transition: left .15s; }
.es-switch:checked { background: var(--accent); }
.es-switch:checked::after { left: 21px; }
.es-switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.es-mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 24px; margin-bottom: 12px; }
.es-module { display: flex; flex-direction: column; align-items: flex-start; }
.es-module .es-mod-grid { width: 100%; }
.es-pos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
.es-hook { border-radius: 16px; padding: 16px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
.es-hook .steps { margin: 0; }
.es-code { display: inline-block; max-width: 100%; overflow-wrap: anywhere; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); font-size: 0.82rem; user-select: all; }
@media (max-width: 900px) { .es-pos { grid-template-columns: minmax(0, 1fr); } }

/* Mein Bereich: Stempeln, Tausch */
.mh-stempel { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mh-stempel .btn { min-height: 52px; padding: 0 22px; font-size: 1rem; border: 0; }
.mein-hero .mh-stempel .btn { background: #fff; color: var(--ink); }
.mein-hero:not(.is-in) .mh-stempel .btn { background: var(--accent); color: #fff; }
.mh-stempel select { min-height: 44px; border-radius: 12px; }
.ms-tausch { margin-left: auto; }
.ms-tausch summary { cursor: pointer; font-weight: 700; color: var(--accent); list-style: none; }
.ms-tausch summary::-webkit-details-marker { display: none; }
.ms-tausch form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ms-tausch select, .ms-tausch input { min-height: 38px; }

/* Anfragen: Tausch, Urlaubsanspruch */
.an-tag.is-tausch { background: #FBEFD9; color: #7A4E0E; }
.an-anspruch { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 6px 10px; align-items: center; }
.an-anspruch input { min-height: 36px; text-align: right; }

/* Dienstplan: Lücken */
.dp-luecken { display: flex; flex-wrap: wrap; gap: 8px; }
.dp-luecke { display: inline-flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-radius: 12px; border: 1.5px dashed #C8862A; background: var(--warn-soft); color: var(--warn); text-decoration: none; font-size: 0.82rem; font-weight: 700; }
.dp-luecke small { font-weight: 600; opacity: 0.85; }
.dp-luecke:hover { background: #F6E3BF; }

/* Umsatz: Woche/Monat, Bestseller */
.um-best { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.um-best li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 0.9rem; }
.um-best b { width: 26px; height: 26px; border-radius: 50%; background: var(--yolk-soft); display: grid; place-items: center; font-size: 0.8rem; }
.um-best span { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-best small { color: var(--muted); font-weight: 700; }

/* Wochenplan breit wie im Entwurf: Plan über die ganze Breite, Anfragen + Stunden darunter */
.dp-plan .pt { min-width: 760px; }
.dp-unten { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.has-shell .pt .sc { flex-direction: column; }
.has-shell .pt .sc-txt { width: 100%; }
.has-shell .pt .sc-name { font-size: 0.86rem; }
.has-shell .pt .sc-time { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.has-shell .pt .ps { gap: 2px; }
.has-shell .pt .ps .mono { font-weight: 700; white-space: nowrap; }
.has-shell .pt .ps .sc-area { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.7rem; }
.has-shell .pt-person .pt-corner { width: 150px; }
@media (max-width: 900px) { .dp-unten { grid-template-columns: minmax(0, 1fr); } }

/* Wochenplan-Zellen wie im Entwurf: eine ruhige Zelle pro Tag und Bereich, „+“ klein in der Ecke */
.has-shell .pt tbody td { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 26px; height: auto; }
.has-shell .pt tbody td.is-today { background: var(--yolk-soft); border-color: transparent; }
.has-shell .pt tbody td.is-empty { padding: 0; border: 1.5px dashed var(--line); background: transparent; }
.has-shell .pt tbody td > * + * { margin-top: 4px; }
.has-shell .pt tbody th { padding: 6px 2px; }
.has-shell .pt-row:not(.pt-abw) td { height: 64px; }
.has-shell .pt .sc { border: 0; border-left: 3px solid var(--c); border-radius: 6px; background: transparent !important; box-shadow: none; padding: 3px 6px; }
.has-shell .pt td.is-today .sc { background: transparent !important; }
.has-shell .pt .sc:hover { background: var(--surface-2) !important; }
.has-shell .pt .sc.is-both { background-image: none; }
.has-shell .pt .sc.is-conflict { background: var(--warn-soft) !important; border: 0; border-left: 3px solid #C8862A; }
.has-shell .pt .sc-name { font-size: 0.84rem; }
.has-shell .pt tbody td > .sc-add { position: absolute; right: 5px; bottom: 5px; width: 22px; height: 22px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 0.9rem; line-height: 1; opacity: 0.55; }
.has-shell .pt tbody td:hover > .sc-add, .has-shell .pt tbody td > .sc-add:focus-visible { opacity: 1; background: var(--accent); color: #fff; }
.has-shell .pt tbody td.is-empty > .sc-add { position: static; width: 100%; height: 100%; min-height: 62px; border-radius: 12px; background: transparent; opacity: 0.5; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.has-shell .pt tbody td.is-empty:hover > .sc-add { opacity: 1; background: var(--surface-2); color: var(--ink); }
.has-shell .pt-abw td { background: transparent !important; border: 0 !important; padding: 2px !important; }
.has-shell .pt-area { font-size: 0.74rem; line-height: 1.25; }


/* Handy-Feinschliff 12.11.: Kopfzeile nicht strecken, Tausch-Formular im Design */
@media (max-width: 900px) {
  .shell { align-content: start; }
  .my-shifts .ms-tausch { grid-column: 2 / -1; margin-left: 0; }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .grid-main > *, .grid-main > :first-child { grid-column: 1 / -1; }
}
.ms-tausch select, .ms-tausch input { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font: inherit; font-size: 15px; color: inherit; min-width: 0; flex: 1 1 140px; }
.ms-tausch select:focus, .ms-tausch input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--yolk-soft); }
.ms-tausch form .btn { flex: 0 0 auto; }

/* Tischplan: Datum und Uhrzeit im Design */
.tp-wann input, .tp-wann select { background: var(--surface-2); border: 1px solid var(--line); padding: 9px 12px; font: inherit; font-size: 15px; color: inherit; }
.tp-wann input:focus, .tp-wann select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--yolk-soft); }

/* Auswahlfelder und Datum/Uhrzeit wie Textfelder (12.11.) */
main select:not([multiple]), main .form select:not([multiple]),
main input[type="date"], main input[type="time"], main input[type="month"], main input[type="week"],
main .form input[type="date"], main .form input[type="time"] {
  box-sizing: border-box; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px;
  background-color: var(--surface-2); color: var(--ink); font-family: inherit; font-size: 16px; line-height: 1.4;
}
main select:not([multiple]), main .form select:not([multiple]) {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237d8577' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
main select:not([multiple]):focus, main input[type="date"]:focus, main input[type="time"]:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--yolk-soft);
}
main select:disabled, main input[type="date"]:disabled, main input[type="time"]:disabled { opacity: .55; cursor: not-allowed; }
.tp-wann input, .ms-tausch input { min-height: 48px; padding: 11px 13px; font-size: 16px; }

/* Startseite: Reservierungen heute als Zeitleiste wie im Entwurf (13.11.) */
.ab { display: flex; flex-direction: column; }
.ab-row { display: grid; grid-template-columns: 52px 14px minmax(0, 1fr); gap: 14px; }
.ab-time { padding-top: 12px; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ab-line { display: flex; flex-direction: column; align-items: center; }
.ab-line::before { content: ""; margin-top: 17px; width: 14px; height: 14px; border-radius: 50%; box-sizing: border-box; background: var(--accent); flex: none; }
.ab-line::after { content: ""; flex: 1; width: 2px; background: var(--line); }
.ab-row:last-child .ab-line::after { background: transparent; }
.ab-row.is-offen .ab-line::before { background: var(--surface); border: 3px solid #C8862A; }
.ab-box { min-width: 0; margin-bottom: 8px; padding: 11px 14px; border-radius: 16px; background: var(--surface-2); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ab-row.is-offen .ab-box { background: var(--warn-soft); }
.ab-info { flex: 1 1 170px; min-width: 0; display: flex; flex-direction: column; gap: 1px; text-decoration: none; color: inherit; }
.ab-info strong { font-size: 15px; font-weight: 700; }
.ab-info small { font-size: 13px; color: var(--muted); }
.ab-act { display: flex; align-items: center; gap: 10px; }
.ab-act form { margin: 0; }
.ab-btn { min-height: 42px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--accent); color: #FFFFFF; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.ab-ok { font-size: 13px; font-weight: 700; color: var(--green); }
.ab-da { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: inherit; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.ab-angekommen .ab-box { opacity: .7; }
@media (max-width: 520px) { .ab-row { grid-template-columns: 44px 12px minmax(0, 1fr); gap: 10px; } }

/* Eingabefelder ohne eigene Gestaltung: kein Browser-Rahmen (dunkel oben, hell unten), sondern wie die Textfelder (13.11.) */
:where(main) :where(input:not([type=checkbox], [type=radio], [type=hidden], [type=range], [type=file], [type=color], [type=submit], [type=button]), textarea) {
  border: 1px solid var(--line); border-radius: 12px; background-color: var(--surface-2); color: var(--ink);
  font: inherit; padding: 10px 13px; box-shadow: none; outline: none;
}
:where(main) :where(input, textarea):focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--yolk-soft); }
.ek-home-add input { min-height: 44px; box-sizing: border-box; }


/* Übersicht als eigener Menüpunkt über den Gruppen (13.11.) */
.side-nav > .side-home { margin-bottom: 8px; font-weight: 700; }


/* Haekchen und Auswahl in der Akzentfarbe statt fest Gruen (13.11.) */
main input[type="checkbox"], main input[type="radio"], .cl-item input { accent-color: var(--accent); }
.ek-check:hover, .ek-home-check:hover { border-color: var(--accent); }
.is-done .ek-home-check { background: var(--accent); border-color: var(--accent); }
.av-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.ws-chip input:checked + span { background: var(--yolk-soft); border-color: var(--accent); color: var(--accent-ink); }


/* Einkaufsliste: Auswahl in der Akzentfarbe, Dringend nur rot wenn an, Notiz neutral (13.11.) */
.ek-chip:hover { border-color: var(--accent); }
.ek-chip.is-on { background: var(--yolk-soft); border-color: var(--accent); color: var(--accent-ink); }
.ek-urgent span::before { border-color: var(--muted); }
.ek-note { color: var(--muted); }
.ek-art-table .pill-ok { background: var(--yolk-soft); color: var(--accent-ink); }

/* Dienstplan am Handy: Tagesansicht, Personen, unteres Fenster (15.11.) */
.dpm { display: none; }
@media (max-width: 900px) {
  .dpm { display: flex; flex-direction: column; gap: 10px; }
  main:has(#dpm) .dp-plan, main:has(#dpm) .dp-lueckenbox, main:has(#dpm) .dp-actions .btn-primary, main:has(#dpm) .dp-actions form { display: none; }
  main:has(#dpm) .dp-grid { display: block; }
  body.dpm-sheet-offen { overflow: hidden; }
}
.dpm button { font: inherit; color: inherit; }
.dpm-top { display: flex; align-items: center; gap: 10px; }
.dpm-seg { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.dpm-seg button { min-height: 38px; border: 0; border-radius: 9px; background: transparent; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.dpm-seg button[aria-pressed="true"] { background: var(--accent); color: #FFFFFF; }
.dpm-menu { min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; cursor: pointer; }
.dpm-menu svg { color: var(--accent); }
.dpm-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dpm-day { min-height: 60px; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.dpm-day.is-vorbei { opacity: .55; }
.dpm-day.is-heute .dpm-wt { color: var(--accent); }
.dpm-day.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); opacity: 1; }
.dpm-day.is-on .dpm-wt { color: inherit; }
.dpm-wt { font-size: 11px; font-weight: 700; }
.dpm-nr { font-size: 17px; font-weight: 800; line-height: 1; }
.dpm-dot { width: 7px; height: 7px; border-radius: 4px; background: transparent; }
.dpm-dot.is-voll { background: var(--green); }
.dpm-dot.is-luecke { background: #C8862A; }
.dpm-daytitle { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 4px 4px 0; }
.dpm-daytitle b { font-size: 17px; font-weight: 800; }
.dpm-daytitle span { font-size: 13px; font-weight: 700; }
.dpm-daytitle .is-warn { color: var(--warn); }
.dpm-daytitle .is-ok { color: var(--green); }
.dpm-abw { margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 13px; font-weight: 600; }
.dpm-hint { margin: 0; padding: 0 4px; font-size: 13px; color: var(--muted); }
.dpm-area, .dpm-person { border-radius: 20px; padding: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.dpm-area-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dpm-area-h small { margin-left: auto; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--muted); }
.dpm-sw { width: 10px; height: 10px; border-radius: 3px; background: var(--muted); }
.dpm-shift, .dpm-gap { min-height: 54px; padding: 8px 12px; border-radius: 14px; text-align: left; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.dpm-shift { border: 1px solid var(--line); background: var(--surface-2); }
.dpm-shift.is-konflikt { border-color: var(--red); background: var(--red-soft); }
.dpm-gap { border: 1.5px dashed #C8862A; background: var(--warn-soft); color: var(--warn); }
.dpm-av { width: 34px; height: 34px; flex: none; border-radius: 17px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: color-mix(in srgb, var(--pc, #5E6963) 22%, var(--surface)); color: var(--ink); }
.dpm-gap .dpm-av { background: transparent; border: 1.5px dashed #C8862A; font-size: 18px; color: inherit; }
.dpm-txt { min-width: 0; display: flex; flex-direction: column; }
.dpm-txt b { font-size: 15px; font-weight: 800; }
.dpm-txt small { font-size: 12px; color: var(--muted); }
.dpm-gap .dpm-txt small { color: inherit; }
.dpm-tag { margin-left: auto; font-size: 11px; font-weight: 800; }
.dpm-tag.is-warn { color: var(--red); }
.dpm-add { min-height: 40px; padding: 0 4px; border: 0; background: transparent; text-align: left; font-size: 13px !important; font-weight: 700; color: var(--accent) !important; cursor: pointer; }
.dpm-person-h { display: flex; align-items: center; gap: 10px; }
.dpm-std { margin-left: auto; font-size: 13px; font-weight: 800; }
.dpm-std.is-warn { color: var(--red); }
.dpm-bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.dpm-bar span { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.dpm-cells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dpm-cell { min-height: 46px; padding: 0; border: 1px dashed var(--line); border-radius: 10px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; color: var(--muted) !important; }
.dpm-cell small { font-size: 10px; font-weight: 700; }
.dpm-cell b { font-size: 12px; font-weight: 800; }
.dpm-cell.is-on { border: 0; background: var(--accent); color: #FFFFFF !important; }
.dpm-cell.is-abw { border: 0; background: var(--red-soft); color: var(--red) !important; }
.dpm-toast { position: fixed; z-index: 80; left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); min-height: 52px; padding: 6px 6px 6px 16px; box-sizing: border-box; border-radius: 14px; background: #26302A; color: #FFFFFF; display: flex; align-items: center; gap: 8px; box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.dpm-toast.is-warn { background: #6E3A12; }
.dpm-toast span { flex: 1; font-size: 14px; font-weight: 600; }
.dpm-toast button { min-height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: #FFFFFF !important; font-size: 14px; font-weight: 800; cursor: pointer; }
.dpm-toast button:first-of-type:not([aria-label]) { color: color-mix(in srgb, var(--accent) 45%, #FFFFFF) !important; }
.dpm-backdrop { position: fixed; z-index: 90; inset: 0; background: rgba(20,26,22,.45); }
.dpm-sheet { position: fixed; z-index: 91; left: 0; right: 0; bottom: 0; max-height: 90vh; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain; padding: 10px 16px calc(24px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; border-radius: 26px 26px 0 0; background: var(--panel); display: flex; flex-direction: column; gap: 12px; box-shadow: 0 -10px 30px rgba(0,0,0,.18); }
.dpm-grip { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line); }
.dpm-sheet-h { display: flex; align-items: center; gap: 10px; }
.dpm-sheet-h h2 { margin: 0; flex: 1; font-size: 20px; font-weight: 800; }
.dpm-x { width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--surface-2); font-size: 20px !important; cursor: pointer; }
.dpm-info { margin: 0; font-size: 14px; color: var(--muted); }
.dpm-lbl { margin-bottom: -4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dpm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dpm-chip { flex: 1 1 0; min-width: 72px; min-height: 44px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 13px !important; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dpm-chip small { font-size: 11px; font-weight: 600; color: var(--muted); }
.dpm-chip.is-on { border-color: var(--accent); background: var(--accent); color: #FFFFFF !important; }
.dpm-chip.is-on small { color: inherit; opacity: .9; }
.dpm-zeit { min-height: 52px; }
.dpm-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dpm-days .dpm-chip { min-width: 0; padding: 4px 0; }
.dpm-chip.is-vorbei:not(.is-on) { opacity: .5; }
.dpm-times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dpm-times label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.dpm-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dpm-pt { min-height: 66px; padding: 8px 10px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; display: flex; flex-direction: column; gap: 1px; cursor: pointer; }
.dpm-pt b { font-size: 14px; }
.dpm-pt small { font-size: 11px; color: var(--muted); }
.dpm-pt.is-abw { opacity: .6; }
.dpm-pt.is-on { border: 2px solid var(--accent); background: var(--yolk-soft); padding: 7px 9px; opacity: 1; }
.dpm-w { font-size: 11px; font-weight: 700; color: var(--warn); }
.dpm-w.is-rot { color: var(--red); }
.dpm-w.is-ok { color: var(--green); }
.dpm-main { min-height: 54px; border: 0; border-radius: 14px; background: var(--accent); color: #FFFFFF !important; font-size: 16px !important; font-weight: 800; cursor: pointer; }
.dpm-main:disabled, .dpm-big:disabled { opacity: .45; cursor: not-allowed; }
.dpm-sec { min-height: 52px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 15px !important; font-weight: 700; cursor: pointer; }
.dpm-del { min-height: 52px; border: 0; border-radius: 14px; background: var(--red-soft); color: var(--red) !important; font-size: 15px !important; font-weight: 800; cursor: pointer; }
.dpm-big { min-height: 64px; padding: 10px 16px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-align: left; text-decoration: none; display: flex; flex-direction: column; justify-content: center; gap: 2px; cursor: pointer; }
.dpm-big b { font-size: 16px; }
.dpm-big small { font-size: 12px; color: var(--muted); }
.dpm-big.is-accent { border: 0; background: var(--accent); color: #FFFFFF !important; }
.dpm-big.is-accent small { color: inherit; opacity: .92; }

/* Dienstplan am Computer: Seitenfenster rechts, Lücken gestrichelt im Plan, Woche füllen (15.11.) */
html.dpm-js .dp-ohne-js { display: none; }
html.dpm-js .dp-fuellen[hidden] { display: inline-flex; align-items: center; gap: 6px; }
.has-shell .pt .sc-gap, .sc-gap { display: flex; flex-direction: column; gap: 1px; margin: 0 0 4px; padding: 4px 7px; border: 1.5px dashed #C8862A; border-radius: 8px; background: var(--warn-soft); color: var(--warn); font-size: 0.75rem; font-weight: 700; line-height: 1.25; text-decoration: none; cursor: pointer; }
.sc-gap small { font-size: 0.72rem; font-weight: 600; }
.sc-gap:hover, .sc-gap:focus-visible { border-style: solid; }
@media (max-width: 900px) {
  main:has(#dpm) .dp-actions .dp-fuellen { display: none !important; }
}
@media (min-width: 901px) {
  .dpm.is-desk { display: block; }
  .dpm.is-desk .dpm-sheet { left: auto; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); max-height: none; padding: 22px 22px 28px; border-radius: 24px 0 0 24px; box-shadow: -12px 0 32px rgba(0,0,0,.16); }
  .dpm.is-desk .dpm-grip { display: none; }
  .dpm.is-desk .dpm-backdrop { background: rgba(20,26,22,.28); }
  .dpm.is-desk .dpm-toast { left: auto; right: 24px; bottom: 24px; width: 420px; }
  .dpm.is-desk .dpm-chip, .dpm.is-desk .dpm-pt, .dpm.is-desk .dpm-big, .dpm.is-desk .dpm-sec { transition: border-color .12s; }
  .dpm.is-desk .dpm-chip:hover:not(.is-on), .dpm.is-desk .dpm-pt:hover:not(.is-on), .dpm.is-desk .dpm-sec:hover, .dpm.is-desk .dpm-big:hover:not(.is-accent) { border-color: var(--accent); }
}

/* Dienstplan am Computer im Stil der Handy-Ansicht: Karten je Bereich, sieben Tage nebeneinander (15.11.) */
@media (min-width: 901px) {
  html.dpm-js main:has(#dpm) .dp-plan { display: none; }
  .dpm.is-desk { display: flex; flex-direction: column; gap: 12px; }
  .dpd-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .dpd-seg { flex: none; width: 300px; }
  .dpd-hint { font-size: 13px; color: var(--muted); }
  .dpd-body { display: flex; flex-direction: column; gap: 12px; }
  .dpd-head, .dpd-cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
  .dpd-head { padding: 0 15px; position: sticky; top: 0; z-index: 5; background: var(--bg); padding-top: 4px; padding-bottom: 4px; }
  .dpd-day { min-height: 62px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
  .dpd-day .dpm-wt { font-size: 12px; font-weight: 700; color: var(--muted); }
  .dpd-day .dpm-nr { font-size: 18px; }
  .dpd-day small { font-size: 11px; font-weight: 700; color: var(--muted); }
  .dpd-day small.is-warn { color: var(--warn); }
  .dpd-day small.is-ok { color: var(--green); }
  .dpd-day.is-vorbei { opacity: .55; }
  .dpd-day.is-heute { background: var(--ink); border-color: var(--ink); color: var(--bg); opacity: 1; }
  .dpd-day.is-heute .dpm-wt, .dpd-day.is-heute small { color: inherit; opacity: .85; }
  .dpd-area { gap: 10px; }
  .dpd-col { min-width: 0; display: flex; flex-direction: column; gap: 6px; border-radius: 12px; }
  .dpd-col.is-heute { background: color-mix(in srgb, var(--accent) 7%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 7%, transparent); }
  .dpm .dpd-shift, .dpm .dpd-gap { min-height: 48px; padding: 6px 8px; gap: 8px; border-radius: 12px; }
  .dpm .dpd-shift .dpm-av, .dpm .dpd-gap .dpm-av { width: 28px; height: 28px; border-radius: 14px; font-size: 11px; }
  .dpm .dpd-gap .dpm-av { font-size: 15px; }
  .dpd-shift .dpm-txt b, .dpd-gap .dpm-txt b { font-size: 13px; }
  .dpd-shift .dpm-txt small, .dpd-gap .dpm-txt small { font-size: 11.5px; }
  .dpd-shift .dpm-txt b, .dpd-shift .dpm-txt small, .dpd-gap .dpm-txt b, .dpd-gap .dpm-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dpd-shift:hover { border-color: var(--accent); }
  .dpd-gap:hover { border-style: solid; }
  .dpd-plus { min-height: 30px; border: 1px dashed var(--line); border-radius: 10px; background: transparent; color: var(--muted) !important; font-size: 16px !important; font-weight: 700; cursor: pointer; opacity: .65; }
  .dpd-plus:hover, .dpd-plus:focus-visible { opacity: 1; border-color: var(--accent); color: var(--accent) !important; }
  .dpd-abw-chip { display: flex; flex-direction: column; padding: 6px 9px; border-radius: 10px; background: var(--red-soft); color: var(--red); font-size: 12px; font-weight: 800; }
  .dpd-abw-chip small { font-size: 11px; font-weight: 600; }
  .dpd-personen { display: flex; flex-direction: column; gap: 8px; }
  .dpd-personen .dpm-person { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 18px; row-gap: 8px; align-items: center; }
  .dpd-personen .dpm-person-h { grid-column: 1; grid-row: 1; }
  .dpd-personen .dpm-bar { grid-column: 1; grid-row: 2; }
  .dpd-personen .dpm-cells { grid-column: 2; grid-row: 1 / 3; gap: 8px; }
  .dpd-personen .dpm-cell { min-height: 52px; }
  .dpd-personen .dpm-cell:not(.is-on):not(.is-abw):hover { border-color: var(--accent); color: var(--accent) !important; }
}

/* Wochenplanung: Vorschlag als Karten wie im Dienstplan (15.11.) */
.wpd { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.wpd button { font: inherit; color: inherit; }
.wpd-head, .wpd-cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wpd-head { padding: 0 15px; }
.wpd-day { min-height: 60px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.wpd-day .dpm-wt { font-size: 12px; font-weight: 700; color: var(--muted); }
.wpd-day .dpm-nr { font-size: 18px; font-weight: 800; line-height: 1; }
.wpd-day small { font-size: 11px; font-weight: 700; color: var(--muted); }
.wpd-day small.is-warn { color: var(--warn); }
.wpd-day small.is-ok { color: var(--green); }
.wpd-day.is-heute { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.wpd-day.is-heute .dpm-wt, .wpd-day.is-heute small { color: inherit; opacity: .85; }
.wpd-area { gap: 10px; }
.wpd-col { min-width: 0; display: flex; flex-direction: column; gap: 6px; border-radius: 12px; }
.wpd-col.is-heute { background: color-mix(in srgb, var(--accent) 7%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 7%, transparent); }
.wpd-tag { display: none; }
.wpd .wpd-tile { width: 100%; box-sizing: border-box; min-height: 48px; padding: 6px 8px; gap: 8px; border-radius: 12px; text-align: left; }
.wpd div.wpd-tile { cursor: default; }
.wpd .wpd-tile .dpm-av { width: 28px; height: 28px; border-radius: 14px; font-size: 11px; }
.wpd .dpm-gap.wpd-tile .dpm-av { font-size: 15px; }
.wpd-tile .dpm-txt b { font-size: 13px; }
.wpd-tile .dpm-txt small { font-size: 11.5px; }
.wpd-tile .dpm-txt b, .wpd-tile .dpm-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wpd button.dpm-shift.wpd-tile:hover { border-color: var(--accent); }
.wpd button.dpm-gap.wpd-tile:hover { border-style: solid; }
.wpd-tile.is-fest { background: var(--surface); border-style: dashed; }
.wpd-leer { padding: 10px 0; text-align: center; font-size: 12px; color: var(--muted); opacity: .6; }
.wpd-host { display: none; }
@media (max-width: 900px) {
  .wpd-head { display: none; }
  .wpd-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .wpd-col { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid var(--line); border-radius: 0; }
  .wpd-col:first-child { border-top: 0; }
  .wpd-col.is-heute { box-shadow: none; padding-left: 6px; padding-right: 6px; border-radius: 10px; }
  .wpd-tag { display: block; width: 44px; flex: none; font-size: 12px; font-weight: 800; color: var(--muted); }
  .wpd .wpd-tile { flex: 1 1 140px; width: auto; }
  .wpd-leer { flex: 1; text-align: left; padding: 0; }
  .wpd-host { display: flex; }
}
@media (min-width: 901px) { .wpd-host.is-desk { display: block; } }
.wp-layout > .wpd { flex: 999 1 640px; }
@media (max-width: 900px) {
  .wpd-col { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; row-gap: 6px; align-items: center; }
  .wpd-col > .wpd-tag { grid-column: 1; grid-row: 1; }
  .wpd-col > :not(.wpd-tag) { grid-column: 2; }
}

/* =========================================================
   Plus-Knopf (Schnellzugriff) – in jeder Farbwelt (15.11.)
   ========================================================= */
.side-plus { display: none; }
.plus-sheet[hidden] { display: none; }
.plus-sheet { position: fixed; inset: 0; z-index: 65; }
.plus-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: rgb(20 16 12 / 0.45); cursor: pointer; }
.plus-panel { position: absolute; left: 12px; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); max-width: 520px; margin: 0 auto; box-sizing: border-box; padding: 18px 16px 16px; border-radius: 28px; background: var(--bg); box-shadow: 0 16px 40px rgb(0 0 0 / 0.28); display: flex; flex-direction: column; gap: 14px; }
.plus-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.plus-head > span { display: flex; flex-direction: column; gap: 2px; }
.plus-head h2 { margin: 0; font-size: 1.35rem; }
.plus-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.plus-anpassen { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); text-decoration: none; padding: 6px 0; }
.plus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.plus-item { min-height: 100px; padding: 12px; box-sizing: border-box; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-width: 0; }
.plus-item:hover, .plus-item:focus-visible { border-color: var(--accent); }
.plus-ico { width: 40px; height: 40px; flex: none; border-radius: 20px; background: var(--pc, var(--accent)); color: #FFFFFF; display: grid; place-items: center; }
.plus-txt { display: flex; flex-direction: column; min-width: 0; }
.plus-txt b { font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plus-txt small { font-size: 0.75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.plus-offen { overflow: hidden; }
.tab-pluscell { display: flex; justify-content: center; align-items: flex-start; }
.tab-plus { width: 56px; height: 56px; margin-top: -24px; padding: 0; box-sizing: border-box; border-radius: 28px; border: 4px solid var(--bg); background: var(--accent); color: #FFFFFF; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 18px rgb(0 0 0 / 0.22); }
.tab-plus svg { transition: transform .18s ease; }
.tab-plus[aria-expanded="true"] { background: var(--surface); color: var(--ink); }
.tab-plus[aria-expanded="true"] svg { transform: rotate(45deg); }
@media (min-width: 901px) {
  .side-plus { min-height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--accent); color: #FFFFFF; font: 700 0.88rem var(--f-body); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; flex: none; }
  .side-top { flex-wrap: wrap; }
  .plus-sheet { z-index: 90; }
  .plus-panel { bottom: auto; top: 50%; transform: translateY(-50%); width: min(520px, calc(100vw - 48px)); left: 0; right: 0; }
}
/* Schnellzugriff-Seite */
.sz-liste { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sz-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.sz-row.is-aus { opacity: 0.6; }
.sz-row .plus-ico { width: 36px; height: 36px; }
.sz-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sz-txt small { color: var(--muted); }
.sz-pfeile { display: flex; gap: 4px; }
.sz-pfeil { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: 700 1rem var(--f-body); cursor: pointer; }
.sz-pfeil:hover { border-color: var(--accent); }
.sz-schalter { position: relative; flex: none; }
.sz-schalter input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sz-schalter > span[aria-hidden] { display: block; width: 46px; height: 28px; border-radius: 14px; background: var(--line); position: relative; transition: background .15s; }
.sz-schalter > span[aria-hidden]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px; background: #FFFFFF; transition: left .15s; box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); }
.sz-schalter input:checked + span { background: var(--accent); }
.sz-schalter input:checked + span::after { left: 21px; }
.sz-schalter input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.sz-hinweis { margin: 10px 0 0; }
.sz-reset { margin-top: 10px; }
/* Einstellungen: Farbwelt wählen */
.es-fw { display: flex; flex-direction: column; gap: 10px; }
.es-fw-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.es-fw-opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.es-fw-opt input { accent-color: var(--accent); }
.es-fw-opt > span:last-child { display: flex; flex-direction: column; }
.es-fw-opt small { color: var(--muted); }
.es-fw-bild { width: 64px; height: 44px; flex: none; border-radius: 10px; overflow: hidden; display: grid; grid-template-columns: 1fr 2fr; grid-template-rows: 1fr 1fr; }
.es-fw-bild i:first-child { grid-row: 1 / 3; }
.es-fw-standard i:nth-child(1) { background: #F1F0EA; } .es-fw-standard i:nth-child(2) { background: #FFFFFF; } .es-fw-standard i:nth-child(3) { background: #5F7A5A; }
.es-fw-kaffee i:nth-child(1) { background: #2B1E16; } .es-fw-kaffee i:nth-child(2) { background: #F7F2EA; } .es-fw-kaffee i:nth-child(3) { background: linear-gradient(140deg, #E7A774, #8A4524); }

/* =========================================================
   Farbwelt „Kaffee“ (wählbar unter Einstellungen) (15.11.)
   ========================================================= */
html.fw-kaffee {
  --accent: #B5642F;
  --accent-ink: #8A4524;
  --bg: #F7F2EA;
  --panel: #FBF7F1;
  --surface: #FFFDF9;
  --surface-2: #F3ECE2;
  --ink: #2B1E16;
  --muted: #7B6A5D;
  --line: #EBE1D4;
  --yolk: var(--accent);
  --yolk-ink: #FFFFFF;
  --yolk-soft: #F4E6D8;
  --green: #4E6B3E;
  --green-soft: #E6EBDB;
  --red: #A23B2A;
  --red-soft: #F8E2DA;
  --warn: #8A4524;
  --warn-soft: #FBEFE3;
  --fw-grad: linear-gradient(140deg, #E7A774 0%, #C1713A 42%, #8A4524 78%, #5E2E17 100%);
  --fw-dark: #2B1E16;
  --f-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
html.fw-kaffee body { background: var(--bg); color: var(--ink); }
/* Schrift: Überschriften mit Serifen, kleine Labels in Mono */
html.fw-kaffee h1, html.fw-kaffee .page-head h1 { font-family: var(--f-serif); font-weight: 500; letter-spacing: -0.01em; }
html.fw-kaffee h2 { font-family: var(--f-serif); font-weight: 500; letter-spacing: 0; font-size: 1.2rem; }
html.fw-kaffee .eyebrow, html.fw-kaffee .plus-label { font-family: var(--f-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
html.fw-kaffee .w-head .link, html.fw-kaffee .panel-head .link { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
html.fw-kaffee .kpi-num, html.fw-kaffee .tile-num, html.fw-kaffee .tile-num.mono { font-family: var(--f-mono); font-weight: 600; letter-spacing: -0.01em; }
html.fw-kaffee .dpm-area-h > span:nth-child(2) { font-family: var(--f-mono); font-weight: 600; }
html.fw-kaffee .dpm-daytitle b, html.fw-kaffee .dpd-day .dpm-nr, html.fw-kaffee .wpd-day .dpm-nr, html.fw-kaffee .dpm-nr { font-family: var(--f-serif); font-weight: 500; }
html.fw-kaffee .plus-head h2, html.fw-kaffee .dpm-sheet-h h2 { font-family: var(--f-serif); font-weight: 500; }
/* Hauptkarte mit Kupfer-Verlauf */
html.fw-kaffee .dash > .w.needs, html.fw-kaffee .needs, html.fw-kaffee .mein-hero, html.fw-kaffee .mein-hero.is-in { background: var(--fw-grad); color: #FFFFFF; border-color: transparent; box-shadow: 0 14px 30px rgb(94 46 23 / 0.22); }
html.fw-kaffee .needs-title { font-family: var(--f-serif); font-weight: 400; }
html.fw-kaffee .needs-title strong { font-weight: 600; }
html.fw-kaffee .need-chip { background: rgb(255 255 255 / 0.94); color: var(--ink); }
html.fw-kaffee .tile:first-child { background: var(--fw-grad); color: #FFFFFF; }
html.fw-kaffee .tile:first-child .tile-label, html.fw-kaffee .tile:first-child .tile-sub { color: rgb(255 255 255 / 0.85); }
html.fw-kaffee .tile:first-child .tile-num { color: #FFFFFF; }
/* Knöpfe */
html.fw-kaffee .btn-primary { background: var(--fw-grad); color: #FFFFFF; border-color: transparent; }
html.fw-kaffee .tab-plus, html.fw-kaffee .side-plus, html.fw-kaffee .dpm-main, html.fw-kaffee .dpm-big.is-accent { background: var(--fw-grad); }
html.fw-kaffee .tab-plus[aria-expanded="true"] { background: var(--surface); }
html.fw-kaffee .dpm-seg button[aria-pressed="true"], html.fw-kaffee .dpm-day.is-on { background: var(--fw-dark); border-color: var(--fw-dark); color: var(--bg); }
html.fw-kaffee .dpm-gap, html.fw-kaffee .sc-gap { border-color: #C1713A; }
/* Computer: dunkle Seitenleiste */
@media (min-width: 901px) {
  html.fw-kaffee .side { background: var(--fw-dark); color: #F7F2EA; }
  html.fw-kaffee .side-name, html.fw-kaffee .side-me-name { color: #F7F2EA; }
  html.fw-kaffee .side-logo { background: var(--fw-grad); }
  html.fw-kaffee .side-logo-img { filter: brightness(0) invert(0.96); }
  html.fw-kaffee .side-link, html.fw-kaffee .side-group > summary { color: #CDBBA9; }
  html.fw-kaffee .side-group-title { color: #A8937F; }
  html.fw-kaffee .side-link:hover, html.fw-kaffee .side-group > summary:hover { background: rgb(255 255 255 / 0.07); color: #FFFFFF; }
  html.fw-kaffee .side-group[open] > summary { color: #F7F2EA; }
  html.fw-kaffee .side-link.is-active { background: var(--fw-grad); color: #FFFFFF; box-shadow: 0 6px 16px rgb(0 0 0 / 0.25); }
  html.fw-kaffee .side-link.is-active .side-dot { background: #FFFFFF; }
  html.fw-kaffee .side-me { border-top-color: rgb(255 255 255 / 0.12); }
  html.fw-kaffee .side-me .link-btn { color: #CDBBA9; }
  html.fw-kaffee .side .nav-badge { box-shadow: 0 0 0 2px var(--fw-dark); }
}
/* Handy: dunkle, schwebende Leiste unten */
@media (max-width: 900px) {
  html.fw-kaffee .tabbar { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding: 4px 6px; border: 0; border-radius: 24px; background: var(--fw-dark); box-shadow: 0 10px 26px rgb(43 30 22 / 0.3); }
  html.fw-kaffee .tab { color: #BBA897; }
  html.fw-kaffee .tab.is-active, html.fw-kaffee .tab.is-active svg { color: #E7A774; }
  html.fw-kaffee .tab-menu[aria-expanded="true"] { background: rgb(255 255 255 / 0.08); color: #FFFFFF; }
  html.fw-kaffee .tab-badge { box-shadow: 0 0 0 2px var(--fw-dark); }
  html.fw-kaffee .tab-plus { border-color: var(--bg); }
  html.fw-kaffee .has-shell .wrap { margin-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  html.fw-kaffee .plus-panel { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  html.fw-kaffee .dpm-toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
.plus-txt b { white-space: normal; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; line-height: 1.2; }
@media (max-width: 420px) { .plus-txt b { font-size: 0.84rem; } .plus-item { padding: 10px; } }

/* =========================================================
   Feinschliff Farbwelt (15.11.): Verläufe ohne Kante, wählbarer Verlauf, Marketing ohne Grün, Tischplan lesbar
   ========================================================= */
/* Verläufe bis an den Rand (vorher wiederholte sich der Verlauf unter dem Rahmen: dunkle Kante) */
html.fw-kaffee .btn-primary, html.fw-kaffee .needs, html.fw-kaffee .dash > .w.needs, html.fw-kaffee .mein-hero, html.fw-kaffee .tile:first-child,
html.fw-kaffee .tab-plus, html.fw-kaffee .side-plus, html.fw-kaffee .dpm-main, html.fw-kaffee .dpm-big.is-accent,
html.fw-kaffee .side-link.is-active, html.fw-kaffee .side-logo, html.fw-kaffee .rd-actions .btn-primary, html.fw-kaffee .tp-t.is-da {
  background-origin: border-box; border-color: transparent;
}
html.fw-kaffee .tab-plus { border-color: var(--bg); background-origin: padding-box; background-clip: padding-box; }
/* Farben aus dem gewählten Verlauf statt fest Kupfer */
html.fw-kaffee .dash > .w.needs, html.fw-kaffee .needs, html.fw-kaffee .mein-hero { box-shadow: 0 14px 30px color-mix(in srgb, var(--fw-dark) 22%, transparent); }
html.fw-kaffee .dpm-gap, html.fw-kaffee .sc-gap { border-color: color-mix(in srgb, var(--accent) 80%, #FFFFFF); }
@media (max-width: 900px) {
  html.fw-kaffee .tab.is-active, html.fw-kaffee .tab.is-active svg { color: var(--fw-hell); }
  html.fw-kaffee .tabbar { box-shadow: 0 10px 26px color-mix(in srgb, var(--fw-dark) 35%, transparent); }
}
/* Marketing & Co.: das alte Waldgrün folgt jetzt der dunklen Farbe des Verlaufs */
html.fw-kaffee { --forest: var(--fw-dark); --forest-2: color-mix(in srgb, var(--fw-dark) 82%, #FFFFFF); --sand: var(--bg); --terra: var(--accent); }
html.fw-kaffee .rd-kpis { background: color-mix(in srgb, var(--fw-dark) 80%, #FFFFFF); }
html.fw-kaffee .rd-kpi-label { color: rgb(255 255 255 / 0.68); }
html.fw-kaffee .rd-kpi-sub { color: var(--fw-hell); }
html.fw-kaffee .rd-kpi strong { font-family: var(--f-mono); font-weight: 600; }
html.fw-kaffee .rd-actions .btn-primary { background: var(--fw-grad); color: #FFFFFF; }
html.fw-kaffee .mk-tabs a.is-active, html.fw-kaffee .rd-chips a.is-active { background: var(--fw-dark); border-color: var(--fw-dark); color: var(--bg); }
html.fw-kaffee .rd-tabs a.is-active { border-bottom-color: var(--accent); }
/* Einstellungen: Farbverlauf wählen */
.es-vl { display: flex; flex-direction: column; gap: 14px; }
.es-vl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
.es-vl-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.es-vl-opt input { position: absolute; opacity: 0; pointer-events: none; }
.es-vl-bild { position: relative; width: 100%; height: 58px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.05); }
.es-vl-bild i { position: absolute; left: 8px; bottom: 8px; width: 16px; height: 16px; border-radius: 5px; border: 2px solid rgb(255 255 255 / 0.75); }
.es-vl-opt input:checked + .es-vl-bild { outline: 3px solid var(--ink); outline-offset: 3px; }
.es-vl-opt input:focus-visible + .es-vl-bild { outline: 3px solid var(--accent); outline-offset: 3px; }
.es-vl-opt small { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
/* Tischplan: Texte passen in die Kacheln */
.tp-t { padding: 7px 9px; justify-content: space-between; gap: 0; }
.tp-t strong { font-size: 1.05rem; line-height: 1.1; }
.tp-t span, .tp-t small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.tp-t.is-round { justify-content: center; }
@media (min-width: 641px) {
  .tp-floor { grid-template-rows: repeat(var(--rows), 64px); background-size: calc(100% / var(--cols)) 72px; }
}
html.fw-kaffee .tp-t strong { font-family: var(--f-mono); font-weight: 600; }
html.fw-kaffee .tp-t.is-da { background: var(--fw-grad); color: #FFFFFF; }
html.fw-kaffee .tp-t.is-res { border-color: var(--accent); }
.tp-t { container-type: inline-size; }
.tp-pl { display: none; margin-left: 4px; padding: 0 5px; border-radius: 6px; background: var(--surface-2); font: 700 0.68rem var(--f-body); font-style: normal; vertical-align: 2px; color: var(--muted); }
@container (max-width: 64px) { .tp-pl { display: inline-block; } .tp-t small { display: none; } .tp-t span { font-size: 0.68rem; } }
html.fw-kaffee .tp-t.is-da .tp-pl { background: rgb(255 255 255 / 0.2); color: #FFFFFF; }

/* Als App auf dem Handy (15.11.): weicher Übergang unter der schwebenden Leiste, damit kein Inhalt darunter durchschimmert */
@media (max-width: 900px) {
  html.fw-kaffee body::after { content: ""; position: fixed; z-index: 65; left: 0; right: 0; bottom: 0; height: calc(52px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 0%, transparent), var(--bg) 70%); pointer-events: none; }
}

/* =========================================================
   Push-Nachrichten und interner Chat (15.11.)
   ========================================================= */
/* Fenster „Nichts mehr verpassen“ */
.pb-sheet { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center; }
.pb-backdrop { position: absolute; inset: 0; border: 0; background: rgb(43 30 22 / 0.45); cursor: pointer; }
.pb-panel { position: relative; width: min(100% - 28px, 440px); margin-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; padding: 22px 20px 16px; border-radius: 28px; background: var(--bg); color: var(--ink); box-shadow: 0 16px 40px rgb(43 30 22 / 0.35); display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 901px) { .pb-sheet { align-items: center; } .pb-panel { margin-bottom: 0; } }
.pb-glocke { width: 52px; height: 52px; border-radius: 26px; background: var(--fw-grad, var(--accent)); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.pb-panel h2 { margin: 0; font-family: var(--f-serif, Georgia, serif); font-size: 1.6rem; font-weight: 500; line-height: 1.15; }
html.fw-kaffee .pb-panel h2 { font-family: Fraunces, Georgia, serif; }
.pb-panel p { margin: 0; color: var(--muted); line-height: 1.5; }
.pb-punkte { list-style: none; margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
.pb-punkte li { display: flex; align-items: center; gap: 10px; }
.pb-punkte svg { color: var(--accent); flex: none; }
.pb-an { min-height: 52px; justify-content: center; font-size: 1rem; }
.pb-spaeter { min-height: 44px; border: 0; background: none; color: var(--muted); font: 700 0.95rem var(--f-body); cursor: pointer; }
.pb-info:empty { display: none; }
.pb-info { text-align: center; font-size: 0.88rem; }

/* Seite Benachrichtigungen */
.pb-seite { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.pb-form { display: flex; flex-direction: column; gap: 12px; }
.pb-status { padding: 14px 16px; border-radius: 18px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.pb-status p { margin: 0; }
.pb-status #pb-status-text { font-weight: 700; }
.pb-status[data-zustand="granted"] { background: var(--green-soft); color: var(--green); }
.pb-status[data-zustand="denied"], .pb-status[data-zustand="homescreen"] { background: var(--yolk-soft); color: var(--accent-ink); }
.pb-status-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pb-status-knoepfe [hidden] { display: none; }
.pb-gruppe { display: flex; flex-direction: column; gap: 0; padding-top: 14px; padding-bottom: 6px; }
.pb-label { margin: 0 0 6px; font-family: var(--f-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pb-zeile { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; }
.pb-zeile form { margin: 0; }
.pb-label + .pb-zeile { border-top: 0; }
.pb-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pb-txt b { font-size: 0.98rem; }
.pb-txt small { font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
.pb-zeiten { display: flex; gap: 12px; padding: 0 0 12px; }
.pb-zeiten label { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--muted); }
.pb-zeiten input { min-height: 40px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: 600 1rem var(--f-mono); color: var(--ink); }

/* Chat-Knopf oben am Handy */
.side-chat { display: none; }
@media (max-width: 900px) {
  .side-chat { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; flex: none; }
  .side-chat .tab-badge, .side-chat .nav-badge { position: absolute; top: -3px; right: -3px; }
}
.side-chat-n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; background: var(--accent); color: #FFFFFF; font: 800 0.72rem/20px var(--f-body); text-align: center; }

/* Chat */
.ch { --ch-ich: var(--fw-grad, var(--accent)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; color: var(--ink); }
.ch-label { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ch-rund { width: 44px; height: 44px; flex: none; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; padding: 0; }
.ch-av { flex: none; width: 30px; height: 30px; border-radius: 15px; background: var(--c, var(--muted)); color: #FFFFFF; font: 800 0.7rem var(--f-body); display: inline-flex; align-items: center; justify-content: center; }
.ch-av.is-gross { width: 46px; height: 46px; border-radius: 23px; font-size: 0.85rem; }
.ch-av.is-team { width: 46px; height: 46px; border-radius: 23px; background: var(--fw-grad, var(--accent)); }

.ch-liste { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ch-liste-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.ch-liste-kopf > span { display: flex; flex-direction: column; gap: 2px; }
.ch-liste-kopf h1 { margin: 0; font-size: 1.9rem; line-height: 1; }
html.fw-kaffee .ch-liste-kopf h1 { font-family: Fraunces, Georgia, serif; font-weight: 500; }
.ch-gespraeche { display: flex; flex-direction: column; padding: 2px 12px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.ch-g { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; min-height: 48px; }
.ch-g:first-child { border-top: 0; }
.ch-g-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ch-g-zeile { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; }
.ch-g-zeile b { font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-g-zeile small { font-size: 0.75rem; color: var(--muted); flex: none; }
.ch-g-vor { flex: 1; min-width: 0; font-size: 0.85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-g-vor.is-neu { color: var(--ink); font-weight: 700; }
.ch-g.is-leer .ch-g-vor { font-style: normal; opacity: 0.8; }
.ch-zahl { flex: none; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 11px; background: var(--accent); color: #FFFFFF; font: 800 0.75rem/22px var(--f-body); text-align: center; }
.ch-zahl[hidden] { display: none; }
.ch-hinweis { margin: 0; padding: 0 6px; font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

/* Angeheftet */
.ch-pinbox:empty { display: none; }
.ch-pin { padding: 16px; border-radius: 22px; background: var(--fw-grad, var(--accent)); color: #FFFFFF; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 14px 30px color-mix(in srgb, var(--fw-dark, #2B1E16) 22%, transparent); }
.ch-pin-label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.ch-pin-text { margin: 0; font-size: 1.12rem; line-height: 1.3; }
html.fw-kaffee .ch-pin-text { font-family: Fraunces, Georgia, serif; }
.ch-pin-text a { color: #FFFFFF; }
.ch-pin-balken { height: 6px; border-radius: 3px; background: rgb(255 255 255 / 0.3); overflow: hidden; }
.ch-pin-balken span { display: block; height: 100%; border-radius: 3px; background: #FFFFFF; }
.ch-pin-fuss { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.82rem; }
.ch-pin-ok { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: #FFFFFF; color: var(--accent-ink); font: 800 0.88rem var(--f-body); cursor: pointer; flex: none; }
.ch-pin-du { font-weight: 800; }
.ch-pin-mehr summary { cursor: pointer; font-size: 0.85rem; font-weight: 700; list-style: none; }
.ch-pin-mehr summary::-webkit-details-marker { display: none; }
.ch-pin-mehr summary::after { content: " ▾"; }
.ch-pin-liste { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.ch-pin-liste li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.9rem; }
.ch-pin-liste li span:nth-child(2) { flex: 1; }
.ch-pin-liste b { font-size: 0.8rem; opacity: 0.75; }
.ch-pin-liste b.is-ok { opacity: 1; }
.ch-pin-liste .ch-av { border: 1.5px solid rgb(255 255 255 / 0.7); }
.ch-pin-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 8px; }
.ch-pin-knoepfe .btn { background: #FFFFFF; color: var(--accent-ink); border-color: transparent; }
.ch-pin-knoepfe .link-btn { color: #FFFFFF; }
.ch-pin.is-voll .ch-pin-liste { background: none; }
.ch-hinweis-kurz { margin: 8px 0 0; font-size: 0.85rem; font-weight: 700; }

/* Gespräch */
.ch-gespraech { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.ch-kopf { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.ch-kopf-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-kopf-txt b { font-size: 1rem; }
.ch-kopf-txt small { font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-kopf-link { flex: none; padding: 8px 12px; border-radius: 12px; border: 1.5px dashed var(--accent); color: var(--accent-ink); font-size: 0.8rem; font-weight: 800; text-decoration: none; }
.ch-zurueck { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 44px; margin-left: -8px; color: var(--accent); }
.ch-pin-im-gespraech { padding: 10px 12px 0; }
.ch-pin-im-gespraech .ch-pin { padding: 12px 14px; gap: 8px; border-radius: 18px; box-shadow: none; }
.ch-pin-im-gespraech .ch-pin-text { font-size: 0.95rem; }
.ch-verlauf { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 10px; }
.ch-leer { margin: auto; max-width: 280px; text-align: center; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.ch-tag { align-self: center; margin: 4px 0; }
.ch-tag span { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); font-family: var(--f-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ch-m { display: flex; align-items: flex-end; gap: 8px; max-width: min(84%, 560px); }
.ch-m.is-folge { margin-top: -6px; }
.ch-m.is-folge > .ch-av { visibility: hidden; }
.ch-m.is-ich { align-self: flex-end; flex-direction: row-reverse; }
.ch-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ch-m.is-ich .ch-b { align-items: flex-end; }
.ch-n { font-size: 0.75rem; font-weight: 800; color: var(--muted); padding-left: 4px; }
.ch-blase { padding: 10px 14px; border-radius: 20px 20px 20px 6px; background: var(--surface); border: 1px solid var(--line); font-size: 0.98rem; line-height: 1.4; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 6px; }
.ch-m.is-ich .ch-blase { border-radius: 20px 20px 6px 20px; background: var(--ch-ich); border-color: transparent; color: #FFFFFF; }
.ch-m.is-ich .ch-blase a { color: #FFFFFF; }
.ch-m.is-wichtig .ch-blase { border: 2px solid var(--accent); }
.ch-m.is-ich.is-wichtig .ch-blase { border-color: var(--fw-dark, var(--ink)); }
.ch-w { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.ch-bild { display: block; margin: -4px -8px 0; }
.ch-bild img { display: block; max-width: min(260px, 100%); max-height: 320px; border-radius: 14px; object-fit: cover; }
.ch-z { font-size: 0.7rem; color: var(--muted); padding: 0 4px; }

.ch-eingabe { flex: none; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.ch-eingabe.is-sendet { opacity: 0.6; }
.ch-eingabe-zeile { display: flex; align-items: flex-end; gap: 8px; }
.ch-eingabe textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 140px; box-sizing: border-box; padding: 11px 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 400 1rem/1.35 var(--f-body); resize: none; }
.ch-eingabe textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ch-senden { background: var(--fw-grad, var(--accent)); color: #FFFFFF; border-color: transparent; }
.ch-foto { color: var(--muted); }
.ch-foto:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.ch-vorschau { position: relative; align-self: flex-start; }
.ch-vorschau[hidden] { display: none; }
.ch-vorschau img { display: block; max-height: 120px; max-width: 200px; border-radius: 14px; }
.ch-vorschau button { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 14px; border: 0; background: var(--ink); color: #FFFFFF; font-size: 18px; line-height: 1; cursor: pointer; }
.ch-fehler { margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: 0.88rem; font-weight: 700; }
.ch-fehler[hidden] { display: none; }
.ch-wichtig-wahl { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; color: var(--accent-ink); cursor: pointer; }
.ch-wichtig-wahl span { display: inline-flex; align-items: center; gap: 6px; }
.ch-wichtig-wahl input { width: 18px; height: 18px; accent-color: var(--accent); }
.ch-seitenpin { display: none; }

/* Handy: Liste oder Gespräch im Vollbild */
@media (max-width: 900px) {
  .ch-gespraech, .ch-seitenpin { display: none; }
  .ch-pin-im-gespraech { display: none; }
  html.ch-offen .ch-liste { display: none; }
  html.ch-offen .ch-gespraech { display: flex; position: fixed; inset: 0; z-index: 85; padding-top: env(safe-area-inset-top, 0px); }
  html.ch-offen .ch-pin-im-gespraech { display: block; }
  html.ch-offen .tabbar, html.ch-offen .side, html.ch-offen body::after { display: none; }
  html.ch-offen body { overflow: hidden; }
  html.ch-offen .ch-eingabe { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}
/* Computer: drei Spalten in voller Höhe */
@media (min-width: 901px) {
  html.ch-seite .has-shell .wrap { padding: 0; overflow: hidden; }
  html.ch-seite .has-shell .wrap > .flash { margin: 16px 16px 0; }
  .ch { grid-template-columns: 320px minmax(0, 1fr); height: calc(100dvh - 24px); }
  .ch.hat-pin, .ch:has(.ch-seitenpin) { grid-template-columns: 320px minmax(0, 1fr); }
  .ch-liste { padding: 24px 14px 16px; border-right: 1px solid var(--line); overflow-y: auto; }
  .ch-pin-liste-oben { display: none; }
  .ch-gespraeche { padding: 0; border: 0; background: none; }
  .ch-g { border-top: 0; border-radius: 16px; padding: 10px 12px; }
  .ch-g:hover { background: var(--surface-2); }
  .ch-g.is-aktiv { background: var(--yolk-soft); }
  .ch-zurueck { display: none; }
  .ch-kopf { padding: 18px 24px 14px; }
  .ch-verlauf { padding: 18px 24px 10px; }
  .ch-eingabe { padding: 12px 24px 18px; }
  .ch-pin-im-gespraech { padding: 12px 24px 0; }
}
@media (min-width: 1240px) {
  .ch:has(.ch-seitenpin) { grid-template-columns: 300px minmax(0, 1fr) 300px; }
  .ch-seitenpin { display: flex; flex-direction: column; gap: 12px; padding: 24px 18px; border-left: 1px solid var(--line); background: var(--surface); overflow-y: auto; }
  .ch-seitenpin .ch-pin { box-shadow: none; }
  .ch:has(.ch-seitenpin) .ch-pin-im-gespraech { display: none; }
}

/* Chat: Verläufe ohne dunkle Kante */
.ch-m.is-ich .ch-blase, .ch-pin, .ch-senden, .ch-av.is-team, .pb-glocke { background-origin: border-box; }

/* Menü: kein Punkt vor dem Eintrag, alle bündig; der aktive ist nur hinterlegt */
.side-dot { display: none; }
/* Unterpunkte in den Gruppen eingerückt, Hauptpunkte bündig */
.side-group > .side-link { margin-left: 14px; }
/* Einstellungen: Karten einer Reihe gleich hoch, Knöpfe unten auf einer Linie (15.11.) */
.es-grid { align-items: stretch; }
.es-karte { display: flex; flex-direction: column; gap: 12px; }
.es-karte > h2, .es-karte > p { margin: 0; }
.es-karte > form { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.es-karte > form > :last-child, .es-karte > .es-unten { margin-top: auto; }
.es-karte .es-module { align-items: stretch; }
.es-karte .es-module > .btn { align-self: flex-start; }
.es-kacheln { display: flex; flex-direction: column; gap: 8px; }
.es-v-ico { justify-content: flex-start; padding: 11px 14px; gap: 12px; }
.es-v-ico > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.es-v-ico small { font-size: 0.8rem; color: var(--muted); }
.es-v-sym { width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--yolk-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.es-v-pfeil { flex: none; font-size: 1.4rem; line-height: 1; color: var(--muted); }
.es-v-ico:hover { border-color: var(--accent); }
.es-v-ico:hover .es-v-pfeil { color: var(--accent); }
.es-karte > form > .es-switch-row:first-of-type { border-top: 0; padding-top: 0; }
.es-karte .es-switch-row, .form .es-switch-row { flex-direction: row; flex-wrap: nowrap; align-items: center; }
.es-karte .es-switch-row > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.es-verb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .es-verb { grid-template-columns: minmax(0, 1fr); } }
.es-verb .es-v > span:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.es-verb .es-v small { font-size: 0.8rem; color: var(--muted); }
/* Schnellzugriff nur am Handy (Plus in der Leiste unten), am Computer kein „Schnell“-Knopf */
.side-plus { display: none !important; }

/* =========================================================
   Personalakten (15.11.)
   ========================================================= */
.pa-zurueck { display: inline-block; margin-bottom: 4px; font-weight: 700; color: var(--accent); text-decoration: none; }
.pa-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.pa-pill.is-ok { background: var(--green-soft); color: var(--green); }
.pa-pill.is-warn { background: var(--yolk-soft); color: var(--accent-ink); }
.pa-pill.is-bad { background: var(--red-soft); color: var(--red); }
.pa-av { flex: none; width: 40px; height: 40px; border-radius: 20px; background: var(--c, var(--muted)); color: #FFFFFF; font: 800 0.8rem var(--f-body); display: inline-flex; align-items: center; justify-content: center; }
.pa-av.is-gross { width: 64px; height: 64px; border-radius: 32px; font-size: 1.15rem; box-shadow: 0 0 0 3px rgb(255 255 255 / 0.35); }
.pa-label { margin: 10px 0 0; font-family: var(--f-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pa-h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pa-h2 h2 { margin: 0; }
.pa-h3 { display: flex; justify-content: space-between; align-items: baseline; }
.pa-h3 a { padding: 0 6px; font-weight: 800; color: var(--accent); text-decoration: none; }
.pa-schloss { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 800; color: var(--accent-ink); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 0.82rem; }
.pa-kopf-knoepfe { display: flex; gap: 8px; }

/* Übersicht */
.pa-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pa-kpi { padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.pa-kpi small { font-size: 0.78rem; color: var(--muted); }
.pa-kpi b { font: 600 1.8rem var(--f-mono); }
.pa-kpi span { font-size: 0.78rem; color: var(--muted); }
.pa-kpi.is-haupt { background: var(--fw-grad, var(--accent)); background-origin: border-box; border-color: transparent; color: #FFFFFF; }
.pa-kpi.is-haupt small, .pa-kpi.is-haupt span { color: rgb(255 255 255 / 0.85); }
.pa-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.pa-liste { display: flex; flex-direction: column; gap: 0; }
.pa-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pa-filter a { padding: 7px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 0.82rem; font-weight: 800; text-decoration: none; }
.pa-filter a.is-aktiv { background: var(--fw-dark, var(--ink)); color: var(--bg); }
.pa-zeile { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(0, 2.2fr) 120px 20px; gap: 14px; align-items: center; padding: 12px 6px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; border-radius: 12px; }
.pa-zeile:hover { background: var(--surface-2); }
.pa-wer { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pa-wer > span:last-child, .pa-next > span, .pa-kopf-txt, .pa-punkt-txt { display: flex; flex-direction: column; min-width: 0; }
.pa-wer small, .pa-next small { font-size: 0.78rem; color: var(--muted); }
.pa-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pa-quote { display: flex; flex-direction: column; gap: 5px; }
.pa-quote b { font: 600 0.85rem var(--f-mono); }
.pa-balken { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.pa-balken span { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.pa-balken .is-ok { background: var(--green); }
.pa-balken .is-bad { background: var(--red); }
.pa-pfeil { color: var(--muted); }
.pa-seite { display: flex; flex-direction: column; gap: 16px; }
.pa-next { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.pa-next .pa-av { width: 32px; height: 32px; font-size: 0.7rem; }
.pa-hinweis p { margin: 6px 0 0; }

/* Akte */
.pa-kopf { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: 24px; background: var(--fw-grad, var(--accent)); background-origin: border-box; color: #FFFFFF; box-shadow: 0 14px 30px color-mix(in srgb, var(--fw-dark, #2B1E16) 22%, transparent); }
.pa-kopf h1 { margin: 0; color: #FFFFFF; font-size: 1.9rem; line-height: 1.05; }
.pa-kopf-txt { flex: 1; gap: 4px; }
.pa-kopf-txt > span { font-size: 0.9rem; opacity: 0.9; }
.pa-kopf-zahlen { display: flex; gap: 10px; }
.pa-kopf-zahlen span { padding: 10px 14px; border-radius: 16px; background: rgb(255 255 255 / 0.18); display: flex; flex-direction: column; }
.pa-kopf-zahlen small { font-size: 0.72rem; opacity: 0.85; }
.pa-kopf-zahlen b { font: 600 1.15rem var(--f-mono); }
.pa-akte { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pa-rechts { display: flex; flex-direction: column; gap: 16px; }
.pa-check { display: flex; flex-direction: column; gap: 0; }
.pa-punkt { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.pa-label + .pa-punkt { border-top: 0; }
.pa-sym { flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-weight: 900; display: flex; align-items: center; justify-content: center; }
.pa-punkt.is-ok .pa-sym { background: var(--green-soft); color: var(--green); }
.pa-punkt.is-warn .pa-sym { background: var(--yolk-soft); color: var(--accent-ink); }
.pa-punkt.is-bad .pa-sym { background: var(--red-soft); color: var(--red); }
.pa-punkt.is-grau, .pa-punkt.is-entfaellt { opacity: 0.6; }
.pa-punkt-txt { flex: 1; gap: 2px; }
.pa-punkt-txt b { font-size: 0.95rem; }
.pa-punkt-txt small { font-size: 0.8rem; color: var(--muted); }
.pa-punkt.is-bad .pa-punkt-txt small:first-of-type { color: var(--red); }
.pa-nachweis { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; font-weight: 800; color: var(--accent); text-decoration: none; }
.pa-punkt-knoepfe { flex: none; display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 52%; }
.pa-punkt-knoepfe form { margin: 0; }
.pa-mehr > summary { list-style: none; cursor: pointer; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 0.8rem; font-weight: 800; background: var(--surface); }
.pa-mehr > summary::-webkit-details-marker { display: none; }
.pa-mehr[open] { flex-basis: 100%; }
.pa-mehr-form, .pa-stamm, .pa-vl-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.pa-stamm { background: none; padding: 0; }
.pa-mehr-form label, .pa-stamm label, .pa-vl-form label, .pa-hoch label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.pa-mehr-form label.check, .pa-hoch label.check, .pa-vl-form label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); }
.pa-breit { grid-column: 1 / -1; }
.pa-mehr-knoepfe { display: flex; align-items: center; gap: 12px; }
.pa-hoch { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface-2); margin: 10px 0 14px; }
.pa-hoch [hidden] { display: none; }
.pa-datei { position: relative; flex-direction: row !important; align-items: center; gap: 8px !important; padding: 14px; border-radius: 14px; border: 1.5px dashed var(--accent); color: var(--accent-ink) !important; background: var(--surface); cursor: pointer; }
.pa-datei input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pa-lohn { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.pa-monate { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.pa-monat-k { padding: 9px 0; border-radius: 10px; text-align: center; font-size: 0.78rem; font-weight: 800; border: 1.5px dashed var(--line); color: var(--muted); text-decoration: none; }
.pa-monat-k.is-da { border: 0; background: var(--yolk-soft); color: var(--accent-ink); }
.pa-ordner { border-top: 1px solid var(--line); }
.pa-ordner > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.pa-ordner > summary::-webkit-details-marker { display: none; }
.pa-ordner > summary > span:last-child { display: flex; flex-direction: column; }
.pa-ordner small, .pa-datei-z small, .pa-datei-m small { font-size: 0.78rem; color: var(--muted); }
.pa-ordner-sym { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--yolk-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.pa-datei-z { display: flex; align-items: center; gap: 6px; padding: 8px 0 8px 50px; }
.pa-datei-z > a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.pa-datei-z > a > span { display: flex; flex-direction: column; min-width: 0; }
.pa-datei-z b { font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-datei-z form { margin: 0; }
.pa-mini { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 1.1rem; display: inline-flex; align-items: center; justify-content: center; }
.pa-mini.is-an { color: var(--green); border-color: var(--green-soft); background: var(--green-soft); }

/* Vorlage */
.pa-intro { max-width: 760px; margin: 0 0 4px; line-height: 1.5; }
.pa-vl { display: flex; flex-direction: column; gap: 0; }
.pa-vl h2 { margin: 0 0 6px; }
.pa-vl-z { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pa-vl-z.is-aus { opacity: 0.55; }
.pa-vl-z form { margin: 0; }
.pa-vl-txt { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.pa-vl-txt small { font-size: 0.8rem; color: var(--muted); }
.pa-vl-z .pa-mehr[open] { order: 3; }

/* Mitarbeiter */
.pa-mein { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.pa-dringend { padding: 16px; border-radius: 22px; background: var(--fw-grad, var(--accent)); background-origin: border-box; color: #FFFFFF; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 14px 30px color-mix(in srgb, var(--fw-dark, #2B1E16) 22%, transparent); }
.pa-dringend.is-bad { background: linear-gradient(140deg, #C9614F, #8E2E20); }
.pa-dringend .pa-label { margin: 0; color: rgb(255 255 255 / 0.85); }
.pa-dringend b { font-size: 1.25rem; }
html.fw-kaffee .pa-dringend b { font-family: Fraunces, Georgia, serif; font-weight: 500; }
.pa-ein { margin: 4px 0 0; }
.pa-ein-knopf { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: #FFFFFF; color: var(--accent-ink); font-size: 0.85rem; font-weight: 800; cursor: pointer; }
.pa-punkt .pa-ein-knopf { background: var(--surface-2); padding: 7px 12px; font-size: 0.8rem; }
.pa-ein-knopf input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pa-datei-m { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.pa-datei-m > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }

@media (max-width: 1100px) {
  .pa-grid, .pa-akte { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .pa-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pa-zeile { grid-template-columns: minmax(0, 1fr) 20px; }
  .pa-pills { grid-column: 1; }
  .pa-quote { grid-column: 1; }
  .pa-pfeil { grid-row: 1; grid-column: 2; }
  .pa-kopf { flex-wrap: wrap; padding: 16px; }
  .pa-kopf-zahlen { width: 100%; }
  .pa-kopf-zahlen span { flex: 1; }
  .pa-punkt { flex-wrap: wrap; }
  .pa-punkt-knoepfe { max-width: none; width: 100%; justify-content: flex-start; padding-left: 38px; }
  .pa-mehr-form, .pa-stamm, .pa-vl-form { grid-template-columns: minmax(0, 1fr); }
  .pa-datei-z { padding-left: 0; }
}

/* Handy: Tischplan seitlich wischbar, Team-Liste zweispaltig (15.11.) */
@media (max-width: 640px) {
  .tp-grid-wrap .panel.s2 { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .tp-floor { min-width: 620px; }
  .tp-legende { position: sticky; left: 0; }
  .tp-grid-wrap .panel.s2::after { content: "Seitlich wischen für den ganzen Raum"; display: block; position: sticky; left: 0; margin-top: 6px; font-size: 0.75rem; color: var(--muted); }

  .team-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 10px; align-items: start; }
  .team-list li > .avatar { grid-row: 1; grid-column: 1; margin-top: 2px; }
  .team-list li > :not(.avatar) { grid-column: 2; margin-left: 0; order: 0; }
  .team-main strong { white-space: normal; }
  .team-main small .mono { white-space: nowrap; }
  .team-flags, .team-actions { justify-content: flex-start; }
}

/* Eingabefelder nie breiter als die Spalte, Datum/Uhrzeit am iPhone (15.11.) */
main input:not([type=checkbox]):not([type=radio]), main select, main textarea { max-width: 100%; min-width: 0; box-sizing: border-box; }
.form label, .form-grid > * { min-width: 0; }
main label input[type="date"], main label input[type="time"], main label input[type="datetime-local"], main label input[type="month"],
main .form input[type="date"], main .form input[type="time"] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0;
}
main input::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 1.4em; }
main input::-webkit-datetime-edit { padding: 0; }

/* Startseite: „Was braucht dich“ als Liste mit Zahl (15.11.) */
.needs-hallo { margin: 0; font-size: 0.95rem; font-weight: 600; opacity: 0.85; }
.needs .needs-title { margin-top: -10px; }
.need-list { display: flex; flex-direction: column; border-radius: 20px; background: var(--surface); overflow: hidden; }
html.fw-kaffee .need-list { background: #FFFDF9; }
.need-row { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 11px 14px; box-sizing: border-box; color: var(--ink); text-decoration: none; }
.need-row + .need-row { border-top: 1px solid var(--line); }
.need-row:hover { background: var(--surface-2); }
.need-num { flex: none; min-width: 40px; height: 40px; padding: 0 6px; box-sizing: border-box; border-radius: 12px; background: #FBEFE3; color: #A0532C; font-family: var(--f-mono); font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.need-r-bad .need-num { background: #F6E1DC; color: #A23B2A; }
.need-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.need-txt b { font-size: 0.95rem; line-height: 1.3; font-weight: 800; }
.need-txt small { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.need-row > svg { flex: none; color: #B9A897; }

/* Startseite: erledigte Reservierungen einklappen (15.11., Knopf statt details für iPhone) */
.ab-leer { margin: 0; }
.ab-fertig { margin-top: 4px; }
.ab-fertig-knopf { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 14px; background: #E6EBDB; color: #4E6B3E; font: inherit; font-size: 0.9rem; font-weight: 800; text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none; }
.ab-fertig-sym { flex: none; }
.ab-fertig-auf { margin-left: auto; font-size: 0.82rem; }
.ab-fertig-auf::after { content: "anzeigen"; }
.ab-fertig.is-open .ab-fertig-auf::after { content: "ausblenden"; }
.ab-fertig:not(.is-open) > .ab { display: none; }
.ab-fertig.is-open > .ab { margin-top: 12px; }
.ab-fertig .ab-box { opacity: 0.7; }

/* Personalakten-Übersicht neu: Nach Person / Nach Punkt (15.11.) */
.pa-head { flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.pa-seg { display: flex; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.pa-seg a { padding: 8px 16px; border-radius: 11px; color: var(--muted); font-size: 0.9rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.pa-seg a.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 2px 6px rgb(43 30 22 / 0.1); }
.pa-head .pa-kopf-knoepfe { margin-left: auto; }
.pa-haupt { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pa-sum { padding: 16px 18px; border-radius: 22px; background: var(--fw-grad, var(--accent)); color: #FFFFFF; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 14px 30px rgb(94 46 23 / 0.22); }
.pa-sum-zeile { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pa-sum-zeile b { font-size: 1.05rem; }
.pa-sum-zeile span { font-family: var(--f-mono); font-size: 0.85rem; }
.pa-sum-balken { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: rgb(255 255 255 / 0.22); }
.pa-sum-balken span { display: block; height: 100%; }
.pa-sum-balken .is-bad, .pa-sum-leg i.is-bad { background: #F3B8A8; }
.pa-sum-balken .is-warn, .pa-sum-leg i.is-warn { background: #F6D2A6; }
.pa-sum-balken .is-ok, .pa-sum-leg i.is-ok { background: #FFFFFF; }
.pa-sum-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.78rem; font-weight: 700; }
.pa-sum-leg span { display: inline-flex; align-items: center; gap: 6px; }
.pa-sum-leg i { width: 8px; height: 8px; border-radius: 4px; }
.pa-spalten { display: grid; grid-template-columns: minmax(200px, 1.3fr) minmax(0, 2fr) 56px 20px; gap: 16px; padding: 4px 6px 8px; font-family: var(--f-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pa-row { display: grid; grid-template-columns: minmax(200px, 1.3fr) minmax(0, 2fr) 56px 20px; gap: 16px; align-items: center; padding: 12px 6px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; scroll-margin-top: 90px; }
a.pa-row:hover { background: var(--surface-2); }
.pa-row .pa-wer { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.pa-row .pa-wer > span:last-child { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pa-row .pa-wer b { font-size: 0.95rem; }
.pa-row .pa-wer small { font-size: 0.76rem; color: var(--muted); }
.pa-sub { font-style: normal; font-size: 0.8rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-sub.is-bad { color: var(--red); }
.pa-sub.is-warn { color: var(--accent-ink, #A0532C); }
.pa-sub.is-ok { color: var(--green); }
.pa-sub.is-grau { color: var(--muted); }
.pa-row .pa-wer em.pa-sub { display: none; }
.pa-ring { position: relative; flex: none; display: inline-flex; }
.pa-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: -0.03em; }
.pa-ring-bg { stroke: var(--surface-2); }
.pa-ring.is-ok .pa-ring-fg { stroke: var(--green); }
.pa-ring.is-warn .pa-ring-fg { stroke: #C8862A; }
.pa-ring.is-bad .pa-ring-fg { stroke: var(--red); }
.pa-row.is-punkt { grid-template-columns: minmax(0, 1fr) auto 20px; }
.pa-row.is-punkt .pa-wer em.pa-sub { display: block; }
.pa-punktsym { flex: none; width: 10px; height: 10px; margin: 0 4px; border-radius: 5px; background: var(--muted); }
.pa-punktsym.is-bad { background: var(--red); }
.pa-punktsym.is-warn { background: #C8862A; }
.pa-punktsym.is-ok { background: var(--green); }
.pa-row.is-punkt strong.pa-sub { display: inline; }
.pa-stapel { display: inline-flex; align-items: center; }
.pa-stapel .pa-av { width: 30px; height: 30px; font-size: 0.66rem; box-shadow: 0 0 0 2px var(--surface); }
.pa-stapel .pa-av + .pa-av { margin-left: -5px; }
.pa-stapel .pa-av { font-size: 0.6rem; }
.pa-av.is-mehr { background: var(--surface-2); color: var(--muted); }
.pa-schnell { margin: 0; justify-self: end; grid-column: 2 / -1; }
.pa-pbar { display: flex; flex-direction: column; gap: 6px; padding: 9px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.pa-pbar > span:first-child { display: flex; justify-content: space-between; gap: 8px; font-size: 0.88rem; }
.pa-pbar small { font-family: var(--f-mono); color: var(--muted); }
@media (max-width: 1100px) {
  .pa-seite > section:first-child { display: none; }
}
@media (max-width: 700px) {
  .pa-head .pa-kopf-knoepfe { margin-left: 0; }
  .pa-seg { order: 3; width: 100%; }
  .pa-seg a { flex: 1; text-align: center; }
  .pa-spalten { display: none; }
  .pa-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 2px; }
  .pa-row .pa-pills, .pa-row .pa-pfeil { display: none; }
  .pa-row .pa-wer em.pa-sub { display: block; }
  .pa-row.is-punkt { grid-template-columns: minmax(0, 1fr) auto; }
  .pa-row.is-punkt .pa-pfeil { display: none; }
  .pa-schnell { grid-column: auto; }
}

/* Startseite: neue Reservierungsanfragen als Kachel statt Block oben (15.11.) */
.kpi-anfrage.is-neu { border-color: #C8862A; background: #FBEFE3; }
.kpi-anfrage.is-neu .kpi-num, .kpi-anfrage.is-neu .kpi-sub { color: #A0532C; }
.kpi-punkt { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 4px; background: #C8862A; vertical-align: 1px; }

/* Reservierungen: Kennzeichen „gegangen“ (15.11.) */
.tag-weg { background: #E6EBDB; color: #4E6B3E; font-weight: 800; }

/* Handy: Seite darf nie seitlich wackeln (15.11.) */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
details:not([open]) > :not(summary) { display: none; }
main, .shell { min-width: 0; max-width: 100%; }

/* Reservierungen: ein Hauptknopf rechts, Rest im Menü „⋯“ (15.11., Variante C) */
.rz { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 12px 18px; }
.rz.is-weg { opacity: 0.6; }
.rz-kopf { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.rz-pill.is-weg { background: #E6EBDB; color: #4E6B3E; }
.rz-actions, .rk-actions { display: block; }
.rc-akt { display: flex; align-items: stretch; gap: 8px; }
.rc-hf { margin: 0; display: flex; }
.rc-haupt { width: 196px; min-height: 58px; box-sizing: border-box; padding: 9px 14px; border: 0; border-radius: 16px; background: var(--fw-grad, var(--accent)); color: #FFFFFF; font: inherit; text-align: left; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.rc-haupt.is-go { background: #4E6B3E; }
.rc-haupt.is-fertig { background: #E6EBDB; color: #4E6B3E; cursor: default; }
.rc-haupt.is-aus { background: var(--surface); color: var(--muted); border: 1px solid var(--line); cursor: default; }
.rc-sym { flex: none; width: 32px; height: 32px; border-radius: 16px; background: rgb(255 255 255 / 0.22); display: flex; align-items: center; justify-content: center; }
.rc-haupt.is-fertig .rc-sym, .rc-haupt.is-aus .rc-sym { background: rgb(0 0 0 / 0.05); }
.rc-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rc-txt b { font-size: 0.95rem; font-weight: 800; line-height: 1.2; }
.rc-txt small { font-size: 0.72rem; opacity: 0.85; line-height: 1.2; }
.rc-mehr { position: relative; display: flex; }
.rc-mehr-knopf { width: 48px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.rc-mehr.is-open .rc-mehr-knopf { border-color: var(--accent); color: var(--accent); }
.rc-menue { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 240px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 34px rgb(43 30 22 / 0.18); flex-direction: column; }
.rc-mehr.is-open .rc-menue { display: flex; }
.rc-menue form { margin: 0; }
.rc-menue button, .rc-menue a { width: 100%; min-height: 44px; display: flex; align-items: center; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-size: 0.9rem; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
.rc-menue button:hover, .rc-menue a:hover { background: var(--surface-2); }
.rc-menue .is-rot, .rc-menue .chip-del { color: var(--red); }
@media (max-width: 640px) {
  .rz { grid-template-columns: 58px minmax(0, 1fr); padding: 14px; }
  .rz-actions { grid-column: 1 / -1; width: auto; }
  .rc-hf, .rc-akt > .rc-haupt { flex: 1; }
  .rc-haupt { width: 100%; min-height: 50px; justify-content: center; }
  .rc-haupt .rc-txt small { display: none; }
  .rc-haupt .rc-sym { width: 26px; height: 26px; }
}
@media (max-width: 640px) { .rz-zeit { width: auto; } .rz { column-gap: 12px; } }

/* Schichttausch: Warnung bei Doppelschicht oder Abwesenheit (15.11.) */
.an-warn { align-self: flex-start; padding: 3px 10px; border-radius: 8px; background: #FBE5DA; color: #7A2E12; font-size: 0.8rem; font-weight: 700; }

/* Formulare einheitlich: Textfeld, Auswahl, Textbox und Häkchen sehen überall gleich aus (15.11.) */
main .form label:not(.check):not(.al-chip):not(.sk-schalter):not(.file-btn) { gap: 7px; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
main .form input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]),
main .form select:not([multiple]), main .form textarea {
  box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background-color: var(--surface-2); color: var(--ink); font: 400 16px/1.4 var(--f-body); box-shadow: none;
}
main .form textarea { min-height: 96px; line-height: 1.5; resize: vertical; }
main .form select:not([multiple]) { padding-right: 40px; }
main .form :is(input, select, textarea)::placeholder { color: var(--muted); opacity: 0.75; }
main .form :is(input, select, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--yolk-soft); }
main .form label.check { gap: 10px; font-size: 0.95rem; font-weight: 600; color: var(--ink); cursor: pointer; }
main .form label.check input[type=checkbox], main .form input[type=checkbox].check {
  -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid color-mix(in srgb, var(--muted) 55%, transparent);
  border-radius: 7px; background: var(--surface) center / 14px 14px no-repeat; cursor: pointer;
}
main .form label.check input[type=checkbox]:checked {
  border-color: var(--accent); background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
main .form label.check input[type=checkbox]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Speisekarte: Eintrag und Kategorie in klaren Abschnitten (15.11.) */
.sk-form { gap: 0; }
.sk-teil { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px 32px; padding: 22px 0; border-top: 1px solid var(--line); }
.sk-teil:first-of-type { border-top: 0; padding-top: 6px; }
.sk-kopf h3 { margin: 0 0 4px; font-size: 1.02rem; }
.sk-kopf p { margin: 0; font-size: 0.85rem; line-height: 1.45; color: var(--muted); }
.sk-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.sk-hilfe { font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.sk-opt { margin-left: 4px; font-weight: 500; opacity: 0.8; }
.sk-euro { position: relative; display: block; }
.sk-euro input { padding-right: 36px !important; text-align: left; font-variant-numeric: tabular-nums; }
.sk-euro i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 700; color: var(--muted); pointer-events: none; }
.sk-chips { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.sk-form .al-chip { position: relative; display: inline-flex; }
.sk-form .al-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sk-form .al-chip span { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; box-sizing: border-box; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--ink); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.sk-form .al-chip b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; box-sizing: border-box; border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 0.75rem; font-weight: 800; }
.sk-form .al-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.sk-form .al-chip input:checked + span b { background: rgb(255 255 255 / 0.22); color: #FFFFFF; }
.sk-form .al-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.sk-foto { grid-template-columns: 200px minmax(0, 1fr); }
.sk-foto .photo-prev { border-radius: 14px; }
.sk-foto-akt { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sk-foto-akt .photo-adv summary { font-size: 0.85rem; color: var(--muted); }
.sk-foto-akt .photo-adv input { margin-top: 8px; }
.sk-fuss { position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin: 8px -4px 0; padding: 16px 4px; border-top: 1px solid var(--line); background: var(--surface); }
.sk-knoepfe { display: flex; gap: 10px; }
.sk-knoepfe .btn { min-width: 120px; }
.sk-schalter { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.sk-form .sk-schalter input[type=checkbox] { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 48px; height: 28px; margin: 0; border: 0; border-radius: 14px; background: color-mix(in srgb, var(--muted) 35%, transparent); cursor: pointer; transition: background .2s; }
.sk-form .sk-schalter input[type=checkbox]::before { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgb(0 0 0 / 0.2); transition: transform .2s; }
.sk-form .sk-schalter input[type=checkbox]:checked { background: var(--accent); }
.sk-form .sk-schalter input[type=checkbox]:checked::before { transform: translateX(20px); }
.sk-form .sk-schalter input[type=checkbox]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sk-schalter span { display: flex; flex-direction: column; gap: 1px; }
.sk-schalter b { font-size: 0.95rem; color: var(--ink); }
.sk-schalter small { font-size: 0.78rem; color: var(--muted); }
.sk-panel .danger-zone { margin-top: 4px; }
@media (max-width: 900px) {
  .sk-teil { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 0; }
}
@media (max-width: 560px) {
  .sk-felder { grid-template-columns: minmax(0, 1fr); }
  .sk-foto { grid-template-columns: minmax(0, 1fr); }
  .sk-foto .photo-prev { max-width: 260px; }
  .sk-fuss { bottom: 86px; margin: 8px -16px 0; padding: 14px 16px; border-radius: 18px 18px 0 0; box-shadow: 0 -8px 20px rgb(43 30 22 / 0.08); }
  .sk-knoepfe { width: 100%; }
  .sk-knoepfe .btn { flex: 1; min-width: 0; }
}
.sk-form label.sk-schalter { flex-direction: row; align-items: center; }
@media (max-width: 560px) { .sk-fuss { position: static; margin: 8px 0 0; padding: 18px 0 4px; border-radius: 0; box-shadow: none; } }

/* Geräte & Checklisten übersichtlich (15.11.) */
.hv-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.hv-layout > .panel { margin: 0; }
.hv-intro { margin: -4px 0 16px; font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.hv-tabkopf, .hv-geraet { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 92px 92px 52px 136px; gap: 10px; align-items: center; }
.hv-tabkopf { padding: 0 12px 8px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hv-liste { display: flex; flex-direction: column; gap: 8px; }
.hv-geraet { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.hv-geraet.is-aus { opacity: 0.55; }
.hv-geraet label { gap: 0 !important; }
.hv-mobil { display: none; }
.hv-name input { font-weight: 600 !important; }
.hv-einheit { position: relative; display: block; }
.hv-einheit input { padding-right: 40px !important; font-variant-numeric: tabular-nums; }
.hv-einheit i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 0.85rem; font-weight: 700; color: var(--muted); pointer-events: none; }
.hv-akt { display: flex; align-items: center; gap: 6px; }
.hv-weg { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.hv-weg:hover, .hv-weg:focus-visible { background: var(--red-soft, #FBE5DA); color: var(--red); }
.form label.hv-schalter { flex-direction: row; align-items: center; gap: 10px; cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.hv-schalter input[type=checkbox] { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 44px; height: 26px; margin: 0; border: 0; border-radius: 13px; background: color-mix(in srgb, var(--muted) 35%, transparent); cursor: pointer; transition: background .2s; }
.hv-schalter input[type=checkbox]::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgb(0 0 0 / 0.2); transition: transform .2s; }
.hv-schalter input[type=checkbox]:checked { background: var(--accent); }
.hv-schalter input[type=checkbox]:checked::before { transform: translateX(18px); }
.hv-schalter input[type=checkbox]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hv-neu .form { gap: 16px; border: 0; padding: 0; }
.hv-feld { display: flex; flex-direction: column; gap: 8px; }
.hv-label { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.hv-vorlagen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hv-vorlage { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.hv-vorlage b { font-size: 0.88rem; }
.hv-vorlage small { font-size: 0.75rem; color: var(--muted); }
.hv-vorlage:hover, .hv-vorlage:focus-visible { border-color: var(--accent); outline: none; }
.hv-zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hv-hinweis { margin: 0; font-size: 0.8rem; line-height: 1.5; color: var(--muted); }
.hv-listen { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.hv-liste-karte { margin: 0; gap: 14px !important; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.hv-liste-karte.is-aus { opacity: 0.6; }
.hv-liste-neu { border-style: dashed; background: transparent; }
.hv-karten-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.hv-pill { padding: 4px 10px; border-radius: 999px; background: var(--yolk-soft); color: var(--accent-ink); font-size: 0.75rem; font-weight: 800; }
.hv-zahl { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.hv-opt { font-weight: 500; opacity: 0.85; }
.hv-karten-fuss { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
@media (max-width: 1100px) {
  .hv-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .hv-tabkopf { display: none; }
  .hv-geraet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
  .hv-geraet .hv-name { grid-column: 1 / -1; }
  .hv-geraet label { gap: 5px !important; }
  .hv-mobil { display: inline; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
  .hv-geraet .hv-schalter .hv-mobil { color: var(--ink); font-size: 0.9rem; }
  .hv-akt { justify-content: flex-end; }
  .hv-listen { grid-template-columns: minmax(0, 1fr); }
  .hv-vorlagen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.hv-tabkopf { border: 1px solid transparent; }
@media (max-width: 700px) { .hv-tabkopf, .hv-geraet { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hv-cl-felder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.hv-liste-karte textarea { overflow: hidden; }
@media (max-width: 420px) { .hv-cl-felder { grid-template-columns: minmax(0, 1fr); } }

/* Kühlgeräte: Standort (15.11.) */
.hv-ort-kopf { display: flex; align-items: baseline; gap: 8px; padding: 10px 4px 2px; }
.hv-ort-kopf:first-child { padding-top: 0; }
.hv-ort-kopf b { font-size: 0.92rem; }
.hv-ort-kopf span { font-size: 0.78rem; color: var(--muted); }
.hv-orte { display: flex; flex-wrap: wrap; gap: 6px; }
.hv-ort-wahl { min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.hv-ort-wahl:hover { border-color: var(--accent); }
.hv-ort-wahl.is-on { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.hyg-ort { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 10px; font-size: 0.95rem; }
.hyg-ort:first-of-type { margin-top: 4px; }
.hyg-ort span { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.hyg-ort-klein { display: block; font-size: 0.72rem; font-weight: 500; color: var(--muted); }
@media (max-width: 700px) {
  .hv-geraet .hv-ort { grid-column: 1 / -1; }
}
.hv-neu .form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 24px; align-items: start; }
.hv-neu .form > .hv-feld:first-of-type { grid-row: span 3; }
.hv-neu .form > .btn, .hv-neu .form > .hv-hinweis { grid-column: 2; }
@media (max-width: 900px) { .hv-neu .form { grid-template-columns: minmax(0, 1fr); } .hv-neu .form > .hv-feld:first-of-type { grid-row: auto; } .hv-neu .form > .btn, .hv-neu .form > .hv-hinweis { grid-column: auto; } }

/* Kasse in den Einstellungen (15.11.) */
.ka-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.ka-haupt { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ka-haupt > .panel, .ka-layout > .panel { margin: 0; }
.ka-logo { flex: none; width: var(--s, 40px); height: var(--s, 40px); border-radius: 12px; background: var(--c); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.ka-titel { display: flex; align-items: center; gap: 12px; }
.ka-titel > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ka-titel b { font-size: 1.15rem; }
.ka-titel small { font-size: 0.85rem; opacity: 0.85; }
.ka-status { padding: 22px; border-radius: 24px; background: var(--fw-grad, var(--accent)); color: #FFFFFF; box-shadow: 0 14px 30px rgb(94 46 23 / 0.22); display: flex; flex-direction: column; gap: 18px; }
.ka-status .ka-logo { background: rgb(255 255 255 / 0.22); }
.ka-aktiv { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgb(255 255 255 / 0.2); font-size: 0.75rem; font-weight: 800; }
.ka-aktiv i { width: 8px; height: 8px; border-radius: 4px; background: #B9E59A; }
.ka-zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ka-zahlen span { display: flex; flex-direction: column; gap: 2px; }
.ka-zahlen small { font-size: 0.78rem; opacity: 0.85; }
.ka-zahlen b { font-size: 1.4rem; font-weight: 600; }
.ka-aktionen { display: flex; flex-wrap: wrap; gap: 8px; }
.ka-aktionen form { margin: 0; }
.ka-k { min-height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: rgb(255 255 255 / 0.18); color: #FFFFFF; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 0.9rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.ka-k-weiss { background: #FFFFFF; color: var(--ink); }
.ka-k-leise { background: transparent; opacity: 0.9; }
.ka-fehler, .ka-hinweis { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgb(255 255 255 / 0.16); font-size: 0.85rem; line-height: 1.45; }
.ka-haken { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ka-haken > span:first-child { flex: none; width: 24px; height: 24px; border-radius: 12px; background: #E6EBDB; color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800; }
.ka-haken > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.ka-haken b { font-size: 0.92rem; }
.ka-haken small { font-size: 0.78rem; color: var(--muted); }
.ka-haken.is-nein > span:first-child { background: var(--surface-2); color: var(--muted); }
.ka-haken.is-nein b { color: var(--muted); }
.ka-sicher b { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.ka-sicher b svg { color: var(--accent); }
.ka-sicher p, .ka-leer p, .ka-text { margin: 8px 0 0; font-size: 0.88rem; line-height: 1.55; color: var(--muted); }
.ka-leer h2 { margin: 0; }
.ka-liste { display: flex; flex-direction: column; gap: 8px; }
.ka-sys { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none; }
a.ka-sys:hover { border-color: var(--accent); }
.ka-sys.is-on { border: 2px solid var(--accent); background: var(--yolk-soft); }
.ka-sys.is-bald { opacity: 0.75; }
.ka-sys-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ka-sys-txt b { font-size: 0.95rem; }
.ka-sys-txt small { font-size: 0.75rem; color: var(--muted); }
.ka-pill { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 0.72rem; font-weight: 800; white-space: nowrap; }
.ka-pill.is-ok { background: #E6EBDB; color: var(--green); }
.ka-pill.is-go { background: var(--yolk-soft); color: var(--accent-ink); }
.ka-pill.is-warn { background: var(--warn-soft, #FBEFE3); color: var(--accent-ink); }
.ka-fuss { margin: 4px 0 0; font-size: 0.78rem; line-height: 1.5; color: var(--muted); }
.ka-verbinden { display: flex; flex-direction: column; gap: 18px; }
.ka-schritte { gap: 20px !important; }
.ka-schritt { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
.ka-schritt > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ka-schritt > div > b { padding-top: 6px; font-size: 1rem; }
.ka-nr { width: 34px; height: 34px; border-radius: 17px; background: var(--fw-grad, var(--accent)); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.ka-anleitung { margin: 0; padding-left: 18px; font-size: 0.88rem; line-height: 1.6; color: var(--muted); }
.ka-warn { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft, #FBEFE3); color: var(--accent-ink); font-size: 0.85rem; line-height: 1.45; }
.ka-knoepfe { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.ka-knoepfe form { margin: 0; }
.ka-drop { position: relative; display: block !important; cursor: pointer; }
.ka-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ka-drop-in { height: 140px; border-radius: 18px; border: 2px dashed color-mix(in srgb, var(--muted) 40%, transparent); background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); }
.ka-drop-in b { color: var(--ink); font-size: 0.95rem; }
.ka-drop:hover .ka-drop-in { border-color: var(--accent); }
.ka-vorschau { display: flex; flex-direction: column; gap: 12px; }
.ka-vorschau-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ka-vorschau-kopf small { color: var(--muted); }
.ka-tabelle tfoot th { border-top: 2px solid var(--line); }
@media (max-width: 1100px) { .ka-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .ka-status { padding: 18px; }
  .ka-zahlen b { font-size: 1.15rem; }
  .ka-knoepfe .btn, .ka-knoepfe form { flex: 1; }
  .ka-knoepfe form .btn { width: 100%; }
}
.ka-zahlen b { white-space: nowrap; }
@media (max-width: 560px) { .ka-zahlen { gap: 8px; } .ka-zahlen b { font-size: 0.98rem; } .ka-zahlen small { font-size: 0.72rem; } }
.ka-zahlen span { min-width: 0; }
.ka-zahlen b { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .ka-zahlen { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.3fr); } }

/* Küchen-Monitor neu im Dashboard-Look: Wartezeit als Plakette, Gerichte groß, Vollbild für den Bildschirm in der Küche (16.11.) */
.km-bon { border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 18px rgb(43 30 22 / 0.06); }
.km-bon.is-gelb { border: 2px solid #E8C9A4; }
.km-bon.is-rot { border: 2px solid #A23B2A; }
.km-bon-kopf, .km-bon.is-gelb .km-bon-kopf, .km-bon.is-rot .km-bon-kopf { background: transparent; color: inherit; padding: 16px 18px 10px; }
.km-bon-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.km-bon-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-serif, var(--f-display)); font-weight: 500; font-size: 1.35rem; }
.km-neu-tag { display: none; padding: 3px 9px; border-radius: 999px; background: var(--fw-grad, var(--accent)); color: #FFFFFF; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.km-bon.is-neu .km-neu-tag { display: inline-block; }
.km-alter { flex: none; padding: 4px 11px; border-radius: 999px; background: #E6EBDB; color: #4E6B3E; font-family: var(--f-mono); }
.km-bon.is-gelb .km-alter { background: #FBEFE3; color: #A0532C; }
.km-bon.is-rot .km-alter { background: #F6E1DC; color: #A23B2A; }
.km-items { gap: 0; padding: 0 18px 12px; }
.km-items li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); }
.km-items li b { flex: none; min-width: 32px; font-family: var(--f-mono); font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.km-items li > span { display: flex; flex-direction: column; gap: 1px; font-weight: 700; }
.km-items li small { color: #A0532C; font-weight: 700; }
.km-note { margin: 0 18px 12px; border-radius: 14px; background: #F6E1DC; color: #A23B2A; }
.km-fertig { margin: auto 18px 18px; }
.km-fertig .btn { width: 100%; min-height: 54px; border: 0; border-radius: 16px; background: var(--fw-grad, var(--accent)); color: #FFFFFF; font-size: 1.1rem; }
.km-spaet { padding: 10px 16px; border-radius: 999px; background: #F6E1DC; color: #A23B2A; font-weight: 800; }
.km-summe { background: var(--fw-grad, var(--accent)); color: #FFFFFF; border: 0; box-shadow: 0 14px 30px rgb(94 46 23 / 0.22); }
.km-summe .km-box-t { color: rgb(255 255 255 / 0.85); }
.km-sum-z { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; border-top: 1px solid rgb(255 255 255 / 0.18); font-weight: 700; }
.km-sum-z b { min-width: 34px; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.km-box.is-warn { background: #F6E1DC; color: #A23B2A; }
.km-aus span { background: #FBEFE3; color: #A0532C; }

/* Vollbild: gleiche Optik, nur größer und ohne Menü */
.km.is-voll { padding: 26px 30px; gap: 22px; background: var(--bg); }
.km.is-voll .km-head { align-items: flex-end; }
.km.is-voll .km-head h1 { font-size: 2.8rem; line-height: 1; }
.km.is-voll .km-head p { display: none; }
.km.is-voll .km-zahl, .km.is-voll .km-spaet { font-size: 1.15rem; }
.km.is-voll .km-uhr { font-family: var(--f-mono); font-size: 3.2rem; font-weight: 600; }
.km.is-voll .km-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; }
.km.is-voll .km-bons { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.km.is-voll .km-bon-kopf { padding: 20px 20px 12px; }
.km.is-voll .km-bon-name strong { font-size: 1.9rem; }
.km.is-voll .km-alter { font-size: 1.15rem; font-weight: 800; }
.km.is-voll .km-items { padding: 0 20px 14px; }
.km.is-voll .km-items li { padding: 10px 0; }
.km.is-voll .km-items li b { min-width: 42px; font-size: 1.5rem; }
.km.is-voll .km-items li > span { font-size: 1.5rem; line-height: 1.2; }
.km.is-voll .km-items li small { font-size: 1rem; }
.km.is-voll .km-note { margin: 0 20px 14px; font-size: 1.05rem; }
.km.is-voll .km-fertig { margin: auto 20px 20px; }
.km.is-voll .km-fertig .btn { min-height: 60px; font-size: 1.25rem; }
.km.is-voll .km-leer { font-size: 1.8rem; padding: 60px; }
.km.is-voll .km-box { padding: 20px; border-radius: 24px; }
.km.is-voll .km-sum-z { font-size: 1.25rem; }
.km.is-voll .km-tisch { font-size: 1.1rem; }
@media (max-width: 1100px) { .km.is-voll .km-grid { grid-template-columns: minmax(0, 1fr); } }
body:has(.km.is-voll) main.wrap { max-width: none; padding: 0; }
.km.is-voll { min-height: 100vh; min-height: 100dvh; }

/* Küchen-Monitor: Kopf jeder Bestellung als Zeitampel – bis 9 Min. Creme, ab 10 Min. Orange, ab 15 Min. Rot (16.11.) */
.km-bon, .km-bon.is-gelb, .km-bon.is-rot { overflow: hidden; border: 1px solid var(--line); }
.km-bon.is-rot { box-shadow: 0 0 0 3px rgb(180 68 47 / 0.25), 0 6px 18px rgb(43 30 22 / 0.06); }
.km-bon-kopf { background: #F1E6D8; color: var(--ink); padding: 14px 18px; margin-bottom: 8px; }
.km-bon.is-gelb .km-bon-kopf { background: #E8A04A; color: #2B1E16; }
.km-bon.is-rot .km-bon-kopf { background: #B4442F; color: #FFFFFF; }
.km-alter, .km-bon.is-gelb .km-alter, .km-bon.is-rot .km-alter { background: transparent; color: inherit; padding: 0; font-weight: 800; }
.km-bon.is-rot .km-neu-tag, .km-bon.is-gelb .km-neu-tag { background: rgb(255 255 255 / 0.25); }
.km.is-voll .km-bon-kopf { padding: 18px 20px; margin-bottom: 10px; }
.km.is-voll .km-alter { font-size: 1.6rem; }
.km-bon-name strong { white-space: normal; overflow-wrap: anywhere; line-height: 1.15; }
.km-bon-kopf { align-items: flex-start; }

/* getwirtly-Logo: im Dunkelmodus die helle Fassung statt eingefärbt */
.side-logo-img.gw-logo { filter: none !important; height: 30px; }
.side-logo-img.gw-logo { color: var(--ink); width: auto; }
