:root{color-scheme:light;--blue:#006ab5;--blue-hover:#00558f;--text:#1c2735;--muted:#5a697a;--surface:#fff;--bg:#f2f5f8;--line:#d7dfe7;--soft:#eaf2fa;--danger:#a42626;--ok:#087042;--nav:#1e2630;--nav-text:#e4edf6;--focus:#f5aa2e;--rt-ui-gap:.75rem;--rt-block-gap:1.25rem}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--text:#f1f5f9;--muted:#bdc7d2;--surface:#333;--bg:#25282d;--line:#555e66;--soft:#3e4c5b;--blue:#56b8ff;--blue-hover:#98d7ff;--danger:#ff9999;--ok:#77dab0;--nav:#202329;--nav-text:#eef1f6}}
:root[data-theme=dark]{color-scheme:dark;--text:#f1f5f9;--muted:#bdc7d2;--surface:#333;--bg:#25282d;--line:#555e66;--soft:#3e4c5b;--blue:#56b8ff;--blue-hover:#98d7ff;--danger:#ff9999;--ok:#77dab0;--nav:#202329;--nav-text:#eef1f6}
*{box-sizing:border-box}html{scroll-behavior:smooth}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.56 system-ui,-apple-system,'Segoe UI',sans-serif}h1,h2,h3,h4,p{margin-top:0}h1{font-size:clamp(1.75rem,3vw,2.3rem);line-height:1.2;letter-spacing:-.02em}h2{font-size:1.3rem;line-height:1.35}h3{font-size:1.1rem;line-height:1.4}h4{font-size:1rem;line-height:1.4}a{color:var(--blue)}a:hover{text-decoration:underline;color:var(--blue-hover)}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:2px}button,input,select,textarea{font:inherit}button{cursor:pointer}pre,code{white-space:pre-wrap;overflow-wrap:anywhere}small,.small{font-size:1rem}.tiny{font-size:1rem}.muted{color:var(--muted)}.eyebrow{font-size:1rem;letter-spacing:.11em;text-transform:uppercase;font-weight:800;color:var(--blue);margin-bottom:.3rem}.lead{color:var(--muted);max-width:65ch}.shell{min-height:100vh;display:grid;grid-template-columns:268px minmax(0,1fr)}.sidebar{min-width:0;background:var(--nav);color:var(--nav-text);display:flex;flex-direction:column;padding:1.3rem 1rem;gap:1.7rem}.brand{display:flex;align-items:center;gap:1rem;color:inherit;text-decoration:none;padding:.55rem}.brand:hover{color:inherit;text-decoration:none}.brand-symbol{background:linear-gradient(135deg,#006ab5 0%,#009416 65%,#eda509 100%);border-radius:6px;min-width:48px;height:48px;display:grid;place-items:center;font-weight:800;color:white}.brand strong{display:block;font-size:1.2rem;line-height:1.2}.brand small{display:block;opacity:.7;font-size:1rem}.menu{display:grid;gap:.3rem}.menu a{display:flex;gap:1rem;align-items:center;min-height:46px;padding:.6rem 1rem;border-radius:6px;text-decoration:none;color:var(--nav-text);font-weight:550}.menu a:hover,.menu a:focus-visible{background:#3d4b58;color:#fff}.side-bottom{margin-top:auto;padding:.5rem;color:#bcc8d7;font-size:1rem}.side-bottom p{margin:.3rem 0}.workarea{min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;background:var(--surface);border-bottom:1px solid var(--line);min-height:74px;padding:1rem clamp(1rem,3vw,2.4rem)}.small-label{font-weight:600}.top-actions,.action-row,.form-footer{display:flex;flex-wrap:wrap;gap:var(--rt-ui-gap);align-items:center}.top-actions form{margin:0}.content{padding:clamp(1rem,3vw,2rem)}.content-container{max-width:1380px;margin:0 auto}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;margin-bottom:1.5rem;flex-wrap:wrap}.page-head h1{margin-bottom:.4rem}.page-head .lead{margin-bottom:0}.back-link{display:inline-block;margin-bottom:1rem;text-decoration:none}.btn{border:1px solid transparent;border-radius:6px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:.3rem;padding:.55rem 1.05rem;font-weight:650;font-size:1rem;text-decoration:none;line-height:1.25;transition:background 160ms,border-color 160ms,color 160ms}.btn:hover{text-decoration:none}.btn.primary{background:#006ab5;color:#fff;border-color:#00558f}.btn.primary:hover{background:#00558f;color:#fff}.btn.outline{background:var(--surface);color:var(--text);border-color:var(--line)}.btn.outline:hover,.btn.subtle:hover{background:var(--soft);color:var(--text)}.btn.subtle{background:transparent;border-color:var(--line);color:var(--text)}.btn.small{min-height:44px;font-size:1rem;padding:.45rem 1rem}.btn.danger{border-color:var(--danger);color:var(--danger);background:transparent}.btn.danger:hover{background:var(--soft)}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:1.3rem}.stat{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:1.25rem;display:grid;gap:.2rem}.stat strong{font-size:1.35rem;line-height:1.3}.stat span{font-size:1rem;color:var(--muted)}.panel{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:clamp(1rem,2.5vw,1.6rem);margin-bottom:1.3rem}.table-wrap{overflow-x:auto}.table-wrap table{border-collapse:collapse;width:100%;min-width:650px}.table-wrap th,.table-wrap td{text-align:left;padding:1rem .75rem;border-bottom:1px solid var(--line);vertical-align:top}.table-wrap th{font-size:1rem;color:var(--muted)}.table-wrap tbody tr:last-child td{border-bottom:0}.project-link{font-weight:700}.pill{display:inline-block;border:1px solid var(--line);background:var(--soft);border-radius:20px;padding:.25rem .65rem;font-size:1rem;white-space:normal}.empty-state{text-align:center;padding:3rem}.empty-state p{max-width:65ch;margin-inline:auto}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.1rem 1.25rem}.form-grid.single{grid-template-columns:1fr}.form-grid .full{grid-column:1/-1}.form-grid label,.inline-form label{font-weight:650;display:grid;gap:.35rem}.form-grid input,.form-grid select,.form-grid textarea,.inline-form input{width:100%;min-height:44px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:6px;padding:.65rem 1rem}.form-grid textarea{resize:vertical;min-height:92px}.form-grid input[type=file]{padding:.55rem}.form-footer{margin-top:.2rem}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}.detail-list{display:grid;grid-template-columns:160px minmax(0,1fr);column-gap:1rem;row-gap:.75rem}.detail-list dt{font-weight:650;color:var(--muted)}.detail-list dd{margin:0;overflow-wrap:anywhere}.section-links{display:grid;gap:.15rem}.section-links a{display:flex;justify-content:space-between;gap:1rem;text-decoration:none;color:var(--text);border-bottom:1px solid var(--line);padding:.5rem .1rem;min-height:44px}.section-links a:hover{color:var(--blue)}.count{font-weight:750;color:var(--muted)}.plan-sections{margin-top:1.75rem}.section-heading{margin-bottom:1.2rem}.plan-panel{scroll-margin-top:1rem}.plan-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.plan-head h3{margin-bottom:0}.plan-item{border-top:1px solid var(--line);padding:1.2rem 0}.plan-item:last-child{padding-bottom:0}.item-top{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.item-kind{font-size:1rem;text-transform:uppercase;letter-spacing:.06em;font-weight:800;color:var(--blue)}.item-top h4{margin:.2rem 0 .5rem}.description{white-space:normal;overflow-wrap:anywhere}.item-footer{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}.item-footer a{min-height:44px;display:flex;align-items:center}.inline-form{display:flex;gap:.7rem;flex-wrap:wrap;align-items:flex-end;margin:.5rem 0}.inline-form label{flex:1;min-width:200px}.version-list{list-style:none;padding:0;margin:1.2rem 0 0}.version-list li{border-top:1px solid var(--line);padding:.7rem 0;display:flex;gap:1rem;align-items:center;flex-wrap:wrap}.danger-area{border-color:var(--danger)}.roadmap-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem}.roadmap-list .panel{margin-bottom:0}.status{font-size:1rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.status.ready{color:var(--ok)}.status.next{color:var(--muted)}.auth-wrapper{min-height:100vh;display:grid;place-items:center;padding:1rem}.auth-card{background:var(--surface);border:1px solid var(--line);padding:clamp(1.2rem,4vw,2.6rem);border-radius:10px;width:min(100%,525px);box-shadow:0 16px 52px #0000000d}.auth-brand{color:var(--text);margin-bottom:2rem;padding:0}.auth-card .form-grid{margin-top:1.4rem}.secret{padding:1rem;background:var(--soft);border:1px solid var(--line);border-radius:6px;overflow-wrap:anywhere;font-size:1.15rem;letter-spacing:.08em;font-weight:700}.alert{padding:1rem;border-radius:6px;margin:1rem 0;background:var(--soft);border:1px solid var(--line)}.alert.error{border-color:var(--danger)}.installer-checks{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin:1rem 0 1.5rem}.installer-check{display:flex;justify-content:space-between;gap:.6rem;border:1px solid var(--line);padding:.65rem;border-radius:6px}.ok{color:var(--ok)}.fail{color:var(--danger)}.installer-wrap{max-width:860px;margin:1.5rem auto;padding:1rem}.installer-wrap .panel{padding:clamp(1rem,3vw,2rem)}
@media(max-width:1070px){.shell{grid-template-columns:268px minmax(0,1fr)}.two-col{grid-template-columns:1fr}}@media(max-width:780px){.sidebar{padding:.6rem 1rem;gap:.2rem}.sidebar .brand{padding:.5rem}.menu{display:flex;gap:.3rem;overflow-x:auto;padding:.25rem 0}.menu a{white-space:nowrap;min-height:44px}.side-bottom{display:none}.topbar{min-height:60px;flex-wrap:wrap}.stats{grid-template-columns:1fr}.roadmap-list{grid-template-columns:1fr}.form-grid,.installer-checks{grid-template-columns:1fr}.detail-list{grid-template-columns:1fr;row-gap:.2rem}.detail-list dd{margin-bottom:.65rem}}@media(max-width:470px){.topbar .small-label{flex-basis:100%}.page-head .action-row{width:100%}.page-head .btn{flex:1}.btn{width:auto}.item-top{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Original RT brand assets – no recreated letterforms. */
.brand-icon{width:48px;height:48px;flex:none;object-fit:contain;border-radius:6px}
.auth-identity{display:grid;justify-items:start;gap:.15rem;margin-bottom:1.7rem}
.brand-wordmark{width:min(100%,330px);height:auto;object-fit:contain;object-position:left center}
.product-name{font-size:1.35rem;line-height:1.4;margin-top:.35rem}
.installer-identity{margin-bottom:1.3rem}
.logo-dark{display:none}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .logo-light{display:none}:root:not([data-theme=light]) .logo-dark{display:block}}
:root[data-theme=dark] .logo-light{display:none}
:root[data-theme=dark] .logo-dark{display:block}
:root[data-theme=light] .logo-light{display:block}
:root[data-theme=light] .logo-dark{display:none}
.planning-metric{margin:0 0 1.25rem}
.section-progress{display:flex;align-items:center;gap:1rem;margin:-.25rem 0 .6rem}
.section-progress progress{accent-color:#006ab5;width:min(100%,250px);height:14px;min-width:100px}


/* v0.1.2: overflow-safe, consistently sized RT brand and planner controls. */
.sidebar .brand{min-width:0;gap:.7rem;padding:.5rem .3rem}
.sidebar .brand>span{min-width:0;overflow-wrap:anywhere}
.sidebar .brand strong{font-size:1.05rem;line-height:1.3}
.sidebar .brand small{font-size:1rem;line-height:1.3}
.sidebar .side-bottom{min-width:0;border-top:1px solid rgba(255,255,255,.14);padding:.95rem .3rem .2rem;overflow:hidden}
.sidebar-company-frame{display:block;width:100%;max-width:200px;overflow:hidden;margin-bottom:1rem}
.sidebar-company{display:block;width:100%;max-width:100%;height:auto;object-fit:contain;object-position:left center;margin:0}
.project-filters{display:grid;grid-template-columns:minmax(220px,2fr) minmax(175px,1fr) minmax(175px,1fr) auto auto;gap:1rem;align-items:end}
.project-filters label{display:flex;flex-direction:column;align-items:stretch;gap:.4rem;min-width:0;font-size:1rem;line-height:1.4;font-weight:650}
.project-filters input,.project-filters select{display:block;min-width:0;width:100%;height:46px;min-height:46px;padding:.55rem .75rem;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:6px}
.project-filters .btn{white-space:nowrap;height:46px;min-height:46px}
@media(max-width:1320px){.project-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:950px){.project-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){.sidebar-company-frame{display:none}}
@media(max-width:620px){.project-filters{grid-template-columns:1fr}.project-filters .btn{width:100%}}

/* 0.1.3 – Auswahl von fachlichen Planungsvorlagen und Planungsvergleich. */
.planner-guidance{display:flex;justify-content:space-between;align-items:center;gap:1.25rem;flex-wrap:wrap;margin-bottom:1.25rem}
.planner-guidance h2{margin:.15rem 0 .45rem}.planner-guidance p:last-child{margin-bottom:0}
.notice{border:1px solid var(--line);border-radius:6px;padding:.85rem 1rem;margin:0 0 1.2rem}
.notice.info{background:var(--soft)}
.template-list{display:grid;gap:.85rem;margin:1.2rem 0}
.template-item{display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:start;gap:1rem;padding:1rem;border:1px solid var(--line);border-radius:6px;cursor:pointer}
.template-item:hover:not(.is-existing){border-color:var(--blue)}
.template-item input[type=checkbox]{width:20px;height:20px;margin:.2rem 0 0;accent-color:#006ab5}
.template-info{display:grid;gap:.35rem;min-width:0;line-height:1.5}
.template-info strong{font-size:1.05rem}.template-info>span{overflow-wrap:anywhere}
.template-meta{text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-size:1rem;font-weight:650}
.template-state{white-space:nowrap;font-size:1rem;color:var(--muted)}
.template-item.is-existing{opacity:.7;cursor:default;background:var(--bg)}
.template-actions{padding-top:.75rem}
.compare-field{padding:1.15rem 0;border-top:1px solid var(--line)}.compare-field:first-of-type{border-top:0}
.compare-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:.5rem}
.compare-columns>div{min-width:0;border:1px solid var(--line);border-radius:6px;padding:1rem;overflow-wrap:anywhere}
.compare-columns p{margin:.5rem 0 0;white-space:normal}
.comparison-list{padding-left:1.5rem}.comparison-list li{padding:.25rem 0}
@media(max-width:720px){.template-item{grid-template-columns:26px minmax(0,1fr)}.template-state{grid-column:2}.compare-columns{grid-template-columns:1fr}}

/* v0.1.4 – geführter Planungsleitfaden */
.workflow-summary{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;flex-wrap:wrap}
.workflow-summary h2{margin:.3rem 0}.workflow-summary-progress{display:grid;gap:.3rem;min-width:min(100%,250px)}
.workflow-summary-progress strong{font-size:1.8rem;line-height:1.2}.workflow-summary-progress progress{width:100%;height:16px;accent-color:var(--blue)}
.workflow-steps{list-style:none;margin:1.2rem 0;padding:0;display:grid;gap:1rem;counter-reset:step}
.workflow-step{margin:0;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:start;gap:1rem}
.workflow-number{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--soft);font-weight:750}
.workflow-title{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap}
.workflow-title h2{margin:0 0 .4rem}.workflow-state{font-size:1rem;font-weight:700;color:var(--muted)}
.workflow-step.is-complete .workflow-state{color:var(--ok)}.workflow-step-body p{margin:0}
.workflow-missing{padding-left:1.3rem;margin:.65rem 0 0}.workflow-missing li{margin:.3rem 0}
.workflow-decision{margin-top:1rem}.workflow-approval-form{display:flex;align-items:end;gap:1rem;flex-wrap:wrap;margin-top:1rem}
.workflow-approval-form label{display:grid;gap:.4rem;font-weight:650;flex:1;min-width:220px}
.workflow-approval-form input{width:100%;min-height:46px;border:1px solid var(--line);border-radius:6px;padding:.6rem .8rem;background:var(--surface);color:var(--text)}
.workflow-approval-form button:disabled,.workflow-approval-form input:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:840px){.workflow-step{grid-template-columns:44px minmax(0,1fr)}.workflow-step>.btn{grid-column:2;justify-self:start}}
@media(max-width:540px){.workflow-step{grid-template-columns:1fr}.workflow-number{width:38px;height:38px}.workflow-step>.btn{grid-column:1}.workflow-approval-form button{width:100%}}

/* 0.1.5 – projektübergreifende offene Punkte und Entscheidungsregister */
.worklist-filters{display:grid;grid-template-columns:repeat(4,minmax(155px,1fr));gap:1rem;align-items:end}
.worklist-filters label{display:grid;gap:.45rem;min-width:0;font-weight:650;line-height:1.4}
.worklist-filters select{width:100%;min-width:0;min-height:46px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--text);padding:.6rem .75rem}
.worklist-actions{display:flex;gap:.5rem;align-items:end;grid-column:1/-1;flex-wrap:wrap}
.worklist-results{padding:0;overflow:hidden}.worklist-result-head{display:flex;gap:1rem;justify-content:space-between;align-items:center;flex-wrap:wrap;padding:1.1rem 1.3rem;border-bottom:1px solid var(--line)}
.worklist-result-head h2{margin:0}.worklist-entries{list-style:none;margin:0;padding:0}.worklist-entry{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.1rem 1.3rem;border-bottom:1px solid var(--line)}
.worklist-entry:last-child{border-bottom:0}.worklist-main{min-width:0;overflow-wrap:anywhere}.worklist-main h3{margin:.35rem 0;font-size:1.1rem;line-height:1.4}.worklist-main p{margin:0}.worklist-meta{display:flex;gap:.55rem;flex-wrap:wrap;align-items:center;font-size:1rem;color:var(--muted)}
.worklist-meta span{padding:.1rem .4rem;border:1px solid var(--line);border-radius:4px}.worklist-overdue{color:var(--danger)}.worklist-links{display:flex;gap:.5rem;flex-wrap:wrap;flex:none}.project-worklist-links{display:flex;gap:.7rem;flex-wrap:wrap;margin:0 0 1.3rem}
@media(max-width:1100px){.worklist-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.worklist-entry{align-items:flex-start;flex-direction:column}}
@media(max-width:620px){.worklist-filters{grid-template-columns:1fr}.worklist-actions .btn{flex:1}.worklist-links{width:100%}.worklist-links .btn{flex:1}}

/* 0.1.6-alpha: lesbares Aufgabenboard, mobil ohne horizontales Überlaufen. */
.task-filter{display:flex;flex-wrap:wrap;gap:.75rem;align-items:end}.task-filter label{display:grid;gap:.35rem;font-weight:650;flex:1 1 270px;min-width:0}.task-filter select,.task-status-form select{min-height:44px;width:100%;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--text);padding:.55rem .75rem}.task-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.75rem;margin-bottom:1.3rem}.task-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:start}.task-column{min-width:0}.task-column-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line);padding-bottom:.75rem;margin-bottom:1rem}.task-column-head h2{margin:0}.task-card{border:1px solid var(--line);background:var(--bg);border-radius:6px;padding:1rem;margin-top:.75rem;min-width:0;overflow-wrap:anywhere}.task-card-top{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.5rem}.task-card h3{margin:.75rem 0 .35rem;line-height:1.4}.task-card p{margin-bottom:.75rem}.task-meta{display:flex;flex-wrap:wrap;gap:.3rem 1rem;color:var(--muted);font-size:1rem}.task-overdue{color:var(--danger);font-weight:700}.task-status-form{margin-top:1rem;border-top:1px solid var(--line);padding-top:.75rem;display:grid;gap:.55rem}.task-status-form label{font-weight:600}.task-card-actions{display:flex;gap:1rem;flex-wrap:wrap;margin-top:.85rem}.task-card-actions a{min-height:44px;display:inline-flex;align-items:center}.task-stats .stat{padding:.8rem}
@media(max-width:1150px){.task-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.task-board{grid-template-columns:1fr}.task-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.task-filter .btn{flex:1 1 140px}}

