/* Showguest — Bausteine. Präfix sg-. Lädt nach tokens.css. Läuft ohne JavaScript. */

/* ============ 1 Grundlage ============ */

:root {
  /* Bewegung: kein Token, weil die Seite keine Familie dafür kennt */
  --sg-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --sg-spring: cubic-bezier(0.3, 1.2, 0.6, 1);
  --sg-fast: 120ms;
  --sg-base: 200ms;
  --sg-slow: 360ms;
  /* Höhe der Bedienelemente: mit Maus control, mit Finger control-touch */
  --sg-h: var(--control);
  --sg-input: 15px;
}
@media (pointer: coarse) {
  :root { --sg-h: var(--control-touch); --sg-input: 16px; }
}
/* Was dieses Stylesheet selbst je Theme setzt, steht hier an einer Stelle, in denselben drei Fällen wie die Tokens:
   hell (Voreinstellung und data-theme="light"), dunkel (data-theme="dark") und dunkel, weil das System dunkel ist und am Root kein
   data-theme="light" steht. Im dritten Fall folgt die Seite dem System; tokens.css führt die dunklen Tokens dafür auch unter
   prefers-color-scheme. Der zweite und der dritte Block setzen dasselbe; tools/tokens.py prüft das bei jedem Bau.
   color-scheme: Eigene Bedienelemente des Browsers (Datum, Rollbalken) folgen dem Theme.
   --sg-own-max, --sg-own-min: Grenzen der Leuchtdichte für sg-owncolor, siehe dort. */
:root, [data-theme="light"] { color-scheme: light; --sg-own-max: 0.147; --sg-own-min: 0; }
[data-theme="dark"] { color-scheme: dark; --sg-own-max: 1; --sg-own-min: 0.242; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; --sg-own-max: 1; --sg-own-min: 0.242; } }

.sg {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}
.sg *, .sg *::before, .sg *::after { box-sizing: border-box; }
.sg :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset, legend) { margin: 0; padding: 0; border: 0; }
.sg :where(ul, ol)[class] { list-style: none; }
.sg :where(a) { color: inherit; }
.sg :where(button, input, select, textarea) { font: inherit; color: inherit; letter-spacing: inherit; }
.sg :where(button) { -webkit-tap-highlight-color: transparent; }
.sg ::selection { background: var(--limette); color: var(--on-farbe); }
.sg :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .sg *, .sg *::before, .sg *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

.sg-tnum, .sg-price, .sg-stat { font-variant-numeric: tabular-nums; }
.sg-overline { text-transform: uppercase; color: var(--ink-subtle); }
.sg-muted { color: var(--ink-muted); }
.sg-subtle { color: var(--ink-subtle); }
/* Zeile zur Herkunft (sg-origin, SG-D41): sagt an einer Vorschau, woher ihr Aussehen kommt („Aus der Standardvorlage: Klar“), und an einer
   Einstellung, wofür sie gilt („Gilt für alle Karten“, „Gilt nur für diese Karte“). Vorn ein kleines Icon, dann der Satz in einem <span>,
   die Quelle darin in <b>; am Ende höchstens ein Link zu der Stelle, an der man es ändert. Die Zeile trägt keine Farbe. */
.sg-origin { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--space-2); margin: 0; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.sg-origin > .sg-icon { flex: none; align-self: flex-start; margin-top: 1px; }
.sg-origin > span { flex: 0 1 auto; min-width: 0; }
.sg-origin b { font-weight: 600; color: var(--ink); }
.sg-origin > .sg-link { font-size: 13px; line-height: 18px; }
figcaption > .sg-origin { margin-top: var(--space-1); }
/* Eigene Farbe als Schrift (sg-owncolor): Ein Name steht in einer Farbe, die nicht aus diesem System kommt, etwa der Name eines Kapitels
   in seiner Farbe aus der Vorlage des Betriebs. Die Farbe steht in --sg-owncolor. Die Klasse rechnet ihre Schriftstufe selbst aus: Die Schrift
   hält auf ground, ground-sunken, surface und surface-raised mindestens 4,5 : 1 (WCAG 1.4.3), in beiden Themes, auch wenn die Seite ohne
   data-theme dem System folgt. Reicht die Farbe dafür nicht,
   bekommt sie im hellen Theme weniger Licht und im dunklen mehr, nur so viel wie nötig; Farbton und Sättigung bleiben. Reicht im dunklen Theme
   auch das volle Licht der Farbe nicht, etwa bei einem tiefen Blau, kommt Weiß dazu. Eine Farbe, die reicht, bleibt, wie sie ist.
   Gerechnet wird mit dem Licht der Farbe (lineares sRGB, Kanäle auf 0 bis 1 begrenzt): y ist ihre Leuchtdichte nach WCAG, k der Faktor für
   das Licht, t der Anteil Weiß. Die Schrift ist immer deckend, auch wenn die Farbe der Vorlage durchscheint.
   --sg-own-max und --sg-own-min sind die Grenzen der Leuchtdichte je Theme. Sie stehen oben bei color-scheme, in den drei Blöcken je
   Theme; tools/tokens.py prüft sie gegen die Tokens der Flächen und rechnet die Regel nach. Kann ein Browser die Rechnung nicht, steht
   der Name in der Farbe des Textes um ihn herum. */
@supports (color: color(from red srgb-linear calc(clamp(0, r, 1) * min(1, 0.1 / max(0.2 * r + 0.7 * g + 0.1 * b, 0.001))) calc(g / max(r, g, b, 0.001)) b / 1)) {
  .sg-owncolor {
    --sg-own-r: clamp(0, r, 1);
    --sg-own-g: clamp(0, g, 1);
    --sg-own-b: clamp(0, b, 1);
    --sg-own-y: (0.2126 * var(--sg-own-r) + 0.7152 * var(--sg-own-g) + 0.0722 * var(--sg-own-b));
    --sg-own-k: min(max(1, min(var(--sg-own-min) / max(var(--sg-own-y), 0.0001), 1 / max(var(--sg-own-r), var(--sg-own-g), var(--sg-own-b), 0.0001))), var(--sg-own-max) / max(var(--sg-own-y), 0.0001));
    --sg-own-t: max(0, (var(--sg-own-min) - var(--sg-own-k) * var(--sg-own-y)) / max(1 - var(--sg-own-k) * var(--sg-own-y), 0.0001));
    color: color(from var(--sg-owncolor, var(--ink)) srgb-linear
      calc(var(--sg-own-k) * var(--sg-own-r) + var(--sg-own-t) * (1 - var(--sg-own-k) * var(--sg-own-r)))
      calc(var(--sg-own-k) * var(--sg-own-g) + var(--sg-own-t) * (1 - var(--sg-own-k) * var(--sg-own-g)))
      calc(var(--sg-own-k) * var(--sg-own-b) + var(--sg-own-t) * (1 - var(--sg-own-k) * var(--sg-own-b))) / 1);
  }
}
.sg-balance { text-wrap: balance; }
.sg-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Was zur Seite rollt, fängt verborgenen Text (sg-sr) ein. Sonst macht er die Seite breiter, sobald er aus dem Bild rollt. */
.sg-seg--scroll, .sg-chips--scroll, .sg-tabs, .sg-table-wrap, .sg-sheet__body, .sg-searchwindow__results { position: relative; }
/* Das Attribut hidden gilt immer, auch wo eine Klasse display setzt: Aktionsleiste, Knopf, Fuß eines Blatts, Schleier. */
.sg[hidden], .sg [hidden]:not([hidden="until-found"]) { display: none !important; }
.sg-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--line-control); transition: text-decoration-color var(--sg-fast) var(--sg-ease); }
.sg-link:hover { text-decoration-color: currentColor; }
.sg-kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-xs); background: var(--fill); color: var(--ink-muted); font-family: var(--font-mono); font-size: 12px; line-height: 1; }

.sg-stack { display: flex; flex-direction: column; gap: var(--sg-gap, var(--space-4)); }
.sg-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sg-gap, var(--space-2)); }
.sg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--sg-min, 240px), 100%), 1fr)); gap: var(--sg-gap, var(--space-4)); }
.sg-spread { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sg-gap, var(--space-3)); }

/* ============ 2 Icons (Maske, Farbe aus currentColor) ============ */

