/* truzzt Lens: product stylesheet.
   Brand book edition 1 (01.12.2026) and the Figma screens "Graphite + Gold": rounded panels on a dotted canvas,
   graphite and paper, gold as a signal. Colours and contrasts in tests/test_farben.py, measures in
   tests/test_masse.py. Geist locally (OFL), lengths in rem (text up to 200 %), the theme "Wie auf Ihrem Gerät"
   (.t-geraet); dialogs, notes and the phone menu relative to the window (position:fixed). */
@font-face{font-family:"Geist";font-style:normal;font-weight:100 900;font-display:swap;src:url("../fonts/geist-variable.woff2") format("woff2")}
@font-face{font-family:"Geist Mono";font-style:normal;font-weight:100 900;font-display:swap;src:url("../fonts/geist-mono-variable.woff2") format("woff2")}

.app{
  --font-ui:"Geist","Segoe UI","Helvetica Neue",system-ui,sans-serif;
  --font-read:var(--font-ui);
  --font-mono:"Geist Mono","Consolas","Menlo",monospace;
  --s1:0.25rem;--s2:0.5rem;--s3:0.75rem;--s4:1rem;--s5:1.5rem;--s6:2rem;--s7:3rem;--s8:4rem;
  /* one system of measures (26.11.2026, tests/test_masse.py): radii, heights of controls, a 4 px grid */
  --r-sm:.375rem;--r-ctl:.5rem;--r-card:.75rem;--r-panel:1rem;--r-pill:62.5rem;
  --h-xs:1.5rem;--h-sm:2rem;--h-md:2.25rem;--h-lg:2.75rem;
  --side-w:19.25rem;--rail-w:5rem;--page-w:68rem;
  /* the same in both themes: the bronze of the avatar, the tint of what is selected, the dots of the canvas */
  --bronze:radial-gradient(ellipse at 50% 100%,#6E582E,#927643 50%,#B59559);
  --tint:radial-gradient(ellipse at 50% 100%,var(--tint-a),var(--tint-b));
  --dots:radial-gradient(circle,var(--dot) 1px,transparent 2px);
  --edge:4.5rem;  /* how far the gold edge of a panel reaches from the pointer */
  /* the shader's falloff, pow(1 - smoothstep(0, reach, distance), .65), as stops */
  --edge-fall:#000,rgba(0,0,0,.9) 25%,rgba(0,0,0,.64) 50%,rgba(0,0,0,.3) 75%,transparent;
  --dur:160ms;--ease:cubic-bezier(.2,.7,.2,1);
}
.t-hell,.t-geraet{
  --bg:#F4F3EF;--canvas:#F7F6F3;--dot:#E6E0D2;--dot-hi:#D3C6A4;--surface:#FFFFFF;--surface-2:#F9F8F6;--surface-3:#F3F2EF;--side:#FFFFFF;
  --text:#18181B;--text-2:#52525B;--text-3:#6B6B73;--nav-text:#52525B;--border:#E4E4E7;--border-mid:#E4E4E7;--border-strong:#8A8A93;
  --action:#8C6A24;--action-hover:#7A5A1E;--on-action:#FFFFFF;--action-soft:#FBF5E6;--focus:#8C6A24;
  --sel-text:#7A5A1E;--gold-line:#6E582E;--gold-edge:#DDB768;--tint-a:#FBF5E6;--tint-b:#F4E8CB;--badge-bg:#F6ECD6;--badge-text:#7A5A1E;
  --error:#A32222;--error-bg:#FBEDED;--error-line:#E3B4B4;--warn:#7A4B00;--warn-bg:#FEF6DC;--warn-line:#F1D08A;
  --banner-bg:#FEF9E6;--banner-line:#F1E3B0;--ok:#1E7A46;--ok-bg:#E3F3E8;--ok-line:#BFE3CD;--ok-dot:#1E7A46;
  --warn-dot:#B36B00;--source:#7A5A1E;--source-bg:#F6ECD6;--source-line:#E9D9B5;--info:#52525B;--info-bg:#F4F4F5;
  --info-line:#E4E4E7;--nav-cur:#F3F2EF;--sheet-line:#E4E4E7;--seg-track:#F3F2EF;
  --seg-on:#FFFFFF;--on-avatar:#18181B;
  --nav-hover:rgba(24,24,27,.05);--scrim:rgba(24,24,27,.36);
  --shadow-sm:0 1px 2px rgba(0,0,0,.04);
  --shadow-composer:0 0.125rem 0.5rem rgba(0,0,0,.06);--shadow:0 1rem 3rem rgba(0,0,0,.16);color-scheme:light;
}
.t-dunkel{
  --bg:#181A1E;--canvas:#12151E;--dot:#2A251B;--dot-hi:#3B3325;--surface:#141519;--surface-2:#1A1B20;--surface-3:#212429;--side:#141519;
  --text:#F4F4F5;--text-2:#A1A1AA;--text-3:#8B8B95;--nav-text:#A1A1AA;--border:#2F3034;--border-mid:#2F3034;--border-strong:#7A7A84;
  --action:#CFAB67;--action-hover:#F1D49F;--on-action:#141519;--action-soft:#252119;--focus:#CFAB67;
  --sel-text:#CFAB67;--gold-line:#6E582E;--gold-edge:#DDB768;--tint-a:#252119;--tint-b:#373124;--badge-bg:#2A251B;--badge-text:#F1D49F;
  --error:#FF8F86;--error-bg:#35181A;--error-line:#7A3A38;--warn:#F2C46D;--warn-bg:#2E240E;--warn-line:#6E5320;
  --banner-bg:#2A2210;--banner-line:#5A4718;--ok:#5CC98B;--ok-bg:#1A2B21;--ok-line:#2F6B44;--ok-dot:#5CC98B;
  --warn-dot:#E0A33C;--source:#F1D49F;--source-bg:#2A251B;--source-line:#3B3325;--info:#A1A1AA;--info-bg:#2A2B2E;
  --info-line:#2F3034;--nav-cur:#212429;--sheet-line:#2F3034;--seg-track:#212429;
  --seg-on:#141519;--on-avatar:#F4F4F5;
  --nav-hover:rgba(255,255,255,.05);--scrim:rgba(0,0,0,.62);
  --shadow-sm:0 1px 2px rgba(0,0,0,.04);
  --shadow-composer:0 1px 2px rgba(0,0,0,.04);--shadow:0 1rem 3rem rgba(0,0,0,.55);color-scheme:dark;
}
@media (prefers-color-scheme:dark){.t-geraet{
  --bg:#181A1E;--canvas:#12151E;--dot:#2A251B;--dot-hi:#3B3325;--surface:#141519;--surface-2:#1A1B20;--surface-3:#212429;--side:#141519;
  --text:#F4F4F5;--text-2:#A1A1AA;--text-3:#8B8B95;--nav-text:#A1A1AA;--border:#2F3034;--border-mid:#2F3034;--border-strong:#7A7A84;
  --action:#CFAB67;--action-hover:#F1D49F;--on-action:#141519;--action-soft:#252119;--focus:#CFAB67;
  --sel-text:#CFAB67;--gold-line:#6E582E;--gold-edge:#DDB768;--tint-a:#252119;--tint-b:#373124;--badge-bg:#2A251B;--badge-text:#F1D49F;
  --error:#FF8F86;--error-bg:#35181A;--error-line:#7A3A38;--warn:#F2C46D;--warn-bg:#2E240E;--warn-line:#6E5320;
  --banner-bg:#2A2210;--banner-line:#5A4718;--ok:#5CC98B;--ok-bg:#1A2B21;--ok-line:#2F6B44;--ok-dot:#5CC98B;
  --warn-dot:#E0A33C;--source:#F1D49F;--source-bg:#2A251B;--source-line:#3B3325;--info:#A1A1AA;--info-bg:#2A2B2E;
  --info-line:#2F3034;--nav-cur:#212429;--sheet-line:#2F3034;--seg-track:#212429;
  --seg-on:#141519;--on-avatar:#F4F4F5;
  --nav-hover:rgba(255,255,255,.05);--scrim:rgba(0,0,0,.62);
  --shadow-sm:0 1px 2px rgba(0,0,0,.04);
  --shadow-composer:0 1px 2px rgba(0,0,0,.04);--shadow:0 1rem 3rem rgba(0,0,0,.55);color-scheme:dark;
}}

.app{container-type:inline-size;position:relative;min-height:100vh;isolation:isolate;background:var(--bg) var(--dots) 0 0/2rem 2rem;color:var(--text);font-family:var(--font-ui);font-size:0.875rem;line-height:1.375rem;-webkit-font-smoothing:antialiased;text-wrap:pretty}
.app *{box-sizing:border-box}
.app h1,.app h2,.app h3,.app h4,.app p{margin:0}
.app a{color:var(--text);text-underline-offset:3px}
.app :focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.app ul{margin:0;padding:0;list-style:none}
@media (prefers-reduced-motion:reduce){.app *{transition:none!important;animation:none!important}}

/* Typografie */

.h3{font-size:.9375rem;line-height:1.375rem}
.lead{color:var(--text-2)}
.meta{font-size:0.8125rem;line-height:1.25rem;color:var(--text-2)}
.small{font-size:0.8125rem;line-height:1.25rem}
.mono,.path{font-family:var(--font-mono);font-size:.875rem;line-height:1.25rem;overflow-wrap:anywhere}
.read{font-family:var(--font-read);font-size:.9375rem;line-height:1.5rem}
.eyebrow{text-transform:none;color:var(--text-2)}
.num{font-variant-numeric:tabular-nums}

/* Rahmen */
.shell{display:flex}
.side{flex:none;display:flex;flex-direction:column}
.brand{display:flex;align-items:center}
/* The logo tile: the graphite app icon on light, the bronze tile on dark chrome (brand book, logo versions). */
.brand-mark{flex:none;display:block;width:1.75rem;height:1.75rem}
.t-hell .bm-dunkel,.t-geraet .bm-dunkel,.t-dunkel .bm-hell{display:none}
@media (prefers-color-scheme:dark){.t-geraet .bm-dunkel{display:block}.t-geraet .bm-hell{display:none}}
.brand-name{font-size:0.875rem;line-height:1.25rem}
.brand-org{font-size:0.8125rem;line-height:1.125rem;color:var(--text-2)}
.nav{display:flex;flex-direction:column}
.nav-a{display:flex;align-items:center;color:var(--nav-text)!important;text-decoration:none}

/* .nav in front: the reset .app ul (margin and padding 0) otherwise wins and the indent of the design is lost */
.nav .nav-sub{display:flex;flex-direction:column;margin:0 0 0 1rem;padding-left:.75rem;border-left:1px solid var(--border)}
.nav-sub .nav-a{font-weight:400}
.side-foot{margin-top:auto;display:flex;flex-direction:column;gap:0.5rem}
.acct{display:flex;align-items:center;gap:.5rem;width:100%;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.avatar{border-radius:50%;display:grid;place-items:center;flex:none}
.main{flex:1;min-width:0;display:flex;flex-direction:column}
.mbar{display:flex;align-items:center;gap:.5rem;min-height:3.25rem;padding:0 3rem 0 2.5rem;z-index:5}
.mbar-div{width:1px;height:1rem;background:var(--border);flex:none}
.mbar .brand-name{font-weight:500;letter-spacing:0}
.mbar:not(:has(.railbtn)){padding-left:3rem}  /* the setup has no sidebar to fold */
.mbar .grow{flex:1;min-width:0}
.page{width:100%;padding:0 1.5rem 2rem;display:flex;flex-direction:column;gap:1.5rem}

.page-head{display:flex;flex-wrap:wrap;gap:1rem;align-items:flex-end;justify-content:space-between}
.page-head .titles{display:flex;flex-direction:column;gap:.5rem;min-width:0}
.crumbs{display:flex;flex-wrap:wrap;gap:.5rem;font-size:0.875rem;line-height:1.25rem;color:var(--text-2)}
/* The path of a page stands in the top bar (26.11.2026), so the title is the first thing on every page. */
.mbar .crumbs{flex-wrap:nowrap;min-width:0;font-size:.875rem;white-space:nowrap}
.mbar .crumbs a{color:var(--text-2)!important;text-decoration:none!important}
.mbar .crumbs a:hover{color:var(--text)!important;text-decoration:underline!important}
.mbar .crumbs [aria-current]{min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--text);font-weight:500}
.row{display:flex;flex-wrap:wrap;gap:0.75rem;align-items:center}
.stack{display:flex;flex-direction:column;gap:1rem}
.stack-s{display:flex;flex-direction:column;gap:0.5rem}
.spread{display:flex;flex-wrap:wrap;gap:0.75rem;align-items:center;justify-content:space-between}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(21.25rem,100%),1fr));gap:1rem}
.grid3{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(20rem,100%),1fr));gap:1rem}
.grid4{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(12.5rem,100%),1fr));gap:0.75rem}