/* 0.1.7-alpha: barrierearm bedienbare Demodatenverwaltung */
.demo-form{display:grid;gap:1.1rem}
.demo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin:1rem 0}
.demo-option,.demo-row{display:flex;align-items:flex-start;gap:.8rem;min-width:0}
.demo-option{border:1px solid var(--line);border-radius:6px;padding:1rem;cursor:pointer;background:var(--surface)}
.demo-option.is-installed{opacity:.7;cursor:default}
.demo-option input[type=checkbox],.demo-row input[type=checkbox]{flex:0 0 20px;width:20px;height:20px;margin:.25rem 0 0;accent-color:var(--blue)}
.demo-description{display:grid;gap:.35rem;flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.5}
.demo-description strong{font-size:1rem;line-height:1.5}
.demo-description>span{font-size:1rem;color:var(--muted)}
.demo-option .pill,.demo-row .pill{flex:none;white-space:nowrap}
.demo-password,.demo-danger-zone label,.demo-keep-form label{display:grid;gap:.4rem;font-weight:650;min-width:0}
.demo-password{max-width:440px}
.demo-password input,.demo-danger-zone input,.demo-keep-form input{width:100%;min-height:44px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:6px;padding:.6rem .75rem;font-size:1rem}
.demo-entries{display:grid;gap:.65rem;margin:1rem 0}
.demo-entry{display:flex;flex-wrap:wrap;gap:.9rem;align-items:center;padding:1rem;border:1px solid var(--line);border-radius:6px;min-width:0}
.demo-entry .demo-row{flex:1 1 420px;align-items:center;min-width:0;cursor:pointer}
.demo-protected{border-color:var(--line)}
.demo-warning{width:100%;margin:0}
.demo-danger-zone{border-top:1px solid var(--line);padding-top:1rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:end}
.demo-danger-zone .form-footer{grid-column:1/-1}
.demo-keep-section{border-top:1px solid var(--line);margin-top:1.3rem;padding-top:1rem}
.demo-keep-details{border:1px solid var(--line);border-radius:6px;margin:.55rem 0;padding:.85rem}
.demo-keep-details summary{cursor:pointer;font-weight:650;line-height:1.5}
.demo-keep-form{display:grid;gap:.9rem;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:1rem;align-items:end}
.demo-keep-form button{grid-column:1/-1;justify-self:start}
@media(max-width:900px){.demo-grid{grid-template-columns:1fr}}
@media(max-width:680px){.demo-danger-zone,.demo-keep-form{grid-template-columns:1fr}.demo-option{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:start}.demo-option input[type=checkbox]{grid-column:1;grid-row:1}.demo-option .demo-description{grid-column:2;grid-row:1}.demo-option .pill{grid-column:2;grid-row:2;justify-self:start}.demo-row{flex-wrap:wrap}.demo-row .pill{margin-left:28px}.demo-keep-form button{width:100%}}

