/* F&E Planung – Grundgestaltung (CI F&E: Oliv #737022, Poppins, Didone-Überschriften), hell und dunkel */
@font-face { font-family: "Poppins"; src: url(poppins-regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(poppins-medium.woff) format("woff"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(poppins-bold.woff) format("woff"); font-weight: 700; font-display: swap; }
:root {
  --bg: #f4f4ee; --surface: #ffffff; --surface-2: #ecece4; --surface-3: #e3e3d8; --ink: #22231b; --muted: #676858; --faint: #8b8c7e; --line: #dfdfd3;
  --accent: #737022; --accent-2: #8c8830; --accent-ink: #ffffff; --soft: color-mix(in srgb, var(--accent) 12%, transparent); --hover: rgba(34,35,27,.05);
  --ok: #3f8a4a; --ok-soft: #e4f1e4; --warn: #a96300; --warn-soft: #fbefd9; --danger: #c23a2e; --danger-soft: #fbe5e2; --info: #2f74cf; --info-soft: #e3eefb; --brand: #aaa440;
  --shadow: 0 10px 34px rgba(30,30,20,.12), 0 2px 6px rgba(30,30,20,.06); --shadow-s: 0 1px 3px rgba(30,30,20,.08);
  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, "Times New Roman", serif;
  --f-body: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 10px; color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #15160f; --surface: #1d1e16; --surface-2: #26271e; --surface-3: #303127; --ink: #ebebe0; --muted: #a2a392; --faint: #7d7e70; --line: #34352b; --hover: rgba(235,235,224,.06);
  --accent: #b5ae45; --accent-2: #c9c25a; --accent-ink: #15160f; --ok-soft: #1f3322; --warn-soft: #3a2c12; --danger-soft: #3b1c18; --info-soft: #172a42;
  --shadow: 0 10px 34px rgba(0,0,0,.45); --shadow-s: 0 1px 3px rgba(0,0,0,.4); color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #15160f; --surface: #1d1e16; --surface-2: #26271e; --surface-3: #303127; --ink: #ebebe0; --muted: #a2a392; --faint: #7d7e70; --line: #34352b; --hover: rgba(235,235,224,.06);
  --accent: #b5ae45; --accent-2: #c9c25a; --accent-ink: #15160f; --ok-soft: #1f3322; --warn-soft: #3a2c12; --danger-soft: #3b1c18; --info-soft: #172a42; --shadow: 0 10px 34px rgba(0,0,0,.45); color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 3vw, 28px); letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 14.5px; font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
.boot { padding: 40px; color: var(--muted); text-align: center; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; } .tiny { font-size: 11.5px; } .right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; } .bold { font-weight: 600; } .pre { white-space: pre-line; } .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .row.nw { flex-wrap: nowrap; } .grow { flex: 1; min-width: 0; } .col { display: flex; flex-direction: column; gap: 8px; }
.sp { justify-content: space-between; } .gap-l { gap: 16px; } .mt { margin-top: 12px; } .mb { margin-bottom: 12px; } .mt-l { margin-top: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-s); }
.card.flat { box-shadow: none; } .card.p0 { padding: 0; overflow: hidden; } .card.hl { border-color: var(--accent); background: var(--soft); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); border-radius: 8px;
  padding: 7px 13px; font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; min-height: 36px; white-space: nowrap; transition: filter .15s, background .15s; }