/* Zentrierte öffentliche Seiten */
.public{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:4.5rem 1rem 3rem;gap:1.5rem}
.public-card{position:relative;width:100%;max-width:27.5rem;background:var(--surface);border:1px solid var(--border);display:flex;flex-direction:column;gap:1.25rem}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;min-height:var(--h-md);border:1px solid transparent;font:inherit;font-size:0.875rem;line-height:1.25rem;text-decoration:none!important;cursor:pointer;white-space:nowrap;transition:border-color var(--dur) var(--ease)}
/* The one gold control of a view: a bronze outline and gold text, no fill of its own (brand book, components). */
.btn-p{background:var(--surface);border-color:var(--gold-line);color:var(--action)!important}
.btn-p:hover{border-color:var(--action)}
.btn-s{color:var(--text)!important}

.btn-g{background:var(--surface-3);border-color:var(--border-mid);color:var(--text)!important;padding:0 1rem}  /* every secondary button is framed */

.btn-d{background:var(--error);color:var(--surface)!important}
.btn-full{width:100%}
.btn[disabled],.btn.is-disabled{opacity:.4;cursor:not-allowed}
.btn.is-busy{cursor:progress}
.spin{width:1rem;height:1rem;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:sp 900ms linear infinite;flex:none}
@keyframes sp{to{transform:rotate(360deg)}}
.icon{width:1.25rem;height:1.25rem;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.icon-s{width:1rem;height:1rem;stroke-width:2.25}

/* Formulare */
.field{display:flex;flex-direction:column;gap:.5rem}
.label{font-size:.875rem;line-height:1.25rem;font-weight:600}
.hint{font-size:0.875rem;line-height:1.25rem;color:var(--text-2)}
.input,.select{height:var(--h-md);padding-block:0}  /* as high as a button */
.input,.select,.textarea{width:100%;min-height:var(--h-md);padding:.5rem .75rem;border:1px solid var(--border-strong);color:var(--text);font:inherit;font-size:0.875rem}
.input::placeholder,.textarea::placeholder{color:var(--text-3)}
.textarea{min-height:6rem;resize:vertical;line-height:1.5rem}
.input.err,.textarea.err,.select.err{border-color:var(--error);border-width:2px}
.ferr{display:flex;gap:.5rem;align-items:flex-start;font-size:0.875rem;line-height:1.25rem;color:var(--error);font-weight:500}
.pw{display:flex;position:relative}
.pw .input{flex:1;padding-right:var(--h-md)}
.pw-eye{position:absolute;top:0;right:0;bottom:0;width:var(--h-md);display:grid;place-items:center;border:0;border-radius:var(--r-ctl);background:transparent;color:var(--text-2);cursor:pointer}
.pw-eye:hover{color:var(--text)}
.pw-eye[aria-pressed="true"] svg:first-child,.pw-eye:not([aria-pressed="true"]) svg:last-child{display:none}
.check{display:flex;gap:0.75rem;align-items:flex-start;min-height:var(--h-md);padding:.5rem 0;cursor:pointer}
.check input{width:1.25rem;height:1.25rem;margin:2px 0 0;accent-color:var(--action);flex:none}
.radio-card{display:flex;gap:0.75rem;align-items:flex-start;padding:1rem 1rem;border:1px solid var(--border-strong);cursor:pointer;background:var(--surface)}
.radio-card.sel{border:2px solid var(--action);padding:.75rem 1rem;background:var(--action-soft)}
.radio-card input{width:1.25rem;height:1.25rem;margin:2px 0 0;accent-color:var(--action);flex:none}
.errsum{border:2px solid var(--error);background:var(--error-bg);border-radius:var(--r-card);padding:1rem 1rem;display:flex;flex-direction:column;gap:.5rem}
.errsum a{color:var(--error)}

/* Hinweise */
.note{display:flex;gap:0.75rem;align-items:flex-start;padding:.75rem 1.25rem;border:1px solid var(--info-line);background:var(--info-bg);font-size:.875rem;line-height:1.375rem}
.note .icon{margin-top:1px}
.note .body{display:flex;flex-direction:column;gap:0.5rem;min-width:0;flex:1}
.n-warn{background:var(--warn-bg);border-color:var(--warn-line)}
.n-warn>.icon{color:var(--warn)}
.n-err{background:var(--error-bg);border-color:var(--error-line)}
.n-err>.icon{color:var(--error)}
.n-ok{background:var(--ok-bg);border-color:var(--ok-line)}
.n-ok>.icon{color:var(--ok)}
.n-info>.icon{color:var(--action)}
.toast{position:fixed;right:1.5rem;bottom:1.5rem;z-index:30;display:flex;gap:.5rem;align-items:center;background:var(--text);color:var(--bg);padding:0.75rem 1rem;box-shadow:var(--shadow);font-size:.875rem;max-width:calc(100% - 2rem)}

/* Karten, Status */
.card{background:var(--surface);border:1px solid var(--border);padding:1.5rem;display:flex;flex-direction:column;gap:1rem;min-width:0}
.badge{display:inline-flex;align-items:center;gap:.5rem;min-height:var(--h-xs);padding:1px 0.75rem;font-size:0.8125rem;line-height:1.125rem;font-weight:500;border:1px solid var(--border);background:var(--info-bg);color:var(--text);white-space:nowrap}
.b-ok{background:var(--ok-bg);color:var(--ok)}
.b-warn{background:var(--warn-bg);color:var(--warn)}
.b-err{background:var(--error-bg);color:var(--error)}
.b-info{background:var(--info-bg);color:var(--info)}

.dot{width:0.5rem;height:0.5rem;border-radius:50%;background:currentColor;flex:none}
.kv{display:grid;grid-template-columns:minmax(8.75rem,13.75rem) minmax(0,1fr);gap:0.5rem 1rem;font-size:.875rem;line-height:1.375rem}
.kv dt{color:var(--text-2)}
.kv dd{margin:0;min-width:0;overflow-wrap:anywhere}
.counter{display:flex;flex-direction:column;gap:2px;padding:1rem 1.25rem;border:1px solid var(--border);background:var(--surface);min-width:0}
.counter .n{font-size:1.5rem;line-height:2rem;font-weight:600;font-variant-numeric:tabular-nums}
.counter .l{font-size:0.875rem;line-height:1.25rem;color:var(--text-2)}
.counter.c-warn{background:var(--warn-bg)}

.bar{height:0.5rem;border-radius:var(--r-pill);background:var(--surface-3);overflow:hidden}
.bar>span{display:block;height:100%;background:var(--action);border-radius:var(--r-pill)}
.bar.indet>span{width:30%;animation:ind 1.6s var(--ease) infinite}
@keyframes ind{0%{transform:translateX(-100%)}100%{transform:translateX(340%)}}
.skel{border-radius:var(--r-sm);height:1rem}
.divider{height:1px;background:var(--border);border:0;margin:0}

/* Listen (beschriftete Einträge statt breiter Tabellen) */

.rowh,.rowl,.list-head,.li{display:grid;grid-template-columns:subgrid;align-items:center;padding:0 1.25rem}

.li{font-size:.875rem;line-height:1.375rem;min-height:var(--h-lg)}
.li:first-of-type{border-top:0}
.li .cl{display:none;font-size:0.8125rem;line-height:1.125rem;color:var(--text-2);font-weight:600}
.li .cell{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}
.li .acts{display:flex;gap:0.25rem;justify-content:flex-end;flex-wrap:wrap}

.chips{display:flex;flex-wrap:wrap;gap:0.5rem}
.chip{display:inline-flex;align-items:center;gap:.5rem;padding:0 1rem;border-radius:var(--r-pill);border:1px solid var(--border-strong);background:var(--surface);color:var(--text);font:inherit;font-size:0.875rem;font-weight:400;cursor:pointer}

.chip .c{font-variant-numeric:tabular-nums;opacity:.85}
.pager{display:flex;gap:0.5rem;align-items:center;justify-content:space-between;flex-wrap:wrap}

/* Stepper */
.stepper{display:flex;flex-direction:column;gap:0.25rem}
.step{display:flex;gap:0.75rem;align-items:center;min-height:var(--h-md);padding:.5rem .5rem;border-radius:var(--r-ctl);font-size:.875rem;line-height:1.25rem}
.step .sn{width:1.75rem;height:1.75rem;border-radius:50%;display:grid;place-items:center;border:1.5px solid var(--border-strong);font-size:0.8125rem;font-weight:600;flex:none;background:var(--surface)}
.step.done .sn{background:var(--ok);border-color:var(--ok);color:var(--surface)}
.step.cur{background:var(--action-soft);font-weight:600}
.step.cur .sn{border-color:var(--action);background:var(--action);color:var(--on-action)}
.step.open .sn{border-style:dashed}
.step .st{font-size:0.8125rem;line-height:1.125rem;color:var(--text-2);font-weight:400}
.hstep{display:flex;gap:0.5rem;flex-wrap:wrap;align-items:center;margin:0;padding:0;list-style:none}
.hstep .step{padding:0.25rem .5rem 0.25rem 0.25rem}

/* Ordnerbaum */
.tree{border:1px solid var(--border);background:var(--surface);padding:0.5rem;display:flex;flex-direction:column;gap:2px}
.tn{display:flex;align-items:center;gap:0.5rem;min-height:var(--h-md);padding:0 .75rem;border-radius:var(--r-ctl);font-size:.875rem;color:var(--text);background:none;border:0;font:inherit;text-align:left;width:100%;cursor:pointer}
.tn:hover{background:var(--surface-2)}
.tn.sel{background:var(--action-soft);color:var(--action);font-weight:600;box-shadow:inset 0 0 0 2px var(--action)}
.tn.off{color:var(--text-2);cursor:not-allowed}
.tn .grow{flex:1;min-width:0;overflow-wrap:anywhere}

/* Fragen und Antworten */

.q{align-self:flex-end;max-width:min(42.5rem,100%);background:var(--surface-2);border-radius:var(--r-card);padding:0.75rem 1rem;display:flex;flex-direction:column;gap:0.25rem}
.q .who{font-size:0.8125rem;line-height:1.125rem;color:var(--text-2);font-weight:600}
.ans{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-card);padding:1.25rem 1.5rem;display:flex;flex-direction:column;gap:1rem}
.ans .who{display:flex;gap:0.5rem;align-items:center;font-size:0.8125rem;line-height:1.125rem;color:var(--text-2);font-weight:600}
.cite{display:inline-flex;align-items:center;justify-content:center;min-width:1.75rem;height:1.5rem;margin:0 2px;padding:0 .5rem;border-radius:var(--r-sm);background:var(--source-bg);border:1px solid var(--source-line);color:var(--source)!important;font-family:var(--font-ui);font-size:0.8125rem;font-weight:700;line-height:1;text-decoration:none!important;vertical-align:2px;position:relative}
.cite:after{content:"";position:absolute;inset:-10px -8px}

.src{border:1px solid var(--source-line);border-radius:var(--r-card);background:var(--surface);overflow:hidden}
.src.focus{outline:3px solid var(--focus);outline-offset:2px}

.excerpt{margin:0 1rem 1rem 4rem;padding:1rem 1rem;background:var(--source-bg);border-radius:var(--r-ctl);display:flex;flex-direction:column;gap:0.5rem}
.excerpt q{font-family:var(--font-read);font-size:.9375rem;line-height:1.5rem;quotes:"„" "“"}
/* The checked quote: background and underline, so it does not rest on colour alone (WCAG 1.4.1) */
.excerpt mark{background:var(--action-soft);color:var(--text);text-decoration:underline;text-decoration-color:var(--action);text-decoration-thickness:2px;text-underline-offset:0.2em;border-radius:var(--r-sm);padding:0 2px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.more{border:1px dashed var(--border-strong);border-radius:var(--r-card);background:transparent}
.more>button{width:100%;min-height:var(--h-md);display:flex;gap:0.5rem;align-items:center;padding:0.5rem 1rem;background:none;border:0;font:inherit;font-size:.875rem;color:var(--text);cursor:pointer;text-align:left}

.composer{position:sticky;bottom:0;background:linear-gradient(to bottom,transparent,var(--bg) 1.5rem);padding-top:1.5rem;z-index:4}

.contra{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(16.25rem,100%),1fr));gap:0.75rem}
.contra .card{border-color:var(--warn-line)}