.sg-icon { display: inline-block; flex: none; width: var(--icon); height: var(--icon); background: currentColor; -webkit-mask: var(--sg-i) center / contain no-repeat; mask: var(--sg-i) center / contain no-repeat; vertical-align: -0.24em; }
.sg-icon--sm { width: 16px; height: 16px; }
.sg-icon--lg { width: 24px; height: 24px; }
:root { --sg-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 9.5 17 19 7.5'/%3E%3C/svg%3E"); --sg-i-check-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1116' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 9.5 17 19 7.5'/%3E%3C/svg%3E"); --sg-i-chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); --sg-i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); --sg-i-sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c.86 5.57 4.43 9.14 10 10-5.57.86-9.14 4.43-10 10-.86-5.57-4.43-9.14-10-10 5.57-.86 9.14-4.43 10-10z'/%3E%3C/svg%3E"); }
.sg-icon--plus { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.sg-icon--minus { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
.sg-icon--x { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"); }
.sg-icon--check { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 9.5 17 19 7.5'/%3E%3C/svg%3E"); }
.sg-icon--chevron-right { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E"); }
.sg-icon--chevron-left { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 6-6 6 6 6'/%3E%3C/svg%3E"); }
.sg-icon--chevron-down { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.sg-icon--chevron-up { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 15 6-6 6 6'/%3E%3C/svg%3E"); }
.sg-icon--arrow-right { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.sg-icon--arrow-left { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E"); }
.sg-icon--arrow-up-right { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E"); }
.sg-icon--search { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.9-3.9'/%3E%3C/svg%3E"); }
.sg-icon--more { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke-width='2.6' d='M5 12h.01M12 12h.01M19 12h.01'/%3E%3C/svg%3E"); }
.sg-icon--menu { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E"); }
.sg-icon--home { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7.5' height='9' rx='2'/%3E%3Crect x='13.5' y='3' width='7.5' height='5.5' rx='2'/%3E%3Crect x='13.5' y='12' width='7.5' height='9' rx='2'/%3E%3Crect x='3' y='15.5' width='7.5' height='5.5' rx='2'/%3E%3C/svg%3E"); }
.sg-icon--catalog { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 9 4.5-9 4.5-9-4.5L12 3z'/%3E%3Cpath d='m3 12 9 4.5 9-4.5'/%3E%3Cpath d='m3 16.5 9 4.5 9-4.5'/%3E%3C/svg%3E"); }
.sg-icon--card { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E"); }
.sg-icon--spark { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 3.5c.6 3.9 3.1 6.4 7 7-3.9.6-6.4 3.1-7 7-.6-3.9-3.1-6.4-7-7 3.9-.6 6.4-3.1 7-7z'/%3E%3Cpath d='M19 2.5v4M17 4.5h4M19 18v2.5'/%3E%3C/svg%3E"); }
.sg-icon--calendar { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='3'/%3E%3Cpath d='M8 2.5v4M16 2.5v4M3 10h18'/%3E%3C/svg%3E"); }
.sg-icon--channels { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M7.8 16.2a6 6 0 0 1 0-8.4M16.2 7.8a6 6 0 0 1 0 8.4M4.9 19.1a10 10 0 0 1 0-14.2M19.1 4.9a10 10 0 0 1 0 14.2'/%3E%3C/svg%3E"); }
.sg-icon--template { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='7' rx='2'/%3E%3Crect x='3' y='14' width='9' height='7' rx='2'/%3E%3Crect x='16' y='14' width='5' height='7' rx='2'/%3E%3C/svg%3E"); }
.sg-icon--image { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.6-3.6a2 2 0 0 0-2.8 0L6 20'/%3E%3C/svg%3E"); }
.sg-icon--settings { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h9M17 7h3M4 17h3M11 17h9'/%3E%3Ccircle cx='15' cy='7' r='2'/%3E%3Ccircle cx='9' cy='17' r='2'/%3E%3C/svg%3E"); }
.sg-icon--user { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.sg-icon--users { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0M16 4.7a3.5 3.5 0 0 1 0 6.6M18.5 14.3a6.5 6.5 0 0 1 3 5.7'/%3E%3C/svg%3E"); }
.sg-icon--clock { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.sg-icon--printer { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v5'/%3E%3Cpath d='M6 17H5a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-1'/%3E%3Crect x='6' y='14' width='12' height='7' rx='1'/%3E%3C/svg%3E"); }
.sg-icon--qr { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Cpath d='M14 14h3v3h-3zM21 14v.01M21 17.5V21h-3.5M14 21h.01'/%3E%3C/svg%3E"); }
.sg-icon--monitor { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3.5' width='20' height='13' rx='2.5'/%3E%3Cpath d='M8 20.5h8M12 16.5v4'/%3E%3C/svg%3E"); }
.sg-icon--phone { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6.5' y='2' width='11' height='20' rx='3'/%3E%3Cpath d='M11 18.5h2'/%3E%3C/svg%3E"); }
.sg-icon--globe { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.5 3.8 5.5 3.8 9s-1.3 6.5-3.8 9c-2.5-2.5-3.8-5.5-3.8-9S9.5 5.500 12 3z'/%3E%3C/svg%3E"); }
.sg-icon--share { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V3M8 7l4-4 4 4M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-7'/%3E%3C/svg%3E"); }
.sg-icon--download { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M8 11l4 4 4-4M5 21h14'/%3E%3C/svg%3E"); }
.sg-icon--upload { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M8 8l4-4 4 4M5 20h14'/%3E%3C/svg%3E"); }
.sg-icon--edit { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1-4.5L16.5 4a2.12 2.12 0 0 1 3 3L8 18.5 4 20z'/%3E%3Cpath d='m14.5 6 3 3'/%3E%3C/svg%3E"); }
.sg-icon--trash { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 12a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-12M9 7V4.5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1V7'/%3E%3C/svg%3E"); }
.sg-icon--eye { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12S6 5.500 12 5.500 21.500 12 21.500 12 18 18.500 12 18.500 2.500 12 2.500 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.sg-icon--copy { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='2.5'/%3E%3Cpath d='M5 15h-.5A1.5 1.5 0 0 1 3 13.500v-9A1.500 1.500 0 0 1 4.500 3h9A1.500 1.500 0 0 1 15 4.500V5'/%3E%3C/svg%3E"); }
.sg-icon--bell { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9a6 6 0 0 1 12 0c0 6 2.5 8 2.5 8h-17S6 15 6 9zM10 20.500a2.200 2.200 0 0 0 4 0'/%3E%3C/svg%3E"); }
.sg-icon--info { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 16.500V11M12 7.500h.01'/%3E%3C/svg%3E"); }
.sg-icon--warning { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 4 2.3 18a2 2 0 0 0 1.700 3h16a2 2 0 0 0 1.700-3l-8-14a2 2 0 0 0-3.400 0zM12 9.500v4M12 17h.01'/%3E%3C/svg%3E"); }
.sg-icon--error { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.500V13M12 16.500h.01'/%3E%3C/svg%3E"); }
.sg-icon--success { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12.500 2.500 2.500 4.500-5'/%3E%3C/svg%3E"); }
.sg-icon--bolt { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2.500 4.500 13.500H11l-1 8 8.500-11H12l1-8z'/%3E%3C/svg%3E"); }
.sg-icon--tag { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.500V11a2 2 0 0 0 .6 1.400l8 8a2 2 0 0 0 2.800 0l6-6a2 2 0 0 0 0-2.800l-8-8A2 2 0 0 0 11 3H4.500A1.500 1.500 0 0 0 3 4.500z'/%3E%3Cpath stroke-width='2.6' d='M7.500 7.500h.01'/%3E%3C/svg%3E"); }
.sg-icon--grip { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke-width='2.6' d='M9 6h.01M15 6h.01M9 12h.01M15 12h.01M9 18h.01M15 18h.01'/%3E%3C/svg%3E"); }
.sg-icon--filter { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M6.500 12h11M10 18h4'/%3E%3C/svg%3E"); }
.sg-icon--sort { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M3 16l4 4 4-4M17 20V4M13 8l4-4 4 4'/%3E%3C/svg%3E"); }
.sg-icon--link { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13.500a4.500 4.500 0 0 0 6.400.4l3-3a4.500 4.500 0 0 0-6.400-6.400L11.500 6'/%3E%3Cpath d='M14 10.500a4.500 4.500 0 0 0-6.400-.4l-3 3a4.500 4.500 0 0 0 6.400 6.400L12.500 18'/%3E%3C/svg%3E"); }
.sg-icon--external { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M10 14 21 3M18 13.500V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h5.500'/%3E%3C/svg%3E"); }
.sg-icon--sun { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.900 4.900l1.400 1.400M17.700 17.700l1.400 1.400M2 12h2M20 12h2M4.900 19.100l1.400-1.400M17.700 6.300l1.400-1.400'/%3E%3C/svg%3E"); }
.sg-icon--moon { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.500 13.500A8.500 8.500 0 1 1 10.500 3.500a6.500 6.500 0 0 0 10 10z'/%3E%3C/svg%3E"); }
.sg-icon--lock { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2.5'/%3E%3Cpath d='M8 11V7.500a4 4 0 0 1 8 0V11'/%3E%3C/svg%3E"); }
.sg-icon--history { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.500 12a8.500 8.500 0 1 0 2.700-6.200L3.500 8.500M3.500 3.500v5h5M12 7.500V12l3 2'/%3E%3C/svg%3E"); }
.sg-icon--undo { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h10a6 6 0 0 1 0 12H9M4 8l4-4M4 8l4 4'/%3E%3C/svg%3E"); }
.sg-icon--leaf { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-8 5-13 15-14 0 9-4 15-11 15-1.500 0-3-.4-4-1z'/%3E%3Cpath d='M4 21c1.500-4.500 4.500-8 10-10.500'/%3E%3C/svg%3E"); }
.sg-icon--euro { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18.500 6.500a7 7 0 1 0 0 11M4 10.500h10M4 14h8.500'/%3E%3C/svg%3E"); }
.sg-icon--play { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4.500v15l12-7.500-12-7.500z'/%3E%3C/svg%3E"); }
.sg-icon--send { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.500 2.500 11 13M21.500 2.500 15 21l-4-8-8-4 18.500-6.500z'/%3E%3C/svg%3E"); }
.sg-icon--store { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10v10h16V10M3 9.500 4.500 4h15L21 9.500M3 9.500a3 3 0 0 0 6 0 3 3 0 0 0 6 0 3 3 0 0 0 6 0M10 20v-5.500h4V20'/%3E%3C/svg%3E"); }
.sg-icon--building { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath stroke-width='2.4' d='M9.500 7.500h.01M14.500 7.500h.01M9.500 12h.01M14.500 12h.01'/%3E%3Cpath d='M10 21v-4h4v4'/%3E%3C/svg%3E"); }
.sg-icon--dish { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.500 20.500h19M4.500 17.500a7.500 7.500 0 0 1 15 0zM12 10V7.500M10 7.500h4'/%3E%3C/svg%3E"); }
.sg-icon--glass { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21.500h8M12 14.500v7M6.500 3h11l-.8 6.500a4.730 4.730 0 0 1-9.400 0L6.500 3zM7 8.500h10'/%3E%3C/svg%3E"); }
.sg-icon--star { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.700 5.600 6.100.9-4.400 4.300 1 6.100L12 17l-5.400 2.900 1-6.100-4.400-4.300 6.100-.9L12 3z'/%3E%3C/svg%3E"); }
.sg-icon--help { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.500 9.500a2.500 2.500 0 0 1 5 0c0 1.700-2.500 2.200-2.500 4M12 17h.01'/%3E%3C/svg%3E"); }
.sg-icon--lightbulb { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 16v-1.23a6.5 6.5 0 1 1 6 0V16z'/%3E%3Cpath d='M9.5 18.8h5M10.5 21.5h3'/%3E%3C/svg%3E"); }
.sg-icon--stand { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.500 4h9L20 20H4L7.500 4zM9.500 9.500h5M9 14h6'/%3E%3C/svg%3E"); }
.sg-icon--translate { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h9M8.500 3.500V6c0 4-2 7-4.500 8.500M6 10c1 2.500 3 4 5.500 4.500M12.500 20.500l4-9 4 9M14 17.500h5'/%3E%3C/svg%3E"); }
.sg-icon--ticket { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9V7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v2a3 3 0 0 0 0 6v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2a3 3 0 0 0 0-6z'/%3E%3Cpath d='M14.500 5v2M14.500 11v2M14.500 17v2'/%3E%3C/svg%3E"); }
.sg-icon--chef { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 14.500a4.500 4.500 0 1 1 1.700-8.700 4 4 0 0 1 6.600 0A4.500 4.500 0 1 1 17 14.500V20.500H7v-6zM7 17.500h10'/%3E%3C/svg%3E"); }
.sg-icon--cup { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8.500h11v5.500a5 5 0 0 1-5 5h-1a5 5 0 0 1-5-5V8.500zM16 10h1.500a2.500 2.500 0 0 1 0 5H16M4 21.500h13M8.500 2.500V5M12.500 2.500V5'/%3E%3C/svg%3E"); }
.sg-icon--heart { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20.500s-7.500-4.600-9-9.700C2 7.500 4 4.500 7.200 4.500c2 0 3.600 1.100 4.800 2.900 1.200-1.800 2.800-2.900 4.800-2.900C20 4.500 22 7.500 21 10.800c-1.500 5.100-9 9.700-9 9.700z'/%3E%3C/svg%3E"); }
.sg-icon--flame { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21.500c-3.600 0-6.500-2.700-6.500-6.300 0-2.500 1.500-4.300 3-6 .5 1.500 1.300 2.300 2.200 2.800C10.500 8.500 11.500 5 14.500 2.500c.2 3 1.500 4.800 2.700 6.500 1 1.500 1.800 3 1.800 5.200 0 4.200-3 7.300-7 7.300z'/%3E%3C/svg%3E"); }
.sg-icon--timeline { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='10' height='4.5' rx='2.25'/%3E%3Crect x='8' y='9.75' width='13' height='4.5' rx='2.25'/%3E%3Crect x='5' y='15.5' width='9' height='4.5' rx='2.25'/%3E%3C/svg%3E"); }
.sg-icon--megaphone { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10v4a1 1 0 0 0 1 1h2l8 4.500v-15L7 9H5a1 1 0 0 0-1 1zM18.500 9a4 4 0 0 1 0 6M8 15v3.500a1.500 1.500 0 0 0 3 0v-1.800'/%3E%3C/svg%3E"); }
.sg-icon--palette { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18c1.400 0 2-1 2-2 0-.6-.3-1-.6-1.400-.3-.4-.4-.8-.4-1.100 0-1 .8-1.500 1.800-1.500H17a4 4 0 0 0 4-4c0-4.400-4-8-9-8z'/%3E%3Cpath stroke-width='2.6' d='M7.500 11.500h.01M9.500 7.500h.01M14.500 7.500h.01'/%3E%3C/svg%3E"); }
.sg-icon--paperclip { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.440 11.050-9.190 9.190a6 6 0 0 1-8.490-8.490l8.570-8.570A4 4 0 1 1 18 8.840l-8.590 8.570a2 2 0 0 1-2.830-2.830l8.490-8.480'/%3E%3C/svg%3E"); }

/* ============ 3 Flächen ============ */

/* Flach: Flächen trennt die Haarlinie, nicht der Schatten */
.sg-card { position: relative; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.sg-card--lg { padding: var(--space-6); border-radius: var(--radius-xl); }
.sg-card--flush { padding: 0; overflow: hidden; }
.sg-card--sunken { background: var(--ground-sunken); box-shadow: none; }
a.sg-card, .sg-card--link { display: block; color: inherit; text-decoration: none; }
a.sg-card:hover, .sg-card--link:hover { box-shadow: 0 0 0 1px var(--line-control); }
a.sg-card:focus-visible, .sg-card--link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sg-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }

/* Leiste: schwebt über dem Inhalt, der darunter durchläuft. Deckend, mit Haarlinie und dem leichten Schatten. */
.sg-bar, .sg-topbar, .sg-dock, .sg-actionbar, .sg-sitenav { background: var(--surface-raised); box-shadow: 0 0 0 1px var(--line), var(--shadow-float); }

/* Farbe: eine Klasse setzt die Farbe für Symbol, Farbfeld, Markierung und Formbild */
.sg-c-limette { --sg-c: var(--limette); --sg-c-soft: var(--limette-soft); --sg-c-text: var(--limette-text); --sg-on: var(--on-farbe); }
.sg-c-himbeere { --sg-c: var(--himbeere); --sg-c-soft: var(--himbeere-soft); --sg-c-text: var(--himbeere-text); --sg-on: var(--on-farbe); }
.sg-c-blaubeere { --sg-c: var(--blaubeere); --sg-c-soft: var(--blaubeere-soft); --sg-c-text: var(--blaubeere-text); --sg-on: var(--on-farbe); }
.sg-c-lavendel { --sg-c: var(--lavendel); --sg-c-soft: var(--lavendel-soft); --sg-c-text: var(--lavendel-text); --sg-on: var(--on-farbe); }
.sg-c-azur { --sg-c: var(--azur); --sg-c-soft: var(--azur-soft); --sg-c-text: var(--azur-text); --sg-on: var(--on-farbe); }
/* Ohne Farbklasse: Feld, Markierung und Formbild in Limette, das Symbol neutral. Geerbte Farbe zählt nicht. */
.sg-block:not([class*="sg-c-"]), .sg-hl:not([class*="sg-c-"]), .sg-shapes:not([class*="sg-c-"]) { --sg-c: var(--limette); --sg-c-soft: var(--limette-soft); --sg-c-text: var(--limette-text); --sg-on: var(--on-farbe); }
.sg-symbol:not([class*="sg-c-"]) { --sg-c: var(--fill-strong); --sg-c-soft: var(--fill); --sg-c-text: var(--ink-muted); --sg-on: var(--ink); }

/* Farbfeld: flache Fläche in einer der fünf Farben. Ein volles Feld trägt zusätzlich data-theme="light". */
.sg-block { position: relative; display: grid; align-content: start; gap: var(--space-2); padding: var(--space-6); border-radius: var(--radius-xl); background: var(--sg-c); color: var(--on-farbe); }
.sg-block .sg-muted, .sg-block .sg-overline { color: inherit; }
.sg-block--soft { background: var(--sg-c-soft); color: var(--ink); }
.sg-block--soft .sg-muted { color: var(--ink-muted); }
.sg-block--soft .sg-overline { color: var(--sg-c-text); }
/* Dunkles Feld: trägt zusätzlich data-theme="dark" */
.sg-block--dark { background: var(--dark); color: var(--on-dark); }
.sg-block--dark .sg-muted, .sg-block--dark .sg-overline { color: var(--on-dark-muted); }
.sg-block--sm { padding: var(--space-4); border-radius: var(--radius-lg); }
.sg-block--lg { padding: var(--space-8); border-radius: var(--radius-2xl); }

/* Markierung: die Pille hinter dem Wort, auf das es ankommt */
.sg-hl { display: inline-block; padding: 0 0.22em 0.04em; border-radius: var(--radius-pill); background: var(--sg-c); color: var(--on-farbe); line-height: 1.12; white-space: nowrap; }

/* Farbleiste: die fünf Farben in fester Reihenfolge */
.sg-spectrum { display: block; height: 6px; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--limette) 0 20%, var(--azur) 0 40%, var(--blaubeere) 0 60%, var(--lavendel) 0 80%, var(--himbeere) 0); }

/* Symbol: Zeichen auf einer flachen Kachel in der Farbe seines Bereichs */
.sg-symbol { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--sg-c); color: var(--sg-on); }
.sg-symbol .sg-icon { width: 24px; height: 24px; }
.sg-symbol > b { font-size: 18px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.sg-symbol--lg > b { font-size: 24px; }
.sg-symbol--soft { background: var(--sg-c-soft); color: var(--sg-c-text); }
.sg-symbol--ink { background: var(--primary); color: var(--on-primary); }
.sg-symbol--paper { background: var(--surface); color: var(--ink); }
.sg-symbol--ghost { background: transparent; color: var(--ink-muted); outline: 2px dashed var(--line-control); outline-offset: -2px; }
.sg-symbol--sm { width: 28px; height: 28px; border-radius: var(--radius-sm); }
.sg-symbol--sm .sg-icon { width: 16px; height: 16px; }
.sg-symbol--lg { width: 56px; height: 56px; border-radius: 18px; }
.sg-symbol--lg .sg-icon { width: 28px; height: 28px; }
.sg-symbol--xl { width: 76px; height: 76px; border-radius: 24px; }
.sg-symbol--xl .sg-icon { width: 38px; height: 38px; }

/* Formbild: ein zartes Feld, eine Pille, eine Scheibe und ein Symbol. Für Momente ohne Daten. */
.sg-shapes { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; flex: none; width: min(100%, 220px); aspect-ratio: 11 / 8; border-radius: var(--radius-xl); background: var(--sg-c-soft); }
.sg-shapes::before { content: ""; position: absolute; z-index: -1; left: 9%; bottom: -34%; width: 22%; height: 92%; border-radius: var(--radius-pill); background: var(--sg-c); }
.sg-shapes::after { content: ""; position: absolute; z-index: -1; right: 10%; top: 13%; width: 17%; aspect-ratio: 1; border-radius: 50%; background: var(--surface); }
.sg-shapes--quiet { background: var(--ground-sunken); }
.sg-shapes--quiet::before { background: var(--fill-strong); }

/* ============ 4 Button ============ */

.sg-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: var(--sg-h); padding: 0 18px; border: 0; border-radius: var(--radius-pill); background: var(--fill); color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: -0.005em; white-space: nowrap; text-decoration: none; cursor: pointer; user-select: none; transition: background var(--sg-fast) var(--sg-ease), box-shadow var(--sg-base) var(--sg-ease), transform var(--sg-fast) var(--sg-ease), filter var(--sg-fast) var(--sg-ease); }
.sg-btn:hover { background: var(--fill-strong); }
.sg-btn:active { transform: scale(0.97); }
.sg-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sg-btn--primary { background: var(--primary); color: var(--on-primary); }
.sg-btn--primary:hover { background: var(--primary-hover); }
.sg-btn--publish { background: var(--limette); color: var(--on-farbe); box-shadow: inset 0 0 0 1px var(--line); }
.sg-btn--publish:hover { background: var(--limette-strong); }
.sg-btn--publish:focus-visible { box-shadow: var(--focus-ring); }
.sg-btn--ghost { background: transparent; }
.sg-btn--ghost:hover { background: var(--fill); }
.sg-btn--danger { background: var(--danger-fill); color: var(--on-danger); }
.sg-btn--danger:hover { background: var(--danger-fill); filter: brightness(0.92); }
.sg-btn--danger-quiet { background: transparent; color: var(--danger); }
.sg-btn--danger-quiet:hover { background: var(--danger-soft); }
.sg-btn--sm { height: var(--control-sm); padding: 0 14px; font-size: 13px; }
.sg-btn--sm::after { content: ""; position: absolute; inset: -4px 0; }
.sg-btn--lg { height: 56px; padding: 0 28px; font-size: 17px; }
.sg-btn--icon { width: var(--sg-h); padding: 0; }
.sg-btn--icon.sg-btn--sm { width: var(--control-sm); }
.sg-btn--block { display: flex; width: 100%; }
.sg-btn:disabled, .sg-btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; box-shadow: none; }
.sg-btn[aria-busy="true"] { pointer-events: none; }
.sg-btn--fab { height: 56px; min-width: 56px; padding: 0 22px; background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-float); }
.sg-btn--fab:hover { background: var(--primary-hover); }
.sg-btn--fab.sg-btn--icon { width: 56px; padding: 0; }
.sg-spinner { display: inline-block; flex: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sg-spin 0.7s linear infinite; }
@keyframes sg-spin { to { transform: rotate(360deg); } }

@property --sg-seg-l { syntax: "<length>"; initial-value: 0px; inherits: false; }
@property --sg-seg-r { syntax: "<length>"; initial-value: 0px; inherits: false; }

/* ============ 5 Eingabe ============ */

.sg-field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.sg-label { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); }
.sg-label small { font-size: inherit; font-weight: 500; color: var(--ink-muted); }
/* „Pflicht“ am Feld (SG-D25): das Wort hinter der Beschriftung, in <label> oder <legend>. Es steht als Text da, nicht als Sternchen oder Farbe.
   Die Pille ist so hoch wie die Zeile der Beschriftung, damit Felder nebeneinander auf einer Höhe bleiben. */
.sg-required { display: inline-block; margin-left: var(--space-1); padding: 0 7px; border-radius: var(--radius-pill); background: var(--fill-strong); color: var(--ink); font-size: 12px; line-height: 18px; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; vertical-align: top; }
/* Marker in der Beschriftung, etwa „Vorschlag der KI“: Die Zeile behält ihre Höhe, damit kein Feld springt, wenn er kommt oder geht. */
.sg-label > .sg-badge, .sg-fieldset > legend > .sg-badge { margin: -2px 0 -2px var(--space-1); vertical-align: top; }
/* Hinweis am Feld: sagt nur, wie man es ausfüllt. 14 px und ink-muted, damit man ihn lesen kann. */
.sg-help { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.sg-error { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--danger); }

.sg-input, .sg-textarea, .sg-select select, .sg-inputbox { width: 100%; min-width: 0; border: 1px solid var(--line-control); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font-size: var(--sg-input); line-height: 22px; transition: border-color var(--sg-fast) var(--sg-ease), box-shadow var(--sg-fast) var(--sg-ease); }
.sg-input, .sg-select select { height: var(--sg-h); padding: 0 14px; }
.sg-textarea { display: block; min-height: 96px; padding: 10px 14px; resize: vertical; }
.sg-input::placeholder, .sg-textarea::placeholder, .sg-inputbox input::placeholder { color: var(--ink-subtle); opacity: 1; }
.sg-input:hover, .sg-textarea:hover, .sg-select select:hover, .sg-inputbox:hover { border-color: var(--ink-subtle); }
.sg-input:focus-visible, .sg-textarea:focus-visible, .sg-select select:focus-visible, .sg-inputbox:focus-within { outline: none; border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.sg-input:disabled, .sg-textarea:disabled, .sg-select select:disabled { background: var(--fill); color: var(--ink-subtle); border-color: var(--line); }
.sg-input[type="number"], .sg-input--num { text-align: right; font-variant-numeric: tabular-nums; }
.sg-select { position: relative; display: block; }
.sg-select select { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer; }
.sg-select::after { content: ""; position: absolute; top: 50%; right: 14px; width: 16px; height: 16px; translate: 0 -50%; background: var(--ink-muted); -webkit-mask: var(--sg-i-chevron-down) center / contain no-repeat; mask: var(--sg-i-chevron-down) center / contain no-repeat; pointer-events: none; }
.sg-inputbox { display: flex; align-items: center; gap: var(--space-2); height: var(--sg-h); padding: 0 14px; color: var(--ink-muted); }
.sg-inputbox input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: var(--sg-input); }
.sg-inputbox--num input { text-align: right; font-variant-numeric: tabular-nums; }
.sg-field--error .sg-input, .sg-field--error .sg-textarea, .sg-field--error .sg-select select, .sg-field--error .sg-inputbox { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.sg-form { display: grid; gap: var(--space-5); }
.sg-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: var(--space-4); }
/* Die Gruppe wird nie breiter als ihr Platz: Ein breites Kind bricht um, statt die Seite am Telefon breiter zu machen. */
.sg-fieldset { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); min-width: 0; }
.sg-fieldset > legend { margin-bottom: var(--space-3); font-size: 13px; line-height: 18px; font-weight: 600; }

.sg-search { display: flex; align-items: center; gap: 10px; min-width: 0; height: var(--sg-h); padding: 0 6px 0 14px; border: 1px solid var(--line-control); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-muted); transition: border-color var(--sg-fast) var(--sg-ease), box-shadow var(--sg-fast) var(--sg-ease); }
.sg-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: var(--sg-input); text-overflow: ellipsis; }
.sg-search input::placeholder { color: var(--ink-subtle); opacity: 1; }
.sg-search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }

/* Checkbox, Radio, Switch: echte Eingabefelder, nur neu gezeichnet */
.sg-check, .sg-radio, .sg-switch { -webkit-appearance: none; appearance: none; flex: none; margin: 0; cursor: pointer; transition: background var(--sg-base) var(--sg-ease), border-color var(--sg-base) var(--sg-ease), box-shadow var(--sg-fast) var(--sg-ease); }
.sg-check, .sg-radio { display: inline-grid; place-content: center; width: 22px; height: 22px; border: 1.5px solid var(--line-control); background: var(--surface); }
.sg-check { border-radius: var(--radius-xs); }
.sg-radio { border-radius: 50%; }
.sg-check::after { content: ""; width: 14px; height: 14px; background: var(--on-control-on); -webkit-mask: var(--sg-i-check) center / contain no-repeat; mask: var(--sg-i-check) center / contain no-repeat; transform: scale(0); transition: transform var(--sg-base) var(--sg-spring); }
.sg-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-control-on); transform: scale(0); transition: transform var(--sg-base) var(--sg-spring); }
.sg-check:checked, .sg-radio:checked { border-color: var(--control-on); background: var(--control-on); }
.sg-check:checked::after, .sg-radio:checked::after { transform: scale(1); }
.sg-switch { position: relative; width: 48px; height: 28px; border-radius: var(--radius-pill); background: var(--line-control); }
.sg-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-raised); transition: transform var(--sg-base) var(--sg-spring), background var(--sg-base) var(--sg-ease); }
.sg-switch:checked { background: var(--control-on); }
.sg-switch:checked::after { transform: translateX(20px); background: var(--on-control-on); }
.sg-check:focus-visible, .sg-radio:focus-visible, .sg-switch:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sg-check:disabled, .sg-radio:disabled, .sg-switch:disabled { opacity: 0.45; cursor: default; }
.sg-choice { display: flex; align-items: flex-start; gap: var(--space-3); min-height: var(--sg-h); padding: 9px 0; cursor: pointer; }
.sg-choice__text { display: grid; gap: 2px; min-width: 0; }
.sg-choice__text small { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.sg-choice--between { justify-content: space-between; align-items: center; }
/* Zeile ohne Feld zwischen Zeilen mit Feld, etwa eine gesperrte Wahl: ihr Text steht in derselben Flucht */
.sg-choice--inset { padding-left: calc(22px + var(--space-3)); }
/* Fehlt eine Auswahl im Paket, ist die ganze Zeile ein Knopf mit dem Zeichen des Pakets: <button class="sg-choice sg-choice--between sg-locked"> */
button.sg-choice { width: 100%; border: 0; background: none; text-align: left; -webkit-appearance: none; appearance: none; }

/* Segment: Wahl aus wenigen Werten */
.sg-seg { display: inline-flex; gap: 2px; max-width: 100%; padding: 4px; border-radius: var(--radius-pill); background: var(--ground-sunken); box-shadow: inset 0 0 0 1px var(--line); }
.sg-seg__item { position: relative; flex: 1; }
.sg-seg__item input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sg-seg__item > span, a.sg-seg__item { display: flex; align-items: center; justify-content: center; gap: 6px; height: calc(var(--sg-h) - 8px); padding: 0 16px; border-radius: var(--radius-pill); color: var(--ink-muted); font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background var(--sg-base) var(--sg-ease), color var(--sg-base) var(--sg-ease); }
.sg-seg__item:hover > span, a.sg-seg__item:hover { color: var(--ink); }
.sg-seg__item input:checked + span, a.sg-seg__item[aria-current] { background: var(--primary); color: var(--on-primary); }
.sg-seg__item input:focus-visible + span { box-shadow: var(--focus-ring); }
.sg-seg--block { display: flex; }
/* Vier Werte mit längeren Wörtern, etwa die Laufzeit einer Karte (SG-D30): Reicht die Breite nicht für eine Zeile, stehen sie zwei und zwei.
   Der Umbruch hängt an der eigenen Breite: Unter 400 px innen ist die Basis fast die Hälfte, darüber 0. */
.sg-seg--wrap { display: flex; flex-wrap: wrap; border-radius: calc(var(--sg-h) / 2); }
.sg-seg--wrap > .sg-seg__item { flex: 1 1 clamp(0px, (400px - 100%) * 999, 50% - 4px); }
/* Zur Seite rollen: für die Leiste der Sprachen, wenn mehr Werte da sind, als nebeneinander passen. Wo etwas verborgen ist, läuft der Rand weich aus.
   Den weichen Rand steuert die Rollposition (Scroll-Zeitleiste). Ohne sie rollt die Leiste ebenso, nur mit hartem Rand. */
.sg-seg--scroll { overflow-x: auto; overscroll-behavior-x: contain; scroll-padding-inline: var(--space-8); scrollbar-width: none; }
.sg-seg--scroll::-webkit-scrollbar { display: none; }
.sg-seg--scroll > .sg-seg__item { flex: none; }
@supports (animation-timeline: scroll()) {
  .sg-seg--scroll { -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--sg-seg-l), #000 calc(100% - var(--sg-seg-r)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--sg-seg-l), #000 calc(100% - var(--sg-seg-r)), transparent); animation: sg-seg-edge linear both; animation-timeline: scroll(self inline); }
}
@keyframes sg-seg-edge { 0% { --sg-seg-l: 0px; --sg-seg-r: 32px; } 10% { --sg-seg-l: 32px; } 90% { --sg-seg-r: 32px; } 100% { --sg-seg-l: 32px; --sg-seg-r: 0px; } }

/* Chip: Filter, Schalter, Zutat */
.sg-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sg-chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--space-4) * -1); padding-inline: var(--space-4); }
.sg-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: var(--fill); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background var(--sg-fast) var(--sg-ease), color var(--sg-fast) var(--sg-ease), box-shadow var(--sg-fast) var(--sg-ease); }
@media (pointer: coarse) { .sg-chip { height: 40px; } }
.sg-chip:hover { background: var(--fill-strong); }
.sg-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sg-chip:has(input:checked), .sg-chip[aria-pressed="true"], .sg-chip[aria-current] { background: var(--primary); color: var(--on-primary); }
.sg-chip:has(input:focus-visible), .sg-chip:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sg-chip__n { font-weight: 500; opacity: 0.72; font-variant-numeric: tabular-nums; }
.sg-chip__code { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: -6px; border-radius: 50%; background: var(--fill-strong); font-family: var(--font-mono); font-size: 11px; font-weight: 500; }
.sg-chip:has(input:checked) .sg-chip__code, .sg-chip[aria-pressed="true"] .sg-chip__code { background: var(--on-primary); color: var(--primary); }
/* Vorschlag der KI am Chip (sg-chip--suggest): siehe Abschnitt 13 */
.sg-chip--tag { padding-right: 4px; cursor: default; }
.sg-chip__x { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 2px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-muted); cursor: pointer; }
.sg-chip__x:hover { background: var(--fill-strong); color: var(--ink); }
.sg-chip--day { width: 40px; height: 40px; padding: 0; justify-content: center; }
.sg-taginput { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: var(--sg-h); padding: 5px 6px; border: 1px solid var(--line-control); border-radius: var(--radius-md); background: var(--surface); }
.sg-taginput:focus-within { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.sg-taginput input { flex: 1; min-width: 120px; height: 32px; padding: 0 8px; border: 0; outline: 0; background: none; font-size: var(--sg-input); }
.sg-taginput .sg-chip { height: 32px; }

/* Anzahl: Zahl mit Minus und Plus */
.sg-qty { display: inline-flex; align-items: center; justify-self: start; height: var(--sg-h); border: 1px solid var(--line-control); border-radius: var(--radius-pill); background: var(--surface); transition: border-color var(--sg-fast) var(--sg-ease), box-shadow var(--sg-fast) var(--sg-ease); }
.sg-qty input { width: 56px; height: 100%; padding: 0; border: 0; outline: 0; background: none; text-align: center; font-size: var(--sg-input); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.sg-qty input::-webkit-outer-spin-button, .sg-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sg-qty button { display: grid; place-items: center; width: var(--sg-h); height: 100%; padding: 0; border: 0; border-radius: var(--radius-pill); background: none; color: var(--ink); cursor: pointer; }
.sg-qty button:hover { background: var(--fill); }
.sg-qty:focus-within { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }

/* Preiszeile: Ausschank · Menge · Preis · entfernen */
.sg-pricerow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) var(--sg-h); gap: var(--space-2); align-items: center; }
.sg-pricerow + .sg-pricerow { margin-top: var(--space-2); }
.sg-pricerow--head { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-muted); }

/* Farbwahl */
.sg-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sg-swatch { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow var(--sg-base) var(--sg-ease); }
.sg-swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sg-swatch:has(input:checked) { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.sg-swatch:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--focus), 0 0 0 7px var(--surface); }
/* Kleine Farbwahl (sg-swatches--sm): die Farbvarianten einer Vorlage in der Galerie, 28 px. Mit dem Finger reicht die Fläche zum Tippen 8 px
   über das Feld hinaus. sg-swatch--duo zeigt zwei Farben einer Variante in einem Feld, hart geteilt: --sw und --sw2. */
.sg-swatches--sm { gap: var(--space-2); }
.sg-swatches--sm > .sg-swatch { width: 28px; height: 28px; }
.sg-swatches--sm > .sg-swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.sg-swatches--sm > .sg-swatch:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus), 0 0 0 6px var(--surface); }
.sg-swatch--duo { background: linear-gradient(135deg, var(--sw) 0 50%, var(--sw2, var(--sw)) 50% 100%); }
@media (pointer: coarse) {
  .sg-swatches--sm { gap: var(--space-4); }
  .sg-swatches--sm > .sg-swatch input { inset: -8px; }
}
/* Vorlage in der Galerie (sg-template, SG-D41): eine Familie mit ihren Farbvarianten, nicht eine Kachel je Farbe. Oben die Vorschau, dann Name
   und Paket, eine Zeile zur Art, die Farbvarianten als kleine Farbwahl, unten Stand und Weg. Der Name ist der Link zur Seite der Vorlage und
   macht die ganze Kachel klickbar; Farbwahl und Knopf liegen darüber. Die Standardvorlage trägt das Wort und den Rand der gewählten Karte.
   Die Farben in der Vorschau kommen aus der Vorlage, nicht aus diesem System. */
.sg-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--sg-min, 250px), 100%), 1fr)); gap: var(--space-4); }
.sg-template { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-3); min-width: 0; padding: var(--space-3); border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-control); transition: box-shadow var(--sg-base) var(--sg-ease); }
.sg-template:hover { box-shadow: inset 0 0 0 1px var(--ink-subtle); }
.sg-template--standard, .sg-template--standard:hover { box-shadow: inset 0 0 0 2px var(--control-on); }
.sg-template:has(.sg-template__name > a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.sg-template__preview { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); background: var(--ground-sunken); overflow: hidden; }
.sg-template__preview > img { width: 100%; height: 100%; object-fit: cover; }
.sg-template__body { display: grid; align-content: start; gap: var(--space-2); min-width: 0; padding: 0 var(--space-1); }
.sg-template__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
.sg-template__name { margin: 0; font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; }
.sg-template__name > a { color: inherit; text-decoration: none; }
.sg-template__name > a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sg-template__name > a:focus-visible { outline: none; }
.sg-template__meta { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sg-template__variants { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); min-width: 0; font-size: 13px; line-height: 18px; font-weight: 500; }
.sg-template__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 0 var(--space-1) var(--space-1); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sg-template__foot > .sg-btn { position: relative; z-index: 1; }

/* Auswahlkarte: Vorlage, Kanal, Einstieg */
.sg-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--sg-min, 168px), 100%), 1fr)); gap: var(--space-3); }
.sg-option { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-control); cursor: pointer; transition: box-shadow var(--sg-base) var(--sg-ease), background var(--sg-base) var(--sg-ease); }
.sg-option input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sg-option:hover { box-shadow: inset 0 0 0 1px var(--ink-subtle); }
.sg-option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--control-on); }
.sg-option:has(input:focus-visible) { box-shadow: inset 0 0 0 2px var(--control-on), var(--focus-ring); }
.sg-option__thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); background: var(--ground-sunken); color: var(--ink-muted); overflow: hidden; }
.sg-option__body { display: grid; gap: 2px; padding: 0 var(--space-1) var(--space-1); }
.sg-option__title { font-weight: 600; }
.sg-option__meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sg-option__mark { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--control-on); color: var(--on-control-on); transform: scale(0); transition: transform var(--sg-base) var(--sg-spring); }
.sg-option:has(input:checked) .sg-option__mark { transform: scale(1); }
.sg-option--row { flex-direction: row; align-items: center; padding: var(--space-3) var(--space-4); }
.sg-option--row .sg-option__body { flex: 1; padding: 0; }
.sg-option--row .sg-option__mark { position: static; }
/* Auswahlkarte als Auskunft: ein einzelner Treffer ohne Wahl. Kein Feld darin, kein Zeiger, kein Wechsel beim Zeigen.
   Die Antwort geben die Knöpfe darunter (Onboarding, „Ist das dein Betrieb?“). */
.sg-option--static { cursor: default; }
.sg-option--static:hover { box-shadow: inset 0 0 0 1px var(--line-control); }

/* Datei ablegen */
.sg-drop { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-6); border: 1.5px dashed var(--line-control); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink-muted); text-align: center; transition: border-color var(--sg-base) var(--sg-ease), background var(--sg-base) var(--sg-ease); }
.sg-drop:hover, .sg-drop--over { border-color: var(--ink); background: var(--limette-soft); color: var(--ink); }
.sg-file { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2); padding-right: var(--space-1); border-radius: var(--radius-md); background: var(--fill); }
.sg-file__thumb { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-muted); overflow: hidden; }

/* ============ 6 Navigation und Aufbau der App ============ */

.sg-app { container: sg-app / inline-size; position: relative; height: 100dvh; overflow: hidden; isolation: isolate; background: var(--ground); }
.sg-app__main { position: absolute; inset: 0; overflow: auto; padding: 88px var(--space-4) 108px; scroll-padding: 88px 0 108px; }
/* Eine Spalte, die nie breiter wird als ihr Platz: minmax(0, 1fr). Ohne das macht ein langer Inhalt ohne Umbruch (eine Adresse,
   eine breite Zeile) die ganze Seite breiter, und Kopf und Listen ragen am Telefon über den Rand. */
.sg-app__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); max-width: var(--content); margin-inline: auto; }
/* Topbar (SG-D8, SG-D10): die eine Leiste oben. Links der Rückweg „‹ <Elternseite>“ und der Titel der Seite, rechts „Suchen“, Hilfe,
   Meldungen, Person. Ist der Kopf einer Übersicht oder Liste weggescrollt, nimmt sie ab 1024 px auch Symbol und Hauptaktion auf.
   Alle Knöpfe sind 48 px hoch, mit Maus wie mit Finger: Die Leiste ist der feste Halt und wird am Tablet mit dem Finger bedient.
   Sie sitzen 4 px vom Rand der 56 px hohen Leiste, so liegt ihre Rundung in der Rundung der Leiste.
   Das Wort eines Knopfes steht in sg-topbar__word; wo der Platz fehlt, nimmt das Stylesheet es weg, der Knopf wird rund und behält sein aria-label. */
.sg-topbar { position: absolute; z-index: var(--z-bar); top: var(--space-3); left: var(--space-3); right: var(--space-3); display: flex; align-items: center; gap: var(--space-1); height: 56px; padding: 0 var(--space-1); border-radius: var(--radius-pill); }
.sg-topbar .sg-btn { flex: none; height: 48px; }
.sg-topbar .sg-btn--icon { width: 48px; }
/* Zahl an einem Icon-Knopf, etwa ungelesene Meldungen: klein an der oberen Ecke, mit einem Rand in der Farbe der Leiste */
.sg-topbar .sg-btn--icon > .sg-count { position: absolute; top: var(--space-1); right: var(--space-1); min-width: 18px; height: 18px; padding: 0 var(--space-1); font-size: 11px; box-shadow: 0 0 0 2px var(--sg-bar, var(--surface-raised)); }
.sg-topbar__back { gap: var(--space-1); padding: 0 var(--space-3) 0 var(--space-2); }
/* Zeilenhöhe 1.5: Das Wort wird beim Kürzen beschnitten, Unterlängen und Umlautpunkte brauchen dafür Platz im Kasten */
.sg-topbar__word { min-width: 0; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; }
.sg-topbar__back > .sg-topbar__word { max-width: 236px; }
.sg-topbar__title { flex: 1; min-width: 0; margin: 0; padding-left: var(--space-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-topbar__back + .sg-topbar__title, .sg-topbar__back + .sg-topbar__symbol + .sg-topbar__title { padding-left: 0; }
.sg-topbar__symbol, .sg-topbar__action { display: none; }
.sg-topbar__search { margin-left: auto; }
.sg-topbar__person { padding: 0; }
/* Unter 1024 px: Rückweg, Suchen und Hilfe ohne Wort. Die Person steht dann nur unter „Mehr“ (SG-D8).
   Symbol und Hauptaktion bleiben verborgen: Die Hauptaktion schwebt neben dem Dock. */
@container sg-app (max-width: 1023px) {
  .sg-topbar__word, .sg-topbar .sg-btn > .sg-kbd, .sg-topbar__person { display: none; }
  .sg-topbar .sg-btn:has(> .sg-topbar__word) { width: 48px; padding: 0; }
}
.sg-dockbar { position: absolute; z-index: var(--z-bar); left: var(--space-3); right: var(--space-3); bottom: var(--space-3); display: flex; align-items: center; gap: var(--space-2); }
.sg-dock { flex: 1; display: flex; align-items: center; justify-content: space-between; height: var(--dock); padding: 0 var(--space-2); border-radius: var(--radius-pill); }
.sg-dock__item { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 48px; min-width: 44px; padding: 0 12px; border-radius: var(--radius-pill); color: var(--ink-muted); font-size: 13px; font-weight: 600; text-decoration: none; transition: background var(--sg-base) var(--sg-ease), color var(--sg-base) var(--sg-ease); }
.sg-dock__item > span:not(.sg-icon) { display: none; }
.sg-dock__item[aria-current="page"] { background: var(--fill-strong); color: var(--ink); }
.sg-dock__item[aria-current="page"] > span:not(.sg-icon) { display: inline; }
.sg-dock__item:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sg-dockbar .sg-btn--fab { width: var(--dock); height: var(--dock); padding: 0; }
.sg-sidebar { display: none; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.sg-sidebar__brand { display: flex; align-items: center; height: 40px; padding: 0 var(--space-2); margin-bottom: var(--space-3); }
.sg-sidebar__label { margin-top: var(--space-4); padding: 0 var(--space-3) var(--space-1); }
.sg-sidebar__foot { margin-top: auto; display: grid; gap: var(--space-2); }
.sg-nav { display: grid; gap: 2px; }
.sg-nav__item { position: relative; display: flex; align-items: center; gap: var(--space-3); height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-sm); color: var(--ink-muted); font-weight: 500; text-decoration: none; transition: background var(--sg-fast) var(--sg-ease), color var(--sg-fast) var(--sg-ease); }
.sg-nav__item:hover { background: var(--fill); color: var(--ink); }
.sg-nav__item[aria-current="page"] { background: var(--fill-strong); color: var(--ink); font-weight: 600; }
.sg-nav__item[aria-current="page"]::before { content: ""; position: absolute; left: -8px; top: 10px; bottom: 10px; width: 4px; border-radius: var(--radius-pill); background: var(--control-on); }
.sg-nav__item:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sg-nav__item .sg-count { margin-left: auto; }
.sg-nav__item:has(.sg-symbol) { height: 44px; padding-left: var(--space-2); }
.sg-workspace { display: flex; align-items: center; gap: 10px; width: 100%; padding: var(--space-2); border: 0; border-radius: var(--radius-md); background: var(--fill); color: var(--ink); text-align: left; cursor: pointer; }
.sg-workspace:hover { background: var(--fill-strong); }
.sg-workspace__body { flex: 1; min-width: 0; display: grid; }
.sg-workspace__body small { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
@container sg-app (min-width: 1024px) {
  .sg-sidebar { position: absolute; z-index: var(--z-bar); top: var(--space-3); bottom: var(--space-3); left: var(--space-3); display: flex; flex-direction: column; gap: var(--space-1); width: var(--sidebar); padding: var(--space-4) var(--space-3) var(--space-3); border-radius: var(--radius-xl); overflow: auto; }
  .sg-app__main { left: calc(var(--sidebar) + var(--space-3)); padding: 96px var(--space-8) var(--space-12); scroll-padding: 96px 0 var(--space-12); }
  .sg-topbar { left: calc(var(--sidebar) + var(--space-3) + var(--space-8)); right: var(--space-8); }
  .sg-dockbar { display: none; }
  /* Ist der große Titel der Seite weggescrollt, setzt die App sg-topbar--scrolled auf die Topbar: Dann steht der Titel oben.
     Der Platz geht zuerst an den Titel. Der Rückweg wächst erst danach über 120 px hinaus, bis er ganz dasteht.
     Gekürzt wird der Titel also erst, wenn der Rückweg schon auf 120 px steht, und er behält mindestens 120 px. */
  .sg-topbar__title { display: none; }
  .sg-topbar--scrolled .sg-topbar__title { display: block; flex: 0 1 auto; min-width: 120px; animation: sg-fade 240ms var(--sg-ease) backwards; }
  .sg-topbar--scrolled .sg-topbar__back { flex: 1 0 120px; min-width: 0; max-width: max-content; }
  .sg-topbar__back + .sg-topbar__title, .sg-topbar__back + .sg-topbar__symbol + .sg-topbar__title { margin-left: var(--space-1); padding-left: var(--space-3); border-left: 1px solid var(--line); }
  /* Gemeinsame Leiste (SG-D10): Auf Übersichten und Listen trägt die Topbar auch das Symbol (sg-topbar__symbol) und die Hauptaktion
     (sg-topbar__action) der Seite. Beide zeigen sich erst, wenn der volle Kopf weggescrollt ist. Die Hauptaktion steht vor „Suchen“
     und ist höchstens 200 px breit; ihr Wort steht in sg-topbar__word und endet notfalls mit „…“. */
  .sg-topbar--scrolled .sg-topbar__symbol { display: inline-grid; margin-left: var(--space-2); animation: sg-fade 240ms var(--sg-ease) backwards; }
  .sg-topbar__symbol + .sg-topbar__title { padding-left: var(--space-2); }
  .sg-topbar--scrolled .sg-topbar__action { display: inline-flex; max-width: 200px; margin: 0 var(--space-1) 0 auto; animation: sg-fade 240ms var(--sg-ease) backwards; }
  .sg-topbar--scrolled > .sg-topbar__action ~ .sg-topbar__search { margin-left: 0; }
  /* Bereichsübersicht (sg-topbar--field mit der Farbklasse des Bereichs): Die eingeklappte Leiste trägt die Farbe des Bereichs.
     Die App setzt ihr solange data-theme="light", wie auf jedem vollen Farbfeld. Der Wechsel läuft einmal, 240 ms. */
  .sg-topbar { transition: background-color 240ms var(--sg-ease), color 240ms var(--sg-ease); }
  .sg-topbar--scrolled.sg-topbar--field { --sg-bar: var(--sg-c); background: var(--sg-c); color: var(--on-farbe); }
  .sg-topbar--scrolled.sg-topbar--field .sg-btn--ghost:hover { background: var(--fill-strong); }
  .sg-topbar--scrolled.sg-topbar--field .sg-kbd { color: inherit; }
  .sg-topbar--scrolled.sg-topbar--field .sg-topbar__title { border-left-color: var(--line-control); }
}
/* Eingeklappt mit Hauptaktion zwischen 1024 und 1359 px: Der Platz reicht nicht für alles, der Titel hat Vorrang.
   Alles rechts von der Hauptaktion steht nur als Icon (das aria-label bleibt), und neben einem Rückweg entfällt das Symbol. */
@container sg-app (min-width: 1024px) and (max-width: 1359px) {
  .sg-topbar--scrolled > .sg-topbar__action ~ .sg-btn > .sg-topbar__word, .sg-topbar--scrolled > .sg-topbar__action ~ .sg-btn > .sg-kbd { display: none; }
  .sg-topbar--scrolled > .sg-topbar__action ~ .sg-btn:has(> .sg-topbar__word) { width: 48px; padding: 0; }
  .sg-topbar--scrolled .sg-topbar__back + .sg-topbar__symbol { display: none; }
}
/* Ab 1360 px reicht der Platz für die Wörter. Das Symbol steht dann auch neben dem Rückweg; der Trennstrich sitzt vor dem Symbol statt vor dem Titel */
@container sg-app (min-width: 1360px) {
  .sg-topbar--scrolled .sg-topbar__back + .sg-topbar__symbol { position: relative; margin-left: calc(var(--space-4) + 1px); }
  .sg-topbar--scrolled .sg-topbar__back + .sg-topbar__symbol::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: calc(var(--space-3) * -1 - 1px); width: 1px; background: var(--line); }
  .sg-topbar--scrolled.sg-topbar--field .sg-topbar__back + .sg-topbar__symbol::before { background: var(--line-control); }
  .sg-topbar--scrolled .sg-topbar__back + .sg-topbar__symbol + .sg-topbar__title { margin-left: 0; padding-left: var(--space-2); border-left: 0; }
}
.sg-pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.sg-pagehead__text { display: grid; gap: var(--space-1); min-width: 0; }
.sg-pagehead__text > :is(h1, h2, h3) { overflow-wrap: anywhere; hyphens: auto; }
/* Kopf einer Übersicht als Farbfeld in der Farbe des Bereichs. Das volle Feld trägt data-theme="light". */
.sg-pagehead--field { align-items: center; padding: var(--space-5) var(--space-6); border-radius: var(--radius-xl); background: var(--sg-c); color: var(--on-farbe); }
.sg-pagehead--field .sg-overline, .sg-pagehead--field .sg-muted { color: inherit; }
.sg-pagehead--soft { background: var(--sg-c-soft); color: var(--ink); }
.sg-pagehead--soft .sg-muted { color: var(--ink-muted); }
.sg-pagehead__lead { display: flex; align-items: center; gap: var(--space-4); min-width: 0; }
.sg-section { display: grid; gap: var(--space-3); }
.sg-section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); min-height: 32px; }
/* Knopf im Kopf eines Abschnitts („Angebot anlegen“ an der Liste der Angebote, SG-D16): steht rechts, auch wenn er bei wenig Platz unter den Titel rückt. */
.sg-section__head > .sg-btn { flex: none; margin-left: auto; }
/* Zahl in der Überschrift eines Abschnitts („Zu erledigen 2“): sitzt auf der Mitte der Schrift, mit etwas Luft davor. */
.sg-section__head :is(h2, h3, h4) > .sg-count, .sg-tasks__head :is(h2, h3, h4) > .sg-count, .sg-checklist__head :is(h2, h3, h4) > .sg-count { margin-left: 2px; vertical-align: 2px; }
/* Marker in der Überschrift eines Abschnitts, etwa „Gesetzlich“ an „Pflichtangaben“ (SG-D25). */
:is(.sg-card__head, .sg-section__head) :is(h2, h3, h4) > .sg-badge { margin-left: var(--space-1); vertical-align: 2px; }

.sg-avatar { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--fill-strong); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; overflow: hidden; }
.sg-avatar--square { border-radius: var(--radius-sm); background: var(--primary); color: var(--on-primary); }
.sg-avatar--lg { width: 40px; height: 40px; font-size: 14px; }

.sg-tabs { display: flex; gap: var(--space-1); overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 -1px 0 var(--line); }
.sg-tab { position: relative; display: inline-flex; align-items: center; gap: var(--space-2); flex: none; height: 44px; padding: 0 14px; color: var(--ink-muted); font-weight: 600; white-space: nowrap; text-decoration: none; transition: color var(--sg-fast) var(--sg-ease); }
.sg-tab:hover { color: var(--ink); }
.sg-tab[aria-current], .sg-tab[aria-selected="true"] { color: var(--ink); }
.sg-tab[aria-current]::after, .sg-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--control-on); }
.sg-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--radius-sm); }

/* Aktionsleiste (SG-D12): links der Stand, rechts höchstens drei Knöpfe mit Wort, davor bei Bedarf das Menü „⋯“.
   Reicht der Platz nicht für Stand und Knöpfe in einer Zeile, rückt der Stand in eine eigene Zeile darüber, und die Knöpfe
   stehen rechtsbündig darunter. Passen auch die Knöpfe nicht in eine Zeile, füllt sich die Leiste von unten rechts:
   Die Hauptaktion bleibt unten rechts, was davor steht, rückt in die Zeile darüber. Das misst die Leiste an ihrem eigenen Platz
   und an der Länge der Wörter, nicht an der Breite der App. Deshalb gilt es am Telefon wie in einer schmalen Spalte.
   So geht es ohne Hülle um die Knöpfe: Die Leiste legt ihre Kinder von rechts nach links und füllt die Zeilen von unten
   (row-reverse, wrap-reverse); order dreht die Reihenfolge der Kinder dazu um. Zu sehen ist deshalb immer die Reihenfolge
   des Markups, von links nach rechts und von oben nach unten, und der Fokus läuft genauso.
   Radius 32 px ist die halbe Mindesthöhe: einzeilig eine Pille, umgebrochen ein Feld mit runden Ecken.
   Den Einzug links trägt der Stand selbst: So haben die Zeilen der Knöpfe die ganze Breite der Leiste. */
.sg-actionbar { position: sticky; z-index: var(--z-bar); bottom: var(--space-3); display: flex; flex-flow: row-reverse wrap-reverse; align-items: center; gap: var(--space-2); min-height: 64px; padding: var(--space-2); border-radius: 32px; }
.sg-actionbar > :nth-last-child(1) { order: 1; }
.sg-actionbar > :nth-last-child(2) { order: 2; }
.sg-actionbar > :nth-last-child(3) { order: 3; }
.sg-actionbar > :nth-last-child(4) { order: 4; }
.sg-actionbar > :nth-last-child(5) { order: 5; }
.sg-actionbar > :nth-last-child(n+6) { order: 6; }
.sg-actionbar > .sg-btn, .sg-actionbar > .sg-more { flex: none; }
/* Der Stand kommt zuletzt an die Reihe und bekommt, was übrig ist. Unter 360 px wäre er zu eng (mehr als zwei Zeilen):
   Dann steht er in eigener Zeile */
.sg-actionbar > .sg-actionbar__text { order: 9; flex: 1 1 360px; min-width: 0; padding-left: var(--space-3); }
.sg-actionbar__text { display: grid; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sg-actionbar__text strong { font-size: 15px; line-height: 22px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sg-more { position: relative; display: inline-block; }
.sg-more > summary { list-style: none; }
.sg-more > summary::-webkit-details-marker { display: none; }
.sg-more > .sg-menu { position: absolute; z-index: var(--z-dialog); top: calc(100% + 6px); right: 0; animation: sg-pop var(--sg-base) var(--sg-ease); }
.sg-more--up > .sg-menu { top: auto; bottom: calc(100% + 6px); }
.sg-menu { display: grid; gap: 2px; min-width: 232px; padding: 6px; border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: 0 0 0 1px var(--line), var(--shadow-float); }
.sg-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink); font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; }
.sg-menu__item:hover, .sg-menu__item:focus-visible { outline: none; background: var(--fill); }
.sg-menu__item .sg-icon { color: var(--ink-muted); }
.sg-menu__item .sg-kbd { margin-left: auto; }
.sg-menu__item--danger, .sg-menu__item--danger .sg-icon { color: var(--danger); }
.sg-menu__sep { height: 1px; margin: 4px 6px; background: var(--line); }
.sg-menu__label { padding: 8px 10px 4px; }
@keyframes sg-pop { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }

/* ============ 7 Inhalt ============ */

.sg-list { border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
/* Zeile: Vorspann, Name mit Unterzeile, rechte Spalte. Der Name behält 40 % der Zeile. Die rechte Spalte nimmt, was sie braucht.
   Reicht der Platz daneben nicht, bricht sie rechtsbündig in Zeilen um. Schmaler als ihr breitestes Stück wird sie nie:
   Preis, Stand, Marker und Zeichen bleiben ganz. Passt selbst das breiteste Stück nicht neben den Namen, rückt die rechte
   Spalte rechtsbündig unter ihn, und der Name bekommt die ganze Zeile. Der Pfeil steht fest am rechten Rand, mittig zur
   Zeile, in einer eigenen Spalte: So rutscht er beim Umbruch nie allein in eine Zeile. */
.sg-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); min-height: 60px; padding: 10px var(--space-4); color: inherit; text-decoration: none; }
.sg-row:has(> .sg-row__trail > .sg-icon--chevron-right:last-child) { padding-right: calc(var(--space-4) + var(--space-6)); }
.sg-row + .sg-row::before { content: ""; position: absolute; top: 0; left: var(--space-4); right: 0; height: 1px; background: var(--line); }
a.sg-row, .sg-row--action { cursor: pointer; transition: background var(--sg-fast) var(--sg-ease); }
a.sg-row:hover, .sg-row--action:hover { background: var(--fill); }
a.sg-row:focus-visible, .sg-row--action:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--focus); }
button.sg-row { width: 100%; border: 0; background: none; text-align: left; }
/* Der Vorspann ist mindestens 32 px breit: Avatar (32 px) und kleines Symbol (28 px) stehen auf einer Achse, der Text beginnt an einer Kante. */
.sg-row__lead { display: grid; place-items: center; flex: none; min-width: 32px; color: var(--ink-muted); }
.sg-row__body { flex: 1 1 40%; min-width: 0; display: grid; gap: 1px; }
.sg-row__title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-row__meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-row__trail { display: flex; flex: 999 1 min-content; max-width: max-content; margin-left: auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-1) var(--space-2); color: var(--ink-muted); text-align: right; }
.sg-row__trail > .sg-icon--chevron-right:last-child { position: absolute; top: 0; bottom: 0; right: var(--space-4); margin: auto 0; }
.sg-row--selected { background: var(--limette-soft); }
/* Zeile mit ganzem Satz: Titel und Zeile darunter brechen um. Der Text behält 60 % der Zeile; was rechts steht, bleibt ganz und rückt eher darunter. */
.sg-row--wrap .sg-row__title, .sg-row--wrap .sg-row__meta { overflow: visible; text-overflow: clip; white-space: normal; text-wrap: pretty; }
.sg-row--wrap .sg-row__body { flex-basis: 60%; }
.sg-row--wrap .sg-row__trail { white-space: nowrap; }
/* Stand rechts in der Zeile (SG-D25, „Verwendet in“): oben der Status mit seinem Zusatz („Live“, „Version 3“), darunter ein zweiter Satz („Entwurf 4 in Arbeit“). */
.sg-row__state { display: grid; justify-items: end; gap: 2px; min-width: 0; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); text-align: right; }
.sg-row__state > :first-child { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.sg-row__state > :not(:first-child) { white-space: normal; overflow-wrap: anywhere; text-wrap: pretty; }
/* Liste in einer Karte (sg-list--plain): ohne eigenen Rahmen und ohne eigene Fläche, damit nicht Rahmen in Rahmen steht.
   Der Text der Zeilen steht an der Kante der Karte, Haarlinien trennen die Zeilen. Die Fläche beim Zeigen reicht etwas über den Text hinaus. */
.sg-list--plain { margin-block: calc(-1 * var(--space-2)); border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.sg-list--plain > .sg-row { margin-inline: calc(-1 * var(--space-3)); padding-inline: var(--space-3); border-radius: var(--radius-sm); }
.sg-list--plain > .sg-row:has(> .sg-row__trail > .sg-icon--chevron-right:last-child) { padding-right: calc(var(--space-3) + var(--space-6)); }
.sg-list--plain > .sg-row > .sg-row__trail > .sg-icon--chevron-right:last-child { right: var(--space-3); }
.sg-list--plain > .sg-row + .sg-row::before { left: var(--space-3); right: var(--space-3); }
.sg-list--plain > .sg-row > .sg-row__lead { justify-items: start; }
/* Liste mit Stand je Zeile (sg-list--state, „Verwendet in“): Die Liste misst ihre eigene Breite. Ab 560 px steht der Stand rechts.
   Darunter rückt er linksbündig unter den Namen, auf die Achse des Textes: vorn der Status, dahinter die Zusätze in einer Zeile,
   mit „·“ getrennt. Am Anfang einer Zeile steht nie ein Trenner: Er liegt links vom Zusatz in einem Streifen, den die Liste abschneidet. */
.sg-list--state { container: sg-liststate / inline-size; }
@container sg-liststate (max-width: 559px) {
  .sg-list--state > .sg-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 0; }
  .sg-list--state > .sg-row > :not(.sg-row__body, .sg-row__trail) { grid-column: 1; grid-row: 1; margin-right: var(--space-3); }
  .sg-list--state > .sg-row > .sg-row__body { grid-column: 2; grid-row: 1; }
  .sg-list--state > .sg-row > .sg-row__trail { grid-column: 2; grid-row: 2; max-width: none; margin-left: 0; justify-content: flex-start; text-align: left; white-space: normal; }
  .sg-list--state .sg-row__state { --sg-sep: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin-left: calc(-1 * var(--sg-sep)); clip-path: inset(0 0 0 var(--sg-sep)); text-align: left; }
  .sg-list--state .sg-row__state > * { position: relative; padding-left: var(--sg-sep); white-space: nowrap; }
  .sg-list--state .sg-row__state > :not(:first-child)::before { content: "·"; position: absolute; left: 0; width: var(--sg-sep); text-align: center; }
}
/* Zeile mit dem Ziel (Aufgaben-Karte): wohin der Punkt führt */
.sg-row__target { display: flex; align-items: flex-start; gap: 6px; margin-top: 2px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); }
.sg-row__target > .sg-icon { flex: none; margin-top: 1px; }
.sg-row--off .sg-row__title, .sg-row--off .sg-price { color: var(--ink-subtle); }
.sg-row--off .sg-row__title { text-decoration: line-through; text-decoration-color: var(--line-control); }
/* Nummer in der Zeile (SG-D26): mit „Nummern führen“ steht vorn ein kleines Feld statt der festen Nummer. Ein Fehler steht darunter in sg-error. */
.sg-nrfield { flex: none; width: 52px; height: var(--sg-h); padding: 0 4px; border: 1px solid var(--line-control); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-family: var(--font-mono); font-size: var(--sg-input); line-height: 22px; text-align: center; font-variant-numeric: tabular-nums; transition: border-color var(--sg-fast) var(--sg-ease), box-shadow var(--sg-fast) var(--sg-ease); }
.sg-nrfield:hover { border-color: var(--ink-subtle); }
.sg-nrfield:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.sg-nrfield[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.sg-row > .sg-error { flex: 1 1 100%; padding-left: calc(52px + var(--space-3)); }
a.sg-row__body { border-radius: var(--radius-xs); text-decoration: none; }
a.sg-row__body:hover .sg-row__title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.sg-nr { display: inline-grid; place-items: center; flex: none; min-width: 30px; height: 30px; padding: 0 6px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1.5px var(--line-control); color: var(--ink); font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.sg-date { display: grid; place-items: center; align-content: center; flex: none; width: 44px; height: 48px; border-radius: var(--radius-sm); background: var(--ground-sunken); color: var(--ink); line-height: 1; }
.sg-date b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sg-date small { margin-top: 3px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.sg-thumb { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--ground-sunken); color: var(--ink-muted); overflow: hidden; }
.sg-grip { flex: none; color: var(--ink-subtle); cursor: grab; }

.sg-table-wrap { border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: auto; }
.sg-table { width: 100%; border-collapse: collapse; text-align: left; }
.sg-table th { padding: 12px var(--space-4); border-bottom: 1px solid var(--line); background: var(--surface); color: var(--ink-subtle); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.sg-table td { padding: 12px var(--space-4); border-bottom: 1px solid var(--line); vertical-align: middle; }
.sg-table tbody tr:last-child td { border-bottom: 0; }
.sg-table tbody tr:hover td { background: var(--fill); }
.sg-table .sg-table__num { text-align: right; font-variant-numeric: tabular-nums; }
.sg-person { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.sg-person__text { display: grid; min-width: 0; }
.sg-person__text small { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
/* Person am Ende einer Zeile oder im Fuß einer Karte (SG-D16, UX-Regel N6a): kleiner Avatar und Vorname. Das Wort davor („zuständig“) steht für Vorleseprogramme in sg-sr. */
.sg-person--sm { display: inline-flex; flex: none; gap: 6px; color: var(--ink-muted); font-size: 13px; line-height: 18px; font-weight: 500; white-space: nowrap; }
.sg-person--sm > .sg-avatar { width: 24px; height: 24px; font-size: 10px; }
/* Am Telefon (App schmaler als 744 px) bleibt nur der Avatar. Der Name steht weiter in sg-sr und im title. */
@container sg-app (max-width: 743px) { .sg-person--sm > .sg-person__name { display: none; } }

.sg-status { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 26px; padding: 0 10px 0 9px; border-radius: var(--radius-pill); background: var(--fill); color: var(--ink); font-size: 13px; line-height: 1; font-weight: 600; white-space: nowrap; }
.sg-status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-subtle); }
.sg-status--review { background: var(--warning-soft); }
.sg-status--review::before { background: var(--warning); }
.sg-status--planned { background: var(--info-soft); }
.sg-status--planned::before { background: var(--info); }
.sg-status--live { background: var(--limette); color: var(--on-farbe); }
.sg-status--live::before { background: var(--on-farbe); }
.sg-status--ended { color: var(--ink-muted); }
.sg-status--ended::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-subtle); }
.sg-status--error { background: var(--danger-soft); }
.sg-status--error::before { background: var(--danger); }

.sg-badge { display: inline-flex; align-items: center; gap: 4px; flex: none; height: 22px; padding: 0 7px; border-radius: var(--radius-xs); background: var(--fill); color: var(--ink-muted); font-size: 12px; line-height: 1; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.sg-badge--new { background: var(--positive-soft); color: var(--positive); }
.sg-badge--changed { background: var(--warning-soft); color: var(--warning); }
.sg-badge--removed { background: var(--danger-soft); color: var(--danger); }
.sg-badge--info { background: var(--info-soft); color: var(--info); }
.sg-badge--ai { background: var(--limette-soft); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--limette-strong) 60%, transparent); }
.sg-badge--ai > .sg-icon { --sg-i: var(--sg-i-sparkle); width: 12px; height: 12px; color: var(--limette-text); }
.sg-count { display: inline-grid; place-items: center; flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--primary); color: var(--on-primary); font-size: 12px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.sg-count--quiet { background: var(--fill-strong); color: var(--ink); }

/* Paket (SG-D11): Alles ist zu sehen. Das Zeichen nennt das Paket: „Free“, „Pro“ oder „Group“. Es ist neutral, weil ein Paket
   kein Stand ist, und bleibt in jedem Zustand in voller Schrift lesbar. */
.sg-plantag { display: inline-grid; place-items: center; flex: none; height: 20px; padding: 0 var(--space-2); border-radius: var(--radius-pill); background: var(--fill-strong); color: var(--ink); font-size: 11px; line-height: 1; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; vertical-align: middle; }
.sg-btn > .sg-plantag:last-child { margin-right: -6px; }
.sg-nav__item .sg-plantag { margin-left: auto; }
/* Hinter dem Namen: das Zeichen des Pakets oder der Marker „Vorschlag der KI“ an einer gefundenen Zeile (AiMoment, Onboarding) */
.sg-option__title > .sg-plantag, .sg-row__title > .sg-plantag, .sg-row__title > .sg-badge { margin-left: var(--space-2); vertical-align: 1px; }
/* Zustand „im Paket nicht enthalten“: ausgegraut, aber bedienbar. Ein Tipp öffnet das Blatt zum Paket. Deshalb nie disabled:
   Schrift in ink-subtle, Symbol und Bild grau, Fläche und Fokus reagieren wie sonst. Die Schrift hält in Ruhe und beim
   Überfahren 4,5:1, weil das Element bedienbar bleibt. */
.sg-locked { color: var(--ink-subtle); }
.sg-locked > .sg-symbol, .sg-locked > .sg-thumb, .sg-locked > .sg-row__lead, .sg-locked > .sg-option__thumb { filter: grayscale(1); opacity: 0.55; }
/* Knopf: deckende Fläche surface mit Haarlinie, in jeder Art. So hält die graue Schrift überall 4,5:1, auch auf einem Farbfeld
   und in einem Hinweis. Beim Überfahren wird die Linie kräftiger, wie bei der Auswahlkarte. */
.sg-btn.sg-locked { background: var(--surface); color: var(--ink-subtle); box-shadow: inset 0 0 0 1px var(--line); }
.sg-btn.sg-locked:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-control); }
.sg-btn.sg-locked:focus-visible { box-shadow: inset 0 0 0 1px var(--line), var(--focus-ring); }
.sg-nav__item.sg-locked, .sg-nav__item.sg-locked:hover { color: var(--ink-subtle); }
.sg-tab.sg-locked { color: var(--ink-subtle); }
.sg-tab.sg-locked:hover { color: var(--ink-muted); }
.sg-row.sg-locked .sg-row__title, .sg-row.sg-locked .sg-row__meta, .sg-row.sg-locked .sg-row__trail { color: var(--ink-subtle); }
.sg-option.sg-locked .sg-option__meta { color: var(--ink-subtle); }
button.sg-option { width: 100%; border: 0; text-align: left; }

.sg-progress { display: block; height: 6px; border-radius: var(--radius-pill); background: var(--fill-strong); overflow: hidden; }
.sg-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--control-on); }

.sg-timeline { display: grid; }
.sg-timeline__item { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--space-3); padding-bottom: var(--space-5); }
.sg-timeline__item:not(:last-child)::before { content: ""; position: absolute; top: 36px; bottom: 4px; left: 15px; width: 2px; border-radius: 1px; background: var(--line); }
.sg-timeline__dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--fill); color: var(--ink-muted); }
.sg-timeline__item--live .sg-timeline__dot { background: var(--limette); color: var(--on-farbe); }
.sg-timeline__body { display: grid; gap: 2px; padding-top: 5px; min-width: 0; }
.sg-timeline__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-weight: 600; }
.sg-timeline__meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); }

.sg-diff { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--space-3); }
.sg-diff__side { display: grid; align-content: start; gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius-md); background: var(--ground-sunken); }
.sg-diff__side--after { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-control); }
.sg-diff del { border-radius: 4px; padding: 1px 4px; background: var(--danger-soft); color: var(--danger); text-decoration: line-through; }
.sg-diff ins { border-radius: 4px; padding: 1px 4px; background: var(--positive-soft); color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--positive); text-underline-offset: 3px; }

.sg-summary { display: grid; gap: 10px; }
.sg-summary__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); color: var(--ink-muted); }
.sg-summary__row > :last-child:not([class*="sg-tone-"]) { color: var(--ink); }
.sg-summary__row > :last-child { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sg-summary__total { padding-top: var(--space-3); border-top: 1px solid var(--line); color: var(--ink); font-size: 17px; line-height: 24px; font-weight: 700; }

/* Angaben: Name und Wert */
.sg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: var(--space-4) var(--space-5); }
.sg-facts > div { display: grid; align-content: start; gap: 2px; min-width: 0; }
.sg-facts dt { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sg-facts dd { font-weight: 600; }

.sg-empty { display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-12) var(--space-6); text-align: center; }
.sg-empty__text { max-width: 36ch; color: var(--ink-muted); }

.sg-accordion { border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.sg-accordion details + details { border-top: 1px solid var(--line); }
.sg-accordion summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 60px; padding: var(--space-4) var(--space-5); font-size: 17px; line-height: 24px; font-weight: 600; cursor: pointer; list-style: none; }
.sg-accordion summary::-webkit-details-marker { display: none; }
.sg-accordion summary::after { content: ""; flex: none; width: 20px; height: 20px; background: var(--ink-muted); -webkit-mask: var(--sg-i-plus) center / contain no-repeat; mask: var(--sg-i-plus) center / contain no-repeat; transition: transform var(--sg-base) var(--sg-ease); }
.sg-accordion details[open] summary::after { transform: rotate(45deg); }
.sg-accordion summary:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--focus); }
.sg-accordion__body { max-width: var(--measure); padding: 0 var(--space-5) var(--space-5); color: var(--ink-muted); }
/* Aufklappen im Text: langer Wortlaut und selten Gebrauchtes, leise in einer Karte oder unter einem Feld.
   Ein <details>, läuft ohne JavaScript. Der Pfeil zeigt nach rechts und dreht sich beim Öffnen nach unten. */
.sg-details > summary { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; border-radius: var(--radius-xs); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.sg-details > summary::-webkit-details-marker { display: none; }
.sg-details > summary::before { content: ""; flex: none; width: 16px; height: 16px; background: var(--ink-muted); -webkit-mask: var(--sg-i-chevron-down) center / contain no-repeat; mask: var(--sg-i-chevron-down) center / contain no-repeat; transform: rotate(-90deg); transition: transform var(--sg-base) var(--sg-ease); }
.sg-details[open] > summary::before { transform: none; }
.sg-details > summary::after { content: ""; position: absolute; inset: -4px 0; }
.sg-details > summary:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.sg-details > summary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sg-details__body { display: grid; gap: var(--space-2); max-width: var(--measure); padding: var(--space-1) 0 var(--space-1) 22px; font-size: 13px; line-height: 20px; color: var(--ink-muted); }

/* Heute live: das, was Gäste gerade sehen, als Feld in Limette oben auf dem Start. Trägt data-theme="light". */
.sg-live { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5) var(--space-8); padding: var(--space-6) var(--space-8); border-radius: var(--radius-xl); background: var(--limette); color: var(--on-farbe); }
.sg-live__text { display: grid; justify-items: start; gap: var(--space-2); min-width: 0; max-width: 34rem; }
.sg-live__label { display: flex; align-items: center; gap: var(--space-2); color: inherit; }
.sg-live__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sg-live--idle { border: 1.5px dashed var(--line-control); background: transparent; color: var(--ink); }

.sg-tone-positive { color: var(--positive); }
.sg-tone-warning { color: var(--warning); }
.sg-tone-danger { color: var(--danger); }
.sg-tone-info { color: var(--info); }

/* Aktion: Karte in der Übersicht, zusammen mit sg-card sg-card--flush. Abgelöst mit SG-D30; bleibt, bis der Prototyp sie nicht mehr nutzt. */
.sg-aktion { display: grid; grid-template-rows: 1fr auto; height: 100%; }
.sg-aktion__main { display: grid; align-content: start; gap: var(--space-3); padding: var(--space-5); }
.sg-aktion__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.sg-aktion__kind { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-muted); }
.sg-aktion__when { display: flex; align-items: flex-start; gap: var(--space-2); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
/* Fuß: links die Kanäle, rechts Preis und Person, zusammen in sg-aktion__end. Passt nicht alles in eine Zeile, rückt das Rechte als Ganzes rechtsbündig darunter. */
.sg-aktion__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-2) var(--space-3); min-height: 56px; padding: var(--space-2) var(--space-5); border-top: 1px solid var(--line); }
.sg-aktion__foot > :first-child { margin-right: auto; }
.sg-aktion__end { display: inline-flex; align-items: center; flex: none; gap: var(--space-3); }
.sg-channels { display: flex; gap: 6px; }
.sg-channel { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--fill); color: var(--ink); }

/* ============ 8 Rückmeldung ============ */

.sg-notice { display: flex; align-items: flex-start; gap: var(--space-3); padding: 14px var(--space-4); border-radius: var(--radius-md); background: var(--info-soft); color: var(--ink); }
.sg-notice > .sg-icon { margin-top: 1px; color: var(--info); }
.sg-notice__body { flex: 1; min-width: 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.sg-notice__title { font-weight: 600; }
.sg-notice--positive { background: var(--positive-soft); }
.sg-notice--positive > .sg-icon { color: var(--positive); }
.sg-notice--warning { background: var(--warning-soft); }
.sg-notice--warning > .sg-icon { color: var(--warning); }
.sg-notice--danger { background: var(--danger-soft); }
.sg-notice--danger > .sg-icon { color: var(--danger); }
.sg-notice--neutral { background: var(--fill); }
.sg-notice--neutral > .sg-icon { color: var(--ink-muted); }

/* Lage: ein Satz zum Stand über der Liste, mit dem nächsten Schritt */
.sg-banner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4); border-radius: var(--radius-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.sg-banner__text { flex: 1; min-width: 200px; padding: 6px 0; }
/* Band (SG-D26): die Lage als Zustand der ganzen Seite, etwa „Nur lesen“ an einer früheren Version. Im Ton des Hinweises, mit einem Icon statt des Status. */
.sg-banner--info { background: var(--info-soft); box-shadow: none; }
.sg-banner > .sg-icon { color: var(--info); }
/* Aufgaben-Karte (SG-D15): offene Punkte, die an eine andere Stelle der App führen. Eigene Fläche im Ton des Hinweises, darin der Kopf und eine Liste.
   Radius: Liste (radius-lg) plus Abstand (space-2) ergibt radius-xl. */
.sg-tasks { display: grid; gap: var(--space-1); padding: var(--space-2); border-radius: var(--radius-xl); background: var(--warning-soft); }
.sg-tasks__head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px var(--space-2); padding: var(--space-2) var(--space-3) var(--space-3); }
.sg-tasks__head > .sg-icon { color: var(--warning); }
.sg-tasks__head > p { grid-column: 2; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
/* Das Symbol der Zeile trägt in der Karte den Ton des Hinweises. */
.sg-tasks .sg-symbol:not([class*="sg-c-"]) { --sg-c-soft: var(--warning-soft); --sg-c-text: var(--warning); }
/* Die ganze Zeile führt hin: Die Fläche des Buttons deckt die Zeile, es bleibt ein Link je Zeile. */
.sg-tasks .sg-row__trail > .sg-btn { position: static; }
.sg-tasks .sg-row__trail > .sg-btn::after { inset: 0; }
/* Prüfung in Abschnitten (UX-Regel P1): „Fehler“, „Hinweise“, „Anregungen“, „Zur Info“, „In Ordnung“. Je Abschnitt ein Kopf mit der Überschrift
   und einem Satz, was der Abschnitt bedeutet, darunter die Liste. Zwischen zwei Abschnitten liegt dreimal so viel Luft wie zwischen Kopf und Liste. */
.sg-checklist { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.sg-checklist__group { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
.sg-checklist__head { display: grid; gap: 2px; }
.sg-checklist__head > p { font-size: 13px; line-height: 18px; color: var(--ink-muted); text-wrap: pretty; }

.sg-toast { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; max-width: min(520px, 100%); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4); border-radius: var(--radius-pill); background: var(--dark); color: var(--on-dark); font-weight: 500; box-shadow: 0 0 0 1px var(--line), var(--shadow-float); animation: sg-rise var(--sg-slow) var(--sg-spring); }
/* Haken und Knopf des Toasts stehen in Limette, in beiden Themes: Der Toast ist immer dunkel und bleibt, wie er ist (Festlegung zu SG-D32). */
.sg-toast > .sg-icon { color: var(--limette); }
.sg-toast--danger > .sg-icon { color: var(--danger); }
.sg-toast__text { flex: 1; min-width: 0; padding-right: var(--space-2); }
.sg-toast__action { height: 32px; padding: 0 12px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--limette); font-weight: 700; cursor: pointer; }
.sg-toast__action:hover { background: var(--fill-strong); }
.sg-toasts { position: fixed; z-index: var(--z-toast); left: 50%; bottom: calc(var(--dock) + var(--space-6)); translate: -50% 0; display: grid; justify-items: center; gap: var(--space-2); width: max-content; max-width: calc(100% - var(--space-6)); }
@keyframes sg-rise { from { opacity: 0; transform: translateY(14px) scale(0.96); } }

.sg-scrim { position: fixed; z-index: var(--z-dialog); inset: 0; display: grid; place-items: center; padding: var(--space-4); background: var(--scrim); }
/* Blatt (SG-D22, UX-Regel N12): Der Schleier des Blatts ist das Maß für seine Lage. Ist er schmaler als 744 px, kommt das Blatt
   von unten. Ab 744 px steht es als Spalte rechts in voller Höhe, und die Seite bleibt links sichtbar. In der App deckt
   der Schleier die ganze App, seine Breite ist also ihre Breite. Er steht als letztes Kind in sg-app: So rollt die Seite dahinter nicht mit. */
.sg-scrim--sheet { z-index: var(--z-sheet); place-items: end center; padding: 0; container: sg-scrim / inline-size; }
.sg-dialog { display: grid; gap: var(--space-2); width: min(440px, 100%); padding: var(--space-6); border-radius: var(--radius-xl); background: var(--surface-raised); box-shadow: 0 0 0 1px var(--line), var(--shadow-overlay); animation: sg-rise var(--sg-slow) var(--sg-spring); }
.sg-dialog__text { color: var(--ink-muted); }
.sg-dialog__actions { display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-4); }
/* Aufbau: Kopf, Inhalt, Fuß. Nur der Inhalt (sg-sheet__body) rollt, Kopf und Fuß bleiben stehen. So verdeckt der Fuß nie das Feld mit dem Fokus.
   Ohne sg-sheet__body rollt wie früher das ganze Blatt. Die Abstände zum Rand stehen als Variablen da, weil Inhalt und Fuß bis an den Rand reichen. */
.sg-sheet { --sg-pl: max(var(--space-6), env(safe-area-inset-left)); --sg-pr: max(var(--space-6), env(safe-area-inset-right)); --sg-pb: max(var(--space-6), calc(env(safe-area-inset-bottom) + var(--space-3)));
  display: flex; flex-direction: column; gap: var(--space-4); width: 100%; max-height: 92%; padding: var(--space-3) var(--sg-pr) var(--sg-pb) var(--sg-pl); border-radius: var(--radius-xl) var(--radius-xl) 0 0; background: var(--surface-raised); box-shadow: 0 0 0 1px var(--line), var(--shadow-overlay); overflow: auto; overscroll-behavior: contain; animation: sg-sheet var(--sg-slow) var(--sg-ease); }
.sg-sheet > * { flex: none; }
.sg-sheet::before { content: ""; flex: none; align-self: center; width: 36px; height: 5px; border-radius: var(--radius-pill); background: var(--line-control); }
.sg-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
/* Ein langer Titel bricht um; der Knopf zum Schließen behält seine Größe. */
.sg-sheet__head > :is(h1, h2, h3) { min-width: 0; overflow-wrap: anywhere; }
.sg-sheet__head > .sg-btn { flex: none; }
/* Umschließt ein <form> Inhalt und Fuß, bleibt es für den Aufbau unsichtbar. */
.sg-sheet__form { display: contents; }
.sg-sheet__body { flex: 0 1 auto; min-height: 0; margin: calc(-1 * var(--space-4)) calc(-1 * var(--sg-pr)) calc(-1 * var(--space-4)) calc(-1 * var(--sg-pl)); padding: var(--space-4) var(--sg-pr) var(--space-4) var(--sg-pl); overflow: auto; overscroll-behavior: contain; scroll-padding: var(--space-4) 0; }
/* Probe im Blatt (UX-Regel N9): Verdeckt ein Blatt die Vorschau der Seite, zeigt es oben eine eigene. Sie ist ein Band über die
   volle Breite des Blatts und bleibt beim Rollen stehen. */
.sg-sheet__sample { position: sticky; z-index: 1; top: calc(-1 * var(--space-4)); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--space-2); margin: calc(-1 * var(--space-4)) calc(-1 * var(--sg-pr)) var(--space-4) calc(-1 * var(--sg-pl)); padding: var(--space-4) var(--sg-pr) var(--space-3) var(--sg-pl); background: var(--ground-sunken); box-shadow: 0 1px 0 var(--line); }
.sg-sheet__foot { flex: none; display: grid; gap: var(--space-3); margin: 0 calc(-1 * var(--sg-pr)) 0 calc(-1 * var(--sg-pl)); padding: var(--space-4) var(--sg-pr) 0 var(--sg-pl); border-top: 1px solid var(--line); }
.sg-sheet__actions { display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: var(--space-2); }
/* Ein Weg daneben links, die Handlung rechts, etwa „Produkt anlegen“ und „Fertig“. */
.sg-sheet__actions--spread { justify-content: space-between; }
/* Mit drei Knöpfen, etwa „Entfernen“, „Verwerfen“ und „Speichern“ (SG-D31): Der erste steht links, die beiden anderen rechts. */
.sg-sheet__actions--spread:has(> :nth-child(3)) { justify-content: flex-end; }
.sg-sheet__actions--spread:has(> :nth-child(3)) > :first-child { margin-right: auto; }
/* Trefffläche von 44 px auch mit der Maus: Schließen im Kopf und die Knöpfe im Fuß. Mit Finger sind sie ohnehin 48 px hoch. */
.sg-sheet__head > .sg-btn:not(.sg-btn--sm)::after, .sg-sheet__actions > .sg-btn:not(.sg-btn--sm)::after, .sg-sheet__foot .sg-btn:not(.sg-btn--sm)::after { content: ""; position: absolute; inset: -2px; }
/* Unter 744 px: Zwei Knöpfe im Fuß teilen sich die Zeile; passen sie nicht nebeneinander, steht jeder über die volle Breite, die Handlung oben. */
@container sg-scrim (max-width: 743px) {
  .sg-sheet__actions > .sg-btn { flex: 1 1 0; }
  /* Drei Knöpfe: Der Weg daneben behält seine eigene Zeile unten. Kommen „Verwerfen“ und „Speichern“ dazu, bleibt er, wo er ist. */
  .sg-sheet__actions--spread:has(> :nth-child(3)) > :first-child { flex-basis: 100%; }
}
/* Ab 744 px: Spalte rechts in voller Höhe, mit space-3 Abstand zum Rand wie Sidebar und Topbar. Breiten: sg-sheet 520 px,
   sg-sheet--wide 640 px. Ist der Schleier schmaler, nimmt das Blatt, was da ist. */
