/* Leiste am Schreibtisch, für alle Tische (Casimir 25.11.2026: „Seitenleiste unübersichtlich, Zeichen alle gleich“;
   Mockup 2 https://claude.ai/artifact/XoaiwSANmKW9iCPfT4JALt, Vorbild Kasse wie gastronovi).
   Drei Ebenen: Schreibtisch (oben links), Werkzeug (Schiene: Zeichen + Wort + rote Zahl), Reiter (Feld daneben, aufklappbar, ohne Überschriften).
   Lädt rahmen.js nach seinem eigenen Stil, darum gewinnt hier gleiche Schärfe. Schrift nur --s-*, Ecken nur --r-*. */
:root{--rh-breite:76px}
html.rh-an.rh-fix{--rh-breite:340px}
@media (max-width:900px){html.rh-an.rh-fix{--rh-breite:76px}}
.rh-schiene{width:76px;gap:2px}
.rh-marke{width:76px}
html.rh-an .rh-kopf{padding-left:92px}
.rh-feld{left:76px;width:264px;padding-left:12px;padding-right:12px}
/* Werkzeug: Zeichen über dem Wort, kein Kachel-Kasten. Aktiv = helle Fläche um beides. */
.rh-liste,.rh-fuss{gap:2px}
.rh-fuss{width:56px}
.rh-k{width:68px;height:auto;min-height:54px;padding:7px 2px 6px;border-radius:var(--r-m,12px);display:flex;flex-direction:column;align-items:center;gap:3px;color:#dccbbd;position:relative;transition:color 150ms ease-out}
.rh-k .rh-kachel{width:auto;height:auto;background:none;border-radius:0}
.rh-k svg{width:22px;height:22px}
.rh-kw{display:block;max-width:64px;font-size:var(--s-klein,12px);font-weight:500;line-height:1.15;letter-spacing:-.01em;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rh-k[aria-current]{color:#fff}
/* Aktiv = ruhige Marke: ein feiner Strich am Rand der Leiste. Nie eine Fläche hinter Zeichen oder Wort (Casimir 25.11.2026, Test tests/leiste-ruhe-browser.test.mjs). */
.rh-k[aria-current]::before,.rh-si[aria-current]::before{content:"";position:absolute;left:-4px;top:14px;bottom:14px;width:3px;border-radius:2px;background:#fffdf9}
.rh-si[aria-current]::before{left:-7px;top:10px;bottom:10px;background:var(--rh-pink,#491030)}
.rh-k[aria-current] .rh-kachel{background:none;color:#fff}
/* Ältere Tisch-Regeln (html.rh-<tisch>, html.rh-leitung) legten eine weiße Kachel hinter das aktive Zeichen: hier stärker, damit nichts mehr durchkommt. */
:root:root .rh-k .rh-kachel,:root:root .rh-k[aria-current] .rh-kachel{background:none}
:root:root .rh-k[aria-current] .rh-kachel{color:#fff}
.rh-k[aria-current] .rh-kw{font-weight:700}
.rh-k[aria-expanded="true"]:not([aria-current]),.rh-k[aria-expanded="true"]:not([aria-current]) .rh-kachel{background:none;color:#fff}
@media (hover:hover) and (pointer:fine){.rh-k:hover:not([aria-current]){color:#fff}.rh-k:hover:not([aria-current]) .rh-kachel{background:none}}
.rh-k:focus-visible{outline:2px solid #fff;outline-offset:-2px}.rh-k:focus-visible .rh-kachel{outline:none}
.rh-tipp{display:none}
/* Zahl: wartet auf dich. Rot, rund, oben rechts am Zeichen. Der alte Punkt bleibt für „offen“ ohne Zahl. */
.rh-zahl{position:absolute;top:3px;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#c0392b;color:#fff;font-size:var(--s-klein,12px);font-weight:700;line-height:18px;text-align:center;font-style:normal;box-shadow:0 0 0 2px var(--rh-braun)}
.rh-k .rh-offen{right:auto;left:calc(50% + 8px);top:5px}
/* Feld: Reiter des Werkzeugs. Aufklappbarer Eintrag getönt, gewählte Seite weiß mit Strich. */
.rh-feldkopf{border-bottom:2px solid var(--rh-linie);padding-bottom:10px;margin-bottom:8px}
.rh-feldkopf h2{font-size:var(--s-ueber,20px);letter-spacing:-.01em}
.rh-p{min-height:42px;font-size:var(--s-text,15px)}
.rh-p svg{width:20px;height:20px}
.rh-p .rh-neben.rh-rot{color:#b3261e;font-weight:700}
.rh-ug{border-radius:var(--r-m,12px);margin:2px 0}
.rh-ugk{min-height:42px;font-size:var(--s-text,15px)}
.rh-ugk>svg:first-child{width:20px;height:20px}
.rh-ugk .rh-wort{flex:1}
.rh-ugi{margin:4px 6px 0;padding:0;border-left:0}
.rh-ugi .rh-p{min-height:36px;padding-left:34px;font-weight:500;font-size:var(--s-text,15px)}
.rh-ugi .rh-p[aria-current]::before{left:0;top:6px;bottom:6px}
.rh-ug-zu .rh-ugpfeil{transform:rotate(-90deg)}
/* F&B und HR: Schiene im Haus-Braun, Abteilungsfarbe nur als Akzent (Marke: Braun + Creme, ein Akzent). */
html[data-rh-tisch="fb"] .rh,html[data-rh-tisch="fb"] .rh-assi,html[data-rh-tisch="fb"] .rh-assi-knopf{--rh-braun:#3b1b0b;--rh-pink:#491030;--rh-tint:rgba(73,16,48,.06);--rh-tint2:rgba(73,16,48,.11)}
html[data-rh-tisch="hr"] .rh,html[data-rh-tisch="hr"] .rh-assi,html[data-rh-tisch="hr"] .rh-assi-knopf{--rh-braun:#33404d;--rh-pink:#33404d;--rh-tint:rgba(51,64,77,.06);--rh-tint2:rgba(51,64,77,.11)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .rh{--rh-tint:rgba(255,245,235,.05);--rh-tint2:rgba(255,245,235,.09)}}
:root[data-theme="dark"] .rh{--rh-tint:rgba(255,245,235,.05);--rh-tint2:rgba(255,245,235,.09)}
@media print{.rh-zahl{display:none!important}}
.rh-ugk .rh-neben{white-space:nowrap;font-size:var(--s-unter,13px);font-weight:500;color:var(--rh-text2)}
/* ---------- Leiste per Klick (Casimir 25.11.2026, Mockup https://claude.ai/artifact/DPkSXqEARNBw466W92g9oD) ----------
   Oben die eigenen Werkzeuge, feine Linie, dann der Bereich (Zeichen wie in der App, Name darunter) und seine Werkzeuge.
   Werkzeug per Klick: Feld mit Reiter. Klick in die Seite: schmale Spalte mit den Zeichen der Reiter (Vorbild Kasse). */
.rh-trenn.rh-trenn-b{width:44px;border-top:1px solid rgba(255,253,249,.2);margin:6px 0}
.rh-bereich .rh-kw{display:inline-flex;align-items:center;gap:1px;max-width:66px;font-weight:700;letter-spacing:.02em;color:#fff}
.rh-bereich .rh-kw svg{width:11px;height:11px;flex:none;opacity:.7}
.rh-feld{z-index:1}
.rh-spalte{position:absolute;top:0;bottom:0;left:76px;width:56px;background:var(--rh-creme);border-right:1px solid var(--rh-linie);border-radius:0 var(--r-l,18px) var(--r-l,18px) 0;
  display:none;flex-direction:column;align-items:center;gap:4px;padding:14px 0;z-index:0}
html.rh-schmal .rh-spalte{display:flex}
html.rh-an.rh-schmal{--rh-breite:132px}
.rh-si{position:relative;width:42px;height:42px;border-radius:var(--r-s,8px);display:grid;place-items:center;color:var(--rh-text2);text-decoration:none;-webkit-tap-highlight-color:transparent;transition:color 150ms ease-out}
.rh-si svg{width:21px;height:21px}
.rh-si[aria-current]{color:var(--rh-text)}

@media (hover:hover) and (pointer:fine){.rh-si:not([aria-current]):hover{color:var(--rh-text)}}
.rh-si:focus-visible{outline:2px solid var(--rh-pink);outline-offset:-2px}
.rh-si .rh-zahl{top:1px;left:auto;right:-1px;min-width:16px;height:16px;line-height:16px;padding:0 4px;box-shadow:0 0 0 2px var(--rh-creme)}
.rh-stip{position:absolute;left:50px;top:50%;transform:translateY(-50%);background:#1d0d05;color:#fff;font-size:var(--s-unter,13px);font-weight:600;padding:5px 9px;border-radius:var(--r-s,8px);white-space:nowrap;pointer-events:none;opacity:0;transition:opacity 120ms;z-index:3}
@media (hover:hover) and (pointer:fine){.rh-si:hover .rh-stip{opacity:1;transition-delay:250ms}}
.rh-si:focus-visible .rh-stip{opacity:1}
/* Offenes Feld: auf großen Bildschirmen schiebt es die Seite und bleibt offen; auf iPad und Laptop liegt es über der Seite. */
@media (min-width:1181px){html.rh-an.rh-auf{--rh-breite:340px}.rh.rh-feld-offen:not(.rh-fix) .rh-feld{box-shadow:none}}
.rh-still .rh-feld,.rh-still .rh-feldinhalt{transition:none!important}
@media (max-width:900px){html.rh-an.rh-schmal{--rh-breite:76px}html.rh-schmal .rh-spalte{display:none}}
@media print{.rh-spalte{display:none!important}}
.rh-schloss[aria-pressed="true"]{background:none}
/* Feld randlos (Casimir 25.11.2026): in keinem Zustand eine Fläche hinter Punkt, Gruppe oder Zeile. Aktiv = fette Schrift und der feine Strich am Rand, offen = Pfeil. */
:root:root .rh-p,:root:root .rh-p[aria-current],:root:root .rh-ugk,:root:root .rh-ug,:root:root .rh-ug:not(.rh-ug-zu),:root:root .rh-ug:not(.rh-ug-zu)>.rh-ugk,:root:root .rh-ugi .rh-p[aria-current]{background:none}
:root:root .rh-p[aria-current]{font-weight:800}
.rh-ugi .rh-p[aria-current]::before{left:0}
@media (hover:hover) and (pointer:fine){:root:root .rh-p:not([aria-disabled="true"]):not([aria-current]):hover,:root:root .rh-ugk:hover{background:none;color:var(--rh-pink)}}
/* Dunkel: Zeichen der Gruppe und Strich am Punkt hell genug (auf dunkler Fläche sonst kaum zu sehen). */
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .rh-ugk>svg:first-child{color:#f1c9b4}:root:not([data-theme="light"]) .rh-p[aria-current]::before{background:#f1c9b4}}
:root[data-theme="dark"] .rh-ugk>svg:first-child{color:#f1c9b4}
:root[data-theme="dark"] .rh-p[aria-current]::before{background:#f1c9b4}

/* ---------- Schlanke Leiste (Casimir 25.11.2026, Vorbild Gastronovi) ----------
   Nur Zeichen, kleine quadratische Felder, der Name kommt erst nach längerem Verweilen der Maus. Im Werkzeug bleibt die zweite Leiste
   mit den Zeichen der Unterfunktionen offen (.rh-spalte). Das breite Feld mit Wörtern gibt es nur noch für Bereiche und Einstellungen
   (und auf schmalen Bildschirmen). Zeichen: Satz der App (public/app/zeichen.js, Lucide-Art). */
:root{--rh-breite:52px}
html.rh-an.rh-auf{--rh-breite:52px}
html.rh-an.rh-fix{--rh-breite:292px}
html.rh-an.rh-schmal,html.rh-an.rh-auf.rh-schmal{--rh-breite:100px}
html.rh-an.rh-fix.rh-schmal{--rh-breite:340px}
@media (max-width:900px){html.rh-an.rh-fix,html.rh-an.rh-schmal,html.rh-an.rh-auf.rh-schmal{--rh-breite:52px}}
html.rh-an .rh-kopf{padding-left:calc(var(--rh-breite) + 16px)}
.rh-schiene{width:52px;gap:2px;padding-top:10px}
.rh-marke{width:52px;height:44px;margin-bottom:6px}
.rh-marke svg{width:30px}
.rh-liste,.rh-fuss{gap:4px}
.rh-fuss{width:44px}
.rh-k{width:40px;height:40px;min-height:40px;padding:0;gap:0;justify-content:center}
.rh-k svg{width:20px;height:20px}
.rh-kw,.rh-bereich .rh-kw{display:none}
.rh-k[aria-current]::before{left:-6px;top:10px;bottom:10px}
.rh-trenn.rh-trenn-b{width:28px;margin:6px 0}
.rh-bereich::after{content:"";position:absolute;right:5px;bottom:6px;width:5px;height:5px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);opacity:.7}
.rh-zahl{top:1px;left:calc(50% + 3px);min-width:16px;height:16px;line-height:16px;padding:0 4px}
.rh-tipp{display:block;left:46px}
@media (hover:hover) and (pointer:fine){.rh-k:hover .rh-tipp{opacity:1;transition-delay:700ms}.rh-si:hover .rh-stip{opacity:1;transition-delay:700ms}}
.rh-k:focus-visible .rh-tipp{opacity:1}
.rh-feld{left:52px;width:240px}
.rh-spalte{left:52px;width:48px;padding:10px 0}
.rh-si{width:36px;height:36px}
.rh-si svg{width:20px;height:20px}
.rh-si[aria-current]::before{left:-3px;top:9px;bottom:9px}
.rh-stip{left:42px}
.rh-feldkopf h2{font-size:var(--s-titel,16px)}
.rh-p,.rh-ugk,.rh-ugi .rh-p{font-size:var(--s-unter,13px);min-height:38px}
.rh-p svg,.rh-ugk>svg:first-child{width:18px;height:18px}

/* ---------- Felder, Schloss und Bewegung (Casimir 26.11.2026, Vorbild Gastronovi, Vergleich vergleich-felder.png „ja find ich gut“) ----------
   Jedes Zeichen steht in einem ruhigen, immer gleichen Feld; das aktive ist hell gefüllt, das Zeichen dunkel. Kein Strich mehr am Rand.
   Klick auf ein Werkzeug klappt das Feld mit Worten auf (über der Seite), Drüberfahren hebt nur hervor und zeigt nach längerem Verweilen
   den Namen. Das Schloss (oben in der zweiten Leiste oder im Feld) hält das Feld mit Worten offen und schiebt die Seite; offen = wieder schmal.
   Zeilen auf einer Höhe: erstes Werkzeug, erste Unterfunktion und erster Eintrag im Feld beginnen gleich hoch (62 px), Raster 40 + 4. */
.rh,.rh-assi,.rh-assi-knopf{--rh-aktiv:#f3d9cf;--rh-aktiv-text:#3b1b0b;--rh-spalte:#ede5dd;--rh-rand:rgba(59,27,11,.24)}
html[data-rh-tisch="hr"] .rh{--rh-aktiv:#d5dee8;--rh-aktiv-text:#22303c}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .rh{--rh-spalte:#2E2A26;--rh-rand:rgba(255,245,235,.2)}}
:root[data-theme="dark"] .rh{--rh-spalte:#2E2A26;--rh-rand:rgba(255,245,235,.2)}
/* Schiene */
.rh-k[aria-current]::before,.rh-si[aria-current]::before{display:none}
.rh-k{background:rgba(255,253,249,.09);border-radius:var(--r-s,8px);color:#efe4dc;transition:background-color 140ms ease-out,color 140ms ease-out,transform 90ms ease-out}
.rh-k.rh-bereich{background:rgba(255,253,249,.09)}
:root:root .rh-k .rh-kachel{color:inherit}
:root:root .rh-k[aria-current] .rh-kachel{color:inherit}
.rh-k[aria-expanded="true"]:not([aria-current]){background:rgba(255,253,249,.2);color:#fff}
@media (hover:hover) and (pointer:fine){.rh-k:hover:not([aria-current]){background:rgba(255,253,249,.18);color:#fff}}
.rh-k[aria-current],.rh-k[aria-current]:hover{background:var(--rh-aktiv);color:var(--rh-aktiv-text)}
.rh-k:active,.rh-si:active{transform:scale(.94)}
.rh-k[aria-current] .rh-zahl{box-shadow:0 0 0 2px var(--rh-braun)}
.rh.rh-feld-offen .rh-k[data-gruppe] .rh-tipp{display:block}
.rh-tipp,.rh-stip{z-index:5}
/* Zweite Leiste: eigene, etwas dunklere Fläche mit klarem Rand zur Seite */
.rh-spalte{background:var(--rh-spalte);border-right:1px solid var(--rh-rand);gap:4px;padding:10px 0}
.rh-si{width:40px;height:40px;flex:none;background:rgba(59,27,11,.07);color:var(--rh-text);transition:background-color 140ms ease-out,color 140ms ease-out,transform 90ms ease-out}
@media (hover:hover) and (pointer:fine){.rh-si:not([aria-current]):hover{background:rgba(59,27,11,.14);color:var(--rh-text)}}
.rh-si[aria-current],.rh-si[aria-current]:hover{background:var(--rh-aktiv);color:var(--rh-aktiv-text)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .rh-si:not([aria-current]){background:rgba(255,245,235,.07)}
  :root:not([data-theme="light"]) .rh-si:not([aria-current]):hover{background:rgba(255,245,235,.14)}}
:root[data-theme="dark"] .rh-si:not([aria-current]){background:rgba(255,245,235,.07)}
:root[data-theme="dark"] .rh-si:not([aria-current]):hover{background:rgba(255,245,235,.14)}
.rh-si .rh-zahl{box-shadow:0 0 0 2px var(--rh-spalte)}
/* Schloss oben in der zweiten Leiste: so hoch wie das Zeichen von Haus Hirt, ohne Feld, darunter eine feine Linie */
:root:root .rh-spalte .rh-sschloss{height:44px;margin-bottom:4px;background:none;color:var(--rh-text2);border:0;cursor:pointer;position:relative}
.rh-sschloss::after{content:"";position:absolute;left:8px;right:8px;bottom:-4px;border-top:1px solid var(--rh-rand)}
@media (hover:hover) and (pointer:fine){:root:root .rh-spalte .rh-sschloss:hover{color:var(--rh-text);background:none}}
.rh-sschloss svg{width:18px;height:18px}
/* Feld mit Worten: gleiche Höhe, gleiches Raster, aktive Zeile hell gefüllt wie das aktive Zeichen */
.rh-feld{padding-top:10px;border-right:1px solid var(--rh-rand);background:var(--rh-spalte)}
.rh-feldkopf{min-height:44px;height:44px;padding:0 2px 0 10px;margin-bottom:4px;border-bottom:1px solid var(--rh-rand)}
.rh-feldinhalt{gap:4px}
.rh-p,.rh-ugk{min-height:40px;border-radius:var(--r-s,8px);transition:background-color 140ms ease-out}
.rh-p[aria-current]::before,.rh-ugi .rh-p[aria-current]::before{display:none}
:root:root .rh-p[aria-current],:root:root .rh-ugi .rh-p[aria-current]{background:var(--rh-aktiv);color:var(--rh-aktiv-text);font-weight:700}
:root:root .rh-p[aria-current] svg{color:var(--rh-aktiv-text)}
@media (hover:hover) and (pointer:fine){:root:root .rh-p:not([aria-disabled="true"]):not([aria-current]):hover,:root:root .rh-ugk:hover{background:rgba(59,27,11,.07);color:var(--rh-text)}}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .rh-p:not([aria-disabled="true"]):not([aria-current]):hover,:root:not([data-theme="light"]) .rh-ugk:hover{background:rgba(255,245,235,.08)}}
:root[data-theme="dark"] .rh-p:not([aria-disabled="true"]):not([aria-current]):hover,:root[data-theme="dark"] .rh-ugk:hover{background:rgba(255,245,235,.08)}
.rh-schloss[aria-pressed="true"]{color:var(--rh-text)}
/* Mit Schloss: Feld bleibt offen und schiebt die Seite, die schmale Spalte liegt darunter (52 + 240) */
html.rh-an.rh-fix,html.rh-an.rh-fix.rh-schmal{--rh-breite:292px}
html.rh-an.rh-fix .rh-spalte{visibility:hidden}
.rh.rh-fix .rh-feld{box-shadow:none}
@media (max-width:900px){html.rh-an.rh-fix,html.rh-an.rh-fix.rh-schmal{--rh-breite:52px}html.rh-an.rh-fix .rh-spalte{visibility:visible}}
/* Bewegung: nur beim Schloss gleitet die Seite mit; Seitenwechsel bleiben ruhig (Leiste steht, siehe @view-transition in rahmen.js) */
html.rh-gleiten body{transition:padding-left 280ms cubic-bezier(.32,.72,0,1)}
html.rh-gleiten .rh-kopf{transition:padding-left 280ms cubic-bezier(.32,.72,0,1)}
@media (prefers-reduced-motion:reduce){.rh-k,.rh-si,.rh-p,.rh-ugk,.rh-feld,.rh-feldinhalt,.rh-tipp,.rh-stip{transition:none!important}.rh-k:active,.rh-si:active{transform:none}html.rh-gleiten body,html.rh-gleiten .rh-kopf{transition:none}}
/* Unterpunkte mit eigenem Zeichen (Casimir 26.11.2026): eine Stufe eingerückt, Zeichen wie oben */
.rh-ugi .rh-p{padding-left:24px;gap:10px}
.rh-ugi .rh-p svg{width:18px;height:18px}
/* Eine Schrift im Feld: Punkte, Gruppen und Unterpunkte gleich groß und gleich kräftig, aktiv fetter */
:root:root .rh-feld :is(.rh-p,.rh-ugk,.rh-ugi .rh-p){font-size:var(--s-text,15px);font-weight:600}
:root:root .rh-feld :is(.rh-p[aria-current],.rh-ugi .rh-p[aria-current]){font-weight:700}

/* ---------- Einen Tick größer (Casimir 26.11.2026 23:17: „Icons und Leiste etwas größer, mehr Abstand zum Rand, die ausgeklappte Leiste
   soll sich gut anschmiegen“) ----------
   Schiene 64 px, Felder 46 px mit 9 px Luft zum Rand, Zeichen 22 px, Raster 46 + 6. Zweite Leiste und Feld liegen 18 px unter der
   runden Kante der Schiene, damit keine Lücke in den Ecken bleibt (anschmiegen). Erstes Werkzeug, erste Unterfunktion und erster
   Feld-Eintrag beginnen weiter auf einer Höhe (68 px). */
:root,html.rh-an.rh-auf{--rh-breite:64px}
html.rh-an.rh-schmal,html.rh-an.rh-auf.rh-schmal{--rh-breite:118px}
html.rh-an.rh-fix,html.rh-an.rh-fix.rh-schmal{--rh-breite:316px}
@media (max-width:900px){html.rh-an.rh-fix,html.rh-an.rh-schmal,html.rh-an.rh-auf.rh-schmal,html.rh-an.rh-fix.rh-schmal{--rh-breite:64px}}
.rh-schiene{width:64px;padding-top:12px}
.rh-marke{width:64px;height:48px;margin-bottom:6px}
.rh-marke svg{width:34px}
.rh-liste,.rh-fuss{gap:6px}
.rh-fuss{width:48px}
.rh-k{width:46px;height:46px;min-height:46px}
.rh-k svg{width:22px;height:22px}
.rh-trenn.rh-trenn-b{width:32px}
.rh-tipp{left:54px}
.rh-zahl{left:calc(50% + 5px)}
/* Unterwerkzeuge bleiben kleiner (40 px, Zeichen 20 px): Hierarchie (Casimir 27.11.2026 „lass die so groß wie jetzt“).
   Je Zeile mittig zum Raster der Schiene: 3 px tiefer, Abstand 12 (40 + 12 = 46 + 6). */
.rh-spalte{left:46px;width:72px;padding:12px 0 12px 18px;gap:12px}
.rh-si{width:40px;height:40px}
.rh-si svg{width:20px;height:20px}
:root:root .rh-spalte .rh-sschloss{height:48px;margin-bottom:-1px}
.rh-sschloss svg{width:18px;height:18px}
.rh-sschloss::after{bottom:-6px}
.rh-stip{left:48px}
.rh-feld{left:46px;width:270px;padding:12px 12px 12px 30px}
.rh-feldkopf{min-height:48px;height:48px;margin-bottom:4px}
.rh-feldinhalt{gap:6px}
.rh-p,.rh-ugk{min-height:46px}
.rh-ugi .rh-p{min-height:46px}
.rh-p svg,.rh-ugk>svg:first-child{width:20px;height:20px}
.rh-ugi .rh-p svg{width:20px;height:20px}
.rh-ugi{margin-top:6px}
.rh-ugi{display:flex;flex-direction:column;gap:6px}

/* ---------- Feinschliff (Casimir 27.11.2026: „Abstand zur Seite nicht einheitlich, Corner Radius nicht wie im System,
   Bereiche-Knopf anders gestalten, damit man ihn nicht verwechselt“) ----------
   Ecken wie im ganzen System (DESIGN.md: 8 · 12 · 18): Knöpfe 12 px wie auf Heute, Namensschild 8 px.
   Bereich: runder Knopf mit Ring statt Feld. Er wechselt den ganzen Schreibtisch und sieht darum anders aus als die Werkzeuge. */
.rh{--rh-ecke:12px}
:root:root .rh-k,:root:root .rh-si,:root:root .rh-p,:root:root .rh-ugk,:root:root .rh-ug{border-radius:var(--rh-ecke)}
:root:root .rh-k.rh-bereich{border-radius:50%;background:none;box-shadow:inset 0 0 0 1.5px rgba(255,253,249,.6);color:#fff}
@media (hover:hover) and (pointer:fine){:root:root .rh-k.rh-bereich:hover{background:rgba(255,253,249,.12)}}
:root:root .rh-k.rh-bereich[aria-expanded="true"]{background:rgba(255,253,249,.18)}
.rh-bereich::after{right:3px;bottom:3px;width:12px;height:12px;border:0;border-radius:50%;transform:none;opacity:1;
  background:var(--rh-braun,#3b1b0b) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/10px no-repeat;
  box-shadow:0 0 0 1.5px rgba(255,253,249,.6)}
.rh-trenn.rh-trenn-b{margin-top:4px;margin-bottom:4px}
/* Weg B (Casimir 27.11.2026): Feld „Andere Bereiche“. Zeichen in der Farbe der Abteilung (im Dunkeln aufgehellt), Werkzeug mit
   Unterpunkten ist ein Knopf im Feld, „‹ Bereich“ führt zurück. Knöpfe sehen aus wie Einträge. */
.rh-bf{display:inline-flex;color:var(--bf)}
.rh-bf svg{width:22px;height:22px}
:root:root .rh-ugk.rh-bk>.rh-bf svg{color:var(--bf)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .rh-bf{color:color-mix(in srgb,var(--bf) 45%,#fff)}:root:not([data-theme="light"]) .rh-ugk.rh-bk>.rh-bf svg{color:color-mix(in srgb,var(--bf) 45%,#fff)}}
:root[data-theme="dark"] .rh-bf,:root[data-theme="dark"] .rh-ugk.rh-bk>.rh-bf svg{color:color-mix(in srgb,var(--bf) 45%,#fff)}
button.rh-p{width:100%;border:0;background:none;font:inherit;text-align:left;cursor:pointer;color:inherit}
.rh-p.rh-zur{min-height:34px;opacity:.75;margin-bottom:4px}
.rh-p.rh-zur svg{width:18px;height:18px}
/* Rand rundum (Casimir 29.11.2026: „der Rand hört oben auf, ich würde überall einen Rand machen, sogar bei der Hauptleiste“):
   Feld und schmale Spalte haben oben, rechts und unten dieselbe feine Linie; links liegen sie an der Leiste. Die Leiste selbst
   bekommt rundum eine feine Linie, damit beide gleich gefasst sind. */
.rh-feld{border:1px solid var(--rh-rand);border-left:0}
.rh-feld>:first-child{margin-top:-1px}   /* der Rand oben schiebt den Inhalt nicht: Feld beginnt auf Höhe der Werkzeuge */
/* Spalte: Linie als innerer Schatten, damit die Zeichen genau auf Höhe der Werkzeuge bleiben (ein Rand oben schöbe sie 1 px). */
.rh-spalte{border:0;box-shadow:inset 0 1px 0 var(--rh-rand),inset -1px 0 0 var(--rh-rand),inset 0 -1px 0 var(--rh-rand)}
.rh-schiene{box-shadow:inset 0 0 0 1px var(--rh-rand)}
/* Runde Bereichswahl (Casimir 29.11.2026): Kreise gleiten aus dem runden Knopf nach rechts, jeder in der Farbe seines Bereichs. */
.rh-wahlpop{position:fixed;z-index:120;display:flex;gap:6px;padding:8px 10px;transform:translateY(-50%) translateX(-12px) scale(.92);transform-origin:left center;opacity:0;
  background:var(--rh-spalte,#fffdfb);border:1px solid var(--rh-rand);border-radius:999px;box-shadow:0 2px 6px rgba(42,24,16,.08),0 18px 40px rgba(42,24,16,.18);
  transition:opacity 180ms ease-out,transform 220ms cubic-bezier(.32,.72,0,1)}
.rh-wahlpop.auf{opacity:1;transform:translateY(-50%)}
.rh-wahlpop[hidden]{display:none}
.rh-wk{all:unset;-webkit-user-select:none;user-select:none;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:4px;width:68px;padding:4px 0;border-radius:var(--r-m,12px);cursor:pointer;color:var(--rh-text);
  opacity:0;transform:translateX(-8px);transition:opacity 160ms ease-out,transform 220ms cubic-bezier(.32,.72,0,1);transition-delay:calc(var(--i) * 25ms)}
.rh-wahlpop.auf .rh-wk{opacity:1;transform:none}
.rh-wkreis{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--bf);color:#fff;transition:transform 150ms ease-out}
.rh-wkreis svg{width:22px;height:22px}
.rh-wwort{font-size:var(--s-klein,12px);font-weight:600;white-space:nowrap}
.rh-wk[aria-checked="true"] .rh-wkreis{box-shadow:0 0 0 2px var(--rh-spalte,#fffdfb),0 0 0 4px var(--bf)}
@media (hover:hover) and (pointer:fine){.rh-wk:hover .rh-wkreis{transform:scale(1.08)}}
.rh-wk:focus-visible{outline:2px solid currentColor;outline-offset:2px}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .rh-wkreis{background:color-mix(in srgb,var(--bf) 70%,#fff 8%)}}
:root[data-theme="dark"] .rh-wkreis{background:color-mix(in srgb,var(--bf) 70%,#fff 8%)}
@media (prefers-reduced-motion:reduce){.rh-wahlpop,.rh-wk{transition:none}}
/* ---------- Kopf rechts und Profil unten links (Casimir 29.11.2026) ----------
   Lupe · Chat · Zahnrad sitzen oben rechts, das Profil als runder Kreis unten in der Leiste. Jedes Feld geht ruhig auf
   (eine Kurve, 240 ms) und es ist immer nur eines offen. */
.rh-ab,.rh-sf{--o-bg:#fffdfb;--o-fg:#2a1810;--o-leise:#6b5a50;--o-linie:rgba(59,27,11,.14);--o-linie2:rgba(59,27,11,.3);--o-hover:rgba(59,27,11,.07);--o-schatten:0 14px 36px rgba(42,24,16,.18);
  --rh-text:var(--o-fg);--rh-text2:var(--o-leise);--rh-linie:var(--o-linie);--rh-braun:var(--o-leise);--rh-hover:var(--o-hover)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) :is(.rh-ab,.rh-sf){--o-bg:#38332E;--o-fg:#EDE7E0;--o-leise:#B3A99F;--o-linie:rgba(255,245,235,.14);--o-linie2:rgba(255,245,235,.32);--o-hover:rgba(255,245,235,.09);--o-schatten:0 14px 36px rgba(0,0,0,.45)}}
:root[data-theme="dark"] :is(.rh-ab,.rh-sf){--o-bg:#38332E;--o-fg:#EDE7E0;--o-leise:#B3A99F;--o-linie:rgba(255,245,235,.14);--o-linie2:rgba(255,245,235,.32);--o-hover:rgba(255,245,235,.09);--o-schatten:0 14px 36px rgba(0,0,0,.45)}
/* Suchfeld: die Lupe wird zum Feld, das nach links aufgeht */
.rh-sf{position:relative;display:flex;align-items:center;flex:none;width:40px;height:40px;border-radius:var(--r-m,12px);box-shadow:inset 0 0 0 1px transparent;
  transition:width 280ms cubic-bezier(.32,.72,0,1),box-shadow 180ms ease-out,background-color 180ms ease-out}
.rh-sf.auf{width:min(400px,calc(100vw - 420px));background:var(--o-bg);box-shadow:inset 0 0 0 1px var(--o-linie2)}
.rh-sf .rh-such{flex:none}
.rh-sf.auf .rh-such,.rh-sf.auf .rh-such:hover{background:none;color:var(--o-fg)}
.rh-sf-ein{all:unset;box-sizing:border-box;flex:1;min-width:0;width:0;height:40px;font-family:inherit;font-size:var(--s-text,15px);color:var(--o-fg);opacity:0;cursor:text;-webkit-user-select:text;user-select:text;transition:opacity 140ms ease-out}
.rh-sf.auf .rh-sf-ein{opacity:1;padding-right:12px;transition:opacity 200ms ease-out 100ms}
.rh-sf-ein::placeholder{color:var(--o-leise)}
.rh-sf-ein::-webkit-search-cancel-button{display:none}
.rh-sf.auf:focus-within{box-shadow:inset 0 0 0 1.5px var(--o-leise)}
:root:root .rh-sf .rh-sf-ein:focus-visible,:root:root .rh-sf.auf .rh-such:focus-visible{outline:none}
.rh-sf-liste{position:absolute;z-index:5;top:calc(100% + 6px);left:0;right:0;display:flex;flex-direction:column;gap:2px;padding:6px;max-height:min(440px,62vh);overflow:auto;background:var(--o-bg);color:var(--o-fg);
  border:1px solid var(--o-linie);border-radius:var(--r-l,18px);box-shadow:var(--o-schatten);font-size:var(--s-text,15px);font-weight:500;
  opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity 140ms ease-out,transform 140ms ease-out,visibility 0s 140ms}
.rh-sf.auf .rh-sf-liste{opacity:1;visibility:visible;transform:none;transition:opacity 220ms ease-out 140ms,transform 260ms cubic-bezier(.32,.72,0,1) 140ms,visibility 0s}
.rh-sf-liste .rh-pop-z svg{color:var(--o-leise)}
.rh-sf-liste .rh-pop-z small{color:var(--o-leise)}
.rh-sf-liste .rh-pop-z[aria-selected="true"],.rh-sf-liste .rh-pop-z:hover{background:var(--o-hover)}
.rh-sf-liste .rh-such-leer{color:var(--o-leise)}
/* Feld, das unter dem Kopf nach unten aufgeht (Einstellungen) */
.rh-ab{position:fixed;z-index:120;top:60px;right:16px;width:min(360px,calc(100vw - 32px));max-height:calc(100dvh - 72px);overflow:auto;background:var(--o-bg);color:var(--o-fg);border:1px solid var(--o-linie);border-radius:var(--r-l,18px);
  box-shadow:var(--o-schatten);padding:8px;font-family:"Barlow","Inter Tight",system-ui,-apple-system,sans-serif;font-size:var(--s-text,15px);-webkit-font-smoothing:antialiased;
  transform-origin:calc(100% - 20px) 0;opacity:0;visibility:hidden;transform:translateY(-10px) scale(.97);transition:opacity 150ms ease-out,transform 180ms ease-out,visibility 0s 180ms}
.rh-ab.auf{opacity:1;visibility:visible;transform:none;transition:opacity 200ms ease-out,transform 260ms cubic-bezier(.32,.72,0,1),visibility 0s}
.rh-ab *{box-sizing:border-box}
.rh-ab>h2{margin:8px 8px 4px;font-size:var(--s-titel,16px);font-weight:700;line-height:1.2}
.rh-ab .rh-einst:last-child{border-bottom:0;padding-bottom:6px}
.rh-ab .rh-p{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 8px;border-radius:var(--r-m,12px);color:inherit;text-decoration:none;font-weight:600}
.rh-ab .rh-p svg{width:20px;height:20px;flex:none;color:var(--o-leise)}
.rh-ab .rh-p:hover{background:var(--o-hover)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .rh-ab .rh-swabt{background:#3a332e;color:var(--o-fg)}}
:root[data-theme="dark"] .rh-ab .rh-swabt{background:#3a332e;color:var(--o-fg)}
/* Profil: runder Kreis mit Profilbild unten in der Leiste */
.rh-ich{all:unset;-webkit-user-select:none;user-select:none;box-sizing:border-box;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;cursor:pointer;transition:transform 90ms ease-out}
.rh-ich-bild{position:relative;width:36px;height:36px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:rgba(255,253,249,.2);color:#fff;font-weight:700;font-size:var(--s-text,15px);line-height:1;
  box-shadow:0 0 0 1.5px rgba(255,253,249,.55);transition:box-shadow 140ms ease-out}
.rh-ich-bild img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
@media (hover:hover) and (pointer:fine){.rh-ich:hover .rh-ich-bild{box-shadow:0 0 0 2px #fff}}
.rh-ich[aria-expanded="true"] .rh-ich-bild{box-shadow:0 0 0 2px #fff,0 0 0 5px rgba(255,253,249,.22)}
.rh-ich:active{transform:scale(.94)}
.rh-ich:focus-visible{outline:2px solid #fff;outline-offset:1px}
@media (prefers-reduced-motion:reduce){.rh-sf,.rh-sf-ein,.rh-sf-liste,.rh-ab{transition:none!important}}
@media print{.rh-ab,.rh-sf{display:none!important}}
/* Weicher (Casimir 30.11.2026: „das Rad, das aufklappt, und das Umschalten zwischen den Farben smoother“).
   1. Farbe: --rh-braun und --rh-pink sind als Farben registriert, darum gleiten Schiene, Marke und Punkte beim Bereichswechsel
      in 320 ms in die neue Farbe, statt zu springen (nur beim Wechsel, Klasse rh-gleitet aus rahmen.js). 2. Rad: die Kreise rollen aus dem runden Knopf (klein, nach links versetzt,
      je Kreis 22 ms später) und setzen weich auf; zu geht es schnell und ohne Staffel. Wer weniger Bewegung will, bekommt keine. */
@property --rh-braun{syntax:"<color>";inherits:true;initial-value:#3b1b0b}
@property --rh-pink{syntax:"<color>";inherits:true;initial-value:#df4b6a}
.rh.rh-gleitet{transition:--rh-braun 320ms cubic-bezier(.4,0,.2,1),--rh-pink 320ms cubic-bezier(.4,0,.2,1)}
.rh-wahlpop{transition:opacity 200ms ease-out,transform 280ms cubic-bezier(.22,1,.36,1)}
.rh-wahlpop:not(.auf){transition-duration:120ms,140ms}
.rh-wk{transform:translateX(calc(-14px - var(--i) * 10px)) scale(.7);transition:opacity 200ms ease-out,transform 300ms cubic-bezier(.22,1,.36,1);transition-delay:calc(var(--i) * 22ms)}
.rh-wahlpop:not(.auf) .rh-wk{transition-duration:110ms;transition-delay:0s}
@media (prefers-reduced-motion:reduce){.rh,.rh-wahlpop,.rh-wk{transition:none}}

/* ---------- Unterleiste klappt aus sich selbst heraus (Casimir 1.12.2026: „sie ist nicht die Unterleiste, die herausklappt, sondern sie schiebt sich drüber“) ----------
   Mit der schmalen Spalte (Zeichen der Unterwerkzeuge, html.rh-schmal) wächst das Feld aus der Spalte nach rechts: gleiche linke Kante, gleiche Zeichen auf
   gleicher Stelle (Spalte 46 px + 25 px Luft, Zeilen 52 px), die Worte erscheinen, wenn die Kante vorbeiläuft. Kein Verschieben, kein Einblenden des Felds.
   Zu klappt es genauso zurück in die Spalte. Ohne Spalte (Bereiche, kleine Fenster, Schloss) bleibt alles wie es war. */
@media (min-width:901px){
  html.rh-schmal .rh-feld{padding-left:25px;transform:none;opacity:1;
    clip-path:inset(0 calc(100% - 72px) 0 0 round 0 var(--r-l,18px) var(--r-l,18px) 0);
    transition:clip-path 260ms cubic-bezier(.32,.72,0,1),visibility 0s 260ms}
  html.rh-schmal .rh.rh-feld-offen .rh-feld{clip-path:inset(-40px -80px -40px 0 round 0 var(--r-l,18px) var(--r-l,18px) 0);
    transition:clip-path 260ms cubic-bezier(.32,.72,0,1)}
  html.rh-schmal .rh-feldkopf{opacity:0;transition:opacity 80ms ease-out}
  html.rh-schmal .rh.rh-feld-offen .rh-feldkopf{opacity:1;transition:opacity 140ms ease-out 110ms}
  html.rh-schmal .rh.rh-fix .rh-feld{clip-path:none}
}
@media (prefers-reduced-motion:reduce){html.rh-schmal .rh-feld,html.rh-schmal .rh-feldkopf{transition:none!important}}
