/* Onboarding Neukunden – Gestaltung nach oasoft.de: Orange #F59E2C, Dunkelgrau #3F4344, Hausschrift PF DinText Universal. Hell und dunkel. */
@font-face { font-family: "PF DinText Universal"; src: url("/brand/fonts/PFDinTextUniversal-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "PF DinText Universal"; src: url("/brand/fonts/PFDinTextUniversal-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PF DinText Universal"; src: url("/brand/fonts/PFDinTextUniversal-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --orange: #F59E2C; --orange-dark: #C97A12; --orange-soft: #FEF3E3; --orange-line: #F8C27A;
  --grey: #3F4344; --grey-2: #565B5C; --ink: #2B2F30; --muted: #6B7173;
  --bg: #F4F3F0; --surface: #FFFFFF; --surface-2: #FAF9F7; --line: #E4E2DD; --line-2: #D3D0C9; --input: #FFFFFF;
  --ok: #1E7B34; --ok-bg: #E8F4EB; --warn: #8A5300; --warn-bg: #FFF4E0; --bad: #B42318; --bad-bg: #FDECEA; --info: #2D5BA8; --info-bg: #EAF0FA;
  --side: #3F4344; --side-ink: #E9EAEA; --heading: #3F4344; --accent-text: #C97A12;
  --focus: #1F6FEB; --radius: 10px; --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(40, 40, 40, .05), 0 4px 16px -8px rgba(40, 40, 40, .12);
  font-family: "PF DinText Universal", "Segoe UI", Arial, sans-serif;
  font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --orange-dark: #F7B259; --orange-soft: #3A2E1D; --orange-line: #7A5420;
    --grey: #E6E7E7; --grey-2: #C4C7C8; --ink: #E9EAEA; --muted: #A2A8AA;
    --bg: #1C1F20; --surface: #26292A; --surface-2: #2C3031; --line: #3A3E3F; --line-2: #4A4F50; --input: #1F2223;
    --ok: #6CCB83; --ok-bg: #1F3326; --warn: #F2C273; --warn-bg: #3A2F1A; --bad: #F2867A; --bad-bg: #3D2220; --info: #8FB2EE; --info-bg: #1F2A3D;
    --side: #151718; --heading: #F2F2F2; --accent-text: #F7B259; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px -8px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --orange-dark: #F7B259; --orange-soft: #3A2E1D; --orange-line: #7A5420;
  --grey: #E6E7E7; --grey-2: #C4C7C8; --ink: #E9EAEA; --muted: #A2A8AA;
  --bg: #1C1F20; --surface: #26292A; --surface-2: #2C3031; --line: #3A3E3F; --line-2: #4A4F50; --input: #1F2223;
  --ok: #6CCB83; --ok-bg: #1F3326; --warn: #F2C273; --warn-bg: #3A2F1A; --bad: #F2867A; --bad-bg: #3D2220; --info: #8FB2EE; --info-bg: #1F2A3D;
  --side: #151718; --heading: #F2F2F2; --accent-text: #F7B259; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px -8px rgba(0,0,0,.5);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); }
h1 { font-size: 1.85rem; font-weight: 300; margin: .2rem 0 .3rem; color: var(--heading); letter-spacing: -.01em; }
h2 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-text); margin: 0 0 .8rem; }
h3 { font-size: 1rem; font-weight: 700; margin: 1rem 0 .5rem; color: var(--heading); }
p { margin: 0 0 .8rem; }
a { color: var(--accent-text); }
a:hover { color: var(--grey); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .mt { margin-top: 1.2rem; } .nowrap { white-space: nowrap; }
.bad-text { color: var(--bad); } .ok-text { color: var(--ok); } .warn-text { color: var(--warn); } .break { word-break: break-all; }
.spacer { flex: 1 1 auto; }
.row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.grid-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; align-items: start; }