/* Dialoge, Popover */

.dlg{width:100%;max-width:35rem;background:var(--surface);box-shadow:var(--shadow);border:1px solid var(--border);display:flex;flex-direction:column}
.dlg-wide{max-width:45rem}
.dlg-h{display:flex;justify-content:space-between;align-items:flex-start;gap:0.75rem;padding:1.25rem 1.5rem 0.5rem}
.dlg-b{padding:0.5rem 1.5rem 1rem;display:flex;flex-direction:column;gap:1rem}
.dlg-f{padding:1rem 1.5rem 1.25rem;display:flex;flex-wrap:wrap-reverse;gap:.5rem;justify-content:flex-end;border-top:1px solid var(--border)}
.iconbtn{width:var(--h-md);height:var(--h-md);display:grid;place-items:center;border-radius:var(--r-ctl);border:0;background:transparent;color:var(--text);cursor:pointer;flex:none}

.pop{position:absolute;z-index:25;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);padding:0.5rem;width:18.75rem;display:flex;flex-direction:column;gap:0.25rem}

.pop .opt{display:flex;gap:.5rem;align-items:center;min-height:var(--h-md);padding:0 .75rem;border-radius:var(--r-ctl);font-size:.875rem}
.pop .opt input{width:1rem;height:1rem;accent-color:var(--action)}
.secret{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;justify-content:space-between;padding:0.75rem 1rem;border:1px solid var(--border)}
.oncebox{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:2px solid var(--action);border-radius:var(--r-card);background:var(--action-soft)}
.oncebox .mono{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-ctl);padding:.5rem 0.75rem;font-size:0.875rem}
.gap-val{color:var(--warn);font-weight:600}

/* Responsiv: Container-Abfragen auf .app */
@container (max-width: 53.75rem){
  .side{display:none}
  .side.open{display:flex;position:fixed;inset:0 auto 0 0;width:min(20rem,88%);z-index:22;box-shadow:var(--shadow)}
  .mbar{display:flex}
  .page{padding:0 1rem 3rem;gap:1.25rem}
  
  
  .list-head{display:none}
  .li{grid-template-columns:1fr;gap:.5rem;padding:1rem 1rem}
  .li .cl{display:block}
  .li .acts{justify-content:flex-start}
  .kv{grid-template-columns:1fr;gap:2px}
  .kv dd{margin-bottom:.5rem}
  .ans{padding:1rem}
  
  .excerpt{margin-left:1rem}
  .q{align-self:stretch}
  .public{padding:2rem 1rem}
  
  
  .dlg{max-width:none}
  .dlg-f .btn{flex:1 1 8.75rem}
  .toast{left:1rem;right:1rem;bottom:1rem}
  .page-head .row .btn{flex:1 1 auto}
}

/* Ergänzungen für das Produkt */
html{-webkit-text-size-adjust:100%}
body{margin:0}
.skip{position:absolute;left:1rem;top:-4rem;z-index:40;background:var(--surface);color:var(--text);padding:0.75rem 1rem;border-radius:var(--r-ctl);border:1px solid var(--border-strong)}
.skip:focus{top:1rem}
[hidden]{display:none!important}

.acct-wrap .pop{left:0;bottom:calc(100% + 0.5rem)}
.mbar .acct-wrap .pop{left:auto;right:0;bottom:auto;top:calc(100% + 0.5rem)}
.app{scroll-padding-top:4rem;scroll-padding-bottom:12rem}
.side-close{display:none}
.side.open .side-close{display:grid}
.side-head{flex-wrap:nowrap}

.mbar .brand{padding:0}

.options{gap:0.75rem}

.acct-text{display:flex;flex-direction:column;min-width:0}
fieldset.plain{border:0;margin:0;padding:0;min-width:0}
fieldset.plain>legend{padding:0}
.public-brand{width:100%;max-width:27.5rem;padding:0}
.public-brand .brand-name{font-size:1.125rem}

.public-note{max-width:27.5rem;width:100%;color:var(--nav-text)}
.side-steps{width:18.75rem}
.step-text{display:flex;flex-direction:column}
.app ol.stepper{margin:0;padding:0;list-style:none}
dialog.dlg{padding:0;color:var(--text)}
dialog.dlg::backdrop{background:var(--scrim)}
.app details.more>summary{width:100%;min-height:var(--h-md);display:flex;gap:0.5rem;align-items:center;padding:0.5rem 1rem;font-size:.875rem;color:var(--text);cursor:pointer;list-style:none}
.app details.more>summary::-webkit-details-marker{display:none}
.app details.more[open]>summary .icon{transform:rotate(180deg)}

.empty-card .icon{width:2rem;height:2rem;color:var(--text-2)}
.contra-value{font-size:.9375rem;line-height:1.5rem}
.copy-text{min-height:15rem;font-size:.875rem;white-space:pre-wrap}
dialog.dlg:not([open]){display:none}
.htmx-indicator{display:none}
.htmx-request .htmx-indicator,.htmx-request.htmx-indicator{display:inline-block}
.tn-group{display:flex;flex-direction:column;gap:2px}
.tn-pick{display:flex;align-items:center;gap:0.25rem}
.tn-pick input{width:1.25rem;height:1.25rem;accent-color:var(--action);flex:none;margin:0 0.25rem 0 0}
.note.htmx-indicator.htmx-request{display:flex}
.tn[aria-expanded="true"]>.icon{transform:rotate(90deg)}
ul.tree,.tree ul{list-style:none;margin:0;padding:0}
.tree ul{display:flex;flex-direction:column;gap:2px}
.tn-toggle{width:var(--h-md);min-width:var(--h-md);padding:0;justify-content:center;flex:none}
.tn-toggle-space{display:inline-block;width:var(--h-md);flex:none}
.tn-label{flex:1;min-width:0;min-height:var(--h-md);display:flex;align-items:center;padding:0 .5rem;font-size:.875rem;overflow-wrap:anywhere;cursor:pointer}
.tn-pick:has(input:checked) .tn-label{color:var(--action);font-weight:600}

/* Dokumentensuche v2 (10.10.2026): Ergänzungen zu app.css. Keine neuen Farbwerte: alle Bausteine nutzen die gemessenen Tokens. */

.contents{display:contents}
.grow{flex:1;min-width:0}

.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- Rahmen ---------- */
.side-head{display:flex;flex-direction:column;gap:.5rem}
.orgsw{display:flex;align-items:center;gap:.5rem;width:100%;min-height:var(--h-md);padding:.5rem .5rem;color:var(--text);font:inherit;text-align:left;cursor:pointer}

.orgsw .ol{font-size:0.75rem;line-height:1rem;color:var(--text-2)}
.orgsw .on{font-size:.875rem;line-height:1.25rem;font-weight:600}
.nav-count{min-width:1.5rem;height:1.25rem;padding:0 .5rem;border-radius:var(--r-pill);font-size:0.75rem;font-weight:500;display:inline-grid;place-items:center}

.runchip{display:flex;flex-direction:column;gap:.5rem;padding:.5rem 0.75rem;border-radius:var(--r-card);font-size:0.8125rem;line-height:1.125rem;text-decoration:none!important;color:var(--text)!important}
.runchip .rt{display:flex;gap:0.5rem;align-items:center;font-weight:600}
.runchip .bar{height:.5rem}
.menu{position:absolute;z-index:26;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);padding:.5rem;min-width:15rem;display:flex;flex-direction:column;gap:2px}
.menu-h{padding:0.5rem .5rem 0.25rem;color:var(--text-2);text-transform:uppercase}
.menu-i{display:flex;align-items:center;gap:.5rem;min-height:var(--h-md);padding:0 .75rem;border-radius:var(--r-ctl);border:0;background:none;color:var(--text)!important;font:inherit;font-size:.875rem;text-align:left;text-decoration:none!important;cursor:pointer;width:100%}
.menu-i:hover{background:var(--surface-2)}
.menu-i[aria-checked="true"],.menu-i.cur{font-weight:600}
.menu-i .chk{margin-left:auto;color:var(--action)}

.menu-sep{height:1px;background:var(--border);margin:0.25rem 2px}

/* Seitenkopf: ein Muster */
/* The head of a page is a panel: title, a sentence or the facts below it, the actions at the right (Figma: Page header). */
.phead{position:relative;display:flex;flex-wrap:wrap;gap:1rem 3rem;align-items:center;justify-content:space-between;padding:1.5rem 2rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-panel)}
.steckbrief .phead{padding:0;border:0;border-radius:0;background:none}
.phead .t{display:flex;flex-direction:column;gap:0.25rem;min-width:0;min-height:var(--h-md);flex:1 1 20rem}  /* as high as a button, so a title stands at one height with or without actions */
.phead .t .meta{font-size:.9375rem;line-height:1.375rem;max-width:45rem}
.phead .acts{display:flex;gap:0.5rem;align-items:center;flex-wrap:wrap}
.statusline{display:flex;flex-wrap:wrap;gap:0.25rem 1rem;font-size:0.875rem;line-height:1.25rem;color:var(--text-2)}
.statusline .si{display:inline-flex;gap:.5rem;align-items:center}
.ccard .statusline .si:last-child{color:var(--text-3)}
.statusline a{font-weight:500}
.dot-ok{color:var(--ok)}.dot-warn{color:var(--warn)}.dot-err{color:var(--error)}

/* Reiter */
.tabs{position:relative;display:flex;border-bottom:1px solid var(--border);overflow-x:auto;scrollbar-width:thin}
.tab{display:inline-flex;align-items:center;gap:.25rem;min-height:var(--h-md);border:0;border-bottom:2px solid transparent;margin-bottom:-1px;background:none;color:var(--text-2)!important;font:inherit;font-size:0.8125rem;text-decoration:none!important;white-space:nowrap;cursor:pointer}
.tab:hover{color:var(--text)!important}
.tab[aria-selected="true"],.tab.cur{color:var(--text)!important;border-bottom-color:var(--text)}
.tab .nav-count{margin-left:2px}

/* ---------- Fragen ---------- */
.ask{display:flex;flex-direction:column;min-height:calc(100vh - 3.25rem)}  /* the window less the top bar */
.convbar{position:sticky;top:0;z-index:6}
.convbar-in{margin:0 auto;display:flex;flex-wrap:wrap;gap:.75rem 1rem}
.convbar .ctitle{display:flex;flex-direction:column;gap:.25rem;min-width:0;flex:1 1 20rem}
.convbar .ctitle .n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.convbar .ctitle .m{line-height:1.25rem}
.thread{flex:1;width:100%;margin:0 auto;display:flex;flex-direction:column}
.ask-foot{position:sticky;bottom:0;z-index:5;padding:.75rem 3.5rem}
.ask-foot-in{margin:0 auto;display:flex;flex-direction:column;gap:0.5rem}
.cbox{background:var(--surface);border:1px solid var(--border-strong);display:flex;flex-direction:column}

.cbox-row{display:flex;gap:0.5rem;align-items:flex-end}
.cbox textarea{flex:1;min-width:0;min-height:var(--h-lg);resize:none;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:.9375rem;line-height:1.375rem;padding:.5rem 0}
.cbox textarea::placeholder{color:var(--text-3)}
.cbox-scope{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;padding:0.5rem .5rem 0}
.cbox-meta{display:flex;flex-wrap:wrap;gap:0.25rem 0.75rem;justify-content:space-between;padding:0 1rem .5rem;font-size:0.8125rem;line-height:1.125rem;color:var(--text-2)}
.sendbtn{min-height:var(--h-md);min-width:var(--h-md)}
.scopebtn{display:inline-flex;align-items:center;gap:.5rem;min-height:var(--h-md);padding:0 .75rem;border-radius:var(--r-ctl);border:1px solid var(--border);color:var(--text);font:inherit;font-size:0.875rem;cursor:pointer;max-width:100%}
.scopebtn:hover{border-color:var(--border-strong)}
.scopebtn b{font-weight:600}
.scopebtn.changed{border-color:var(--gold-line);background:var(--tint);color:var(--sel-text)}
.scopebtn .x{display:inline-grid;place-items:center;width:1.25rem;height:1.25rem;border-radius:50%}
.pending{display:flex;gap:0.5rem;align-items:center;font-size:0.8125rem;line-height:1.125rem;color:var(--action);font-weight:500}