@container sg-scrim (min-width: 744px) {
  .sg-sheet { --sg-sheet-w: 520px; --sg-pl: var(--space-6); --sg-pr: var(--space-6); --sg-pb: var(--space-6); place-self: stretch end; width: min(var(--sg-sheet-w), calc(100% - 2 * var(--space-3))); max-height: none;
    margin: max(var(--space-3), env(safe-area-inset-top)) max(var(--space-3), env(safe-area-inset-right)) max(var(--space-3), env(safe-area-inset-bottom)) var(--space-3); padding-top: var(--space-5); border-radius: var(--radius-xl); }
  .sg-sheet::before { display: none; }
  .sg-sheet--wide { --sg-sheet-w: 640px; }
}
@keyframes sg-sheet { from { transform: translateY(100%); } }
/* Fenster „Suchen“ (SG-D8): die Suche über alles, über der aktuellen Seite. Es steht als letztes Kind in sg-app und deckt die App;
   die Breite von sg-app entscheidet über die Form. Unter 1024 px ein Blatt über den ganzen Bildschirm, ab 1024 px ein Fenster
   oben mittig auf dem Schleier (72 px unter dem Rand, höchstens 720 px breit). Nur die Treffer scrollen; Titel, Feld und
   die Zahl der Treffer bleiben stehen. Die eine Zeile des Rasters ist so hoch wie der Schleier, damit das Fenster nie darüber hinauswächst. */
