/* Glas-Design für die Website, gebaut aus design/glas/ mit _uebergabe/glasdesign/werkzeug/glas_seiten_bauen.py; nicht von Hand ändern.
   tokens.css a42e882e027a
   shell/shell.css e92d90a74417
   ui/ui.css 8b68ad920d93
   sidebar/sidebar.css 7d5b05448c92
   appearance/appearance.css 798c90a4775e */
/* ===== design/glas/tokens.css ===== */
/* Glas-Design · tokens.css
   Alle Gestaltungswerte als CSS-Variablen, beide Schemata, die Glas-Rezepte, --frost und --boost (Vorgabe Glas-Design Abschnitt 4).
   Das ist die einzige Datei des Designs mit festen Farbwerten; jede Komponente liest nur diese Variablen.
   Akzent: Quotivo-Grün statt Blau (die Vorgabe erlaubt einen Akzent je Programm). Lesbare Abstufung nach Abschnitt 4 in --accent-text. */

:root {
  --font: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --ink: #14161A;                                  /* dunkle Schrift */
  --paper: #FFFFFF;                                /* reines Weiss: Standard-Hintergrund und Grundton allen Glases */
  --ink-rgb: 20 22 26;                             /* dieselben Farben als Kanäle, für rgb(var(--…) / Deckkraft) */
  --paper-rgb: 255 255 255;
  --shade-rgb: 18 18 22;                           /* Tönung des dunklen Glases */

  --frost: .5;                                     /* Regler: 0 = klar, 1 = milchig */
  --boost: 0;                                      /* Lesbarkeits-Korrektur, Abschnitt 11 */
  --veil-plus: 0;                                  /* +.25 ohne backdrop-filter (Abschnitt 11, Grenzen) */
  --blur: calc(4px + 40px * var(--frost));         /* 4 bis 44 px */
  --sat: calc(1.6 - .4 * var(--frost));
  --veil-bright: calc(.70 + .28 * var(--frost) + var(--veil-plus));   /* helles Glas, .84 bei Regler 50 */

  --r-shell: 28px; --r-card: 16px; --r-inner: 12px; --r-pill: 999px; --r-float: 12px; --r-bar: 18px;
  --gap: 16px; --gap-row: 20px; --pad: 18px; --pad-inner: 14px;

  /* Akzent und Datenfarben */
  --accent: #2ECC8A;                               /* Quotivo-Grün, das einzige Akzent-Token */
  --pos: #34C77B; --neg: #F0596A; --warn: #F5B13D; --violet: #8B7CF6; --cyan: #3EC6E0;

  /* Schrift (Abschnitt 4): Grösse / Zeilenhöhe / Gewicht */
  --fs-ring: 46px;  --lh-ring: 1;     --fw-ring: 700;
  --fs-hero: 36px;  --lh-hero: 1.05;  --fw-hero: 700;
  --fs-title: 28px; --lh-title: 1.15; --fw-title: 500;
  --fs-kpi: 26px;   --lh-kpi: 1.1;    --fw-kpi: 600;
  --fs-tab: 22px;   --lh-tab: 1.2;    --fw-tab: 500;
  --fs-small: 22px; --lh-small: 1.1;  --fw-small: 600;
  --fs-card: 18px;  --lh-card: 1.25;  --fw-card: 600;
  --fs-body: 15px;  --lh-body: 1.4;   --fw-body: 500;
  --fs-label: 13px; --lh-label: 1.35; --fw-label: 500;
  --fs-meta: 12px;  --lh-meta: 1.3;   --fw-meta: 400;
  --fs-axis: 11px;  --lh-axis: 1.2;   --fw-axis: 500;

  /* Bewegung (Abschnitt 10): Federn als vorab gerechnete linear()-Kurven aus motion.js, Kurven und Dauern */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);      /* Auslauf */
  --ease-count: cubic-bezier(0.16, 1, 0.3, 1);     /* Zählen */
  --spring-straff: linear(0, 0.02, 0.06, 0.12, 0.2, 0.28, 0.36, 0.44, 0.52, 0.58, 0.65, 0.71, 0.75, 0.8, 0.84, 0.87, 0.9, 0.93, 0.94, 0.96, 0.97, 0.98, 0.99, 1, 1, 1, 1.01, 1.01, 1.01, 1.01, 1.01, 1.01, 1.01, 1.01, 1.01, 1.01, 1, 1, 1, 1, 1);
  --spring-straff-ms: 378ms;
  --spring-straff-ruhig: linear(0, 0.02, 0.06, 0.12, 0.2, 0.28, 0.36, 0.44, 0.52, 0.58, 0.65, 0.71, 0.75, 0.8, 0.84, 0.87, 0.9, 0.93, 0.94, 0.96, 0.97, 0.9747, 0.9787, 0.9821, 0.9849, 0.9873, 0.9893, 0.991, 0.9924, 0.9936, 0.9946, 0.9955, 0.9962, 0.9968, 0.9973, 0.9977, 0.9981, 0.9984, 0.9986, 0.9989, 1);   /* straffe Feder ohne Überschwingen: bis zur Hälfte wie --spring-straff, dann gleitet sie stetig auf 1 (Leistenbreite, «nichts federt nach», sichtbar rund 380 ms) */
  --spring-weich: linear(0, 0.02, 0.07, 0.14, 0.22, 0.31, 0.4, 0.49, 0.58, 0.66, 0.73, 0.79, 0.85, 0.9, 0.93, 0.97, 0.99, 1.01, 1.03, 1.04, 1.04, 1.05, 1.05, 1.05, 1.04, 1.04, 1.04, 1.03, 1.03, 1.02, 1.02, 1.02, 1.01, 1.01, 1.01, 1, 1, 1, 1, 1, 1);
  --spring-weich-ms: 458ms;
  --spring-federnd: linear(0, 0.04, 0.11, 0.23, 0.36, 0.48, 0.62, 0.73, 0.83, 0.92, 0.98, 1.03, 1.07, 1.09, 1.1, 1.1, 1.1, 1.09, 1.08, 1.06, 1.05, 1.04, 1.03, 1.02, 1.01, 1, 1, 0.99, 0.99, 0.99, 0.99, 0.99, 0.99, 0.99, 0.99, 1, 1, 1, 1, 1, 1);
  --spring-federnd-ms: 465ms;
  --dur-fast: 150ms; --dur-out: 120ms; --dur-bg: 400ms;

  /* Rahmen (Abschnitt 5) */
  --shell-x: clamp(20px, 6.5vw, 120px); --shell-y: 28px;
  --side-zu: 84px; --side-auf: 308px; --side-gap: 24px;

  /* feste Hilfsfarben der Bausteine */
  --knob: #FFFFFF;                                 /* Knopf von Schalter, Regler, Griff */
  --knob-shadow: 0 1px 2px rgb(20 22 26 / .18), 0 3px 8px rgb(20 22 26 / .16);
  --on-color: #FFFFFF;                             /* Zahl auf Farbglas (Zähler) */
  --glint: rgb(255 255 255 / .45);                 /* Lichtkante oben auf Farbglas */
  --float-text: var(--ink);                        /* Schrift auf schwebendem und aktivem Glas, beide Schemata */
  --float-text-2: rgb(20 22 26 / .62);
  --float-hair: rgb(20 22 26 / .10);
  --tint-mix: 78%;                                 /* Farbglas: Verlauf von der aufgehellten zur vollen Datenfarbe */
  --focus-glow: color-mix(in srgb, var(--accent) 20%, transparent);

  --bg-float: rgb(255 255 255 / var(--veil-bright));
  --bg-card: rgb(255 255 255 / var(--veil-card));
  --bg-hover: rgb(255 255 255 / calc(var(--veil-hi) * .6));
  --bg-shell: linear-gradient(rgb(255 255 255 / var(--veil-shell)), rgb(255 255 255 / var(--veil-shell))), var(--tone);
  --bg-tile: linear-gradient(180deg, rgb(255 255 255 / calc(var(--veil-hi) * .95)), rgb(255 255 255 / calc(var(--veil-hi) * .55)));
  --tile-shadow: var(--rim), inset 0 -8px 12px -8px rgb(20 22 26 / .10), 0 6px 14px -8px rgb(20 22 26 / .28);

  color-scheme: light;
}