/* Suchumfang: Popover (breit) / unteres Blatt (schmal) */
.pop2{position:absolute;z-index:24;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);width:min(35rem,calc(100% - 2rem));display:flex;flex-direction:column;max-height:min(40rem,calc(100% - 2.5rem))}
.pop2-h{display:flex;justify-content:space-between;align-items:center;gap:0.75rem;padding:1rem 1rem .5rem}
.pop2-b{padding:.5rem 1rem 0.75rem;display:flex;flex-direction:column;gap:1rem;overflow:auto}
.pop2-f{display:flex;gap:0.5rem;justify-content:space-between;align-items:center;padding:0.75rem 1rem;border-top:1px solid var(--border)}
.tchips{display:flex;flex-wrap:wrap;gap:.5rem}
.tchip{display:inline-flex;align-items:center;gap:.5rem;min-height:var(--h-sm);padding:0 1rem;border-radius:var(--r-pill);border:1px solid var(--border-strong);background:var(--surface);color:var(--text);font:inherit;font-size:.875rem;cursor:pointer}
.tchip[aria-pressed="true"]{background:var(--tint);border-color:var(--gold-line);color:var(--sel-text);font-weight:600}
.tchip[aria-pressed="true"]::before,a.tchip[aria-current]::before{content:"";width:0.625rem;height:0.375rem;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg) translate(1px,-1px)}
.tchip[disabled]{opacity:.55;cursor:not-allowed}
.fgroup{display:flex;flex-direction:column;gap:0.5rem;border:0;margin:0;padding:0;min-width:0}
.fgroup>legend,.fgroup>.label{font-size:0.875rem;font-weight:600;padding:0;margin-bottom:2px}

/* Antwort */

.q2 .who{line-height:1rem;margin-bottom:2px}
.a2{display:flex;flex-direction:column}
.a2-meta{display:flex;flex-wrap:wrap;align-items:center;line-height:1.125rem;color:var(--text-2)}

.a2-text p{margin:0}

.cite2{display:inline-flex;align-items:center;justify-content:center;min-width:1.5rem;height:1.5rem;margin:0 1px;padding:0 .5rem;border:1px solid var(--source-line);background:var(--source-bg);color:var(--source)!important;font-family:var(--font-ui);font-size:0.8125rem;font-weight:700;line-height:1;text-decoration:none!important;vertical-align:2px;cursor:pointer;position:relative}
.cite2::after{content:"";position:absolute;inset:-0.625rem -0.375rem}
.cite2[aria-expanded="true"]{background:var(--source);color:var(--surface)!important;border-color:var(--source)}
.beleg{position:absolute;z-index:22;width:min(32.5rem,calc(100% - 2rem));background:var(--surface);border:1px solid var(--source-line);box-shadow:var(--shadow);display:flex;flex-direction:column}
.beleg-h{display:flex;gap:.5rem;align-items:flex-start;padding:0.75rem 0.75rem .5rem 1rem}
.beleg-b{padding:0.25rem 1rem 0.75rem;display:flex;flex-direction:column;gap:0.5rem}
.beleg-f{display:flex;flex-wrap:wrap;gap:0.5rem;padding:.5rem 1rem 0.75rem;border-top:1px solid var(--border)}
.quote{font-size:0.875rem;line-height:1.375rem;margin:0;padding:0.5rem 0.75rem}
.quote mark{background:transparent;color:inherit;text-decoration:underline;text-decoration-color:var(--source);text-decoration-thickness:2px;text-underline-offset:0.25rem;font-weight:600}
.srcl{display:flex;flex-direction:column}
.srcl-h{line-height:1.125rem;color:var(--source);display:flex;gap:0.5rem;align-items:center}

.srow-head{display:flex;gap:.5rem;align-items:center;min-height:3.25rem;padding:0.25rem 0}
.srow-n{min-width:2rem;height:2rem;background:var(--source);color:var(--surface)!important;display:grid;place-items:center;font-weight:700;font-size:0.875rem;text-decoration:none!important;flex:none}
.srow-main{flex:1;min-width:0;display:flex;flex-direction:column;background:none;border:0;padding:.5rem 0.25rem;text-align:left;font:inherit;color:var(--text);cursor:pointer}
.srow-main:hover{background:var(--surface-2)}
.srow-f{font-weight:600;font-size:.875rem;line-height:1.25rem;overflow-wrap:anywhere}
.srow-m{font-size:0.8125rem;line-height:1.125rem;color:var(--text-2);overflow-wrap:anywhere}
.srow-body{padding:0 0 1rem 2.5rem;display:flex;flex-direction:column;gap:0.5rem}
.srow.focus{outline:3px solid var(--focus);outline-offset:2px;border-radius:var(--r-sm)}
.tag{display:inline-flex;align-items:center;gap:0.25rem;font-size:0.75rem;line-height:1rem;font-weight:600;padding:2px 0.5rem;border:1px solid var(--border);color:var(--text-2);background:var(--surface)}
.tag-warn{border-color:var(--warn-line);color:var(--warn);background:var(--warn-bg)}
.more2{display:flex;flex-direction:column;gap:0.25rem}
.more2>button{align-self:flex-start;display:inline-flex;gap:.5rem;align-items:center;min-height:var(--h-md);padding:0 0.5rem;margin-left:-0.5rem;border:0;background:none;color:var(--text-2);font:inherit;font-size:0.875rem;cursor:pointer;border-radius:var(--r-sm)}
.more2>button:hover{color:var(--text);background:var(--surface-2)}
.more2 .mi2{padding:.5rem 0 .5rem 0;font-size:0.875rem;line-height:1.25rem;color:var(--text-2);border-top:1px dashed var(--border)}
.actbar{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.actbar .sep{width:1px;height:1.5rem;margin:0 0.25rem}
.ibtn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:var(--h-md);min-width:var(--h-md);padding:0 .75rem;border:1px solid transparent;background:transparent;color:var(--text);font:inherit;font-size:0.8125rem;font-weight:500;cursor:pointer;text-decoration:none!important}

.ibtn[aria-pressed="true"]{background:var(--action-soft);color:var(--action);border-color:var(--action);font-weight:600}
.ibtn.sq{padding:0;width:2.5rem}
.fehlerhinweis{font-size:0.8125rem;line-height:1.125rem;color:var(--text-2)}
.inline-form{border:1px solid var(--border);padding:1rem;display:flex;flex-direction:column;gap:.5rem;background:var(--surface)}

/* Leerer Start von Fragen */
/* One empty state (26.11.2026): a framed card, text on the left; only the start of the questions greets centred. */
.hero-empty,.empty-card,.ov-off{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:1.25rem;padding:2rem;border:1px solid var(--border);border-radius:var(--r-panel);background:var(--surface)}

/* ---------- Sammlung ---------- */
.ccard{position:relative;background:var(--surface);border:1px solid var(--border);padding:1.5rem;display:flex;flex-direction:column;gap:1.25rem}
.ccard-h{display:flex;flex-direction:column;gap:1.25rem;align-items:flex-start}
.ccard-t{font-size:1.125rem;line-height:1.625rem;letter-spacing:-.015em;font-weight:600;color:var(--text)!important;text-decoration:none!important}
.ccard-t:hover{text-decoration:underline!important}
.ccard-acts{display:flex;gap:0.5rem;flex-wrap:wrap;align-items:center}
.minirun{display:flex;gap:.5rem;align-items:center;font-size:0.875rem}
.minirun .bar{flex:1;max-width:15rem;height:.5rem}

.rowl{min-height:var(--h-lg);position:relative}
.rowl:first-of-type{border-top:0}

.rowl .rl{color:var(--text)!important;text-decoration:none!important;font-weight:600;overflow-wrap:anywhere}
.rowl .rl::after{content:"";position:absolute;inset:0}
.rowl .rl:focus-visible{outline:none}
.rowl:has(.rl:focus-visible){outline:3px solid var(--focus);outline-offset:-3px}
.rowl .above{position:relative;z-index:1}
.rowl .cl{display:none;font-size:0.75rem;color:var(--text-2);font-weight:600}
.cell2{display:flex;flex-direction:column;gap:2px;min-width:0;padding:0.5rem 0}

/* Seitenblatt */
.sheet{position:absolute;top:0;right:0;bottom:0;z-index:23;width:min(30rem,100%);background:var(--surface);border-left:1px solid var(--border);box-shadow:var(--shadow);display:flex;flex-direction:column}
.sheet-h{display:flex;gap:0.75rem;align-items:flex-start;justify-content:space-between;padding:1rem 1.25rem .5rem;border-bottom:1px solid var(--border)}
.sheet-b{padding:1rem 1.25rem;display:flex;flex-direction:column;gap:1rem;overflow:auto;flex:1}
.sheet-f{padding:1rem 1.25rem;border-top:1px solid var(--border);display:flex;gap:0.5rem;flex-wrap:wrap}
.scrim-l{position:absolute;inset:0;z-index:22;background:var(--scrim)}

/* Einstellungen: Zeilenmuster „Zusammenfassung · Ändern“ */
.setlist{background:var(--surface);border:1px solid var(--border)}
.setrow{display:grid;grid-template-columns:12.5rem minmax(0,1fr) auto;gap:0.5rem 1rem;align-items:start;padding:.75rem 1.25rem;border-top:1px solid var(--border)}
.setrow:first-child{border-top:0}
.setrow .sl{flex:0 0 12.5rem;font-weight:600;font-size:.875rem;line-height:1.375rem}
.setrow .sv{flex:1 1 16.25rem;min-width:0;display:flex;flex-direction:column;gap:0.25rem;font-size:.875rem;line-height:1.375rem}
.setrow .sa{display:flex;gap:0.5rem;align-items:center;justify-content:flex-end;flex-wrap:nowrap}
.setrow.editing{background:var(--surface-2)}
.saved{display:inline-flex;gap:.5rem;align-items:center;font-size:0.875rem;color:var(--ok);font-weight:600}
.dzone{border:1px solid var(--error-line);padding:1rem 1.25rem;display:flex;flex-wrap:wrap;gap:0.75rem;align-items:center;justify-content:space-between;background:var(--surface)}
.cost{display:flex;flex-direction:column;gap:2px;padding:0.75rem 1rem;border-radius:var(--r-ctl);background:var(--warn-bg);border:1px solid var(--warn-line)}
.cost .cv{font-size:1.125rem;line-height:1.625rem;font-weight:600;font-variant-numeric:tabular-nums}
.cost .cl2{font-size:0.8125rem;line-height:1.125rem}

/* KI-Einheiten */
.unit{background:var(--surface);border:1px solid var(--border);display:flex;flex-direction:column}
.unit-h{display:flex;flex-wrap:wrap;gap:0.5rem 1rem;align-items:center;padding:1.5rem}
.unit-h .ut{font-size:1.125rem;line-height:1.625rem;font-weight:600;flex:0 0 auto}
.unit-h .us{flex:1 1 16.25rem;min-width:0;display:flex;flex-wrap:wrap;gap:.5rem .5rem;align-items:center;font-size:0.875rem;color:var(--text-2)}
.unit-b{border-top:1px solid var(--border);padding:1.5rem;display:flex;flex-direction:column;gap:1rem}

.unit.changed{border-color:var(--action)}

/* Einstellungen-Übersicht */
.tile{display:flex;flex-direction:column;gap:0.75rem;padding:1.5rem;background:var(--surface);border:1px solid var(--border);text-decoration:none!important;color:var(--text)!important;position:relative;min-height:10.75rem}

.tile .tt{font-size:1.125rem;line-height:1.625rem;font-weight:600;letter-spacing:-.015em;display:flex;gap:0.5rem;align-items:center}
.tile .ts{font-size:0.9375rem;line-height:1.375rem;color:var(--text-2)}
.tile.need{border-color:var(--warn-line);box-shadow:inset 0 0 0 1px var(--warn-line)}

/* ---------- Überblick ---------- */
.ovbar{display:flex;flex-wrap:wrap;gap:.5rem 0.75rem;align-items:flex-end}
.ovbar .field{flex:1 1 15rem}
.grp{display:flex;flex-direction:column}
.grp-h{position:sticky;top:0;z-index:2;display:flex;gap:.5rem;align-items:baseline;color:var(--text-2)}
.stmt{display:grid;gap:0.25rem 1rem;align-items:start}
.stmt-d{font-size:0.875rem;line-height:1.375rem;font-variant-numeric:tabular-nums;font-weight:600}
.stmt-d .dd{display:block;font-size:0.75rem;line-height:1rem;color:var(--text-2);font-weight:500}
.stmt-m{display:flex;flex-direction:column;gap:0.25rem;min-width:0}
.stmt-top{display:flex;flex-wrap:wrap;gap:.5rem .5rem;align-items:center;font-size:0.875rem;line-height:1.25rem}
.stmt-top .subj{font-weight:600}
.stmt-x{font-size:.875rem;line-height:1.375rem}
.stmt-r{display:flex;gap:.5rem;align-items:center}