.sg-scrim--search { position: absolute; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: stretch; padding: 0; }
.sg-searchwindow { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; min-height: 0; padding: max(var(--space-3), env(safe-area-inset-top)) var(--space-4) max(var(--space-4), env(safe-area-inset-bottom)); background: var(--surface-raised); animation: sg-sheet 560ms var(--sg-soft) backwards; }
.sg-searchwindow__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 48px; }
.sg-searchwindow__head > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-searchwindow__head .sg-btn { flex: none; height: 48px; }
.sg-searchwindow__form { display: grid; gap: var(--space-2); }
.sg-searchwindow__form .sg-search { height: 48px; }
.sg-searchwindow__form .sg-search .sg-kbd { display: none; }
.sg-searchwindow__keys { display: none; color: var(--ink-muted); }
.sg-searchwindow__status { color: var(--ink-muted); }
.sg-searchwindow__status:empty { margin-top: calc(var(--space-3) * -1); }
.sg-searchwindow__results { flex: 1; min-height: 0; display: grid; align-content: start; gap: var(--space-6); margin: 0 calc(var(--space-2) * -1); padding: var(--space-1) var(--space-2) var(--space-2); overflow: auto; overscroll-behavior: contain; }
/* Der mit ↑ und ↓ gewählte Treffer sieht aus wie eine Zeile mit Tastaturfokus */
.sg-searchwindow .sg-row[aria-current="true"] { background: var(--fill); box-shadow: inset 0 0 0 2px var(--focus); }
@container sg-app (min-width: 744px) {
  .sg-searchwindow__keys { display: block; }
}
@container sg-app (min-width: 1024px) {
  .sg-scrim--search { place-items: start center; padding: 72px var(--space-4) var(--space-12); }
  .sg-searchwindow__form .sg-search .sg-kbd { display: inline-grid; }
  .sg-searchwindow { width: min(720px, 100%); max-height: 100%; padding: var(--space-5) var(--space-6) var(--space-6); border-radius: var(--radius-xl); box-shadow: 0 0 0 1px var(--line), var(--shadow-overlay); animation: sg-rise 520ms var(--sg-soft) backwards; }
}