[data-scheme="light"] {
  --text: var(--ink); --text-2: rgb(20 22 26 / .66);   /* 66 % statt 62 %: kleine Nebentexte auf hellem Bild kamen auf 4.3 bis 4.4:1 */ --text-3: rgb(20 22 26 / .42);
  --text-on: #FFFFFF;                                            /* Gegenfarbe zur Textfarbe (Hauptknopf) */
  --veil-shell: calc(.06 + .56 * var(--frost) + var(--boost) + var(--veil-plus));   /* .34 bei Regler 50 */
  --veil-card:  calc(.12 + .60 * var(--frost) + var(--veil-plus));                  /* .42 */
  --veil-hi:    calc(.50 + .30 * var(--frost) + var(--veil-plus));                  /* .65 */
  --tone: rgb(20 22 26 / .05);                                   /* trägt das Glas auf Weiss */
  --rim: inset 0 0 0 1px rgb(255 255 255 / .75), 0 0 0 1px rgb(20 22 26 / .06);
  --shadow-card: 0 1px 2px rgb(20 22 26 / .04), 0 10px 28px -12px rgb(20 22 26 / .16);
  --shadow-float: 0 2px 6px rgb(20 22 26 / .06), 0 24px 48px -16px rgb(20 22 26 / .24);
  --shadow-lift: 0 2px 4px rgb(20 22 26 / .06), 0 20px 36px -14px rgb(20 22 26 / .26);
  --track: rgb(20 22 26 / .08); --well: rgb(20 22 26 / .06);
  --neutral-hi: rgb(20 22 26 / .22); --neutral-lo: rgb(20 22 26 / .06);
  --hair: rgb(20 22 26 / .10);
  --mix-c: 50%; --mix-to: var(--ink); --farbglas-unter: transparent;   /* lesbare Abstufung farbiger Schrift; Grund der Farbglas-Chips */
  --accent-text: color-mix(in srgb, var(--accent) 50%, var(--ink));
  --focus: var(--accent-text);
  color-scheme: light;
}

[data-scheme="dark"] {
  /* zweite Textfarbe 84 % statt 62 % (Entscheid «Lesbarkeit vor Vorgabe»: 62 % Weiss erreicht auf dunklem Glas über Weiss nur rund 3:1) */
  --text: #FFFFFF; --text-2: rgb(255 255 255 / .84); --text-3: rgb(255 255 255 / .40);
  --text-on: var(--ink);
  /* Lesbarkeits-Korrektur im dunklen Schema: --boost verstärkt die Tönung (Vorgabe) und nimmt alle weissen Schleier (Rahmen, Karte,
     helle Kacheln und Knöpfe, Leiste) im selben Mass zurück (Entscheid: sonst erreichen Text und zweite Textfarbe auf der hellsten
     Lesefläche, der Kachel in der Karte in der Karte, die 4.5:1 nicht). */
  /* Ohne backdrop-filter (--veil-plus .25) deckt dunkles Glas über eine stärkere Tönung statt über mehr Weiss (Entscheid: mehr Weiss
     machte das dunkle Glas heller und die weisse Schrift unlesbar) */
  --veil-shell: calc((.06 + .20 * var(--frost)) * (1 - var(--boost)));   /* .16 */
  --veil-card:  calc((.04 + .07 * var(--frost)) * (1 - var(--boost)));   /* .075 */
  --veil-hi:    calc((.14 + .09 * var(--frost)) * (1 - var(--boost)));   /* .185 */
  --tone: rgb(18 18 22 / calc(clamp(0, (var(--frost) - .5) * .6, .3) + var(--boost) + var(--veil-plus)));
  --rim: inset 0 1px 0 rgb(255 255 255 / .14), inset 0 0 0 1px rgb(255 255 255 / .08);
  --shadow-card: 0 8px 24px -12px rgb(0 0 0 / .35);
  --shadow-float: 0 24px 56px -16px rgb(0 0 0 / .55);
  --shadow-lift: 0 22px 44px -14px rgb(0 0 0 / .5);
  --track: rgb(255 255 255 / .15); --well: rgb(0 0 0 / .20);
  --neutral-hi: rgb(255 255 255 / .45); --neutral-lo: rgb(255 255 255 / .14);
  --hair: rgb(255 255 255 / .14);
  /* farbige kleine Schrift im dunklen Glas: 35 % statt 40 % Farbe, Farbglas-Chips auf einer Tönung (Nachbessern 12.11.2026: Trend-Chips 3.8 bis 4.4:1) */
  --mix-c: 35%; --mix-to: #FFFFFF; --farbglas-unter: rgb(var(--shade-rgb) / .3);
  --accent-text: color-mix(in srgb, var(--accent) 40%, #FFFFFF);
  --focus: var(--accent-text);
  color-scheme: dark;
}

/* ---------- Glas-Rezepte ---------- */
/* Der grosse Rahmen. Schleier und Unschärfe liegen auf ::before (Entscheid): so ist der Rahmen keine Backdrop-Wurzel, und die
   Unschärfe der Seitenleiste darin sieht weiter das Hintergrundbild. */
.glass-shell { position: relative; z-index: 1; border-radius: var(--r-shell); }
.glass-shell::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: var(--bg-shell);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  box-shadow: var(--rim), var(--shadow-float);
}
.glass-card {    /* Karten und Karten in Karten, ohne eigene Unschärfe */
  background: var(--bg-card);
  border-radius: var(--r-card);
  box-shadow: var(--rim), var(--shadow-card);
}
.glass-float {   /* schwebend oder aktiv: Tooltip, Menü, Popover, aktive Pille */
  background: var(--bg-float);
  color: var(--ink);                                         /* immer dunkle Schrift */
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: var(--rim), var(--shadow-float);
}
/* Auf schwebendem und aktivem Glas gilt in beiden Schemata das helle Schema (dunkle Schrift, helle Spuren) */
.glass-float {
  --text: var(--ink); --text-2: rgb(20 22 26 / .62); --text-3: rgb(20 22 26 / .42); --text-on: #FFFFFF;
  --track: rgb(20 22 26 / .08); --well: rgb(20 22 26 / .06); --hair: rgb(20 22 26 / .10);
  --veil-hi: calc(.50 + .30 * var(--frost) + var(--veil-plus)); --veil-card: calc(.12 + .60 * var(--frost) + var(--veil-plus));
  --tone: rgb(20 22 26 / .05); --mix-c: 50%; --mix-to: var(--ink); --farbglas-unter: transparent; --focus: color-mix(in srgb, var(--accent) 50%, var(--ink));
  --rim: inset 0 0 0 1px rgb(255 255 255 / .75), 0 0 0 1px rgb(20 22 26 / .06);
  --tile-shadow: var(--rim), inset 0 -8px 12px -8px rgb(20 22 26 / .10), 0 6px 14px -8px rgb(20 22 26 / .28);
  --shadow-card: 0 1px 2px rgb(20 22 26 / .04), 0 10px 28px -12px rgb(20 22 26 / .16);
  color-scheme: light;
}
.glass-float.ohne-blur, .glass-float .glass-float { -webkit-backdrop-filter: none; backdrop-filter: none; }
.icon-tile {     /* farbloses Glas, Kantenlänge --s */
  --s: 34px;
  width: var(--s); height: var(--s); border-radius: calc(var(--s) * .28);
  color: var(--text);
  background: var(--bg-tile);
  box-shadow: var(--tile-shadow);
  display: inline-grid; place-items: center; flex: none;
}
.icon-tile > .gi, .icon-tile > .gm { width: calc(var(--s) * .46); height: calc(var(--s) * .46); font-size: calc(var(--s) * .46); }
.tint {          /* Farbglas für Daten, --c = Datenfarbe */
  --c: var(--accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 78%, white), var(--c));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 6px 16px -6px color-mix(in srgb, var(--c) 60%, transparent);
  opacity: .92;
}
[data-bg="white"] :is(.glass-shell, .glass-float)::before,
[data-bg="white"] .glass-float { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Ohne backdrop-filter steigt jeder Schleier um .25 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --veil-plus: .25; }
}
/* Weniger Transparenz: Regler 100 ohne Unschärfe */
@media (prefers-reduced-transparency: reduce) {
  :root { --frost: 1 !important; }
  .glass-shell::before, .glass-float, .glass-side { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
/* Weniger Bewegung: alles erscheint in 150 ms im Endzustand */
@media (prefers-reduced-motion: reduce) {
  :root { --spring-straff: linear; --spring-straff-ruhig: linear; --spring-weich: linear; --spring-federnd: linear; --spring-straff-ms: 150ms; --spring-weich-ms: 150ms; --spring-federnd-ms: 150ms; }
  .gl-lift:hover, .gl-knopf:hover, .gl-knopf:active { transform: none; }
}
/* ===== design/glas/shell/shell.css ===== */
/* Glas-Design · shell.css: Hintergrund, Rahmen, Kopfzeile, Platz der Seitenleiste, Raster (Vorgabe Glas-Design Abschnitte 5 bis 7).
   Liest nur Variablen aus tokens.css. */
html { font-family: var(--font); color: var(--text); background: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--fw-body); }
.gl-zahl, .gl-num, [data-gl-zahl] { font-variant-numeric: tabular-nums; }
.gl-nur-leser { position: absolute !important; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 1. Hintergrund: fest, füllt das Fenster, Weiss oder Bild; Bildwechsel blendet in 400 ms über */
.glass-bg { position: fixed; inset: 0; z-index: 0; background: var(--paper); overflow: hidden; pointer-events: none; }
.glass-bg-klein { position: absolute; inset: -48px; background-image: var(--bg-klein, none); background-size: cover; background-position: center;
  filter: blur(28px); opacity: 0; transition: opacity var(--dur-bg) var(--ease-out); }
/* Weiss hinter dem Bild: ein durchsichtiges PNG liegt sichtbar auf Weiss, so wie es beim Hochladen gemessen wird (Helligkeit und
   Schema-Automatik, appearance.js); ohne den Grund schiene das Kleinstbild darunter durch und das Bild wäre dunkler als gemessen */
.glass-bg-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0;
  background: var(--paper); transition: opacity var(--dur-bg) var(--ease-out); }
[data-bg="image"] .glass-bg-klein, .glass-bg-bild.an { opacity: 1; }
[data-bg="white"] .glass-bg-bild { opacity: 0; }

/* 2. Glas-Rahmen */
.gl-shell {
  --side-slot: var(--side-zu);
  box-sizing: border-box; width: calc(100% - 2 * var(--shell-x)); margin: var(--shell-y) auto; min-height: calc(100vh - 2 * var(--shell-y));
  display: grid; grid-template-columns: var(--side-slot) minmax(0, 1fr); column-gap: var(--side-gap); padding: 16px 20px 16px 16px;
  transition: grid-template-columns var(--spring-straff-ms) var(--spring-straff-ruhig);   /* Platz der Leiste: dieselbe Kurve wie ihre Breite */
}
.gl-side-slot { position: relative; z-index: 5; min-width: 0; }
@media (min-width: 1280px) { [data-side="auf"] .gl-shell { --side-slot: var(--side-auf); } }
.gl-main { min-width: 0; padding-top: 18px; padding-bottom: 4px; display: flex; flex-direction: column; }
.gl-inhalt { min-width: 0; container-type: inline-size; container-name: inhalt; }

/* 3. Kopfzeile: links Tabs oder Seitentitel, rechts die Aktionsplätze */
.gl-head { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.gl-head-start { min-width: 0; display: flex; align-items: center; }
.gl-tabs { position: relative; display: flex; gap: 38px; padding-bottom: 13px; }
.gl-tab { appearance: none; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; font: inherit; font-size: var(--fs-tab);
  line-height: var(--lh-tab); font-weight: var(--fw-tab); color: var(--text-2); white-space: nowrap; border-radius: 6px;
  transition: color var(--dur-fast) var(--ease-out); }
.gl-tab[aria-selected="true"] { color: var(--text); }
.gl-tab:hover { color: var(--text); }
.gl-tab-strich { position: absolute; left: 0; bottom: 0; width: 22px; height: 3px; border-radius: 3px; background: var(--text);
  transition: transform var(--spring-straff-ms) var(--spring-straff); }
.gl-titel-block { min-width: 0; }
.gl-titel { margin: 0; font-size: var(--fs-title); line-height: var(--lh-title); font-weight: var(--fw-title); letter-spacing: -.01em; }
.gl-titel .gl-wort { display: inline-block; white-space: pre; }
.gl-beschreibung { margin: 4px 0 0; font-size: var(--fs-label); line-height: var(--lh-label); color: var(--text-2); }
.gl-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.gl-strich { box-sizing: border-box; width: 48px; height: 48px; border-radius: 50%; border: 1.5px dashed var(--text-3); background: transparent;
  color: var(--text); display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.gl-strich .gi { width: 20px; height: 20px; }
.gl-linie { width: 1px; height: 28px; background: var(--hair); flex: none; }
.gl-kreis { --s: 46px; border-radius: 50%; position: relative; border: 0; padding: 0; cursor: pointer; }
.gl-kreis .gl-zaehler { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
.gl-actions .gl-avatar { --a: 50px; }
.gl-actions .gl-avatar .gl-punkt { width: 10px; height: 10px; }

/* Raster (Abschnitt 5) */
.gl-raster { display: grid; gap: var(--gap); min-width: 0; }
.gl-gemischt { grid-template-columns: .7fr 1fr .83fr; align-items: start; }
.gl-spalte { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.gl-paar { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.gl-zeile-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-row); }
.gl-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--gap-row); }
.gl-stapel { display: flex; flex-direction: column; gap: var(--gap-row); min-width: 0; }
.gl-zwei { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--gap); }
@container inhalt (max-width: 999px) {
  .gl-gemischt { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); }
  .gl-gemischt > .gl-spalte:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .gl-zeile-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gl-zwei { grid-template-columns: minmax(0, 1fr); }
}
@container inhalt (max-width: 640px) {
  .gl-gemischt, .gl-gemischt > .gl-spalte:nth-child(3) { grid-template-columns: minmax(0, 1fr); }
}
@container inhalt (max-width: 420px) {
  .gl-zeile-kpi, .gl-paar { grid-template-columns: minmax(0, 1fr); }
}