.stmt-beleg{grid-column:2 / -1;display:flex;flex-direction:column;gap:0.5rem;padding:.5rem 0 0.25rem}
.art{display:inline-flex;align-items:center;gap:.25rem;font-size:0.75rem;line-height:1rem;font-weight:600;padding:2px 0.5rem 2px .5rem;border-radius:var(--r-sm);border:1px solid var(--border);background:var(--surface-2);color:var(--text)}
.art svg{width:1rem;height:1rem;stroke:currentColor;fill:none;stroke-width:2}
.art.quiet{background:transparent;color:var(--text-2)}
.stbadge{display:inline-flex;gap:.25rem;align-items:center;font-size:0.75rem;line-height:1rem;font-weight:500;padding:3px 0.5rem;border:1px solid}
.st-gilt{color:var(--ok);border-color:var(--ok-line);background:var(--ok-bg)}
.st-ueberholt{color:var(--text-2);border-color:var(--border-strong);background:var(--surface-2);text-decoration:line-through}
.st-widersprochen{color:var(--warn);border-color:var(--warn-line);background:var(--warn-bg)}
.loadmore{display:flex;gap:0.75rem;align-items:center;justify-content:center;padding:1rem 0}
.prop{background:var(--surface);border:1px solid var(--border);display:flex;flex-direction:column}
.prop-h{display:flex;flex-wrap:wrap;gap:0.5rem 1rem;align-items:center;justify-content:space-between;padding:.5rem 1rem;border-bottom:1px solid var(--border)}
.prop-cmp{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(17.5rem,100%),1fr));gap:0}
.prop-side{padding:0.75rem 1rem;display:flex;flex-direction:column;gap:.5rem}
.prop-side+.prop-side{border-left:1px solid var(--border)}
.prop-f{display:flex;flex-wrap:wrap;gap:0.25rem 0.75rem;align-items:center;min-height:var(--h-lg);padding:0.25rem 1rem;border-top:1px solid var(--border);background:var(--surface-2);border-radius:0 0 var(--r-panel) var(--r-panel)}
.prop-f .btn{min-height:var(--h-sm)}
.kbd2{font-family:var(--font-mono);font-size:0.75rem;min-width:1.25rem;height:1.25rem;display:inline-grid;place-items:center;padding:0 .25rem;border:1px solid currentColor;border-radius:var(--r-sm);opacity:.85}
.done-line{display:flex;gap:0.5rem;align-items:center;font-size:0.875rem;color:var(--text-2)}
.reg{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(20rem,100%),1fr));gap:1rem;align-items:start}
.reg-col{background:var(--surface);border:1px solid var(--border)}
.reg-col h3{font-size:.9375rem;line-height:1.375rem;font-weight:600;padding:1rem 1.25rem;border-bottom:1px solid var(--border);display:flex;justify-content:space-between}
.reg-e{padding:.75rem 1.25rem;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:.5rem}
.reg-e:first-of-type{border-top:0}
.reg-e .rn{font-weight:600;font-size:.875rem}
.reg-e .ra{display:flex;flex-wrap:wrap;gap:0.25rem}
.filterchip{display:inline-flex;align-items:center;gap:.5rem;min-height:var(--h-md);padding:0 .5rem 0 0.75rem;border-radius:var(--r-pill);font-size:0.875rem;font-weight:600}
.filterchip button{width:1.75rem;height:1.75rem;border-radius:50%;border:0;background:transparent;color:inherit;cursor:pointer;display:grid;place-items:center}

/* Nutzung */
.bars{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:.5rem;align-items:end;height:8.75rem;padding:0.5rem 0 0;border-bottom:1px solid var(--border-strong)}
.bars span{background:var(--text-2);border-radius:var(--r-sm) var(--r-sm) 0 0;min-height:2px}
.bars-x{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:.5rem;font-size:.75rem;color:var(--text-2);text-align:center}

/* Rollenkarten */
.rolecards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(12.5rem,100%),1fr));gap:0.5rem}

/* ---------- Responsiv ---------- */
@container (max-width: 53.75rem){
  .shell{flex-direction:column}
  
  
  .ask-foot{padding:.5rem 1rem .5rem}
  
  .srow-body{padding-left:0}
  .beleg{left:0.5rem!important;right:0.5rem!important;top:auto!important;bottom:0.5rem!important;width:auto;position:fixed}
  .pop2{left:0!important;right:0!important;bottom:0!important;top:auto!important;width:100%;position:fixed;max-height:85%}
  .sheet{top:auto;height:88%;width:100%;border-left:0;border-top:1px solid var(--border);border-radius:var(--r-card) var(--r-card) 0 0}
  .rowh{display:none}
  .rowl{grid-template-columns:1fr auto}
  .rowl .hide-s{display:none}
  .rowl .cl{display:inline}
  .setrow .sl{flex-basis:100%}
  
  .stmt-d{grid-column:1 / -1;display:flex;gap:0.5rem;align-items:baseline}
  .stmt-d .dd{display:inline}
  .stmt-beleg{grid-column:1 / -1}
  .prop-side+.prop-side{border-left:0;border-top:1px solid var(--border)}
  .tabs{margin:0 -1rem;padding:0 1rem}
  .hide-s{display:none!important}
  .phead .acts .btn{flex:1 1 auto}
  .unit-h,.unit-b,.card,.ccard,.tile,.setrow{padding-left:1rem;padding-right:1rem}
}
@container (min-width: 53.8125rem){ .show-s{display:none!important} }

/* Umsetzung 10.10.2026 (Claude Code): Lage der Menüs im gebauten Rahmen. Keine neuen Farbwerte. */
.org-wrap,.acct-wrap{position:relative}
.org-wrap .menu{left:0;right:0;top:calc(100% + 0.25rem)}
.acct-wrap .menu{left:0;right:0;bottom:calc(100% + 0.5rem)}
.mbar .acct-wrap .menu{left:auto;right:0;bottom:auto;top:calc(100% + 0.5rem)}
.side .menu{min-width:0}
.orgsw-t{display:flex;flex-direction:column}
.menu-who{display:flex;flex-direction:column;padding:0.5rem .5rem .5rem}
.menu-note{padding:0.25rem .5rem .5rem;font-size:0.8125rem;margin:0}
.menu .seg{margin:2px 0.25rem .5rem;width:auto}
.runs{display:flex;flex-direction:column;gap:0.5rem}
.runs:not(:has(.runchip)){display:none}
.runchip .spin{width:0.75rem;height:0.75rem;color:var(--action)}
.side-head .spread{flex-wrap:nowrap;gap:0.5rem}

.menu .seg button{padding:0 0.25rem;white-space:nowrap}

/* Umsetzung 10.10.2026 (Claude Code): Fragen, Beleg, Gespräche. Keine neuen Farbwerte. */
.page-ask{padding:0;gap:0}
.convbar .ctitle .n,.convbar .ctitle .m{margin:0}
.convbar-acts{gap:.5rem;position:relative}
.menu-wrap{position:relative}
.menu-r{right:0;top:calc(100% + .5rem)}
.menu-wide{width:min(21.25rem,calc(100vw - 2rem))}
.menu-2{flex-direction:column;align-items:flex-start;justify-content:center;padding:.5rem .5rem;min-height:3.25rem}
.menu-2 .meta{font-size:0.8125rem}
.menu-t{font-weight:500}
.actbar .menu-wrap .menu{left:0;top:calc(100% + .5rem)}
.qa2{display:flex;flex-direction:column;gap:1.5rem}
.q2 p{margin:0;white-space:pre-wrap}
.a2{position:relative}
.a2-text p{white-space:pre-line}
.a2-meta .spin{color:var(--action)}
.badge-s{min-height:var(--h-xs);font-size:0.75rem}
.skel-l{width:80%;height:1rem}
.skel-m{width:64%;height:1rem}
.beleg-t{display:flex;flex-direction:column}
.excerpt-meta{font-size:0.8125rem}
.srow:focus{outline:none}
.more2>summary{display:inline-flex;gap:.5rem;align-items:center;min-height:var(--h-md);padding:0 0.5rem;margin-left:-0.5rem;color:var(--text-2);font-size:0.875rem;cursor:pointer;border-radius:var(--r-sm);list-style:none}
.more2>summary::-webkit-details-marker{display:none}
.more2>summary:hover{color:var(--text);background:var(--surface-2)}
.more2[open]>summary svg{transform:rotate(180deg)}
label.tchip{cursor:pointer}
.tchip:has(input:checked),.tchip.is-on{background:var(--tint);border-color:var(--gold-line);color:var(--sel-text);font-weight:600}
.tchip:has(input:checked)::before,.tchip.is-on::before{content:"";width:0.625rem;height:0.375rem;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg) translate(1px,-1px)}
.tchip:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:2px}
.tchip:has(input:disabled){opacity:.55;cursor:not-allowed}
.tchip.is-on{cursor:default}
.hero-colls{margin-top:1.25rem;gap:0.75rem}
.ask-foot-in{position:relative}
#suchumfang{left:0;bottom:calc(100% + 0.5rem)}
.scope-fixed{cursor:default}
.scope-x{min-height:var(--h-md);width:2.25rem}
.pending{padding:.5rem 1rem 0;margin:0}
.cbox textarea{max-height:12.5rem;overflow-y:auto}
.label-plain{font-weight:400}
.su-period{align-items:flex-end}
.su-period .field{flex:1 1 8.75rem}
.field-narrow{flex:0 1 15rem}
.rl-off{font-weight:600;color:var(--text-2)}
.contra-value{margin:0}
#suchumfang{max-height:min(40rem,calc(100vh - 10rem))}
#suchumfang.pop-down{bottom:auto;top:calc(100% + 0.5rem)}
.party-files summary{cursor:pointer;display:inline}
.party-files ul{list-style:none;margin:0.25rem 0 0;padding:0;display:flex;flex-direction:column;gap:0.25rem}
.zp .radio-card > .grow{min-width:0}
.zp .fgroup{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:0.5rem}
.zp-times{flex-wrap:wrap}
.zp-time{display:inline-flex;align-items:center;gap:0.25rem}
.radio-card .zp-time input[type="time"]{width:9rem;height:auto;margin:0;flex:none}
.radio-card .zp-unit{width:auto}
.zp-preview-body{display:flex;flex-direction:column;gap:0.25rem}
.beleg{max-height:min(32rem,70vh);overflow:auto}

/* Dokumentensuche v3 (Stil „Ruhiges Blatt“, 10.10.2026). Wird NACH app.css und app-v2.css geladen.
   Nur Darstellung: keine neuen Fachfunktionen, keine Textänderungen. Farbwerte aus tok.py, Kontraste in spec/tokens.json. */

/* ===== Basis ===== */
.h1{font-size:1.5rem;line-height:2rem;font-weight:600;letter-spacing:-.0125em}
.h2{font-size:1.125rem;line-height:1.625rem;font-weight:600;letter-spacing:-.015em}
.h3{font-weight:600}
.lead{font-size:.9375rem;line-height:1.375rem}
.eyebrow,.menu-h{font-size:.75rem;line-height:1rem;font-weight:500;letter-spacing:0}
.skel{background:var(--surface-3)}

/* ===== Frame (truzzt Lens, 03.12.2026): panels float on the dotted canvas, 12 px from the window's edge ===== */
/* The canvas is the ground of .app. The page scrolls as a whole on the phone (sticky bars and the reachability
   guards rely on it); from 860 px the frame is fixed and only the area under the top bar scrolls. */
.shell{min-height:100vh;overflow:clip}
.main{overflow:clip}

/* Seitenleiste */
/* Two panels one below the other: the navigation, and the account (Figma: Sidebar, Account). */
.side{width:var(--side-w);padding:.75rem;gap:.75rem}
.side-main{--edge:11.25rem;position:relative;flex:1;min-height:0;display:flex;flex-direction:column;gap:.5rem;padding:0 1rem 1rem;background:var(--side);border:1px solid var(--border);border-radius:var(--r-panel)}
.side-acct{position:relative;padding:.5rem .75rem;background:var(--side);border:1px solid var(--border);border-radius:var(--r-panel)}
.side-top{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:3.75rem}
.brand{min-height:var(--h-md);padding:0 .25rem;gap:.5rem}
/* In the frame the logo is the way back to the start page: a quiet link, no underline. */
.app a.brand{color:inherit;text-decoration:none;border-radius:var(--r-ctl)}
.app a.brand:hover{background:var(--nav-hover)}
.brand-name{font-weight:600;letter-spacing:-.05em;word-spacing:.12em}  /* the wordmark's spacing; a name in a sentence keeps the normal one */
.railbtn{width:2rem;height:2rem;border-radius:var(--r-ctl);color:var(--text-2)}
.railbtn:hover{background:var(--nav-hover);color:var(--text)}
.orgsw{background:var(--surface);border:1px solid var(--border-mid);border-radius:var(--r-ctl);box-shadow:none}
.orgsw:hover{background:var(--surface)}
.orgmark{display:none}
.nav{gap:2px}

