@layer reset, base, components, themes, responsive;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, h4, p { margin: 0; }
  button, input { font: inherit; }
  button { cursor: pointer; }
  button:disabled { cursor: default; opacity: .5; }
  button, a, input { -webkit-tap-highlight-color: transparent; }
  button { color: inherit; }
  [hidden] { display: none !important; }
}
@layer base {
  :root { color-scheme: light; --bg: #f6f7fb; --surface: #ffffff; --text: #23273d; --muted: #697086; --line: #e4e7ef; --brand: #00b9b3; --accent: #007873; --accent-soft: #e2f5f2; --accent-ink: #ffffff; --sidebar: #ffffff; --radius: 16px; --display: 'Bahnschrift', 'Segoe UI', sans-serif; --body: 'Segoe UI', system-ui, sans-serif; --shadow: 0 12px 35px #1a205a09; --scroll-thumb: #9ab7b2; --scroll-track: transparent; --scroll-hover: #608f88; --scroll-active: #007873; --ease: cubic-bezier(.2,.75,.2,1); }
  html { scrollbar-gutter: stable; scroll-padding-top: 90px; }
  * { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) var(--scroll-track); }
  ::-webkit-scrollbar { width: 9px; height: 9px; }
  ::-webkit-scrollbar-track { background: var(--scroll-track); }
  ::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 9px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--scroll-hover); }
  ::-webkit-scrollbar-thumb:active { background: var(--scroll-active); }
  body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--body); }
  button { border: 0; background: none; text-align: left; transition: background .18s, color .18s, box-shadow .18s; }
  button:hover { background-color: var(--accent-soft); }
  button:active { filter: brightness(.94); }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
  input { color: var(--text); background: var(--surface); }
  input::placeholder { color: var(--muted); opacity: 1; }
  .icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
  h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.2; }
  h1 { font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -1.3px; }
  h2 { font-size: 22px; letter-spacing: -.5px; }
  p { color: var(--muted); }
  .eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.6px; color: var(--muted); text-transform: uppercase; }
  .skip { position: fixed; top: -100px; left: 12px; z-index: 100; background: var(--surface); color: var(--text); padding: 12px; }
  .skip:focus { top: 12px; }
}
@layer components {
  .designbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 26px; background: #151a2b; color: #f7f8fc; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #ffffff16; }
  .lab { font-size: 12px; font-weight: 800; letter-spacing: 2px; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
  .lab span:last-child { color: #aeb4cb; font-size: 9px; letter-spacing: 1.3px; }
  .lab-dot { width: 7px; height: 7px; background: var(--brand); border-radius: 50%; box-shadow: 0 0 16px #00b9b366; }
  .variants { display: flex; padding: 4px; background: #ffffff09; border: 1px solid #ffffff17; border-radius: 12px; gap: 4px; }
  .variants button { color: #b8c0d7; padding: 9px 17px; border-radius: 8px; display: flex; align-items: center; gap: 9px; font-size: 12px; }
  .variants button:hover { background: #ffffff13; }
  .variants button[aria-pressed=true] { background: #ffffff; color: #23273d; box-shadow: 0 2px 6px #0003; }
  .variants b { font-size: 9px; opacity: .55; }
  .swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--brand); }
  .swatch.orbit { background: #284a66; box-shadow: inset 0 0 0 2px #8ce0d8; }
  .swatch.fokus { background: #2456df; }
  .demo-label { font-size: 10px; color: #aeb4cb; }
  .app-shell { display: grid; grid-template-columns: 236px minmax(0,1fr); min-height: calc(100vh - 72px); }
  .sidebar { padding: 28px 17px 18px; background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 72px; height: calc(100vh - 72px); }
  .brand { display: flex; align-items: center; font-size: 34px; letter-spacing: -2px; font-weight: 750; padding: 0 12px; align-self: start; border-radius: 8px; }
  .brand-mark { display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); width: 31px; height: 34px; margin-right: 10px; border-radius: 10px 10px 10px 3px; font-size: 31px; font-style: italic; font-family: Georgia, serif; line-height: 1; padding-bottom: 5px; }
  .brand-period { color: var(--accent); }
  .workspace { border: 1px solid var(--line); border-radius: 10px; padding: 12px 10px; margin: 28px 0; display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 600; }
  .workspace-icon { width: 28px; height: 30px; border-radius: 6px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); }
  small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
  .workspace small { font-size: 10px; margin-top: 2px; }
  .workspace-dot, .local-indicator { height: 6px; width: 6px; border-radius: 50%; background: #3d9b86; flex-shrink: 0; }
  .nav-label { font-size: 9px; letter-spacing: 1.6px; color: var(--muted); padding: 0 13px 12px; }
  .nav-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 9px; margin-bottom: 5px; color: var(--muted); font-size: 12px; }
  .nav-item.active { color: var(--accent); background: var(--accent-soft); font-weight: 650; }
  .sidebar-bottom { margin-top: auto; padding-top: 24px; }
  .preview-note { padding: 17px; background: var(--bg); border-radius: 12px; }
  .preview-note > .icon { color: var(--accent); margin-bottom: 12px; }
  .preview-note b { display: block; font-family: var(--display); line-height: 1.35; }
  .preview-note p { font-size: 11px; margin-top: 9px; }
  .profile { display: flex; gap: 10px; align-items: center; margin: 22px 10px 0; font-size: 12px; font-weight: 600; }
  .avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); border: 2px solid var(--surface); font-size: 9px; font-weight: 700; flex-shrink: 0; }
  .profile .avatar { width: 35px; height: 35px; font-size: 11px; }
  .topbar { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 38px; border-bottom: 1px solid var(--line); background: var(--surface); }
  .breadcrumb, .topbar-right { display: flex; align-items: center; gap: 13px; font-size: 11px; color: var(--muted); }
  .breadcrumb button { padding: 5px; border-radius: 4px; color: var(--muted); }
  .breadcrumb b { color: var(--text); font-weight: 500; }
  main { padding: 36px 38px 20px; max-width: 1680px; margin: auto; }
  main:focus { outline: none; }
  .page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 30px; }
  .page-heading .eyebrow { margin-bottom: 13px; font-size: 9px; }
  .heading-dash { margin: 0 9px; opacity: .5; }
  .subheading { font-size: 12px; margin-top: 10px; }
  .button { padding: 11px 16px; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 11px; font-weight: 600; white-space: nowrap; background: var(--surface); }
  .button .icon { width: 16px; height: 16px; }
  .button.primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 10px #24204b12; }
  .button.primary:hover { filter: brightness(.94); box-shadow: 0 4px 16px #24204b22; }
  .button.ghost { background: transparent; }
  .overview-strip { display: grid; grid-template-columns: repeat(4,1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 8px; margin-bottom: 34px; }
  .overview-strip > div { display: flex; gap: 14px; align-items: center; justify-content: center; border-right: 1px solid var(--line); }
  .overview-strip > div:last-child { border: 0; }
  .overview-strip strong { font-size: 24px; letter-spacing: -.7px; line-height: 1.1; font-family: var(--display); font-weight: 600; }
  .overview-strip small { font-size: 10px; margin-top: 5px; }
  .mini-icon { width: 34px; height: 34px; background: var(--bg); border-radius: 11px; display: grid; place-items: center; color: var(--muted); }
  .progress-stat > svg { width: 42px; height: 42px; fill: none; stroke-width: 3; transform: rotate(-90deg); }
  .ring-bg { stroke: var(--line); }.ring { stroke: var(--accent); stroke-dasharray: 85 114; stroke-linecap: round; }
  .section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
  .section-head .eyebrow { display: block; font-size: 9px; margin-bottom: 8px; }
  .section-hint { font-size: 10px; color: var(--muted); }
  .modules-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 38px; }
  .module-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .24s var(--ease), box-shadow .24s, border-color .24s; }
  .module-card:hover { transform: translateY(-5px); border-color: var(--accent); background: var(--surface); box-shadow: 0 15px 30px #24204b12; }
  .module-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }.module-top > .icon { color: var(--muted); width: 16px; }
  .module-icon { display: inline-grid; place-items: center; height: 42px; width: 42px; border-radius: 12px; background: var(--tint, var(--accent-soft)); color: var(--ink, var(--accent)); flex-shrink: 0; }
  .brand-area { --tint: var(--accent-soft); --ink: var(--accent); }.blue { --tint: #e9f0fd; --ink: #3869b6; }.mint { --tint: #e2f3ed; --ink: #287f65; }.amber { --tint: #fcf0da; --ink: #94631b; }
  .module-card .eyebrow { font-size: 8px; letter-spacing: 1px; margin-bottom: 6px; }
  .module-card h3 { font-size: 16px; margin-bottom: 9px; }.module-card p { font-size: 11px; line-height: 1.7; margin-bottom: 20px; }
  .module-meta { display: flex; justify-content: space-between; align-items: center; gap: 5px; font-size: 9px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); margin-top: auto; }.module-meta .icon { width: 13px; }
  .view-switch { display: flex; padding: 3px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; }.view-switch button { display: grid; place-items: center; width: 32px; height: 29px; border-radius: 5px; color: var(--muted); }.view-switch .icon { width: 16px; }.view-switch [aria-pressed=true] { color: var(--accent); background: var(--accent-soft); }
  .task-toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 20px; align-items: center; }.filters { display: flex; gap: 8px; }.filters button { font-size: 10px; padding: 7px 11px; border-radius: 7px; color: var(--muted); }.filters [aria-pressed=true] { color: var(--accent); background: var(--accent-soft); font-weight: 650; }
  .searchbox { display: flex; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 0 9px; height: 35px; gap: 7px; }.searchbox > .icon { width: 14px; color: var(--muted); }.searchbox input { border: 0; background: transparent; width: 155px; font-size: 10px; min-width: 0; outline-offset: 2px; }.searchbox button { padding: 2px; border-radius: 4px; }.searchbox button .icon { width: 14px; height: 14px; }input[type=search]::-webkit-search-cancel-button { display: none; }
  .board { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; min-height: 270px; }.board-column { background: color-mix(in srgb, var(--line) 28%, transparent); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }.board-column > h3 { font: 600 11px var(--body); display: flex; gap: 8px; align-items: center; margin-bottom: 15px; }.stage-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: #8c91a5; flex-shrink: 0; }.stage-dot.stage-1 { background: #c89136; }.stage-dot.stage-2 { background: #438b72; }.count { color: var(--muted); margin-left: auto; font-size: 10px; }
  .task-card { display: block; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 15px; margin-bottom: 10px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }.task-card:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--surface); }.task-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }.task-meta > .icon { width: 14px; color: var(--muted); }.priority { background: var(--bg); color: var(--muted); font-size: 8px; border-radius: 4px; padding: 3px 7px; }.priority.urgent { background: #fff0eb; color: #a84929; }.task-card h4 { font: 600 12px/1.5 var(--body); margin-bottom: 7px; }.task-card p { font-size: 9px; }.task-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; color: var(--muted); font-size: 9px; }.task-footer .icon { width: 12px; height: 12px; margin-right: 4px; }.column-empty { padding: 28px 0; font-size: 11px; text-align: center; }
  .task-list { min-height: 270px; display: flex; flex-direction: column; gap: 8px; }.task-row { display: flex; align-items: center; gap: 15px; width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 11px; }.task-row > span:nth-child(2) { flex: 1; }.task-row small { font-size: 10px; margin-top: 3px; }.task-row > .icon { width: 16px; }.task-check { color: var(--muted); }.task-check.stage-2 { color: #438b72; }.badge { padding: 5px 9px; border: 1px solid var(--line); border-radius: 5px; font-size: 9px; color: var(--muted); white-space: nowrap; }
  .empty { min-height: 270px; border: 1px dashed var(--line); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; padding: 25px; text-align: center; }.empty p { font-size: 12px; }.empty > .icon { width: 32px; height: 32px; color: var(--muted); }
  .app-footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 36px; font-size: 9px; color: var(--muted); }.app-footer > span:first-child { font-weight: 700; }.app-footer > span:first-child span { font-weight: 400; margin-left: 7px; }
  .back-link { font-size: 12px; margin-bottom: 22px; padding: 6px; border-radius: 5px; color: var(--muted); }.module-banner { display: flex; align-items: center; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; margin: 10px 0 35px; }.module-banner p { font-size: 12px; margin-top: 8px; }.module-banner > .badge { margin-left: auto; }
  .toast { position: fixed; z-index: 50; bottom: 24px; left: 50%; transform: translate(-50%,20px); opacity: 0; pointer-events: none; max-width: min(90vw,650px); padding: 14px 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--text); color: var(--surface); box-shadow: 0 15px 50px #0003; font-size: 12px; transition: transform .25s, opacity .25s; }.toast.visible { opacity: 1; transform: translate(-50%,0); }
  dialog { background: var(--surface); color: var(--text); padding: 0; border: 1px solid var(--line); box-shadow: 0 30px 100px #0005; max-height: calc(100dvh - 32px); }dialog::backdrop { background: #12182c66; backdrop-filter: blur(5px); }body:has(dialog[open]) { overflow: hidden; }
  .detail { width: 490px; max-width: calc(100vw - 20px); margin: 16px 16px 16px auto; height: calc(100dvh - 32px); border-radius: 18px; }.detail[open] { display: flex; flex-direction: column; animation: drawer-in .36s var(--ease); }
  .dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line); flex-shrink: 0; }.dialog-header .eyebrow { font-size: 9px; }.icon-button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; }.icon-button .icon { width: 16px; }.detail-body { padding: 30px; overflow: auto; flex: 1; }.detail-body h2 { font-size: 30px; line-height: 1.25; margin: 18px 0; }.detail-site { display: flex; align-items: center; gap: 8px; font-size: 12px; }.detail-site .icon { width: 15px; }.detail-description { font-size: 14px; line-height: 1.8; margin: 28px 0; color: var(--muted); }.detail-facts { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 30px; }.detail-facts > div { display: flex; align-items: center; justify-content: space-between; min-height: 36px; font-size: 12px; }.detail-facts > div > span { color: var(--muted); }.detail-facts b { font-weight: 500; display: flex; align-items: center; gap: 8px; }.detail-body h3 { font-size: 16px; margin-bottom: 14px; }
  .status-options { display: flex; flex-direction: column; gap: 8px; }.status-options button { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-size: 12px; }.status-options [aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); }.status-options .icon { margin-left: auto; width: 16px; }.activity { padding: 22px; background: var(--bg); border-radius: 12px; margin-top: 28px; }.activity h3 { margin: 10px 0; }.activity p { font-size: 12px; }.dialog-footer { padding: 20px 26px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; flex-shrink: 0; }.dialog-footer > span { font-size: 10px; color: var(--muted); }
  .wizard { width: 1000px; max-width: calc(100vw - 32px); border-radius: 20px; margin: auto; }.wizard[open] { animation: wizard-in .35s var(--ease); display: flex; flex-direction: column; }.wizard-layout { display: grid; grid-template-columns: 310px minmax(0,1fr); overflow: auto; }.wizard-aside { padding: 36px; background: var(--accent); color: var(--accent-ink); }.wizard-aside .module-icon { background: #ffffff20; color: inherit; }.wizard-aside h2 { font-size: 36px; letter-spacing: -1px; margin: 30px 0 18px; }.wizard-aside p, .wizard-aside small { color: inherit; opacity: .85; }.wizard-aside p { font-size: 13px; }.wizard-aside ol { list-style: none; padding: 0; margin: 40px 0; }.wizard-aside li { display: flex; align-items: center; gap: 12px; font-size: 12px; padding: 13px 0; opacity: .6; }.wizard-aside li[aria-current],.wizard-aside li.done { opacity: 1; }.wizard-aside li > span { border: 1px solid currentColor; width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; }.wizard-aside .icon { width: 15px; height: 15px; }.wizard-aside small { font-size: 10px; }
  #inspection-form { display: flex; flex-direction: column; min-width: 0; }.wizard-body { padding: 44px; min-height: 450px; animation: step-in .28s var(--ease); }.wizard-body h3 { font-size: 29px; margin: 15px 0; letter-spacing: -.6px; }.wizard-body p { font-size: 12px; line-height: 1.8; margin-bottom: 25px; }.wizard-body label:not(.inspection-check) { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; }.wizard-body input:not([type=checkbox]) { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: 13px; }.wizard-body input[aria-invalid=true] { border-color: #b34931; }.wizard-body .field-error { color: #b34931; font-size: 11px; min-height: 17px; margin: 4px 0 12px; }.inline-note { padding: 14px; background: var(--bg); border-radius: 8px; color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 20px; }.inline-note .icon { width: 15px; margin-right: 5px; }.wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 22px 30px; margin-top: auto; }.wizard-actions > span { font-size: 10px; color: var(--muted); }
  .inspection-checks { display: grid; gap: 12px; margin: 25px 0; }.inspection-check { display: flex; align-items: center; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; position: relative; }.inspection-check input { position: absolute; opacity: 0; width: 24px; height: 24px; }.inspection-check > span { border: 1px solid var(--line); border-radius: 6px; width: 25px; height: 25px; display: grid; place-items: center; flex-shrink: 0; }.inspection-check .icon { opacity: 0; width: 16px; }.inspection-check input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }.inspection-check input:checked + span .icon { opacity: 1; }.inspection-check:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }.inspection-check b { font-size: 12px; font-weight: 500; }.inspection-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }.summary-card { border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin: 20px 0; }.summary-card h4 { margin: 15px 0 5px; font-size: 20px; }.summary-card p { margin-bottom: 15px; }.summary-card strong { font-size: 12px; color: var(--accent); }
  ::view-transition-old(root) { animation: page-out .16s ease both; }::view-transition-new(root) { animation: page-in .35s var(--ease) both; }
  @keyframes drawer-in { from { transform: translateX(100%); opacity: .3; } to { transform: translateX(0); opacity: 1; } }@keyframes wizard-in { from { transform: translateY(30px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }@keyframes step-in { from { transform: translateX(18px); opacity: 0; } to { transform: none; opacity: 1; } }@keyframes page-out { to { opacity: 0; transform: translateY(-8px); } }@keyframes page-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* Standalone Fachapps besitzen keinen zusätzlichen Kopf oberhalb der Seitenleiste. */
.app-shell>.sidebar{top:0;height:100dvh}.app-shell>div{min-width:0}
@media(max-width:760px){.app-shell>.sidebar{position:static;top:auto;height:auto;min-height:0}}