/* Unter 900 px: eine Spalte, Rahmenabstand 8 px, Leiste bleibt eingeklappt */
@media (max-width: 899px) {
  :root { --shell-x: 8px; --shell-y: 8px; }
  .gl-gemischt, .gl-gemischt > .gl-spalte:nth-child(3) { grid-template-columns: minmax(0, 1fr); }
}
/* Unter 600 px: die eingeklappte Leiste liegt als waagrechtes Glas-Dock unten (Entscheid); der Rahmen wird einspaltig */
@media (max-width: 599px) {
  .gl-shell { grid-template-columns: minmax(0, 1fr); padding: 12px 12px 96px; }
  .gl-side-slot { position: static; width: 0; height: 0; }
  .gl-main { padding-top: 4px; }
  .gl-head { flex-wrap: wrap; row-gap: 12px; margin-bottom: 18px; }
  .gl-head-start { flex: 1 1 100%; overflow-x: auto; }
  .gl-tabs { gap: 24px; }
  .gl-actions { flex: 1 1 100%; justify-content: flex-end; }
}
/* ===== design/glas/ui/ui.css ===== */
/* Glas-Design · ui.css: Bausteine aus Abschnitt 8 der Vorgabe Glas-Design. Reine Darstellung, nur Variablen aus tokens.css. */
:where(.gl-ui, .gl-shell, .glass-float) button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.glass-float :focus-visible { outline-color: var(--ink); }

/* Schriftrollen */
.t-ring { font-size: var(--fs-ring); line-height: var(--lh-ring); font-weight: var(--fw-ring); }
.t-hero { font-size: var(--fs-hero); line-height: var(--lh-hero); font-weight: var(--fw-hero); }
.t-kpi { font-size: var(--fs-kpi); line-height: var(--lh-kpi); font-weight: var(--fw-kpi); }
.t-small { font-size: var(--fs-small); line-height: var(--lh-small); font-weight: var(--fw-small); }
.t-card { font-size: var(--fs-card); line-height: var(--lh-card); font-weight: var(--fw-card); }
.t-body { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--fw-body); }
.t-label { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--fw-label); }
.t-meta { font-size: var(--fs-meta); line-height: var(--lh-meta); font-weight: var(--fw-meta); color: var(--text-2); }
.t-axis { font-size: var(--fs-axis); line-height: var(--lh-axis); font-weight: var(--fw-axis); color: var(--text-3); }
.t-2 { color: var(--text-2); } .t-3 { color: var(--text-3); }
.t-farbe { color: color-mix(in srgb, var(--c, var(--accent)) var(--mix-c), var(--mix-to)); }
.gi { width: 18px; height: 18px; flex: none; display: block; }