.nav-a{min-height:var(--h-md);padding:0 .5rem;gap:.75rem;border-radius:var(--r-ctl);font-size:.875rem;font-weight:400}
.nav-a>.icon{width:1rem;height:1rem;stroke-width:2.25}  /* the icon takes the colour of its label */
.nav-a:hover{background:var(--nav-hover)}
.nav-a.cur{background:var(--nav-cur);color:var(--text)!important;font-weight:600}
.side-main>nav{display:flex;flex-direction:column}
/* Groups (fine-tuning of 26.11.2026): a small grey name over each, one below the other; the collections used last
   hang under "Alle Sammlungen" like the parts of the settings. */
.nav-group{padding:1.25rem .5rem .5rem;font-size:.75rem;line-height:1rem;font-weight:500;color:var(--text-3)}
.nav-group:first-child{padding-top:.75rem}
.nav-recent .lbl{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-sub .nav-a{min-height:var(--h-sm);border-radius:var(--r-sm);position:relative}
.nav-sub .nav-a.cur{background:transparent;box-shadow:none;color:var(--text)!important}
.nav-sub .nav-a.cur::before{content:"";position:absolute;left:calc(-.75rem - 1px);top:.4375rem;bottom:.4375rem;width:2px;border-radius:var(--r-pill);background:var(--text)}
.nav-count{background:var(--badge-bg);color:var(--badge-text)}
.runchip{background:var(--surface);border:1px solid var(--sheet-line);box-shadow:var(--shadow-sm)}
.acct{border:0;background:transparent;border-radius:var(--r-ctl);min-height:var(--h-lg);padding:0 .5rem}
.acct:hover{background:var(--nav-hover)}
.avatar{width:2rem;height:2rem;background:var(--bronze);border:1px solid var(--border);color:var(--on-avatar);font-size:.8125rem;font-weight:500}

/* Eingeklappte Seitenleiste (nur breit) */
@container (min-width: 53.8125rem){
  .side.rail{width:var(--rail-w)}
  .side.rail .side-main{padding:0 .5rem .5rem;align-items:center}
  .side.rail .side-acct{padding:.5rem}
  .side.rail .side-top{flex-direction:column;gap:.5rem}
  .side.rail .brand{padding:.25rem}
  .side.rail .lbl,.side.rail .brand-name,.side.rail .brand-org{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .side.rail .side-main>nav,.side.rail .nav{width:100%}
  .side.rail .nav{align-items:center}
  
  
  .side.rail .nav-a{justify-content:center;gap:0;padding:0;width:var(--h-md);min-height:var(--h-md);position:relative}  /* no gap: the count's wrapper pushed the icon aside */
  .side.rail .nav-count{position:absolute;top:.25rem;right:.25rem;width:.5rem;height:.5rem;min-width:0;padding:0;overflow:hidden;color:transparent;background:var(--text);border-radius:var(--r-pill)}  /* a dot; the number stays in the text for screen readers */
  .side.rail .nav-sub,.side.rail .nav-group,.side.rail .card,.side.rail .runchip>:not(.rt){display:none}
  .side.rail .nav:not(:first-of-type){margin-top:.5rem;padding-top:.5rem;border-top:1px solid var(--border)}
  .side.rail .runchip{padding:.5rem;align-items:center}
  .side.rail .orgsw{width:var(--h-md);padding:0;justify-content:center}
  .side.rail .orgsw>svg{display:none}
  .side.rail .orgmark{display:grid;place-items:center;width:1.75rem;height:1.75rem;border-radius:var(--r-ctl);background:var(--surface-3);font-size:.8125rem;font-weight:700}
  .side.rail .acct{width:var(--h-md);padding:0;justify-content:center}
  .side.rail .side-foot{align-items:center}
}

/* ===== Buttons, Felder ===== */
.btn{border-radius:var(--r-ctl);font-weight:500;padding:0 1rem}
.btn-p{box-shadow:none}
.btn-s{border-color:var(--border-mid);background:var(--surface-3)}
.btn-s:hover{border-color:var(--border-strong)}
.btn-g:hover{border-color:var(--border-strong)}
.btn[disabled],.btn.is-disabled{box-shadow:none}
.iconbtn:hover,.ibtn:hover{background:var(--surface-2)}
.ibtn{border-radius:var(--r-ctl)}
.ibtn.bordered{border-color:var(--border-mid);background:var(--surface-3);font-size:.875rem;padding:0 1rem}
.ibtn.sq.bordered{padding:0}
.ibtn.bordered:hover{background:var(--surface-3);border-color:var(--border-strong)}
.input,.select,.textarea{border-radius:var(--r-ctl);border-color:var(--border-strong);background:var(--surface)}
.input:hover,.select:hover,.textarea:hover{border-color:var(--text-2)}
.input:focus,.select:focus,.textarea:focus{border-color:var(--text)}
.radio-card{border-color:var(--border-mid);border-radius:var(--r-card)}
.radio-card.sel{border-color:var(--action)}
.secret{background:var(--surface-2);border-color:var(--border);border-radius:var(--r-ctl)}

/* Chips */
.chip,.tchip,.scopebtn{border-color:var(--border-mid)}
.chip{min-height:var(--h-sm)}
.app a.chip,.app a.tchip{text-decoration:none!important;color:var(--text)!important}
.app a.tchip[aria-pressed="true"],.app a.tchip[aria-current="page"]{color:var(--sel-text)!important}
.chip.sel{background:var(--tint);color:var(--sel-text);border-color:var(--gold-line);font-weight:600}
.filterchip{background:var(--text);color:var(--bg)}

/* Segmentierte Auswahl: eine Spur, ein gewählter Teil (ersetzt .seg und .subtabs optisch) */
.seg,.subtabs{display:inline-flex;gap:.125rem;padding:.125rem;border:0;border-radius:var(--r-ctl);background:var(--seg-track);overflow:visible;width:auto;align-self:flex-start;max-width:100%}
.seg button,.subtab{flex:1 0 auto;min-height:var(--h-sm);padding:0 .75rem;border:0;border-radius:var(--r-sm);background:transparent;color:var(--text);font:inherit;font-size:.8125rem;font-weight:500;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;text-decoration:none!important}
.seg button+button{border-left:0}
.seg button:hover,.subtab:hover{background:var(--nav-hover)}
.seg button[aria-pressed="true"],.subtab[aria-selected="true"]{background:var(--seg-on);color:var(--text);font-weight:600;box-shadow:0 0 0 1px var(--border-strong),var(--shadow-sm)}
.menu .seg{display:flex;align-self:stretch}

/* Reiter der Sammlung: ruhiger, Unterstrich in Aktionsfarbe */
.tabs{gap:0 1rem;border-bottom-color:var(--border)}
.tab{border-bottom-width:2px;font-weight:400;padding:0}
.tab[aria-selected="true"],.tab.cur{font-weight:600}
.tab .nav-count{min-width:0;height:auto;padding:0;background:none;color:inherit;font-size:.75rem;font-weight:400}

/* ===== Flächen: Karten, Listen, Tabellen ===== */
.card,.ccard,.unit,.setlist,.tile,.prop,.reg-col,.list,.inline-form,.tree,.dzone,.counter{border-color:var(--border);border-radius:var(--r-panel)}
.card,.ccard,.tile{box-shadow:none}
.tile:hover{border-color:var(--border-strong)}
.counter.c-warn{border-color:var(--warn-line)}

.badge,.stbadge,.tag{border-radius:var(--r-pill)}
.badge{border-color:transparent}
.b-ok:not(:has(.dot))::before,.b-warn:not(:has(.dot))::before,.b-err:not(:has(.dot))::before{content:"";width:.375rem;height:.375rem;border-radius:50%;background:currentColor;flex:none}
.b-ok:not(:has(.dot))::before{background:var(--ok-dot)}.b-warn:not(:has(.dot))::before{background:var(--warn-dot)}
.b-ok,.b-warn,.b-err{border-color:transparent}
.b-info{border-color:var(--info-line)}
.note{border-radius:var(--r-card)}

/* Tabellen ohne Rahmen, nur Haarlinien */
/* A list is a framed card (26.11.2026); its rows take their columns from the list, so a head cell stands over its
   column whatever the cells hold. */
.rows,.list{display:grid;grid-template-columns:var(--cols);column-gap:1rem;border:1px solid var(--border);border-radius:var(--r-panel);background:var(--surface)}
.rows>*,.list>*{grid-column:1/-1}
.rowh,.list-head{background:var(--surface-2);border-radius:var(--r-panel) var(--r-panel) 0 0;min-height:var(--h-md);font-size:.75rem;line-height:1rem;font-weight:500;letter-spacing:0;text-transform:none;color:var(--text-2);border-bottom:1px solid var(--border)}
.rowl,.li{border-top:0;border-bottom:1px solid var(--border)}
.rowl:last-child,.li:last-child{border-bottom:0;border-radius:0 0 var(--r-panel) var(--r-panel)}
.rowl:hover{background:var(--surface-2)}
.rowl.sel{background:var(--action-soft)}

/* ===== Fragen ===== */
/* The questions are a page like every other: the same column, the title where every title stands. */
.convbar{background:var(--bg);padding:0 1.5rem .75rem}
.convbar-in{position:relative;max-width:var(--page-w);align-items:center;padding:1.5rem 2rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-panel)}
.ask-foot-in{max-width:calc(var(--page-w) - 4rem)}
.convbar .ctitle .n{font-size:1.5rem;line-height:2rem;font-weight:600;letter-spacing:-.0125em}
.convbar .ctitle .m{font-size:.875rem;color:var(--text-3)}
.convbar .collsw{color:var(--text-2);font-weight:500}
.thread{max-width:calc(var(--page-w) + 3rem);padding:.75rem 3.5rem 1.25rem;gap:1.5rem}
.a2-text,.q2 p{max-width:45rem}  /* a line of text stays readable in the wide column */
.q2{background:none;border-radius:0;padding:0;max-width:none;align-self:stretch;display:flex;flex-direction:column;gap:.1875rem}
.q2 .who{font-size:.75rem;font-weight:400;color:var(--text-2)}
.q2 p{font-size:.875rem;line-height:1.375rem;font-weight:600;text-wrap:pretty}
.a2{gap:1rem}
.a2-meta{gap:.5rem .5rem;font-size:.75rem}
.a2-text{font-family:var(--font-ui);font-size:.875rem;line-height:1.5rem}
.a2-text p+p{margin-top:1rem}
.cite2{border-radius:var(--r-sm)}
.quote{font-family:var(--font-read);background:var(--surface-2);border-left:3px solid var(--source-line);border-radius:var(--r-sm) var(--r-ctl) var(--r-ctl) var(--r-sm)}
.srcl{border-top:0}
.srcl-h{font-size:.75rem;font-weight:600;padding:.5rem 0 .25rem}
.srow{border-bottom:1px solid var(--border)}
.srow-n{border-radius:var(--r-ctl)}
.srow-main{border-radius:var(--r-ctl)}
.beleg{border-radius:var(--r-card);border-color:var(--source-line)}
.actbar .sep{background:var(--border)}

/* Eingabefeld */
.ask-foot{background:linear-gradient(to bottom,transparent,var(--bg) 1.25rem)}
/* The composer is the only element with a shadow (brand book, elevation). */
.cbox{position:relative;border-radius:var(--r-panel);border-color:var(--border);box-shadow:var(--shadow-composer)}
.cbox:focus-within{outline:2px solid var(--focus);outline-offset:2px}
.cbox-row{padding:.5rem .5rem .5rem 1rem}
.sendbtn{border-radius:var(--r-ctl)}
.scopebtn{background:var(--surface-3)}

/* Leerer Start: Titel und Eingabefeld gemeinsam mittig (Produktion: Klasse .is-empty an .ask) */
.ask.is-empty .thread,.ask:has(.hero-empty) .thread{flex:0 0 auto;margin-top:auto;padding-bottom:2rem}
.ask.is-empty .ask-foot,.ask:has(.hero-empty) .ask-foot{position:static;background:none;margin-bottom:auto;padding-bottom:4rem}
.ask .hero-empty{align-items:center;text-align:center;padding:0;gap:.75rem;border:0;background:none}
.ask .hero-empty>.meta{color:var(--text-3)}
.ask .hero-empty .h1{font-size:1.75rem;line-height:2.25rem;letter-spacing:-.015em}
.hero-empty .lead{max-width:45rem}
.hero-empty .fgroup legend{margin-inline:auto}
.hero-empty .tchips{justify-content:center}

/* ===== Überblick als Zeitleiste ===== */
.grp-h{background:var(--bg);border-bottom:0;font-size:.8125rem;line-height:1.25rem;font-weight:500;letter-spacing:0;text-transform:none;padding:1rem 0 .5rem}
.stmt{position:relative;grid-template-columns:7rem minmax(0,1fr) auto;column-gap:2.5rem;padding:.75rem .25rem;border-bottom:0}
.stmt::before{content:"";position:absolute;left:calc(8.5rem - 1px);top:0;bottom:0;width:2px;background:var(--border-mid)}
.stmt::after{content:"";position:absolute;left:calc(8.5rem - .4375rem);top:1.125rem;width:.875rem;height:.875rem;border-radius:50%;background:var(--bg);border:2px solid var(--action);box-sizing:border-box}
.stmt:has(.st-gilt)::after{border-color:var(--ok)}
.stmt:has(.st-widersprochen)::after{border-color:var(--warn)}
.stmt:has(.st-ueberholt)::after{border-color:var(--border-strong);background:var(--surface-2)}
.stmt.open{background:transparent}
.stmt.open .stmt-m,.stmt.open .stmt-beleg{position:relative}
.stmt-d{color:var(--text)}

/* ===== Überlagerungen ===== */
.menu,.pop,.pop2{border-color:var(--sheet-line);border-radius:var(--r-card)}
.dlg{border-color:var(--sheet-line);border-radius:var(--r-card)}
.dlg-f{border-top-color:var(--border)}
.sheet{border-left-color:var(--border)}
.sheet-h,.sheet-f{border-color:var(--border)}
.toast{border-radius:var(--r-card)}

/* ===== Öffentliche Seiten ===== */
.public-card{border-color:var(--sheet-line);border-radius:var(--r-panel);padding:2rem}

/* ===== Schmal ===== */
@container (max-width: 53.75rem){
  .mbar{position:sticky;top:0;padding:0 1rem;background:var(--bg)}
  .side.open{background:var(--bg)}
  .railbtn{display:none}
  .convbar{padding:0 1rem .75rem}
  .thread{padding:.75rem 1rem 1.25rem;gap:1.5rem}
  .a2-text{font-size:.875rem;line-height:1.5rem}
  .ask .hero-empty .h1{font-size:1.5rem;line-height:2rem}
  .ask.is-empty .ask-foot,.ask:has(.hero-empty) .ask-foot{padding-bottom:1.5rem}
  .stmt{grid-template-columns:minmax(0,1fr) auto;column-gap:.75rem;padding:.75rem 0 .75rem 1.75rem}
  .stmt::before{left:calc(.4375rem - 1px)}
  .stmt::after{left:0;top:1rem}
  .rowl{padding:.5rem 1rem}
  .public-card{padding:1.75rem 1.25rem}
  .seg,.subtabs{max-width:100%;overflow-x:auto}
}

/* Design D: on touch screens every control keeps 44 px. */
@media (pointer:coarse){
  .app{--h-sm:2.75rem;--h-md:2.75rem}
}

/* ===== Erzwungene Farben (Windows-Kontrastmodus): Auswahl nicht nur über Fläche und Schatten ===== */
@media (forced-colors: active){
  .main,.cbox,.q2,.public-card{border:1px solid CanvasText}
  .nav-a.cur,.seg button[aria-pressed="true"],.subtab[aria-selected="true"]{outline:2px solid Highlight;outline-offset:-2px}
  .stmt::before,.stmt::after{forced-color-adjust:none;background:CanvasText;border-color:CanvasText}
}

/* Umsetzung 10.10.2026 (Claude Code): Sammlung mit Reitern, Seitenblatt, Karten. Keine neuen Farbwerte. */
a.tchip{text-decoration:none!important}
a.tchip[aria-current]{background:var(--tint);border-color:var(--gold-line);color:var(--sel-text)!important;font-weight:600}
a.tchip .meta{font-size:0.75rem}
.statusline .spin,.minirun .spin,.spin-s{width:0.75rem;height:0.75rem;color:var(--action)}
.row-acts{gap:0.25rem;justify-content:flex-end}
.ccard-main{gap:0.25rem;min-width:0}
.todo{gap:.5rem 1rem}
.todo a{font-size:.875rem;font-weight:600;color:var(--action)!important;text-decoration:none!important}
.todo a:hover{text-decoration:underline!important}
.card-links{gap:0.25rem 1.25rem}
.card-links a{font-size:.875rem;font-weight:500;color:var(--text-2)!important}
.card-list{list-style:none;margin:0;padding:0}
.kv-wide{grid-template-columns:minmax(10rem,15rem) minmax(0,1fr)}
.strong{font-weight:600}
.sheet-t{gap:0.25rem;min-width:0}
.sheet-t .h2{overflow-wrap:anywhere}
.summary-strong{cursor:pointer;min-height:var(--h-sm);font-weight:600}
#blatt .scrim-l{position:fixed;inset:0}
#blatt .sheet{position:fixed;top:0.5rem;right:0.5rem;bottom:0.5rem;border-radius:var(--r-card)}
@container (max-width: 53.75rem){
  #blatt .sheet{top:auto;left:0;right:0;bottom:0;border-radius:var(--r-card) var(--r-card) 0 0}
}
.row-end{align-items:flex-end}
.row>.field.grow{flex:1 1 12rem}  /* too narrow a row: the field goes to its own line instead of shrinking to a sliver */
.gap-2{gap:0.125rem}
.gap-8{gap:0.5rem}
.radio-card .input-minutes{width:6rem;height:auto;margin:0;flex:none}
.dzone-t{gap:0.125rem;max-width:40rem}
.btn-danger-s{color:var(--error)!important;border-color:var(--error-line)}
.check-box{width:1.25rem;height:1.25rem;accent-color:var(--action)}
.saved-line{color:var(--ok);font-weight:600}

/* Umsetzung 10.10.2026 (Claude Code): Überblick. Keine neuen Farbwerte. */
.subtab{text-decoration:none!important;color:var(--text)!important}
.subtab[aria-current]{background:var(--seg-on,var(--surface));font-weight:600;box-shadow:0 0 0 1px var(--border-strong),var(--shadow-sm,none)}
.ov-note{max-width:32.5rem;margin:0}
.ov-off .small{max-width:40rem}
.grp-n{font-weight:400}
.quote-s{font-size:0.8125rem;line-height:1.25rem}
.bar-note{max-width:26.25rem}
.note .spin{width:1rem;height:1rem;color:var(--action);flex:none;margin-top:0.125rem}
.reg-empty{padding:.75rem 1.25rem;margin:0}
.reg-files{padding-left:0.25rem;margin:0}
.filterchip a{width:1.75rem;height:1.75rem;border-radius:50%;display:grid;place-items:center;color:inherit!important}
.stmt-x{margin:0}

/* Umsetzung 10.10.2026 (Claude Code): Einstellungen. Keine neuen Farbwerte. */
.ki-leiste{position:sticky;bottom:0.75rem;box-shadow:var(--shadow);gap:.5rem;z-index:4}
.ki-leiste .htmx-indicator:not(.htmx-request){display:none}
.keys>summary{cursor:pointer;list-style:none}
.keys>summary::-webkit-details-marker{display:none}
.ovbar-center{align-items:center}
.ovbar .field-narrow{flex:0 1 16.25rem}
.warn-text{color:var(--warn)}
.radio-card:has(input:checked){border:2px solid var(--action);padding:.75rem 1rem;background:var(--action-soft)}
.radio-card.sel:has(input[type="radio"]:not(:checked)){border:1px solid var(--border-mid);padding:1rem 1rem;background:var(--surface)}
.dzone-s{padding:0.75rem 1rem}
.acts.row{gap:0.5rem;flex-wrap:nowrap}
details.setlist>summary{cursor:pointer;list-style:none}
details.setlist>summary::-webkit-details-marker{display:none}
.sl-plain{font-weight:500}
.cost-info{background:var(--info-bg);border-color:var(--info-line)}
.radio-link{color:var(--text)!important;text-decoration:none!important}
.radio-dot{width:1.25rem;height:1.25rem;margin-top:2px;border:2px solid var(--border-strong);border-radius:50%;flex:none}

/* Breite (10.10.2026, Entscheidung Alexander, Option 1): Listen und Tabellen nutzen die volle Breite, Formulare und
   Fließtext behalten eine lesbare Breite und stehen mittig. Abweichung vom Entwurf, siehe docs/ux/ux-konzept.md. */
/* One column for every page (feedback 26.11.2026): 960 px of content in the middle of the area beside the sidebar,
   or beside the Steckbrief of a collection, so the space on both sides is the same at any screen width. The questions
   keep their reading column (--col), centred as well. */
.page{max-width:calc(var(--page-w) + 3rem);margin-inline:auto}
.page-ask{max-width:none}
.page>.note,.page>p.meta,.page>p.small{max-width:60rem}
.card-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(26rem,100%),1fr));gap:1rem;align-items:start}
.stmt-x,.stmt-beleg{max-width:62rem}
/* Contradictions (19.11.2026): pairs under an answer and the sides of the authors in the overview. */
.contra-pair{display:flex;flex-direction:column;gap:0.5rem}
.contra-h{display:flex;flex-wrap:wrap;gap:.5rem 0.5rem;align-items:center}
.contra-h .h3{margin:0}
.party{padding:0.5rem 0;border-top:1px solid var(--border);flex-wrap:wrap}
.party .rn{font-weight:600;font-size:.875rem}
.party .select{width:auto;min-width:12rem}
/* The knowledge of the model as a second source (19.11.2026): apart from the checked answer, and marked. */
.wissen{display:flex;flex-direction:column;gap:0.5rem;padding:1rem 1rem;border:1px dashed var(--warn-line);border-radius:var(--r-card);background:var(--surface)}
.wissen-t{margin:0;white-space:pre-line;font-size:.9375rem;line-height:1.5rem}
.kchip{min-height:var(--h-sm)}
.kmodel{display:inline-flex}
.cmp{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(16.25rem,100%),1fr));gap:0.75rem;align-items:start}
.kselect{width:auto;max-width:16rem;min-height:var(--h-sm);padding:0.25rem 0.5rem;font-size:0.8125rem;border-radius:var(--r-ctl)}
/* The web as a further source (19.11.2026): its pages as a numbered list under the part. */
.weblist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0.5rem}
.weblist li{display:flex;gap:.5rem;align-items:flex-start}
.weblist .srow-n{min-width:2.25rem;width:auto;padding:0 .5rem}
.weblist a{font-weight:600;overflow-wrap:anywhere}
/* Drafts (19.11.2026): paragraphs with their mark at the side, the sources below. Plain until the new interface. */
.draft{display:flex;flex-direction:column;gap:.5rem;padding:0;max-width:62rem}
.dp{display:flex;flex-direction:column;gap:.5rem;align-items:flex-start;padding:0.75rem 1rem;border:1px solid var(--border);border-radius:var(--r-card);background:var(--surface)}
.dp p{margin:0;font-family:var(--font-read);font-size:.875rem;line-height:1.5rem}
.dp-mark{border-color:var(--warn-line);background:var(--banner-bg)}
.dsrc{padding:.5rem 0;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:0.25rem}
.dsrc:target{outline:3px solid var(--focus);outline-offset:2px}

