/* Roboto & Roboto Condensed © Google, SIL Open Font License 1.1 (Latin-Subset) */
@font-face{font-family:"Roboto Condensed";font-style:italic;font-weight:700;font-display:swap;src:url(fonts/roboto-condensed-700-italic.woff2) format("woff2")}
@font-face{font-family:"Roboto Condensed";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/roboto-condensed-700.woff2) format("woff2")}
@font-face{font-family:"Roboto";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/roboto-400.woff2) format("woff2")}
@font-face{font-family:"Roboto";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/roboto-500.woff2) format("woff2")}
@font-face{font-family:"Roboto";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/roboto-700.woff2) format("woff2")}

/* ===================== Tokens ===================== */
:root {
  --red: #e2001a; --red-h: #c50017; --on-red: #ffffff; --red-soft: #fde9eb; --red-ink: #c00017;
  --yellow: #fff200; --on-yellow: #1c1f24;
  --bg: #f3f4f6; --surface: #ffffff; --s2: #f1f2f5; --s3: #e5e7ec; --we: #fafafb;
  --shade: rgba(28, 31, 36, .07); --rowline: #aeb5c0; --colline: #c9ced6;
  --line: #e8eaee; --line2: #d3d7de; --wkgap: #c3c9d2; --wkrow: #e4e7ec;
  --ink: #1c1f24; --ink2: #5a616d; --ink3: #8a909b;
  --hover: #f2f3f6; --press: #e6e8ed; --today: #ffe8eb; --zebra: #eff2f6;
  --sel: #1c1f24; --on-sel: #ffffff; --seg-on: #ffffff;
  --focus: #1a66d2; --ring: rgba(26, 102, 210, .25);
  --info-bg: #e8f1fc; --info-dot: #1f6dd0; --info-ink: #0f3a6b;
  --warn-bg: #fff3c2; --warn-dot: #e0a800; --warn-ink: #5c4500;
  --bad-bg: #fde4e6; --bad-dot: #e2001a; --bad-ink: #a50016;
  --ok: #138040; --ok-soft: #e2f4e8; --mid: #b05300; --mid-soft: #fff0db; --over: #c8142a; --over-soft: #fde4e6;
  --av-ok: #c8ead2; --av-ok-ink: #0e4726; --av-warn: #ffe27a; --av-warn-ink: #574400; --av-bad: #f7aeb2; --av-bad-ink: #74050f;
  --track: #f0f1f4; --grid: rgba(28, 31, 36, .08);
  --scrim: rgba(20, 24, 32, .42);
  --hatch1: #f0f1f3; --hatch2: #e7e9ec; --away-mix: 70%; --dn-mix: 45%;
  --sh1: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 4px rgba(16, 24, 40, .05);
  --sh2: 0 4px 14px rgba(16, 24, 40, .08);
  --sh3: 0 20px 60px rgba(16, 24, 40, .25);

  --c-gelb: #ffec6e; --c-gelb-ink: #4a4000; --c-gelb-bar: #e6c800;
  --c-gruen: #c3e9cd; --c-gruen-ink: #0c4a28; --c-gruen-bar: #27a056; --c-oliv: #dfe8b5; --c-oliv-ink: #3d470c; --c-oliv-bar: #86a024; --c-tuerkis: #bfeae3; --c-tuerkis-ink: #0a4b43; --c-tuerkis-bar: #1a9e8d; --c-hellblau: #cdeafa; --c-hellblau-ink: #0a4862; --c-hellblau-bar: #2f9fcd; --c-blau: #c4dbf9; --c-blau-ink: #0a3b77; --c-blau-bar: #2b77d6; --c-indigo: #d3d8f8; --c-indigo-ink: #25308a; --c-indigo-bar: #4b5bd6; --c-violett: #e1d0f8; --c-violett-ink: #45207d; --c-violett-bar: #8a58d4; --c-pink: #f8cfe5; --c-pink-ink: #781450; --c-pink-bar: #d2408c; --c-rot: #fac6c9; --c-rot-ink: #870c12; --c-rot-bar: #dd3339; --c-orange: #ffdca3; --c-orange-ink: #663700; --c-orange-bar: #ea930c; --c-sand: #eedcb3; --c-sand-ink: #574112; --c-sand-bar: #b88f40; --c-braun: #ead3c3; --c-braun-ink: #58301a; --c-braun-bar: #a6643c; --c-grau: #eceef1; --c-grau-ink: #6b717c; --c-grau-bar: #b4bac4;

  --r1: 8px; --r2: 12px; --r3: 16px; --r4: 22px;
  --hdr: 56px; --nav: 64px;
  --fh: "Roboto Condensed", "Arial Narrow", "Helvetica Neue Condensed", "Avenir Next Condensed", sans-serif-condensed, "Liberation Sans Narrow", Arial, sans-serif;
  --fb: Roboto, -apple-system, "Segoe UI", Arial, "Helvetica Neue", "Liberation Sans", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red: #ec5a64; --red-h: #f46d76; --on-red: #ffffff; --red-soft: #4b3541; --red-ink: #ff9fa6;
    --yellow: #ece15c; --on-yellow: #23231c;
    --bg: #29303b; --surface: #333b48; --s2: #3b4351; --s3: #454f5e; --we: #303845;
    --shade: rgba(255, 255, 255, .06); --rowline: #66728a; --colline: #4f596b;
    --line: #424a59; --line2: #566072; --wkgap: #29303b; --wkrow: #3b4351;
    --ink: #e2e6ec; --ink2: #aab3c0; --ink3: #8892a2;
    --hover: #3b4452; --press: #465060; --today: #523a4a; --zebra: #394150;
    --sel: #e2e6ec; --on-sel: #262c36; --seg-on: #535e70;
    --focus: #8ec5ff; --ring: rgba(142, 197, 255, .3);
    --info-bg: #34475d; --info-dot: #78b1f3; --info-ink: #dceafb;
    --warn-bg: #54492b; --warn-dot: #eac54d; --warn-ink: #f7ebb8;
    --bad-bg: #58353f; --bad-dot: #ff7479; --bad-ink: #ffd7d9;
    --ok: #82d8a3; --ok-soft: #2f4a3e; --mid: #f4ad66; --mid-soft: #4d4031; --over: #ff9195; --over-soft: #563540;
    --av-ok: #4c8b66; --av-ok-ink: #ecfaf1; --av-warn: #b5982f; --av-warn-ink: #1f1a05; --av-bad: #b4505a; --av-bad-ink: #fff0f0;
    --track: #2d3440; --grid: rgba(255, 255, 255, .06);
    --scrim: rgba(12, 15, 21, .55);
    --hatch1: #363e4b; --hatch2: #303844; --away-mix: 30%; --dn-mix: 32%;
    --sh1: 0 1px 2px rgba(0, 0, 0, .16), 0 1px 4px rgba(0, 0, 0, .12);
    --sh2: 0 4px 16px rgba(0, 0, 0, .22);
    --sh3: 0 20px 60px rgba(0, 0, 0, .5);
    --c-gelb: #e2d158; --c-gelb-ink: #2b2500; --c-gelb-bar: #f0e27a;
    --c-gruen: #57a675; --c-gruen-ink: #0a2414; --c-gruen-bar: #74c693; --c-oliv: #a3b85a; --c-oliv-ink: #1c2306; --c-oliv-bar: #c1d27f; --c-tuerkis: #4cb0a2; --c-tuerkis-ink: #062a25; --c-tuerkis-bar: #7ad1c5; --c-hellblau: #68bcde; --c-hellblau-ink: #062638; --c-hellblau-bar: #93d3ee; --c-blau: #6aa2e6; --c-blau-ink: #0a2140; --c-blau-bar: #8fbcf1; --c-indigo: #8994e7; --c-indigo-ink: #101640; --c-indigo-bar: #aab2f1; --c-violett: #a88be4; --c-violett-ink: #210f45; --c-violett-bar: #c2abef; --c-pink: #df80b4; --c-pink-ink: #3a0623; --c-pink-bar: #efa7cd; --c-rot: #e77579; --c-rot-ink: #350709; --c-rot-bar: #f3989b; --c-orange: #e2a24a; --c-orange-ink: #2c1900; --c-orange-bar: #f2ba66; --c-sand: #c9ae78; --c-sand-ink: #2e230b; --c-sand-bar: #dcc596; --c-braun: #c29274; --c-braun-ink: #2a1608; --c-braun-bar: #d8b097; --c-grau: #444e5f; --c-grau-ink: #b4bdcb; --c-grau-bar: #6b778c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --red: #ec5a64; --red-h: #f46d76; --on-red: #ffffff; --red-soft: #4b3541; --red-ink: #ff9fa6;
  --yellow: #ece15c; --on-yellow: #23231c;
  --bg: #29303b; --surface: #333b48; --s2: #3b4351; --s3: #454f5e; --we: #303845;
    --shade: rgba(255, 255, 255, .06); --rowline: #66728a; --colline: #4f596b;
  --line: #424a59; --line2: #566072; --wkgap: #29303b; --wkrow: #3b4351;
  --ink: #e2e6ec; --ink2: #aab3c0; --ink3: #8892a2;
  --hover: #3b4452; --press: #465060; --today: #523a4a; --zebra: #394150;
  --sel: #e2e6ec; --on-sel: #262c36; --seg-on: #535e70;
  --focus: #8ec5ff; --ring: rgba(142, 197, 255, .3);
  --info-bg: #34475d; --info-dot: #78b1f3; --info-ink: #dceafb;
  --warn-bg: #54492b; --warn-dot: #eac54d; --warn-ink: #f7ebb8;
  --bad-bg: #58353f; --bad-dot: #ff7479; --bad-ink: #ffd7d9;
  --ok: #82d8a3; --ok-soft: #2f4a3e; --mid: #f4ad66; --mid-soft: #4d4031; --over: #ff9195; --over-soft: #563540;
  --av-ok: #4c8b66; --av-ok-ink: #ecfaf1; --av-warn: #b5982f; --av-warn-ink: #1f1a05; --av-bad: #b4505a; --av-bad-ink: #fff0f0;
  --track: #2d3440; --grid: rgba(255, 255, 255, .06);
  --scrim: rgba(12, 15, 21, .55);
  --hatch1: #363e4b; --hatch2: #303844; --away-mix: 30%; --dn-mix: 32%;
  --sh1: 0 1px 2px rgba(0, 0, 0, .16), 0 1px 4px rgba(0, 0, 0, .12);
  --sh2: 0 4px 16px rgba(0, 0, 0, .22);
  --sh3: 0 20px 60px rgba(0, 0, 0, .5);
  --c-gelb: #e2d158; --c-gelb-ink: #2b2500; --c-gelb-bar: #f0e27a;
    --c-gruen: #57a675; --c-gruen-ink: #0a2414; --c-gruen-bar: #74c693; --c-oliv: #a3b85a; --c-oliv-ink: #1c2306; --c-oliv-bar: #c1d27f; --c-tuerkis: #4cb0a2; --c-tuerkis-ink: #062a25; --c-tuerkis-bar: #7ad1c5; --c-hellblau: #68bcde; --c-hellblau-ink: #062638; --c-hellblau-bar: #93d3ee; --c-blau: #6aa2e6; --c-blau-ink: #0a2140; --c-blau-bar: #8fbcf1; --c-indigo: #8994e7; --c-indigo-ink: #101640; --c-indigo-bar: #aab2f1; --c-violett: #a88be4; --c-violett-ink: #210f45; --c-violett-bar: #c2abef; --c-pink: #df80b4; --c-pink-ink: #3a0623; --c-pink-bar: #efa7cd; --c-rot: #e77579; --c-rot-ink: #350709; --c-rot-bar: #f3989b; --c-orange: #e2a24a; --c-orange-ink: #2c1900; --c-orange-bar: #f2ba66; --c-sand: #c9ae78; --c-sand-ink: #2e230b; --c-sand-bar: #dcc596; --c-braun: #c29274; --c-braun-ink: #2a1608; --c-braun-bar: #d8b097; --c-grau: #444e5f; --c-grau-ink: #b4bdcb; --c-grau-bar: #6b778c;
  color-scheme: dark;
}
/* Dunkle Farbschemata (pro Gerät): ohne Angabe Blaugrau, OLED siehe data-oled */
:root[data-theme="dark"][data-dark="graphit"] {
  --bg:#1c1c1e;
  --surface:#26262a;
  --s2:#2e2e33;
  --s3:#38383e;
  --we:#222225;
  --rowline:#55555c;
  --colline:#3a3a40;
  --line:#333338;
  --line2:#46464d;
  --wkgap:#1c1c1e;
  --wkrow:#2c2c31;
  --ink:#ececee;
  --ink2:#b0b0b6;
  --ink3:#85858c;
  --hover:#2e2e33;
  --press:#38383e;
  --today:#3d2427;
  --zebra:#2a2a2e;
  --on-sel:#1c1c1e;
  --seg-on:#45454c;
  --track:#2e2e33;
  --hatch1:#34343a;
  --hatch2:#2c2c31;
  --info-bg:#253244;
  --warn-bg:#3d3520;
  --bad-bg:#432628;
  --red-soft:#3e2427;
  --ok-soft:#213a2c;
  --mid-soft:#3d3122;
  --over-soft:#432628;
  --scrim:rgba(0,0,0,.6);
}
:root[data-theme="dark"][data-dark="warm"] {
  --bg:#1d1a17;
  --surface:#272320;
  --s2:#302b27;
  --s3:#3a3430;
  --we:#221f1b;
  --rowline:#5c5249;
  --colline:#3f3833;
  --line:#37312c;
  --line2:#4a423b;
  --wkgap:#1d1a17;
  --wkrow:#2e2925;
  --ink:#eee8e2;
  --ink2:#b9afa5;
  --ink3:#8c8279;
  --hover:#302b27;
  --press:#3a3430;
  --today:#42262a;
  --zebra:#2b2622;
  --on-sel:#1d1a17;
  --seg-on:#4a423b;
  --track:#302b27;
  --hatch1:#38322d;
  --hatch2:#2f2a26;
  --info-bg:#2a3240;
  --warn-bg:#40361f;
  --bad-bg:#472826;
  --red-soft:#432724;
  --ok-soft:#263828;
  --mid-soft:#41321f;
  --over-soft:#472826;
  --scrim:rgba(0,0,0,.6);
}
:root[data-theme="dark"][data-dark="tief"] {
  --bg:#0e0f11;
  --surface:#17181b;
  --s2:#1f2024;
  --s3:#292a2f;
  --we:#131417;
  --rowline:#3b3d43;
  --colline:#26272c;
  --line:#24252a;
  --line2:#34363c;
  --wkgap:#0e0f11;
  --wkrow:#1d1e22;
  --ink:#f0f0f2;
  --ink2:#a9abb2;
  --ink3:#7a7c84;
  --hover:#1f2024;
  --press:#292a2f;
  --today:#2e1418;
  --zebra:#1b1c20;
  --on-sel:#0e0f11;
  --seg-on:#34363c;
  --track:#1f2024;
  --hatch1:#222327;
  --hatch2:#1a1b1e;
  --info-bg:#172131;
  --warn-bg:#2a2414;
  --bad-bg:#2f171b;
  --red-soft:#2e1519;
  --ok-soft:#14261b;
  --mid-soft:#2a2114;
  --over-soft:#2f171b;
  --scrim:rgba(0,0,0,.7);
}
/* OLED: wie Dunkel, aber alle Flächen komplett schwarz; Trennung über Linien */
:root[data-theme="dark"][data-oled] {
  --red-soft: #2b0f15;
  --bg: #000000; --surface: #000000; --s2: #141414; --s3: #1f1f1f; --we: #000000;
  --shade: transparent; --rowline: #333333; --colline: #1e1e1e;
  --line: #1e1e1e; --line2: #2e2e2e; --wkgap: #000000; --wkrow: #000000;
  --ink: #e6e6e6; --ink2: #a3a3a3; --ink3: #787878;
  --hover: #111111; --press: #1a1a1a; --today: #240c0f; --zebra: #000000;
  --sel: #e6e6e6; --on-sel: #000000; --seg-on: #2a2a2a;
  --info-bg: #0b1724; --warn-bg: #221b08; --bad-bg: #250b10;
  --ok-soft: #0a1d13; --mid-soft: #22170a; --over-soft: #250b10;
  --track: #000000; --grid: rgba(255, 255, 255, .08);
  --scrim: rgba(0, 0, 0, .75);
  --hatch1: #161616; --hatch2: #0b0b0b; --away-mix: 22%; --dn-mix: 26%;
  --sh1: 0 0 0 1px #262626;
  --sh2: 0 0 0 1px #2a2a2a;
  --sh3: 0 0 0 1px #2e2e2e;
}