/* ---------- Grundgerüst ---------- */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.sidenav { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { padding: 1.3rem 1.3rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand img { display: block; height: auto; width: 132px; }
.brand-name { display: block; margin-top: .55rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.sidenav ul { list-style: none; margin: .8rem 0; padding: 0 .6rem; display: flex; flex-direction: column; gap: 2px; }
.sidenav a { display: flex; align-items: center; gap: .7rem; padding: .62rem .8rem; border-radius: var(--radius-sm); color: var(--side-ink); text-decoration: none; border-left: 3px solid transparent; }
.sidenav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidenav a.active { background: rgba(245,158,44,.14); color: #fff; border-left-color: var(--orange); font-weight: 700; }
.sidenav a.active .icon { color: var(--orange); }
.nav-count { margin-left: auto; background: var(--orange); color: #241503; border-radius: 999px; font-size: .72rem; font-weight: 700; padding: 0 .45rem; }
.icon { width: 19px; height: 19px; flex: none; }
.side-foot { margin-top: auto; padding: 1rem 1.3rem 1.2rem; display: flex; flex-direction: column; gap: .7rem; font-size: .78rem; }
.side-foot .muted { color: #A9AEAF; }
.mode { display: inline-block; align-self: flex-start; padding: .3rem .6rem; border-radius: 999px; background: rgba(255,255,255,.1); font-size: .75rem; font-weight: 700; }
.mode-live { background: var(--orange); color: #241503; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: .8rem; padding: .6rem 1.6rem; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.user { display: flex; align-items: center; gap: .6rem; }
.user-text { display: flex; flex-direction: column; line-height: 1.2; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.avatar-s { width: 24px; height: 24px; font-size: .72rem; }
.content { padding: 1.6rem; max-width: 1400px; width: 100%; }
.icon-btn.nav-toggle, .scrim { display: none; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; }
.page-head p { margin: 0; max-width: 60rem; }
.crumb { font-size: .85rem; color: var(--muted); text-decoration: none; }

/* ---------- Bausteine ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin-bottom: 1rem; box-shadow: var(--shadow); min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; }
.panel-head h2 { margin: 0; }
.card.flush .panel-head { padding: 1rem 1.2rem .2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 700; padding: .5rem .95rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--grey); cursor: pointer; text-decoration: none; white-space: nowrap; min-height: 38px; }
.btn:hover { border-color: var(--orange); color: var(--orange-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #3F4344; }
.btn-primary:hover { background: #FFB24D; border-color: #FFB24D; color: #3F4344; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-danger-ghost { color: var(--bad); }
.btn-danger-ghost:hover { border-color: var(--bad); color: var(--bad); background: var(--bad-bg); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-small { padding: .25rem .6rem; min-height: 30px; font-size: .85rem; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--grey); display: inline-grid; place-items: center; flex: none; }
.icon-btn:hover { border-color: var(--orange); }

input, select, textarea { font: inherit; color: var(--ink); background: var(--input); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .45rem .6rem; min-height: 38px; max-width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); outline: 2px solid rgba(245,158,44,.25); outline-offset: 0; }
input[type="checkbox"] { min-height: 0; accent-color: var(--orange); width: 18px; height: 18px; }
textarea { width: 100%; resize: vertical; line-height: 1.45; }
.field { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .9rem; min-width: 0; }
.field > input, .field > textarea, .field > select { width: 100%; }
.field-label { font-weight: 700; font-size: .85rem; color: var(--grey); }
.field-hint { display: block; font-size: .8rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 1rem; }
.check { display: flex; gap: .55rem; align-items: flex-start; cursor: pointer; }
.check input { margin-top: .15rem; flex: none; }

.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; }
.tab { border: 0; background: none; font: inherit; padding: .6rem .9rem; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.tab:hover { color: var(--grey); }
.tab.active { color: var(--grey); border-bottom-color: var(--orange); }
.tab .count-pill { margin-left: .35rem; font-size: .72rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 .4rem; }

.badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.badge-ok { background: var(--ok-bg); color: var(--ok); } .badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); } .badge-info { background: var(--info-bg); color: var(--info); }
.badge-neutral { background: var(--surface-2); color: var(--grey-2); border: 1px solid var(--line); }
.alert { border-radius: var(--radius-sm); padding: .7rem .9rem; margin: .5rem 0 1rem; border: 1px solid; }
.alert-error { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.alert-warn { background: var(--warn-bg); border-color: var(--orange-line); color: var(--warn); }
.alert-info { background: var(--info-bg); border-color: var(--info); color: var(--info); }
.alert-ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.state { display: flex; align-items: center; gap: .6rem; padding: 2rem; color: var(--muted); }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line-2); border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 2rem 1.4rem; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--grey); margin-bottom: .3rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .15rem; border-top: 3px solid var(--orange); box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.stat.bad { border-top-color: var(--bad); } .stat.ok { border-top-color: var(--ok); }
.stat-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.stat-value { font-size: 1.9rem; font-weight: 300; color: var(--heading); font-variant-numeric: tabular-nums; line-height: 1.15; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: var(--surface-2); }
.table-wrap { overflow-x: auto; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0 0 .8rem; }
.kv dt { color: var(--muted); font-size: .85rem; } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ---------- Fortschritt ---------- */
.bar { height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--orange); border-radius: 999px; transition: width .3s; }
.bar.done > span { background: var(--ok); }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--orange) calc(var(--p) * 1%), var(--line) 0); }
.ring.done { background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--line) 0); }
.ring span { width: 50px; height: 50px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 700; color: var(--heading); font-size: .9rem; }

/* ---------- Listen ---------- */
.olist { list-style: none; margin: 0; padding: 0; }
.oitem { display: grid; grid-template-columns: minmax(0, 1fr) 180px auto; gap: 1rem; align-items: center; padding: .85rem 1.2rem; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.olist li:first-child .oitem { border-top: 0; }
.oitem:hover { background: var(--surface-2); }
.oitem-title { font-weight: 700; color: var(--heading); }
.oitem-meta { display: flex; flex-wrap: wrap; gap: .3rem .7rem; font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.oitem-prog { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; color: var(--muted); }

.tasks { list-style: none; margin: 0; padding: 0; }
.task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: start; padding: .7rem 1.2rem; border-top: 1px solid var(--line); }
.tasks li:first-child .task { border-top: 0; }
.task-title { font-weight: 700; color: var(--heading); }
.task-sub { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .2rem .7rem; }
.task.fertig .task-title { text-decoration: line-through; color: var(--muted); font-weight: 400; }
.tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: transparent; padding: 0; margin-top: .05rem; }
.tick:hover { border-color: var(--ok); color: var(--ok); }
.tick.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.tick.na { background: var(--surface-2); border-color: var(--line-2); color: var(--muted); }
.tick.wait { border-color: var(--info); border-style: dashed; }
.tick svg { width: 15px; height: 15px; }
.frist { font-variant-numeric: tabular-nums; }
.frist.over { color: var(--bad); font-weight: 700; }
.frist.today { color: var(--warn); font-weight: 700; }
.phase { padding: .8rem 1.2rem .4rem; display: flex; align-items: center; gap: .8rem; border-top: 1px solid var(--line); background: var(--surface-2); }
.phase:first-child { border-top: 0; }
.phase h3 { margin: 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); }
.phase .bar { flex: 1; max-width: 220px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: .6rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; }
.timeline li:first-child { border-top: 0; }
.tl-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.tl-meta { font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .2rem .6rem; align-items: center; }

/* ---------- Vorlagen-Editor ---------- */
.vp { display: grid; grid-template-columns: 1.1fr 2fr 1.3fr 80px 70px auto; gap: .4rem; align-items: center; padding: .45rem 0; border-top: 1px solid var(--line); }
.vp input, .vp select { min-height: 34px; padding: .3rem .45rem; width: 100%; }
.vp-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; border-top: 0; }
.felder-edit .vp { grid-template-columns: 1.5fr 1fr 1fr 90px auto; }
.vp input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; flex: none; }
.vp .check { white-space: nowrap; }