/* UI analysis 25.11.2026: what is on a page stays reachable (e2e/test_ablauf.py, e2e/erreichbar.py). */
/* A1: the sidebar stays in view on long pages; only the list of areas scrolls when the window is lower than the
   sidebar, so the foot with the account menu is never cut and its menu is not clipped by a scroll box. */
@container (min-width: 53.8125rem){
  .side{position:sticky;top:0;height:100vh;align-self:flex-start}
  .mbar-menu,.mbar .acct-wrap{display:none}
  .side-main>nav{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
}
/* Fester Rahmen (feedback 26.11.2026): from 860 px the window no longer scrolls. The area under the top bar does,
   so the sidebar, the top bar, the Steckbrief and the tabs of a collection stay; what sticks inside the content (the
   conversation's bar, the composer, the sections of the AI page) sticks to that area. The phone keeps the page scroll. */
@container (min-width: 53.8125rem){
  .shell{height:100vh;overflow:hidden}
  .main{min-height:0}
  .mbody{min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding-top:4rem;scroll-padding-bottom:12rem;
         align-items:flex-start}  /* the page as high as its content, or sticky parts leave with its first screen */
  .page-akte .tabs{position:sticky;top:0;z-index:5;background:var(--bg)}
  .app:has(#blatt .sheet) .mbody{overflow:hidden}
}
/* A3: a row of tabs wider than the screen scrolls sideways; the overview's views do the same instead of being cut. */
.subtabs{max-width:100%;overflow-x:auto;scrollbar-width:none}
/* A5: the page behind an open sheet does not scroll. */
html:has(#blatt .sheet){overflow:hidden}
/* With the sidebar folded to a rail the account menu took the rail's width (44 px) and its text ran out of it. */
.side.rail .acct-wrap .menu{right:auto;width:15rem}

/* UI analysis 25.11.2026, package B: one grid. */
/* B1: a settings row is label, value, actions (grid in .setrow above); the actions stay at the right. */
@container (max-width: 53.75rem){
  .setrow{grid-template-columns:minmax(0,1fr)}
  .setrow .sa{justify-content:flex-start;flex-wrap:wrap}
}
/* B2: every radio button and checkbox one size (not those hidden behind a chip). */
.app input[type="radio"]:not(.sr),.app input[type="checkbox"]:not(.sr){width:1.25rem;height:1.25rem;margin:0;accent-color:var(--action);flex:none}
/* A4/B: the collection is named alone until the scope is narrowed (the composer's padding is in .ask-foot above). */
.scopebtn:not(.changed) [data-scope-text],.scopebtn:not(.changed) [data-scope-dot]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* B8: links standing alone are at least 24 px high (breadcrumbs, the links of a collection card). */
.crumbs a,.ccard a.small{display:inline-flex;align-items:center;min-height:var(--h-xs)}
/* B6: a group of filter chips says what it filters (Art, Status). */
.tchips-l{align-items:center}
.tchips-h{min-width:3.5rem;font-weight:600}

/* UI analysis 25.11.2026, package C. */
/* C2: the settings of a collection in groups with a heading each. */
.setgroup{display:flex;flex-direction:column;gap:0.5rem}
.setgroup-h{margin:0.5rem 0 0}
/* D1: the collection of a question is switched at its name in the head of "Fragen". */
.collsw{display:inline-flex;align-items:center;gap:0.25rem;min-height:var(--h-xs);padding:0 0.25rem;margin-left:-0.25rem;border:0;border-radius:var(--r-ctl);background:none;color:inherit;font:inherit;cursor:pointer}
.collsw:hover{background:var(--nav-hover);color:var(--text)}
#sammlung-wahl{left:0;top:calc(100% + 0.25rem)}
#sammlung-wahl .menu-i[aria-current]{font-weight:600}
/* C4: jump links to the topics of a long settings page; they stay at the top while it scrolls. */
.secnav{position:sticky;top:0;z-index:4;background:var(--bg)}  /* the look is the tabs' (.tabs .tab) */
.page-ki .unit-h h2{scroll-margin-top:4rem}

/* Design D, package 2 (25.11.2026): a collection with its profile at the side, tabs with counts, the tab "Stand". */
.mbody{flex:1;display:flex;min-width:0}
.mbody>.page{flex:1;min-width:0}
/* The Steckbrief is the head of a collection's page (26.11.2026): back link, name and "Jetzt einlesen", the facts in a
   row, a running job; the tabs follow below it in the same column as every page. */
.steckbrief{position:relative;display:flex;flex-direction:column;gap:.75rem;min-width:0;padding:1.5rem 2rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-panel)}

.sb-name{font-size:1.5rem;line-height:2rem;font-weight:600;letter-spacing:-.0125em;overflow-wrap:anywhere}
.sb-facts{margin:0;display:flex;flex-wrap:wrap;gap:.5rem 2rem}
.sb-facts dt{font-size:0.75rem;line-height:1rem;color:var(--text-2)}
.sb-facts dd{margin:0;overflow-wrap:anywhere}

.sb-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(14rem,100%),1fr));gap:.75rem 1.5rem}
.sb-person{display:flex;flex-direction:column;line-height:1.25rem}
.sb-person .meta{font-size:0.75rem;line-height:1rem}
.sb-status{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem}
.sb-status .si{display:flex;gap:.5rem;align-items:center;font-size:0.8125rem}
.btn-sm{min-height:var(--h-sm);padding:0 0.75rem;font-size:0.8125rem}
.page-akte>.tabs{padding-top:.25rem;flex-wrap:wrap;align-items:center;overflow:visible}