/* Karte */
.gl-card { box-sizing: border-box; padding: var(--pad); min-width: 0; position: relative; }
.gl-card.gl-innen { border-radius: var(--r-inner); padding: var(--pad-inner); }
.gl-card-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.gl-card-titel { margin: 0; font-size: var(--fs-card); line-height: var(--lh-card); font-weight: var(--fw-card); overflow-wrap: anywhere; }
.gl-card-unter { margin: 2px 0 0; font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--text-2); }
.gl-lift { transition: transform var(--spring-weich-ms) var(--spring-weich), box-shadow var(--spring-weich-ms) var(--ease-out); }
.gl-lift:hover { transform: translateY(-5px); box-shadow: var(--rim), var(--shadow-lift); }

/* Icon-Kachel: Kantenlänge über --s */
.icon-tile.s24 { --s: 24px; } .icon-tile.s28 { --s: 28px; } .icon-tile.s34 { --s: 34px; } .icon-tile.s36 { --s: 36px; }
.icon-tile.s40 { --s: 40px; } .icon-tile.s44 { --s: 44px; } .icon-tile.s46 { --s: 46px; } .icon-tile.s72 { --s: 72px; }
.icon-tile.rund { border-radius: 50%; }

/* Kennzahl-Karte: die Fläche bleibt reines Glas, ohne Ecklicht (Glas v2, Regel 6) */
.gl-kpi { height: 134px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.gl-kpi-wert { margin-top: auto; font-size: var(--fs-kpi); line-height: var(--lh-kpi); font-weight: var(--fw-kpi); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gl-kpi-fuss { margin-top: 4px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.gl-kpi-label { font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Kleine Kennzahl-Karte: den Zustand zeigt allein der Schalter, die Karte bleibt reines Glas (Glas v2, Regel 6) */
.gl-kpi-klein { display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.gl-kpi-klein .gl-kopfzeile { display: flex; justify-content: space-between; align-items: flex-start; }
.gl-kpi-klein .gl-wertzeile { margin-top: 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gl-kpi-klein .gl-wert { font-size: var(--fs-small); line-height: var(--lh-small); font-weight: var(--fw-small); font-variant-numeric: tabular-nums; }
.gl-kpi-klein .gl-label { margin-top: 4px; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-2); }

/* Trend-Chip und Status-Chip */
.gl-trend { --c: var(--pos); display: inline-flex; align-items: center; gap: 2px; padding: 2px 6px 2px 4px; border-radius: var(--r-pill);
  font-size: var(--fs-axis); line-height: 1.2; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--c) var(--mix-c), var(--mix-to)); background: color-mix(in srgb, var(--c) 16%, var(--farbglas-unter)); }
.gl-trend.ab { --c: var(--neg); }
.gl-trend .gi { width: 11px; height: 11px; }
.gl-status { --c: var(--pos); box-sizing: border-box; display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: var(--r-pill);
  font-size: var(--fs-axis); line-height: 1; font-weight: 600; white-space: nowrap;
  color: color-mix(in srgb, var(--c) var(--mix-c), var(--mix-to)); background: color-mix(in srgb, var(--c) 16%, var(--farbglas-unter)); }
.gl-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px color-mix(in srgb, var(--c) 60%, transparent); }
.gl-status.neg { --c: var(--neg); } .gl-status.warn { --c: var(--warn); } .gl-status.accent { --c: var(--accent); }
.gl-status.violet { --c: var(--violet); } .gl-status.cyan { --c: var(--cyan); }
.gl-status.neutral { color: var(--text); background: var(--bg-tile); box-shadow: var(--rim); }
.gl-status.neutral::before { background: var(--text-2); box-shadow: none; }
.glass-float .gl-status.neutral { color: var(--float-text); }

/* Zähler: Farbglas-Kreis oder -Pille, Zahl in Weiss. Grund in einer tieferen Abstufung der Datenfarbe (Entscheid: Weiss erreicht so 4.5:1) */
.gl-zaehler { --c: var(--accent); --cz: color-mix(in srgb, var(--c) 50%, var(--ink)); box-sizing: border-box; display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); font-size: var(--fs-axis); line-height: 1; font-weight: 700;
  color: var(--on-color); font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cz) 86%, var(--paper)), var(--cz));
  box-shadow: inset 0 1px 0 var(--glint), 0 4px 12px -4px color-mix(in srgb, var(--c) 60%, transparent); }
.gl-zaehler.dringend { --c: var(--neg); }

/* Schalter */
.gl-schalter { appearance: none; border: 0; padding: 0; cursor: pointer; position: relative; flex: none; width: 40px; height: 22px; border-radius: var(--r-pill);
  background: var(--track); transition: background-color var(--dur-fast) var(--ease-out); }
.gl-schalter::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity var(--dur-fast) var(--ease-out);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 78%, var(--paper)), var(--accent)); box-shadow: inset 0 1px 0 var(--glint); }
.gl-schalter::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--knob);
  box-shadow: var(--knob-shadow); transition: transform var(--spring-straff-ms) var(--spring-straff); }
.gl-schalter[aria-checked="true"]::before { opacity: .92; }
.gl-schalter[aria-checked="true"]::after { transform: translateX(18px); }

/* Segmentwahl und Filter-Chips: gleitende helle Glas-Pille */
.gl-segment { position: relative; box-sizing: border-box; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 28px; padding: 2px;
  border-radius: var(--r-pill); background: var(--well); flex: none; isolation: isolate; }
.gl-segment-pille { position: absolute; z-index: -1; top: 2px; bottom: 2px; left: 0; border-radius: var(--r-pill); width: 0;
  transition: transform var(--spring-straff-ms) var(--spring-straff); }
.gl-segment > button { appearance: none; border: 0; background: none; cursor: pointer; padding: 0 12px; border-radius: var(--r-pill); white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: var(--fs-axis); line-height: 1; font-weight: 500;
  color: var(--text-2); transition: color var(--dur-fast) var(--ease-out); }
.gl-segment > button[aria-pressed="true"], .gl-segment > button[aria-selected="true"] { color: var(--float-text); }
.gl-segment > button .gi { width: 14px; height: 14px; }
.gl-segment.filter > button .gl-chipzahl { box-sizing: border-box; min-width: 18px; height: 16px; padding: 0 5px; border-radius: var(--r-pill); display: inline-grid;
  place-items: center; font-size: 10px; font-weight: 700; background: var(--track); color: inherit; font-variant-numeric: tabular-nums; }
.gl-segment.filter > button[aria-pressed="true"] .gl-chipzahl { --c: var(--accent); --cz: color-mix(in srgb, var(--c) 50%, var(--ink)); color: var(--on-color);
  background: linear-gradient(180deg, color-mix(in srgb, var(--cz) 86%, var(--paper)), var(--cz)); box-shadow: inset 0 1px 0 var(--glint); }

/* Knöpfe */
.gl-knopf { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  transition: transform var(--spring-weich-ms) var(--spring-weich); }
.gl-knopf:hover { transform: scale(1.04); }
.gl-knopf:active { transform: scale(.96); }
.gl-haupt { box-sizing: border-box; height: 34px; padding: 0 16px 0 12px; border-radius: var(--r-pill); background: var(--text); color: var(--text-on);
  font-size: var(--fs-label); line-height: 1; font-weight: 600; }
.gl-haupt .gi { width: 16px; height: 16px; }
.gl-neben { box-sizing: border-box; height: 34px; padding: 0 14px; border-radius: var(--r-pill); background: var(--bg-tile); box-shadow: var(--tile-shadow);
  color: var(--text); font-size: var(--fs-label); line-height: 1; font-weight: 600; }
.gl-neben .gi { width: 16px; height: 16px; }
.gl-rund { --s: 34px; border-radius: 50%; padding: 0; border: 0; cursor: pointer; }
.glass-float .gl-neben, .glass-float .gl-rund { color: var(--float-text); }

/* Eingabefeld und Auswahlfeld */
.gl-feld { box-sizing: border-box; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 12px; background: var(--track);
  color: var(--text); min-width: 0; transition: box-shadow var(--dur-fast) var(--ease-out); }
.gl-feld .gi { width: 16px; height: 16px; color: var(--text-2); }
.gl-feld input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: var(--fs-label); }
.gl-feld input::placeholder { color: var(--text-3); }
.gl-feld:focus-within { box-shadow: 0 0 0 2px var(--focus), 0 0 0 6px var(--focus-glow); }
.gl-feld input:focus-visible { outline: 0; }
.gl-auswahl { position: relative; display: inline-block; min-width: 0; }
.gl-auswahl > button { appearance: none; border: 0; cursor: pointer; width: 100%; justify-content: space-between; font-size: var(--fs-label); white-space: nowrap; }
.gl-auswahl > button:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--focus), 0 0 0 6px var(--focus-glow); }
.gl-auswahl > button .gl-pfeil { color: var(--text-2); }
.gl-liste { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 100%; box-sizing: border-box; margin: 0; padding: 6px; list-style: none;
  border-radius: var(--r-float); }