/* 0.1.8-alpha: druckbarer, read-only Planungsbericht */
.report-head .action-row{align-self:flex-start}.report-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
.report-section{min-width:0;overflow-wrap:anywhere}.report-section h3{margin-top:0}
.report-entry{padding:1rem 0;border-top:1px solid var(--line);break-inside:avoid-page}.report-entry:first-of-type{margin-top:.7rem}
.report-entry-heading{display:flex;gap:.8rem;justify-content:space-between;align-items:start;flex-wrap:wrap}
.report-entry-heading h4{margin:.1rem 0 .4rem;line-height:1.45}.report-entry-heading .pill{flex:none}
.report-body{white-space:normal;overflow-wrap:anywhere;line-height:1.6}
.report-checks{padding-left:1.6rem;display:grid;gap:.75rem}.report-checks li{line-height:1.5}.report-checks ul{margin:.4rem 0 0;padding-left:1.3rem}
.report-quicklink{margin:0 0 1.2rem}.report-disclaimer{margin-bottom:2rem}
@media(max-width:1100px){.report-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.report-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.report-head .action-row{width:100%}.report-head .action-row>*{flex:1}}
@media print{
  @page{size:A4;margin:16mm 15mm}
  html,body{background:white!important;color:#111!important;font:11pt/1.45 Arial,sans-serif!important}
  .sidebar,.topbar,.report-actions,.back-link,.report-quicklink,.site-footer{display:none!important}
  .shell,.workarea,.content,.content-container{display:block!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;overflow:visible!important}
  .page-head{margin:0 0 14mm}.page-head h1{font-size:22pt!important;color:#111!important}.page-head .lead{color:#333!important}
  .stats{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:3mm!important}
  .stat,.panel{background:white!important;color:#111!important;box-shadow:none!important;border:1px solid #bbb!important;break-inside:avoid-page}
  .stat strong{font-size:15pt!important;color:#111!important}.stat span,.muted,.pill{color:#333!important}
  .two-col{display:block!important}.two-col .panel{margin-bottom:5mm}
  .report-section{margin:0 0 6mm}.report-entry{break-inside:avoid-page;border-color:#ccc}
  a{color:#111!important;text-decoration:none!important}a[href]::after{content:none!important}
}

/* 0.1.8-alpha: gezielter Arbeitsbereich, kein zusätzlicher UI-Framework-Ballast. */
.focus-choice-form{display:grid;grid-template-columns: minmax(0,1fr) minmax(200px,2fr) auto;align-items:center;gap:.8rem}
.focus-choice-form label{font-weight:700}.focus-choice-form select,.focus-idea-form input,.focus-idea-form textarea{width:100%;min-width:0;min-height:44px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:6px;padding:.6rem .75rem}
.focus-choice>p{margin:.8rem 0 0}.focus-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,1fr);gap:1.2rem;align-items:start}.focus-layout .panel{min-width:0}.focus-main{border-top:4px solid var(--blue)}.focus-main h2{margin-bottom:1.2rem}.focus-task-title{font-size:clamp(1.2rem,2.2vw,1.5rem);line-height:1.35;font-weight:750;margin:0 0 .45rem}.focus-description{white-space:normal;overflow-wrap:anywhere;line-height:1.55}.focus-help{margin:1.5rem 0 0;color:var(--muted)}.focus-side{display:grid;gap:1.2rem}.focus-side .panel{margin:0}.focus-links{display:flex;flex-wrap:wrap;gap:.6rem}.focus-idea-form{display:grid;gap:.55rem}.focus-idea-form label{font-weight:650}.focus-idea-form button{justify-self:start;margin-top:.4rem}.focus-ideas{margin-top:1rem;border-top:1px solid var(--line);padding-top:1rem}.focus-ideas summary,.focus-more summary{cursor:pointer;font-weight:700;min-height:44px}.focus-open-list{list-style:none;padding:0;margin:1rem 0 0}.focus-open-list li{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.65rem 0;border-top:1px solid var(--line)}.focus-open-list li span{min-width:0;overflow-wrap:anywhere}
@media(max-width:980px){.focus-layout{grid-template-columns:1fr}}@media(max-width:700px){.focus-choice-form{grid-template-columns:1fr}.focus-choice-form button,.focus-idea-form button{width:100%}.focus-open-list li{align-items:flex-start;flex-direction:column}}

/* 0.1.9-alpha – interner RT Guide und vorbereitende Onboarding-Checkliste. */
.guide-selector h2,.guide-overview h2{margin-bottom:.35rem}
.guide-select-form{display:grid;grid-template-columns:auto minmax(180px,1fr) auto;align-items:end;gap:.8rem;margin-top:1rem}
.guide-select-form label{font-weight:700;align-self:center}
.guide-select-form select{min-width:0;width:100%;min-height:44px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:6px;padding:.65rem .8rem}
.guide-progress-head{display:flex;justify-content:space-between;align-items:center;gap:1rem}.guide-progress-head strong{font-size:1.4rem;white-space:nowrap}
.guide-overview progress{display:block;width:100%;height:13px;margin:1rem 0 1.5rem;accent-color:var(--blue)}
.guide-next{padding:1rem;background:var(--surface-soft,var(--surface));border-left:4px solid var(--blue);border-radius:6px}
.guide-steps{list-style:none;padding:0;margin:1.1rem 0 0;display:grid;gap:1rem;counter-reset:guide-step}
.guide-step{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:.9rem;border:1px solid var(--line);border-radius:8px;padding:1rem;min-width:0}
.guide-step>div{min-width:0}.guide-step h3{margin:0 0 .45rem;font-size:1rem;line-height:1.4}.guide-step p{margin:0 0 .4rem;overflow-wrap:anywhere;line-height:1.55}.guide-step .btn{min-width:124px}
.guide-step-marker{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;font-weight:800;font-size:1.2rem}
.guide-step-done .guide-step-marker{color:var(--blue);border-color:var(--blue)}
.guide-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;align-items:stretch}
.guide-card-grid .panel{min-width:0;margin:0}.guide-card-grid .panel h2{line-height:1.35}.guide-card-grid a{display:inline-block;margin-top:.7rem}
.guide-details{margin-top:1rem}.guide-details summary{cursor:pointer;min-height:44px;padding:.5rem 0;font-weight:650}.guide-details p{margin:.5rem 0}.guide-project-callout{display:flex;justify-content:space-between;align-items:center;gap:1rem}.guide-project-callout>div{min-width:0}
.guide-onboarding-form{margin:1rem 0}.guide-onboarding-form button{min-height:44px}
@media(max-width:1050px){.guide-card-grid{grid-template-columns:1fr}.guide-project-callout{display:block}}
@media(max-width:700px){.guide-select-form{grid-template-columns:1fr}.guide-step{grid-template-columns:32px minmax(0,1fr)}.guide-step>.btn{grid-column:2;justify-self:start}}

/* 0.1.10-alpha: Hilfe zur aktuellen Seite; nativer, tastaturbedienbarer <details>-Guide. */
.page-help{position:relative;display:inline-block;max-width:100%;flex:none}
.page-help-trigger{list-style:none;min-height:44px;white-space:normal;cursor:pointer;user-select:none;text-align:center;overflow-wrap:anywhere}
.page-help-trigger::-webkit-details-marker{display:none}
.page-help-trigger::marker{content:""}
.page-help-trigger:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.page-help[open]>.page-help-trigger{background:var(--soft);border-color:var(--blue)}
.page-help-content{position:absolute;z-index:90;top:calc(100% + .55rem);right:0;width:min(440px,calc(100vw - 2rem));max-height:min(72vh,620px);overflow-y:auto;overscroll-behavior:contain;padding:1.2rem 1.3rem;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 32px #00000028;overflow-wrap:anywhere;line-height:1.55}
.page-help-content h2{font-size:1.25rem;line-height:1.35;margin:0 0 .7rem}
.page-help-content p{margin:0 0 .85rem}
.page-help-content ol{padding-left:1.45rem;margin:.75rem 0 1rem}
.page-help-content li{padding-left:.2rem;margin:.45rem 0}
.page-help-content .page-help-note{border-left:3px solid var(--blue);padding:.55rem .75rem;margin:.9rem 0 0;background:var(--soft)}
.page-help-link{display:inline-block;margin-top:.85rem;min-height:44px;padding:.45rem 0;font-weight:650}
.page-help-auth{display:block;margin:1.2rem 0 .6rem}
.page-help-auth .page-help-content{position:static;width:100%;max-height:none;box-shadow:none;margin-top:.65rem}
@media(max-width:640px){.topbar .top-actions{width:100%;justify-content:flex-start;row-gap:var(--rt-ui-gap)}.page-help-content{right:auto;left:0;width:min(440px,calc(100vw - 2rem))}}
@media print{.page-help{display:none!important}}

/* Kundenverwaltung und Kundenportal (Hilfe-Popover wird oben zentral definiert). */
.message-list{display:grid;gap:.7rem;max-height:28rem;overflow:auto;margin:1rem 0 1.5rem}.message-entry{border:1px solid var(--line);padding:.8rem;border-radius:8px;overflow-wrap:anywhere}
.message-entry p{margin:.2rem 0 .6rem;white-space:normal}.inline-form input{max-width:14rem}
@media(max-width:820px){.page-help-content{position:fixed;top:4.7rem;left:1rem;right:1rem;width:auto;max-height:74vh}}

/* 0.1.11-alpha: gemeinsames Checkbox-Layout, statt Textfeld-Raster und 100%-Breite. */
.form-grid label.checkbox-field{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:.8rem;min-height:44px;cursor:pointer}
.form-grid label.checkbox-field input[type="checkbox"]{flex:0 0 20px;width:20px;height:20px;min-height:20px;margin:.25rem 0 0;padding:0;accent-color:var(--blue)}
.form-grid label.checkbox-field span{display:block;flex:1;min-width:0;line-height:1.55}
.backup-table{width:100%;border-collapse:collapse}.backup-table th,.backup-table td{padding:.75rem;border-bottom:1px solid var(--line);text-align:left;overflow-wrap:anywhere}
.backup-actions{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}.backup-warning{border-left:4px solid var(--blue);padding:1rem;background:var(--soft)}

/* 0.1.12-alpha – einheitliche Abstände statt aneinandergrenzender Bedienelemente.
 * Seitenübergreifend für Admin, Portal und Anmeldung; keine Änderung an Formularlogik.
 * Die vorhandenen Grid-/Flex-Abstände bleiben erhalten.
 */
/* Trennung von Formularen und unmittelbar folgenden Texten, Hinweisen oder Aktionen. */
.panel > form + :where(p,div,section,ul,ol),
.panel > .form-grid + :where(p,div,section,ul,ol),
.panel > .table-wrap + :where(p,div,section),
.panel > :where(.notice,.alert,.backup-warning) + :where(form,div,section),
.panel > :where(.backup-warning,.alert,.notice) + :where(.backup-warning,.alert,.notice){
  margin-block-start:var(--rt-block-gap);
}
/* Auch außerhalb von Panels sollen nach Formularen Hinweise nicht direkt an Buttons kleben. */
.form-grid + :where(.notice,.alert,.backup-warning),
.form-footer + :where(.notice,.alert,.backup-warning){
  margin-block-start:var(--rt-block-gap);
}
/* Inhaltliche Überschriften und Formulare erhalten einen wahrnehmbaren vertikalen Rhythmus. */
.panel > :where(h2,h3) + :where(form,.form-grid,.table-wrap,.action-row),
.panel > p + :where(.action-row,.table-wrap){
  margin-block-start:1rem;
}
/* Ein geöffneter Guide darf auf schmalen Viewports keine Bedienflächen überlagern. */

/* 0.1.13-alpha: alle Navigations-Icons (auch RT Guide) links vor der Beschriftung. */
.menu a > span[aria-hidden="true"]{flex:0 0 20px;min-width:20px;line-height:1;text-align:center}


/* 0.1.14-alpha: Ideenspeicher – einheitliche Abstände, responsive, lesbar. */
.idea-capture .form-grid{margin-block:1rem}
.ideas-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1.25rem;flex-wrap:wrap;margin-bottom:1.15rem}
.idea-filter{display:flex;gap:.75rem;align-items:end;flex-wrap:wrap}
.idea-filter label{display:flex;flex-direction:column;gap:.4rem}
.idea-list{display:grid;gap:1rem}
.idea-entry{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(17rem,1fr);gap:1.25rem;padding:1.15rem;border:1px solid var(--line);border-radius:8px;align-items:start}
.idea-entry h3{margin:0 0 .75rem}.idea-entry .muted{margin:.75rem 0 0}
.idea-description{min-width:0;overflow-wrap:anywhere}
.idea-action{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:.75rem}
.idea-action label,.idea-quick-form label{display:flex;flex-direction:column;gap:.45rem;min-width:0}
.idea-action .btn{grid-column:1/-1;justify-self:start}
.idea-quick-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:end;margin-top:1rem}
.idea-quick-form .btn{min-height:44px}
.focus-inbox{margin-block:1rem 1.25rem}
@media(max-width:820px){.idea-entry{grid-template-columns:1fr}.idea-quick-form{grid-template-columns:1fr}.idea-action{grid-template-columns:1fr}.idea-action .btn{grid-column:auto}.ideas-header{align-items:stretch}}


/* 0.1.15-alpha – Unabhängige Desktop-Scrollbereiche und mobile Navigation.
   Der CSS-Aufbau ist bewusst auf die App-Shell beschränkt; Installer und Login bleiben unverändert. */
@media (min-width:781px){
  .shell{height:100vh;height:100dvh;min-height:0;overflow:hidden;grid-template-columns:268px minmax(0,1fr)}
  .shell .sidebar{height:100%;min-height:0;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr) auto;align-content:stretch;gap:1rem}
  .shell .sidebar .menu{min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;align-content:start;padding-right:.15rem}
  .shell .sidebar .side-bottom{margin-top:0;min-height:0;overflow:hidden}
  .shell .workarea{min-width:0;min-height:0;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr)}
  .shell .topbar{min-width:0;z-index:10;position:relative}
  .shell .content{min-height:0;overflow-y:auto;overflow-x:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
  .nav-mobile-toggle,.nav-close,.nav-backdrop{display:none!important}
  :root[data-rtws-sidebar="collapsed"] .shell{grid-template-columns:76px minmax(0,1fr)}
  :root[data-rtws-sidebar="collapsed"] .shell .sidebar{padding:1rem .5rem}
  :root[data-rtws-sidebar="collapsed"] .shell .brand{justify-content:center;padding:.3rem 0}
  :root[data-rtws-sidebar="collapsed"] .shell .brand-icon{width:44px;height:44px}
  :root[data-rtws-sidebar="collapsed"] .shell .brand-copy{display:none}
  :root[data-rtws-sidebar="collapsed"] .shell .menu{padding-right:0}
  :root[data-rtws-sidebar="collapsed"] .shell .menu a{justify-content:center;padding:.65rem .3rem;gap:0}
  :root[data-rtws-sidebar="collapsed"] .shell .menu a > span[aria-hidden="true"]{flex:0 0 24px;font-size:1.25rem}
  :root[data-rtws-sidebar="collapsed"] .shell .menu-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%);border:0}
  :root[data-rtws-sidebar="collapsed"] .shell .side-bottom{display:none}
}
@media (min-width:781px) and (max-width:1070px){
  .shell{grid-template-columns:268px minmax(0,1fr)}
  :root[data-rtws-sidebar="collapsed"] .shell{grid-template-columns:76px minmax(0,1fr)}
}
.sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:.25rem;min-width:0}
.sidebar-heading .brand{min-width:0;flex:1}
.shell .sidebar .menu a{min-width:0}
.shell .sidebar .menu-label{min-width:0;overflow-wrap:anywhere;line-height:1.4}
.topbar-leading{min-width:0;display:flex;align-items:center;gap:.7rem;flex:1}
.topbar-leading .small-label{min-width:0;overflow-wrap:anywhere}
.nav-collapse-toggle,.nav-mobile-toggle{flex:0 0 44px;padding:0;font-size:1.35rem}
.nav-collapse-toggle[aria-expanded="false"]{background:var(--soft)}
@media (max-width:780px){
  .shell{display:block;height:auto;min-height:100vh;min-height:100dvh;overflow:visible}
  .shell .sidebar{position:fixed;inset:0 auto 0 0;z-index:110;width:min(19rem,calc(100vw - 3.5rem));height:100vh;height:100dvh;min-height:0;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:1rem;padding:1rem;visibility:hidden;transform:translateX(-105%);transition:transform 180ms ease,visibility 180ms ease}
  .shell.nav-open .sidebar{visibility:visible;transform:translateX(0)}
  .shell .sidebar .menu{display:grid;gap:.3rem;min-height:0;overflow-y:auto;overflow-x:hidden;align-content:start;padding:.25rem .1rem;overscroll-behavior:contain}
  .shell .sidebar .menu a{white-space:normal;min-height:44px}
  .shell .sidebar .side-bottom{display:block;margin-top:0;min-height:0;overflow:hidden}
  .shell .sidebar .sidebar-company-frame{display:none}
  .shell .workarea{display:block;min-width:0;min-height:100vh;min-height:100dvh;overflow:visible}
  .shell .topbar{position:sticky;top:0;z-index:30;background:var(--surface);min-height:64px;flex-wrap:wrap;gap:.75rem;padding:.65rem 1rem}
  .shell .topbar-leading{flex:1 1 100%;min-width:0}
  .shell .top-actions{min-width:0;justify-content:flex-start}
  .shell .content{overflow:visible;min-height:0}
  .nav-collapse-toggle{display:none}
  .nav-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border:1px solid rgba(255,255,255,.35);border-radius:6px;color:var(--nav-text);background:transparent;font:1.5rem/1 system-ui;cursor:pointer}
  .nav-mobile-toggle{display:inline-flex}
  .nav-backdrop{display:none;position:fixed;inset:0;z-index:100;width:100%;height:100%;border:0;border-radius:0;padding:0;background:rgba(0,0,0,.62)}
  .shell.nav-open .nav-backdrop{display:block}
  body.nav-overlay-open{overflow:hidden}
  .page-help-content{max-height:min(70vh,620px)}
}
@media (max-width:470px){
  .shell .topbar .small-label{flex-basis:auto}
  .shell .top-actions{width:100%}
  .shell .top-actions .btn{min-height:44px}
}
@media print{
  .shell,.shell .workarea{display:block!important;height:auto!important;min-height:0!important;overflow:visible!important}
  .shell .sidebar,.nav-backdrop,.shell .topbar{display:none!important}
  .shell .content{display:block!important;overflow:visible!important;padding:0!important}
  .shell .content-container{max-width:none!important}
}