/* ===================== Basis ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.modal { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--ink);
  font: 15px/1.45 var(--fb);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.h { font-family: var(--fh); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tnum { font-variant-numeric: tabular-nums; }

/* Buttons & Eingaben */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r2);
  background: var(--s2); color: var(--ink);
  font-family: var(--fb); font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: background-color .15s, box-shadow .15s;
}
.btn:hover { background: var(--s3); }
.btn:active { background: var(--press); }
.btn.primary { background: var(--red); color: var(--on-red); }
.btn.primary:hover { background: var(--red-h); }
.btn.line { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line2); }
.btn.line:hover { background: var(--hover); }
.btn.sm { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 999px; }
.btn:disabled { opacity: .45; pointer-events: none; }
.ibtn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink);
  transition: background-color .15s;
}
.ibtn:hover { background: var(--s2); }
.ibtn:active { background: var(--press); }
.ibtn:disabled { opacity: .3; pointer-events: none; }
.inp {
  width: 100%; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line2); border-radius: var(--r2); background: var(--surface); color: var(--ink);
  font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.inp:hover { border-color: var(--ink3); }
.inp:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--ring); }
.inp:disabled { background: var(--s2); color: var(--ink3); border-color: var(--line); }
select.inp {
  -webkit-appearance: none; appearance: none; 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='%238a909b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
.lab { display: block; font-weight: 500; font-size: 14px; color: var(--ink2); margin: 0 0 6px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--s2); border-radius: 999px; }
.seg > button {
  min-width: 46px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink2);
  font-weight: 500; font-size: 15px; transition: background-color .15s, color .15s;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
}
.seg > button[data-l]::after { content: attr(data-l); content: attr(data-l) / ""; font-weight: 700; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
.seg > button:hover { color: var(--ink); }
.seg > button[aria-pressed="true"] { background: var(--seg-on); color: var(--ink); font-weight: 700; box-shadow: var(--sh1); }
.seg > button:disabled { opacity: .45; cursor: not-allowed; }
.seg > button:disabled:hover { color: var(--ink2); }
.surface { background: var(--surface); border-radius: var(--r3); box-shadow: var(--sh1); }

/* Statusfarben (Palette, pro Statusart wählbar) */
.c-gruen { --cb: var(--c-gruen); --ci: var(--c-gruen-ink); --cd: var(--c-gruen-bar); }
.c-oliv { --cb: var(--c-oliv); --ci: var(--c-oliv-ink); --cd: var(--c-oliv-bar); }
.c-tuerkis { --cb: var(--c-tuerkis); --ci: var(--c-tuerkis-ink); --cd: var(--c-tuerkis-bar); }
.c-hellblau { --cb: var(--c-hellblau); --ci: var(--c-hellblau-ink); --cd: var(--c-hellblau-bar); }
.c-blau { --cb: var(--c-blau); --ci: var(--c-blau-ink); --cd: var(--c-blau-bar); }
.c-indigo { --cb: var(--c-indigo); --ci: var(--c-indigo-ink); --cd: var(--c-indigo-bar); }
.c-violett { --cb: var(--c-violett); --ci: var(--c-violett-ink); --cd: var(--c-violett-bar); }
.c-pink { --cb: var(--c-pink); --ci: var(--c-pink-ink); --cd: var(--c-pink-bar); }
.c-rot { --cb: var(--c-rot); --ci: var(--c-rot-ink); --cd: var(--c-rot-bar); }
.c-orange { --cb: var(--c-orange); --ci: var(--c-orange-ink); --cd: var(--c-orange-bar); }
.c-gelb { --cb: var(--c-gelb); --ci: var(--c-gelb-ink); --cd: var(--c-gelb-bar); }
.c-sand { --cb: var(--c-sand); --ci: var(--c-sand-ink); --cd: var(--c-sand-bar); }
.c-braun { --cb: var(--c-braun); --ci: var(--c-braun-ink); --cd: var(--c-braun-bar); }
.c-grau { --cb: var(--c-grau); --ci: var(--c-grau-ink); --cd: var(--c-grau-bar); }
.tpill { background: var(--cb, var(--s3)); color: var(--ci, var(--ink)); }
.sh { display: inline-flex; align-items: center; border-radius: 999px; padding: 0 9px; font-weight: 700; white-space: nowrap; background: var(--cb, var(--s3)); color: var(--ci, var(--ink)); }

/* ===================== Kopf & Navigation ===================== */
.top {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  height: calc(var(--hdr) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  background: var(--surface); border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .top, .botnav { background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); }
}
.brand {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--r1);
  background: var(--red); color: var(--on-red); font-size: 18px; line-height: 1; flex: none;
}
.tabs { display: none; }
.tbtn { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-weight: 500; }
.tbtn:hover { background: var(--s2); }
.tbtn:disabled { opacity: .5; cursor: not-allowed; }
.ubtn + .tbtn { margin-left: 6px; }
.tbtn:disabled:hover { background: transparent; }
.tbtn .tl-txt { display: none; }
.tbtn .tl-txt > span { grid-area: 1 / 1; text-align: left; }
.tbtn .tl-txt > .off { visibility: hidden; }
.botnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--nav) + env(safe-area-inset-bottom));
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: var(--surface); border-top: 1px solid var(--line);
}
.botnav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 0; padding: 6px 2px 4px; border: 0; background: transparent; color: var(--ink2);
  font-weight: 500; font-size: 14px; letter-spacing: -.01em;
}
.botnav .ni { display: flex; align-items: center; justify-content: center; width: 56px; height: 30px; border-radius: 999px; transition: background-color .2s; }
.botnav button span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.botnav button:active .ni { background: var(--press); }
.botnav button[aria-current="page"] { color: var(--ink); font-weight: 700; }
.botnav button[aria-current="page"] .ni { background: var(--red-soft); color: var(--red); }
main {
  padding: 0 max(16px, env(safe-area-inset-right)) calc(var(--nav) + env(safe-area-inset-bottom) + 28px) max(16px, env(safe-area-inset-left));
}
.pagehead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 64px; padding: 4px 0; }
.pagehead h1 { font-size: 22px; flex: 1; }
.monthnav { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface); box-shadow: var(--sh1); }
.monthnav .ibtn { width: 40px; height: 40px; }
.monthnav .ml { min-width: 112px; text-align: center; font-weight: 700; font-size: 15px; }
@media (min-width: 900px) { .monthnav .ml { min-width: 136px; } }

/* ===================== Wochenstreifen ===================== */
.strip {
  position: sticky; top: calc(var(--hdr) + env(safe-area-inset-top)); z-index: 30;
  margin: 0 -16px; padding: 6px 16px 10px; background: var(--bg);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .strip { background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
}
.wnav { display: flex; align-items: center; gap: 2px; min-height: 48px; }
.wlbl { flex: 1; display: flex; align-items: baseline; justify-content: center; gap: 8px; min-width: 0; }
.wlbl .h { font-size: 19px; white-space: nowrap; }
.wlbl .wr { font-size: 14px; color: var(--ink2); white-space: nowrap; }
.wnav .btn { margin-left: 6px; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 2px; }
.dbtn {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 58px; padding: 2px 0 6px; border: 0; border-radius: 14px; background: transparent; color: var(--ink);
  transition: background-color .15s, color .15s;
}
.dbtn .wd { font-size: 14px; font-weight: 500; color: var(--ink2); }
.dbtn .dn { font-size: 18px; font-weight: 700; line-height: 1.15; }
.dbtn .dm { display: none; }
.dbtn:hover { background: var(--surface); }
.dbtn:active { background: var(--press); }
.dbtn.we .wd, .dbtn.we .dn { color: var(--ink3); }
.dbtn.today .wd, .dbtn.today .dn { color: var(--red); }
.dbtn.today::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--red); }
.dbtn.sel { background: var(--sel); box-shadow: var(--sh1); }
.dbtn.sel .wd, .dbtn.sel .dn { color: var(--on-sel); }
.dbtn.sel.today { background: var(--red); }
.dbtn.sel.today .wd, .dbtn.sel.today .dn { color: var(--on-red); }
.dbtn.sel.today::after { background: var(--on-red); }