/* ============ 9 Kanäle ============ */

.sg-preview { position: relative; display: grid; place-items: center; padding: var(--space-8) var(--space-4); border-radius: var(--radius-xl); background: var(--ground-sunken); overflow: hidden; }
/* Vorschauleiste (PreviewBar): Steuerung einer Vorschau, bündig am oberen Rand der Fläche; Maß ist die Breite der Fläche */
.sg-previewpanel { container: sg-previewpanel / inline-size; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; border-radius: var(--radius-xl); background: var(--ground-sunken); }
.sg-previewpanel > .sg-preview { border-radius: 0 0 var(--radius-xl) var(--radius-xl); background: none; }
.sg-previewbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-6); min-width: 0; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
.sg-previewbar__was, .sg-previewbar__ansicht { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); min-width: 0; }
.sg-previewbar__ansicht { flex: 1 1 auto; justify-content: space-between; }
.sg-previewbar__ansicht > :last-child { margin-inline-start: auto; }
.sg-previewbar__was > .sg-seg--wrap { flex-wrap: nowrap; }
.sg-previewbar__was > .sg-seg--wrap > .sg-seg__item { flex: 1 1 auto; }
.sg-previewbar__titel { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); min-width: 0; margin: 0; color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 600; }
.sg-previewbar__wahl { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; color: var(--ink-muted); font-size: 13px; font-weight: 600; }
.sg-previewbar__wahl > .sg-select { width: 13rem; min-width: 0; max-width: 100%; }
.sg-previewpanel__status { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0; padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--line); color: var(--ink-muted); font-size: 13px; line-height: 18px; }
.sg-previewpanel__status > .sg-icon { flex: none; margin-top: 1px; }
@container sg-previewpanel (max-width: 559px) {
  .sg-previewbar__was { flex: 1 1 100%; }
  .sg-previewbar__was > .sg-seg { display: flex; flex: 1 1 100%; }
  .sg-previewbar__was > .sg-seg--wrap { flex-wrap: wrap; }
  .sg-previewbar__was > .sg-seg--wrap > .sg-seg__item { flex: 1 1 clamp(0px, (400px - 100%) * 999, 50% - 4px); }
  .sg-previewbar__wahl { flex: 1 1 100%; }
  .sg-previewbar__wahl > .sg-select { flex: 1; width: auto; }
  .sg-previewbar__ansicht { flex: 1 1 100%; }
}
.sg-device { position: relative; flex: none; padding: 10px; border-radius: var(--radius-2xl); background: var(--dark); }
.sg-device__screen { position: relative; height: 100%; border-radius: calc(var(--radius-2xl) - 10px); background: var(--ground); overflow: hidden; }
.sg-device--phone { width: 410px; height: 820px; }
.sg-device--sm { zoom: 0.72; }
.sg-device .sg-app { height: 100%; }
.sg-device--phone::after { content: ""; position: absolute; top: 20px; left: 50%; width: 76px; height: 22px; translate: -50% 0; border-radius: var(--radius-pill); background: var(--dark); }
.sg-device--display { width: 100%; max-width: 560px; aspect-ratio: 16 / 9; padding: 8px; border-radius: var(--radius-lg); }
.sg-device--display .sg-device__screen { border-radius: calc(var(--radius-lg) - 8px); }
.sg-paper { position: relative; flex: none; width: 100%; max-width: 320px; aspect-ratio: 210 / 297; border-radius: 3px; background: var(--paper); color: var(--on-paper); box-shadow: 0 0 0 1px var(--line), var(--shadow-float); overflow: hidden; }
.sg-paper--a6 { max-width: 200px; aspect-ratio: 105 / 148; }
.sg-paper--square { max-width: 240px; aspect-ratio: 4 / 5; border-radius: var(--radius-md); }
.sg-paper--landscape { max-width: 440px; aspect-ratio: 297 / 210; }
/* Der Inhalt rollt im Rahmen: für die Vorschau in voller Größe (SG-D32). Das Telefon ist dann so breit wie am Gerät, 620 px hoch und ohne Kerbe.
   Wer mit der Tastatur auf dem Inhalt steht, sieht den Fokus um den ganzen Rahmen. */
.sg-device--scroll > .sg-device__screen { overflow-y: auto; scrollbar-width: thin; }
.sg-device--scroll.sg-device--phone { width: min(410px, 100%); height: 620px; }
.sg-device--scroll.sg-device--phone::after { content: none; }
/* Mit dem Finger rollt die Vorschau nicht in ihrem Rahmen: Sonst bleibt der Finger beim Rollen der Seite darin hängen (SG-D32).
   Die Vorschau zeigt den oberen Teil und läuft unten weich aus. „Groß ansehen“ öffnet sie im Blatt, dort rollt sie.
   Mit Maus und Trackpad rollt sie weiter im Rahmen.
   Das Telefon läuft als Ganzes aus; sein Fokus steht deshalb innen im Rahmen, außen schnitte ihn die Maske ab.
   Beim Fenster der Website läuft die Seite im Fenster aus, der Rahmen bleibt ganz. */
@media (pointer: coarse) {
  .sg-device--scroll > .sg-device__screen { overflow: hidden; }
  .sg-device--scroll.sg-device--phone { height: 520px; -webkit-mask-image: linear-gradient(#000 calc(100% - 112px), transparent); mask-image: linear-gradient(#000 calc(100% - 112px), transparent); }
  .sg-device--scroll.sg-device--phone:has(> .sg-device__screen:focus-visible) { box-shadow: inset 0 0 0 2px var(--focus), inset 0 0 0 4px var(--ground); }
  .sg-device--browser.sg-device--scroll > .sg-device__screen { -webkit-mask-image: linear-gradient(#000 calc(100% - 96px), transparent); mask-image: linear-gradient(#000 calc(100% - 96px), transparent); }
}
.sg-device__screen:focus-visible { outline: none; }
.sg-device:has(> .sg-device__screen:focus-visible) { box-shadow: var(--focus-ring); }
/* Fenster eines Browsers: die Karte auf der eigenen Website. Oben die Leiste mit der Adresse, darunter die Seite. */
.sg-device--browser { display: grid; grid-template-rows: auto minmax(0, 1fr); width: 100%; padding: 0; border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.sg-device--browser:has(> .sg-device__screen:focus-visible) { box-shadow: 0 0 0 1px var(--line), var(--focus-ring); }
.sg-device__bar > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-device__bar { display: flex; align-items: center; min-width: 0; height: 36px; padding: 0 var(--space-3); background: var(--fill); color: var(--ink-subtle); font-family: var(--font-mono); font-size: 12px; line-height: 1; }
.sg-device__bar::before { content: ""; flex: none; width: 9px; height: 9px; margin-right: 46px; border-radius: 50%; background: var(--fill-strong); box-shadow: 15px 0 0 var(--fill-strong), 30px 0 0 var(--fill-strong); }
.sg-device__bar > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-device--browser > .sg-device__screen { height: auto; border-radius: 0; }
.sg-device--browser.sg-device--scroll > .sg-device__screen { max-height: 420px; }
.sg-qr { display: grid; place-items: center; flex: none; width: 168px; aspect-ratio: 1; padding: var(--space-3); border-radius: var(--radius-lg); background: var(--paper); color: var(--on-paper); box-shadow: 0 0 0 1px var(--line); }
.sg-qr svg { display: block; width: 100%; height: 100%; }
/* min-width 0: Das Feld wird nie breiter als sein Platz; eine lange Adresse endet mit „…“, der Knopf bleibt ganz */
.sg-copy { display: flex; align-items: center; gap: var(--space-2); min-width: 0; height: var(--sg-h); padding: 0 4px 0 14px; border-radius: var(--radius-pill); background: var(--fill); font-family: var(--font-mono); font-size: 13px; }
.sg-copy span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-copy .sg-btn { flex: none; font-family: var(--font-sans); }

/* ============ 10 Marke ============ */

.sg-logo { display: block; flex: none; height: 28px; width: auto; }
.sg-logo__ink { fill: var(--ink); }
.sg-logo__cap { fill: var(--limette); }
.sg-logo__o { fill: var(--on-farbe); }
.sg-logo--mono .sg-logo__ink, .sg-logo--mono .sg-logo__cap { fill: currentColor; }
.sg-logo--mono .sg-logo__o { fill: var(--sg-logo-bg, var(--surface)); }
.sg-lockup { display: inline-grid; justify-items: start; gap: 6px; }
.sg-claim { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-muted); }
.sg-endorsement { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-muted); font-size: 12px; line-height: 16px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.sg-endorsement svg { display: block; height: 11px; width: auto; fill: currentColor; }
/* Hinweis „Erstellt mit“ im Fuß einer Gästeseite im Paket Free. Die Wörter übernehmen Schrift und Farbe des Fußes.
   Das Logo steht auf eigenem hellem Schild, weil die Farbe des Fußes je Vorlage wechselt. Feste Werte statt Tokens:
   Die Gästeseite gehört dem Betrieb und lädt kein Stylesheet von Showguest; das Gerüst der Gästeseite setzt den Hinweis mit genau diesen Werten, keine Vorlage gestaltet ihn. */
.sg-madewith { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: inherit; font-size: 12px; line-height: 16px; font-weight: 400; text-decoration: none; white-space: nowrap; }
.sg-madewith:hover > :first-child { text-decoration: underline; }
.sg-madewith__plate { display: block; padding: 6px 10px; border-radius: 16px; background: #ffffff; box-shadow: 0 0 0 1px rgba(14, 17, 22, 0.1); }
.sg-madewith__plate > img, .sg-madewith__plate > .sg-logo { display: block; height: 20px; width: auto; }
.sg-madewith__plate .sg-logo__ink { fill: #0e1116; }

/* ============ 11 Website ============ */

.sg-wrap { width: min(100% - 2 * var(--space-4), var(--content)); margin-inline: auto; }
.sg-site { container: sg-site / inline-size; background: var(--ground); }
/* Am Telefon (sg-site schmaler als 420 px) stehen die großen Überschriften der Website eine Stufe kleiner: sg-display-1 in der Größe von sg-display-2,
   sg-display-2 in der Größe von sg-display-3. Sonst passt ein markiertes Wort nicht in die Spalte: „Bühne frei“ ist mit 72 px 355 px breit, „Hotelgruppe“ mit 52 px 332 px. */
@container sg-site (max-width: 419.98px) {
  .sg-site .sg-display-1 { font-size: 52px; line-height: 56px; letter-spacing: -0.04em; }
  .sg-site .sg-display-2 { font-size: 36px; line-height: 42px; letter-spacing: -0.03em; }
}
.sg-sitenav { position: sticky; z-index: var(--z-bar); top: var(--space-3); display: flex; align-items: center; gap: var(--space-2); height: 64px; padding: 0 var(--space-3) 0 var(--space-5); border-radius: var(--radius-pill); }
.sg-sitenav__links { display: none; align-items: center; gap: 2px; margin-inline: auto; }
.sg-sitenav__link { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; white-space: nowrap; border-radius: var(--radius-pill); color: var(--ink-muted); font-weight: 600; text-decoration: none; transition: background var(--sg-fast) var(--sg-ease), color var(--sg-fast) var(--sg-ease); }
.sg-sitenav__link:hover, .sg-sitenav__link[aria-current] { background: var(--fill); color: var(--ink); }
.sg-sitenav__actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
/* Navigation bei wenig Platz, gemessen an der Breite von sg-site. Die volle Leiste (Logo, fünf Ziele, „Anmelden“, „Kostenlos starten“)
   braucht rund 910 px und steht ab 940 px. Darunter bleiben das Logo, „Kostenlos starten“ und der Menü-Knopf (sg-sitenav__menu);
   alles andere in sg-sitenav__actions steht dann im Menü. Der Menü-Knopf sitzt mittig im runden Ende der Leiste.
   Unter 420 px wird die Leiste kleiner (56 px hoch, Logo 24 px, „Kostenlos starten“ kleiner), so passen die drei ab 360 px.
   Unter 360 px bleibt neben dem Logo nur der Menü-Knopf; „Kostenlos starten“ steht dann im Menü. */
.sg-sitenav__menu { flex: none; }
@container sg-site (max-width: 939.98px) {
  .sg-sitenav { padding-right: calc((64px - var(--sg-h)) / 2); }
  .sg-sitenav__actions > :not(.sg-btn--primary, .sg-sitenav__menu) { display: none; }
}
@container sg-site (max-width: 419.98px) {
  .sg-sitenav { height: 56px; padding: 0 calc((56px - var(--sg-h)) / 2) 0 var(--space-4); }
  .sg-sitenav .sg-logo { height: 24px; }
  .sg-sitenav__actions { gap: var(--space-1); }
  .sg-sitenav__actions > .sg-btn--primary { height: 40px; padding: 0 14px; font-size: 13px; }
  .sg-sitenav__actions > .sg-btn--primary::after { content: ""; position: absolute; inset: -4px 0; }
}
@container sg-site (max-width: 359.98px) {
  .sg-sitenav__actions > .sg-btn--primary { display: none; }
}
@container sg-site (min-width: 940px) {
  .sg-sitenav__links { display: flex; }
  .sg-sitenav__actions { margin-left: 0; }
  .sg-sitenav__menu { display: none; }
}
.sg-hero { display: grid; align-items: center; gap: var(--space-8); padding: var(--space-12) 0 0; }
.sg-hero__text { display: grid; justify-items: start; gap: var(--space-4); min-width: 0; }
.sg-hero__title { max-width: 11ch; text-wrap: balance; }
/* Kopf: Druck mit Karte und Aushang nebeneinander; ist das Feld innen schmaler als 216 px, bleibt die Karte. Bildschirm: die Folie im Rahmen. */
.sg-fields__item--druck { container: sg-field / inline-size; }
.sg-fields__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 104px)); justify-content: center; align-items: end; gap: var(--space-2); width: 100%; }
@container sg-field (max-width: 215px) { .sg-fields__pair { grid-template-columns: minmax(0, 128px); } .sg-fields__pair > :nth-child(n+2) { display: none; } }
.sg-fields__item > .sg-device--display { max-width: 232px; }
.sg-hero__promise { color: var(--ink); }
.sg-hero__lead { max-width: 46ch; color: var(--ink-muted); text-wrap: pretty; }
.sg-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.sg-hero__note { font-size: 13px; line-height: 18px; color: var(--ink-subtle); }
/* Vier Felder: dasselbe Angebot auf vier Kanälen, jedes auf einem Farbfeld */
.sg-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.sg-fields__item { position: relative; display: grid; place-items: center; height: var(--sg-field-h, 248px); padding: var(--space-12) var(--space-4) var(--space-5); border-radius: var(--radius-xl); background: var(--sg-c); color: var(--on-farbe); overflow: hidden; }
.sg-fields__label { position: absolute; top: var(--space-3); left: var(--space-3); display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 8px; border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font-size: 12px; line-height: 1; font-weight: 700; }
.sg-pill { display: inline-flex; align-items: center; gap: var(--space-2); height: 32px; padding: 0 14px 0 6px; border-radius: var(--radius-pill); background: var(--fill); color: var(--ink); font-size: 13px; font-weight: 600; }
.sg-pill > b { display: inline-grid; place-items: center; height: 22px; padding: 0 8px; border-radius: var(--radius-pill); background: var(--limette); color: var(--on-farbe); font-size: 12px; font-weight: 700; }
.sg-heading { display: grid; justify-items: center; gap: var(--space-3); max-width: 46rem; margin-inline: auto; text-align: center; }
.sg-heading p { color: var(--ink-muted); text-wrap: pretty; }
/* Schritte und Zielgruppen der Website: Karten in einer Reihe */
.sg-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--space-4); }
.sg-how__step { display: grid; align-content: start; gap: var(--space-2); padding: var(--space-6); border-radius: var(--radius-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.sg-how__step > p { color: var(--ink-muted); }
.sg-how__step > .sg-symbol { margin-bottom: var(--space-3); }
.sg-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-4); }
.sg-bento__tile { grid-column: span 6; position: relative; display: flex; flex-direction: column; gap: var(--space-2); min-height: 300px; padding: var(--space-6); border-radius: var(--radius-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.sg-bento__tile > p { max-width: 38ch; color: var(--ink-muted); }
.sg-bento__tile--field { background: var(--sg-c); color: var(--on-farbe); box-shadow: none; }
.sg-bento__tile--field > p { color: var(--on-farbe); }
.sg-bento__tile--soft { background: var(--sg-c-soft); box-shadow: none; }
.sg-bento__tile--dark { background: var(--dark); color: var(--on-dark); box-shadow: none; }
.sg-bento__tile--dark > p { color: var(--on-dark-muted); }
.sg-bento__art { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-2); margin-top: auto; padding-top: var(--space-5); }
/* Pakete: Die Karten stehen in einer Reihe, sobald jede von dreien 280 px bekommt (3 × 280 + 2 × 16 = 872 px), sonst alle untereinander. Zwei und eins gibt es nicht. */
.sg-plans { container: sg-plans / inline-size; display: flex; flex-wrap: wrap; gap: var(--space-4); width: 100%; }
.sg-plan { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
/* Hervorgehobenes Paket: Feld in Limette, trägt data-theme="light" */
.sg-plan--pick { background: var(--limette); color: var(--on-farbe); box-shadow: none; }
.sg-plan--pick .sg-plan__text, .sg-plan--pick .sg-plan__price small, .sg-plan--pick .sg-plan__list .sg-icon { color: var(--on-farbe); }
.sg-plan__name { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.sg-plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); font-variant-numeric: tabular-nums; }
.sg-plan__price small { font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: 0; color: var(--ink-muted); }
.sg-plan__price .sg-plan__sub { flex-basis: 100%; }
.sg-plan__text { color: var(--ink-muted); }
/* Der Nutzen an der Stelle des Preises (Group). */
.sg-plan__claim { text-wrap: balance; }
/* Nebeneinander beginnen alle Listen auf einer Linie: Der Satz hat Platz für zwei Zeilen, der Nutzen ist so hoch wie Preis und Satz der anderen Karten (42 + 16 + 44 px). */
@container sg-plans (min-width: 872px) {
  .sg-plan { flex-basis: 0; }
  .sg-plan__text { min-height: 44px; }
  .sg-plan__claim { min-height: calc(42px + var(--space-4) + 44px); }
}
.sg-plan__list { display: grid; gap: 10px; margin-top: var(--space-2); }
.sg-plan__list li { display: flex; align-items: flex-start; gap: 10px; }
.sg-plan__list .sg-icon { margin-top: 1px; color: var(--positive); }
.sg-plan .sg-btn { margin-top: auto; }
/* Preis unter der Liste: Er rückt mit dem Knopf an den Fuß der Karte. */
.sg-plan__list ~ .sg-plan__price { margin-top: auto; }
.sg-plan__list ~ .sg-plan__price ~ .sg-btn { margin-top: 0; }
/* Der Hinweis nimmt eine eigene Zeile; sein Text bleibt in der Lesebreite, deshalb der Innenabstand statt einer Höchstbreite. */
.sg-plans__note { flex: 0 0 100%; box-sizing: border-box; padding-right: max(0px, 100% - var(--measure)); font-size: 13px; line-height: 20px; color: var(--ink-muted); text-wrap: pretty; }
.sg-site .sg-plans__note { padding-inline: max(0px, (100% - var(--measure)) / 2); text-align: center; text-wrap: balance; }
/* Ein Zeichen im Hinweis macht die Zeile nicht höher. */
.sg-plans__note .sg-plantag { margin-block: -2px; }
/* Vergleich zweier Wege: eine Karte, zwei Hälften; bei wenig Platz stehen sie untereinander. Die Linie dazwischen ist der Grund der Karte. */
.sg-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1px; width: 100%; border-radius: var(--radius-xl); background: var(--line); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.sg-compare__side { display: grid; align-content: start; gap: var(--space-3); padding: var(--space-6); background: var(--surface); }
.sg-cta { display: grid; justify-items: center; gap: var(--space-5); padding: var(--space-16) var(--space-6); border-radius: var(--radius-2xl); text-align: center; }
.sg-footer { display: grid; gap: var(--space-8); padding: var(--space-12) 0 var(--space-6); color: var(--ink-muted); }
.sg-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: var(--space-8) var(--space-6); }
.sg-footer__col { display: grid; align-content: start; gap: 10px; }
.sg-footer__col b { color: var(--ink); font-size: 13px; }
.sg-footer__col a { text-decoration: none; }
.sg-footer__col a:hover { color: var(--ink); }
.sg-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--line); font-size: 13px; line-height: 18px; }
@container sg-site (min-width: 768px) {
  .sg-bento__tile--2 { grid-column: span 2; }
  .sg-bento__tile--3 { grid-column: span 3; }
  .sg-bento__tile--4 { grid-column: span 4; }
  .sg-cta { padding-block: var(--space-24); }
}
@container sg-site (min-width: 900px) {
  .sg-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-12); padding-top: var(--space-16); }
}

