/* SHIO UI-Baukasten (Tablet, Kueche, Service). Setzt tokens.css und fonts.css voraus:
   <link rel="stylesheet" href="/shared/tokens.css"><link rel="stylesheet" href="/shared/fonts.css"><link rel="stylesheet" href="/shared/ui.css">
   Stil wie der Flyer: schwarz, gold, weiss. Keine Frameworks. Beruehrflaechen mindestens 48 px.
   Uebersicht aller Bausteine: /shared/kit.html
   :hover nur in @media (hover: hover) and (pointer: fine): iPad-Safari haelt :hover nach dem Antippen fest. */

:root {
  --ui-fokus: var(--gold-hell);
  --ui-gold-text: #1a1408;
  --ui-kante: 1px solid var(--linie);
  --ui-kante-stark: 1px solid var(--linie-stark);
  --ui-gold-linie: linear-gradient(90deg, transparent, rgba(201, 168, 106, .7) 18%, rgba(233, 213, 166, .9) 50%, rgba(201, 168, 106, .7) 82%, transparent);
  --ui-schatten-gold: 0 10px 28px -12px rgba(201, 168, 106, .6);
  --ui-dauer: 220ms;
  --ui-dauer-lang: 380ms;
  --icon-strich: 1.75;

  /* Typografie-Skala (fliessend, Tablet 1024 bis 1366 px Breite) */
  --fs-display: clamp(2.6rem, 1.4rem + 3.2vw, 4.25rem);
  --fs-h1: clamp(1.9rem, 1.2rem + 1.8vw, 2.75rem);
  --fs-h2: clamp(1.45rem, 1.05rem + 1vw, 1.9rem);
  --fs-h3: 1.2rem;
  --fs-text: 1rem;
  --fs-klein: .875rem;
  --fs-mini: .75rem;
  --fs-label: .72rem;
}

/* ---------- Grundstil ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--schwarz);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }
::selection { background: rgba(201, 168, 106, .35); color: var(--weiss); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ui-fokus); outline-offset: 3px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: var(--flaeche-3) transparent; }

/* Bedienelemente: kein Blitzen beim Antippen, kein versehentliches Markieren, kein Doppeltipp-Zoom */
button, .knopf, [role="button"], .zaehlwerk, .pinfeld, .pille, label, summary {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

/* ---------- Typografie ---------- */
.t-display, .t-h1, .t-h2, .t-h3 { color: var(--weiss); font-weight: 500; line-height: 1.12; letter-spacing: -.005em; text-wrap: balance; }
.t-display { font-size: var(--fs-display); font-weight: 300; letter-spacing: .01em; }
.t-h1 { font-size: var(--fs-h1); font-weight: 400; }
.t-h2 { font-size: var(--fs-h2); }
.t-h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; }
.t-text { font-size: var(--fs-text); color: var(--text); }
.t-leise { color: var(--text-2); }
.t-klein { font-size: var(--fs-klein); color: var(--text-2); line-height: 1.45; }
.t-mini { font-size: var(--fs-mini); color: var(--text-3); line-height: 1.4; }
.t-label { font-size: var(--fs-label); font-weight: 600; text-transform: uppercase; letter-spacing: var(--sperrung); color: var(--gold); line-height: 1.3; }
.t-versal { text-transform: uppercase; letter-spacing: var(--sperrung); }
.t-schrift { font-family: var(--font-schrift); font-weight: 400; letter-spacing: 0; line-height: 1.1; color: var(--gold); }
.t-gold {
  background: var(--gold-verlauf); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-block: .06em; /* Verlauf faellt sonst an Unterlaengen ab */
}
.t-zahl { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.t-zentriert { text-align: center; }

.icon {
  width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.25em;
  fill: none; stroke: currentColor; stroke-width: var(--icon-strich); stroke-linecap: round; stroke-linejoin: round;
}
.icon--gross { width: 1.6em; height: 1.6em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.gold-linie { height: 1px; border: 0; margin: 0; background: var(--ui-gold-linie); }
.trenner { height: 1px; border: 0; margin: 0; background: var(--linie); }

/* ---------- Knoepfe ---------- */
.knopf {
  --k-hoehe: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--k-hoehe); min-width: var(--k-hoehe);
  padding: 0 1.35em;
  border: 1px solid var(--linie-stark); border-radius: 999px;
  background: var(--flaeche-2); color: var(--weiss);
  font-size: .95rem; font-weight: 600; letter-spacing: .02em; line-height: 1.1; text-align: center; text-decoration: none;
  cursor: pointer; position: relative; isolation: isolate;
  transition: transform 150ms var(--ease), background-color var(--ui-dauer) var(--ease), border-color var(--ui-dauer) var(--ease), box-shadow var(--ui-dauer) var(--ease), opacity var(--ui-dauer) var(--ease), color var(--ui-dauer) var(--ease);
}
@media (hover: hover) and (pointer: fine) { .knopf:hover { background: var(--flaeche-3); border-color: rgba(255, 255, 255, .24); } }
.knopf:active { transform: scale(.97); }
.knopf:focus-visible { outline: 2px solid var(--ui-fokus); outline-offset: 3px; border-radius: 999px; }
.knopf[disabled], .knopf[aria-disabled="true"] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; filter: saturate(.35); }
.knopf .icon { width: 1.2em; height: 1.2em; }