.gl-liste[hidden] { display: none; }
.gl-liste [role="option"] { padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: var(--fs-label); white-space: nowrap; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gl-liste [role="option"]:hover, .gl-liste [role="option"].fokus { background: var(--float-hair); }
.gl-liste [role="option"][aria-selected="true"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

/* Werkzeugleiste */
.gl-werkzeug { box-sizing: border-box; min-height: 55px; border-radius: var(--r-bar); padding: 10px 12px; display: flex; align-items: center; gap: 12px; min-width: 0; }
.gl-werkzeug .gl-feld { flex: 1 1 140px; }
.gl-werkzeug-rechts { display: flex; align-items: center; gap: 12px; flex: none; flex-wrap: wrap; max-width: 100%; }
@container inhalt (max-width: 760px) { .gl-werkzeug { flex-wrap: wrap; } .gl-werkzeug .gl-feld { flex-basis: 100%; order: 3; } }

/* Tabelle */
.gl-tabelle-huelle { position: relative; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
.gl-tabelle { width: 100%; border-collapse: collapse; font-size: var(--fs-label); }
.gl-tabelle th { height: 36px; text-align: left; font-size: var(--fs-axis); font-weight: 500; color: var(--text-3); white-space: nowrap; padding: 0 12px; border-bottom: 1px solid var(--hair); }
.gl-tabelle th button { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: inherit; display: inline-flex; align-items: center; gap: 4px; }
.gl-tabelle th[aria-sort="ascending"], .gl-tabelle th[aria-sort="descending"] { color: var(--text); }
.gl-tabelle th .gi { width: 12px; height: 12px; }
.gl-tabelle td { height: 48px; padding: 0 12px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.gl-tabelle tr:last-child td { border-bottom: 0; }
.gl-tabelle tbody tr { transition: background-color var(--dur-fast) var(--ease-out); }
.gl-tabelle tbody tr:hover { background: var(--bg-hover); }
.gl-tabelle td.zahl, .gl-tabelle th.zahl { text-align: right; font-variant-numeric: tabular-nums; }
.gl-tabelle th.zahl button { flex-direction: row-reverse; }
.gl-tabelle td.pfeil { width: 24px; color: var(--text-3); }
.gl-person { display: flex; align-items: center; gap: 10px; }
.gl-person b { display: block; font-weight: 600; font-size: var(--fs-label); }
.gl-person small { display: block; font-size: var(--fs-meta); color: var(--text-2); }
.gl-kasten { appearance: none; margin: 0; width: 18px; height: 18px; border-radius: 5px; background: var(--track); box-shadow: inset 0 0 0 1px var(--hair);
  cursor: pointer; display: inline-grid; place-items: center; flex: none; }
.gl-kasten:checked { background: var(--text); box-shadow: none; }
.gl-kasten:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--text-on); border-bottom: 2px solid var(--text-on); transform: translateY(-1px) rotate(-45deg); }

/* Avatar und Avatar-Gruppe */
.gl-avatar { --a: 28px; position: relative; box-sizing: border-box; width: var(--a); height: var(--a); border-radius: 50%; flex: none; display: inline-grid; place-items: center;
  background: var(--bg-tile); box-shadow: var(--tile-shadow); color: var(--text); font-size: calc(var(--a) * .36); font-weight: 600; line-height: 1; }
.gl-avatar.a24 { --a: 24px; } .gl-avatar.a38 { --a: 38px; } .gl-avatar.a42 { --a: 42px; } .gl-avatar.a44 { --a: 44px; } .gl-avatar.a50 { --a: 50px; }
.gl-punkt { --c: var(--pos); position: absolute; right: 0; bottom: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 2px var(--bg-float), 0 0 6px color-mix(in srgb, var(--c) 60%, transparent); }
.gl-punkt.neg { --c: var(--neg); } .gl-punkt.warn { --c: var(--warn); } .gl-punkt.aus { --c: var(--text-3); }
.gl-gruppe { display: flex; align-items: center; }
.gl-gruppe > .gl-avatar { --a: 38px; box-shadow: 0 0 0 2px var(--bg-card), var(--tile-shadow); }
.gl-gruppe > .gl-avatar + .gl-avatar { margin-left: -10px; }
.gl-gruppe > .gl-avatar.mehr { font-size: 12px; }

/* Schrittweite und Kreis-Auswahl */
.gl-schritt { display: inline-flex; align-items: center; gap: 12px; }
.gl-schritt output { min-width: 3ch; text-align: center; font-size: var(--fs-small); font-weight: 600; font-variant-numeric: tabular-nums; }
.gl-kreiswahl { display: flex; gap: 12px; flex-wrap: wrap; }
.gl-kreiswahl > button { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: var(--fs-axis); color: var(--text-2); }
.gl-kreiswahl .icon-tile { --s: 42px; border-radius: 50%; transition: transform var(--spring-weich-ms) var(--spring-weich); }
.gl-kreiswahl > button:hover .icon-tile { transform: scale(1.04); }
.gl-kreiswahl > button[aria-pressed="true"] { color: var(--text); }
.gl-kreiswahl > button[aria-pressed="true"] .icon-tile { background: var(--text); color: var(--text-on); }

/* Schiebe-Bestätigung */
.gl-schiebe { position: relative; box-sizing: border-box; height: 40px; border-radius: var(--r-pill); background: var(--well); display: flex; align-items: center;
  justify-content: center; color: var(--text-3); user-select: none; touch-action: none; min-width: 160px; isolation: isolate; }
.gl-schiebe-hinweis { display: flex; gap: 0; }
.gl-schiebe-hinweis .gi { width: 14px; height: 14px; margin: 0 -3px; }
.gl-schiebe-ziel { position: absolute; right: 12px; top: 50%; translate: 0 -50%; color: var(--text-2); }
.gl-schiebe-ziel .gi { width: 16px; height: 16px; }
.gl-schiebe-griff { position: absolute; left: 4px; top: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; cursor: grab;
  background: var(--bg-float); color: var(--float-text); box-shadow: var(--rim), var(--knob-shadow); display: grid; place-items: center; }
.gl-schiebe-griff .gi { width: 16px; height: 16px; }
.gl-schiebe-fuellung { position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform-origin: left center; transform: scaleX(0); opacity: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 78%, var(--paper)), var(--accent)); }
.gl-schiebe.fertig .gl-schiebe-fuellung { opacity: .92; transform: scaleX(1); transition: transform var(--spring-straff-ms) var(--spring-straff), opacity var(--dur-fast); }
.gl-schiebe.fertig .gl-schiebe-ziel { color: var(--ink); }

/* Regler */
.gl-regler { position: relative; height: 22px; display: flex; align-items: center; cursor: pointer; touch-action: none; outline: 0; }
.gl-regler-spur { position: relative; flex: 1; height: 6px; border-radius: var(--r-pill); background: var(--track); }
.gl-regler-fuellung { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: inherit; transform-origin: left center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 78%, var(--paper)), var(--accent)); box-shadow: inset 0 1px 0 var(--glint); opacity: .92; }
.gl-regler-griff { position: absolute; top: 50%; left: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--bg-float);
  box-shadow: var(--rim), var(--knob-shadow); }
.gl-regler:focus-visible .gl-regler-griff { box-shadow: 0 0 0 2px var(--focus), 0 0 0 6px var(--focus-glow), var(--knob-shadow); }
.gl-regler-enden { display: flex; justify-content: space-between; margin-top: 6px; font-size: var(--fs-axis); color: var(--text-2); }

/* Fortschrittslinie im Kartenkopf und an Kacheln (3 und 4 px) */
.gl-linie3, .gl-linie4 { position: relative; height: 3px; border-radius: var(--r-pill); background: var(--track); overflow: hidden; }
.gl-linie4 { height: 4px; }
.gl-linie3 > i, .gl-linie4 > i { position: absolute; inset: 0; border-radius: inherit; transform-origin: left center; background: var(--neutral-hi); }
.gl-linie3 > i.acc, .gl-linie4 > i.acc { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 78%, var(--paper)), var(--accent)); }