/* Anmeldung: links die Karte, ab 860 px rechts die vier Felder */
.sg-auth { display: grid; min-height: 100dvh; background: var(--ground); }
.sg-auth__main { display: grid; place-items: center; padding: var(--space-6) var(--space-4); }
.sg-auth__card { display: grid; gap: var(--space-5); width: min(400px, 100%); padding: var(--space-8) var(--space-6) var(--space-6); border-radius: var(--radius-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.sg-auth__side { display: none; }
@media (min-width: 860px) {
  .sg-auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sg-auth__side { display: grid; align-content: center; gap: var(--space-6); margin: var(--space-3); padding: var(--space-8); border-radius: var(--radius-2xl); background: var(--ground-sunken); }
}

/* ---- Schaufenster (SG-D47): Showguest zeigt eine Vorlagen-Familie. Das Stück steht auf seinem Papier, das Telefon im Rahmen der
   Vorschau; nur im Rahmen spricht die Familie in ihrer Schrift und ihren Farben. „Beispiel“ steht neben dem Stück, nie darauf. */
.sg-paper > img, .sg-device__screen > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.sg-example { display: inline-flex; align-items: center; flex: none; height: 22px; padding: 0 var(--space-2); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-muted); font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); }
.sg-showcase { display: grid; gap: var(--space-6); min-width: 0; }
.sg-showcase__head { display: grid; gap: var(--space-2); max-width: 46rem; }
.sg-showcase__stage { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: var(--space-6) var(--space-5); align-items: end; min-width: 0; }
.sg-showcase__piece { display: grid; justify-items: center; align-content: end; gap: var(--space-3); min-width: 0; margin: 0; }
.sg-showcase__piece > .sg-paper { max-width: 220px; }
.sg-showcase__piece > .sg-paper--square { max-width: 200px; }
.sg-showcase__piece figcaption { font-size: 13px; line-height: 18px; color: var(--ink-muted); text-align: center; text-wrap: balance; }
.sg-families { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--space-4); }
.sg-family { position: relative; display: grid; grid-template-rows: auto 1fr; gap: var(--space-4); min-width: 0; padding: var(--space-3); border-radius: var(--radius-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sg-family:hover { box-shadow: inset 0 0 0 1px var(--ink-subtle); }
.sg-family:has(.sg-family__name a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.sg-family__stage { display: grid; place-items: center; height: 300px; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--ground-sunken); overflow: hidden; }
.sg-family__stage > .sg-paper { max-width: 176px; }
.sg-family__text { display: grid; align-content: start; justify-items: start; gap: var(--space-2); padding: 0 var(--space-2) var(--space-2); min-width: 0; }
.sg-family__name { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.sg-family__name a { color: inherit; text-decoration: none; }
.sg-family__name a:focus-visible { outline: none; }
.sg-family .sg-family__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sg-family__worlds { display: flex; gap: var(--space-2); }
.sg-family__worlds > i { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--sw) 0 50%, var(--sw2, var(--sw)) 50% 100%); box-shadow: inset 0 0 0 1px var(--line); }
.sg-family__example { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* ============ 12 Bewegung ============ */
/* Bewegung zeigt, dass etwas geschieht: Eine Seite baut sich auf, etwas geht live. Sie läuft einmal und endet.
   Der Aufbau einer Seite wird mit der Klasse sg-motion auf <body> eingeschaltet. Ohne die Klasse steht alles sofort da.
   Der Ton: weich und ruhig. Dinge kommen aus der Unschärfe, bremsen lang aus und federn nicht nach. */

:root { --sg-soft: cubic-bezier(0.16, 1, 0.3, 1); --sg-enter: 680ms; --sg-stagger: 70ms; }
@keyframes sg-in { from { opacity: 0; transform: translateY(18px) scale(0.985); filter: blur(6px); } }
@keyframes sg-in-row { from { opacity: 0; transform: translateY(10px); } }
@keyframes sg-fade { from { opacity: 0; } }
@keyframes sg-reveal { from { clip-path: inset(0 100% 0 0 round var(--radius-xl)); } to { clip-path: inset(0 0 0 0 round var(--radius-xl)); } }
@keyframes sg-draw { from { background-size: 0% 100%; } }
@keyframes sg-grow { from { transform: scaleX(0); } }
@keyframes sg-roll { from { opacity: 0; transform: translateY(46%); filter: blur(4px); } }
@keyframes sg-settle { from { opacity: 0; transform: scale(0.84); } }
/* Überlagerungen: weich statt federnd */
@keyframes sg-rise { from { opacity: 0; transform: translateY(16px) scale(0.97); filter: blur(4px); } }
@keyframes sg-pop { from { opacity: 0; transform: translateY(-6px) scale(0.96); } }
@keyframes sg-sheet { from { transform: translateY(100%); } }
.sg-toast { animation: sg-rise 560ms var(--sg-soft) backwards; }
.sg-dialog { animation: sg-rise 520ms var(--sg-soft) backwards; }
.sg-sheet { animation: sg-sheet 560ms var(--sg-soft) backwards; }
@keyframes sg-sheet-side { from { opacity: 0; transform: translateX(32px); filter: blur(4px); } }
@container sg-scrim (min-width: 744px) { .sg-sheet { animation: sg-sheet-side 520ms var(--sg-soft) backwards; } }
.sg-scrim { animation: sg-fade 320ms var(--sg-ease) backwards; }
/* Weniger Bewegung gewünscht: Blatt und Schleier gleiten nicht, sie blenden nur ein. */
@media (prefers-reduced-motion: reduce) {
  .sg .sg-sheet, .sg .sg-scrim--sheet { animation: sg-fade 200ms linear backwards !important; }
}
.sg-more > .sg-menu { transform-origin: top right; animation: sg-pop 260ms var(--sg-soft) backwards; }
.sg-accordion details[open] > .sg-accordion__body { animation: sg-in-row 360ms var(--sg-soft) backwards; }

/* Hereinkommen: ein Element, oder die Kinder einer Gruppe nacheinander */
.sg-enter, .sg-stagger > *, .sg-motion .sg-app__inner > *, .sg-motion .sg-grid > *, .sg-motion .sg-fields > *, .sg-motion .sg-how > * { animation: sg-in var(--sg-enter) var(--sg-soft) backwards; animation-delay: calc(var(--sg-i, 0) * var(--sg-stagger)); }
/* Zeilen einer Liste: ohne Unschärfe, mit kürzerem Weg */
.sg-motion .sg-list > * { animation: sg-in-row 520ms var(--sg-soft) backwards; animation-delay: calc(120ms + var(--sg-i, 0) * 50ms); }
.sg-stagger > :nth-child(2), .sg-motion .sg-app__inner > :nth-child(2), .sg-motion .sg-grid > :nth-child(2), .sg-motion .sg-fields > :nth-child(2), .sg-motion .sg-how > :nth-child(2), .sg-motion .sg-list > :nth-child(2) { --sg-i: 1; }
.sg-stagger > :nth-child(3), .sg-motion .sg-app__inner > :nth-child(3), .sg-motion .sg-grid > :nth-child(3), .sg-motion .sg-fields > :nth-child(3), .sg-motion .sg-how > :nth-child(3), .sg-motion .sg-list > :nth-child(3) { --sg-i: 2; }
.sg-stagger > :nth-child(4), .sg-motion .sg-app__inner > :nth-child(4), .sg-motion .sg-grid > :nth-child(4), .sg-motion .sg-fields > :nth-child(4), .sg-motion .sg-how > :nth-child(4), .sg-motion .sg-list > :nth-child(4) { --sg-i: 3; }
.sg-stagger > :nth-child(5), .sg-motion .sg-app__inner > :nth-child(5), .sg-motion .sg-grid > :nth-child(5), .sg-motion .sg-fields > :nth-child(5), .sg-motion .sg-how > :nth-child(5), .sg-motion .sg-list > :nth-child(5) { --sg-i: 4; }
.sg-stagger > :nth-child(6), .sg-motion .sg-app__inner > :nth-child(6), .sg-motion .sg-grid > :nth-child(6), .sg-motion .sg-fields > :nth-child(6), .sg-motion .sg-how > :nth-child(6), .sg-motion .sg-list > :nth-child(6) { --sg-i: 5; }
.sg-stagger > :nth-child(7), .sg-motion .sg-app__inner > :nth-child(7), .sg-motion .sg-grid > :nth-child(7), .sg-motion .sg-fields > :nth-child(7), .sg-motion .sg-how > :nth-child(7), .sg-motion .sg-list > :nth-child(7) { --sg-i: 6; }
.sg-stagger > :nth-child(8), .sg-motion .sg-app__inner > :nth-child(8), .sg-motion .sg-grid > :nth-child(8), .sg-motion .sg-fields > :nth-child(8), .sg-motion .sg-how > :nth-child(8), .sg-motion .sg-list > :nth-child(8) { --sg-i: 7; }
.sg-stagger > :nth-child(n+9), .sg-motion .sg-app__inner > :nth-child(n+9), .sg-motion .sg-grid > :nth-child(n+9), .sg-motion .sg-fields > :nth-child(n+9), .sg-motion .sg-how > :nth-child(n+9), .sg-motion .sg-list > :nth-child(n+9) { --sg-i: 8; }

/* Einblenden (sg-appear): Was durch eine Handlung oder eine Auswahl erscheint (ein Bereich, ein Knopf, ein Hinweis), kommt weich
   aus der Unschärfe, mit kurzem Weg. Nur das Neue trägt die Klasse, nie die ganze Seite. Mit sg-appear--grow wächst ein Bereich dazu
   in der Höhe auf, damit nichts darunter springt; Browser, die das nicht können, blenden nur ein. */
@keyframes sg-appear { from { opacity: 0; transform: translateY(6px); filter: blur(4px); } }
@keyframes sg-sheet-foot { from { height: 0; min-height: 0; margin-top: calc(-1 * var(--space-4)); padding-block: 0; border-top-width: 0; opacity: 0; filter: blur(4px); overflow: clip; } 60% { opacity: 1; filter: none; } to { min-height: 0; overflow: clip; } }
@keyframes sg-sheet-foot-max { from { max-height: 0; min-height: 0; margin-top: calc(-1 * var(--space-4)); padding-block: 0; border-top-width: 0; opacity: 0; filter: blur(4px); overflow: clip; } 60% { opacity: 1; filter: none; } to { max-height: 96px; min-height: 0; overflow: clip; } }
@keyframes sg-appear-grow { from { height: 0; min-height: 0; padding-block: 0; opacity: 0; transform: translateY(6px); filter: blur(4px); overflow: clip; } 60% { opacity: 1; transform: none; filter: none; } to { min-height: 0; overflow: clip; } }
.sg-appear { animation: sg-appear 420ms var(--sg-gentle) backwards; animation-delay: var(--sg-delay, 0ms); }
/* Fuß eines Blatts, der erst mit der ersten Änderung erscheint (SG-D31): Er wächst auf, und Abstand zum Inhalt und Linie wachsen mit.
   So springt das Blatt am Telefon nicht. Das geht in jedem Browser, über max-height (eine Zeile Knöpfe ist nie höher als 96 px);
   wo der Browser die echte Höhe kennt, nimmt er sie. Ohne Weg nach unten, damit im Blatt kein Rollbalken aufblitzt. */
.sg-sheet__foot.sg-appear--grow { animation: sg-sheet-foot-max 520ms ease-out backwards; animation-delay: var(--sg-delay, 0ms); }
@supports (interpolate-size: allow-keywords) {
  .sg-appear--grow { interpolate-size: allow-keywords; animation: sg-appear-grow 520ms var(--sg-gentle) backwards; animation-delay: var(--sg-delay, 0ms); }
  .sg-sheet__foot.sg-appear--grow { animation-name: sg-sheet-foot; animation-timing-function: var(--sg-gentle); }
}
@media (prefers-reduced-motion: reduce) {
  .sg .sg-appear { animation: none !important; }
}

/* Auf- und Zuklappen (sg-fold): Felder, die an einem Kästchen, einem Schalter oder einer Wahl hängen (UX-Regel B5a). Die Wahl bleibt
   stehen, der Bereich darunter klappt mit der Zeile des Rasters auf und zu, wie der Abschnitt eines Kanals. Das geht in jedem Browser
   und ohne JavaScript: Das Stylesheet liest den Haken selbst. Zugeklappt ist der Bereich auch für Tastatur und Vorleseprogramme weg
   (visibility) und 0 px hoch. Offen lässt er seitlich und unten 4 px für den Fokusring; oben hält er den Abstand zur Wahl. */
.sg-fold { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: max-content 0fr; min-width: 0; transition: grid-template-rows 450ms var(--sg-gentle); }
.sg-fold > .sg-choice { grid-row: 1; }
.sg-fold__body { grid-row: 2; min-width: 0; min-height: 0; margin: 0 -4px; padding: 0 4px; overflow: hidden; visibility: hidden; opacity: 0; filter: blur(4px); transition: margin 450ms var(--sg-gentle), padding 450ms var(--sg-gentle), opacity 200ms var(--sg-ease), filter 200ms var(--sg-ease), visibility 0s linear 450ms; }
/* Offen: mit Haken; mit sg-fold--when-off, solange der Haken fehlt; mit sg-fold--open, wenn die App es sagt. */
.sg-fold:not(.sg-fold--when-off):has(> .sg-choice > input:checked), .sg-fold--when-off:not(:has(> .sg-choice > input:checked)), .sg-fold--open { grid-template-rows: max-content 1fr; }
.sg-fold:not(.sg-fold--when-off):has(> .sg-choice > input:checked) > .sg-fold__body, .sg-fold--when-off:not(:has(> .sg-choice > input:checked)) > .sg-fold__body, .sg-fold--open > .sg-fold__body { margin-bottom: -4px; padding-top: var(--sg-fold-top, var(--space-2)); padding-bottom: calc(4px + var(--sg-fold-end, var(--space-4))); visibility: visible; opacity: 1; filter: none; transition: margin 450ms var(--sg-gentle), padding 450ms var(--sg-gentle), opacity 360ms var(--sg-gentle) 90ms, filter 360ms var(--sg-gentle) 90ms, visibility 0s; }
/* Folgt im selben Element nichts mehr, braucht der Bereich unten keinen Abstand. */
.sg-fold:last-child > .sg-fold__body { --sg-fold-end: 0px; }
/* Unter einem Kästchen oder Radio stehen die Felder in der Flucht seines Textes. */
.sg-fold--inset > .sg-fold__body { padding-left: calc(4px + 22px + var(--space-3)); }
@media (prefers-reduced-motion: reduce) {
  .sg .sg-fold, .sg .sg-fold__body { transition: none !important; }
}

/* Farbfeld schiebt sich auf, sein Inhalt folgt: erst das Symbol, dann Text und Button */
.sg-reveal, .sg-motion .sg-pagehead--field, .sg-motion .sg-cta { animation: sg-reveal 860ms var(--sg-soft) backwards; animation-delay: calc(var(--sg-i, 0) * var(--sg-stagger)); }
.sg-reveal > *, .sg-motion .sg-pagehead--field > * { animation: sg-in-row 560ms var(--sg-soft) backwards; animation-delay: calc(260ms + var(--sg-i, 0) * var(--sg-stagger)); }
.sg-reveal > :nth-child(2), .sg-motion .sg-pagehead--field > :nth-child(2) { animation-delay: calc(360ms + var(--sg-i, 0) * var(--sg-stagger)); }
.sg-reveal .sg-symbol, .sg-motion .sg-pagehead--field .sg-symbol { animation: sg-settle 620ms var(--sg-soft) backwards; animation-delay: calc(300ms + var(--sg-i, 0) * var(--sg-stagger)); }
/* Markierung wächst hinter dem Wort hervor */
.sg-motion .sg-hl { background: linear-gradient(var(--sg-c), var(--sg-c)) left / 100% 100% no-repeat; animation: sg-draw 760ms var(--sg-soft) 320ms backwards; }
/* Fortschritt füllt sich, Kennzahl rollt herein */
.sg-motion .sg-progress > span { transform-origin: left; animation: sg-grow 900ms var(--sg-soft) 320ms backwards; }
.sg-motion .sg-stat { animation: sg-roll 720ms var(--sg-soft) 260ms backwards; }

/* Antwort auf Zeigen und Drücken: klein, weich, immer an */
a.sg-card, .sg-card--link { transition: box-shadow 320ms var(--sg-soft), transform 320ms var(--sg-soft); }
a.sg-card:hover, .sg-card--link:hover { transform: translateY(-2px); }
.sg-btn .sg-icon, .sg-row__trail > .sg-icon, .sg-symbol { transition: transform 320ms var(--sg-soft); }
.sg-btn:hover .sg-icon--arrow-right, a.sg-row:hover .sg-row__trail > .sg-icon--chevron-right { transform: translateX(3px); }
.sg-nav__item:hover .sg-symbol { transform: scale(1.06); }
.sg-switch::after { transition: transform 320ms var(--sg-soft), width 320ms var(--sg-soft), background var(--sg-base) var(--sg-ease); }
.sg-switch:active::after { width: 27px; }
.sg-switch:checked:active::after { transform: translateX(15px); }

/* Limette in Bewegung: Die Farbe von Showtime kommt immer aus einem Punkt oder läuft einmal als Linie durch. */
@keyframes sg-dot { from { clip-path: circle(0% at var(--sg-dot-x, 13px) var(--sg-dot-y, 50%)); } to { clip-path: circle(170% at var(--sg-dot-x, 13px) var(--sg-dot-y, 50%)); } }
@keyframes sg-line { 0% { opacity: 1; transform: scaleX(0); } 70% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1); } }
@keyframes sg-press { from { box-shadow: 0 0 0 0 var(--limette); } to { box-shadow: 0 0 0 16px transparent; } }
@keyframes sg-busy { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes sg-fresh { from { background-color: var(--limette); } }
/* Showtime-Linie: läuft beim Laden einer Seite einmal oben durch */
.sg-showline, .sg-motion .sg-app::after, .sg-app.sg-motion::after { content: ""; position: absolute; z-index: var(--z-toast); top: 0; left: 0; right: 0; height: 3px; background: var(--limette); opacity: 0; transform-origin: left; pointer-events: none; animation: sg-line 1100ms var(--sg-soft); }
/* Live erscheint aus seinem Punkt */
.sg-motion .sg-status--live { animation: sg-dot 760ms var(--sg-soft) 320ms backwards; }
/* Veröffentlichen: beim Drücken geht ein Ring in Limette vom Button aus; solange veröffentlicht wird, läuft die Farbe durch den Button */
.sg-btn--publish:active { animation: sg-press 700ms var(--sg-ease); }
.sg-btn--publish[aria-busy="true"] { background: linear-gradient(90deg, var(--limette-strong) 0 50%, var(--limette) 0) 100% 0 / 200% 100%; animation: sg-busy 1400ms var(--sg-ease) infinite; }
/* Gerade geändert: Die Zeile oder Karte leuchtet einmal in Limette auf und kehrt zu ihrer Farbe zurück */
.sg-fresh { animation: sg-fresh 1800ms var(--sg-ease) 200ms backwards; }
.sg-motion .sg-list > .sg-fresh { animation: sg-in-row 520ms var(--sg-soft) backwards, sg-fresh 1800ms var(--sg-ease) 600ms backwards; animation-delay: calc(120ms + var(--sg-i, 0) * 50ms), 600ms; }

/* Seitenwechsel: weicher Übergang zwischen zwei Seiten, ohne JavaScript. Browser, die das nicht können, wechseln wie bisher. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 320ms; animation-timing-function: var(--sg-soft); }
.sg-motion .sg-sidebar { view-transition-name: sg-sidebar; }
.sg-motion .sg-topbar { view-transition-name: sg-topbar; }
.sg-motion .sg-dockbar { view-transition-name: sg-dockbar; }

/* ============ 13 KI-Moment ============ */
/* Der Moment, in dem die KI schreibt oder vorschlägt (SG-D25, freigegeben am 20.11.2026). Er ist die eine begrenzte Ausnahme von „flach, ohne Verlauf
   und ohne Schein“: Licht in Limette, Azur und Lavendel zeigt, dass Limo arbeitet, und ein Vorschlag leuchtet, bis jemand ihn übernimmt.
   Die Klassen liefern Aussehen und Bewegung. Den Ablauf, also wann welche Klasse steht, setzt die App (siehe AiMoment). */

@property --sg-ai-angle { syntax: "<angle>"; initial-value: 0deg; inherits: true; }
:root { --sg-gentle: cubic-bezier(0.22, 1, 0.36, 1); --sg-ai-ease: var(--sg-gentle); --sg-ai-fade: 420ms; --sg-ai-round: 1700ms; --sg-ai-start: 420ms; --sg-ai-word: 680ms; --sg-ai-gap: 60ms; }
@keyframes sg-ai-turn { to { --sg-ai-angle: 360deg; } }
@keyframes sg-ai-in { from { opacity: 0; transform: translateY(6px); filter: blur(4px); } }
@keyframes sg-ai-late { 0% { visibility: hidden; opacity: 0; } 1% { visibility: visible; opacity: 0; transform: translateY(6px); filter: blur(4px); } }
@keyframes sg-ai-word { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes sg-ai-appear { from { opacity: 0.2; transform: scale(0.97); filter: blur(5px); box-shadow: inset 0 0 0 1px transparent, 0 0 0 0 transparent, 0 0 0 0 transparent; } }
@keyframes sg-ai-pass { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes sg-ai-spark { 0% { opacity: 0; transform: translate(0, 0) scale(0.4) rotate(0deg); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--sg-dx), var(--sg-dy)) scale(1) rotate(45deg); } }
@keyframes sg-ai-wave { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sg-langdot-c, var(--limette-text)) 70%, transparent); } to { box-shadow: 0 0 0 11px transparent; } }

/* Lichtrand: Die Hülle um ein Eingabefeld (input und textarea tragen keine Pseudo-Elemente). Solange die KI schreibt, trägt sie aria-busy="true":
   Ein Rand von 2 px läuft in 1700 ms einmal herum, dahinter liegt ein weicher Schein. Beides blendet in 420 ms ein und aus.
   Der Winkel läuft an der Hülle und steht still, sobald aria-busy fällt; so springt der Verlauf beim Ausblenden nicht. */
.sg-aifield { position: relative; display: grid; min-width: 0; border-radius: var(--radius-md); isolation: isolate; animation: sg-ai-turn var(--sg-ai-round) linear infinite paused; }
.sg-aifield::before, .sg-aifield::after { content: ""; position: absolute; z-index: -1; inset: -2px; border-radius: calc(var(--radius-md) + 2px); background: conic-gradient(from var(--sg-ai-angle, 0deg), var(--limette), var(--azur), var(--lavendel), var(--limette)); opacity: 0; pointer-events: none; transition: opacity var(--sg-ai-fade) var(--sg-ai-ease); }
.sg-aifield::after { inset: -8px; border-radius: calc(var(--radius-md) + 8px); filter: blur(14px); }
.sg-aifield[aria-busy="true"] { animation-play-state: running; }
.sg-aifield[aria-busy="true"]::before { opacity: 1; }
.sg-aifield[aria-busy="true"]::after { opacity: 0.45; }
.sg-aifield[aria-busy="true"] > :is(.sg-input, .sg-textarea):not(:focus-visible) { border-color: transparent; }

/* Text aus der Unschärfe: eine Schicht über dem Feld, je Wort ein <span> mit seinem Platz in --sg-i. Kein Tippen.
   Nacheinander erscheinen höchstens die ersten 20 Wörter; alle weiteren kommen mit dem zwanzigsten. So dauert der Moment nie länger als rund 2,2 s.
   Solange die Schicht da ist, zeigt das Feld seinen eigenen Text und Platzhalter nicht; der Wert darf also von Anfang an im Feld stehen. */
.sg-aitext { position: absolute; z-index: 1; inset: 0; overflow: hidden; padding: 0 15px; border-radius: inherit; color: var(--ink); font-size: var(--sg-input); line-height: var(--sg-h); white-space: nowrap; pointer-events: none; }
.sg-aifield:has(> .sg-textarea) > .sg-aitext { padding: 11px 15px; line-height: 22px; white-space: pre-wrap; overflow-wrap: break-word; }
.sg-aitext > span { display: inline-block; opacity: 0; transform: translateY(3px); filter: blur(8px); animation: sg-ai-word var(--sg-ai-word) var(--sg-ai-ease) forwards; animation-delay: calc(var(--sg-ai-start) + min(var(--sg-i, 0), 19) * var(--sg-ai-gap)); }
.sg-aifield:has(> .sg-aitext) > :is(.sg-input, .sg-textarea) { color: transparent; caret-color: transparent; }
.sg-aifield:has(> .sg-aitext) > :is(.sg-input, .sg-textarea)::placeholder { color: transparent; }