.knopf--gold {
  background: var(--gold-verlauf); color: var(--ui-gold-text); border-color: rgba(243, 227, 184, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 0, .18), var(--ui-schatten-gold);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .22);
}
@media (hover: hover) and (pointer: fine) { .knopf--gold:hover { background: var(--gold-verlauf); filter: brightness(1.06) saturate(1.04); border-color: rgba(243, 227, 184, .8); } }
.knopf--gold .icon { --icon-strich: 2; }

.knopf--leise { background: transparent; border-color: var(--linie-stark); color: var(--text); }
@media (hover: hover) and (pointer: fine) { .knopf--leise:hover { background: rgba(255, 255, 255, .05); border-color: rgba(201, 168, 106, .55); color: var(--weiss); } }
.knopf--linie-gold { background: transparent; border-color: rgba(201, 168, 106, .6); color: var(--gold-hell); }
@media (hover: hover) and (pointer: fine) { .knopf--linie-gold:hover { background: var(--gold-glanz); border-color: var(--gold); } }
.knopf--gefahr { background: rgba(238, 90, 82, .12); border-color: rgba(238, 90, 82, .55); color: #ffb9b3; }
@media (hover: hover) and (pointer: fine) { .knopf--gefahr:hover { background: rgba(238, 90, 82, .2); border-color: var(--alarm); color: #ffd3cf; } }
.knopf--ok { background: rgba(79, 207, 141, .12); border-color: rgba(79, 207, 141, .5); color: #a8f0c9; }
.knopf--gross { --k-hoehe: 60px; padding: 0 1.8em; font-size: 1.08rem; }
.knopf--riesig { --k-hoehe: 72px; padding: 0 2.2em; font-size: 1.2rem; }
.knopf--rund { padding: 0; width: var(--k-hoehe); border-radius: 50%; }
.knopf--rund.knopf--gross { width: 60px; }
.knopf--block { display: flex; width: 100%; }
.knopf--eckig { border-radius: var(--radius); }
.knopf--eckig:focus-visible { border-radius: var(--radius); }
.knopf__zahl {
  min-width: 1.6em; height: 1.6em; padding: 0 .45em; border-radius: 999px; display: inline-grid; place-items: center;
  background: rgba(0, 0, 0, .78); color: var(--gold-hell); font-size: .8em; font-weight: 700; font-variant-numeric: tabular-nums;
}
.knopf:not(.knopf--gold) .knopf__zahl { background: var(--gold); color: var(--ui-gold-text); }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Pillen ---------- */
.pille {
  display: inline-flex; align-items: center; gap: .4em; min-height: 26px; padding: 3px 11px;
  border: 1px solid var(--linie-stark); border-radius: 999px; background: rgba(255, 255, 255, .03);
  color: var(--text-2); font-size: var(--fs-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; white-space: nowrap;
  vertical-align: middle;
}
.pille .icon { width: 1.25em; height: 1.25em; }
.pille--gold { border-color: rgba(201, 168, 106, .55); color: var(--gold-hell); background: var(--gold-glanz); }
.pille--ok { border-color: rgba(79, 207, 141, .45); color: #9be8bf; background: rgba(79, 207, 141, .1); }
.pille--warn { border-color: rgba(240, 181, 69, .5); color: #ffd48a; background: rgba(240, 181, 69, .1); }
.pille--alarm { border-color: rgba(238, 90, 82, .55); color: #ffb3ad; background: rgba(238, 90, 82, .12); }
.pille--punkt::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
/* Kennzeichnung ausgedachter Werte (Bauplan Regel 5): leer lassen = "Beispiel", sonst eigener (uebersetzter) Text */
.pille--beispiel {
  min-height: 20px; padding: 1px 8px; gap: .3em;
  border-color: rgba(201, 168, 106, .5); background: transparent; color: var(--gold);
  font-size: .62rem; letter-spacing: .14em; font-weight: 600;
}
.pille--beispiel:empty::before { content: "Beispiel"; }

/* ---------- Karten ---------- */
.karte {
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 40%), var(--flaeche);
  border: var(--ui-kante); border-radius: var(--radius-l); padding: 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset;
}
.karte--glas { background: var(--glas); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); border-color: rgba(255, 255, 255, .1); }
.karte--gold { border-color: rgba(201, 168, 106, .45); box-shadow: 0 0 0 1px rgba(201, 168, 106, .08) inset, 0 18px 40px -24px rgba(201, 168, 106, .35); }
.karte--flach { padding: 0; overflow: hidden; }
.karte--klickbar { cursor: pointer; transition: transform 160ms var(--ease), border-color var(--ui-dauer) var(--ease), background-color var(--ui-dauer) var(--ease); -webkit-tap-highlight-color: transparent; }
@media (hover: hover) and (pointer: fine) { .karte--klickbar:hover { border-color: rgba(201, 168, 106, .35); } }
.karte--klickbar:active { transform: scale(.985); }
.karte__kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.karte__titel { font-size: var(--fs-h3); font-weight: 600; color: var(--weiss); line-height: 1.3; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Eingaben ---------- */
.feld { display: grid; gap: 7px; }
.feld__label { font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--sperrung); text-transform: uppercase; color: var(--text-2); }
.feld__hinweis { font-size: var(--fs-mini); color: var(--text-3); }
.feld--fehler .eingabe { border-color: rgba(238, 90, 82, .7); }
.feld--fehler .feld__hinweis { color: #ffb3ad; }
.eingabe {
  width: 100%; min-height: 48px; padding: 0 16px;
  background: var(--flaeche-2); color: var(--weiss);
  border: var(--ui-kante-stark); border-radius: 14px;
  font-size: 1rem; line-height: 1.3;
  transition: border-color var(--ui-dauer) var(--ease), box-shadow var(--ui-dauer) var(--ease), background-color var(--ui-dauer) var(--ease);
  -webkit-appearance: none; appearance: none;
}
textarea.eingabe { padding: 12px 16px; min-height: 96px; resize: vertical; }
select.eingabe {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a86a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.eingabe::placeholder { color: var(--text-3); }
@media (hover: hover) and (pointer: fine) { .eingabe:hover { border-color: rgba(255, 255, 255, .24); } }
.eingabe:focus, .eingabe:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 168, 106, .22); background: var(--flaeche-3); }
.eingabe[disabled] { opacity: .5; }
input[type="date"].eingabe, input[type="time"].eingabe { color-scheme: dark; }

/* ---------- Zaehlwerk (Stepper: - Zahl +) ---------- */
.zaehlwerk { display: inline-flex; align-items: center; gap: 6px; padding: 5px; border: var(--ui-kante-stark); border-radius: 999px; background: var(--flaeche-2); }
.zaehlwerk__knopf {
  width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--flaeche-3); color: var(--weiss); cursor: pointer;
  transition: transform 140ms var(--ease), background-color var(--ui-dauer) var(--ease), opacity var(--ui-dauer) var(--ease);
}
.zaehlwerk__knopf .icon { width: 22px; height: 22px; --icon-strich: 2; }
@media (hover: hover) and (pointer: fine) { .zaehlwerk__knopf:hover { background: #29303a; } }
.zaehlwerk__knopf:active { transform: scale(.92); }
.zaehlwerk__knopf--plus { background: var(--gold-verlauf); color: var(--ui-gold-text); }
@media (hover: hover) and (pointer: fine) { .zaehlwerk__knopf--plus:hover { background: var(--gold-verlauf); filter: brightness(1.06); } }
.zaehlwerk__knopf[disabled] { opacity: .3; cursor: not-allowed; transform: none; filter: none; }
.zaehlwerk__zahl { min-width: 2.4ch; text-align: center; font-size: 1.45rem; font-weight: 600; color: var(--weiss); font-variant-numeric: tabular-nums; }
.zaehlwerk--klein .zaehlwerk__knopf { width: 44px; height: 44px; }
.zaehlwerk--klein .zaehlwerk__zahl { font-size: 1.15rem; }

/* ---------- PIN-Feld ---------- */
.pinfeld { display: grid; gap: 22px; justify-items: center; }
.pinfeld__punkte { display: flex; gap: 16px; min-height: 18px; }
.pinfeld__punkt { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(201, 168, 106, .7); transition: background-color 120ms var(--ease), transform 160ms var(--ease-feder); }
.pinfeld__punkt.ist-voll { background: var(--gold); border-color: var(--gold); transform: scale(1.08); }
.pinfeld__tasten { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px; }
.pinfeld__taste {
  width: 76px; height: 76px; border-radius: 50%; border: var(--ui-kante-stark); background: var(--flaeche-2); color: var(--weiss);
  font-size: 1.7rem; font-weight: 400; font-variant-numeric: tabular-nums; cursor: pointer; display: grid; place-items: center;
  transition: transform 120ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .pinfeld__taste:hover { border-color: rgba(201, 168, 106, .5); } }
.pinfeld__taste:active, .pinfeld__taste.ist-gedrueckt { transform: scale(.93); background: var(--gold-glanz); border-color: var(--gold); }
.pinfeld__taste--leise { border-color: transparent; background: transparent; font-size: 1rem; color: var(--text-2); }
.pinfeld__taste--leise .icon { width: 26px; height: 26px; }
.pinfeld__taste--ok { background: var(--gold-verlauf); color: var(--ui-gold-text); border-color: transparent; }
.pinfeld__taste--ok .icon { width: 28px; height: 28px; --icon-strich: 2.2; }
.pinfeld__meldung { min-height: 1.4em; font-size: var(--fs-klein); color: #ffb3ad; text-align: center; }
.pinfeld.ist-falsch .pinfeld__punkte { animation: ui-schuetteln 420ms var(--ease); }
.pinfeld.ist-falsch .pinfeld__punkt { border-color: var(--alarm); }
@keyframes ui-schuetteln { 0%, 100% { transform: none; } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }

/* ---------- Abdunklung (fuer Blatt und Dialog) ---------- */
.ui-grund {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(3, 4, 6, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity var(--ui-dauer-lang) var(--ease);
}
.ui-grund.ist-offen { opacity: 1; }
/* Beim Ein- und Ausblenden (ohne .ist-offen) keine Klicks abfangen, sonst geht ein schneller Tipp ins Leere */
.ui-grund:not(.ist-offen), .blatt:not(.ist-offen), .dialog:not(.ist-offen) { pointer-events: none; }

/* ---------- Blatt (Seitenblatt rechts / Bodenblatt unten) ---------- */
.blatt {
  position: fixed; z-index: 901; display: flex; flex-direction: column;
  background: var(--tiefe); color: var(--text); border: var(--ui-kante);
  box-shadow: var(--schatten);
  transition: transform var(--ui-dauer-lang) var(--ease), opacity var(--ui-dauer-lang) var(--ease);
  overscroll-behavior: contain;
}
.blatt--rechts { top: 0; right: 0; bottom: 0; width: min(var(--blatt-breite, 480px), 100vw); border-radius: var(--radius-xl) 0 0 var(--radius-xl); border-right: 0; transform: translateX(104%); }
.blatt--unten { left: 0; right: 0; bottom: 0; max-height: min(88vh, 88dvh); border-radius: var(--radius-xl) var(--radius-xl) 0 0; border-bottom: 0; transform: translateY(104%); margin-inline: auto; width: min(var(--blatt-breite, 760px), 100vw); }
.blatt.ist-offen { transform: none; }
.blatt::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; background: var(--ui-gold-linie); opacity: .7; border-radius: 1px; }
.blatt--unten .blatt__griff { width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .22); margin: 10px auto 0; flex: none; }
.blatt__kopf { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px 26px; flex: none; }
.blatt__titel { flex: 1; font-size: var(--fs-h3); font-weight: 600; color: var(--weiss); line-height: 1.3; }
.blatt__inhalt { flex: 1; overflow-y: auto; padding: 4px 26px 26px; -webkit-overflow-scrolling: touch; }
.blatt__fuss { flex: none; padding: 16px 26px calc(18px + env(safe-area-inset-bottom)); border-top: var(--ui-kante); display: flex; gap: 12px; justify-content: flex-end; background: rgba(0, 0, 0, .2); }

/* ---------- Dialog ---------- */
.dialog {
  position: fixed; z-index: 950; left: 50%; top: 50%; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  transform: translate(-50%, -46%) scale(.97); opacity: 0;
  background: var(--tiefe); border: var(--ui-kante-stark); border-radius: var(--radius-xl); padding: 30px 28px 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(201, 168, 106, .06) inset;
  transition: transform var(--ui-dauer-lang) var(--ease), opacity var(--ui-dauer) var(--ease);
  text-align: center;
}
.dialog.ist-offen { transform: translate(-50%, -50%); opacity: 1; }
.dialog--pin { width: min(380px, calc(100vw - 32px)); }
.dialog__marke { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--gold); display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(201, 168, 106, .45); background: var(--gold-glanz); }
.dialog__marke .icon { width: 22px; height: 22px; }
.dialog--gefahr .dialog__marke { color: #ffb3ad; border-color: rgba(238, 90, 82, .5); background: rgba(238, 90, 82, .1); }
.dialog__titel { font-size: 1.3rem; font-weight: 600; color: var(--weiss); line-height: 1.3; }
.dialog__text { margin-top: 10px; color: var(--text-2); font-size: .98rem; }
.dialog__knoepfe { margin-top: 24px; display: flex; gap: 12px; }
.dialog__knoepfe .knopf { flex: 1; }
.dialog__inhalt { margin-top: 22px; }

/* ---------- Toast ---------- */
.toast-leiste { position: fixed; z-index: 1000; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 10px; justify-items: center; pointer-events: none; width: min(560px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 20px 12px 16px; max-width: 100%;
  background: rgba(23, 27, 32, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: var(--ui-kante-stark); border-radius: 999px; box-shadow: var(--schatten);
  color: var(--weiss); font-size: .95rem; font-weight: 500; line-height: 1.35;
  transform: translateY(16px) scale(.98); opacity: 0; transition: transform var(--ui-dauer-lang) var(--ease-feder), opacity var(--ui-dauer) var(--ease);
  pointer-events: auto;
}
.toast.ist-offen { transform: none; opacity: 1; }
.toast__icon { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold-glanz); color: var(--gold-hell); }
.toast__icon .icon { width: 17px; height: 17px; --icon-strich: 2.2; }
.toast--ok .toast__icon { background: rgba(79, 207, 141, .16); color: var(--ok); }
.toast--warn .toast__icon { background: rgba(240, 181, 69, .16); color: var(--warn); }
.toast--fehler .toast__icon { background: rgba(238, 90, 82, .16); color: var(--alarm); }
.toast--fehler { border-color: rgba(238, 90, 82, .45); }

/* ---------- Fortschritt ---------- */
/* <div class="fortschritt" style="--wert:.4" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div> */
.fortschritt { position: relative; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.fortschritt::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--wert, 0) * 100%); border-radius: inherit;
  background: var(--gold-verlauf); transition: width var(--ui-dauer-lang) var(--ease);
}
.fortschritt--laufend::after { width: 38%; animation: ui-laufen 1.4s var(--ease) infinite; }
.fortschritt--ok::after { background: var(--ok); }
.fortschritt--dick { height: 10px; }
@keyframes ui-laufen { from { transform: translateX(-100%); } to { transform: translateX(270%); } }

/* ---------- Ring (Countdown / Anteil) ---------- */
/* <div class="ring-rahmen" style="--groesse:96px"><div class="ring" style="--wert:.4"></div><span class="ring__text">04:12</span></div>
   --wert 0..1 (Anteil), --groesse, --dicke, --farbe; der Text liegt ausserhalb der Maske */
.ring {
  position: relative; width: var(--groesse, 96px); height: var(--groesse, 96px); border-radius: 50%; flex: none;
  background: conic-gradient(var(--farbe, var(--gold)) calc(var(--wert, 0) * 1turn), rgba(255, 255, 255, .09) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--dicke, 7px) - .5px), #000 calc(100% - var(--dicke, 7px)));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--dicke, 7px) - .5px), #000 calc(100% - var(--dicke, 7px)));
}
.ring-rahmen { position: relative; display: inline-grid; place-items: center; }
.ring-rahmen > .ring__text { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--weiss); font-size: calc(var(--groesse, 96px) * .2); line-height: 1.1; }
.ring--ok { --farbe: var(--ok); }
.ring--warn { --farbe: var(--warn); }
.ring--alarm { --farbe: var(--alarm); }

/* ---------- R&B-Pay-Absender ---------- */
.rbpay-marke {
  display: inline-flex; align-items: center; gap: 9px; color: var(--text-3); text-decoration: none;
  font-size: .68rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1;
  opacity: .85; transition: opacity var(--ui-dauer) var(--ease);
}
.rbpay-marke img { height: 14px; width: auto; opacity: .9; }
@media (hover: hover) and (pointer: fine) { .rbpay-marke:hover { opacity: 1; } }
.rbpay-marke--gross { font-size: .78rem; gap: 12px; }
.rbpay-marke--gross img { height: 19px; }

/* ---------- Kleinteile ---------- */
.markierung { display: inline-flex; align-items: center; gap: 8px; }
.leer-hinweis { display: grid; place-items: center; gap: 10px; padding: 40px 20px; text-align: center; color: var(--text-3); border: 1px dashed var(--linie-stark); border-radius: var(--radius-l); }
.leer-hinweis .icon { width: 30px; height: 30px; color: var(--gold); opacity: .8; }
.lade-punkt { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(201, 168, 106, .25); border-top-color: var(--gold); animation: ui-drehen .8s linear infinite; }
@keyframes ui-drehen { to { transform: rotate(360deg); } }
.ist-versteckt { display: none !important; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