/* Spaltenbrett */
.gl-brett { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: var(--gap-row); overflow-x: auto; padding-bottom: 6px; align-items: start; }
.gl-brett-spalte { display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.gl-brett-kopf { display: flex; align-items: center; gap: 8px; font-size: var(--fs-body); font-weight: 600; }
.gl-brett-kopf .gl-zaehler { font-size: 10px; }
.gl-brett-zusatz { margin-top: -6px; font-size: var(--fs-axis); color: var(--text-2); }
.gl-eintrag { box-sizing: border-box; height: 84px; display: flex; flex-direction: column; justify-content: space-between; cursor: grab; touch-action: none; user-select: none; }
.gl-eintrag .gl-oben { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-label); font-weight: 600; }
.gl-eintrag .gl-oben b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.gl-eintrag .gl-zweit { font-size: var(--fs-meta); color: var(--text-2); }
.gl-eintrag .gl-unten { display: flex; align-items: center; gap: 6px; font-size: var(--fs-axis); color: var(--text-2); }
.gl-eintrag.gl-gehoben { cursor: grabbing; position: relative; z-index: 20; box-shadow: var(--rim), var(--shadow-lift); transition: none; }
.gl-brett-spalte.ziel { box-shadow: var(--rim), var(--shadow-card), 0 0 0 2px var(--focus-glow); }

/* Kachel-Karte */
.gl-kachel { height: 232px; display: flex; flex-direction: column; gap: 8px; }
.gl-kachel.inaktiv { opacity: .6; }
.gl-kachel-bild { position: relative; height: 116px; flex: none; display: grid; place-items: center; padding: 0; }
.gl-kachel-bild .gl-status { position: absolute; left: 10px; top: 10px; }
.gl-kachel .gl-oben { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-body); font-weight: 600; }
.gl-kachel .gl-oben b { font-variant-numeric: tabular-nums; }
.gl-kachel .gl-zweit { font-size: var(--fs-meta); color: var(--text-2); margin-top: -6px; }
.gl-kachel .gl-unten { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-axis); color: var(--text-2); margin-top: auto; }

/* Tooltip, Menü, Popover */
.gl-tip { position: fixed; z-index: 100; left: 0; top: 0; pointer-events: none; padding: 7px 10px; border-radius: var(--r-float); font-size: var(--fs-meta);
  line-height: 1.3; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.gl-tip.an { opacity: 1; transform: none; }
.gl-tip b { font-weight: 700; font-variant-numeric: tabular-nums; }
.gl-tip span { color: var(--float-text-2); margin-left: 6px; }
.gl-pop { position: absolute; z-index: 40; border-radius: var(--r-float); padding: 6px; min-width: 200px; box-sizing: border-box;
  opacity: 0; transform: translateY(4px); transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.gl-pop.an { opacity: 1; transform: none; }
.gl-pop[hidden] { display: none; }
.gl-menue { margin: 0; padding: 0; list-style: none; }
.gl-menue button { appearance: none; border: 0; background: none; width: 100%; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 8px; font-size: var(--fs-label); color: var(--float-text); text-align: left; }
.gl-menue button:hover { background: var(--float-hair); }
.gl-menue .gi { width: 16px; height: 16px; }
.c-pos { --c: var(--pos); } .c-neg { --c: var(--neg); } .c-warn { --c: var(--warn); } .c-accent { --c: var(--accent); } .c-violet { --c: var(--violet); } .c-cyan { --c: var(--cyan); }
.gl-stapel10 { display: flex; flex-direction: column; gap: 10px; min-height: 60px; }
/* Touch unter 900 px: Segmente (28 px) und Nebenknöpfe (34 px) behalten ihr Mass und bekommen eine unsichtbare Trefferfläche von 44 px Höhe */
@media (max-width: 899px) {
  .gl-segment > button, .gl-neben { position: relative; }
  .gl-segment > button::after, .gl-neben::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }
  .gl-regler::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }   /* Regler (22 px hoch): Trefferfläche 44 px */
}
/* ===== design/glas/sidebar/sidebar.css ===== */
/* Glas-Design · sidebar.css: die Seitenleiste nach der Vorgabe Sidebar-Design. Zwei eigene Tokens und ein Rezept (Abschnitt 3),
   sonst nur Variablen aus tokens.css. Beide Zustände sind dieselbe Komponente; html[data-side="auf"] klappt sie auf.
   v2: ruhig und sachlich. Nur Feder «straff» und Kurve «Auslauf»; nichts dreht sich und nichts steht schräg (einzige Ausnahme nach Abschnitt 8:
   der Pfeil des Umschalters dreht sich beim Auf- und Zuklappen um 180°). Die Dock-Vergrösserung läuft allein über transform (sidebar.js). */
[data-scheme="light"] {
  --side-top: calc(.17 + .60 * var(--frost) + var(--veil-plus));   /* .47 bei Regler 50 */
  --side-bot: calc(.60 * var(--frost) + var(--veil-plus));         /* .30 */
}
[data-scheme="dark"] {   /* die Lesbarkeits-Korrektur nimmt den weissen Schleier zurück wie bei den Karten (Entscheid) */
  --side-top: calc((.04 + .08 * var(--frost)) * (1 - var(--boost)));   /* .08; ohne backdrop-filter deckt die Tönung (tokens.css) */
  --side-bot: calc((.02 + .04 * var(--frost)) * (1 - var(--boost)));   /* .04 */
}
.glass-side {    /* Leistenfläche: oben heller als unten; darunter die Tönung des Schemas wie beim Rahmen (Entscheid: trägt --boost auch auf der Leiste) */
  background: linear-gradient(180deg, rgb(var(--paper-rgb) / var(--side-top)), rgb(var(--paper-rgb) / var(--side-bot))), var(--tone);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  box-shadow: var(--rim), var(--shadow-float);
}
[data-bg="white"] .glass-side { -webkit-backdrop-filter: none; backdrop-filter: none; }

.gl-side {
  --sp: var(--spring-straff-ms) var(--spring-straff-ruhig);   /* Breite ohne Überschwingen, Dauer wie die straffe Feder */
  position: sticky; top: calc(var(--shell-y) + 16px); box-sizing: border-box; width: var(--side-zu); height: calc(100vh - 88px);
  border-radius: 42px; padding: 16px 0; color: var(--text); display: flex; flex-direction: column; transform-origin: 50% 0;
  transition: width var(--sp), border-radius var(--sp), padding var(--sp);
}
.gs-innen { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding: 4px 20px; transition: padding var(--sp); }
/* 4 px oben und unten im Inneren: Platz für die Dock-Vergrösserung der ersten und letzten Kachel (44 -> 51 px), ohne dass sie abgeschnitten wird */
.gs-innen::-webkit-scrollbar { display: none; }
.gs-raum { flex: 1 1 0; min-height: 0; }
/* Der Umschalter ist schwebendes Glas (dort ist --focus dunkel); sein Fokusrahmen liegt aber auf der Leiste und nimmt deren --focus */
.gl-side { --gs-fokus-leiste: var(--focus); }
.gl-side > .gs-umschalter:focus-visible { outline-color: var(--gs-fokus-leiste); }
.gs-umschalter { position: absolute; z-index: 3; top: 25px; right: -17px; width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--float-text); }
.gs-umschalter .gi { width: 16px; height: 16px; transition: transform var(--sp); }

/* Zeile: Kachel links, Name, Meta rechts. Eingeklappt nur die Kachel (44 px, 12 px Abstand) */
.gs-zeile { appearance: none; border: 0; background: none; padding: 0; margin: 0 0 12px; cursor: pointer; position: relative; z-index: 1; display: flex; align-items: center;
  gap: 12px; width: 100%; height: 44px; color: inherit; font: inherit; text-align: left; border-radius: 16px; flex: none;
  transition: height var(--sp), margin var(--sp), padding var(--sp), background-color var(--dur-fast) var(--ease-out); }