.page-akte>.subtabs{margin-top:-0.25rem}
.banner{display:flex;gap:.5rem;align-items:flex-start;padding:.5rem 1rem;border:1px solid var(--banner-line);border-radius:var(--r-card);background:var(--banner-bg);color:var(--text)!important;text-decoration:none!important}
.banner>.icon{color:var(--warn);margin-top:0.1875rem}
.steps-card{gap:1rem}
.steps-d{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(8rem,100%),1fr));gap:0.75rem 0}
.step-d{display:flex;flex-direction:column;gap:0.125rem;padding:1rem 0.75rem 0 0;position:relative}
.step-d::before{content:"";position:absolute;left:0;top:0.1875rem;width:0.4375rem;height:0.4375rem;border-radius:50%;background:var(--border-strong)}
.step-d::after{content:"";position:absolute;left:0.4375rem;right:0;top:0.375rem;height:1.5px;background:var(--border-mid)}
.step-d:last-child::after{display:none}
.step-d.done::before,.step-d.done::after{background:var(--text)}
.step-d.now::before{width:0.5625rem;height:0.5625rem;top:0.125rem;background:var(--surface);border:2.5px solid var(--text);box-sizing:border-box}
.step-l{font-weight:500}
.step-d:not(.done):not(.now) .step-l{color:var(--text-2)}
.step-t{font-size:0.75rem;line-height:1rem;color:var(--text-2)!important;text-decoration:none!important}
.step-t:hover{text-decoration:underline!important}
.askcard{display:flex;flex-direction:column;gap:.5rem}
.askcard-box{display:flex;flex-direction:column;gap:0.5rem;padding:.75rem 1.25rem .5rem;border:1px solid var(--border-strong);border-radius:var(--r-card);background:var(--surface)}
.askcard-box:focus-within{border-color:var(--text);box-shadow:0 0 0 1px var(--text)}
.askcard-in{min-height:var(--h-sm);padding:0;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:.875rem}
.askcard-foot{display:flex;align-items:center;gap:.5rem}
.askcard-foot .meta{flex:1;font-size:0.75rem}
.points{display:flex;flex-direction:column;gap:0.5rem}
.point{display:flex;align-items:center;gap:0.75rem;min-height:3.25rem;padding:.75rem 1.25rem;border:1px solid var(--border);border-radius:var(--r-card);color:var(--text)!important;text-decoration:none!important}
a.point:hover{background:var(--surface-2);border-color:var(--border-mid)}
.point>.icon{color:var(--text-2)}
.point-warn>.icon:first-child{color:var(--warn)}
.point-t{flex:1;display:flex;flex-direction:column;min-width:0}
.point-t .meta{font-size:0.75rem;line-height:1rem}
@container (max-width: 53.75rem){
  .mbody{flex-direction:column}
  .sb-facts{gap:.25rem 1rem}
  .page-akte>.tabs{margin-inline:-1rem;padding-inline:1rem;flex-wrap:nowrap;overflow-x:auto}
  
}

/* Design D, package 3 (25.11.2026): an answer as cards, one per paragraph, with its places and the check below. */
.claim{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:var(--r-panel);background:var(--surface)}
.claim-b{display:flex;flex-direction:column;gap:.5rem;padding:.75rem 1rem}
.claim-srcs{display:flex;flex-wrap:wrap;gap:.5rem}
.claim-src{display:inline-flex;align-items:center;min-height:var(--h-xs);padding:0 .5rem;border:1px solid var(--border-mid);border-radius:var(--r-sm);background:var(--surface);color:var(--text)!important;font-size:.75rem;text-decoration:none!important;overflow-wrap:anywhere}
.claim-src:hover{background:var(--surface-2);border-color:var(--border-strong)}
.claim-f{display:flex;flex-wrap:wrap;gap:.125rem 1rem;align-items:center;min-height:var(--h-md);padding:0 1rem;border-top:1px solid var(--border);background:var(--surface-2);border-radius:0 0 var(--r-panel) var(--r-panel);color:var(--ok);font-size:.75rem}
.claim-f .icon{width:1rem;height:1rem}
/* Design D: the actions of a settings row are small framed buttons (D-Einstellungen). */
/* Inside a row or the head of a section a secondary button is the small one. */
.setrow .sa .btn-g,.unit-h .btn-g,.btn-row{min-height:var(--h-sm);padding:0 .75rem}

/* Printing takes the whole content, not the part the fixed frame shows. */
@media print{
  .shell{height:auto;overflow:visible}
  .mbody{overflow:visible}
  .side,.mbar{display:none}
}

/* The gold edge (brand book, shape and surface): the outline of a main panel catches a little gold light where the
   pointer comes near it. Figma draws it with a shader that follows the pointer. Here a ring and a faint inner halo,
   both masked to a circle around --mx/--my. At rest nothing shows (feedback of 03.12.2026: no fixed shimmer in a
   corner): app.js sets --edge-on while the pointer is on the panel and moves the circle with it; when the pointer
   leaves, the light fades where it was. On panels only, never on small controls. */
.side-main::before,.side-acct::before,.phead::before,.steckbrief::before,.convbar-in::before,.cbox::before,.ccard::before,.tile::before,.hero-empty::before,.empty-card::before,.ov-off::before,.public-card::before{content:"";position:absolute;inset:-1px;padding:1px;border-radius:inherit;pointer-events:none;opacity:var(--edge-on,0);transition:opacity 240ms var(--ease);background:radial-gradient(circle var(--edge) at var(--mx,0) var(--my,0),var(--gold-edge),color-mix(in srgb,var(--gold-edge) 90%,transparent) 25%,color-mix(in srgb,var(--gold-edge) 64%,transparent) 50%,color-mix(in srgb,var(--gold-edge) 30%,transparent) 75%,transparent);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
.side-main::after,.side-acct::after,.phead::after,.steckbrief::after,.convbar-in::after,.cbox::after,.ccard::after,.tile::after,.hero-empty::after,.empty-card::after,.ov-off::after,.public-card::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:var(--edge-on,0);transition:opacity 240ms var(--ease);box-shadow:inset 0 0 1rem color-mix(in srgb,var(--gold-edge) 18%,transparent);-webkit-mask-image:radial-gradient(circle var(--edge) at var(--mx,0) var(--my,0),var(--edge-fall));mask-image:radial-gradient(circle var(--edge) at var(--mx,0) var(--my,0),var(--edge-fall))}
.steckbrief .phead::before,.steckbrief .phead::after,.ask .hero-empty::before,.ask .hero-empty::after{display:none}
@media (forced-colors: active){.side-main::before,.side-acct::before,.phead::before,.steckbrief::before,.convbar-in::before,.cbox::before,.ccard::before,.tile::before,.hero-empty::before,.empty-card::before,.ov-off::before,.public-card::before,.side-main::after,.side-acct::after,.phead::after,.steckbrief::after,.convbar-in::after,.cbox::after,.ccard::after,.tile::after,.hero-empty::after,.empty-card::after,.ov-off::after,.public-card::after{display:none}}
@container (max-width: 53.75rem){
  .phead,.steckbrief,.convbar-in{padding:1rem 1.25rem}
}
/* The canvas answers the pointer (Figma: the dot grid's shader, shape "Ring", radius 100 px): in a ring around it
   the dots grow to twice their size and take the brighter tone. A second layer of larger dots, masked to the ring;
   app.js moves --px/--py and shows the layer while a mouse is over the page. */
.canvas-glow{position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:0;transition:opacity 240ms var(--ease);background:radial-gradient(circle,var(--dot-hi) 2px,transparent 3px) 0 0/2rem 2rem;-webkit-mask-image:radial-gradient(circle 6.25rem at var(--px,0) var(--py,0),transparent,rgba(0,0,0,.5) 25%,#000 50%,rgba(0,0,0,.5) 75%,transparent);mask-image:radial-gradient(circle 6.25rem at var(--px,0) var(--py,0),transparent,rgba(0,0,0,.5) 25%,#000 50%,rgba(0,0,0,.5) 75%,transparent)}
.canvas-glow.on{opacity:1}
@media (forced-colors: active){.canvas-glow{display:none}}