/* Vorschlag der KI am Feld (sg-field--suggest): 3 px Limette links und ein leichter Verlauf, der von dort hereinwächst. Der Rand des Feldes bleibt. */
.sg-aifield > :is(.sg-input, .sg-textarea):not(:disabled), .sg-field--suggest :is(.sg-input, .sg-textarea):not(:disabled) { background: linear-gradient(90deg, var(--limette-soft), transparent 70%) left / 0 100% no-repeat var(--surface); transition: border-color var(--sg-fast) var(--sg-ease), box-shadow var(--sg-fast) var(--sg-ease), background-size var(--sg-ai-fade) var(--sg-ai-ease); }
.sg-field--suggest :is(.sg-input, .sg-textarea):not(:disabled) { background-size: 100% 100%; box-shadow: inset 3px 0 0 var(--limette); }
.sg-field--suggest :is(.sg-input, .sg-textarea):focus-visible { box-shadow: inset 3px 0 0 var(--limette), 0 0 0 1px var(--focus); }
.sg-field--error.sg-field--suggest :is(.sg-input, .sg-textarea) { box-shadow: inset 3px 0 0 var(--limette), 0 0 0 1px var(--danger); }

/* Vorschlag der KI am Chip (sg-chip--suggest): Rand in Limette, ein weicher Ring von 3 px, 18 px Schein, ein Funke von 12 px.
   Ein Tipp übernimmt ihn: Der Chip wird voll, und ein Glanz läuft in 620 ms einmal durch. */
.sg-chip--suggest { isolation: isolate; background: linear-gradient(135deg, var(--limette-soft), var(--azur-soft)), var(--surface); box-shadow: inset 0 0 0 1px var(--limette-strong), 0 0 0 3px color-mix(in srgb, var(--limette) 16%, transparent), 0 0 18px color-mix(in srgb, var(--limette) 28%, transparent); }
.sg-chip--suggest:hover { background: linear-gradient(135deg, var(--limette-soft), var(--azur-soft)), var(--surface); box-shadow: inset 0 0 0 1px var(--limette-strong), 0 0 0 3px color-mix(in srgb, var(--limette) 32%, transparent), 0 0 18px color-mix(in srgb, var(--limette) 40%, transparent); }
.sg-chip--suggest:has(input:checked), .sg-chip--suggest[aria-pressed="true"] { background: var(--primary); box-shadow: none; }
.sg-chip--suggest:has(input:focus-visible), .sg-chip--suggest:focus-visible { box-shadow: var(--focus-ring); }
.sg-chip--suggest > .sg-icon { --sg-i: var(--sg-i-sparkle); width: 12px; height: 12px; color: var(--limette-text); }
.sg-chip--suggest:has(input:checked) > .sg-icon, .sg-chip--suggest[aria-pressed="true"] > .sg-icon { color: inherit; }
.sg-chip--suggest::after { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: linear-gradient(100deg, transparent 38%, color-mix(in srgb, var(--limette) 45%, transparent) 50%, transparent 62%) 100% 0 / 300% 100% no-repeat; pointer-events: none; }
.sg-chip--suggest:has(input:checked)::after, .sg-chip--suggest[aria-pressed="true"]::after { animation: sg-ai-pass 620ms var(--sg-ai-ease) both; }
/* Der Chip erscheint: 1150 ms aus Unschärfe und Deckkraft. Wann er dran ist, sagt --sg-delay. */
.sg-chip--appear { animation: sg-ai-appear 1150ms var(--sg-ai-ease) both; animation-delay: var(--sg-delay, 0ms); }
/* Vorschlag der KI an einer Auswahl mit Haken (sg-choice--suggest, etwa bei Kennzeichen): Die Zeile selbst leuchtet weich, mit dem Funken
   hinter dem Wort, statt den Vorschlag als zweites Feld daneben zu stellen. Ein Tipp auf den Haken übernimmt ihn, das Leuchten geht. */
.sg-choice--suggest { position: relative; isolation: isolate; align-self: start; }
.sg-choice--suggest::before { content: ""; position: absolute; z-index: -1; inset: 3px calc(-1 * var(--space-2)); border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--limette-soft), var(--azur-soft)), var(--surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--limette-strong) 70%, transparent), 0 0 14px color-mix(in srgb, var(--limette) 22%, transparent); transition: opacity var(--sg-ai-fade) var(--sg-ai-ease); }
.sg-choice--suggest:has(:checked)::before { opacity: 0; }
.sg-choice--suggest .sg-check:not(:checked) { border-color: var(--ink-muted); }
.sg-choice--suggest > .sg-icon { --sg-i: var(--sg-i-sparkle); flex: none; width: 12px; height: 12px; margin: 5px 0 0 calc(-1 * var(--space-1)); color: var(--limette-text); transition: opacity var(--sg-ai-fade) var(--sg-ai-ease); }
.sg-choice--suggest:has(:checked) > .sg-icon { opacity: 0; }
.sg-choice--appear { animation: sg-ai-in 560ms var(--sg-ai-ease) backwards; animation-delay: var(--sg-delay, 0ms); }

/* Lichtschein über einer Gruppe (sg-aisweep): läuft einmal in 1900 ms durch, zwischen dem Grund der Gruppe und ihrem Inhalt.
   Er reicht 8 px über die Gruppe hinaus und läuft an allen Rändern weich aus; so ist er auch über einer Gruppe ohne eigenen Grund kein Kasten. */
.sg-aisweep { position: relative; isolation: isolate; }
.sg-aisweep::after { content: ""; position: absolute; z-index: -1; inset: calc(-1 * var(--space-2)); background: linear-gradient(100deg, transparent 37%, color-mix(in srgb, var(--limette) 26%, transparent) 47%, color-mix(in srgb, var(--azur) 16%, transparent) 52%, transparent 60%) 100% 0 / 300% 100% no-repeat; pointer-events: none; animation: sg-ai-pass 1900ms var(--sg-ai-ease) both; animation-delay: var(--sg-delay, 0ms);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--space-4), #000 calc(100% - var(--space-4)), transparent), linear-gradient(transparent, #000 var(--space-4), #000 calc(100% - var(--space-4)), transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 var(--space-4), #000 calc(100% - var(--space-4)), transparent), linear-gradient(transparent, #000 var(--space-4), #000 calc(100% - var(--space-4)), transparent); mask-composite: intersect; }

/* Gründe zu den Vorschlägen: Zeilen, die nacheinander erscheinen (560 ms, 160 ms Abstand). */
.sg-aireasons { display: grid; gap: var(--space-1); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.sg-aireasons > * { animation: sg-ai-late 560ms var(--sg-ai-ease) backwards; animation-delay: calc(var(--sg-delay, 0ms) + var(--sg-i, 0) * 160ms); }
/* Später erscheinen (sg-aienter): wie die Gründe, mit --sg-delay. Bis dahin ist das Element nicht zu sehen und nicht zu treffen; sein Platz ist schon da, es rutscht also nichts. */
.sg-aienter { animation: sg-ai-late 560ms var(--sg-ai-ease) backwards; animation-delay: var(--sg-delay, 0ms); }
.sg-aireasons :is(b, strong) { font-weight: 600; color: var(--ink); }
.sg-aireasons > :nth-child(2) { --sg-i: 1; }
.sg-aireasons > :nth-child(3) { --sg-i: 2; }
.sg-aireasons > :nth-child(4) { --sg-i: 3; }
.sg-aireasons > :nth-child(5) { --sg-i: 4; }
.sg-aireasons > :nth-child(n+6) { --sg-i: 5; }

/* Limo: die Figur der Hilfe und der KI. Kapsel und „o“ aus dem Logo, dazu die Pupille. Die Maße der Blicke gelten im Raster 44 × 76. */
.sg-limo { display: block; flex: none; width: 26px; height: 45px; overflow: visible; }
.sg-limo--sm { width: 14px; height: 24px; }
.sg-limo--lg { width: 44px; height: 76px; }
.sg-limo__body { fill: var(--limette); }
.sg-limo__ring { fill: none; stroke: var(--on-farbe); stroke-width: 9; }
.sg-limo__pupil { fill: var(--on-farbe); transition: translate var(--sg-ai-fade) var(--sg-ai-ease); }
.sg-limo__eye { transform-box: fill-box; transform-origin: center; transition: translate var(--sg-ai-fade) var(--sg-ai-ease); }
.sg-limo--left .sg-limo__pupil { translate: -3.5px 0; }
.sg-limo--left .sg-limo__eye { translate: -1.5px 0; }
.sg-limo--down .sg-limo__pupil { translate: 0 3.5px; }
.sg-limo--down .sg-limo__eye { translate: 0 5px; }
.sg-limo--up .sg-limo__pupil { translate: 0 -3.5px; }
.sg-limo--think .sg-limo__pupil { translate: 2.5px -2.5px; }
@media (prefers-reduced-motion: no-preference) {
  /* Aufwachen: Die Kapsel wächst einmal aus ihrer Mitte, das „o“ folgt. */
  .sg-limo--wake .sg-limo__body { transform-box: fill-box; transform-origin: center; animation: sg-limo-wake 620ms var(--sg-ai-ease) backwards; }
  .sg-limo--wake .sg-limo__eye { animation: sg-limo-look 520ms var(--sg-ai-ease) 260ms backwards; }
  /* Denkt: Die Pupille wandert, solange die Klasse steht. Sie endet mit der Antwort. */
  .sg-limo--think .sg-limo__pupil { animation: sg-limo-think 900ms ease-in-out infinite alternate; }
  .sg-limo--blink .sg-limo__eye { animation: sg-limo-blink 380ms ease-in-out 1; }
}
@keyframes sg-limo-wake { from { scale: 0.18 0.1; } }
@keyframes sg-limo-look { from { opacity: 0; scale: 0.4; } }
@keyframes sg-limo-think { from { translate: -2.5px -2.5px; } to { translate: 2.5px -2.5px; } }
@keyframes sg-limo-blink { 50% { scale: 1 0.12; } }

/* Sprechzeile: Limo sagt in einem Satz, was gerade geschieht. Sie erscheint in 460 ms. Mit sg-limoline--done fliegen fünf Funken. */
.sg-limoline { position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: 50px; padding: 6px var(--space-4) 6px var(--space-3); border-radius: var(--radius-xl); background: var(--limette-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--limette-strong) 50%, transparent); color: var(--ink); font-weight: 500; animation: sg-ai-in 460ms var(--sg-ai-ease) both; }
.sg-limoline > .sg-limo { width: 22px; height: 38px; }
.sg-limoline__text { flex: 1; min-width: 0; }
.sg-limoline__sparks { position: absolute; left: calc(var(--space-3) + 11px); top: 50%; width: 0; height: 0; pointer-events: none; }
.sg-limoline__sparks > * { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; background: var(--limette-text); -webkit-mask: var(--sg-i-sparkle) center / contain no-repeat; mask: var(--sg-i-sparkle) center / contain no-repeat; opacity: 0; }
.sg-limoline--done .sg-limoline__sparks > * { animation: sg-ai-spark 900ms var(--sg-ai-ease) forwards; }
.sg-limoline__sparks > :nth-child(1) { --sg-dx: -20px; --sg-dy: -18px; }
.sg-limoline__sparks > :nth-child(2) { --sg-dx: 18px; --sg-dy: -20px; animation-delay: 70ms; }
.sg-limoline__sparks > :nth-child(3) { --sg-dx: 22px; --sg-dy: 12px; animation-delay: 140ms; }
.sg-limoline__sparks > :nth-child(4) { --sg-dx: -16px; --sg-dy: 16px; animation-delay: 210ms; }
.sg-limoline__sparks > :nth-child(5) { --sg-dx: 0px; --sg-dy: -26px; animation-delay: 280ms; }

/* Punkt der Sprache im Segment: sagt, wie weit eine Übersetzung ist. Die Form trägt die Aussage, die Farbe hilft nur.
   leer: fehlt · voll: übersetzt · Funke: Vorschlag der KI · drehender Verlauf: wird gerade übersetzt. */
.sg-langdot { position: relative; display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.sg-langdot--done { background: var(--sg-langdot-c, var(--positive)); box-shadow: none; }
.sg-langdot--ai { box-shadow: none; }
.sg-langdot--ai::before { content: ""; position: absolute; inset: -2px; background: var(--sg-langdot-c, var(--limette-text)); -webkit-mask: var(--sg-i-sparkle) center / contain no-repeat; mask: var(--sg-i-sparkle) center / contain no-repeat; }
.sg-langdot--busy { background: conic-gradient(from var(--sg-ai-angle, 0deg), var(--limette), var(--azur), var(--lavendel), var(--limette)); box-shadow: 0 0 0 1.5px currentColor; animation: sg-ai-turn 1200ms linear infinite; }
.sg-langdot--wave { animation: sg-ai-wave 760ms var(--sg-ai-ease) 1; }
/* Auf dem gewählten Segment steht der Punkt in der Schriftfarbe */
.sg-seg__item input:checked + span, a.sg-seg__item[aria-current] { --sg-langdot-c: currentColor; }

/* Weniger Bewegung gewünscht: Lichtrand, Lichtschein, Glanz und Funken entfallen, nichts kommt aus der Unschärfe oder der Reihe nach.
   Das Ergebnis steht sofort da. Limo zeigt den Blick, ohne dass sich etwas bewegt. */
@media (prefers-reduced-motion: reduce) {
  .sg .sg-aifield, .sg .sg-langdot--busy, .sg .sg-langdot--wave { animation: none !important; }
  .sg .sg-aifield::before, .sg .sg-aifield::after, .sg .sg-aisweep::after, .sg .sg-chip--suggest::after, .sg .sg-limoline__sparks { display: none !important; }
  .sg .sg-aitext > span, .sg .sg-chip--appear, .sg .sg-choice--appear, .sg .sg-aireasons > *, .sg .sg-aienter, .sg .sg-limoline { animation: none !important; opacity: 1; transform: none; filter: none; }
}

/* ============ 14 Weg einer Sache: Strahl, Kanäle, Bühne (SG-D26, Gestalt von Strahl und Kanälen aus SG-D32) ============ */

/* Strahl: der Weg einer Karte oder eines Anlasses (SG-D26), in der Gestalt aus SG-D32: Schritte wie Reiter, mit Haken.
   Die Reihe ist gebaut wie sg-tabs: Wörter in einer Zeile, darunter die feine Linie. Der Schritt, dessen Inhalt zu sehen ist
   (aria-current="step"), ist dunkel und trägt den Strich. Erledigt zeigt einen Haken, „Live“ einen Punkt in Limette, wenn eine Version live ist.
   Kommende Schritte zeigen kein Zeichen. Es bewegt sich nur der Strich: Er gleitet, wenn der Schritt wechselt und der Knoten stehen bleibt. */
.sg-flow { display: grid; gap: var(--space-3); min-width: 0; }
.sg-pagehead > .sg-flow { flex: 1 1 100%; }
.sg-flow__steps { position: relative; display: flex; gap: var(--space-1); overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 -1px 0 var(--line); }
.sg-flow__steps::-webkit-scrollbar { display: none; }
.sg-flow__step { flex: none; }
.sg-flow__btn { position: relative; display: inline-flex; align-items: center; gap: var(--space-2); height: 44px; padding: 0 14px; border: 0; background: none; color: var(--ink-muted); font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer; transition: color var(--sg-fast) var(--sg-ease); }
.sg-flow__btn:hover, .sg-flow__btn[aria-current="step"] { color: var(--ink); }
/* Der Strich unter dem gewählten Schritt, wie beim Reiter */
.sg-flow__btn[aria-current="step"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--control-on); }
/* Die Reihe rollt zur Seite und schneidet dabei oben und unten ab: Der Fokus liegt deshalb innen. */
.sg-flow__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--radius-sm); }
/* Haken vor dem Namen: erledigt. Punkt in Limette mit dunklem Rand: Hier ist eine Version live. */
.sg-flow__step--done > .sg-flow__btn::before { content: ""; flex: none; width: 18px; height: 18px; background: var(--ink); -webkit-mask: var(--sg-i-check) center / contain no-repeat; mask: var(--sg-i-check) center / contain no-repeat; }
.sg-flow__step--live > .sg-flow__btn::before { content: ""; flex: none; width: 10px; height: 10px; margin: 0 2px; border-radius: 50%; background: var(--limette); box-shadow: 0 0 0 1.5px var(--on-farbe); -webkit-mask: none; mask: none; }
/* In einem Assistenten lassen sich kommende Schritte erst antippen, wenn man sie erreicht hat: Der Knopf trägt disabled. */
.sg-flow__btn:is(:disabled, [aria-disabled="true"]), .sg-flow__btn:is(:disabled, [aria-disabled="true"]):hover { color: var(--ink-subtle); cursor: default; }
.sg-flow__next { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.sg-flow__next b { font-weight: 600; color: var(--ink); }
/* Der Strich gleitet: Wo der Browser Ankerpositionen kennt, hängt ein einziger Strich am gewählten Schritt und wandert in 260 ms mit,
   wenn aria-current wechselt. Andere Browser zeigen den Strich des Schritts selbst, er springt. Bei „Bewegung reduzieren“ springt er überall. */
@supports (anchor-name: --sg-flow) {
  .sg-flow__btn[aria-current="step"] { anchor-name: --sg-flow; }
  .sg-flow__btn[aria-current="step"]::after { content: none; }
  .sg-flow__steps::after { content: ""; position: absolute; position-anchor: --sg-flow; left: calc(anchor(left) + 14px); right: calc(anchor(right) + 14px); bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--control-on); pointer-events: none; transition: left 260ms var(--sg-gentle), right 260ms var(--sg-gentle); }
}

/* Kanal als Abschnitt (SG-D32): ein Abschnitt je Kanal, und der Schalter ist die einzige Bedienung. Eingeschaltet klappt der Abschnitt auf:
   die Vorschau in voller Größe (sg-channelcard__stage) und daneben nur die Einstellungen dieses Kanals (sg-channelcard__settings).
   Der Stand steht in Worten da, ohne Limette. Der Abschnitt ist ein Raster aus Kopf und Inhalt; die Zeile des Inhalts geht von 0fr auf 1fr,
   so klappt er in jedem Browser auf und zu. Die Zeile des Kopfes ist max-content, nicht auto: Eine auto-Zeile würde sich im Übergang strecken. */
.sg-channelcards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
/* Seite Kanäle (SG-D35): Die Orte stehen mit Platz zu zweit nebeneinander, jeder so hoch wie sein Inhalt. */
.sg-channelcards--grid { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); align-items: start; }
.sg-channelcard { container: sg-channelcard / inline-size; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: max-content 0fr; grid-auto-rows: max-content; align-content: start; min-width: 0; padding: 0; border: 0; border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink); font: inherit; text-align: left; transition: grid-template-rows 450ms var(--sg-gentle), box-shadow 300ms var(--sg-gentle); }
.sg-channelcard:has(> .sg-channelcard__head .sg-switch:checked) { grid-template-rows: max-content 1fr; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent); }
/* Kopf: Symbol, Name mit einem Satz, Stand in Worten, Schalter */
.sg-channelcard__head { grid-row: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-1) var(--space-3); min-width: 0; padding: 14px var(--space-4); }
.sg-channelcard__head > .sg-symbol { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--fill); color: var(--ink); }
.sg-channelcard__head > .sg-symbol .sg-icon { width: 20px; height: 20px; }
.sg-channelcard__title { display: grid; gap: 2px; min-width: 0; }
.sg-channelcard__name { font-size: 15px; line-height: 22px; font-weight: 700; overflow-wrap: anywhere; }
.sg-channelcard__text { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.sg-channelcard__state { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-muted); text-align: right; }
/* Zwei Stände im Markup, etwa „Kommt mit Live“ und „Aus“: Zu sehen ist der, der zum Schalter passt. */
.sg-channelcard__on, .sg-channelcard:has(> .sg-channelcard__head .sg-switch:checked) .sg-channelcard__off { display: none; }
.sg-channelcard:has(> .sg-channelcard__head .sg-switch:checked) .sg-channelcard__on { display: inline; }
/* Inhalt: nur bei „an“. Er klappt mit der Zeile des Rasters auf und kommt dabei aus leichter Unschärfe; zugeklappt ist er auch für Tastatur
   und Vorleseprogramme weg (visibility). */