.gs-zeile .gs-tile { --s: 44px; position: relative; transform-origin: 50% 50%; width: 44px; height: 44px; border-radius: 12px; transition: width var(--sp), height var(--sp), border-radius var(--sp), margin var(--sp); }
.gs-zeile .gs-tile > .gi { width: 20px; height: 20px; opacity: .72; transition: width var(--sp), height var(--sp); }
.gs-zeile.aktiv .gs-tile > .gi, .gs-zeile:hover .gs-tile > .gi { opacity: 1; }
.gs-zeile .gs-text2 { display: flex; flex-direction: column; align-items: center; line-height: 1; font-variant-numeric: tabular-nums; }
.gs-zeile .gs-text2 small { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .72; }
.gs-zeile .gs-text2 b { font-size: 20px; font-weight: 600; margin-top: 2px; }
.gs-name { flex: 1; min-width: 0; font-size: var(--fs-body); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-zeile.aktiv .gs-name { font-weight: 600; }
.gs-meta { display: flex; align-items: center; gap: 6px; flex: none; margin-right: 8px; }
.gs-meta .gi { width: 16px; height: 16px; color: var(--text-2); }
.gs-meta .gs-mchip { box-sizing: border-box; height: 22px; padding: 0 8px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-axis);
  font-weight: 600; background: var(--track); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gs-meta .gs-mchip i { width: 6px; height: 6px; border-radius: 50%; background: var(--pos); }
.gs-ecke { position: absolute; top: -4px; right: -4px; transform-origin: 100% 0; }
.gs-name, .gs-meta, .gs-gtitel, .gs-feld, .gs-ktext, .gs-wtext, .gs-wfuss, .gs-wknoepfe, .gs-btext, .gs-bpfeil, .gs-zeile .gl-schalter {
  opacity: 0; filter: blur(8px); visibility: hidden; transition: opacity 120ms var(--ease-out), filter 120ms var(--ease-out), visibility 0s linear 120ms; }

/* Gruppen: eingeklappt trennt eine 28 px breite Haarlinie, aufgeklappt ein Titel */
.gs-gruppe { display: flex; flex-direction: column; flex: none; }
.gs-gtitel { height: 0; overflow: hidden; font-size: var(--fs-meta); font-weight: 500; color: var(--text-2); padding-left: 6px; white-space: nowrap; transition: height var(--sp), opacity 120ms, filter 120ms, visibility 0s linear 120ms; }
.gs-trenner { width: 28px; height: 1px; margin: 0 8px 12px; background: var(--hair); flex: none; transition: opacity 120ms; }
.gs-gruppe.gs-erste .gs-trenner { display: none; }

/* Aktiv eingeklappt: helle Kachel, Punkt 4 px links in Textfarbe */
.gs-zeile.aktiv .gs-tile { background: var(--bg-float); color: var(--float-text); box-shadow: var(--rim), var(--shadow-float); }
.gs-zeile.aktiv::before { content: ""; position: absolute; left: -12px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--text); transition: opacity 120ms; }
.gs-pille { position: absolute; z-index: 0; left: 14px; right: 14px; top: 0; height: 48px; border-radius: 16px; opacity: 0; pointer-events: none; transition: opacity 120ms; }