/* ===================== Schichtplan: Tagesansicht (Handy) ===================== */
.dv-head { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 6px 0 8px; }
.dv-title { flex: 1; font-size: 24px; line-height: 1.1; min-width: 0; }
.dv-title small { display: block; margin-top: 2px; font-family: var(--fb); font-style: normal; font-weight: 400; text-transform: none; font-size: 14px; color: var(--ink2); letter-spacing: 0; }
.pfilter { flex: none; width: 44%; max-width: 220px; }
.pfilter select { border: 0; border-radius: 999px; background-color: var(--surface); box-shadow: var(--sh1); font-weight: 600; padding-left: 16px; }
.dcard { background: var(--surface); border-radius: var(--r3); box-shadow: var(--sh1); padding: 10px; margin-bottom: 14px; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.role {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0;
  min-height: 60px; padding: 8px 12px; border: 0; border-radius: var(--r2); background: var(--s2); text-align: left;
  transition: background-color .15s;
}
.role:hover { background: var(--s3); }
.role:active { background: var(--press); }
.role .lab { margin: 0; font-size: 14px; }
.role .val { font-size: 17px; font-weight: 700; }
.role.bad { background: var(--bad-bg); }
.role.bad .val, .role.bad .lab { color: var(--bad-ink); }
.role.warn .val { color: var(--mid); }
.chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.chip { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px; padding: 4px 2px; border-radius: var(--r2); }
.chip .k { font-size: 14px; font-weight: 500; color: var(--ink2); }
.chip .v { font-size: 20px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.chip.warn { background: var(--warn-bg); } .chip.warn .k, .chip.warn .v { color: var(--warn-ink); }
.chip.bad { background: var(--bad-bg); } .chip.bad .k, .chip.bad .v { color: var(--bad-ink); }

.plist-day { background: var(--surface); border-radius: var(--r3); box-shadow: var(--sh1); overflow: hidden; touch-action: pan-y; }
.prow {
  display: flex; align-items: center; gap: 6px;
  width: 100%; min-height: 60px; padding: 9px 10px 9px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left;
  transition: background-color .15s;
}
.prow:last-child { border-bottom: 0; }
.prow:nth-child(even) { background-image: linear-gradient(var(--shade), var(--shade)); }
.prow:hover { background: var(--hover); }
.prow:active { background: var(--press); }
.prow .pmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prow .pn { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Status-Kachel der Handy-Liste (auch Vorschau in den Einstellungen): Design A/B/C wie im Monatsplan */
.pcell {
  flex: none; width: min(232px, 58%); min-height: 48px; display: flex; flex-direction: column; justify-content: center;
  padding: 5px 8px 5px 10px; border-radius: 8px; color: var(--ink); text-align: left;
}
.pcell .r1 { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.pcell .l1 { min-width: 0; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcell .sh { flex: none; height: 22px; padding: 0 9px; font-size: 14px; }
.pcell .l2 { margin-top: 1px; font-size: 14px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcell .l2:empty { display: none; }
.pcell.cs-b { border-left: 4px solid var(--cd, var(--line2)); background: color-mix(in srgb, var(--cb, var(--s2)) 38%, var(--surface)); }
.pcell.cs-c { background: var(--cb, var(--s2)); color: var(--ci, var(--ink)); }
.pcell.cs-c .l2 { color: inherit; opacity: .78; }
.pcell.cs-c .sh { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--ci, var(--ink)) 28%, transparent); }
.pcell.cs-a { padding: 4px 0; background: transparent; }
.pcell.cs-a .r1 { justify-content: flex-start; gap: 8px; }
.pcell.cs-a .l1 { height: 30px; line-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--cb, var(--s3)); color: var(--ci, var(--ink)); font-weight: 500; font-size: 14px; }
.pcell.cs-a .sh { height: 30px; padding: 0 10px; }
.pcell.cs-a .l2 { padding: 3px 0 0 4px; }
.prow .chev { flex: none; color: var(--ink3); display: flex; }
.prow .chev .ic { width: 14px; height: 14px; }
.prow .pl2 { font-size: 14px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 1px; }
.prow .pl2:empty { display: none; }
.prow.day .pn { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.prow.day .pn .dt { font-weight: 400; font-size: 14px; color: var(--ink2); }

.prow.day.we .pn { color: var(--ink3); }
.prow.day.today .pn, .prow.day.today .pn .dt { color: var(--red); }
.prow.day.cur { background: var(--today); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin-right: 6px; border-radius: 999px; background: var(--s3); font-weight: 600; font-size: 14px; color: var(--ink); }
.slide-l { animation: slideL .2s ease-out; }
.slide-r { animation: slideR .2s ease-out; }
@keyframes slideL { from { transform: translateX(24px); opacity: .4; } }
@keyframes slideR { from { transform: translateX(-24px); opacity: .4; } }

/* ===================== Schichtplan: Monatsansicht (Desktop) ===================== */
.mtools { display: flex; align-items: center; gap: 12px; height: 72px; padding: 0 24px; }
.mtitle { display: inline-grid; flex: none; font-size: 28px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mtitle > span, .mt-ghost > span { grid-area: 1 / 1; }
.mt-ghost { display: grid; visibility: hidden; }
/* Tagesübersicht rechts neben dem Monat: was heute ansteht; passt nicht alles, fallen die hinteren Felder weg statt abgeschnitten zu werden */
.bf { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; height: 46px; overflow: hidden; min-width: 0; }
.bfc { display: flex; flex-direction: column; justify-content: center; gap: 3px; height: 46px; padding: 0 18px; border-left: 1px solid var(--line); white-space: nowrap; }
.bfc:first-child { border-left: 0; }
.bfc .k { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink3); }
.bfc .v { font-size: 15px; font-weight: 600; color: var(--ink); }
.bfc .v .me { color: var(--sel); }
.bfc .v .n { font-weight: 400; color: var(--ink2); margin-left: 5px; font-size: 13px; }
.bfc .v .nil { color: var(--ink3); font-weight: 500; }
.bfc.bad .v { color: var(--bad-ink); }
.bfc.bad .v::before { content: "!"; display: inline-grid; place-items: center; vertical-align: 1px; width: 16px; height: 16px; margin-right: 6px; border-radius: 50%; background: var(--bad-dot); color: #fff; font-size: 11px; font-weight: 800; }
.bfc.tn { margin-right: 6px; padding: 0 14px; border-radius: 12px; border-left: 0; background: var(--dnb); }
.bfc.tn .k, .bfc.tn .v { color: var(--dni); }
.bfc.tn .k { opacity: .8; }
.bfc.tn + .bfc { border-left: 0; }
@media (max-width: 899px) { .bf { display: none; } }
/* äußerer Rahmen rundet alle vier Ecken ab, auch über der Scrollleiste */
.mframe {
  margin: 0 24px; height: calc(100vh - var(--hdr) - 72px - 24px); height: calc(100dvh - var(--hdr) - 72px - 24px);
  background: var(--wkgap); border-radius: var(--r3); box-shadow: var(--sh1); overflow: hidden;
}
.mwrap { height: 100%; overflow: auto; overscroll-behavior: contain; }
table.mt { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: 100%; font-size: 13px; background: var(--wkgap); }
.mt th, .mt td { padding: 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.mt thead th {
  position: sticky; top: 0; z-index: 3; height: 46px; padding: 0 8px;
  border-bottom: 1px solid var(--line2); background: var(--surface);
  font-weight: 700; font-size: 13.5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mt thead th.num { text-align: center; padding: 0 2px; font-weight: 500; font-size: 12.5px; color: var(--ink2); }
.mt thead th.sub { font-weight: 500; color: var(--ink2); }
.mt .cday { position: sticky; left: 0; z-index: 2; border-right: 1px solid var(--line); }
.mt thead .cday { z-index: 5; color: var(--ink2); font-weight: 500; padding-left: 16px; }
.mt th.cday[scope="row"] { padding: 0 8px 0 10px; text-align: left; vertical-align: middle; font-weight: 400; }
.dbadge { display: inline-flex; flex-direction: column; padding: 4px 8px; border-radius: 10px; line-height: 1.2; }
.dbadge .wd { font-size: 14px; font-weight: 700; }
.dbadge .dt { font-size: 12.5px; color: var(--ink2); }
.mt tr.we td, .mt tr.we th { background: var(--we); }
.mt tr.we .dbadge .wd, .mt tr.we .dbadge .dt { color: var(--ink3); }
.mt tr.today td, .mt tr.today th { background: var(--today); }
/* Heute: Wochentag rot, Datum als kleine rote Pille (kein rotes Feld um den ganzen Tag) */
.mt tr.today .dbadge .wd { color: var(--red-ink); }
.mt tr.today .dbadge .dt { align-self: flex-start; margin: 1px 0 0 -6px; padding: 0 6px; border-radius: 999px; background: var(--red); color: var(--on-red); font-weight: 700; }
.mt tr.wk td:not(.gapc) { background: var(--wkrow); height: 46px; border-bottom: 2px solid var(--rowline); }
/* Wochen als getrennte Blöcke: Abstand in Seitenfarbe vor jeder neuen Woche */
.mt tbody tr.gap td { height: 18px; background: var(--wkgap); border: 0; }
/* Abstandsspalte zwischen Personen und Dispatcher-Block */
.mt tbody tr > td.gapc, .mt thead tr > th.gapc { padding: 0; background: var(--wkgap); border: 0; }
/* klare Abgrenzung: Tage durch kräftigere Linien, Personen durch Linien und abwechselnde Tönung */
.mt tbody tr:not(.wk, .gap) > :not(.gapc) { border-bottom: 2px solid var(--rowline); }
/* heutiger Tag: rote Linie oben und unten */
.mt tbody tr.today > :not(.gapc), .mt tbody tr:has(+ tr.today) > :not(.gapc) { border-bottom-color: var(--red); }
.mt .pcol { border-left: 1px solid var(--colline); }
.mt td.pcol { padding: 3px; }
.mt .pcol.alt { background-image: linear-gradient(var(--shade), var(--shade)); }
.wk-in { position: sticky; left: 0; display: inline-flex; align-items: center; gap: 14px; padding: 0 16px; height: 46px; }
.wk-in::before { content: ""; width: 4px; height: 24px; margin-right: -4px; border-radius: 2px; background: var(--ink3); }
.mt tr.wk.cur .wk-in::before { background: var(--red); }
.wk-in .h { font-size: 18px; }
.wk-in .btn { min-height: 30px; font-size: 13px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line2); }
.wk-in .btn:hover { background: var(--red-soft); color: var(--red-ink); box-shadow: inset 0 0 0 1px transparent; }
/* Zellen im Monatsplan: Design pro Gerät wählbar (A Klassisch, B Farbleiste, C Vollfläche) */
.cell { display: block; width: 100%; border: 0; color: var(--ink); text-align: left; overflow: hidden; transition: background-color .15s; }
.cell.editing { box-shadow: inset 0 0 0 2px var(--red); }
.cell .l1, .cell .l2 { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell .sh { flex: none; height: 18px; padding: 0 8px; font-size: 11.5px; }
.cell .l2 { display: block; font-size: 12px; color: var(--ink2); }
.cell.cf .l2 { padding-right: 18px; }
/* B · Farbleiste: getönt, Balken links, Status + Schicht, darunter Vertretung/Notiz */
.cell.cs-b { height: 46px; padding: 5px 7px 5px 8px; border-left: 4px solid var(--cd, var(--line2)); border-radius: 6px; background: color-mix(in srgb, var(--cb, var(--s2)) 38%, var(--surface)); }
.cell.cs-b:hover { background: color-mix(in srgb, var(--cb, var(--s2)) 60%, var(--surface)); }
/* C · Vollfläche: ganze Zelle in Statusfarbe */
.cell.cs-c { height: 46px; padding: 5px 7px 5px 8px; border-radius: 6px; background: var(--cb, var(--s2)); color: var(--ci, var(--ink)); }
.cell.cs-c:hover { background: color-mix(in srgb, var(--cb, var(--s2)) 86%, var(--ink)); }
.cell.cs-c .l2 { color: inherit; opacity: .78; }
.cell.cs-c .sh { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--ci, var(--ink)) 28%, transparent); }
.cell.cs-b .r1, .cell.cs-c .r1 { display: flex; align-items: center; justify-content: space-between; gap: 4px; height: 19px; }
.cell.cs-b .l1, .cell.cs-c .l1 { font-weight: 700; font-size: 13px; }
/* schmale Zellen: Schicht nur als F / S, damit der Status lesbar bleibt */
.cell.cs-b, .cell.cs-c { container-type: inline-size; }
.cell .shs { display: none; }
@container (max-width: 96px) {
  .cell.cs-b .sh .shl, .cell.cs-c .sh .shl { display: none; }
  .cell.cs-b .sh .shs, .cell.cs-c .sh .shs { display: inline; }
  .cell.cs-b .sh, .cell.cs-c .sh { min-width: 20px; justify-content: center; padding: 0 6px; }
}
.cell.cs-b .l2, .cell.cs-c .l2 { margin-top: 2px; height: 16px; line-height: 16px; }
/* A · Klassisch: Status als Farbpille, darunter Vertretung, darunter Schicht */
.cell.cs-a { display: grid; grid-template-rows: 22px 18px 18px; align-content: start; height: 66px; padding: 6px 5px; border-radius: 10px; background: transparent; }
.cell.cs-a:hover { background: var(--hover); }
.cell.cs-a .r1 { display: contents; }
.cell.cs-a .l1 { grid-row: 1; height: 22px; line-height: 22px; padding: 0 8px; border-radius: 6px; background: var(--cb, var(--s3)); color: var(--ci, var(--ink)); font-weight: 500; font-size: 12.5px; }
.cell.cs-a .l2 { grid-row: 2; height: 18px; line-height: 18px; padding: 0 3px; }
.cell.cs-a .sh { grid-row: 3; justify-self: start; align-self: center; }
/* Dienst-Feld in der Tabelle: ohne Pfeil, der ganze Platz gehört dem Namen */
.psel {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  display: block; width: calc(100% - 12px); height: 36px; margin: 0 6px; padding: 0 10px; border: 0; border-radius: 10px;
  background-color: transparent; color: var(--ink); font-weight: 600; font-size: 13.5px;
  transition: background-color .15s;
}
.psel:hover { background-color: var(--s2); }
.psel option { font-weight: 400; color: var(--ink); background: var(--surface); }
td.bad .psel { background-color: var(--bad-bg); color: var(--bad-ink); }
td.warn .bsel { background-color: var(--warn-bg); color: var(--warn-ink); }
.bsel { border: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
td.warn .psel { color: var(--mid); }
.cnt { text-align: center; }
.cnt span { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 999px; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.cnt.warn span { background: var(--warn-bg); color: var(--warn-ink); }
.cnt.bad span { background: var(--bad-bg); color: var(--bad-ink); }
.cnt.zero span { color: var(--ink3); font-weight: 400; }

/* ===================== Pausenplan ===================== */
.pp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px 0 10px; }
.pp-head h1 { font-size: 22px; }
.tl { margin-top: 14px; padding: 14px 12px 16px; background: var(--surface); border-radius: var(--r3); box-shadow: var(--sh1); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.tl-sec { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px 4px; }
.tl-sec h2 { font-size: 18px; }
.tl-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
.tl-scale { position: relative; height: 26px; }
.hl { position: absolute; top: 4px; transform: translateX(-50%); font-weight: 500; font-size: 14px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.hl.first { transform: none; }
.hl.last { transform: translateX(-100%); }
.hl.odd { display: none; }
.nowlbl { position: absolute; top: 1px; transform: translateX(-50%); padding: 0 8px; border-radius: 999px; background: var(--red); color: var(--on-red); font-weight: 700; font-size: 14px; line-height: 22px; z-index: 3; font-variant-numeric: tabular-nums; }
.tl-row { margin: 0 -6px; padding: 2px 6px 6px; border-radius: 12px; }
.tl-grid > .tl-row:nth-child(even):not(.av-row) { background: var(--shade); }
.tl-nm {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 4px; border: 0; border-radius: 10px; background: transparent; text-align: left;
  transition: background-color .15s;
}
.tl-nm:hover { background: var(--hover); }
.tl-nm:active { background: var(--press); }
.tl-nm .nm { font-size: 16px; font-weight: 700; flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-nm .tm { flex: 1; min-width: 0; font-size: 14px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tl-nm .sum { flex: none; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.sum.ok { color: var(--ok); background: var(--ok-soft); } .sum.mid { color: var(--mid); background: var(--mid-soft); } .sum.over { color: var(--over); background: var(--over-soft); }
.tl-nm:disabled { cursor: default; }
.tl-nm:disabled:hover { background: transparent; }
.tl-nm:disabled .nm { color: var(--ink3); }
.tl-nm .why { flex: none; padding: 2px 10px; border-radius: 999px; background: var(--s2); font-weight: 500; font-size: 14px; color: var(--ink3); }
.tl-bar {
  position: relative; height: 40px; border-radius: 10px; background-color: var(--track);
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px);
  background-size: calc(100% / var(--hrs, 11)) 100%; background-position: -1px 0; /* eine Linie je Stunde */
  touch-action: pan-y; cursor: copy;
}
.tl-row.away .tl-bar { cursor: default; background-image: repeating-linear-gradient(135deg, var(--hatch1) 0 8px, var(--hatch2) 8px 16px); opacity: .7; }
.blk {
  position: absolute; top: 4px; bottom: 4px; min-width: 6px; border-radius: 7px; padding: 0 2px;
  background: var(--yellow); color: var(--on-yellow);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(0, 0, 0, .1);
  touch-action: none; cursor: grab; z-index: 1;
  container-type: inline-size;
  display: flex; align-items: center;
  transition: box-shadow .15s, transform .15s;
}
.blk::before { content: ""; position: absolute; top: -6px; bottom: -6px; left: -8px; right: -8px; }
.blk:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(0, 0, 0, .14); }
.blk.drag { cursor: grabbing; z-index: 4; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .28), 0 0 0 2px var(--red); transition: none; }
.blk .bt { flex: 1; text-align: center; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; pointer-events: none; font-variant-numeric: tabular-nums; }
@container (max-width: 14px) { .blk .bt { display: none; } }
.blk .bx {
  position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: var(--ink); color: var(--surface); cursor: pointer; z-index: 2; box-shadow: var(--sh1);
}
.blk .bx .ic { width: 12px; height: 12px; stroke-width: 3; }
@media (hover: hover) and (pointer: fine) {
  .blk:hover .bx, .blk:focus-visible .bx { display: flex; }
}
.now { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--red); pointer-events: none; z-index: 3; }
.tl-row.away .now { opacity: .5; }
.av-row { padding-top: 8px; }
.av-row .tl-nm { min-height: 30px; }
.av { position: relative; display: flex; height: 32px; border-radius: 10px; }
.av .s {
  position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden;
  font-weight: 700; font-size: 14px; border-right: 1px solid var(--surface); font-variant-numeric: tabular-nums;
}
.av .s:first-child { border-radius: 10px 0 0 10px; }
.av .s:last-of-type { border-right: 0; border-radius: 0 10px 10px 0; }
.av .ok { background: var(--av-ok); color: var(--av-ok-ink); }
.av .warn { background: var(--av-warn); color: var(--av-warn-ink); }
.av .bad { background: var(--av-bad); color: var(--av-bad-ink); }

/* ===================== Auswertung ===================== */
.rwrap { overflow-x: auto; background: var(--surface); border-radius: var(--r3); box-shadow: var(--sh1); -webkit-overflow-scrolling: touch; }
table.rt { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; font-size: 15px; }
.rt th, .rt td { padding: 0 12px; height: 50px; border-bottom: 1px solid var(--line); text-align: center; background: var(--surface); }
.rt thead th { height: 58px; font-weight: 500; font-size: 14px; color: var(--ink2); line-height: 1.2; vertical-align: bottom; padding-bottom: 10px; border-bottom: 1px solid var(--line2); }
.rt .nmc { position: sticky; left: 0; z-index: 1; text-align: left; min-width: 124px; padding-left: 16px; }
.rt td.nmc { font-weight: 700; font-size: 15px; }
.rt td { font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.rt td.z { color: var(--ink3); font-weight: 400; }
.rt .grp { border-left: 1px solid var(--line); }
.rt tbody tr:nth-child(even) td { background: var(--zebra); }
.rt tbody tr:hover td { background: var(--press); }
.rt tbody tr:last-child td { border-bottom: 1px solid var(--line2); }
.rt tfoot td { border-bottom: 0; background: var(--s2); font-weight: 700; }
.rt .kc { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.rt .kc { background: var(--cd, var(--ink3)); }

/* ===================== Einstellungen ===================== */
/* gleiche Breite in allen Verwaltungs-Tabs */
.set { max-width: 980px; margin: 0 auto; }
/* Einstellungen: dezentes Überblenden zwischen Übersicht und Seite */
.set-ghost { position: fixed; z-index: 20; margin: 0; pointer-events: none; transition: opacity .14s ease; }
.set-ghost.out, .set.set-in { opacity: 0; }
.set.set-in.set-on { opacity: 1; transition: opacity .22s ease .08s; }
.sbox { padding: 16px; margin-bottom: 14px; background: var(--surface); border-radius: var(--r3); box-shadow: var(--sh1); }
.sbox > h2 { font-size: 18px; margin-bottom: 8px; display: flex; align-items: baseline; gap: 10px; }
.sbox > h2 .n { font-family: var(--fb); font-style: normal; font-weight: 400; font-size: 14px; color: var(--ink2); text-transform: none; }
.mlist { list-style: none; margin: 0; padding: 0; }
.mli { display: grid; grid-template-columns: 44px 44px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.mli:last-child { border-bottom: 0; }
.mli .ibtn { background: var(--s2); }
.mli .ibtn:hover { background: var(--s3); }
.mli .inp { font-weight: 600; }
.mli .inp.saved { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.mli .btn { padding: 0 12px; }
.mli.off, .mli.pli { grid-template-columns: minmax(0, 1fr) auto; }
.mli.off .nm { font-size: 16px; font-weight: 600; color: var(--ink2); padding-left: 4px; }
.addp { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 12px; }

.adm-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 8px 0 12px; }
.adm-h h2 { font-size: 20px; margin-right: auto; }
.adm-h .seg { order: 3; width: 100%; display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; }
.adm-h .seg > button { flex: 1; white-space: nowrap; }
.narrow-inp { max-width: 180px; font-weight: 700; }
.tpill { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.tyl { display: grid; gap: 0; }
.tyitems { display: flex; flex-wrap: wrap; gap: 4px; }
.tyi { display: inline-flex; align-items: center; min-height: 44px; padding: 0 3px; border: 0; border-radius: 999px; background: transparent; }
.tyi .tpill { height: 34px; padding: 0 14px; font-size: 15px; transition: box-shadow .15s; }
.tyi .ts { display: none; }
.tyi:hover .tpill { box-shadow: 0 0 0 2px var(--cd); }
.tyi[aria-pressed="true"] .tpill { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.tyi.off .tpill { opacity: .45; }
.tydet { scroll-margin-top: calc(var(--hdr) + 12px); }
.tyhead { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tyflow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; flex: 1 1 240px; min-width: 0; }
.tyflow .tpill { height: 36px; padding: 0 16px; font-size: 17px; }
.tyflow .arr { font-weight: 700; font-size: 20px; color: var(--ink3); }
.tyflow .tsum { font-weight: 600; font-size: 15px; line-height: 1.35; }
.prevbox { flex: none; }
.prevbox .lab { margin-bottom: 4px; }
.prevcell { width: 170px; cursor: default; pointer-events: none; }
.prevcell .l2 i { color: var(--ink3); }
.tyfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 14px; margin-top: 10px; border-top: 1px solid var(--line); }
.tyfoot .lab { margin: 0 6px 0 0; }
.tyfoot .ibtn { background: var(--s2); }
.tyfoot .ibtn:hover { background: var(--s3); }
.tyfoot .btn { margin-left: auto; }
.swatches { display: flex; flex-wrap: wrap; gap: 2px; }
.sw { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.sw span { width: 30px; height: 30px; border-radius: 50%; background: var(--cb); box-shadow: inset 0 0 0 2px var(--cd); }
.sw:hover { background: var(--s2); }
.sw[aria-pressed="true"] span { box-shadow: inset 0 0 0 2px var(--cd), 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.tgls { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.tgl { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border: 0; background: transparent; font-weight: 500; font-size: 15px; color: var(--ink); }
.tgl .trk { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--s3); transition: background-color .15s; }
.tgl .knb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: var(--sh1); transition: transform .15s; }
.tgl[aria-checked="true"] .trk { background: var(--ok); }
.tgl[aria-checked="true"] .knb { transform: translateX(18px); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.opts:empty { display: none; }
.opt { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 0 0 14px; border-radius: 999px; background: var(--s2); font-weight: 600; font-size: 15px; }
.ox { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink2); }
.ox:hover { color: var(--bad-ink); background: var(--bad-bg); }
.ox .ic { width: 16px; height: 16px; }

.setgrid { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.sbox > .row { margin-top: 18px; }
.setgrid label { display: block; }
.tlrng { display: flex; gap: 12px 16px; }
.inp.bad { border-color: var(--bad-dot); box-shadow: 0 0 0 3px var(--bad-bg); }
.ask { margin: 0 -10px; padding: 10px 10px 12px; border-radius: var(--r2); background: var(--warn-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn-dot) 50%, transparent); animation: fadeIn .2s ease-out; }
.ask-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ask-t { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--warn-ink); }
.ask-t::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--warn-dot); flex: none; }
.ask > .lab { display: none; }
.ask .btn { background: var(--surface); }
.ask .btn:hover { background: var(--hover); }
.ask .btn.on, .ask .btn.on:hover { background: var(--sel); color: var(--on-sel); } /* übersprungen: Fertig ist frei, die Auswahl bleibt */

.tybox { margin-top: 14px; border: 1px solid var(--line2); border-radius: var(--r3); overflow: hidden; }
.tybox-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--s2); border-bottom: 1px solid var(--line2); font-weight: 700; font-size: 15px; }
.tynum { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 14px; flex: none; }
.tybox-b { padding: 4px 14px 14px; }
.tybox-b > .lab:first-child { margin-top: 10px; }
.tybox-b .row { margin-top: 14px; }
.shake { animation: shake .4s ease-in-out; }

/* Hinweis unten mit Rückgängig */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav) + env(safe-area-inset-bottom) + 14px); z-index: 70; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); min-height: 52px; padding: 4px 4px 4px 18px;
  border-radius: 999px; background: var(--sel); color: var(--on-sel); box-shadow: var(--sh3); font-weight: 600; font-size: 15px; white-space: nowrap;
}
.toast[hidden] { display: none; }
.toast.in { animation: toastIn .18s ease-out; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }
.toast .tmsg { overflow: hidden; text-overflow: ellipsis; padding-right: 10px; }
.toast button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: color-mix(in srgb, currentColor 16%, transparent); color: inherit; font-weight: 700; font-size: 15px; }
.toast button:hover { background: color-mix(in srgb, currentColor 26%, transparent); }
html.has-sel .toast { bottom: 92px; }
/* Auswahlleiste (Kopieren / Einfügen) */
.selbar {
  position: fixed; left: 50%; bottom: 24px; z-index: 66; transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: var(--sh3); font-weight: 600; white-space: nowrap;
}
.selbar[hidden] { display: none; }
.selbar .sn { margin-right: 6px; font-variant-numeric: tabular-nums; }
.cell { position: relative; }
.cell.picked { box-shadow: inset 0 0 0 2px var(--focus), 0 0 0 2px color-mix(in srgb, var(--focus) 35%, transparent); }
/* Konflikte */
.cfx {
  display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--warn-dot); color: #1c1f24; font-size: 11px; font-weight: 800; line-height: 1; font-style: normal;
}
.cell .cfx { position: absolute; right: 4px; bottom: 4px; z-index: 1; }
.nfo {
  display: inline-grid; place-items: center; width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; border-radius: 50%;
  background: var(--info-dot); color: var(--surface); font: italic 800 10.5px/1 Georgia, "Times New Roman", serif;
}
.cell .r1 .nfo, .pcell .r1 .nfo { flex: none; margin: 0 auto 0 5px; }
.pcell .r1 .nfo { width: 16px; height: 16px; font-size: 11.5px; margin-left: 6px; }
.pcell.cs-a .r1 .nfo { margin: 0; }
/* Klassisch: i rechts in der Schicht-Zeile */
.cell.cs-a .sh { grid-column: 1; }
.cell.cs-a .nfo { grid-row: 3; grid-column: 1; justify-self: end; align-self: center; margin: 0 2px 0 0; }
/* Farbleiste/Vollfläche: in der freien zweiten Zeile oder unten rechts */
.cell .nfo { width: 13px; height: 13px; font-size: 10px; }
.cell .r1 .nfo { margin-left: 4px; }
.cell .l2 .nfo { vertical-align: top; margin: 1.5px 0 0; }
.cell > .nfo { position: absolute; right: 4px; bottom: 5px; margin: 0; z-index: 1; }
.cell.cf > .nfo { right: 23px; }
.cell.nfe .l2 { padding-right: 16px; }
.cell.nfe.cf .l2 { padding-right: 36px; }
/* Ansicht eines Eintrags */
.vst { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 16px; border-left: 6px solid var(--cd, var(--line2)); border-radius: var(--r2); background: color-mix(in srgb, var(--cb, var(--s2)) 38%, var(--surface)); }
.vst .vsl { font-family: var(--fh); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 24px; line-height: 1.1; min-width: 0; overflow-wrap: anywhere; }
.vst .sh { flex: none; height: 30px; padding: 0 14px; font-size: 15px; }
.vlist { margin: 6px 0 0; }
.vrow { padding: 12px 2px; border-bottom: 1px solid var(--line); }
.vrow:last-child { border-bottom: 0; }
.vrow dt { font-size: 14px; color: var(--ink2); }
.vrow dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.vnote { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r2); background: var(--info-bg); color: var(--info-ink); }
.vnote .nfo { flex: none; width: 22px; height: 22px; margin: 0; font-size: 15px; }
.vnote .vnl { font-size: 14px; font-weight: 700; }
.vnote .vnt { margin-top: 2px; font-size: 16px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.vnone { margin: 14px 2px 4px; color: var(--ink3); font-size: 15px; }
/* Auswahl des Designs in den Einstellungen */
.cstyles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.csopt { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 0; border-radius: var(--r2); background: var(--s2); text-align: left; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .15s, background-color .15s; }
.csopt:hover { box-shadow: inset 0 0 0 2px var(--line2); }
.csopt[aria-pressed="true"] { background: var(--surface); box-shadow: inset 0 0 0 2px var(--focus); }
:root[data-oled] .csopt:not([aria-pressed="true"]) { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line2); }
.csopt .pcell { width: 100%; pointer-events: none; }
.csopt .csl { font-weight: 600; font-size: 15px; color: var(--ink2); }
.csopt[aria-pressed="true"] .csl { color: var(--ink); font-weight: 700; }
/* eigene Farben */
.mycols { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mycol { min-height: 36px; border: 0; cursor: pointer; transition: box-shadow .15s; }
.mycol:hover { box-shadow: 0 0 0 2px var(--cd); }
.mycol.own { box-shadow: inset 0 0 0 2px var(--cd); }
.mysw { justify-content: center; gap: 6px; margin-top: 12px; }
.mysw .sw { position: relative; }
.mysw .sw .tm { position: absolute; bottom: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink2); }
.mysample { display: flex; justify-content: center; margin: 16px 0 4px; }
@media (max-width: 899px) { .mycol { min-height: 44px; padding: 0 16px; } }
.prow .pn .cfx { margin-left: 8px; vertical-align: 1px; }
.cfbox { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 10px 14px; border-radius: var(--r2); background: var(--warn-bg); color: var(--warn-ink); font-weight: 600; font-size: 14px; line-height: 1.4; }
.cfbox .cfx { margin-top: 1px; }
/* Zeitraum */
.rng { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.rng-msg { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ok); }
/* Feiertag in der Monatsansicht */
.dbadge .hn { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; color: var(--ink2); }
.mt tr.today .dbadge .hn { color: var(--red-ink); }
.narrow-sel { max-width: 320px; }