/* RT WorkSuite 0.1.16-alpha – Backup UI mit klaren Abständen und responsivem Raster */
.form-grid .span-all{grid-column:1/-1}
.form-grid .checkline{display:flex;align-items:flex-start;gap:.8rem;font-weight:600;line-height:1.55;cursor:pointer}
.form-grid .checkline input[type=checkbox]{flex:0 0 20px;width:20px;height:20px;min-height:20px;margin:.2rem 0 0;padding:0;accent-color:var(--blue)}
.rtws-pre{background:var(--soft);border:1px solid var(--line);border-radius:6px;padding:1rem;overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.panel > h3{margin-top:1.5rem}
.panel > .table-wrap{margin-top:1rem}

/* 0.1.18-alpha – thematisch verschachtelte Navigation und Modulverwaltung. */
.shell .sidebar .menu{display:grid;align-content:start;gap:.3rem;min-width:0}
.shell .sidebar .menu a,.shell .sidebar .menu .nav-group-title{display:flex;align-items:center;justify-content:flex-start;text-align:left;gap:.65rem;min-height:44px;padding:.62rem .7rem;border-radius:6px;color:var(--nav-text);font-weight:550;min-width:0}
.shell .sidebar .menu .nav-group-title{cursor:pointer;list-style:none;user-select:none}
.shell .sidebar .menu .nav-group-title .menu-label{display:block;flex:1 1 auto;min-width:0;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
.shell .sidebar .menu .nav-group-title::-webkit-details-marker{display:none}
.shell .sidebar .menu .nav-group-title:hover,.shell .sidebar .menu .nav-group-title:focus-visible,.shell .sidebar .menu a[aria-current="page"],.shell .sidebar .menu .is-active{background:#3d4b58;color:#fff}
.shell .sidebar .menu .nav-icon{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 24px;min-width:24px;text-align:center;line-height:1.2;font-size:1.2rem}
.shell .sidebar .menu .nav-chevron{margin-inline-start:auto;display:inline-block;flex:0 0 7px;min-width:0;max-width:7px;width:7px;height:7px;align-self:center;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .15s ease}
.shell .sidebar .menu details[open]>.nav-group-title .nav-chevron{transform:rotate(45deg)}
.shell .sidebar .menu .nav-submenu{display:grid;gap:.12rem;padding:.15rem 0 .45rem .8rem;border-left:1px solid rgba(255,255,255,.25);margin-left:1.45rem}
.shell .sidebar .menu .nav-submenu a{display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:.65rem;align-items:center;justify-content:initial;text-align:left;width:100%;min-width:0;padding:.52rem .45rem;min-height:44px;font-weight:450;white-space:normal}
.shell .sidebar .menu .nav-submenu .nav-icon{display:inline-flex;grid-column:1;align-items:center;justify-content:center;flex:none;min-width:20px;max-width:20px;width:20px;font-size:1rem;line-height:1;text-align:center}
.shell .sidebar .menu .nav-submenu .menu-label{display:block;grid-column:2;min-width:0;max-width:100%;text-align:left;justify-self:stretch;white-space:normal;word-break:normal;overflow-wrap:break-word;hyphens:manual;line-height:1.4}
.shell .sidebar .menu .nav-group-title:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.module-list{display:grid;gap:1rem;margin-top:1rem}
.module-entry{border:1px solid var(--line);border-radius:8px;padding:1rem;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(230px,1fr);gap:1rem;align-items:start}
.module-entry h3{margin:0 0 .5rem}.module-entry p{margin:.25rem 0 .85rem}.module-form{display:grid;gap:.7rem}.module-form label{display:grid;gap:.35rem;font-weight:650}.module-form input{width:100%;min-height:44px;border:1px solid var(--line);border-radius:6px;padding:.6rem .8rem;background:var(--surface);color:var(--text)}.module-form .btn{justify-self:start}
@media (min-width:781px){
 :root[data-rtws-sidebar="collapsed"] .shell .sidebar .menu .nav-group-title{justify-content:center;padding:.65rem .3rem}
 :root[data-rtws-sidebar="collapsed"] .shell .sidebar .menu .nav-group-title .nav-icon{flex:0 0 24px}
 :root[data-rtws-sidebar="collapsed"] .shell .sidebar .menu .nav-group-title .menu-label,:root[data-rtws-sidebar="collapsed"] .shell .sidebar .menu .nav-chevron,:root[data-rtws-sidebar="collapsed"] .shell .sidebar .menu .nav-submenu{display:none}
}
@media(max-width:820px){.module-entry{grid-template-columns:1fr}}



/* Konsolidierte Kundenansichten: dieselbe Tabellenkomponente wie Projekt und Backups. */
.customer-table{width:100%}
.customer-table td,.customer-table th{overflow-wrap:anywhere}
.customer-table td:first-child{min-width:13rem}
.customer-table td:last-child{white-space:nowrap}
.customer-table .pill{white-space:nowrap}
.customer-meta{display:flex;flex-wrap:wrap;gap:.35rem 1rem;align-items:center}
.customer-meta > span{min-width:0;overflow-wrap:anywhere}
.customer-message-form{display:grid;gap:.8rem;margin-top:1.25rem}
.customer-message-form label{display:grid;gap:.4rem;font-weight:650}
.customer-message-form textarea{display:block;width:100%;min-height:100px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:6px;padding:.7rem .85rem}
.customer-message-form .btn{justify-self:start}
@media(max-width:780px){.customer-table td:last-child{white-space:normal}.customer-message-form .btn{width:100%}}

.customer-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;margin-top:1.25rem}
.customer-pagination .action-row{gap:var(--rt-ui-gap)}

/* Kundenliste: fester Spaltenrhythmus auf Desktop, Karten aus derselben Tabelle auf Mobilgeräten. */
.customer-overview-scroll .customer-table{table-layout:fixed;min-width:1000px}
.customer-overview-scroll .customer-table th:nth-child(1){width:21%}
.customer-overview-scroll .customer-table th:nth-child(2){width:17%}
.customer-overview-scroll .customer-table th:nth-child(3){width:27%}
.customer-overview-scroll .customer-table th:nth-child(4){width:11%}
.customer-overview-scroll .customer-table th:nth-child(5){width:12%}
.customer-overview-scroll .customer-table th:nth-child(6){width:12%}
@media(max-width:680px){
 .customer-overview-scroll{overflow:visible}
 .customer-overview-scroll .customer-table{display:block;min-width:0;width:100%;table-layout:auto}
 .customer-overview-scroll .customer-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
 .customer-overview-scroll .customer-table tbody{display:grid;gap:1rem}
 .customer-overview-scroll .customer-table tbody tr{display:block;padding:1rem;border:1px solid var(--line);border-radius:8px;min-width:0}
 .customer-overview-scroll .customer-table td{display:block;min-width:0;width:auto;border:0;padding:.3rem 0;white-space:normal}
 .customer-overview-scroll .customer-table td::before{content:attr(data-label);display:block;color:var(--muted);font-weight:650;margin-bottom:.1rem}
 .customer-overview-scroll .customer-table td[colspan]::before{content:none}
 .customer-overview-scroll .customer-table td:last-child{padding-top:.75rem}
 .customer-overview-scroll .customer-table td:last-child .btn{width:100%}
}