/* Kopf, Suchfeld, Widget, Schalter, Benutzer */
.gs-kopf { cursor: default; }
.gs-kopf .gs-tile { background: var(--bg-tile); }
.gs-kopf .gs-tile img { width: 26px; height: 26px; object-fit: contain; }
.gs-ktext { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.gs-ktext b { font-size: 16px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-ktext small { font-size: var(--fs-meta); color: var(--text-2); white-space: nowrap; }
.gs-suche { position: relative; flex: none; }
.gs-feld { position: absolute; inset: 0 0 12px; box-sizing: border-box; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 12px; border-radius: 14px; background: var(--track); }
.gs-feld .gi { width: 16px; height: 16px; color: var(--text-2); }
.gs-feld input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: var(--fs-label); color: var(--text); }
.gs-feld input::placeholder { color: var(--text-3); }
.gs-feld kbd { font: inherit; font-size: var(--fs-axis); font-weight: 600; padding: 2px 6px; border-radius: 6px; background: var(--bg-tile); box-shadow: var(--rim); color: var(--text-2); }
.gs-feld:focus-within { box-shadow: 0 0 0 2px var(--focus), 0 0 0 6px var(--focus-glow); }
.gs-widget, .gs-schalter { position: relative; flex: none; }
.gs-wkarte { position: absolute; inset: 0 0 12px; box-sizing: border-box; border-radius: 22px; padding: 10px 12px 10px 10px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; opacity: 0; transition: opacity 120ms; }
.gs-wkopf { display: flex; align-items: center; gap: 10px; padding-left: 54px; min-height: 44px; }
.gs-wtext { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gs-wtext b { font-size: var(--fs-body); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.gs-wtext small { font-size: var(--fs-meta); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-wknoepfe { display: flex; align-items: center; gap: 4px; pointer-events: auto; }
.gs-wknoepfe button { appearance: none; border: 0; background: none; padding: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text); }
.gs-wknoepfe button .gi { width: 16px; height: 16px; }
.gs-wknoepfe button.mitte { width: 36px; height: 36px; color: var(--on-color); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 78%, var(--paper)), var(--accent));
  box-shadow: inset 0 1px 0 var(--glint), 0 6px 16px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.gs-wfuss { display: flex; align-items: center; gap: 8px; font-size: var(--fs-axis); color: var(--text-2); font-variant-numeric: tabular-nums; }
.gs-wfuss .gl-linie4 { flex: 1; }
.gs-ring { position: absolute; inset: -1px; pointer-events: none; transform: rotate(-90deg); }
.gs-ring circle { fill: none; stroke-width: 2.5; }
.gs-ring .spur { stroke: var(--track); }
.gs-ring .wert { stroke: var(--accent); stroke-linecap: round; }
.gs-schalter .gl-schalter { margin-right: 8px; flex: none; }
.gs-zeile.an .gs-tile::after { content: ""; position: absolute; right: 5px; bottom: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.gs-benutzer { border-top: 1px solid transparent; flex: none; transition: border-color var(--sp), padding var(--sp); }
.gs-benutzer .gs-tile { background: transparent; box-shadow: none; }
.gs-benutzer .gl-avatar { --a: 44px; transition: width var(--sp), height var(--sp); }
.gs-btext { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.gs-btext b { font-size: var(--fs-body); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.gs-btext small { font-size: var(--fs-meta); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-bpfeil { margin-right: 8px; color: var(--text-2); } .gs-bpfeil .gi { width: 16px; height: 16px; }
.gs-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--sp); flex: none; }
.gs-sub > div { overflow: hidden; min-height: 0; }
.gs-sub .gs-zeile { height: 40px; margin: 0 0 6px; padding-left: 28px; }
.gs-sub .gs-zeile .gs-tile { width: 28px; height: 28px; border-radius: 9px; }
.gs-sub .gs-zeile .gs-tile > .gi { width: 14px; height: 14px; }

/* ---------- Aufgeklappt (ab 900 px) ---------- */
@media (min-width: 900px) {
  [data-side="auf"] .gl-side { width: var(--side-auf); border-radius: 30px; padding: 14px 0; }
  [data-side="auf"] .gs-innen { padding: 0 14px; }
  [data-side="auf"] .gs-umschalter .gi { transform: rotate(180deg); }
  [data-side="auf"] .gs-zeile { height: 48px; margin-bottom: 6px; padding-left: 6px; }
  [data-side="auf"] .gs-zeile:hover:not(.aktiv):not(.gs-kopf) { background: var(--bg-hover); }
  [data-side="auf"] .gs-zeile .gs-tile { width: 36px; height: 36px; border-radius: 10px; }
  [data-side="auf"] .gs-zeile .gs-tile > .gi { width: 17px; height: 17px; }
  [data-side="auf"] .gs-kopf .gs-tile { width: 40px; height: 40px; }
  [data-side="auf"] .gs-zeile.aktiv .gs-tile { background: var(--bg-tile); box-shadow: var(--tile-shadow); }
  [data-side="auf"] .gs-zeile.aktiv { color: var(--float-text); }
  [data-side="auf"] .gs-zeile.aktiv .gs-meta .gi, [data-side="auf"] .gs-zeile.aktiv .gs-meta { color: var(--float-text); }
  [data-side="auf"] .gs-zeile.aktiv::before, [data-side="auf"] .gs-trenner { opacity: 0; }
  [data-side="auf"] .gs-trenner { margin-bottom: 0; height: 0; }
  [data-side="auf"] .gs-ecke { opacity: 0; transition: opacity 120ms; }
  [data-side="auf"] .gs-gtitel { height: 22px; }
  [data-side="auf"] .gs-pille { opacity: 1; transition: opacity 160ms var(--ease-out) 200ms; }
  [data-side="auf"] .gs-suche .gs-zeile { visibility: hidden; transition: visibility 0s linear 200ms; }
  [data-side="auf"] .gs-feld { height: 40px; }
  [data-side="auf"] .gs-widget .gs-zeile { height: 88px; align-items: flex-start; padding-top: 10px; padding-left: 10px; }
  [data-side="auf"] .gs-widget .gs-zeile .gs-tile { width: 44px; height: 44px; }
  [data-side="auf"] .gs-wkarte { opacity: 1; inset: 0 0 6px; }
  [data-side="auf"] .gs-widget .gs-zeile { pointer-events: none; }
  [data-side="auf"] .gs-benutzer .gs-tile { width: 42px; height: 42px; }
  [data-side="auf"] .gs-widget .gs-ring { opacity: 0; }
  [data-side="auf"] .gs-benutzer { border-top-color: var(--hair); padding-top: 10px; }
  [data-side="auf"] .gs-benutzer .gl-avatar { --a: 42px; box-shadow: 0 0 0 2px var(--bg-float), var(--tile-shadow); }
  [data-side="auf"] .gs-sub.offen { grid-template-rows: 1fr; }
  [data-side="auf"] .gs-zeile.offen .gs-meta .gi { transform: scaleY(-1); }   /* gespiegelt statt gedreht (Regel 7), ohne Übergang */
  [data-side="auf"] :is(.gs-name, .gs-meta, .gs-gtitel, .gs-feld, .gs-ktext, .gs-wtext, .gs-wfuss, .gs-wknoepfe, .gs-btext, .gs-bpfeil, .gs-zeile .gl-schalter) {
    opacity: 1; filter: blur(0); visibility: visible;
    transition: opacity 220ms var(--ease-out) calc(208ms + var(--i, 0) * 15ms), filter 220ms var(--ease-out) calc(208ms + var(--i, 0) * 15ms), visibility 0s linear calc(208ms + var(--i, 0) * 15ms), height var(--sp); }
}
@media (max-width: 899px) { .gs-umschalter { display: none; } .gs-sub { display: none; } }

/* Tooltip und Untermenü (nur eingeklappt) */
.gs-tip { position: fixed; z-index: 90; left: 0; top: 0; box-sizing: border-box; height: 34px; padding: 0 12px; border-radius: 12px; display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-body); font-weight: 500; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); }
.gs-tip.an { opacity: 1; }
/* Nase zur Kachel als gerades Dreieck (keine gedrehte Raute, Regel 7) */
.gs-tip::before { content: ""; position: absolute; left: -5px; top: 50%; width: 6px; height: 12px; margin-top: -6px; background: inherit; clip-path: polygon(100% 0, 100% 100%, 0 50%); }
.gs-tip .gs-tipchip { font-size: var(--fs-axis); font-weight: 600; padding: 2px 7px; border-radius: var(--r-pill); background: var(--float-hair); color: var(--float-text-2); }
/* Untermenü: gerade Liste, Chips waagrecht, linksbündig, gleich breit (die Liste ist so breit wie der breiteste Chip), 8 px Abstand */
.gs-untermenue { position: fixed; z-index: 95; left: 0; top: 0; box-sizing: border-box; width: max-content; max-width: calc(100vw - 16px); display: flex; flex-direction: column;
  align-items: stretch; gap: 8px; }
.gs-uchip { box-sizing: border-box; height: 40px; border-radius: 14px; border: 0; margin: 0; padding: 0 14px 0 6px; display: flex; align-items: center; justify-content: flex-start;
  gap: 10px; cursor: pointer; white-space: nowrap; font-family: inherit; font-size: var(--fs-body); font-weight: 600; text-align: left; color: var(--float-text); min-width: 0; }
.gs-uchip .icon-tile { --s: 28px; flex: none; color: var(--float-text); }
.gs-uchip .icon-tile .gi { width: 14px; height: 14px; }
.gs-uname { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gs-uchip.aktiv { box-shadow: var(--rim), var(--shadow-float), inset 0 0 0 2px var(--float-hair); }

/* Menü der Benutzerzeile */
.gs-menue { position: fixed; z-index: 96; min-width: 220px; }

/* ---------- Handy unter 600 px: waagrechtes Glas-Dock unten (Entscheid) ---------- */
@media (max-width: 599px) {
  .gl-side { position: fixed; z-index: 50; top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: 64px; border-radius: 32px; padding: 0; transform-origin: 50% 100%; }
  .gs-innen { flex-direction: row; align-items: center; overflow-x: auto; overflow-y: hidden; padding: 0 10px; gap: 0; }
  .gs-gruppe { flex-direction: row; align-items: center; }
  .gs-kopf, .gs-suche, .gs-widget, .gs-schalter, .gs-gtitel, .gs-trenner, .gs-raum, .gs-sub { display: none; }
  .gs-zeile { margin: 0 6px; width: auto; height: 44px; gap: 0; }
  .gs-zeile > :not(.gs-tile) { display: none; }
  .gs-zeile.aktiv::before { left: 50%; top: auto; bottom: -8px; margin: 0 0 0 -2px; }
  .gs-benutzer { margin-left: auto; }
}
/* Weniger Bewegung: Zustandswechsel in 150 ms ohne Versatz */
@media (prefers-reduced-motion: reduce) {
  [data-side="auf"] :is(.gs-name, .gs-meta, .gs-gtitel, .gs-feld, .gs-ktext, .gs-wtext, .gs-wfuss, .gs-wknoepfe, .gs-btext, .gs-bpfeil, .gs-zeile .gl-schalter) { transition: opacity 150ms linear, filter 150ms linear, visibility 0s; }
  [data-side="auf"] .gs-pille { transition: opacity 150ms linear; }
}
/* ===== design/glas/appearance/appearance.css ===== */
/* Glas-Design · appearance.css: das Menü «Hintergrund» (Vorgabe Glas-Design Abschnitt 11). Nur Variablen aus tokens.css. */
.gh-menue { box-sizing: border-box; width: 340px; max-width: 100%; padding: 14px; display: flex; flex-direction: column; gap: 16px; }
.gh-menue h3 { margin: 0; font-size: var(--fs-card); line-height: var(--lh-card); font-weight: var(--fw-card); }
.gh-teil > .gh-titel { display: block; margin-bottom: 8px; font-size: var(--fs-label); font-weight: 600; }
.gh-bilder { display: grid; grid-template-columns: repeat(3, 96px); gap: 12px; }
@media (max-width: 380px) { .gh-bilder { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gh-kachel { position: relative; box-sizing: border-box; width: 100%; height: 60px; border-radius: 10px; border: 0; padding: 0; cursor: pointer; overflow: hidden;
  background: var(--paper); box-shadow: var(--rim), var(--shadow-card); display: grid; place-items: center; font-size: var(--fs-axis); font-weight: 600; color: var(--ink); }
.gh-kachel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gh-kachel .gh-name { position: relative; }
.gh-kachel.aktiv { box-shadow: 0 0 0 2px var(--accent), var(--shadow-card); }
.gh-haken { position: absolute; right: 5px; top: 5px; width: 18px; height: 18px; border-radius: 50%; display: none; place-items: center;
  background: var(--bg-float); color: var(--float-text); box-shadow: var(--rim), var(--knob-shadow); }   /* helles Glas: die Kachel trägt nur den Akzent-Ring (Glas v2, Regel 6) */
.gh-haken .gi { width: 12px; height: 12px; }
.gh-kachel.aktiv .gh-haken { display: grid; }
.gh-platz { position: relative; }
.gh-loeschen { position: absolute; z-index: 2; left: 5px; top: 5px; width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer;
  opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); color: var(--float-text); }
.gh-loeschen .gi { width: 12px; height: 12px; }
/* Touch unter 900 px: der Löschknopf behält sein Mass (22 px) und bekommt eine unsichtbare Trefferfläche von 44 × 44 px (wie die Segmente in ui.css) */
@media (max-width: 899px) {
  .gh-loeschen::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; }
}
.gh-platz:hover .gh-loeschen, .gh-platz:focus-within .gh-loeschen { opacity: 1; }
.gh-hoch { box-sizing: border-box; height: 60px; border-radius: 10px; border: 1.5px dashed var(--text-3); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; color: var(--text-2); font-size: var(--fs-axis); text-align: center; line-height: 1.15; padding: 0 4px; }
.gh-hoch .gi { width: 16px; height: 16px; }
.gh-hoch:focus-within { box-shadow: 0 0 0 2px var(--focus), 0 0 0 6px var(--focus-glow); }
.gh-hoch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.gh-menue.ziehen { box-shadow: var(--rim), var(--shadow-card), 0 0 0 2px var(--focus); }
.gh-meldung { min-height: 1.3em; margin: 0; font-size: var(--fs-meta); color: color-mix(in srgb, var(--neg) var(--mix-c), var(--mix-to)); }
.gh-fuss { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gh-segment { width: 100%; display: grid; }