/* Anmeldung */
.gate { display: none; }
body.login .gate { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 24px 16px; }
.gate-card { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 400px; padding: 28px 24px 22px; background: var(--surface); border-radius: var(--r4); box-shadow: var(--sh2); }
.gate-card .brand { align-self: flex-start; }
.gate-card h1 { font-size: min(30px, 6.6vw); margin-top: 6px; overflow-wrap: break-word; } /* lange Wörter wie „Wiederherstellungscodes“ passen auch aufs Handy */
.gate-txt { color: var(--ink2); font-size: 15px; }
.gate-card .btn.primary { width: 100%; }
.gate-lang { align-self: center; margin-top: 4px; }
/* Einrichtung */
.gate-card.inst { max-width: 520px; }
.instf { display: flex; flex-direction: column; gap: 8px; }
.instf .lab { margin-top: 6px; }
.instf .btn.primary { margin-top: 6px; }
.instg { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 4px; }
.radio { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; }
.radio input { width: 20px; height: 20px; accent-color: var(--red); flex: none; }
.cfgbox { min-height: 260px; font: 13px/1.4 ui-monospace, Menlo, Consolas, monospace; white-space: pre; }
.pw-err { min-height: 20px; font-size: 14px; font-weight: 600; color: var(--bad-ink); }
.pw-err:empty { min-height: 0; }
/* Zwei-Faktor-Anmeldung: QR-Code (immer schwarz auf weiß), Schlüssel, Code-Feld, Wiederherstellungscodes */
.tfa-qr { align-self: center; width: 208px; height: 208px; padding: 0; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.tfa-qr svg { display: block; width: 100%; height: 100%; }
.tfa-key { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; }
.tfa-key code { font: 600 15px/1.5 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; color: var(--ink); overflow-wrap: anywhere; }
.code-inp { font: 600 22px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .25em; text-align: center; }
.chk { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.chk input { width: 20px; height: 20px; margin: 0; accent-color: var(--red); }
.tfa-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tfa-codes li { padding: 10px 8px; border-radius: 10px; background: var(--s2); font: 600 15px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; text-align: center; }
.gate-card a.btn { justify-content: center; text-decoration: none; }
.gate-card .btn.line { width: 100%; }
/* Konto: 2FA einrichten (QR links, Schlüssel und Code rechts; schmal untereinander) */
.tfa-set { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.tfa-set .tfa-qr { flex: none; align-self: flex-start; width: 184px; height: 184px; }
.tfa-side { display: flex; flex: 1 1 220px; flex-direction: column; gap: 14px; min-width: 0; }
.tfa-side .tfa-key { align-items: flex-start; text-align: left; }
.tfa-side label { display: flex; flex-direction: column; gap: 6px; }
.tfa-acts { flex-wrap: wrap; }
.h .tag.on { background: var(--c-gruen); color: var(--c-gruen-ink); }
#own-tfa .tfa-codes { max-width: 420px; }
.inp.bad { border-color: var(--red); }
/* Einstellungen */
.pagehead .btn { margin-left: auto; }
.adm-lock .h { display: flex; align-items: center; gap: 8px; }
.adm-lock .addp { margin-top: 0; }
.adm-lock .pw-err { margin-top: 8px; }
.pwfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.pw-msg { font-size: 14px; font-weight: 600; color: var(--ok); }
.adm-h .lockbtn { margin-left: auto; }
@media (max-width: 599px) { .adm-h .lockbtn { padding: 0 12px; } .adm-h .lockbtn .lbt { display: none; } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ===================== Dialog / Bottom-Sheet ===================== */
dialog.sheet {
  padding: 0; border: 0; border-radius: var(--r4) var(--r4) 0 0;
  margin: auto 0 0 0; width: 100%; max-width: none; max-height: 92vh; max-height: 92dvh;
  background: var(--surface); color: var(--ink); box-shadow: var(--sh3);
}
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheetUp .26s cubic-bezier(.2, .8, .2, 1); }
dialog.sheet::backdrop { background: var(--scrim); animation: fadeIn .2s ease-out; }
@keyframes sheetUp { from { transform: translateY(48px); opacity: .3; } }
@keyframes fadeIn { from { opacity: 0; } }
.grab { flex: none; position: relative; height: 16px; touch-action: none; }
.grab::before { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; margin-left: -20px; border-radius: 999px; background: var(--line2); }
dialog.sheet.swiped { animation: none; }
dialog.sheet.swipe { user-select: none; -webkit-user-select: none; }
dialog.sheet::backdrop { opacity: calc(1 - var(--sd, 0)); }
.sh-head { display: flex; align-items: center; gap: 2px; padding: 4px 8px 8px 18px; border-bottom: 1px solid var(--line); flex: none; }
.sh-ttl { flex: 1; min-width: 0; padding: 4px 0; }
.sh-ttl h2 { font-size: 22px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-ttl .sub { font-size: 14px; color: var(--ink2); margin-top: 2px; }
.sh-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 4px 18px 18px; overscroll-behavior: contain; }
.sh-foot { display: flex; gap: 8px; justify-content: flex-end; flex: none; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sh-foot .btn { flex: 1; min-height: 48px; font-weight: 700; }
.fs { padding: 14px 0 6px; }
.fs + .fs { border-top: 1px solid var(--line); }
.fs-t { font-weight: 700; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink2); margin-bottom: 10px; }
.fs .row { margin-top: 12px; }
.fs.off .fs-t, .fs.off .lab { opacity: .5; }
.stgrid { display: flex; flex-wrap: wrap; gap: 6px; }
.stb {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: var(--s2); color: var(--ink);
  font-weight: 500; font-size: 15px; white-space: nowrap; transition: background-color .15s, box-shadow .15s;
}
.stb::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cd); flex: none; }
.stb:hover { background: var(--s3); }
.stb[aria-pressed="true"] { font-weight: 700; background: var(--cb); color: var(--ci); box-shadow: inset 0 0 0 2px var(--cd); }
.pgrid { display: flex; flex-wrap: wrap; gap: 6px; }
.pb {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--s2); text-align: left;
  transition: background-color .15s;
}
.pb .n { font-weight: 700; font-size: 15px; white-space: nowrap; }
.pb .s { font-size: 14px; color: var(--ink2); white-space: nowrap; }
.pb:hover { background: var(--s3); }
.pb.dim .n { color: var(--ink3); font-weight: 500; }
.pb[aria-pressed="true"] { background: var(--sel); }
.pb[aria-pressed="true"] .n, .pb[aria-pressed="true"] .s { color: var(--on-sel); }
.pb[aria-pressed="true"].shp { background: var(--cb); } .pb[aria-pressed="true"].shp .n { color: var(--ci); }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; border-radius: 999px; background: var(--s2); }

.pblk { margin-top: 12px; padding: 10px 12px 12px; border-radius: var(--r3); background: var(--s2); }
.pblk-h { display: flex; align-items: center; justify-content: space-between; min-height: 36px; }
.pblk-h .t { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.pblk-h .t::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--yellow); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.pblk-h .ibtn { background: var(--surface); width: 40px; height: 40px; }
.pblk-h .ibtn:hover { background: var(--bad-bg); color: var(--bad-ink); }
.pbf { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.pbf .inp { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.qb { min-height: 44px; border: 0; border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 15px; transition: background-color .15s; }
.qb:hover { background: var(--s3); }
.qb[aria-pressed="true"] { background: var(--yellow); color: var(--on-yellow); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.padd { width: 100%; margin-top: 12px; background: transparent; border: 1.5px dashed var(--line2); }
.padd:hover { background: var(--s2); border-color: var(--ink3); }
.psum { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r2); font-weight: 700; font-size: 15px; }
.psum::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.psum.ok { color: var(--ok); background: var(--ok-soft); }
.psum.mid { color: var(--warn-ink); background: var(--warn-bg); }
.psum.over { color: var(--bad-ink); background: var(--bad-bg); }
.feb { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; margin-top: 12px; padding: 10px 12px 12px; border-radius: var(--r3); background: var(--s2); }
.feb .ibtn { background: var(--surface); }
/* Feierabend in der Zeitleiste */
.fe {
  position: absolute; top: 0; bottom: 0; right: 0; display: flex; align-items: center; border-left: 2px solid var(--ink3); border-radius: 0 10px 10px 0;
  background-color: color-mix(in srgb, var(--ink3) 10%, transparent); background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink3) 22%, transparent) 0 6px, transparent 6px 12px); pointer-events: none; container-type: inline-size;
}
.fel { margin-left: 8px; font-size: 14px; font-weight: 700; color: var(--ink2); white-space: nowrap; font-variant-numeric: tabular-nums; }
@container (max-width: 120px) { .fel .fw { display: none; } }
@container (max-width: 44px) { .fel { display: none; } }

/* ===================== Tablet ===================== */
@media (min-width: 600px) {
  .hl.odd { display: block; }
  dialog.sheet { max-width: 640px; margin: auto auto 0; }
  .view-narrow { max-width: 760px; margin: 0 auto; }
}