.sg-channelcard__body { grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: var(--space-5); min-width: 0; min-height: 0; padding: 0 var(--space-4); overflow: hidden; visibility: hidden; opacity: 0; filter: blur(4px); transition: padding 450ms var(--sg-gentle), opacity 200ms var(--sg-ease), filter 200ms var(--sg-ease), visibility 0s linear 450ms; }
.sg-channelcard:has(> .sg-channelcard__head .sg-switch:checked) > .sg-channelcard__body { padding-bottom: var(--space-4); visibility: visible; opacity: 1; filter: none; transition: padding 450ms var(--sg-gentle), opacity 360ms var(--sg-gentle) 90ms, filter 360ms var(--sg-gentle) 90ms, visibility 0s; }
/* Bühne der Vorschau: neutraler Grund wie sg-preview, darauf der Rahmen des Kanals aus ChannelPreview und eine Bildunterschrift */
.sg-channelcard__stage { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; gap: var(--space-3); min-width: 0; padding: var(--space-5); border-radius: var(--radius-sm); background: var(--ground-sunken); }
.sg-channelcard__stage > figcaption { justify-self: start; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.sg-channelcard__stage > .sg-paper { max-width: min(100%, 440px); }
.sg-channelcard__stage > :is(.sg-paper--landscape, .sg-device--display) { max-width: 100%; }
.sg-channelcard__settings { display: grid; align-content: start; gap: var(--space-4); min-width: 0; }
/* Ein Satz unter dem Kopf, wenn der Kanal noch nicht geht, mit der Handlung dazu („Mit Google verbinden“) */
.sg-channelcard__note { grid-row: 3; padding: 0 var(--space-4) var(--space-4) calc(var(--space-4) + 36px + var(--space-3)); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
/* Mit Platz stehen Bühne und Einstellungen nebeneinander. Das Maß ist die Breite des Abschnitts, nicht die der App. */
@container sg-channelcard (min-width: 820px) {
  .sg-channelcard__body { grid-template-columns: minmax(0, 1.55fr) minmax(240px, 1fr); }
}
/* Schmal: Der Stand rückt unter den Namen, der Schalter bleibt rechts oben. */
@container sg-channelcard (max-width: 559px) {
  .sg-channelcard__head { grid-template-columns: auto minmax(0, 1fr) auto; }
  .sg-channelcard__state { grid-column: 2 / -1; grid-row: 2; text-align: left; }
  .sg-channelcard__stage { padding: var(--space-4) var(--space-3); }
  .sg-channelcard__note { padding-left: var(--space-4); }
}
/* Im Paket nicht enthalten: Der ganze Abschnitt ist ein Knopf und öffnet das Blatt zum Paket */
button.sg-channelcard { cursor: pointer; }
button.sg-channelcard:hover { box-shadow: 0 0 0 1px var(--line-control); }
button.sg-channelcard:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sg-channelcard.sg-locked .sg-symbol, .sg-channelcard--later .sg-symbol { color: var(--ink-subtle); }
.sg-channelcard.sg-locked .sg-channelcard__text, .sg-channelcard--later .sg-channelcard__text, .sg-channelcard--later .sg-channelcard__name { color: var(--ink-subtle); }
/* Kommt später: steht da, lässt sich aber nicht einschalten */
.sg-channelcard--later { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
/* Laufzeit und Publikum, der erste Abschnitt im Schritt Kanäle (SG-D30): derselbe Bau wie ein Kanal, ohne Schalter und immer offen. */
.sg-channelcard--open { grid-template-rows: max-content 1fr; }
.sg-channelcard--open > .sg-channelcard__body { padding-bottom: var(--space-4); visibility: visible; opacity: 1; filter: none; }
/* Steht im Körper nur ein Stück, etwa nur der Satz zur Laufzeit, nimmt es die volle Breite. */
.sg-channelcard__body > :only-child { grid-column: 1 / -1; }
/* Der Kopf eines Orts auf der Seite Kanäle ist der Kopf des Kanals ohne Schalter (SG-D35). Braucht der Ort den Betrieb, steht sein Stand im Ton des Hinweises.
   Die Karten eines Orts stehen als Liste ohne eigene Fläche im Abschnitt. */
.sg-channelcard__state.sg-tone-warning { color: var(--warning); }
.sg-channelcard__body > .sg-list--plain { margin-block: 0; }

/* Bühne der Showtime: die dunkle Fläche, auf der eine Karte live geht. Sie trägt data-theme="dark".
   sg-stage--showtime spielt den Moment: Ein Lichtkegel in Limette zieht in 2600 ms über die Bühne, die Kanäle gehen im Abstand von 520 ms auf „Live“,
   dann wechselt die Überschrift. Der Endzustand ist der Grundzustand der Klasse; die Bewegung liegt nur davor. sg-stage--live ist derselbe Stand ohne Bewegung. */
.sg-stage { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-xl); background: var(--dark); color: var(--on-dark); }
.sg-stage__light { position: absolute; z-index: -1; top: -40%; bottom: -40%; left: -50%; width: 100%; background: radial-gradient(40% 55% at 50% 30%, color-mix(in srgb, var(--limette) 34%, transparent), transparent 70%); opacity: 0; pointer-events: none; }
.sg-stage__head { display: grid; }
.sg-stage__head > * { grid-area: 1 / 1; display: grid; align-content: start; gap: var(--space-1); }
.sg-stage__head p { color: var(--on-dark-muted); }
.sg-stage__after, .sg-stage__live { visibility: hidden; opacity: 0; }
.sg-stage__channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: var(--space-2); }
.sg-stage__channel { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 48px; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--fill); font-weight: 600; }
.sg-stage__name { display: flex; align-items: center; gap: var(--space-2); min-width: 0; overflow-wrap: anywhere; }
.sg-stage__status { display: grid; justify-items: end; flex: none; }
.sg-stage__status > * { grid-area: 1 / 1; }
.sg-stage__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.sg-stage:is(.sg-stage--showtime, .sg-stage--live) :is(.sg-stage__before, .sg-stage__ready) { visibility: hidden; opacity: 0; }
.sg-stage:is(.sg-stage--showtime, .sg-stage--live) :is(.sg-stage__after, .sg-stage__live) { visibility: visible; opacity: 1; }
.sg-stage:is(.sg-stage--showtime, .sg-stage--live) .sg-stage__light { opacity: 0.85; transform: translateX(85%); }
.sg-stage--showtime .sg-stage__light { animation: sg-stage-light 2600ms var(--sg-gentle) backwards; }
.sg-stage--showtime .sg-stage__ready { animation: sg-stage-hold 1ms linear backwards; animation-delay: calc(500ms + var(--sg-i, 0) * 520ms); }
.sg-stage--showtime .sg-stage__live { animation: sg-stage-pill 900ms var(--sg-gentle) backwards; animation-delay: calc(500ms + var(--sg-i, 0) * 520ms); }
.sg-stage--showtime .sg-stage__before { animation: sg-stage-hold 1ms linear backwards; animation-delay: calc(500ms + var(--sg-n, 3) * 520ms); }
.sg-stage--showtime .sg-stage__after { animation: sg-stage-in 700ms var(--sg-gentle) backwards; animation-delay: calc(500ms + var(--sg-n, 3) * 520ms); }
.sg-stage__channel:nth-child(2) { --sg-i: 1; }
.sg-stage__channel:nth-child(3) { --sg-i: 2; }
.sg-stage__channel:nth-child(4) { --sg-i: 3; }
.sg-stage__channel:nth-child(5) { --sg-i: 4; }
.sg-stage__channel:nth-child(n+6) { --sg-i: 5; }
.sg-stage:has(.sg-stage__channel:nth-child(1):last-child) { --sg-n: 1; }
.sg-stage:has(.sg-stage__channel:nth-child(2):last-child) { --sg-n: 2; }
.sg-stage:has(.sg-stage__channel:nth-child(4):last-child) { --sg-n: 4; }
.sg-stage:has(.sg-stage__channel:nth-child(5):last-child) { --sg-n: 5; }
.sg-stage:has(.sg-stage__channel:nth-child(n+6):last-child) { --sg-n: 6; }
@keyframes sg-stage-light { 0% { opacity: 0; transform: translateX(5%); } 30% { opacity: 1; } }
@keyframes sg-stage-hold { from, to { visibility: visible; opacity: 1; } }
@keyframes sg-stage-pill { 0% { visibility: hidden; opacity: 0; } 1% { visibility: visible; opacity: 0.4; transform: scale(0.85); filter: blur(4px); box-shadow: 0 0 0 0 var(--limette); } 60% { box-shadow: 0 0 0 10px transparent; } }
@keyframes sg-stage-in { 0% { visibility: hidden; opacity: 0; } 1% { visibility: visible; opacity: 0; transform: translateY(6px); filter: blur(4px); } }
/* Weniger Bewegung gewünscht: Der Stand steht sofort da. */
@media (prefers-reduced-motion: reduce) {
  .sg .sg-stage--showtime :is(.sg-stage__light, .sg-stage__ready, .sg-stage__live, .sg-stage__before, .sg-stage__after) { animation: none !important; }
}

/* ============ 15 Erklären, was es bewirkt (freigegeben am 20.11.2026) ============ */
/* Die App sagt, was eine Einstellung bewirkt, und liest die Eingabe als Satz zurück. Vorbild ist die Laufzeit einer Karte.
   Karte „Was … bewirkt“: neben dem Formular, zwei bis vier Sätze in der Schrift der Seite. Am Telefon und im Blatt steht sie unter den Feldern. */
.sg-explain { display: grid; gap: var(--space-3); align-content: start; min-width: 0; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-size: 15px; line-height: 22px; }
.sg-explain > ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sg-explain > ul > li { position: relative; padding-left: var(--space-5); }
/* Über die volle Breite, wenn daneben kein Platz ist (Kalender): Die Sätze stehen in Spalten, schmal untereinander. */
.sg-explain--wide > ul { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); column-gap: var(--space-6); }
.sg-explain > ul > li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-subtle); }
/* Liegt schon eine Fläche darunter (Blatt, Karte), steht sie ohne Rahmen auf dem ruhigen Grund. */
.sg-explain--sunken { background: var(--ground-sunken); box-shadow: none; }
/* Kasten „So …“: unter den Feldern. Er liest die Eingabe als Satz zurück und hat überall dieselbe Farbe. Was aus der Eingabe stammt, steht fett. */
.sg-outcome { display: grid; gap: var(--space-1); min-width: 0; padding: 14px var(--space-4); border-radius: var(--radius-md); background: var(--info-soft); color: var(--ink); font-size: 15px; line-height: 22px; }
.sg-outcome__title { display: flex; align-items: center; gap: var(--space-2); font-weight: 700; }
.sg-outcome__title > .sg-icon { flex: none; color: var(--info); }
.sg-outcome b { font-weight: 700; }

/* ============ 16 Kalender: was wann gilt (SG-D30, SG-D40) ============ */

/* Der Kalender zeigt Karten, Anlässe und Termine im Jahr nach der Zeit. Er zeigt nur; bearbeitet wird in der Karte oder im Anlass.
   Mit Platz zeigt er Monat, Woche oder Jahr, jede Ansicht in ihrer Form (SG-D40, weiter unten), schmal eine Liste nach Tagen (sg-calendar__list).
   Beides steht im Markup, das Stylesheet zeigt je nach Breite des Kalenders eines davon. */
.sg-calendar { container: sg-calendar / inline-size; display: grid; gap: var(--space-4); min-width: 0; }
/* Karte „Was der Kalender zeigt“: im Quelltext zuletzt. Schmal steht sie unter der Liste, ab 744 px über den Werkzeugen; das Monatsblatt
   braucht die ganze Breite. */
@container sg-calendar (min-width: 744px) { .sg-calendar > .sg-explain { order: -1; } }
.sg-calendar__list { display: grid; gap: var(--space-5); min-width: 0; }
/* Der Umschalter für die Ansicht (Woche, Monat, Jahr) entfällt in der Liste. */
.sg-calendar__zoom { display: none; }
@container sg-calendar (min-width: 744px) {
  .sg-calendar__list { display: none; }
  .sg-calendar__zoom { display: inline-flex; }
}
/* Balken einer Karte mit Zeitraum. Kräftig in der Laufzeit, hell ab „Gäste sehen es ab“ (sg-calendar__bar--announce, direkt davor).
   Geplant trägt die Farbe der Karten, live Limette, beendet Grau. Der Rand in der Schriftstufe der Farbe hält den Kontrast zur Fläche. */
.sg-calendar__bar, .sg-calendar__dot { --sg-c: var(--blaubeere); --sg-c-soft: var(--blaubeere-soft); --sg-c-text: var(--blaubeere-text); }
.sg-calendar__bar--live, .sg-calendar__dot--live { --sg-c: var(--limette); --sg-c-soft: var(--limette-soft); --sg-c-text: var(--limette-text); }
.sg-calendar__bar--ended, .sg-calendar__dot--ended { --sg-c: var(--fill-strong); --sg-c-soft: var(--fill); --sg-c-text: var(--ink-subtle); }
.sg-calendar__bar { grid-row: 1; position: relative; z-index: 1; display: block; height: 20px; min-width: 6px; border-radius: var(--radius-pill); background: var(--sg-c); box-shadow: inset 0 0 0 1.5px var(--sg-c-text); }
.sg-calendar__bar--announce { border-radius: var(--radius-pill) 0 0 var(--radius-pill); background: var(--sg-c-soft); }
.sg-calendar__bar--announce + .sg-calendar__bar { margin-left: -1.5px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
/* Der Balken beginnt vor dem Ausschnitt oder läuft über ihn hinaus: Das Ende ist dort gerade. */
.sg-calendar__bar--cut-start { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.sg-calendar__bar--cut-end { border-top-right-radius: 0; border-bottom-right-radius: 0; }
/* Vorjahr: blass, nur ein gestrichelter Umriss */
.sg-calendar__bar--past { background: none; box-shadow: none; border: 1.5px dashed var(--ink-subtle); }
/* Marke am Tag mit Wort: Anlass (Punkt in Azur), Termin im Jahr, eigener Termin oder etwas von Hand (Icon). */
.sg-calendar__mark { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; justify-self: start; max-width: 100%; min-height: 28px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); text-decoration: none; }
.sg-calendar__mark > span:not(.sg-icon, .sg-calendar__dot) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-calendar__mark > .sg-icon { flex: none; color: var(--ink-muted); }
a.sg-calendar__mark:hover { text-decoration: underline; text-underline-offset: 3px; }
a.sg-calendar__mark:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-radius: var(--radius-xs); }
.sg-calendar__dot { flex: none; width: 10px; height: 10px; margin: 0 1px; border-radius: 50%; background: var(--sg-c); box-shadow: 0 0 0 1.5px var(--sg-c-text); }
.sg-calendar__mark > .sg-calendar__dot, .sg-calendar__dot--anlass { --sg-c: var(--azur); --sg-c-text: var(--azur-text); }
/* Dauerhafte Karten: ein Band über jeder Ansicht, vorn das Wort „Dauerhaft:“ (sg-calendar__lead), dann die Namen. Limette trägt nur der Punkt einer Karte, die live ist. */
.sg-calendar__always { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-4); min-height: 28px; padding: var(--space-1) var(--space-3); border-radius: var(--radius-md); background: var(--ground-sunken); font-size: 13px; line-height: 18px; font-weight: 600; }
.sg-calendar__always > * { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.sg-calendar__always > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sg-calendar__always > a:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-radius: var(--radius-xs); }
.sg-calendar__legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sg-calendar__legend > span { display: inline-flex; align-items: center; gap: 6px; }
.sg-calendar__legend .sg-calendar__bar { flex: none; width: 28px; height: 12px; }
.sg-calendar__legend .sg-calendar__bar--announce { border-radius: var(--radius-pill); }
/* Werkzeuge über dem Kalender: der Name des Ausschnitts neben „Früher“, „Heute“, „Später“ und die Auswahl des Standorts */
.sg-calendar__title { margin-left: var(--space-2); }
.sg-calendar__place { min-width: 180px; }
/* Kalender nach SG-D40: eine Frage je Ansicht, jede in ihrer Form. Monat (sg-calendar__month): ein Monatsblatt mit Balken über die Tage.
   Woche (sg-calendar__week): Tage als Spalten, die Uhrzeit von oben nach unten, oben ganztägig. Jahr (sg-calendar__year): zwölf kleine Monate.
   Unter 744 px Breite des Kalenders steht statt ihrer die Liste nach Tagen. */
.sg-calendar__month, .sg-calendar__week, .sg-calendar__year { display: none; min-width: 0; }
@container sg-calendar (min-width: 744px) {
  .sg-calendar__month, .sg-calendar__week, .sg-calendar__year { display: grid; }
}
.sg-calendar__lead { color: var(--ink-muted); font-weight: 500; }
/* Monat: je Woche eine Zeile aus sieben Tagen. Balken liegen über den Tagen (--von erster Tag der Woche, --len Tage, --zeile Zeile der Balken),
   --sg-bars an der Woche nennt, wie viele Zeilen die Balken brauchen. Was an einem Tag steht, steht darunter im Tag. */
.sg-calendar__month { grid-template-columns: minmax(0, 1fr); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.sg-calendar__dow, .sg-calendar__weekrow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 0; }
.sg-calendar__dow { padding: var(--space-2) 0 6px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-subtle); }
.sg-calendar__dow > * { padding: 0 var(--space-3); }
.sg-calendar__weekrow { --sg-bars: 0; position: relative; box-shadow: 0 -1px 0 var(--line); }
.sg-calendar__day { grid-row: 1; grid-column: var(--tag, auto); position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 1px; min-width: 0; min-height: 104px; padding: calc(36px + var(--sg-bars) * 26px) 6px 6px; }
.sg-calendar__day + .sg-calendar__day { box-shadow: -1px 0 0 var(--line); }
.sg-calendar__day--out { background: var(--ground-sunken); }
.sg-calendar__date { position: absolute; inset: 0 0 auto; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 6px; border: 0; background: none; font: inherit; font-size: 13px; line-height: 18px; color: var(--ink); text-align: left; text-decoration: none; white-space: nowrap; overflow: hidden; }
:is(a, button).sg-calendar__date { cursor: pointer; }
.sg-calendar__date > b { flex: none; display: grid; place-content: center; min-width: 26px; height: 26px; padding: 0 4px; border-radius: var(--radius-pill); font-weight: 600; font-variant-numeric: tabular-nums; }
.sg-calendar__day--out > .sg-calendar__date > b { color: var(--ink-subtle); }
:is(a, button).sg-calendar__date:hover > b { background: var(--fill-strong); }
.sg-calendar__date[aria-current="date"] > b, .sg-calendar__date[aria-current="date"]:hover > b { background: var(--ink); color: var(--surface); font-weight: 700; }
:is(a, button).sg-calendar__date:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--radius-xs); }
.sg-calendar__holiday { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }
.sg-calendar__day > .sg-calendar__mark { display: flex; min-height: 22px; font-size: 12px; line-height: 16px; }
/* Balken mit Namen: im Monat und im ganztägigen Teil der Woche. Der Name steht im Balken, dahinter klein der Stand; er weicht zuerst, wenn der Platz fehlt. */
.sg-calendar__weekrow > .sg-calendar__bar, .sg-calendar__allday > .sg-calendar__bar { display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 var(--space-2); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--on-farbe); text-decoration: none; white-space: nowrap; overflow: hidden; }
.sg-calendar__weekrow > .sg-calendar__bar { grid-column: var(--von, 1) / span var(--len, 1); align-self: start; margin: calc(36px + (var(--zeile, 1) - 1) * 26px) 3px 0; }
.sg-calendar__weekrow > .sg-calendar__bar--cut-start, .sg-calendar__allday > .sg-calendar__bar--cut-start { margin-left: 0; }
.sg-calendar__weekrow > .sg-calendar__bar--cut-end, .sg-calendar__allday > .sg-calendar__bar--cut-end { margin-right: 0; }
.sg-calendar__bar > span:not(.sg-icon, .sg-sr) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sg-calendar__bar > small { flex: 0 100000 auto; min-width: 0; overflow: hidden; font-size: 12px; font-weight: 500; }
.sg-calendar__bar > .sg-icon { flex: none; width: 14px; height: 14px; }
.sg-calendar__bar.sg-calendar__bar--announce, .sg-calendar__bar.sg-calendar__bar--note { color: var(--ink); }
.sg-calendar__bar.sg-calendar__bar--ended, .sg-calendar__bar.sg-calendar__bar--past { color: var(--ink-muted); }
a.sg-calendar__bar:hover > span:not(.sg-icon, .sg-sr) { text-decoration: underline; text-underline-offset: 3px; }
a.sg-calendar__bar:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
/* Eigener Termin über mehrere Tage: ein Umriss ohne Farbe, denn er zeigt nur. Zwei Karten auf demselben Platz: Rand und Zeichen der Warnung. */
.sg-calendar__bar--note { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-control); }
/* Woche: links die Uhrzeit, daneben sieben Tage. Kopf mit den Tagen, darunter ganztägig (Balken und Marken in Zeilen), darunter die Uhrzeiten.
   --sg-n an sg-calendar__times nennt die Zahl der halben Stunden, ein Block seine erste halbe Stunde in --von und seine Dauer in --len. */
.sg-calendar__week { --sg-gutter: 76px; grid-template-columns: minmax(0, 1fr); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.sg-calendar__weekhead, .sg-calendar__allday, .sg-calendar__times { display: grid; grid-template-columns: var(--sg-gutter) repeat(7, minmax(0, 1fr)); min-width: 0; }
.sg-calendar__dayhead { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 6px; min-width: 0; min-height: 48px; padding: var(--space-1) var(--space-2); border: 0; background: none; font: inherit; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-subtle); text-align: left; text-decoration: none; }
:is(a, button).sg-calendar__dayhead { cursor: pointer; }
.sg-calendar__dayhead > b { justify-self: start; display: grid; place-content: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: var(--radius-pill); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.sg-calendar__dayhead > small { grid-column: 1 / -1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }
:is(a, button).sg-calendar__dayhead:hover > b { background: var(--fill-strong); }
.sg-calendar__dayhead[aria-current="date"] > b, .sg-calendar__dayhead[aria-current="date"]:hover > b { background: var(--ink); color: var(--surface); font-weight: 700; }
:is(a, button).sg-calendar__dayhead:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--radius-xs); }
.sg-calendar__allday { --sg-bars: 1; grid-template-rows: repeat(var(--sg-bars), 26px); align-items: center; padding: var(--space-1) 0 6px; box-shadow: 0 -1px 0 var(--line); }
.sg-calendar__gutter { grid-column: 1; grid-row: 1; min-width: 0; padding: 0 var(--space-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 16px; color: var(--ink-subtle); text-align: right; }
.sg-calendar__allday > :is(.sg-calendar__bar, .sg-calendar__mark) { grid-column: calc(var(--von, 1) + 1) / span var(--len, 1); grid-row: var(--zeile, 1); margin: 0 3px; }
.sg-calendar__allday > .sg-calendar__mark { min-height: 22px; font-size: 12px; line-height: 16px; }
.sg-calendar__times { --sg-n: 26; --sg-slot: 20px; grid-template-rows: repeat(var(--sg-n), var(--sg-slot)); box-shadow: 0 -1px 0 var(--line);
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px), linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 100% calc(var(--sg-slot) * 2), calc((100% - var(--sg-gutter)) / 7) 100%; background-position: 0 0, var(--sg-gutter) 0; }
.sg-calendar__hour { grid-column: 1; grid-row: var(--von, 1) / span 2; align-self: start; padding: 2px var(--space-2) 0; font-size: 12px; line-height: 16px; color: var(--ink-subtle); font-variant-numeric: tabular-nums; text-align: right; }
.sg-calendar__todaycol { grid-column: calc(var(--tag, 1) + 1); grid-row: 1 / -1; background: var(--fill); pointer-events: none; }
/* Block zu einer Uhrzeit: eine Karte mit festen Zeiten oder ein Anlass. Stehen zwei zur selben Zeit, nennt --teile ihre Zahl und --teil den Platz. */
.sg-calendar__block { --sg-c: var(--blaubeere); --sg-c-text: var(--blaubeere-text); grid-column: calc(var(--tag, 1) + 1); grid-row: var(--von, 1) / span var(--len, 2); position: relative; z-index: 1; display: grid; align-content: start; min-width: 0; width: calc((100% - 4px) / var(--teile, 1)); margin: 1px 0 1px calc(2px + (100% - 4px) / var(--teile, 1) * (var(--teil, 1) - 1)); padding: 3px 6px; border-radius: var(--radius-xs); background: var(--sg-c); box-shadow: inset 0 0 0 1.5px var(--sg-c-text); font-size: 12px; line-height: 16px; color: var(--on-farbe); text-decoration: none; overflow: hidden; }
.sg-calendar__block--live { --sg-c: var(--limette); --sg-c-text: var(--limette-text); }
.sg-calendar__block--anlass { --sg-c: var(--azur); --sg-c-text: var(--azur-text); }
.sg-calendar__block > b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-calendar__block > span:not(.sg-sr) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
a.sg-calendar__block:hover > b { text-decoration: underline; text-underline-offset: 3px; }
a.sg-calendar__block:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
/* Jahr: zwölf kleine Monate. Ein Tag ist gefärbt, wenn eine Karte mit Zeitraum gilt, gestrichelt, wenn dort letztes Jahr etwas lief, und trägt einen Stern bei einem Termin im Jahr. */
.sg-calendar__year { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: var(--space-3); }
.sg-calendar__mini { display: grid; align-content: start; gap: var(--space-2); min-width: 0; padding: var(--space-3); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; }
.sg-calendar__mini > b { font-size: 13px; line-height: 18px; font-weight: 600; }
/* Unter dem Zeiger: ein Rand von 2 px in der Schriftfarbe (weit über 3 : 1 zu Fläche und Grund), und der Monat hebt sich wie jede Karte, die ein Weg ist. */
a.sg-calendar__mini { transition: box-shadow 320ms var(--sg-soft), transform 320ms var(--sg-soft); }
a.sg-calendar__mini:hover { box-shadow: 0 0 0 2px var(--ink); transform: translateY(-2px); }
a.sg-calendar__mini:hover > b { text-decoration: underline; text-underline-offset: 3px; }
a.sg-calendar__mini:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sg-calendar__minigrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.sg-calendar__d { position: relative; display: grid; place-content: center; aspect-ratio: 1; min-width: 0; border-radius: var(--radius-xs); font-style: normal; font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.sg-calendar__d--plan { background: var(--blaubeere-soft); color: var(--ink); }
.sg-calendar__d--live { background: var(--limette-soft); color: var(--ink); font-weight: 700; }
.sg-calendar__d--ended { background: var(--fill-strong); }
.sg-calendar__d--past { outline: 1px dashed var(--ink-subtle); outline-offset: -1px; }
.sg-calendar__d[aria-current="date"] { border-radius: 50%; background: var(--ink); color: var(--surface); font-weight: 700; outline: 0; }
.sg-calendar__d > .sg-icon { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; color: var(--ink); }
.sg-calendar__lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--space-5); min-width: 0; }

/* Assistent: eine Seite ohne Seitenleiste, die durch feste Schritte führt (Einstieg, Import, Zwei-Faktor). Oben stehen das Logo und der Weg
   hinaus, darunter der Strahl (sg-flow), der Inhalt des Schritts und zuletzt seine Knöpfe. Seine Breite misst der Assistent an sich selbst. */
.sg-wizard { display: flex; flex-direction: column; min-height: 100dvh; background: var(--ground); container: sg-wizard / inline-size; }
.sg-wizard__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 64px; padding: var(--space-2) var(--space-4); }
.sg-wizard__main { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--space-6); width: min(100% - 2 * var(--space-4), 640px); margin-inline: auto; padding: var(--space-4) 0 var(--space-12); }
.sg-wizard--wide > .sg-wizard__main { width: min(100% - 2 * var(--space-4), 1040px); }
/* Die Knöpfe des Schritts stehen rechts, die Hauptaktion zuletzt. Passen sie nicht in eine Zeile, steht die Hauptaktion oben. */
.sg-wizard__actions { display: flex; flex-wrap: wrap-reverse; align-items: center; justify-content: flex-end; gap: var(--space-2); }
.sg-wizard__split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: start; }
@container sg-wizard (min-width: 744px) { .sg-wizard__head { padding-inline: var(--space-6); } }
@container sg-wizard (min-width: 900px) { .sg-wizard__split { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); } }

/* Code zum Kopieren: der Code für die eigene Website, Wiederherstellungscodes. Festbreitenschrift auf ruhigem Grund; lange Zeilen brechen um.
   Als Liste steht je Code ein Eintrag, in so vielen Spalten, wie Platz ist. */
.sg-code { margin: 0; padding: var(--space-4); border-radius: var(--radius-md); background: var(--ground-sunken); color: var(--ink); font-family: var(--font-mono); font-size: 13px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.sg-code--list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(112px, 100%), 1fr)); gap: var(--space-2) var(--space-4); list-style: none; white-space: normal; }
