/* Keramico Kalender – ruhig, gut lesbar auf einem eigenen Bildschirm */
:root {
  --bg: #eef0ec; --surface: #ffffff; --surface-2: #f6f7f4; --line: #e1e5df; --line-strong: #cdd3cb;
  --ink: #1e2826; --ink-2: #5b6662; --ink-3: #8a948f;
  --side: #23302e; --side-2: #2e3d3a; --side-ink: #c9d3cf; --gold: #d9b772;
  --accent: #2f5f55; --accent-soft: #e3ece8;
  --warn: #a8560c; --warn-soft: #fbf0e3; --danger: #b42318; --danger-soft: #fbe9e7; --ok: #2f7a4f; --ok-soft: #e4f1e8;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 10px; --stunde: 64px; --kopf: 64px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- Anmeldung ---------- */
body.login { display: grid; place-items: center; background: var(--side); padding: 16px; }
.login-box { width: min(380px, 100%); background: var(--surface); border-radius: 14px; padding: 32px 28px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.45); }
.login-marke { font-size: 1.7rem; letter-spacing: -.02em; margin-bottom: 18px; }
.m-work { font-weight: 700; } .m-punkt { color: var(--gold); font-weight: 700; } .m-space { font-weight: 400; }
.login-text { color: var(--ink-2); margin: 0 0 16px; line-height: 1.5; }
.login-form { display: grid; gap: 12px; }
.login-form label { display: grid; gap: 5px; font-size: .88rem; color: var(--ink-2); }
.login-form input[type=password] { padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 1rem; }
.login-bleiben { display: flex !important; align-items: center; gap: 8px; }
.login-form button { padding: 11px; border: 0; border-radius: 8px; background: var(--side); color: #fff; font-weight: 600; transition: transform 140ms var(--ease); }
.login-form button:active { transform: scale(.98); }
.login-fehler { color: var(--danger); margin: 0; font-size: .9rem; }

/* ---------- Kopfband ---------- */
.kb { height: var(--kopf); display: flex; align-items: center; gap: 18px; padding: 0 max(18px, env(safe-area-inset-right, 0px)) 0 max(18px, env(safe-area-inset-left, 0px)); background: var(--side); color: #fff; }
.kb-zeit { display: flex; align-items: center; gap: 12px; flex: none; }
.kb-uhr { width: 44px; height: 44px; }
.u-rand { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.18); stroke-width: 1.5; }
.u-strich { stroke: rgba(255,255,255,.6); stroke-width: 2.4; stroke-linecap: round; }
.u-h { stroke: #fff; stroke-width: 5; stroke-linecap: round; }
.u-m { stroke: #fff; stroke-width: 3.4; stroke-linecap: round; }
.u-s { stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }
.u-mitte { fill: var(--gold); }
.kb-digital { display: flex; flex-direction: column; line-height: 1.1; }
.kb-digital strong { font-size: 1.45rem; font-weight: 300; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kb-digital span { font-size: .78rem; color: var(--side-ink); white-space: nowrap; }
.kb-nav { display: flex; align-items: center; gap: 6px; min-width: 0; }
.kb-pfeil, .kb-heute { border: 1px solid rgba(255,255,255,.18); background: transparent; color: #fff; border-radius: 8px; height: 34px; transition: background-color 150ms ease, transform 140ms var(--ease); }
.kb-pfeil { width: 34px; font-size: 1.3rem; line-height: 1; padding: 0 0 2px; }
.kb-heute { padding: 0 12px; font-weight: 600; }
.kb-pfeil:hover, .kb-heute:hover { background: var(--side-2); }
.kb-pfeil:active, .kb-heute:active { transform: scale(.96); }
.kb-titel { margin: 0 0 0 8px; font-size: 1.15rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-schnell { flex: 1; min-width: 140px; }
.kb-schnell input { width: 100%; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: #fff; outline: none; transition: background-color 150ms ease, border-color 150ms ease; }
.kb-schnell input::placeholder { color: rgba(255,255,255,.5); }
.kb-schnell input:focus { background: rgba(255,255,255,.12); border-color: var(--gold); }
.kb-ansicht { display: flex; background: rgba(255,255,255,.07); border-radius: 9px; padding: 3px; flex: none; }
.kb-ansicht button { border: 0; background: transparent; color: var(--side-ink); padding: 5px 12px; border-radius: 7px; font-weight: 500; }
.kb-ansicht button.is-aktiv { background: #fff; color: var(--side); font-weight: 600; }
.kb-aktionen { display: flex; gap: 8px; flex: none; }
.kb-neu { height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--gold); color: #2a2412; font-weight: 700; transition: transform 140ms var(--ease), filter 150ms ease; }
.kb-neu:hover { filter: brightness(1.05); }
.kb-neu:active { transform: scale(.97); }
.kb-icon { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: transparent; color: #fff; font-size: 1.05rem; }
.kb-icon:hover { background: var(--side-2); }

/* ---------- Grundlayout ---------- */
.kl { display: grid; grid-template-columns: 330px minmax(0, 1fr); height: calc(100vh - var(--kopf)); }
.ks { background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; padding: 14px 14px 20px; display: flex; flex-direction: column; gap: 18px; }
.ks-block h2 { margin: 0 0 8px; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.ks-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); font-size: .74rem; font-weight: 600; }
.ks-n:empty { display: none; }
.ks-erinnern .ks-n:not(:empty) { background: var(--warn-soft); color: var(--warn); }
.ks-heute, .ks-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ks-leer { color: var(--ink-3); font-size: .86rem; padding: 4px 2px; }

.ks-heute li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border-left: 3px solid var(--bar, var(--line-strong)); cursor: pointer; transition: background-color 150ms ease; }
.ks-heute li:hover { background: #eef1ec; }
.ks-heute li.is-vorbei { opacity: .55; }
.ks-heute li.is-jetzt { background: #fff8e8; box-shadow: inset 0 0 0 1px #ecd9a8; }
.ks-heute time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem; }
.ks-heute strong { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ks-heute small { display: block; color: var(--ink-2); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.er { position: relative; padding: 9px 34px 9px 11px; border-radius: 8px; background: var(--warn-soft); border: 1px solid #f0dcc0; }
.er.is-termin { background: var(--accent-soft); border-color: #cfe0d8; }
.er.is-vorbei { background: var(--danger-soft); border-color: #f1cbc6; }
.er-kopf { display: flex; gap: 8px; align-items: baseline; }
.er-wann { font-size: .76rem; font-weight: 700; color: var(--warn); white-space: nowrap; }
.er.is-termin .er-wann { color: var(--accent); }
.er.is-vorbei .er-wann { color: var(--danger); }
.er strong { font-size: .9rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.er-text { display: block; font-size: .8rem; color: var(--ink-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.er ul { margin: 5px 0 0; padding: 0 0 0 16px; font-size: .8rem; }
.er li { margin: 1px 0; }
.er a { color: inherit; }
.er-ok { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; font-size: .78rem; line-height: 1; color: var(--ok); transition: transform 140ms var(--ease), background-color 150ms ease; }
.er-ok:hover { background: var(--ok-soft); }
.er-ok:active { transform: scale(.9); }

.ks-neu input { width: 100%; padding: 8px 10px; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--surface-2); outline: none; transition: border-color 150ms ease, background-color 150ms ease; }
.ks-neu input:focus { border-style: solid; border-color: var(--accent); background: #fff; }
.ks-aufgaben .ks-liste { margin-top: 8px; gap: 2px; }
.af { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 6px 4px; border-radius: 6px; }
.af:hover { background: var(--surface-2); }
.af input[type=checkbox] { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.af-text { font-size: .9rem; line-height: 1.35; word-break: break-word; cursor: text; }
.af.is-erledigt .af-text { text-decoration: line-through; color: var(--ink-3); }
.af-datum { font-size: .74rem; color: var(--ink-2); white-space: nowrap; padding-top: 2px; }
.af-datum.is-heute { color: var(--warn); font-weight: 700; }
.af-datum.is-ueber { color: var(--danger); font-weight: 700; }
.af-x { border: 0; background: none; color: var(--ink-3); padding: 0 2px; font-size: 1rem; line-height: 1; visibility: hidden; }
.af:hover .af-x { visibility: visible; }
.ks-ws { margin-top: auto; font-size: .76rem; color: var(--ink-3); }
.ks-ws.is-fehler { color: var(--danger); }

/* ---------- Hauptansicht: Woche / Tag ---------- */
.kh { overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.wk { flex: 1; display: grid; grid-template-rows: auto auto minmax(0, 1fr); min-height: 0; background: var(--surface); }
.wk-kopf, .wk-ganz, .wk-raster { display: grid; grid-template-columns: 56px repeat(var(--tage), minmax(0, 1fr)); }
.wk-kopf { border-bottom: 1px solid var(--line); }
.wk-tk { padding: 8px 10px 7px; display: flex; align-items: baseline; gap: 8px; border-left: 1px solid var(--line); cursor: pointer; }
.wk-tk-wt { font-size: .74rem; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--wt-bg); color: var(--wt-fg); }
.wk-tk-zahl { font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.wk-tk-mon { font-size: .8rem; color: var(--ink-2); }
.wk-tk.is-heute .wk-tk-zahl { color: #fff; background: var(--accent); border-radius: 8px; padding: 0 7px; }
.wk-ganz { border-bottom: 1px solid var(--line-strong); min-height: 30px; background: var(--surface-2); }
.wk-ganz-label { font-size: .68rem; color: var(--ink-3); padding: 6px 6px 0; text-align: right; }
.wk-gz { border-left: 1px solid var(--line); padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.chip { display: flex; align-items: center; gap: 6px; padding: 3px 7px; border-radius: 6px; font-size: .78rem; line-height: 1.25; background: var(--c-bg); color: var(--c-fg); border-left: 3px solid var(--c-bar); text-decoration: none; min-width: 0; cursor: pointer; transition: filter 150ms ease; }
.chip:hover { filter: brightness(.97); }
.chip b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip i { font-style: normal; opacity: .75; white-space: nowrap; }
.chip-warn::after { content: "!"; margin-left: auto; display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--warn); color: #fff; font-size: .66rem; font-weight: 800; flex: none; }

.wk-scroll { overflow-y: auto; min-height: 0; position: relative; }
.wk-raster { position: relative; }
.wk-zeiten { position: relative; }
.wk-zeit { height: var(--stunde); font-size: .72rem; color: var(--ink-3); text-align: right; padding: 0 8px 0 0; transform: translateY(-.55em); font-variant-numeric: tabular-nums; }
.wk-zeit:first-child { visibility: hidden; }
.wk-spalte { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--stunde) - 1px), var(--line) calc(var(--stunde) - 1px), var(--line) var(--stunde)), repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--stunde) / 2 - 1px), #f1f3f0 calc(var(--stunde) / 2 - 1px), #f1f3f0 calc(var(--stunde) / 2)); cursor: crosshair; user-select: none; }
.wk-spalte.is-heute { background-color: #fbfcf9; }
.wk-zu { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, rgba(35,48,46,.045) 0 8px, transparent 8px 16px); pointer-events: none; }
.wk-zu span { position: absolute; top: 6px; left: 8px; font-size: .72rem; color: var(--ink-3); }
.wk-jetzt { position: absolute; left: -1px; right: 0; height: 2px; background: var(--gold); z-index: 4; pointer-events: none; }
.wk-jetzt::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.wk-auswahl { position: absolute; left: 3px; right: 3px; border-radius: 7px; background: rgba(47,95,85,.14); border: 1px dashed var(--accent); z-index: 3; pointer-events: none; font-size: .78rem; color: var(--accent); padding: 4px 6px; font-weight: 600; }

.ev { position: absolute; border-radius: 7px; padding: 4px 7px 4px 9px; background: var(--c-bg); color: var(--c-fg); border-left: 4px solid var(--c-bar); overflow: hidden; cursor: grab; z-index: 2; box-shadow: 0 1px 0 rgba(0,0,0,.04); transition: box-shadow 150ms ease; touch-action: none; }
.ev:hover { box-shadow: 0 6px 16px -8px rgba(30,40,38,.35); z-index: 5; }
.ev.is-zieht { cursor: grabbing; opacity: .9; box-shadow: 0 10px 24px -10px rgba(30,40,38,.5); z-index: 6; }
.ev-zeit { font-size: .72rem; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .85; }
.ev-titel { font-size: .84rem; font-weight: 700; line-height: 1.2; }
.ev-sub { font-size: .76rem; opacity: .85; line-height: 1.25; }
.ev-display { position: absolute; top: 4px; right: 5px; font-size: .68rem; opacity: .7; }
.ev-griff { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; cursor: ns-resize; }
.ev.is-kurz { padding-top: 1px; padding-bottom: 1px; }
.ev.is-kurz .ev-sub { display: none; }

/* Arten */
.art-beratung, .ev.art-beratung, .chip.art-beratung { --c-bg: #e3ede6; --c-fg: #234c39; --c-bar: #4d8a6a; }
.art-extern,   .ev.art-extern,   .chip.art-extern   { --c-bg: #e2e9f1; --c-fg: #284c6d; --c-bar: #5f86ad; }
.art-lieferung,.ev.art-lieferung,.chip.art-lieferung{ --c-bg: #f3ead8; --c-fg: #6c4f16; --c-bar: #c79a45; }
.art-intern,   .ev.art-intern,   .chip.art-intern   { --c-bg: #e7eaec; --c-fg: #3d4851; --c-bar: #7c8790; }
.art-privat,   .ev.art-privat,   .chip.art-privat   { --c-bg: #f2e4e0; --c-fg: #74382e; --c-bar: #c07a6b; }
.chip.ws-lieferung { --c-bg: #e4ecf3; --c-fg: #2f5577; --c-bar: #5f86ad; }
.chip.ws-abholung  { --c-bg: #e5eee8; --c-fg: #2f5a45; --c-bar: #5c9473; }

/* Wochentagsfarben (wie in Workspace) */
.wt-1 { --wt-bg: #dde9e2; --wt-fg: #3b6352; } .wt-2 { --wt-bg: #dce6ef; --wt-fg: #3a5f7d; } .wt-3 { --wt-bg: #efe6d3; --wt-fg: #76602f; }
.wt-4 { --wt-bg: #e2e3ee; --wt-fg: #4a5274; } .wt-5 { --wt-bg: #d8eae8; --wt-fg: #2e6863; } .wt-6 { --wt-bg: #ece7d5; --wt-fg: #6b6232; } .wt-0 { --wt-bg: #e7e7e3; --wt-fg: #5c5c57; }

/* ---------- Monat ---------- */
.mo { flex: 1; display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--surface); min-height: 0; }
.mo-kopf { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.mo-kopf div { padding: 8px 10px; font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.mo-raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); min-height: 0; }
.mo-tag { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 5px 6px; display: flex; flex-direction: column; gap: 3px; min-height: 0; overflow: hidden; cursor: pointer; }
.mo-tag:hover { background: #fafbf9; }
.mo-tag.is-fremd { background: var(--surface-2); }
.mo-tag.is-fremd .mo-zahl { color: var(--ink-3); }
.mo-zahl { font-size: .9rem; font-weight: 600; align-self: flex-start; font-variant-numeric: tabular-nums; padding: 0 5px; border-radius: 6px; }
.mo-tag.is-heute .mo-zahl { background: var(--accent); color: #fff; }
.mo-mehr { font-size: .74rem; color: var(--ink-2); padding-left: 4px; }

/* ---------- Dialoge ---------- */
.kd-hinter { position: fixed; inset: 0; background: rgba(20,28,26,.38); z-index: 20; animation: kd-ein 160ms ease-out; }
.kd { position: fixed; z-index: 21; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface); border-radius: 14px; padding: 18px 20px 16px; box-shadow: 0 30px 70px -25px rgba(0,0,0,.5); animation: kd-auf 200ms var(--ease); }
@keyframes kd-ein { from { opacity: 0; } }
@keyframes kd-auf { from { opacity: 0; transform: translate(-50%, -48%) scale(.97); } }
.kd-kopf { display: flex; align-items: center; margin-bottom: 12px; }
.kd-kopf h2 { margin: 0; font-size: 1.1rem; flex: 1; }
.kd-x { width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--surface-2); font-size: 1.3rem; line-height: 1; }
.kd-arten { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.kd-arten input { position: absolute; opacity: 0; pointer-events: none; }
.kd-arten span { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .84rem; font-weight: 600; border: 1px solid var(--line); cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.kd-arten input:checked + span { background: var(--c-bg); color: var(--c-fg); border-color: var(--c-bar); }
.kd-arten input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.kd-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.kd label { display: grid; gap: 4px; font-size: .8rem; color: var(--ink-2); font-weight: 500; }
.kd-breit { grid-column: 1 / -1; }
.kd input:not([type=checkbox]):not([type=radio]), .kd select, .kd textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font-size: .95rem; color: var(--ink); outline: none; transition: border-color 150ms ease, box-shadow 150ms ease; }
.kd input:focus, .kd select:focus, .kd textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,95,85,.12); }
.kd textarea { resize: vertical; }
.kd-ganz { display: flex !important; align-items: center; gap: 8px; font-size: .88rem !important; color: var(--ink) !important; align-self: end; padding-bottom: 8px; }
.kd-ganz input { width: 17px; height: 17px; accent-color: var(--accent); }
.kd-opt { font-weight: 400; color: var(--ink-3); }
.kd-display { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border-radius: 9px; background: #faf6ea; border: 1px solid #efe2bd; }
.kd-display .kd-ganz { padding: 0; }
.kd h3 { margin: 16px 0 8px; font-size: .85rem; color: var(--ink-2); }
.kd-einst > label { margin-bottom: 8px; }
.kd-hilfe { margin: -2px 0 8px; font-size: .78rem; color: var(--ink-3); }
.kd-fehler { color: var(--danger); margin: 10px 0 0; font-size: .88rem; }
.kd-fuss { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.kd-leer { flex: 1; }
.kd-prim, .kd-sek, .kd-loeschen { height: 38px; padding: 0 16px; border-radius: 8px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; transition: transform 140ms var(--ease), background-color 150ms ease; }
.kd-prim { border: 0; background: var(--side); color: #fff; }
.kd-sek { border: 1px solid var(--line-strong); background: #fff; color: var(--ink); }
.kd-loeschen { border: 1px solid #f0c4bf; background: #fff; color: var(--danger); }
.kd-loeschen.is-sicher { background: var(--danger); color: #fff; border-color: var(--danger); }
.kd-prim:active, .kd-sek:active, .kd-loeschen:active { transform: scale(.97); }

/* Hinweis unten */
.kt { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--side); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: .9rem; z-index: 30; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); display: flex; gap: 14px; align-items: center; animation: kt-ein 220ms var(--ease); }
.kt button { border: 0; background: none; color: var(--gold); font-weight: 700; padding: 0; }
.kt.is-fehler { background: var(--danger); }
@keyframes kt-ein { from { opacity: 0; transform: translate(-50%, 8px); } }

@media (max-width: 1100px) {
  .kb { flex-wrap: wrap; height: auto; padding-block: 8px; gap: 8px 12px; }
  .kb-schnell { order: 9; flex-basis: 100%; }
  .kl { grid-template-columns: 1fr; height: auto; }
  .ks { border-right: 0; border-bottom: 1px solid var(--line); }
  .kh { height: 80vh; }
}
@media (max-width: 640px) {
  .kb-digital span, .kb-titel { display: none; }
  .kd-raster { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.ks { overflow-x: hidden; }
.ks-liste > li, .ks-heute > li { min-width: 0; }
.er-kopf { min-width: 0; }
.er-kopf strong { flex: 1; }
.af-edit { width: 100%; padding: 3px 6px; border: 1px solid var(--accent); border-radius: 6px; font-size: .9rem; outline: none; }
.kd-import { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px 12px; align-items: end; }
.kd-import input[type=file] { grid-column: 1 / -1; font-size: .88rem; }
.kd-import .kd-ganz { padding-bottom: 10px; }
/* Kundenansicht: Seitenleiste und Eingabe weg, Kalender über die ganze Breite */
.kb-privat[aria-pressed="true"] { background: var(--gold); color: #2a2412; border-color: var(--gold); }
body.is-privat .kl { grid-template-columns: minmax(0, 1fr); }
body.is-privat .ks, body.is-privat .kb-schnell, body.is-privat .kb-neu { display: none; }
body.is-privat .ev, body.is-privat .wk-spalte { cursor: default; }