/* ===================== Desktop ===================== */
@media (min-width: 900px) {
  .blk .bt { font-size: 13px; }
  :root { --hdr: 64px; }
  body { font-size: 14px; }
  .top { gap: 28px; padding: 0 24px; }
  .brand { height: 34px; font-size: 19px; padding: 0 14px; }
  /* Reiter: gleiche Abstände, aktiver Reiter mit rotem Balken, der beim Wechsel hinübergleitet */
  .tabs { position: relative; display: flex; align-items: stretch; align-self: stretch; gap: 8px; }
  .tabs button {
    display: flex; align-items: center; padding: 0 12px; border: 0; border-radius: 0; background: transparent;
    font-weight: 600; font-size: 15px; color: var(--ink2); transition: color .2s;
  }
  .tabs button:hover { color: var(--ink); }
  .tabs button[aria-current="page"] { color: var(--ink); }
  .tabs-ind { position: absolute; left: 0; bottom: -1px; width: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--red); pointer-events: none; }
  .tabs-ind.go { transition: transform .38s cubic-bezier(.25, .8, .25, 1), width .38s cubic-bezier(.25, .8, .25, 1); }
  .tbtn { padding: 0 14px; background: var(--s2); }
  .tbtn:hover { background: var(--s3); }
  .tbtn:disabled:hover { background: var(--s2); }
  .tbtn.ubtn { padding: 0 10px; background: transparent; color: var(--ink2); }
  .tbtn.ubtn:hover { background: var(--s2); color: var(--ink); }
  .tbtn.ubtn:disabled:hover { background: transparent; color: var(--ink2); }
  .tbtn .tl-txt { display: inline-grid; font-size: 14px; }
  .botnav { display: none; }
  .toast { bottom: 24px; }
  main { padding: 0 28px 40px; }
  main.flush { padding: 0; }
  .btn { min-height: 38px; }
  .ibtn { width: 40px; height: 40px; }
  .seg > button { min-height: 34px; }
  .inp { min-height: 40px; }
  .pagehead { min-height: 84px; gap: 16px; }
  .pagehead h1 { font-size: 30px; flex: none; }

  .strip { position: static; margin: 0; padding: 0; background: none; display: flex; align-items: center; gap: 12px; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .wnav { min-height: 0; padding: 3px; border-radius: 999px; background: var(--surface); box-shadow: var(--sh1); }
  .wlbl { flex: none; min-width: 160px; }
  .wlbl .h { font-size: 17px; }
  .wnav .btn { margin-left: 4px; min-height: 40px; border-radius: 999px; }
  .days { display: flex; gap: 4px; margin: 0; padding: 4px; border-radius: 18px; background: var(--surface); box-shadow: var(--sh1); }
  .dbtn { width: 66px; min-height: 50px; padding: 2px 0 7px; border-radius: 13px; }
  .dbtn:not(.sel):hover { background: var(--s2); }
  .dbtn .dn { display: none; }
  .dbtn .dm { display: block; font-size: 14px; font-weight: 700; }
  .dbtn.today::after { bottom: 4px; }
  .dbtn.today .dm { color: var(--red); }
  .dbtn.sel .dm { color: var(--on-sel); }
  .dbtn.sel.today .dm { color: var(--on-red); }
  .dbtn.we .dm { color: var(--ink3); }

  .pp { max-width: 1440px; margin: 0 auto; }
  .pp-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 0 4px; }
  .pp-head { padding: 22px 0 12px; }
  .pp-head h1 { font-size: 28px; }
  .tl { padding: 16px 18px 18px; }
  .tl-grid { row-gap: 6px; }
  .tl-row, .tl-head { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: center; column-gap: 0; padding: 0; }
  .tl-row { padding: 3px 6px; }
  .tl-nm { min-height: 46px; padding: 0 14px 0 6px; flex-wrap: wrap; row-gap: 0; align-content: center; margin-right: 10px; }
  .tl-nm .nm { max-width: 100%; }
  .tl-nm .tm { order: 3; flex-basis: 100%; font-size: 13px; line-height: 1.25; }
  .tl-nm .tm:empty { display: none; }
  .tl-nm .sum, .tl-nm .why { margin-left: auto; font-size: 13px; }
  .tl-bar { height: 46px; }
  .fel { font-size: 13px; }
  .hl { font-size: 13px; }
  .nowlbl { font-size: 13px; }
  .av-row { padding-top: 10px; }
  .av .s { font-size: 13px; }

  .view-narrow { max-width: 1120px; margin: 0 auto; }
  .adm-h .seg { order: 0; width: auto; display: inline-flex; border-radius: 999px; }
  .adm-h h2 { font-size: 22px; margin-right: 8px; }
  .tyl { grid-template-columns: 340px minmax(0, 1fr); gap: 14px; align-items: start; }
  .tyitems { flex-direction: column; flex-wrap: nowrap; gap: 2px; }
  .tyi { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; padding: 8px 10px; border-radius: 12px; text-align: left; }
  .tyi:hover { background: var(--hover); }
  .tyi:hover .tpill { box-shadow: none; }
  .tyi[aria-pressed="true"] { background: var(--s2); box-shadow: inset 3px 0 0 var(--red); }
  .tyi[aria-pressed="true"] .tpill { box-shadow: none; }
  .tyi .tpill { height: 28px; font-size: 14px; }
  .tyi .ts { display: block; max-width: 100%; font-size: 13px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rt { font-size: 14px; }
  dialog.sheet { margin: auto; width: 600px; max-height: 88vh; border-radius: var(--r4); }
  dialog.sheet.narrow { width: 460px; }
  .grab { display: none; }
  .sh-head { padding-top: 10px; }
  .sh-foot { padding-bottom: 14px; }
}
@media (min-width: 900px) and (pointer: fine) {
  .btn.sm { min-height: 32px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===================== Datenbank-Version ===================== */
#main.busy { opacity: .55; transition: opacity .2s .15s; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 16px; text-align: center; color: var(--ink2); font-size: 16px; }
.empty p { margin: 0; }
.items { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.item { padding: 12px 14px 14px; border-radius: var(--r2); background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); }
.item.off { opacity: .6; }
.item-h { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.item-h .sh, .item-h .tpill { height: 30px; padding: 0 12px; font-size: 15px; }
.item-h .sp { flex: 1; }
.item .setgrid { margin-top: 4px; }
.cfm { margin: 14px 0 4px; color: var(--ink2); font-size: 15px; }
.pw-msg.bad { color: var(--bad-ink); }

/* Unterbesetzt: Tag rot markieren (Monatsplan, Wochenleiste, Tagesansicht) */
.shortm { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: var(--on-red); font-size: 12px; font-weight: 800; line-height: 1; }
.dbtn.short::before { content: ""; position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad-dot); }
.dbtn.sel.today.short::before { background: var(--on-red); }
.shortbar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 8px 10px; border-radius: var(--r2); background: var(--bad-bg); color: var(--bad-ink); font-size: 14px; font-weight: 700; line-height: 1.3; }
.cnt small, .chip .v small { font-size: .75em; font-weight: 600; opacity: .85; }

/* Statusart-Editor: Vorschau bleibt oben stehen, das angefahrene Feld wird darin hervorgehoben */
.tyhead { position: sticky; top: calc(var(--hdr) + env(safe-area-inset-top)); z-index: 4; margin: -16px -16px 0; padding: 16px 16px 14px; background: var(--surface); border-radius: var(--r3) var(--r3) 0 0; }
.tybox { transition: border-color .15s; }
.tybox:is(:hover, :focus-within) { border-color: var(--ink3); }
.prevcell .pv1, .prevcell .pv2, .prevcell .pv3 { border-radius: 3px; transition: background-color .15s, color .15s; }
.tydet:has(.tybox[data-n="1"]:is(:hover, :focus-within)) .prevcell .pv1,
.tydet:has(.tybox[data-n="2"]:is(:hover, :focus-within)) .prevcell .pv2,
.tydet:has(.tybox[data-n="3"]:is(:hover, :focus-within)) .prevcell .pv3 { background: var(--ink); color: var(--surface); box-shadow: 0 0 0 2px var(--ink); }
.prevcell .sh.pv1 { border-radius: 999px; }
@media (max-width: 699px) { .tyflow { display: none; } .prevbox { display: flex; align-items: center; gap: 10px; } .prevbox .lab { margin: 0; } }

/* Hauptarten: ziehen zum Sortieren, inaktive gekennzeichnet, Löschen mit Rückfrage */
#ty-items .tyi { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
@media (pointer: fine) { #ty-items .tyi { cursor: grab; } }
html.dragging, html.dragging * { cursor: grabbing !important; }
#ty-items .tyi.drag { position: relative; z-index: 5; background: var(--surface); box-shadow: 0 10px 28px rgba(16, 24, 40, .22); pointer-events: none; will-change: transform; transition: box-shadow .15s; }
#ty-items { position: relative; }
.tyi .ts b { font-weight: 700; color: var(--ink2); text-transform: uppercase; font-size: 11px; letter-spacing: .04em; margin-right: 2px; }
.tyfoot.cfmrow { align-items: center; }
.tyfoot.cfmrow .cfm { flex: 1 1 220px; margin: 0; font-weight: 600; }
.tgl[disabled] { opacity: .45; cursor: not-allowed; }

/* Pausenplan: Abwesende in der Farbe ihres Status statt grau schraffiert (Schraffur bleibt für Feierabend) */
.tl-row.away .tl-bar { background-image: none; background-color: color-mix(in srgb, var(--cb, var(--track)) var(--away-mix), var(--track)); opacity: 1; }
.tl-row.away .tl-nm .why { background: var(--cb, var(--s2)); color: var(--ci, var(--ink2)); font-weight: 700; }

/* Dienst-Auswahl: ganze Woche */
.pkweek { margin-top: 10px; }
.pkweek .wks { margin-left: 4px; color: var(--ink2); font-weight: 500; }

/* Tag ohne Eintrag */
.c-leer { --cb: transparent; --ci: var(--ink3); --cd: var(--line2); }

/* Tagesnotiz (z. B. Teamtag): ganze Zeile in der gewählten Farbe */
button.dbadge { border: 0; color: inherit; font: inherit; text-align: left; background: transparent; cursor: pointer; transition: background-color .15s; }
.mt button.dbadge:hover { background: var(--s2); }
.mt tr.dn > th.cday { background: color-mix(in srgb, var(--dnb) 75%, var(--surface)); } /* Tagesnotiz: nur die Tag-Spalte in der Notizfarbe */
.mt tr.dn .dbadge .wd, .mt tr.dn:not(.today) .dbadge .dt, .mt tr.dn .dbadge .hn { color: var(--dni); }
.mt tr.dn .dbadge .dnl { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dnd) 45%, transparent); }
.dbadge .dnl { display: -webkit-box; width: auto; max-width: 64px; margin: 4px 0 0 -6px; padding: 1px 6px; border-radius: 5px; background: var(--dnb); color: var(--dni); font-size: 11px; font-weight: 700; line-height: 1.3; overflow: hidden; overflow-wrap: break-word; hyphens: auto; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dnbar { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin: 0 0 12px; padding: 10px 14px; border: 0; border-radius: var(--r3); background: var(--dnb); color: var(--dni); font: inherit; font-size: 16px; font-weight: 700; line-height: 1.3; text-align: left; box-shadow: var(--sh1); cursor: pointer; }
.dnbar .ic { flex: none; }
.dnbar span { min-width: 0; overflow-wrap: anywhere; }
.dbtn.dn:not(.sel) { background: color-mix(in srgb, var(--dnb) 75%, transparent); }
.dbtn.dn.sel { box-shadow: inset 0 -4px 0 var(--dnd), var(--sh1); }
.tag.dnt { background: var(--dnb); color: var(--dni); }
.inp.dninp { background: var(--dnb); color: var(--dni); border-color: var(--dnd); font-weight: 700; }
.dnsw { margin-top: 14px; }

/* Mindestbesetzung für eine Statusart mit Schicht (z. B. W@H Spät) */
.mt thead th.num.cmb { white-space: normal; line-height: 1.15; }
.mt thead th.cmb span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rqpick { display: flex; flex-wrap: wrap; gap: 6px; }
:root .rqpick .btn.line[aria-pressed="true"], :root .rqpick .btn.line[aria-pressed="true"]:hover { border-color: transparent; background: var(--sel); color: var(--on-sel); box-shadow: none; } /* stärker als die Knopf-Regeln der Designs */
/* Mindestbesetzung: jede Bedingung eine Zeile, die sich als Satz liest */
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rrow { display: grid; gap: 10px; padding: 10px 14px 14px; border-radius: var(--r2); background: var(--s2); }
.rtop { display: flex; align-items: center; gap: 8px; }
.rtop .rnm { flex: 1; min-width: 0; max-width: 340px; min-height: 38px; margin-left: -9px; padding: 0 8px; border-color: transparent; background: transparent; font-weight: 700; font-size: 16px; }
.rtop .rnm::placeholder { color: var(--ink); opacity: 1; }
.rtop .rnm:hover, .rtop .rnm:focus { border-color: var(--line2); background: var(--surface); }
.rtop .rnm:focus::placeholder { color: var(--ink3); }
.rtop .ibtn { margin-left: auto; }
.rsent, .rdays { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rw { font-size: 15px; color: var(--ink2); }
.rsent select.inp { width: auto; max-width: 100%; min-height: 40px; font-weight: 600; }
.rsent .rnum { width: 64px; min-height: 40px; padding: 0 4px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.rdays { gap: 6px; }
.rday { min-width: 42px; height: 36px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 999px; background: var(--surface); color: var(--ink2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.rday:hover { border-color: var(--ink3); }
:root .rday[aria-pressed="true"] { border-color: transparent; background: var(--sel); color: var(--on-sel); }
@media (max-width: 560px) { .rdays .rw { flex-basis: 100%; } .rday { flex: 1; min-width: 0; padding: 0; } }

/* Benutzerkonten */
.mli.uli { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.uli .nm { flex: 1 1 140px; min-width: 0; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 4px; }
.uli .nm .tag { height: 20px; font-size: 12.5px; margin-left: 4px; }
.uli .tgl { flex: none; }
.uli .ibtn.ph { visibility: hidden; }
.uli .upw { flex: 1 1 100%; flex-wrap: wrap; }
.uli .upw .pw-msg { flex: 1 1 100%; }
.uli .cfmq { font-weight: 700; color: var(--bad-ink); }

/* Sicherungen */
.bkli .nm small { display: block; font-size: 13px; font-weight: 500; color: var(--ink2); }
.bkfile { cursor: pointer; }

/* Dunkle Farbschemata: Einträge kräftiger, damit die Statusfarben nicht verblassen */
:root[data-theme="dark"] .cell.cs-b, :root[data-theme="dark"] .pcell.cs-b { background: color-mix(in srgb, var(--cb, var(--s2)) 62%, var(--surface)); filter: saturate(1.3); }
:root[data-theme="dark"] .cell.cs-b:hover { background: color-mix(in srgb, var(--cb, var(--s2)) 78%, var(--surface)); }
:root[data-theme="dark"] .cell.cs-c, :root[data-theme="dark"] .pcell.cs-c, :root[data-theme="dark"] .pcell.cs-a .l1, :root[data-theme="dark"] .cell.cs-a .l1 { filter: saturate(1.3); }

/* Einstellungen: Kacheln als Übersicht, ein Tipp öffnet die Seite */
.setttl { font-size: 26px; margin: 6px 0 4px; }
.set .gl { margin: 18px 4px 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
.tiles.tlast { margin-top: 22px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; min-height: 124px; padding: 16px; border: 0; border-radius: var(--r3); background: var(--surface); box-shadow: var(--sh1); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.tile:hover { box-shadow: var(--sh2); transform: translateY(-1px); }
.tile:active { transform: none; background: var(--s2); }
.tile .mi { display: grid; place-items: center; flex: none; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 12px; background: var(--red-soft); color: var(--red); }
.tile b { max-width: 100%; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.tile small { display: -webkit-box; max-width: 100%; overflow: hidden; color: var(--ink2); font-size: 13px; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.tile.tout { flex-direction: row; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; }
.tile.tout .mi { width: 36px; height: 36px; margin: 0; background: var(--s2); color: var(--ink2); }
@media (max-width: 599px) {
  /* Handy: eine Spalte, Symbol links, Name und Kurzbeschreibung rechts in je einer Zeile */
  .tiles { grid-template-columns: 1fr; gap: 10px; }
  .tile { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; align-items: center; min-height: 0; padding: 12px 14px; }
  .tile .mi { grid-row: span 2; margin-bottom: 0; }
  .tile small { display: block; white-space: nowrap; text-overflow: ellipsis; }
  .tiles.tlast { grid-template-columns: 1fr; }
}
@media (min-width: 600px) { .set { padding-top: 12px; } }
.setback { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin: 0 0 4px -8px; padding: 0 10px 0 4px; border: 0; border-radius: 999px; background: transparent; color: var(--red); font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; }
.setback:hover { background: var(--s2); }
@media (prefers-reduced-motion: reduce) { .tabs-ind.go { transition: none; } }

/* Pause jetzt starten */
.pp-act { display: flex; align-items: center; gap: 8px; flex: none; }
.pp-act .btn { min-height: 40px; padding: 0 14px; }
.nowdur { display: block; margin-top: 16px; }
.nowdur .inp { width: 160px; }

/* Statusknöpfe im Bearbeiten-Dialog im gewählten Design der Einträge */
.stb.cs-a, .stb.cs-b, .stb.cs-c { border-radius: 8px; padding: 0 14px; }
.stb.cs-a::before, .stb.cs-b::before, .stb.cs-c::before { display: none; }
.stb.cs-a, .stb.cs-c { background: var(--cb, var(--s2)); color: var(--ci, var(--ink)); }
.stb.cs-a:hover, .stb.cs-c:hover { background: color-mix(in srgb, var(--cb, var(--s2)) 86%, var(--ink)); }
.stb.cs-b { padding-left: 16px; background: color-mix(in srgb, var(--cb, var(--s2)) 38%, var(--surface)); box-shadow: inset 4px 0 0 var(--cd, var(--line2)); }
.stb.cs-b:hover { background: color-mix(in srgb, var(--cb, var(--s2)) 60%, var(--surface)); }
.stb.cs-a[aria-pressed="true"], .stb.cs-c[aria-pressed="true"] { background: var(--cb); color: var(--ci); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--cd); }
.stb.cs-b[aria-pressed="true"] { background: color-mix(in srgb, var(--cb) 75%, var(--surface)); color: var(--ink); box-shadow: inset 4px 0 0 var(--cd), 0 0 0 2px var(--surface), 0 0 0 4px var(--cd); }
:root[data-theme="dark"] .stb.cs-b { background: color-mix(in srgb, var(--cb, var(--s2)) 62%, var(--surface)); }
:root[data-theme="dark"] .stb.cs-b[aria-pressed="true"] { background: color-mix(in srgb, var(--cb) 85%, var(--surface)); }

/* Hinweis bei schon besetzter Kombination: Wechsel-Knopf */
.cfalt { margin-top: 8px; }
.cfalt .btn { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line2); }

/* Tabellenansicht pro Konto: Kompakt und Geräumig (Standard = ohne Attribut) */
:root[data-dens="k"] .mt thead th { height: 38px; }
:root[data-dens="k"] .mt td.pcol { padding: 2px; }
:root[data-dens="k"] .cell.cs-b, :root[data-dens="k"] .cell.cs-c { height: 36px; padding: 2px 6px 2px 7px; }
:root[data-dens="k"] .cell.cs-b .r1, :root[data-dens="k"] .cell.cs-c .r1 { height: 17px; }
:root[data-dens="k"] .cell.cs-b .l1, :root[data-dens="k"] .cell.cs-c .l1 { font-size: 12.5px; }
:root[data-dens="k"] .cell.cs-b .l2, :root[data-dens="k"] .cell.cs-c .l2 { margin-top: 1px; height: 14px; line-height: 14px; font-size: 11px; }
:root[data-dens="k"] .cell .sh { height: 16px; font-size: 11px; }
:root[data-dens="k"] .cell.cs-a { grid-template-rows: 20px 16px 16px; height: 56px; padding: 3px 4px; }
:root[data-dens="k"] .cell.cs-a .l1 { height: 20px; line-height: 20px; }
:root[data-dens="k"] .dbadge { padding: 2px 7px; }
:root[data-dens="k"] .dbadge .wd { font-size: 13px; }
:root[data-dens="k"] .dbadge .dt { font-size: 11.5px; }
:root[data-dens="k"] .mt tr.wk td:not(.gapc), :root[data-dens="k"] .wk-in { height: 36px; }
:root[data-dens="k"] .wk-in .h { font-size: 16px; }
:root[data-dens="k"] .wk-in .btn { min-height: 26px; }
:root[data-dens="k"] .mt tbody tr.gap td { height: 12px; }
:root[data-dens="k"] .psel { height: 30px; font-size: 13px; }
:root[data-dens="k"] .cnt span { height: 22px; min-width: 26px; font-size: 13px; }
:root[data-dens="k"] .prow { min-height: 48px; padding-top: 5px; padding-bottom: 5px; }
:root[data-dens="k"] .prow .pn { font-size: 15px; }
:root[data-dens="k"] .prow .pcell { min-height: 38px; padding-top: 3px; padding-bottom: 3px; }
:root[data-dens="k"] .prow .pcell .l1 { font-size: 14px; }
:root[data-dens="k"] .prow .pcell .l2 { font-size: 13px; }

:root:not([data-dens="k"]) .mt thead th { height: 54px; }
:root:not([data-dens="k"]) .mt td.pcol { padding: 5px 3px; }
:root:not([data-dens="k"]) .cell.cs-b, :root:not([data-dens="k"]) .cell.cs-c { height: 58px; padding: 8px 7px 8px 8px; }
:root:not([data-dens="k"]) .cell.cs-b .r1, :root:not([data-dens="k"]) .cell.cs-c .r1 { height: 21px; }
:root:not([data-dens="k"]) .cell.cs-b .l2, :root:not([data-dens="k"]) .cell.cs-c .l2 { margin-top: 3px; height: 18px; line-height: 18px; font-size: 13px; }
:root:not([data-dens="k"]) .cell.cs-a { grid-template-rows: 24px 20px 20px; height: 78px; padding: 7px 6px; }
:root:not([data-dens="k"]) .cell.cs-a .l1 { height: 24px; line-height: 24px; font-size: 13.5px; }
:root:not([data-dens="k"]) .dbadge { padding: 5px 9px; }
:root:not([data-dens="k"]) .dbadge .wd { font-size: 15px; }
:root:not([data-dens="k"]) .dbadge .dt { font-size: 13.5px; }
:root:not([data-dens="k"]) .mt tr.wk td:not(.gapc), :root:not([data-dens="k"]) .wk-in { height: 54px; }
:root:not([data-dens="k"]) .wk-in .h { font-size: 19px; }
:root:not([data-dens="k"]) .mt tbody tr.gap td { height: 24px; }
:root:not([data-dens="k"]) .psel { height: 40px; font-size: 14.5px; }
:root:not([data-dens="k"]) .cnt span { height: 30px; min-width: 34px; font-size: 15px; }
:root:not([data-dens="k"]) .prow { min-height: 72px; padding-top: 12px; padding-bottom: 12px; }
:root:not([data-dens="k"]) .prow .pn { font-size: 17px; }
:root:not([data-dens="k"]) .prow .pcell { min-height: 56px; padding-top: 7px; padding-bottom: 7px; }
:root:not([data-dens="k"]) .prow .pcell .l1 { font-size: 16px; }
:root:not([data-dens="k"]) .prow .pcell .l2 { font-size: 15px; }
/* Geräumig: noch eine Stufe größer als Standard */
:root[data-dens="g"] .mt thead th { height: 62px; }
:root[data-dens="g"] .mt td.pcol { padding: 7px 4px; }
:root[data-dens="g"] .cell.cs-b, :root[data-dens="g"] .cell.cs-c { height: 70px; padding: 11px 9px 11px 10px; }
:root[data-dens="g"] .cell.cs-b .r1, :root[data-dens="g"] .cell.cs-c .r1 { height: 24px; }
:root[data-dens="g"] .cell.cs-b .l1, :root[data-dens="g"] .cell.cs-c .l1 { font-size: 15px; }
:root[data-dens="g"] .cell.cs-b .l2, :root[data-dens="g"] .cell.cs-c .l2 { margin-top: 4px; height: 20px; line-height: 20px; font-size: 14px; }
:root[data-dens="g"] .cell .sh { height: 20px; font-size: 12.5px; }
:root[data-dens="g"] .cell.cs-a { grid-template-rows: 28px 22px 22px; height: 92px; padding: 9px 7px; }
:root[data-dens="g"] .cell.cs-a .l1 { height: 28px; line-height: 28px; font-size: 15px; }
:root[data-dens="g"] .dbadge { padding: 7px 10px; }
:root[data-dens="g"] .dbadge .wd { font-size: 16.5px; }
:root[data-dens="g"] .dbadge .dt { font-size: 14.5px; }
:root[data-dens="g"] .mt tr.wk td:not(.gapc), :root[data-dens="g"] .wk-in { height: 62px; }
:root[data-dens="g"] .wk-in .h { font-size: 21px; }
:root[data-dens="g"] .mt tbody tr.gap td { height: 30px; }
:root[data-dens="g"] .psel { height: 46px; font-size: 15.5px; }
:root[data-dens="g"] .cnt span { height: 34px; min-width: 38px; font-size: 16px; }
:root[data-dens="g"] .ixi { font-size: 13.5px; }
:root[data-dens="g"] .prow { min-height: 84px; padding-top: 15px; padding-bottom: 15px; }
:root[data-dens="g"] .prow .pn { font-size: 18.5px; }
:root[data-dens="g"] .prow .pcell { min-height: 64px; padding-top: 9px; padding-bottom: 9px; }
:root[data-dens="g"] .prow .pcell .l1 { font-size: 17px; }
:root[data-dens="g"] .prow .pcell .l2 { font-size: 16px; }

/* Pausen anderer Mitarbeiter: nur ansehen */
.tl-row.ro .tl-nm, .tl-row.ro .blk, .tl-row.ro .tl-bar { cursor: default; }
.tl-row.ro .tl-nm:hover, .tl-row.ro .tl-nm:active { background: transparent; }
.nowdur:first-child { margin-top: 0; }
.nowdur + .psum { margin-top: 14px; }
.row.tgls { display: flex; flex-wrap: wrap; gap: 8px 22px; }
/* eigener Name im Monatsplan, in der Liste und im Pausenplan als Pille */
.pnm { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.mt thead th.pcol.me .pnm, .prow.me .pnm, .tl-row.me .tl-nm .nm { padding: 2px 10px; border-radius: 999px; background: var(--focus); color: var(--surface); }
.mt thead th.pcol.me .pnm { margin-left: -6px; }

/* Monatsplan: Griff zwischen Mitarbeitern und rechtem Block */
.mt thead th.gapc { overflow: visible; }
.rsz { position: absolute; top: 0; bottom: 0; left: -6px; right: -6px; z-index: 6; cursor: col-resize; touch-action: none; }
.rsz::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 26px; margin: -13px 0 0 -2px; border-radius: 2px; background: var(--line2); transition: background-color .15s; }
.rsz:hover::after, .rsz:focus-visible::after, html.rszing .rsz::after { background: var(--red); }
html.rszing, html.rszing * { cursor: col-resize !important; user-select: none !important; }
.mt td.cnt { overflow: hidden; }
.cnt span { min-width: min(30px, calc(100% - 2px)); }
.uli .tgl.ph { visibility: hidden; width: 104px; }

/* Benutzerliste: Auswahl des Mitarbeiters */
.uli .nm .um { margin-left: 4px; font-weight: 400; color: var(--ink2); }
#uadd .setgrid + .setgrid { margin-top: 12px; }
/* Feiertage weiterer Länder: Kürzel am Tag, Liste in den Einstellungen */
.dbadge .hxs { display: flex; flex-wrap: wrap; gap: 3px; max-width: 72px; margin: 3px 0 0 -2px; }
.hx { display: inline-block; padding: 0 5px; border-radius: 5px; background: var(--s3); color: var(--ink2); font-size: 10.5px; font-weight: 700; line-height: 16px; letter-spacing: .02em; white-space: nowrap; }
.mli.hxli { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.hxli .nm { flex: 1 1 160px; min-width: 0; padding-left: 4px; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.hxli .nm .hx { margin-right: 8px; vertical-align: 2px; }
.hxli .nm small { display: block; font-size: 13px; font-weight: 500; color: var(--ink2); }
.hxli select.inp { flex: 0 1 230px; width: auto; min-width: 0; min-height: 40px; }
.hxlist:empty { display: none; }
.hoadd { margin-top: 12px; }
/* Änderungsprotokoll: nach Tagen gruppiert, je Zeile Uhrzeit, wer/was/wo, alt → neu, Zurücksetzen */
.lgf { margin-bottom: 4px; }
.lgnone { margin: 14px 2px 4px; color: var(--ink2); }
.lgd { margin: 20px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ink2); }
.lgl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lgi { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.lgi.done { opacity: .6; }
.lgt { align-self: start; padding-top: 2px; font-size: 13px; font-weight: 700; color: var(--ink2); font-variant-numeric: tabular-nums; }
.lgm { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.lgh { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: var(--ink2); }
.lgh b { color: var(--ink); }
.lgh .tag { height: 20px; margin: 0; font-size: 12px; }
.lgc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.lga { color: var(--ink3); font-weight: 700; }
.lgv { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 26px; padding: 2px 9px; border-left: 3px solid var(--cd, var(--line2)); border-radius: 7px; background: color-mix(in srgb, var(--cb, var(--s2)) 40%, var(--surface)); font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.lgv i { font-style: normal; font-weight: 500; color: var(--ink2); }
.lgv.none { padding-left: 0; border-left-color: transparent; background: transparent; color: var(--ink3); font-weight: 500; font-style: italic; }
.lgc .lgv:first-child:not(.none) { opacity: .72; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.lgv.lgn { border-left-color: var(--dnd); background: var(--dnb); color: var(--dni); }
.tag.mute { background: transparent; color: var(--ink3); box-shadow: inset 0 0 0 1px var(--line); }
.tag.rv .ic { width: 12px; height: 12px; margin-right: 4px; }
.lgi .btn.sm .ic { width: 15px; height: 15px; margin-right: 5px; }
@media (max-width: 640px) { .lgi { grid-template-columns: 42px minmax(0, 1fr); } .lgi > :last-child { grid-column: 2; justify-self: start; } }
/* Warnung bei offenen Filialen: Länder als Schalter */
.wochips { display: flex; flex-wrap: wrap; gap: 8px; }
.wochip { gap: 8px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.wochip[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--focus); }
.wochip[aria-pressed="false"] { opacity: .5; }
.wochip:disabled { cursor: default; opacity: .4; box-shadow: none; }
/* eigenes Kontextmenü */
.ctxm { position: fixed; z-index: 70; min-width: 210px; max-width: 290px; padding: 6px; border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .22), 0 0 0 1px var(--line); }
.ctxm[hidden] { display: none; }
.ctxm .cxh { padding: 6px 10px 5px; font-size: 12.5px; font-weight: 700; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctxm hr { height: 1px; margin: 5px 4px; border: 0; background: var(--line); }
.ctxm hr + hr, .ctxm .cxh + hr { display: none; }
.ctxm button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.ctxm button .ic { flex: none; width: 18px; height: 18px; color: var(--ink2); }
.ctxm button span.ic { display: inline-block; }
.ctxm button:hover, .ctxm button:focus-visible { background: var(--hover); outline: none; }
.ctxm button.bad, .ctxm button.bad .ic { color: var(--bad-ink); }
.ctxm button:disabled { opacity: .45; cursor: default; background: transparent; }
/* Infospalte links neben den Tagen: breit mit Text, schmal nur Kürzel (Karte beim Drüberfahren) */
.mt .ixc, .mt thead th.ixh { position: sticky; left: 0; z-index: 2; border-right: 1px solid var(--line); }
.mt thead th.ixh { z-index: 6; color: var(--ink2); font-weight: 500; text-align: left; padding-left: 12px; }
.mt.ix .cday { left: var(--ixw); }
.mt td.ixc { padding: 6px 8px; vertical-align: top; text-align: left; background: var(--surface); }
.mt tr.we > td.ixc { background: var(--we); }
.mt tr.today > td.ixc { background: var(--today); }
.ixz { position: absolute; top: 0; bottom: 0; right: 0; width: 12px; z-index: 6; cursor: col-resize; touch-action: none; }
.ixz::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 26px; margin: -13px 0 0 -2px; border-radius: 2px; background: var(--line2); transition: background-color .15s; }
.ixz:hover::after, .ixz:focus-visible::after, html.rszing .ixz:active::after { background: var(--red); }
.ixw { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.ixi { display: flex; align-items: flex-start; gap: 6px; max-width: 100%; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.ixi .cc { margin-top: 0; }
.ixi .nm { min-width: 0; overflow-wrap: anywhere; } /* lieber umbrechen als abschneiden */
.cc { flex: none; padding: 0 5px; border-radius: 5px; font-size: 10.5px; font-weight: 800; line-height: 17px; letter-spacing: .02em; color: #fff; background: var(--ink2); }
.cc-DE { background: var(--ink); color: var(--surface); } .cc-AT { background: #c8102e; } .cc-CH { background: var(--surface); color: #d52b1e; box-shadow: inset 0 0 0 1.5px #d52b1e; } .cc-NL { background: #e06c00; }
.ixnote { display: block; max-width: 100%; padding: 1px 7px; border-radius: 6px; background: var(--dnb); color: var(--dni); font-size: 12px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.mt.ix-s .ixw { flex-direction: row; flex-wrap: wrap; }
.mt.ix-s .ixi .nm { display: none; }
.mt.ix-s .ixnote { padding: 0 5px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* was am Tag fehlt (Unterbesetzung, Dienst bei offenen Filialen): rot, ausgeschrieben; schmal nur das ! */
.ixwarn { display: flex; align-items: flex-start; gap: 6px; max-width: 100%; padding: 2px 7px 2px 4px; border-radius: 6px; background: var(--bad-bg); color: var(--bad-ink); font-size: 12px; font-weight: 700; line-height: 1.35; }
.ixwarn b { flex: none; display: inline-grid; place-items: center; width: 15px; height: 15px; margin-top: 1px; border-radius: 50%; background: var(--bad-dot); color: #fff; font-size: 10.5px; }
.ixwarn span { min-width: 0; overflow-wrap: anywhere; }
.mt.ix-s .ixwarn { padding: 2px; }
.mt.ix-s .ixwarn span { display: none; }
.ixtip .ixwarn span { display: inline; }
.mt.ix-s thead th.ixh { padding-left: 8px; }
.ixtip { position: fixed; z-index: 60; max-width: 300px; padding: 10px 12px; border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: 0 6px 24px rgba(0, 0, 0, .22), 0 0 0 1px var(--line); pointer-events: none; }
.ixtip > b { display: block; margin-bottom: 6px; font-size: 13px; }
.ixtip .ixw { gap: 5px; }
.ixtip .ixi, .ixtip .ixnote { white-space: normal; }

/* Schriften der Designs Glas (Manrope), Neo-Brutalismus (Space Grotesk, Archivo Black), Zen (Shippori Mincho, Zen Kaku Gothic New) – SIL Open Font License 1.1; geladen erst, wenn das Design gewählt ist */
@font-face { font-family: "Archivo Black"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/archivo-black-4b6914.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/manrope-938c6e.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/manrope-938c6e.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/manrope-938c6e.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/manrope-938c6e.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/manrope-938c6e.woff2) format("woff2"); }
@font-face { font-family: "Shippori Mincho"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/shippori-mincho-7127a9.woff2) format("woff2"); }
@font-face { font-family: "Shippori Mincho"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/shippori-mincho-d7737a.woff2) format("woff2"); }
@font-face { font-family: "Shippori Mincho"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/shippori-mincho-83ef3c.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/space-grotesk-87c506.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/space-grotesk-87c506.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/space-grotesk-87c506.woff2) format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/zen-kaku-gothic-new-04a721.woff2) format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/zen-kaku-gothic-new-2bf423.woff2) format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/zen-kaku-gothic-new-0f3fa1.woff2) format("woff2"); }
/* ===================== Designs (pro Konto): Glas, Neo-Brutalismus, Zen ===================== */
/* Standard hat kein eigenes Regelwerk. Glas gibt es hell und dunkel, Neo-Brutalismus und Zen nur hell. --acc = Akzentfarbe (Glas). */
:root { --acc: #ff3b5c; }

/* ---------- Glas ---------- */
:root[data-look="glass"] {
  --fb: Manrope, -apple-system, "Segoe UI", Arial, sans-serif; --fh: Manrope, -apple-system, "Segoe UI", Arial, sans-serif;
  --red: var(--acc); --red-h: color-mix(in srgb, var(--acc) 85%, #000); --on-red: #fff; --red-soft: color-mix(in srgb, var(--acc) 14%, #fff); --red-ink: color-mix(in srgb, var(--acc) 78%, #000);
  --bg: #eef0fb; --surface: rgba(255, 255, 255, .64); --s2: rgba(255, 255, 255, .5); --s3: rgba(255, 255, 255, .8); --we: rgba(255, 255, 255, .34);
  --today: color-mix(in srgb, var(--acc) 12%, rgba(255, 255, 255, .78)); --hover: rgba(255, 255, 255, .78); --press: rgba(255, 255, 255, .92); --zebra: rgba(255, 255, 255, .3);
  --shade: transparent; --line: rgba(60, 70, 120, .1); --line2: rgba(60, 70, 120, .2); --rowline: rgba(60, 70, 120, .13); --colline: rgba(60, 70, 120, .07); --wkgap: transparent; --wkrow: rgba(255, 255, 255, .32);
  --ink: #18203a; --ink2: #4a5578; --ink3: #7a84a6; --sel: #18203a; --on-sel: #fff; --seg-on: rgba(255, 255, 255, .96);
  --focus: var(--acc); --ring: color-mix(in srgb, var(--acc) 30%, transparent); --track: rgba(255, 255, 255, .45); --scrim: rgba(40, 50, 100, .22);
  --r1: 10px; --r2: 14px; --r3: 22px; --r4: 28px;
  --sh1: 0 8px 30px rgba(60, 70, 140, .1); --sh2: 0 12px 34px rgba(60, 70, 140, .14); --sh3: 0 30px 80px rgba(40, 50, 110, .28);
  --glass: rgba(255, 255, 255, .55); --glassb: rgba(255, 255, 255, .75); --glass-solid: rgba(250, 250, 255, .93);
}
:root[data-look="glass"][data-theme="dark"] {
  --red-soft: color-mix(in srgb, var(--acc) 24%, #161a2a); --red-ink: color-mix(in srgb, var(--acc) 55%, #fff);
  --bg: #0b0d18; --surface: rgba(32, 36, 56, .58); --s2: rgba(255, 255, 255, .06); --s3: rgba(255, 255, 255, .11); --we: rgba(255, 255, 255, .02);
  --today: color-mix(in srgb, var(--acc) 18%, rgba(22, 24, 40, .75)); --hover: rgba(255, 255, 255, .08); --press: rgba(255, 255, 255, .13); --zebra: rgba(255, 255, 255, .03);
  --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .16); --rowline: rgba(255, 255, 255, .08); --colline: rgba(255, 255, 255, .04); --wkrow: rgba(255, 255, 255, .04);
  --ink: #eef0f8; --ink2: #a7aec6; --ink3: #737b96; --sel: #eef0f8; --on-sel: #11131e; --seg-on: rgba(255, 255, 255, .16);
  --track: rgba(255, 255, 255, .12); --scrim: rgba(0, 0, 0, .5);
  --sh1: 0 8px 30px rgba(0, 0, 0, .3); --sh2: 0 12px 34px rgba(0, 0, 0, .38); --sh3: 0 30px 80px rgba(0, 0, 0, .6);
  --glass: rgba(30, 34, 52, .5); --glassb: rgba(255, 255, 255, .1); --glass-solid: rgba(22, 25, 40, .94);
}
:root[data-look="glass"] body {
  background: radial-gradient(1100px 700px at 6% -8%, color-mix(in srgb, var(--acc) 30%, transparent), transparent 62%), radial-gradient(900px 700px at 96% 0%, #b9e6ff, transparent 60%),
    radial-gradient(1000px 800px at 50% 112%, #d7c9ff, transparent 60%), linear-gradient(135deg, #eef0ff, #fbf3f8) fixed;
  background-attachment: fixed;
}
:root[data-look="glass"][data-theme="dark"] body {
  background: radial-gradient(1000px 600px at 8% -10%, color-mix(in srgb, var(--acc) 34%, transparent), transparent 62%), radial-gradient(900px 600px at 96% -6%, rgba(70, 120, 255, .25), transparent 60%),
    radial-gradient(1000px 800px at 50% 115%, rgba(140, 90, 255, .2), transparent 60%), linear-gradient(160deg, #0d1020, #0a0b14) fixed;
  background-attachment: fixed;
}
:root[data-look="glass"] .h, :root[data-look="glass"] .vst .vsl { font-style: normal; text-transform: none; letter-spacing: -.02em; font-weight: 800; }
:root[data-look="glass"] .brand { background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 80%, #fff), var(--acc)); border-radius: 12px; box-shadow: 0 4px 14px color-mix(in srgb, var(--acc) 40%, transparent); }
:root[data-look="glass"] .top, :root[data-look="glass"] .botnav { background: var(--glass); border-color: var(--glassb); }
:root[data-look="glass"] .sbox, :root[data-look="glass"] .tile, :root[data-look="glass"] .gate-card, :root[data-look="glass"] .mframe, :root[data-look="glass"] .ctxm, :root[data-look="glass"] .toast {
  -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); box-shadow: var(--sh1), inset 0 0 0 1px var(--glassb);
}
:root[data-look="glass"] .ctxm, :root[data-look="glass"] dialog.sheet { background: var(--glass-solid); }
:root[data-look="glass"] dialog.sheet { -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5); }
:root[data-look="glass"] .btn.line, :root[data-look="glass"] .ibtn { background: var(--glass); box-shadow: inset 0 0 0 1px var(--glassb), 0 2px 8px rgba(60, 70, 140, .08); }
:root[data-look="glass"] .monthnav { background: var(--glass); box-shadow: inset 0 0 0 1px var(--glassb); }
:root[data-look="glass"] .mframe { background: rgba(255, 255, 255, .3); }
:root[data-look="glass"][data-theme="dark"] .mframe { background: rgba(20, 22, 38, .4); }
:root[data-look="glass"] table.mt { background: transparent; }
:root[data-look="glass"] .mt thead th, :root[data-look="glass"] .mt .cday, :root[data-look="glass"] .mt .ixc { background: var(--glass-solid); }
:root[data-look="glass"] .mt tr.today > td, :root[data-look="glass"] .mt tr.today > th { background: var(--today); }
:root[data-look="glass"] .mt tbody tr.gap td, :root[data-look="glass"] .mt .gapc { background: transparent; }
:root[data-look="glass"] .tl-row.me .tl-nm .nm, :root[data-look="glass"] .prow.me .pnm,
:root[data-look="glass"] .mt thead th.pcol.me .pnm { background: var(--acc); color: #fff; box-shadow: 0 3px 10px color-mix(in srgb, var(--acc) 40%, transparent); }
:root[data-look="glass"] .wk-in::before { background: var(--ink3); }
:root[data-look="glass"] .mt tr.wk.cur .wk-in::before { background: var(--acc); }
:root[data-look="glass"] .cell.cs-b, :root[data-look="glass"] .pcell.cs-b { position: relative; padding-left: 17px; border: 0; border-radius: 13px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 2px 8px rgba(60, 70, 140, .07); filter: none; }
:root[data-look="glass"] .cell.cs-b:hover { background: rgba(255, 255, 255, .9); }
:root[data-look="glass"][data-theme="dark"] .cell.cs-b, :root[data-look="glass"][data-theme="dark"] .pcell.cs-b { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
:root[data-look="glass"][data-theme="dark"] .cell.cs-b:hover { background: rgba(255, 255, 255, .11); }
:root[data-look="glass"] .cell.cs-b::before, :root[data-look="glass"] .pcell.cs-b::before { content: ""; position: absolute; left: 7px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--cd, var(--ink3)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--cd, var(--ink3)) 22%, transparent); }
:root[data-look="glass"] .pcell.cs-b::before { top: 50%; margin-top: -4px; }
/* Glas-Vollfläche: getönte Glasfläche in der Statusfarbe, Lichtkante oben, weicher farbiger Schatten */
:root[data-look="glass"] .cell.cs-c, :root[data-look="glass"] .pcell.cs-c { border: 0; border-radius: 13px; color: var(--ci, var(--ink)); filter: none;
  background: linear-gradient(150deg, color-mix(in srgb, var(--cb, var(--s2)) 78%, #fff) 0%, color-mix(in srgb, var(--cb, var(--s2)) 82%, transparent) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .9), 0 3px 10px color-mix(in srgb, var(--cd, var(--ink3)) 16%, transparent); }
:root[data-look="glass"] .cell.cs-c:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), inset 0 1px 0 #fff, 0 5px 16px color-mix(in srgb, var(--cd, var(--ink3)) 26%, transparent); }
:root[data-look="glass"][data-theme="dark"] .cell.cs-c, :root[data-look="glass"][data-theme="dark"] .pcell.cs-c { color: var(--ink);
  background: linear-gradient(150deg, color-mix(in srgb, var(--cd, var(--ink3)) 46%, rgba(22, 24, 42, .55)) 0%, color-mix(in srgb, var(--cd, var(--ink3)) 28%, rgba(22, 24, 42, .55)) 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cd, var(--ink3)) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, .12), 0 3px 12px color-mix(in srgb, var(--cd, var(--ink3)) 18%, transparent); }
:root[data-look="glass"][data-theme="dark"] .cell.cs-c:hover { background: linear-gradient(150deg, color-mix(in srgb, var(--cd, var(--ink3)) 56%, rgba(22, 24, 42, .55)) 0%, color-mix(in srgb, var(--cd, var(--ink3)) 36%, rgba(22, 24, 42, .55)) 100%); }
:root[data-look="glass"][data-theme="dark"] .cell.cs-c .l2, :root[data-look="glass"][data-theme="dark"] .pcell.cs-c .l2 { color: var(--ink2); opacity: 1; }
:root[data-look="glass"] .cell .l1 { font-weight: 700; }
:root[data-look="glass"] .tabs-ind { background: var(--acc); }
:root[data-look="glass"] .sh-head, :root[data-look="zen"] .sh-head { gap: 8px; }
:root[data-look="glass"] .botnav button[aria-current="page"] .ni { background: color-mix(in srgb, var(--acc) 18%, transparent); color: var(--acc); }
@media (min-width: 900px) {
  :root[data-look="glass"] .top { top: 10px; margin: 10px 16px 0; border-radius: 20px; border: 0; box-shadow: var(--sh1), inset 0 0 0 1px var(--glassb); }
  :root[data-look="glass"] .tabs { align-items: center; gap: 4px; }
  :root[data-look="glass"] .tabs button { height: 38px; padding: 0 16px; border-radius: 12px; }
  :root[data-look="glass"] .tabs button[aria-current="page"] { background: var(--seg-on); box-shadow: 0 2px 10px rgba(60, 70, 140, .12); }
  :root[data-look="glass"] .tabs-ind { display: none; }
  :root[data-look="glass"] .tbtn { border-radius: 12px; }
  :root[data-look="glass"] .mframe { height: calc(100vh - var(--hdr) - 72px - 34px); height: calc(100dvh - var(--hdr) - 72px - 34px); }
}

/* ---------- Neo-Brutalismus ---------- */
:root[data-look="brut"] {
  --fb: "Space Grotesk", Arial, sans-serif; --fh: "Archivo Black", "Arial Black", Arial, sans-serif;
  --bk: #111111; --bg: #fff4d6; --surface: #ffffff; --s2: #fff4d6; --s3: #ffe9a8; --we: #fbf7ec; --today: #fffb92; --hover: #fff4d6; --press: #ffe9a8; --zebra: #fffaeb;
  --shade: transparent; --line: var(--bk); --line2: var(--bk); --rowline: var(--bk); --colline: var(--bk); --wkgap: #fff4d6; --wkrow: var(--bk);
  --ink: #111111; --ink2: #333333; --ink3: #666666; --red: #ff4d2e; --red-h: #e8391b; --on-red: #111111; --red-soft: #ffd2c4; --red-ink: #b82208;
  --sel: #111111; --on-sel: #ffffff; --seg-on: #ffe45c; --focus: #111111; --ring: rgba(17, 17, 17, .25); --track: #fff4d6; --scrim: rgba(17, 17, 17, .45);
  --r1: 8px; --r2: 10px; --r3: 14px; --r4: 16px;
  --sh1: 0 0 0 2.5px var(--bk), 4px 4px 0 var(--bk); --sh2: 0 0 0 2.5px var(--bk), 5px 5px 0 var(--bk); --sh3: 0 0 0 3px var(--bk), 8px 8px 0 var(--bk);
  --c-gelb: #ffe45c; --c-gruen: #7ee2a0; --c-oliv: #cfe27a; --c-tuerkis: #6fe0d0; --c-hellblau: #9ad8ff; --c-blau: #8ec5ff; --c-indigo: #aab4ff; --c-violett: #c7a6ff;
  --c-pink: #ffa3d1; --c-rot: #ff8a7a; --c-orange: #ffb35c; --c-sand: #ffd98a; --c-braun: #d9b38c; --c-grau: #e2e2e2;
  --sh-frueh: #ffe45c; --sh-frueh-ink: #111111; --sh-spaet: #c7a6ff; --sh-spaet-ink: #111111;
}
:root[data-look="brut"] .h, :root[data-look="brut"] .vst .vsl { font-style: normal; font-weight: 400; letter-spacing: 0; }
:root[data-look="brut"] .dv-title { font-size: 20px; }
:root[data-look="brut"] .brand { background: #ffe45c; color: #111; border: 3px solid var(--bk); border-radius: 10px; box-shadow: 3px 3px 0 var(--bk); transform: rotate(-2deg); }
:root[data-look="brut"] .top, :root[data-look="brut"] .botnav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--bk); border-width: 3px; }
:root[data-look="brut"] .sbox, :root[data-look="brut"] .tile, :root[data-look="brut"] .gate-card, :root[data-look="brut"] .ctxm, :root[data-look="brut"] .toast, :root[data-look="brut"] .tl { box-shadow: var(--sh1); }
:root[data-look="brut"] dialog.sheet { box-shadow: var(--sh3); }
:root[data-look="brut"] .btn, :root[data-look="brut"] .ibtn, :root[data-look="brut"] .tbtn, :root[data-look="brut"] .inp { border: 2.5px solid var(--bk); box-shadow: 3px 3px 0 var(--bk); font-weight: 700; }
:root[data-look="brut"] .btn.line, :root[data-look="brut"] .ibtn { background: var(--surface); }
:root[data-look="brut"] .btn.primary { background: var(--red); color: #111; }
:root[data-look="brut"] .seg { border: 2.5px solid var(--bk); background: var(--surface); }
:root[data-look="brut"] .seg button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--bk); }
:root[data-look="brut"] .monthnav { gap: 10px; background: none; box-shadow: none; }
:root[data-look="brut"] .wnav { gap: 8px; }
:root[data-look="brut"] .sh-head { gap: 10px; padding-right: 18px; }
:root[data-look="brut"] .seg button, :root[data-look="brut"] .days .dbtn { border: 0; box-shadow: none; }
:root[data-look="brut"] .mframe { box-shadow: var(--sh2); }
:root[data-look="brut"] .mt th, :root[data-look="brut"] .mt td { border-bottom: 2px solid var(--bk); }
:root[data-look="brut"] .mt thead th { border-bottom: 3px solid var(--bk); font-weight: 700; }
:root[data-look="brut"] .mt .pcol { border-left: 2px solid var(--bk); }
:root[data-look="brut"] .mt tbody tr:not(.wk, .gap) > :not(.gapc) { border-bottom: 2px solid var(--bk); }
:root[data-look="brut"] .mt tbody tr.today > :not(.gapc), :root[data-look="brut"] .mt tbody tr:has(+ tr.today) > :not(.gapc) { border-bottom-color: var(--bk); }
:root[data-look="brut"] .mt tbody tr.gap td, :root[data-look="brut"] .mt .gapc { border: 0; }
:root[data-look="brut"] .mt thead th.pcol.me .pnm { background: var(--red); color: #111; border: 2px solid var(--bk); border-radius: 8px; }
:root[data-look="brut"] .mt tr.wk td:not(.gapc) { border-bottom: 0; }
:root[data-look="brut"] .wk-in .h { color: var(--bg); }
:root[data-look="brut"] .wk-in::before { width: 12px; height: 12px; border-radius: 50%; background: #ffe45c; }
:root[data-look="brut"] .wk-in .btn { background: #ffe45c; color: #111; border: 2px solid var(--bg); box-shadow: none; }
:root[data-look="brut"] .mt tr.today .dbadge .dt { background: var(--bk); color: var(--bg); border-radius: 6px; }
:root[data-look="brut"] .cell.cs-b, :root[data-look="brut"] .pcell.cs-b { border: 2px solid var(--bk); border-radius: 8px; background: var(--cb, var(--s2)); color: var(--ci, #111); box-shadow: 2px 2px 0 var(--bk); filter: none; }
:root[data-look="brut"] .cell.cs-b:hover { background: color-mix(in srgb, var(--cb, var(--s2)) 82%, #fff); }
:root[data-look="brut"] .cell .l1 { font-weight: 700; }
:root[data-look="brut"] .cell.cs-b .l2, :root[data-look="brut"] .pcell.cs-b .l2 { color: inherit; opacity: .78; }
:root[data-look="brut"] .sh { border: 2px solid #111; border-radius: 6px; font-weight: 700; }
:root[data-look="brut"] .cnt span { border: 2px solid var(--bk); border-radius: 8px; }
:root[data-look="brut"] .tabs-ind { display: none; }
:root[data-look="brut"] .botnav button[aria-current="page"] .ni { background: #ffe45c; color: #111; box-shadow: inset 0 0 0 2px #111; }
@media (min-width: 900px) {
  :root[data-look="brut"] .wnav, :root[data-look="brut"] .days { box-shadow: var(--sh1); }
  :root[data-look="brut"] .wnav .ibtn, :root[data-look="brut"] .wnav .btn { border: 0; box-shadow: none; }
  :root[data-look="brut"] .wnav .btn { background: var(--s3); }
  :root[data-look="brut"] .wnav .ibtn:hover, :root[data-look="brut"] .wnav .btn:hover { background: var(--hover); }
  :root[data-look="brut"] .tabs { align-items: center; gap: 10px; }
  :root[data-look="brut"] .tabs button { height: 40px; padding: 0 16px; border: 2.5px solid var(--bk); border-radius: 10px; background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 3px 3px 0 var(--bk); }
  :root[data-look="brut"] .tabs button[aria-current="page"] { background: var(--bk); color: var(--bg); box-shadow: 3px 3px 0 var(--red); }
}

/* Schalter: Glas mit sichtbarer Spur und Akzentfarbe, Neo-Brutalismus mit Rahmen ohne Versatz */
:root[data-look="glass"] .tgl .trk { background: rgba(60, 70, 120, .18); box-shadow: inset 0 1px 2px rgba(40, 50, 100, .12); }
:root[data-look="glass"][data-theme="dark"] .tgl .trk { background: rgba(255, 255, 255, .16); }
:root[data-look="glass"] .tgl .knb { background: #fff; box-shadow: 0 1px 4px rgba(20, 30, 70, .3); }
:root[data-look="glass"] .tgl[aria-checked="true"] .trk { background: var(--acc); }
:root[data-look="brut"] .tgl .trk { background: #fff; box-shadow: inset 0 0 0 2.5px #111; }
:root[data-look="brut"] .tgl .knb { background: #111; box-shadow: none; transform: scale(.8); }
:root[data-look="brut"] .tgl[aria-checked="true"] .trk { background: #7ee2a0; }
:root[data-look="brut"] .tgl[aria-checked="true"] .knb { transform: translateX(18px) scale(.8); }

/* ---------- Zen (nur hell) ---------- */
:root[data-look="zen"] .tgl .knb { background: #fff; box-shadow: 0 0 0 1px #cfc6b5, 0 1px 3px rgba(60, 50, 30, .15); }
:root[data-look="zen"] {
  --fb: "Zen Kaku Gothic New", -apple-system, "Segoe UI", Arial, sans-serif; --fh: "Shippori Mincho", Georgia, serif;
  --bg: #f3efe6; --surface: #fbf9f4; --s2: #f1ece2; --s3: #e7e0d2; --we: #f6f2ea; --today: #fbeee9; --hover: #f4efe6; --press: #ebe4d6; --zebra: #f6f2ea;
  --shade: transparent; --line: #e6dfd2; --line2: #cfc6b5; --rowline: #e1d9ca; --colline: #ece6da; --wkgap: #f3efe6; --wkrow: #f3efe6;
  --ink: #23201c; --ink2: #6d675e; --ink3: #a39b8f; --red: #c8402a; --red-h: #b23620; --on-red: #fbf9f4; --red-soft: #f6e1da; --red-ink: #b23620;
  --sel: #23201c; --on-sel: #fbf9f4; --seg-on: #fbf9f4; --focus: #3d5a6c; --ring: rgba(61, 90, 108, .25); --track: #ebe4d6; --scrim: rgba(35, 32, 28, .35);
  --r1: 3px; --r2: 4px; --r3: 6px; --r4: 8px;
  --sh1: 0 1px 0 #e1d9ca; --sh2: 0 6px 24px rgba(60, 50, 30, .08); --sh3: 0 24px 60px rgba(60, 50, 30, .2);
}
:root[data-look="zen"] .h, :root[data-look="zen"] .vst .vsl { font-style: normal; text-transform: none; letter-spacing: .08em; font-weight: 700; }
:root[data-look="zen"] .brand { position: relative; padding-left: 40px; background: transparent; color: var(--ink); letter-spacing: .12em; }
:root[data-look="zen"] .brand::before { content: attr(data-ini); position: absolute; left: 0; top: 50%; width: 30px; height: 30px; margin-top: -15px; display: grid; place-items: center; border-radius: 4px; background: var(--red); color: var(--on-red); font: 700 13px/1 var(--fh); letter-spacing: 0; }
:root[data-look="zen"] .top, :root[data-look="zen"] .botnav { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
:root[data-look="zen"] .sbox, :root[data-look="zen"] .tile, :root[data-look="zen"] .gate-card { box-shadow: inset 0 0 0 1px var(--line); }
:root[data-look="zen"] .mframe { box-shadow: inset 0 0 0 1px var(--rowline); }
:root[data-look="zen"] .tabs button { letter-spacing: .14em; font-weight: 500; }
:root[data-look="zen"] .tabs-ind { height: 2px; border-radius: 0; }
:root[data-look="zen"] .btn.line, :root[data-look="zen"] .ibtn { background: transparent; box-shadow: inset 0 0 0 1px var(--line2); }
:root[data-look="zen"] .btn { letter-spacing: .1em; }
:root[data-look="zen"] .monthnav { background: none; box-shadow: none; gap: 6px; }
:root[data-look="zen"] .mt thead th { font-weight: 500; letter-spacing: .12em; color: var(--ink2); }
:root[data-look="zen"] .mt thead th .pnm { font-family: var(--fh); font-weight: 700; color: var(--ink); letter-spacing: .06em; }
:root[data-look="zen"] .mt thead th.pcol.me .pnm { background: transparent; color: var(--red-ink); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
:root[data-look="zen"] .mt tbody tr.today > :not(.gapc), :root[data-look="zen"] .mt tbody tr:has(+ tr.today) > :not(.gapc) { border-bottom-color: #e8c4b9; }
:root[data-look="zen"] .wk-in::before { width: 18px; height: 1px; border-radius: 0; background: var(--ink3); margin-right: 4px; }
:root[data-look="zen"] .mt tr.wk.cur .wk-in::before { height: 2px; background: var(--red); }
:root[data-look="zen"] .wk-in .h { letter-spacing: .14em; }
:root[data-look="zen"] .wk-in .btn { background: transparent; box-shadow: none; color: var(--ink2); }
:root[data-look="zen"] .dbadge .wd { font-family: var(--fh); font-weight: 800; }
:root[data-look="zen"] .mt tr.today .dbadge .dt { border-radius: 3px; }
:root[data-look="zen"] .cell.cs-b, :root[data-look="zen"] .pcell.cs-b { border: 0; border-left: 2px solid var(--cd, var(--line2)); border-radius: 2px; background: color-mix(in srgb, var(--cb, var(--s2)) 30%, var(--surface)); filter: none; }
:root[data-look="zen"] .cell.cs-b:hover { background: color-mix(in srgb, var(--cb, var(--s2)) 48%, var(--surface)); }
:root[data-look="zen"] .cell .l1 { font-weight: 500; letter-spacing: .04em; }
:root[data-look="zen"] .sh { min-width: 20px; padding: 0 6px; justify-content: center; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px currentColor; font-family: var(--fh); font-weight: 800; }
:root[data-look="zen"] .sh-frueh { color: #a87a00; } :root[data-look="zen"] .sh-spaet { color: #4b3fa8; }
:root[data-look="zen"] .cnt span, :root[data-look="zen"] .psel { font-family: var(--fh); }
:root[data-look="zen"] .botnav button[aria-current="page"] .ni { background: var(--red-soft); color: var(--red); }

/* ---------- Auswahl unter Darstellung: kleine Vorschau je Design (unabhängig vom gewählten Design gezeichnet) ---------- */
.lkopts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.lkp { position: relative; display: flex; flex-direction: column; gap: 6px; height: 104px; padding: 7px; border-radius: 8px; overflow: hidden; pointer-events: none; font: 600 9.5px/1 Arial, sans-serif; }
.lkp-top { display: flex; align-items: center; gap: 5px; height: 16px; padding: 0 5px; border-radius: 5px; }
.lkp-br { display: grid; place-items: center; min-width: 18px; height: 11px; padding: 0 3px; border-radius: 3px; font-size: 7px; font-weight: 800; letter-spacing: .02em; }
.lkp-top i { width: 18px; height: 4px; border-radius: 2px; opacity: .35; background: currentColor; }
.lkp-top i.on { opacity: 1; }
.lkp-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; flex: 1; }
.lkp-c { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 2px; padding: 5px 4px 0 6px; border-radius: 4px; overflow: hidden; white-space: nowrap; }
.lkp-c b { overflow: hidden; text-overflow: ellipsis; }
.lkp-c em { flex: none; font-style: normal; font-size: 7px; padding: 1px 3px; border-radius: 6px; }
.lkp .lc-gruen { --c: #27a056; --cl: #c3e9cd; --cv: #7ee2a0; } .lkp .lc-blau { --c: #2b77d6; --cl: #c4dbf9; --cv: #8ec5ff; }
.lkp .lc-orange { --c: #e2861a; --cl: #fbdcb5; --cv: #ffb35c; } .lkp .lc-rot { --c: #d9363e; --cl: #f6c6c8; --cv: #ff8a7a; }
.lkp .lkp-sF { background: #ffec6e; color: #4a4000; } .lkp .lkp-sS { background: #d7d1fb; color: #2e238e; }
/* Standard */
.lkp[data-l="std"] { background: #f3f4f6; color: #1c1f24; }
.lkp[data-l="std"] .lkp-top { background: #fff; } .lkp[data-l="std"] .lkp-br { background: #e2001a; color: #fff; font-style: italic; }
.lkp[data-l="std"] .lkp-c { background: color-mix(in srgb, var(--cl) 60%, #fff); box-shadow: inset 3px 0 0 var(--c); }
.lkp[data-l="std"][data-t="dark"] { background: #29303b; color: #e2e6ec; }
.lkp[data-l="std"][data-t="dark"] .lkp-top { background: #333b48; } .lkp[data-l="std"][data-t="dark"] .lkp-c { background: color-mix(in srgb, var(--c) 45%, #333b48); }
/* Glas */
.lkp[data-l="glass"] { color: #18203a; font-family: Manrope, Arial, sans-serif; background: radial-gradient(120px 80px at 0 0, color-mix(in srgb, var(--acc) 45%, transparent), transparent 70%), radial-gradient(120px 90px at 100% 0, #b9e6ff, transparent 70%), linear-gradient(135deg, #eef0ff, #fbf3f8); }
.lkp[data-l="glass"] .lkp-top { background: rgba(255, 255, 255, .6); border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8); }
.lkp[data-l="glass"] .lkp-br { background: var(--acc); color: #fff; border-radius: 4px; } .lkp[data-l="glass"] .lkp-top i.on { background: var(--acc); }
.lkp[data-l="glass"] .lkp-c { padding-left: 11px; border-radius: 6px; background: rgba(255, 255, 255, .72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95); }
.lkp[data-l="glass"] .lkp-c::before { content: ""; position: absolute; left: 4px; top: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--c); }
.lkp[data-l="glass"][data-t="dark"] { color: #eef0f8; background: radial-gradient(120px 80px at 0 0, color-mix(in srgb, var(--acc) 50%, transparent), transparent 70%), linear-gradient(160deg, #141833, #0a0b14); }
.lkp[data-l="glass"][data-t="dark"] .lkp-top { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.lkp[data-l="glass"][data-t="dark"] .lkp-c { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
/* Neo-Brutalismus */
.lkp[data-l="brut"] { background: #fff4d6; color: #111; font-family: "Space Grotesk", Arial, sans-serif; --b: #111; }
.lkp[data-l="brut"] .lkp-top { background: transparent; border-bottom: 2px solid var(--b); border-radius: 0; padding-bottom: 2px; }
.lkp[data-l="brut"] .lkp-br { background: #ffe45c; color: #111; border: 1.5px solid var(--b); box-shadow: 1.5px 1.5px 0 var(--b); transform: rotate(-3deg); }
.lkp[data-l="brut"] .lkp-c { background: var(--cv); color: #111; border: 1.5px solid var(--b); box-shadow: 1.5px 1.5px 0 var(--b); }
.lkp[data-l="brut"] .lkp-c em { border: 1px solid #111; }
/* Zen */
.lkp[data-l="zen"] { background: #f3efe6; color: #23201c; font-family: "Shippori Mincho", Georgia, serif; }
.lkp[data-l="zen"] .lkp-top { background: #fbf9f4; box-shadow: inset 0 -1px 0 #e1d9ca; border-radius: 2px; }
.lkp[data-l="zen"] .lkp-br { background: #c8402a; color: #fbf9f4; border-radius: 2px; } .lkp[data-l="zen"] .lkp-top i.on { background: #c8402a; height: 2px; }
.lkp[data-l="zen"] .lkp-c { background: color-mix(in srgb, var(--cl) 40%, #fbf9f4); box-shadow: inset 2px 0 0 var(--c); border-radius: 2px; font-family: "Zen Kaku Gothic New", Arial, sans-serif; font-weight: 500; }
.lkp[data-l="zen"] .lkp-c em { background: transparent; box-shadow: inset 0 0 0 1px currentColor; border-radius: 50%; color: #a87a00; }
/* Akzentfarben (Glas) */
.accs { display: flex; flex-wrap: wrap; gap: 10px; }
.acc { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--a); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); transition: box-shadow .15s, transform .15s; }
.acc:hover { transform: scale(1.08); }
.acc[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--a); }
/* ===================== Ende Designs ===================== */