.btn:hover { filter: brightness(1.07); } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--accent); } .btn.ghost:hover { background: var(--soft); filter: none; }
.btn.plain { background: transparent; border-color: var(--line); color: var(--ink); font-weight: 500; } .btn.plain:hover { background: var(--hover); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; } .btn.danger.ghost { background: transparent; color: var(--danger); }
.btn.sm { min-height: 28px; padding: 3px 9px; font-size: 12.5px; } .btn.lg { min-height: 48px; padding: 10px 20px; font-size: 16px; } .btn.block { width: 100%; }
.btn.icon { padding: 0; width: 34px; min-height: 34px; } .btn.icon.sm { width: 28px; min-height: 28px; }
.linkbtn { border: 0; background: none; color: var(--accent); padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; font: inherit; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; line-height: 1.5; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.danger { background: var(--danger-soft); color: var(--danger); }
.pill.info { background: var(--info-soft); color: var(--info); } .pill.acc { background: var(--soft); color: var(--accent); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
label.f { display: block; } .f > span.l, .flabel { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.f .req::after { content: " *"; color: var(--danger); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=date], input[type=time], input[type=datetime-local], input[type=search], input[type=url], input:not([type]), select, textarea {
  width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); min-height: 36px; font-size: 14px; }
textarea { min-height: 72px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--soft); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; }
.help { font-size: 12px; color: var(--muted); margin-top: 3px; } .err-t { font-size: 12px; color: var(--danger); margin-top: 3px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 36px; height: 20px; border-radius: 20px; background: var(--surface-3); position: relative; cursor: pointer; transition: background .15s; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--accent); } .switch input:checked::after { left: 18px; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 1; white-space: nowrap; }
table.t td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: var(--hover); } table.t tr.sel td { background: var(--soft); }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tablewrap { overflow: auto; max-width: 100%; }
.empty { text-align: center; color: var(--muted); padding: 34px 16px; }
.alert { padding: 10px 14px; border-radius: 8px; background: var(--info-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--info) 30%, transparent); }
.alert.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); } .alert.danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.alert.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.toasts { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 1000; max-width: min(420px, calc(100vw - 36px)); }
.toast { background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); font-size: 13.5px; animation: tin .2s ease-out; }
.toast.err { background: var(--danger); color: #fff; } .toast.ok { background: var(--ok); color: #fff; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-bg { position: fixed; inset: 0; background: rgba(15,15,10,.42); z-index: 500; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 12px 12px; overflow: auto; animation: fade .15s; }
.modal { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); width: 100%; max-width: 640px; padding: 20px; position: relative; }
.modal.wide { max-width: 980px; } .modal h2 { margin-bottom: 14px; padding-right: 30px; }
.modal .x, .drawer .x { position: absolute; top: 12px; right: 12px; }
.drawer-bg { position: fixed; inset: 0; background: rgba(15,15,10,.28); z-index: 400; animation: fade .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--surface); box-shadow: var(--shadow); z-index: 401; overflow: auto; padding: 20px; animation: slin .18s ease-out; }
@keyframes fade { from { opacity: 0; } } @keyframes slin { from { transform: translateX(30px); opacity: .5; } }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 9px 13px; cursor: pointer; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; font-size: 13.5px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); } .tabs button:hover { color: var(--ink); }
.tabs .cnt { font-size: 11px; background: var(--surface-2); border-radius: 99px; padding: 0 6px; margin-left: 4px; color: var(--muted); }
.kv { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 6px 14px; font-size: 13.5px; } .kv > div:nth-child(odd) { color: var(--muted); }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* F&E Planung – Büro-Oberfläche */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 14px 10px; z-index: 50; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding: 4px 8px 14px; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; font-size: 13px; flex: none; }
.brand-name { font-family: var(--f-display); font-size: 19px; font-weight: 600; line-height: 1.1; } .brand-name small { display: block; font-family: var(--f-body); font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.navgroup { margin-bottom: 10px; } .navtitle { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 6px 10px 3px; font-weight: 600; }
.navitem { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 13.5px; }
.navitem:hover { background: var(--hover); } .navitem.on { background: var(--soft); color: var(--accent); font-weight: 600; } .navitem .ic { color: var(--muted); } .navitem.on .ic { color: var(--accent); }
.sidefoot { margin-top: auto; padding: 10px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); display: flex; align-items: center; gap: 12px; padding: 10px 22px; border-bottom: 1px solid var(--line); }
.burger { display: none; } .usr { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; padding: 0 6px; }
.gsearch { position: relative; flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; color: var(--muted); }
.gsearch input { border: 0 !important; box-shadow: none !important; background: transparent; padding-left: 0; }
.gsearch-list, .refpick-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); max-height: 360px; overflow: auto; z-index: 300; color: var(--ink); }
.refpick { position: relative; } .refpick-opt { padding: 8px 10px; cursor: pointer; font-size: 13.5px; border-bottom: 1px solid var(--line); } .refpick-opt:last-child { border: 0; }
.refpick-opt.hi, .refpick-opt:hover { background: var(--soft); } .refpick-opt.sel { font-weight: 600; }
.content { padding: 22px; max-width: 1480px; width: 100%; margin: 0 auto; } .page.wide { max-width: none; }
.content:has(.page.wide) { max-width: none; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.crumb { font-size: 12.5px; margin-bottom: 4px; } .crumb a { color: var(--muted); text-decoration: none; } .crumb a:hover { color: var(--accent); }
.filters { margin-bottom: 12px; } .search { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; color: var(--muted); min-width: 220px; }
.search input { border: 0 !important; box-shadow: none !important; padding-left: 0; background: transparent; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 6px 11px; cursor: pointer; font-size: 13px; color: var(--muted); } .seg button.on { background: var(--soft); color: var(--accent); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; text-decoration: none; color: var(--ink); display: block; box-shadow: var(--shadow-s); transition: transform .12s, box-shadow .12s; border-top: 3px solid var(--line); }
a.tile:hover { transform: translateY(-1px); box-shadow: var(--shadow); } .tile.warn { border-top-color: var(--warn); } .tile.danger { border-top-color: var(--danger); } .tile.ok { border-top-color: var(--ok); }
.tile-v { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; } .tile-l { color: var(--muted); font-size: 12.5px; } .tile-s { font-size: 11.5px; color: var(--faint); margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.oplist { display: flex; flex-direction: column; } .opline { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--line); cursor: pointer; } .opline:hover { background: var(--hover); } .opline:last-child { border: 0; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 110px; } .bar { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 3px; font-size: 10px; color: var(--faint); }
.bar-f { width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; opacity: .85; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px 16px; } .formgrid .wide { grid-column: 1 / -1; }
.suffix { display: flex; } .suffix input { border-top-right-radius: 0; border-bottom-right-radius: 0; } .suffix span { display: flex; align-items: center; padding: 0 10px; background: var(--surface-2); border: 1px solid var(--line); border-left: 0; border-radius: 0 8px 8px 0; color: var(--muted); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.kv2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 28px; } .kvrow { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; } .kvrow .k { color: var(--muted); }
.docbanner { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin-bottom: 12px; }
.big { font-size: 20px; } .warn-t { color: var(--warn); } .ok-t { color: var(--ok); } .danger-t { color: var(--danger); }
.totals { margin-left: auto; max-width: 380px; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.totals .big { font-size: 16px; border-top: 2px solid var(--ink); padding-top: 6px; margin-top: 4px; }
.itemedit { display: flex; flex-direction: column; gap: 8px; padding: 6px 0; } .itemedit label { display: flex; align-items: center; gap: 6px; white-space: nowrap; } tr.editrow td { background: var(--soft); }
.bulkbar { position: sticky; bottom: 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; z-index: 30; margin: 12px 0; border-color: var(--accent); box-shadow: var(--shadow); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; } .photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; } .catcard { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; } .catcard:hover { border-color: var(--accent); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 4px 20px; font-size: 13.5px; }
pre.log { max-height: 300px; overflow: auto; font-size: 11.5px; background: var(--surface-2); padding: 10px; border-radius: 8px; white-space: pre-wrap; }
code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; } code.sel { user-select: all; word-break: break-all; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; } .login form { width: 100%; max-width: 400px; padding: 28px; }
.brandbig { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; } .brandbig .brand-mark { width: 48px; height: 48px; font-size: 15px; } .brandbig .brand-name { font-size: 24px; }
/* Plantafel (Stil PlanD/Mendato) */
.planpage .pagehead { margin-bottom: 10px; }
.plan-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 10px; }
.plan-title { position: relative; font-size: 18px; font-weight: 600; cursor: pointer; padding: 4px 10px; border-radius: 8px; } .plan-title:hover { background: var(--hover); }
.plan-title input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.plan-filters .search { min-width: 260px; }
.chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; cursor: pointer; color: var(--ink); white-space: nowrap; }
.chip:hover { background: var(--hover); } .chip.on { background: var(--soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.chip.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); } .chip.danger.on { background: var(--danger-soft); border-color: var(--danger); }
.chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); background: var(--warn-soft); cursor: help; }
.seg.sm button { padding: 4px 8px; font-size: 12px; display: inline-flex; align-items: center; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 600; flex: none; letter-spacing: .02em; }
.avatar.danger { background: var(--danger-soft); color: var(--danger); }
.loadbars { display: flex; gap: 6px; margin-top: 5px; } .loadbar { flex: 1; height: 4px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.loadbar i { display: block; height: 100%; background: var(--ok); border-radius: 3px; } .loadbar.full i { background: var(--info); } .loadbar.over i { background: var(--danger); } .loadbar.none { opacity: .45; }
/* Zeitachse */
.tl { overflow: auto; max-height: calc(100vh - 250px); position: relative; user-select: none; }
.tl-inner { position: relative; }
.tl-hdr { display: flex; position: sticky; top: 0; z-index: 8; background: var(--surface); border-bottom: 1px solid var(--line); }
.tl-corner { width: 240px; flex: none; position: sticky; left: 0; z-index: 9; background: var(--surface); padding: 8px 12px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.tl-kw { text-align: center; font-size: 11.5px; color: var(--muted); padding: 4px 0 2px; border-bottom: 1px dashed var(--line); }
.tl-h { flex: none; font-size: 12px; color: var(--info); font-weight: 600; padding: 5px 6px; border-left: 1px solid var(--line); }
.tl-row { display: flex; border-bottom: 1px solid var(--line); }
.tl-row.drop .tl-lane { box-shadow: inset 0 0 0 2px var(--accent); }
.tl-head { width: 240px; flex: none; position: sticky; left: 0; z-index: 6; background: var(--surface); border-right: 1px solid var(--line); padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.tl-head.open { color: var(--danger); background: color-mix(in srgb, var(--danger-soft) 55%, var(--surface)); }
.tl-row.open .tl-lane { background: color-mix(in srgb, var(--danger-soft) 30%, var(--surface)); }
.tl-row.open.allset .tl-lane { background: var(--surface); } .avatar.ok { background: var(--ok-soft); color: var(--ok); }
.tl-lane { position: relative; flex: none; }
.tl-bg { position: absolute; inset: 0; pointer-events: auto; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to right, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px); }
.tl-off { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--surface-3) 85%, transparent) 0 6px, transparent 6px 12px); pointer-events: none; }
.tl-avail { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--ok) 12%, transparent); pointer-events: none; }
.tl-abs { position: absolute; top: 2px; height: 20px; background: #ef8a3c; color: #fff; border-radius: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; z-index: 1; pointer-events: none; overflow: hidden; white-space: nowrap; opacity: .92; }
.tl-abs span { position: sticky; left: 250px; }
.tl-abs.pending { background: repeating-linear-gradient(135deg, #ef8a3c 0 6px, #f3a86b 6px 12px); }
.tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger); z-index: 3; pointer-events: none; }
.tl-empty { position: absolute; left: 12px; top: 11px; }
.tl-ghostlabel { position: absolute; transform: translateY(-100%); background: var(--ink); color: var(--surface); font-size: 11px; padding: 2px 6px; border-radius: 4px; z-index: 20; white-space: nowrap; pointer-events: none; }
/* Einsatzkarte */
.opc { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 6px; padding: 4px 7px; cursor: pointer; box-shadow: var(--shadow-s); font-size: 12px; line-height: 1.3; overflow: hidden; z-index: 2; touch-action: none; }
.opc:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 60%, var(--line)); border-left-color: var(--c); z-index: 4; }
.opc-top { display: flex; justify-content: space-between; gap: 4px; color: var(--muted); font-size: 11px; white-space: nowrap; } .opc-top i { font-style: normal; color: var(--warn); }
.opc-ic { display: inline-flex; gap: 3px; align-items: center; color: var(--muted); } .opc-ic .miss { color: var(--danger); font-size: 11px; }
.opc-title { font-weight: 600; color: var(--ink); }
.opc-sub { margin-top: 2px; } .svc { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: color-mix(in srgb, var(--c) 80%, var(--ink)); background: color-mix(in srgb, var(--c) 13%, transparent); border-radius: 4px; padding: 0 5px; }
.svc::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--c); }
.opc.st-CANCELLED { opacity: .5; text-decoration: line-through; --c: var(--faint) !important; }
.opc.missing { border-style: dashed; border-left-style: solid; border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); }
.opc.conflict { box-shadow: 0 0 0 2px color-mix(in srgb, var(--warn) 55%, transparent); }
.opc.notime { border-style: dashed; opacity: .85; }
.opc.compact { padding: 3px 5px; } .opc.compact .opc-top { font-size: 10.5px; }
.opc.dragging { box-shadow: var(--shadow); z-index: 10; opacity: .92; cursor: grabbing; outline: 2px solid var(--accent); }
.opc.ghosted { opacity: .35; }
.rh { position: absolute; top: 0; bottom: 0; width: 7px; cursor: ew-resize; z-index: 3; } .rh.l { left: -1px; } .rh.r { right: -1px; }
.opc:hover .rh.r { background: linear-gradient(to left, color-mix(in srgb, var(--c) 45%, transparent), transparent); } .opc:hover .rh.l { background: linear-gradient(to right, color-mix(in srgb, var(--c) 45%, transparent), transparent); }
/* Wochenraster */
.wk { overflow: auto; max-height: calc(100vh - 250px); user-select: none; }
.wk-row { display: grid; grid-template-columns: 240px repeat(var(--days), minmax(132px, 1fr)); min-width: calc(240px + var(--days) * 132px); border-bottom: 1px solid var(--line); }
.wk-hdr { position: sticky; top: 0; z-index: 8; background: var(--surface); }
.wk-head { position: sticky; left: 0; z-index: 6; background: var(--surface); border-right: 1px solid var(--line); }
.wk-hdr .wk-head { padding: 10px 12px; display: flex; align-items: flex-end; }
.wk-row.open .wk-head .tl-head { background: color-mix(in srgb, var(--danger-soft) 55%, var(--surface)); }
.wk-row .tl-head { width: auto; position: static; border: 0; }
.wk-day { border: 0; border-left: 1px solid var(--line); background: none; padding: 8px 6px; font-size: 12.5px; cursor: pointer; color: var(--info); text-align: center; }
.wk-day:hover { background: var(--hover); } .wk-day.today { background: var(--soft); color: var(--accent); } .wk-day.hol { color: var(--warn); } .wk-day.we { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.wk-cell { border-left: 1px solid var(--line); padding: 4px 4px 18px; min-height: 70px; position: relative; display: flex; flex-direction: column; gap: 4px; }
.wk-row.open .wk-cell { background: color-mix(in srgb, var(--danger-soft) 30%, var(--surface)); }
.wk-cell.off { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--surface-3) 60%, transparent) 0 6px, transparent 6px 12px); }
.wk-cell.drop { box-shadow: inset 0 0 0 2px var(--accent); background: var(--soft); }
.wk-abs { background: #ef8a3c; color: #fff; border-radius: 4px; font-size: 11px; font-weight: 600; padding: 1px 6px; } .wk-abs.pending { background: repeating-linear-gradient(135deg, #ef8a3c 0 6px, #f3a86b 6px 12px); }
.wk-sum { position: absolute; right: 6px; bottom: 2px; }
.drag-float { position: fixed; z-index: 500; width: 180px; pointer-events: none; transform: rotate(-1.5deg); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 10px; } .legend span { display: inline-flex; align-items: center; gap: 5px; } .lg.travel { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--info) 35%, transparent) 0 3px, transparent 3px 6px); border-color: var(--info); }
.lg { display: inline-block; width: 14px; height: 10px; border-radius: 3px; border: 1px solid var(--line); border-left: 3px solid var(--info); background: var(--surface); }
.lg.st-IN_PROGRESS { border-left-color: #e08a1e; } .lg.st-DONE { border-left-color: var(--ok); } .lg.missing { border: 1px dashed var(--danger); border-left: 3px solid var(--danger); }
.lg.abs { background: #ef8a3c; border-color: #ef8a3c; } .lg.off { background: repeating-linear-gradient(135deg, var(--surface-3) 0 3px, transparent 3px 6px); }
.snack { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 8px 10px 8px 16px; border-radius: 10px; display: flex; align-items: center; gap: 10px; z-index: 400; box-shadow: var(--shadow); font-size: 13px; max-width: calc(100vw - 32px); }
.snack .btn.ghost { color: var(--brand); border-color: transparent; } .snack .btn.plain { color: var(--surface); border-color: transparent; }
.steps-hint { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
/* Aufträge */
.page.narrow { max-width: 1040px; margin: 0 auto; }
.people { display: inline-flex; align-items: center; } .people .avatar { margin-right: -5px; border: 2px solid var(--surface); }
.avatar.xs { width: 24px; height: 24px; font-size: 10px; } .chip .avatar.xs { width: 20px; height: 20px; font-size: 9px; border: 0; margin: -2px 2px -2px -6px; }
table.orders td { vertical-align: top; padding-top: 9px; padding-bottom: 9px; }
.ordergrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.osec h2 { gap: 8px; } .osec h2 .ic { color: var(--accent); }
.osvc { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
table.tasks { margin-top: 8px; font-size: 12.5px; } table.tasks th, table.tasks td { padding: 4px 6px; } .center { text-align: center; }
.dotc { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--faint); } .dotc.on { background: var(--accent); border-color: var(--accent); }
.oshift { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.oshift:hover { background: var(--hover); } .oshift.ended { opacity: .55; border-left-color: var(--faint); } .oshift-who { display: flex; align-items: center; gap: 10px; }
.obill { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 6px; } .obill:hover { background: var(--hover); }
.kvs { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; } .kvs > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; } .kvs span:first-child { color: var(--muted); }
.oempty { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1.5px dashed var(--line); border-radius: 8px; padding: 12px 14px; }
.stepper { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-color: var(--accent); }
.step, .wstep { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); } .step i, .wstep i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 11.5px; font-weight: 600; }
.step.ok i, .wstep.ok i { background: var(--ok); border-color: var(--ok); color: #fff; } .step.cur, .wstep.cur { color: var(--accent); font-weight: 600; } .step.cur i, .wstep.cur i { border-color: var(--accent); background: var(--soft); }
.wsteps { display: flex; gap: 6px; flex-wrap: wrap; } .wstep { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px 5px 6px; cursor: pointer; } .wstep:disabled { opacity: .5; cursor: not-allowed; } .wstep.cur { border-color: var(--accent); }
.kindcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.kindcard { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 10px; padding: 12px; cursor: pointer; color: var(--ink); }
.kindcard .ic { color: var(--muted); } .kindcard:hover { border-color: var(--accent); } .kindcard.on { border-color: var(--accent); background: var(--soft); } .kindcard.on .ic { color: var(--accent); }
.wsvc { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.preview { display: flex; gap: 10px; align-items: flex-start; background: var(--info-soft); border-radius: 8px; padding: 10px 12px; font-size: 13px; } .preview .ic { color: var(--info); margin-top: 2px; }
.chip.day { min-width: 42px; justify-content: center; }
@media (max-width: 980px) { .ordergrid { grid-template-columns: 1fr; } .kvs > div { grid-template-columns: 110px 1fr; } }
/* Abwesenheitskalender */
.abscal { overflow: auto; } .arow { display: grid; grid-template-columns: 180px repeat(var(--days), minmax(26px, 1fr)); min-width: calc(180px + var(--days) * 26px); }
.acell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 30px; padding: 3px 1px; text-align: center; font-size: 12px; cursor: pointer; position: relative; }
.acell.alabel { text-align: left; padding: 6px 10px; position: sticky; left: 0; background: var(--surface); z-index: 2; cursor: default; } .ahead .acell { cursor: default; line-height: 1.1; } .acell.we { background: color-mix(in srgb, var(--surface-2) 55%, transparent); } .acell.today { background: var(--soft); }
.abar { position: absolute; inset: 7px 0; opacity: .85; } .abar.pend { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.55) 0 3px, transparent 3px 6px) !important; }
.navshade { display: none; }
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; } .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .navopen .side { transform: none; } .navopen .navshade { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 45; }
  .burger { display: inline-flex; } .content { padding: 14px; } .top { padding: 8px 12px; } .grid2 { grid-template-columns: 1fr; } .hide-s { display: none; } .kvrow { grid-template-columns: 120px 1fr; }
}
.pagehead h1.h1s { font-size: clamp(19px, 2.2vw, 24px); flex-wrap: wrap; }
/* Abrechnung */
.flowline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); margin-top: 6px; } .flowline span { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; background: var(--surface); }
.flowline span.on { border-color: var(--accent); color: var(--accent); background: var(--soft); font-weight: 600; }
.pgroup-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; } .pgroup .tablewrap { border-top: 1px solid var(--line); }
.linkbtn.left { text-align: left; } table.t tfoot td { border-top: 2px solid var(--line); font-weight: 600; }
.pgroup-h .linkbtn { text-decoration: none; color: var(--ink); }
.tl-travel { position: absolute; bottom: 3px; height: 14px; border-radius: 4px; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--info) 35%, transparent) 0 5px, color-mix(in srgb, var(--info) 15%, transparent) 5px 10px); z-index: 1; font-size: 9px; overflow: hidden; }
.tl-travel span { position: relative; top: -1px; left: 2px; }
.tl-head { position: sticky; } .tl-head .rowmenu { position: absolute; left: 6px; top: 46px; opacity: 0; width: 28px; height: 24px; min-height: 0; padding: 0; } .tl-head:hover .rowmenu { opacity: 1; }