/* ---------- Einstellungen ---------- */
.switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 700; }
.switch input { width: 40px; height: 22px; appearance: none; background: var(--line-2); border-radius: 999px; position: relative; cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch input:checked { background: var(--orange); }
.switch input:checked::after { left: 21px; }
.switch input:disabled { opacity: .5; cursor: not-allowed; }
.copy { display: flex; gap: .4rem; align-items: center; min-width: 0; }
.copy code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: .25rem .45rem; word-break: break-all; font-size: .82rem; min-width: 0; }

.dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(580px, calc(100vw - 1.5rem)); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); color: var(--ink); background: var(--surface); max-height: calc(100vh - 2rem); }
.dialog.wide { width: min(860px, calc(100vw - 1.5rem)); }
.dialog::backdrop { background: rgba(20,22,23,.55); }
.dialog-head { padding: 1rem 1.2rem .3rem; }
.dialog-head h2 { margin: 0; }
.dialog-body { padding: .4rem 1.2rem 1rem; }
.dialog-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; padding: .8rem 1.2rem; border-top: 1px solid var(--line); background: var(--surface-2); }
.mail-frame { width: 100%; height: 60vh; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.toasts { position: fixed; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: .4rem; z-index: 100; }
.toast { background: #3F4344; color: #fff; padding: .7rem 1rem; border-radius: var(--radius-sm); box-shadow: var(--shadow); max-width: 420px; }
.toast-error { background: #B42318; }
.suggest { list-style: none; margin: .3rem 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); max-height: 240px; overflow: auto; background: var(--surface); }
.suggest button { display: block; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: none; padding: .5rem .7rem; font: inherit; color: var(--ink); cursor: pointer; }
.suggest li:first-child button { border-top: 0; }
.suggest button:hover { background: var(--orange-soft); }

/* ---------- Anmeldung ---------- */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.login-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.login-card img { display: block; margin-bottom: 1.2rem; width: 160px; height: auto; }
.login-card .btn { width: 100%; margin-top: .4rem; }
.dev-login { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed var(--line-2); }
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none !important; } :root:not([data-theme="light"]) .logo-dark { display: block !important; } }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }

/* oasoft Portal-Knopf „Zurück zum Portal“ – einheitlich in allen Werkzeugen, die über portal.oasoft.de geöffnet werden.
   Stand 2026-11-25, Vorlage und Regeln: PORTAL-ZURUECK-KNOPF.md (X:\portal.oasoft). Gleicher Block in jedem Tool, nur dort ändern und kopieren.
   oasoft-CI: Orange #F59E2C, Schrift Dunkelgrau #3F4344 (Kontrast 4,8:1), PF DinText Universal. */
.oas-portal-zurueck { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 10px; border: 0; border-radius: 8px; background: #F59E2C; color: #3F4344; font-family: "PF DinText Universal", "PF DinText", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .01em; text-decoration: none; white-space: nowrap; flex-shrink: 0; box-shadow: 0 1px 2px rgba(63, 67, 68, .2); transition: background-color .15s ease, box-shadow .15s ease; }
.oas-portal-zurueck:hover, .oas-portal-zurueck:active { background: #FFB24D; color: #3F4344; text-decoration: none; box-shadow: 0 2px 6px rgba(63, 67, 68, .28); }
.oas-portal-zurueck:focus-visible { outline: 2px solid #F59E2C; outline-offset: 3px; }
.oas-portal-zurueck svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .oas-portal-zurueck .oas-pz-lang { display: none; } .oas-portal-zurueck { padding: 0 12px 0 8px; } }
@media print { .oas-portal-zurueck { display: none !important; } }

@media (max-width: 1100px) {
  .grid-side { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidenav { position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .nav-open .sidenav { transform: none; }
  .nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 30; border: 0; }
  .icon-btn.nav-toggle { display: inline-grid; }
  .content { padding: 1rem; }
  .topbar { padding: .6rem 1rem; gap: .5rem; }
  .user-text { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .oitem { grid-template-columns: minmax(0, 1fr) auto; }
  .oitem-prog { grid-column: 1 / -1; grid-row: 2; }
  .task { padding: .7rem 1rem; grid-template-columns: auto minmax(0, 1fr); }
  .task-actions { grid-column: 2; }
  .vp, .felder-edit .vp { grid-template-columns: 1fr 1fr; }
  .vp-head { display: none; }
  h1 { font-size: 1.5rem; }
  .stat-value { font-size: 1.5rem; }
}