/* ===== Plantafel 1.2 – Mendato-Stil ===== */
.mtb { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 10px; }
.mtb-l, .mtb-r { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .mtb-r { justify-content: flex-end; }
.mtb-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.mtb .plan-title { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
@media (max-width: 1100px) { .mtb { grid-template-columns: 1fr; } .mtb .plan-title { justify-self: start; } .mtb-r { justify-content: flex-start; } }
.pop-wrap { position: relative; } .pop-wrap > .btn.on { background: var(--soft); color: var(--accent); }
.pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 270px; padding: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.pop.right { left: auto; right: 0; } .pop .search { min-width: 0; }
.pop-item { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; } .pop-label { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.pop-badge { background: var(--accent); color: #fff; border-radius: 999px; font-size: 10.5px; padding: 0 6px; margin-left: 2px; }
.avatar.grey { background: #e3e5ea; color: #4a4f5a; }
.loadbar { height: 5px; background: #e6e9ef; } .loadbar i { background: var(--info); } .loadbar.over i { background: var(--danger); }
.tl-hdr { background: var(--surface); } .tl-corner { width: 250px; justify-content: center; } .tl-head { width: 250px; padding: 9px 12px; align-items: center; }
.tl-h { color: var(--muted); font-weight: 500; font-size: 11.5px; padding: 9px 6px; } .tl-h.now { color: var(--danger); font-weight: 700; }
.tl-avail { background: color-mix(in srgb, var(--ok) 15%, transparent); pointer-events: auto; }
.tl-off { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--surface-3) 90%, transparent) 0 5px, transparent 5px 10px); pointer-events: auto; }
.tl-row.open { position: sticky; bottom: 0; z-index: 7; box-shadow: 0 -2px 6px rgba(0,0,0,.06); border-top: 1px solid var(--line); }
.tl-row.open .tl-lane, .tl-row.open.allset .tl-lane { background: color-mix(in srgb, var(--danger-soft) 35%, var(--surface)); } .tl-row.open.allset .tl-lane { background: var(--surface); }
.tl-now { width: 2px; background: var(--danger); z-index: 5; }
/* gefüllte Kacheln */
.opc { background: var(--c); color: #fff; border: 0; border-radius: 6px; padding: 5px 8px; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.opc:hover { box-shadow: 0 3px 10px rgba(0,0,0,.22); filter: brightness(1.05); }
.opc-top { color: #fff; font-size: 12px; justify-content: flex-start; align-items: center; gap: 5px; } .opc-top > b { font-weight: 700; }
.opc-ic { color: #fff; margin-left: auto; opacity: .95; } .opc-ic .miss { color: #fff; background: var(--danger); border-radius: 4px; padding: 0 4px; }
.opc-title { color: #fff; font-weight: 600; } .opc-sub { color: rgba(255,255,255,.88); font-size: 11px; margin-top: 1px; } .opc-time { opacity: .85; }
.opc .nosvc { background: #fff; color: var(--danger); border-radius: 4px; padding: 0 5px; font-size: 10.5px; }
.opc.st-DONE { background: color-mix(in srgb, var(--c) 45%, #fff); color: #fff; }
.opc.st-CANCELLED { background: repeating-linear-gradient(135deg, #b8bcc4 0 6px, #c9ccd2 6px 12px); opacity: .7; }
.opc.missing { outline: 2px dashed var(--danger); outline-offset: -2px; border: 0; }
.opc.conflict { box-shadow: 0 0 0 2px var(--warn), 0 1px 2px rgba(0,0,0,.18); }
.opc.notime { background: repeating-linear-gradient(135deg, var(--c) 0 8px, color-mix(in srgb, var(--c) 75%, #fff) 8px 16px); opacity: .9; border: 0; }
.opc.live { box-shadow: 0 0 0 2px #fff, 0 0 0 4px color-mix(in srgb, var(--danger) 70%, transparent), 0 2px 8px rgba(0,0,0,.2); }
.opc.dragging { outline: 2px solid var(--ink); }
.opc:hover .rh.r { background: linear-gradient(to left, rgba(255,255,255,.55), transparent); } .opc:hover .rh.l { background: linear-gradient(to right, rgba(255,255,255,.55), transparent); }
.wk .opc { padding: 4px 7px; }
/* roter Live-Punkt */
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #e5261b; box-shadow: 0 0 0 2px #fff; flex: none; animation: livepulse 1.6s ease-in-out infinite; }
.live-dot.inline { box-shadow: none; vertical-align: 0; margin-right: 2px; }
@keyframes livepulse { 0%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 2px rgba(229,38,27,.55); } 50% { box-shadow: 0 0 0 2px #fff, 0 0 0 7px rgba(229,38,27,0); } }
.live-dot.inline { animation-name: livepulse2; } @keyframes livepulse2 { 0%, 100% { box-shadow: 0 0 0 0 rgba(229,38,27,.55); } 50% { box-shadow: 0 0 0 5px rgba(229,38,27,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
/* geplante Anfahrt: gestrichelte Linie vor dem Einsatz */
.tl-drive { position: absolute; height: 0; border-top: 2px dashed #6a7894; z-index: 2; pointer-events: auto; cursor: help; }
.tl-drive::before { content: ''; position: absolute; left: -3px; top: -5px; width: 6px; height: 6px; border-radius: 50%; background: #6a7894; }
.tl-drive::after { content: ''; position: absolute; right: -1px; top: -6px; border: 5px solid transparent; border-left-color: #6a7894; border-right: 0; }
.tl-drive span { position: absolute; left: 50%; transform: translate(-50%, -100%); top: -3px; font-size: 10.5px; color: #4e5a72; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; background: color-mix(in srgb, var(--surface) 85%, transparent); padding: 0 3px; border-radius: 3px; }
.tl-drive.late { border-top-color: var(--danger); } .tl-drive.late::before { background: var(--danger); } .tl-drive.late::after { border-left-color: var(--danger); } .tl-drive.late span { color: var(--danger); }
.wk-drive { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: #4e5a72; font-weight: 600; margin: 0 2px -2px; cursor: help; }
.wk-drive i { flex: 1; border-top: 2px dashed #6a7894; } .wk-drive.late { color: var(--danger); } .wk-drive.late i { border-top-color: var(--danger); }
.tl-travel { bottom: 2px; height: 6px; }
/* Legende */
.lg.solid { background: var(--info); border: 0; } .lg.done { background: color-mix(in srgb, var(--info) 45%, #fff); border: 0; }
.lg.missing { background: var(--info); border: 2px dashed var(--danger); }
.lg.drive { height: 0; width: 18px; border: 0; border-top: 2px dashed #6a7894; border-radius: 0; } .lg.drive.late { border-top-color: var(--danger); }
.lg.avail { background: color-mix(in srgb, var(--ok) 22%, transparent); border: 0; }
@media print { .mtb, .legend, .pagehead .row { display: none; } .tl { max-height: none; overflow: visible; } }
/* ===== Wochenplan (Turnus A/B) ===== */
.mtb .search.sm { min-width: 150px; max-width: 190px; } .mtb .search.sm input { padding-top: 6px; padding-bottom: 6px; }
.plan-title.static { cursor: default; } .plan-title.static:hover { background: none; }
.wp { overflow: auto; max-height: calc(100vh - 230px); user-select: none; }
.wp-row { display: grid; grid-template-columns: 210px repeat(calc(var(--d) * 2), minmax(118px, 1fr)); min-width: calc(210px + var(--d) * 2 * 118px); border-bottom: 1px solid var(--line); }
.wp-weeks { position: sticky; top: 0; z-index: 9; } .wp-days { position: sticky; top: 33px; z-index: 9; background: var(--surface); }
.wp-head { position: sticky; left: 0; z-index: 6; background: var(--surface); border-right: 1px solid var(--line); padding: 8px 10px 8px 16px; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.wp-weeks .wp-head, .wp-days .wp-head { z-index: 10; align-items: flex-end; }
.wp-stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--tc); }
.wp-week { text-align: center; font-weight: 700; font-size: 13px; padding: 7px 4px; border-left: 2px solid var(--surface); color: #3c3200; }
.wp-week span { font-weight: 500; font-size: 11.5px; opacity: .8; margin-left: 6px; }
.wp-week.a { background: #f6b183; } .wp-week.b { background: #f59ce8; color: #3d0b35; }
.wp-day { font-size: 12px; font-weight: 600; padding: 6px; border-left: 1px solid var(--line); color: var(--muted); } .wp-day.first { border-left: 2px solid var(--ink-3, #9aa3b2); } .wp-day.today { color: var(--accent); background: var(--soft); }
.wp-cell { border-left: 1px solid var(--line); padding: 4px; min-height: 92px; display: flex; flex-direction: column; gap: 3px; } .wp-cell.first { border-left: 2px solid #9aa3b2; }
.wp-cell.drop { box-shadow: inset 0 0 0 2px var(--accent); background: var(--soft); }
.wp-row.open .wp-cell, .wp-row.open .wp-head { background: color-mix(in srgb, var(--danger-soft) 35%, var(--surface)); }
.wp-members { display: flex; align-items: center; gap: 2px; margin: 3px 0 2px; flex-wrap: wrap; }
.wp-slot { background: color-mix(in srgb, var(--c) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line)); border-left: 4px solid var(--c); border-radius: 5px; padding: 3px 6px; font-size: 11.5px; line-height: 1.3; cursor: grab; touch-action: none; }
.wp-slot:hover { box-shadow: var(--shadow-s); } .wp-slot.locked { cursor: pointer; background: color-mix(in srgb, var(--c) 6%, var(--surface)); } .wp-slot.ghosted { opacity: .35; }
.wp-slot.missing { border-style: dashed; border-left-style: solid; border-color: var(--danger); }
.wp-s1 { display: flex; align-items: center; gap: 4px; white-space: nowrap; } .wp-s1 b { font-weight: 700; } .wp-ic { margin-left: auto; display: inline-flex; gap: 3px; align-items: center; color: var(--muted); }
.wp-ic .miss { color: #fff; background: var(--danger); border-radius: 3px; padding: 0 3px; font-size: 10px; }
.wp-s2 { font-weight: 600; color: var(--ink); } .wp-s3 { font-size: 10.5px; color: var(--muted); }
.wp-badge { display: inline-grid; place-items: center; min-width: 15px; height: 15px; border-radius: 3px; font-size: 9.5px; font-weight: 700; background: #f6b183; color: #3c3200; padding: 0 2px; }
.wp-badge.b { background: #f59ce8; color: #3d0b35; } .wp-badge.x { background: var(--surface-3); color: var(--ink); }
@media print { .wp { max-height: none; overflow: visible; } .wp-row { min-width: 0; } }
/* Scrollen in Plantafel/Wochenplan (.card.p0 setzt sonst overflow: hidden) */
.tl.card, .wk.card, .wp.card { overflow: auto; overscroll-behavior: contain; }
.tl, .wk { max-height: calc(100vh - 215px); min-height: 320px; }
.tl-hrow { display: flex; gap: 0; } .tl-h { overflow: hidden; white-space: nowrap; }
/* ===== Zeitraum anklicken (Anfang → live → Ende) ===== */
.pickbar { display: flex; align-items: center; gap: 8px; background: var(--ink); color: var(--surface); border-radius: 10px; padding: 8px 14px; font-size: 13px; margin-bottom: 10px; box-shadow: var(--shadow); }
.pickbar.fixed { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 400; margin: 0; white-space: nowrap; }
.pickbar .btn { color: var(--surface); }
.tl.picking .tl-lane, .abscal.picking .acell, .wk-cell { cursor: crosshair; }
.tl-pick { position: absolute; top: 6px; bottom: 6px; background: color-mix(in srgb, var(--accent) 22%, transparent); border: 2px dashed var(--accent); border-radius: 6px; z-index: 9; pointer-events: none; }
.tl-pick span { position: absolute; top: -22px; left: 0; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.wk-cell.inpick { background: color-mix(in srgb, var(--accent) 16%, var(--surface)) !important; box-shadow: inset 0 0 0 1px var(--accent); }
.abscal.card { overflow: auto; }
.acell.inpick { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.abar.pickb { opacity: .9; } .abar.s { left: 3px; border-top-left-radius: 6px; border-bottom-left-radius: 6px; } .abar.e { right: 3px; border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
.picklabel { position: absolute; right: 2px; top: -14px; font-size: 10px; font-weight: 700; color: var(--accent); white-space: nowrap; z-index: 3; }
.ctxmenu { position: fixed; z-index: 450; min-width: 220px; padding: 10px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; box-shadow: var(--shadow); }
.ctxmenu .linkbtn { display: inline-flex; align-items: center; gap: 6px; }
.trb { margin-top: 8px; } .trb-track { position: relative; height: 34px; background: repeating-linear-gradient(to right, var(--surface-2) 0, var(--surface-2) calc(100% / 17 - 1px), var(--line) calc(100% / 17 - 1px), var(--line) calc(100% / 17)); border: 1px solid var(--line); border-radius: 6px; cursor: crosshair; overflow: hidden; }
.trb.dis .trb-track { cursor: default; opacity: .7; }
.trb-tick { position: absolute; bottom: 1px; font-size: 9.5px; color: var(--muted); transform: translateX(2px); pointer-events: none; }
.trb-bar { position: absolute; top: 4px; bottom: 13px; background: var(--info); border-radius: 4px; color: #fff; font-size: 10.5px; font-weight: 600; display: flex; align-items: center; padding: 0 5px; white-space: nowrap; overflow: hidden; pointer-events: none; }
.trb.picking .trb-bar { background: color-mix(in srgb, var(--accent) 70%, transparent); outline: 2px dashed var(--accent); }
.testbanner { background: #f2cf1d; color: #2b2400; font-size: 12.5px; padding: 6px 16px; text-align: center; position: sticky; top: 0; z-index: 30; }
/* ===== Übersicht (Variante C) ===== */
.dkpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
@media (max-width: 1200px) { .dkpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (max-width: 640px) { .dkpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dkpi { display: flex; flex-direction: column; gap: 2px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font: inherit; color: var(--ink); box-shadow: var(--shadow-s); }
.dkpi.click { cursor: pointer; } .dkpi.click:hover { border-color: var(--accent); }
.dkpi-l { font-size: 12px; color: var(--muted); } .dkpi-v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .dkpi-s { font-size: 11.5px; color: var(--muted); } .dkpi-s.up { color: var(--ok); } .dkpi-s.down { color: var(--danger); }
.dgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; } @media (max-width: 1000px) { .dgrid { grid-template-columns: 1fr; } }
.dutil { display: grid; grid-template-columns: 26px 150px 1fr 60px; align-items: center; gap: 10px; margin: 7px 0; } .dutil-n { font-size: 13px; } .dutil-v { font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
.dbar { height: 9px; background: var(--surface-3); border-radius: 5px; overflow: hidden; } .dbar i { display: block; height: 100%; background: var(--info); border-radius: 5px; } .dbar.over i { background: var(--danger); } .dbar.low i { background: var(--warn); } .dbar.none i { background: var(--faint); }
.dchart { display: flex; align-items: flex-end; gap: 12px; height: 180px; } .dcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; } .dcol-b { width: 100%; background: var(--surface-3); border-radius: 6px 6px 0 0; } .dcol-b.cur { background: var(--accent); }
.dwarn { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); } .dwarn-n { font-size: 18px; min-width: 30px; text-align: right; font-variant-numeric: tabular-nums; }
.dwarn-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; } .dwarn-ic.r { background: var(--danger-soft); color: var(--danger); } .dwarn-ic.y { background: var(--warn-soft); color: var(--warn); } .dwarn-ic.b { background: var(--info-soft); color: var(--info); } .dwarn-ic.g { background: var(--ok-soft); color: var(--ok); }
.dage { display: grid; grid-template-columns: 170px 1fr 110px; gap: 10px; align-items: center; margin: 7px 0; } .dage b { text-align: right; font-variant-numeric: tabular-nums; }
/* ===== Einsätze (Variante A) + Pop-up A ===== */
.opfilter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; margin-bottom: 12px; } .opfilter select { width: auto; } .opfilter .search { min-width: 240px; flex: 1; }
.optable { overflow: auto; max-height: calc(100vh - 230px); } .optable .t th { position: sticky; top: 0; z-index: 2; } .optable .r, .opm .r { text-align: right; } .optable tr.cancelled td { opacity: .55; text-decoration: line-through; }
.avatar.xs.miss { background: var(--surface); color: var(--danger); border: 1.5px dashed var(--danger); }
.optable .avatar.xs { margin-right: -4px; border: 2px solid var(--surface); }
.opm { display: flex; flex-direction: column; gap: 12px; } .opm-sub { margin-top: -8px; }
.opm-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; } @media (max-width: 700px) { .opm-facts { grid-template-columns: 1fr 1fr; } }
.opm-facts b { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; margin-bottom: 2px; }
.opm-note { background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); border-radius: 10px; padding: 9px 12px; font-size: 13px; } .opm-note.info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.opm-tabs { margin: 4px 0 0; }
.timeline { border-left: 2px solid var(--line); margin-left: 6px; padding-left: 14px; } .timeline > div { position: relative; padding: 3px 0 9px; } .timeline > div::before { content: ""; position: absolute; left: -20px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.optable .avatar.xs { display: inline-grid; vertical-align: middle; }
/* Kundenportal im Büro */
.portalcard .pmsgs { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 340px; overflow: auto; }
.pmsg { max-width: 78%; padding: 7px 11px; border-radius: 10px; background: var(--surface-2); } .pmsg.out { align-self: flex-end; background: var(--soft); } .pmsg.unread { outline: 2px solid var(--info); }
.portalinv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; border: 1px dashed var(--line); border-radius: 9px; } .portalinv .row { grid-column: 1 / -1; }
.instrrow { padding: 6px 0; border-bottom: 1px solid var(--line); } .instrrow:last-of-type { border-bottom: 0; }
/* Fotos/Videos */
.media { display: block; min-width: 0; } .media.vid { grid-column: span 2; display: flex; flex-direction: column; gap: 3px; }
.media video { width: 100%; max-height: 240px; border-radius: 8px; background: #000; }
.media.gone { grid-column: span 2; font-size: 12px; color: var(--muted); padding: 10px; border: 1px dashed var(--line); border-radius: 8px; }
.media.file { font-size: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; word-break: break-all; }
/* Schäden */
.dmg-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); } .dmg-row.done { opacity: .75; }
.dmg-row > input { margin-top: 4px; } .dmg-chk { color: var(--ok); width: 16px; margin-top: 3px; }
.dmg-date { width: 92px; flex: none; }
.photos.sm { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); max-width: 560px; }
.dmg-edit { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.dmg-photos { display: flex; gap: 6px; flex-wrap: wrap; }
.dmg-ph { position: relative; width: 78px; height: 78px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; display: grid; place-items: center; background: var(--surface-2); opacity: .45; }
.dmg-ph.on { border-color: var(--accent); opacity: 1; } .dmg-ph.off { cursor: default; opacity: .8; }
.dmg-ph img { width: 100%; height: 100%; object-fit: cover; } .dmg-ph input { position: absolute; top: 4px; left: 4px; z-index: 1; }
.grid2e { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 760px) { .grid2e { grid-template-columns: 1fr; } }
.planrow { padding: 8px 0; border-top: 1px solid var(--line); }
.roomrev input, .roomrev select { min-width: 0; padding: 4px 6px; font-size: 13px; } .roomrev td { vertical-align: top; padding: 4px; } .roomrev tr.off td { opacity: .45; } .roomrev tr.dup td { opacity: .45; }
.warn-t { color: var(--warn); }

/* 1.7.1 – Abwesenheiten in „Einsätze“, Mitarbeiter-Link in der Plantafel, Assistent-Kapazität */
.absstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--warn-soft); font-size: 13px; }
.abschip { background: var(--surface); border: 1px solid var(--warn); border-radius: 99px; padding: 2px 9px; white-space: nowrap; }
.abschip.pending { border-style: dashed; color: var(--muted); }
.optable .avatar.xs.absent { opacity: .45; outline: 2px solid var(--warn); outline-offset: -1px; text-decoration: line-through; }
.tl-head .emp-link, .wk-head .emp-link { display: block; max-width: 100%; text-align: left; padding: 0; color: var(--ink); text-decoration: none; }
.tl-head .emp-link:hover, .wk-head .emp-link:hover { color: var(--accent); text-decoration: underline; }
.capgrid { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.capgrid th, .capgrid td { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.capgrid th:first-child, .capgrid td:first-child { text-align: left; }
.capgrid td.hl, .capgrid th.hl { background: var(--accent-soft, #f3f1dd); }
.capgrid .free { color: var(--ok); } .capgrid .full { color: var(--danger); font-weight: 600; } .capgrid .abs { color: var(--warn); font-weight: 600; }
.wresume { display: flex; align-items: center; gap: 10px; }
/* 1.8 – mehrere Personen im Kundenportal */
.ptable td { vertical-align: top; } .ptable .btn.icon { margin-left: 2px; }
.invrow { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; } .invrow.off { opacity: .6; }
.invrow .invopts { margin: 8px 0 2px 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.seg.sm button { padding: 4px 10px; font-size: 12.5px; }
.contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.contact { text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--surface); font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.contact:hover { border-color: var(--accent); } .contact .pill { margin-left: 6px; }
.mandrow { gap: 10px; padding: 4px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
/* App-Rahmen (1.10.1): oben Hauptmenü-Knopf, unten Personenblock */
.fer-brand { padding: 4px 6px 14px; } .fer-brand .fer-top { min-width: 0; } .fer-brand .fer-app { font-size: 16px; }
.sidefoot .fer-user { margin-top: 0; padding: 14px 0 4px; } .sidefoot .fer-ver { padding: 6px 0 0; font-size: 11px; }
.fer-mob { display: none; } @media (max-width: 980px) { .fer-mob { display: block; } .fer-mob .fer-appbtn { width: 36px; height: 36px; flex-basis: 36px; } }
.fer-brand .fer-menu { min-width: 0; width: 212px; } .fer-brand .fer-top { gap: 10px; } .fer-brand .fer-app { gap: 8px; font-size: 15px; }
.fer-brand .fer-env { display: none; } /* Test-Hinweis zeigt der Testbalken */

/* ---------- 1.11.0: einheitlicher F&E-Rahmen 2.0 (Kopfzeile + Navigationsleiste links aus lib/fe-rahmen.php) ---------- */
.shell2 { min-height: calc(100vh - 56px); display: flex; flex-direction: column; }
.shell2 > .content { flex: 1; }
.fer-hd .pl-search { display: flex; justify-content: center; min-width: 0; }
.fer-hd .pl-search .gsearch { width: 100%; max-width: 520px; border-radius: 999px; background: #f5f5f1; border-color: #e3e3dc; }
.fer-hd .pl-search .gsearch input { padding-top: 8px; padding-bottom: 8px; }
.fer-sd a.fer-it svg.ic { color: inherit; }
.testbanner { top: 56px; }
@media (max-width: 900px) { .fer-hd .pl-search .gsearch { display: none; } .content { padding: 14px; } }
/* 1.12 – Konversationen mit dem Kunden (links Themen, rechts Verlauf) */
.opanes { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; height: 460px; }
.olist { border-right: 1px solid var(--line); overflow: auto; background: var(--surface); }
.oitem { display: flex; gap: 8px; align-items: flex-start; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 9px 10px; cursor: pointer; font: inherit; color: inherit; }
.oitem:hover { background: var(--hover); } .oitem.on { background: var(--soft); } .oitem.unread b { color: var(--accent); } .oitem .ic { margin-top: 2px; flex: none; color: var(--muted); }
.oview { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; min-width: 0; min-height: 0; }
.portalcard .omsgs { flex: 1; max-height: none; min-height: 0; background: var(--surface-2); border-radius: 8px; padding: 8px; }
.ofiles { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; } .ofiles img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; display: block; }
.ocompose textarea { resize: vertical; min-height: 48px; }
@media (max-width: 900px) { .opanes { grid-template-columns: 1fr; height: auto; } .olist { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); } .oview { min-height: 360px; } }
.t.vis td.c, .t.vis th.c { text-align: center; width: 160px; }
/* 1.13 – Auftragsseite wie Mendato, Abrechnung erstellen */
.obanner { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 10px; margin-bottom: 12px; font-size: 13.5px; border: 1px solid; }
.obanner.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); } .obanner.warn .ic { color: var(--warn); }
.obanner.danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); } .obanner.danger .ic { color: var(--danger); }
.ogrid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; } .ogrid2.tight { margin: 0; gap: 20px; }
.ogrid2 > .card { margin: 0; }
.ohead { display: flex; flex-direction: column; gap: 7px; } .ohead hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.okv { display: grid; grid-template-columns: 120px 1fr; gap: 10px; font-size: 13.5px; align-items: baseline; } .okv > span:first-child { color: var(--muted); display: inline-flex; gap: 5px; align-items: center; }
.ostat.s-DRAFT { color: var(--warn); } .ostat.s-ACTIVE { color: var(--ok); } .ostat.s-ENDED { color: var(--muted); }
.osvct td, .osvct th { vertical-align: middle; }
.oshifts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.oshiftc { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); } .oshiftc.ended { opacity: .55; }
.oshiftc .eyebrow { font-size: 11px; letter-spacing: .08em; font-weight: 600; color: var(--muted); }
.otime { font-size: 22px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.odays { display: flex; gap: 3px; flex-wrap: wrap; } .odays span { width: 27px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 11.5px; background: var(--surface-2); color: var(--faint); }
.odays span.on { background: var(--accent); color: var(--accent-ink, #fff); font-weight: 600; }
.osvcline { display: flex; gap: 6px; align-items: center; border-top: 1px solid var(--line); padding-top: 8px; } .oshiftf { border-top: 1px solid var(--line); padding-top: 8px; }
.oexempty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px 12px; } .oexempty .ic { color: var(--accent); }
.oexrow { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); } .oexrow:last-child { border-bottom: 0; }
.obillt td { vertical-align: top; } .obillt .r { text-align: right; }
.qbadge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; border: 1px solid; }
.qbadge.q-TIME_RECORD { color: color-mix(in srgb, #d81b60 80%, var(--ink)); background: color-mix(in srgb, #d81b60 12%, var(--surface)); border-color: color-mix(in srgb, #d81b60 35%, var(--line)); } .qbadge.q-PLANNED { color: var(--info); background: var(--info-soft); border-color: transparent; }
.qbadge.q-INPUT { color: var(--warn); background: var(--warn-soft); border-color: transparent; } .qbadge.q-GUESTS { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.pill.m-PER_OPERATION { background: var(--info-soft); color: var(--info); } .pill.m-RECURRING { background: var(--ok-soft); color: var(--ok); } .pill.m-ONE_TIME { background: var(--surface-2); }
tr.nobill td:first-child { box-shadow: inset 3px 0 0 var(--danger); } tr.nobill { background: color-mix(in srgb, var(--danger-soft) 45%, transparent); }

.bseg { display: flex; } .bseg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 10px; }
.bmodal .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .ogrid2 { grid-template-columns: 1fr; } .bmodal .grid3 { grid-template-columns: 1fr 1fr; } }

/* ---------- F&E App-Rahmen (identisch zu lib/fe-rahmen.php, Version 1.0.0) ---------- */
.fer-top{display:flex;align-items:center;gap:12px;min-width:0}
.fer-dd{position:relative}
.fer-appbtn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex:0 0 40px;border-radius:10px;border:1px solid rgba(127,127,127,.35);background:transparent;color:inherit;cursor:pointer;padding:0;font:inherit}
.fer-appbtn:hover{background:rgba(127,127,127,.12)}
.fer-appbtn:focus-visible,.fer-dd.open .fer-appbtn{outline:2px solid #2563eb;outline-offset:1px}
.fer-app{display:inline-flex;align-items:center;gap:10px;min-width:0;color:inherit;text-decoration:none;font-weight:700;font-size:17px;line-height:1.2}
.fer-app:hover{text-decoration:none}
.fer-app>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fer-appico{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:0 0 32px;border-radius:9px;color:#fff}
.fer-appico svg{width:18px;height:18px}
.fer-env{font-style:normal;font-size:11px;font-weight:700;background:#ea580c;color:#fff;border-radius:6px;padding:1px 6px;margin-left:6px;vertical-align:middle}
.fer-menu{display:none;position:absolute;left:0;top:calc(100% + 8px);z-index:1000;min-width:260px;max-height:70vh;overflow:auto;background:#fff;color:#23241c;border:1px solid #e4e4dc;border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.18);padding:6px;font-size:15px;font-weight:400;text-align:left}
.fer-dd.open .fer-menu{display:block}
.fer-menu a{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:8px;color:#23241c!important;text-decoration:none!important;white-space:nowrap}
.fer-menu a:hover,.fer-menu a.on{background:#f3f3ee}
.fer-dot{width:11px;height:11px;flex:0 0 11px;border-radius:3px}
.fer-menu a.fer-all{border-top:1px solid #e4e4dc;margin-top:6px;border-radius:0 0 8px 8px;padding-top:12px}
.fer-user{border-top:1px solid rgba(127,127,127,.25);padding:14px 4px 6px;margin-top:8px}
.fer-me{display:flex;align-items:center;gap:12px;min-width:0}
.fer-av{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;flex:0 0 42px;border-radius:50%;background:#f5a623;color:#23241c;font-weight:700;font-size:17px}
.fer-who{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.fer-who b{font-size:16px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fer-who small{font-size:13px;opacity:.65;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fer-links{margin-top:10px;font-size:13px;line-height:1.6;opacity:.75}
.fer-links a{color:inherit!important;text-decoration:none}
.fer-links a:hover{text-decoration:underline;opacity:1}
.fer-user.fer-inline{border-top:0;margin:0;padding:0}
.fer-user.fer-inline .fer-links{margin-top:2px}
@media print{.fer-dd,.fer-user{display:none!important}
}
