/* ==========================================================================
   Digitales Siegel, three drafts (Nachtrag 79, Boris 18 and 19.10.2026)
   HAND-WRITTEN SOURCE, loaded only by prototype/vorschlag-siegel/*.html.
   Generated markup: src/vorschlag_siegel.py. Behaviour: js/vorschlag-siegel.js.

   Shared layer first (status, check steps, facts, strengths with the
   comparison scale, timeline, method, seal data, posts), then one block per
   direction:
     A  Urkunde     paper certificate, guilloche, a check stamp presses on
     B  Pruefstand  dark stage, the seal is scanned, a check log confirms
     C  Ausweis     a wallet pass with foil and back side, a status bar follows

   Every value reads the tokens of site.css. The only new values are the
   tokens below (--sg-*); prototype markers keep their own colours like the
   marker block in site.css.

   Motion rules (Nachtrag 25): one check moment per page, UI motion under
   300 ms, ease-out, the check itself about 1.5 s because it explains what
   happens. The content is never hidden while the check runs; only the proof
   layer animates. Without JS the final state stands. prefers-reduced-motion:
   no movement, the result at once.
   ========================================================================== */

:root {
  --sg-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  --sg-t-step: 260ms;
  --sg-t-reveal: 300ms;
  --sg-t-flip: 640ms;
  --sg-r-pass: 24px;
  --sg-shadow-pass: 0 48px 90px -46px rgba(12, 12, 12, .62), 0 2px 0 rgba(255, 255, 255, .04) inset;
  --sg-line-strong: rgba(45, 47, 53, .22);
  --sg-dot-empty: rgba(45, 47, 53, .28);
  --sg-holo-1: rgba(208, 170, 109, .55);
  --sg-holo-2: rgba(160, 205, 225, .42);
  --sg-holo-3: rgba(232, 176, 196, .38);
  --sg-z-bar: 58;            /* below the fixed header (60), above markers (50) */
  --sg-bar-top: 68px;        /* set by js from the header edge */
}

/* --------------------------------------------------------------------------
   0. Prototype layer: example values, marker status "beispiel", draft band
   -------------------------------------------------------------------------- */
.mk[data-status="beispiel"] { background: #FFF3D6; color: #6B4300; border-color: #EBCB86; }
body:not(.mk-off) .sg-bsp {
  background-image: linear-gradient(transparent 62%, rgba(255, 196, 0, .32) 62%);
  text-decoration: underline dotted #C9961E; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.tj-on-dark .sg-bsp, .sg-pass .sg-bsp { text-decoration-color: #F2C14E; }
.sg-probeband { padding: 10px var(--tj-gutter); background: #FFF3D6; color: #4A3200; border-bottom: 1px solid #EBCB86; }
.sg-probeband p { max-width: none; margin: 0 auto; font-size: var(--tj-label); line-height: var(--tj-label-lh); }
.sg-bar { flex-wrap: wrap; max-width: calc(100vw - 32px); }
.sg-bar .mk-bar__btn[aria-current] { background: var(--tj-accent); color: var(--tj-c-ink); }
.sg-wahl { display: inline-flex; align-items: center; gap: 6px; color: var(--tj-c-white-70); font: 600 13px/1 var(--tj-font); }
.sg-wahl select {
  font: 600 13px/1 var(--tj-font); color: #fff; background: var(--tj-c-ink);
  border: 1px solid var(--tj-c-gold-line); border-radius: 20px; padding: 7px 10px; cursor: pointer;
}
.sg-mono { font-family: var(--sg-mono); font-size: .92em; letter-spacing: .01em; font-variant-numeric: tabular-nums; }

/* Unknown number: everything about the employer goes, the check and the seal
   data stay. The H1 carries both texts, one is shown. */
.sg-h1__unbekannt { display: none; }
body[data-zustand="unbekannt"] .sg-h1__gefunden { display: none; }
body[data-zustand="unbekannt"] .sg-h1__unbekannt { display: inline; }
body[data-zustand="unbekannt"] [data-sg-nur="gefunden"] { display: none; }
body[data-zustand="unbekannt"] .sg-nur-gefunden { display: none; }
.sg-knopfgruppe { display: contents; }
.sg-nur-unbekannt { display: none; }
body[data-zustand="unbekannt"] a.sg-nur-unbekannt { display: inline-flex; }
body[data-zustand="unbekannt"] p.sg-nur-unbekannt { display: block; }
/* One icon per tone; the parent carries data-sg-ton. */
.sg-ton { display: none; }
[data-sg-ton="ok"] .sg-ton--ok, [data-sg-ton="bald"] .sg-ton--bald, [data-sg-ton="aus"] .sg-ton--aus,
[data-sg-ton="unbekannt"] .sg-ton--unbekannt, [data-sg-ton="laeuft"] .sg-ton--laeuft { display: inline-flex; }
.sg-spinner--klein { width: 14px; height: 14px; }
/* With section 07 gone, 06 is the last section and keeps the spacer below it. */
body[data-zustand="unbekannt"] [id="06-siegeldaten"] { padding-bottom: var(--tj-sp-90); }

/* --------------------------------------------------------------------------
   1. Status line: icon + word + time of the check. Never colour alone.
   -------------------------------------------------------------------------- */
.sg-status { display: flex; align-items: center; gap: 14px; min-width: 0; outline-offset: 6px; }
.sg-status__ic {
  display: none; flex: none; width: 46px; height: 46px; border-radius: 50%;
  align-items: center; justify-content: center;
}
.sg-status[data-sg-ton="ok"] .sg-status__ic--ok,
.sg-status[data-sg-ton="bald"] .sg-status__ic--bald,
.sg-status[data-sg-ton="aus"] .sg-status__ic--aus,
.sg-status[data-sg-ton="unbekannt"] .sg-status__ic--unbekannt,
.sg-status[data-sg-ton="laeuft"] .sg-status__ic--laeuft { display: inline-flex; }
.sg-status__ic--ok, .sg-status__ic--bald { background: var(--tj-c-ink); color: var(--tj-accent); }
.sg-status__ic--aus, .sg-status__ic--unbekannt, .sg-status__ic--laeuft { background: var(--tj-surface-tint); color: var(--tj-text-strong); }
.sg-status__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sg-status__t strong { font-size: var(--tj-title); line-height: var(--tj-title-lh); font-weight: 600; color: var(--tj-text-strong); }
.sg-status__zeit { font-size: var(--tj-label); line-height: var(--tj-label-lh); color: var(--tj-text); }
.tj-on-dark .sg-status__ic--ok, .tj-on-dark .sg-status__ic--bald { background: var(--tj-accent); color: var(--tj-c-ink); }
.tj-on-dark .sg-status__ic--aus, .tj-on-dark .sg-status__ic--unbekannt,
.tj-on-dark .sg-status__ic--laeuft { background: rgba(255, 255, 255, .12); color: var(--tj-text-inverse); }
.tj-on-dark .sg-status__t strong { color: var(--tj-text-inverse); }
.tj-on-dark .sg-status__zeit { color: var(--tj-text-inverse-2); }
.sg-status--gross .sg-status__ic { width: 56px; height: 56px; }
.sg-status--gross .sg-status__t strong { font-size: var(--tj-statement); line-height: var(--tj-statement-lh); font-weight: 500; letter-spacing: var(--tj-statement-ls); }
/* Status appears with a short fade when the check ends (js sets is-neu). */
.sg-status.is-neu .sg-status__t, .sg-status.is-neu .sg-status__ic { animation: sg-auf var(--sg-t-reveal) var(--tj-ease) both; }
.sg-status.is-neu .sg-status__ic { animation-name: sg-auf-skal; }

.sg-spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: sg-dreh 700ms linear infinite;
}

/* --------------------------------------------------------------------------
   2. Check steps (A and C show them compact, B as the check log)
   -------------------------------------------------------------------------- */
.sg-schritte { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sg-schritt {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--tj-line);
}
.sg-schritt__ic {
  position: relative; width: 28px; height: 28px; border-radius: 50%;
  display: inline-grid; place-items: center; background: var(--tj-c-ink); color: var(--tj-accent);
}
.sg-schritt__ic > * { grid-area: 1 / 1; }
.sg-schritt__ic .ic:last-child, .sg-schritt__lade { display: none; }
.sg-schritt__t { font-weight: 600; color: var(--tj-text-strong); min-width: 0; }
.sg-schritt__w { color: var(--tj-text); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.tj-on-dark .sg-schritt { border-top-color: var(--tj-line-dark); }
.tj-on-dark .sg-schritt__ic { background: var(--tj-accent); color: var(--tj-c-ink); }
.tj-on-dark .sg-schritt__t { color: var(--tj-text-inverse); }
.tj-on-dark .sg-schritt__w { color: var(--tj-text-inverse-2); }
/* While the check runs: waiting, active, done, failed, skipped */
body.sg-laeuft .sg-schritt:not(.is-aktiv):not(.is-ok):not(.is-fehler) { opacity: .38; }
body.sg-laeuft .sg-schritt:not(.is-aktiv):not(.is-ok):not(.is-fehler) .sg-schritt__ic { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; color: var(--tj-text); }
body.sg-laeuft .sg-schritt:not(.is-aktiv):not(.is-ok):not(.is-fehler) .sg-schritt__ic .ic { display: none; }
.tj-on-dark .sg-schritt:not(.is-aktiv):not(.is-ok):not(.is-fehler) .sg-schritt__ic { color: var(--tj-text-inverse-2); }
.sg-schritt.is-aktiv .sg-schritt__ic { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tj-line); }
.sg-schritt.is-aktiv .sg-schritt__ic .ic { display: none; }
.sg-schritt.is-aktiv .sg-schritt__lade { display: block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: sg-dreh 700ms linear infinite; color: var(--tj-text-strong); }
.tj-on-dark .sg-schritt.is-aktiv .sg-schritt__lade { color: var(--tj-accent); }
.sg-schritt.is-ok .sg-schritt__ic { animation: sg-auf-skal var(--sg-t-reveal) var(--tj-ease) both; }
.sg-schritt.is-fehler .sg-schritt__ic { background: var(--tj-surface-tint); color: var(--tj-text-strong); }
.tj-on-dark .sg-schritt.is-fehler .sg-schritt__ic { background: rgba(255, 255, 255, .14); color: var(--tj-text-inverse); }
.sg-schritt.is-fehler .sg-schritt__ic .ic:first-of-type { display: none; }
.sg-schritt.is-fehler .sg-schritt__ic .ic:last-child { display: block; }
.sg-schritt.is-uebersprungen { opacity: .38; }
.sg-schritt.is-uebersprungen .sg-schritt__ic { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.sg-schritt.is-uebersprungen .sg-schritt__ic .ic { display: none; }
.sg-schritt.is-uebersprungen .sg-schritt__w { visibility: hidden; }

/* --------------------------------------------------------------------------
   3. Facts of the seal (hero A) and the seal data list (section 06)
   -------------------------------------------------------------------------- */
.sg-fakten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.sg-fakten__z { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--tj-line); min-width: 0; }
.sg-fakten dt, .sg-daten dt, .sg-profil__fakten dt, .sg-befragung__zahlen dt {
  font-size: var(--tj-label); line-height: var(--tj-label-lh); letter-spacing: var(--tj-label-ls); font-weight: 600; color: var(--tj-text);
}
.sg-fakten dd { margin: 0; font-size: var(--tj-title); line-height: var(--tj-title-lh); font-weight: 600; color: var(--tj-text-strong); }
.sg-rest { display: block; font-size: var(--tj-label); line-height: var(--tj-label-lh); font-weight: 400; color: var(--tj-text); }
.sg-rest:empty { display: none; }
.sg-satz { max-width: var(--tj-measure-intro); }

/* --------------------------------------------------------------------------
   4. Profile of the employer (section 02)
   -------------------------------------------------------------------------- */
.sg-profil { display: flex; gap: var(--tj-gap); justify-content: space-between; align-items: flex-start; }
.sg-profil__bild { margin: 0; flex: 0 1 calc(41.667% - 14px); min-width: 0; }
.sg-profil__bild img { width: 100%; max-width: min(100%, 640px); border-radius: var(--tj-r-inner); }
.sg-profil__text { flex: 0 1 calc(50% - 12px); min-width: 0; display: flex; flex-direction: column; gap: var(--tj-gap-text); align-items: flex-start; }
.sg-profil__logo { height: 44px; width: auto; max-width: 200px; }
.sg-profil__fakten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; width: 100%; }
.sg-profil__fakten > div { padding: 14px 0; border-top: 1px solid var(--tj-line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sg-profil__fakten dd { margin: 0; color: var(--tj-text-strong); font-weight: 600; }

/* --------------------------------------------------------------------------
   5. Strengths with the comparison scale (section 03). No number, no rank:
   the scale shows the position against the average, the word says it.
   -------------------------------------------------------------------------- */
.sg-staerken { list-style: none; margin: 0; padding: 0; width: 100%; }
.sg-staerke {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr);
  grid-template-areas: "kopf wunsch vergleich" "kopf wunsch feld" "kopf wunsch frage";
  gap: 12px var(--tj-gap); padding: 32px 0; border-top: 1px solid var(--tj-line);
}
.sg-staerke:last-child { border-bottom: 1px solid var(--tj-line); }
.sg-staerke__kopf { grid-area: kopf; display: flex; gap: 16px; align-items: flex-start; }
.sg-staerke__kopf h3 { margin: 0; padding-top: 6px; }
.sg-staerke__ic { flex: none; width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--tj-c-ink); color: var(--tj-accent); }
.sg-staerke__wunsch { grid-area: wunsch; display: flex; flex-direction: column; gap: 6px; }
.sg-staerke__k { display: block; font-size: var(--tj-label); line-height: var(--tj-label-lh); font-weight: 600; letter-spacing: var(--tj-label-ls); color: var(--tj-text-strong); }
.sg-staerke__zitat { font-style: italic; }
.sg-vergleich { grid-area: vergleich; display: flex; flex-direction: column; gap: 4px; }
.sg-vergleich__lage { font-weight: 600; color: var(--tj-text-strong); }
.sg-staerke__feld { grid-area: feld; font-size: var(--tj-label); line-height: var(--tj-label-lh); }
.sg-staerke__frage { grid-area: frage; display: flex; gap: 12px; align-items: flex-start; padding-top: 12px; border-top: 1px dashed var(--sg-line-strong); }
.sg-staerke__frage > .ic { flex: none; margin-top: 2px; color: var(--tj-text-strong); }

.sg-skala { position: relative; height: 44px; margin-top: 4px; --x: 50%; }
.sg-skala__spur, .sg-skala__fuell { position: absolute; top: 12px; height: 4px; border-radius: 2px; }
.sg-skala__spur { left: 0; right: 0; background: var(--tj-c-slate-10); }
.sg-skala__fuell { left: 50%; width: calc(var(--x) - 50%); background: var(--tj-accent); transform-origin: left center; }
.sg-skala__schnitt { position: absolute; left: 50%; top: 4px; width: 2px; height: 20px; margin-left: -1px; background: var(--tj-c-ink); }
.sg-skala__l { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: var(--tj-label); line-height: var(--tj-label-lh); color: var(--tj-text); }
.sg-skala__punkt {
  position: absolute; top: 6px; left: 0; width: 100%; height: 16px; pointer-events: none;
  transform: translateX(calc(var(--x) - 50%));
}
.sg-skala__punkt::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: var(--tj-c-ink); box-shadow: 0 0 0 4px var(--tj-bg);
}
/* The scale fills once when it comes into view (js: is-sichtbar). */
body.sg-js .sg-staerke:not(.is-sichtbar) .sg-skala__fuell { transform: scaleX(0); }
body.sg-js .sg-staerke:not(.is-sichtbar) .sg-skala__punkt { transform: translateX(0); }
.sg-skala__fuell { transition: transform 700ms var(--tj-ease) 120ms; }
.sg-skala__punkt { transition: transform 700ms var(--tj-ease) 120ms; }
.sg-staerke:nth-child(2) .sg-skala__fuell, .sg-staerke:nth-child(2) .sg-skala__punkt { transition-delay: 200ms; }
.sg-staerke:nth-child(3) .sg-skala__fuell, .sg-staerke:nth-child(3) .sg-skala__punkt { transition-delay: 280ms; }

/* Mapping of the five areas to the six topic fields */
.sg-zuordnung { width: 100%; border-bottom: 1px solid var(--tj-line); }
.sg-zuordnung summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0;
  list-style: none; cursor: pointer; font-weight: 600; color: var(--tj-text-strong);
}
.sg-zuordnung summary::-webkit-details-marker { display: none; }
.sg-zuordnung summary .ic { flex: none; transition: transform var(--tj-t-ui) var(--tj-ease); }
.sg-zuordnung[open] summary .ic { transform: rotate(180deg); }
.sg-zuordnung__in { padding: 0 0 24px; display: flex; flex-direction: column; gap: 16px; }
.sg-zuordnung__tab { width: 100%; border-collapse: collapse; }
.sg-zuordnung__tab th, .sg-zuordnung__tab td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-top: 1px solid var(--tj-line); font-size: var(--tj-body); line-height: var(--tj-body-lh); }
.sg-zuordnung__tab thead th { font-size: var(--tj-label); line-height: var(--tj-label-lh); font-weight: 600; color: var(--tj-text-strong); border-top: 0; }
.sg-zuordnung__tab tbody th { font-weight: 600; color: var(--tj-text-strong); width: 40%; }
@media (hover: hover) and (pointer: fine) { .sg-zuordnung summary:hover { text-decoration: underline; text-decoration-color: var(--tj-c-gold-line); text-decoration-thickness: 2px; text-underline-offset: 5px; } }

/* --------------------------------------------------------------------------
   6. Timeline of awards (section 04). Gold never as text on paper: the star
   of the employer of the year is gold on an ink dot.
   -------------------------------------------------------------------------- */
.sg-zeit { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); position: relative; }
.sg-zeit::before { content: ""; position: absolute; left: calc(100% / 22); right: calc(100% / 22); top: 17px; height: 2px; background: var(--tj-line); }
.sg-zeit__j { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-width: 0; position: relative; }
.sg-zeit__punkt { position: relative; z-index: 1; width: 36px; height: 36px; display: inline-grid; place-items: center; }
.sg-zeit__punkt::before { content: ""; grid-area: 1 / 1; width: var(--d, 18px); height: var(--d, 18px); border-radius: 50%; background: var(--tj-c-ink); box-shadow: 0 0 0 5px var(--tj-bg); }
.sg-zeit__stern { grid-area: 1 / 1; position: relative; color: var(--tj-accent); fill: currentColor; }
[data-art="sieger"] > .sg-zeit__punkt, .sg-zeit__punkt[data-art="sieger"] { --d: 36px; }
[data-art="leer"] > .sg-zeit__punkt, .sg-zeit__punkt[data-art="leer"] { --d: 10px; }
[data-art="leer"] > .sg-zeit__punkt::before, .sg-zeit__punkt[data-art="leer"]::before { background: var(--sg-dot-empty); }
.sg-zeit__jahr { font-size: var(--tj-title); line-height: var(--tj-title-lh); font-weight: 600; color: var(--tj-text-strong); }
[data-art="leer"] .sg-zeit__jahr { font-size: var(--tj-label); font-weight: 400; color: var(--tj-text); }
.sg-zeit__art { font-size: var(--tj-label); line-height: var(--tj-label-lh); max-width: 9em; }
.sg-zeit__aktuell { font-size: 13px; line-height: 16px; font-weight: 600; padding: 3px 10px; border-radius: var(--tj-r-btn); border: 1.5px solid var(--tj-c-ink); color: var(--tj-text-strong); white-space: nowrap; }
.sg-zeit__legende { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.sg-zeit__legende li { display: inline-flex; align-items: center; gap: 4px; font-size: var(--tj-label); line-height: var(--tj-label-lh); }
.sg-zeit__legende .sg-zeit__punkt { width: 28px; height: 28px; }
.sg-zeit__legende .sg-zeit__punkt[data-art="sieger"] { --d: 24px; }
.sg-zeit__legende .sg-zeit__punkt[data-art="siegel"] { --d: 14px; }

/* --------------------------------------------------------------------------
   7. Method (section 05): three steps, the jury line, the survey at abat
   -------------------------------------------------------------------------- */
.sg-methode-raster { display: flex; justify-content: space-between; gap: var(--tj-gap); align-items: flex-start; }
.sg-methode-raster > .tj-stack { flex: 0 1 calc(58.333% - 10px); }
.sg-methode { list-style: none; margin: calc(var(--tj-gap-kopf) - var(--tj-gap-text)) 0 0; padding: 0; width: 100%; }
.sg-methode li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-top: 1px solid var(--tj-line); }
.sg-methode__n { font-size: var(--tj-statement); line-height: var(--tj-statement-lh); font-weight: 500; letter-spacing: var(--tj-statement-ls); color: var(--tj-text-strong); }
.sg-methode h3 { margin: 4px 0 6px; }
.sg-methode__jury { padding-top: 20px; border-top: 1px solid var(--tj-line); width: 100%; font-weight: 600; color: var(--tj-text-strong); }
.sg-befragung {
  flex: 0 1 calc(33.333% - 16px); min-width: 0; display: flex; flex-direction: column; gap: 20px;
  padding: 36px; background: var(--tj-surface-white); border: 1px solid var(--tj-line); border-radius: var(--tj-r-inner);
}
.sg-befragung__h { font-size: var(--tj-title); line-height: var(--tj-title-lh); font-weight: 600; color: var(--tj-text-strong); }
.sg-befragung__zahlen { margin: 0; display: flex; flex-direction: column; }
.sg-befragung__zahlen > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-top: 1px solid var(--tj-line); }
.sg-befragung__zahlen dd { margin: 0; font-size: var(--tj-statement); line-height: var(--tj-statement-lh); font-weight: 500; letter-spacing: var(--tj-statement-ls); color: var(--tj-text-strong); }
.sg-befragung__fuss { font-size: var(--tj-label); line-height: var(--tj-label-lh); }

/* --------------------------------------------------------------------------
   8. Seal data (section 06): rows, tools, check another number, report
   -------------------------------------------------------------------------- */
.sg-daten-raster { display: flex; justify-content: space-between; gap: var(--tj-gap); align-items: flex-start; margin-top: calc(var(--tj-gap-kopf) - 0px); }
.sg-daten { flex: 0 1 calc(58.333% - 10px); margin: 0; min-width: 0; }
.sg-daten__z { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--tj-line); }
.sg-daten__z:last-child { border-bottom: 1px solid var(--tj-line); }
.sg-daten dd { margin: 0; color: var(--tj-text-strong); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.sg-daten dd .sg-rest { font-weight: 400; }
.sg-daten__z.is-blitz { animation: sg-blitz 900ms var(--tj-ease) both; }
.sg-werkzeuge { flex: 0 1 calc(33.333% - 16px); min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.sg-werkzeuge .tj-btns { gap: 12px; }
.sg-werkzeuge .tj-btn { min-height: 48px; }
.sg-meldung { min-height: var(--tj-body-lh); font-weight: 600; color: var(--tj-text-strong); }
.sg-pruefform { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; border-top: 1px solid var(--tj-line); }
.sg-pruefform__l { font-size: var(--tj-title); line-height: var(--tj-title-lh); font-weight: 600; color: var(--tj-text-strong); }
.sg-pruefform__hilfe { font-size: var(--tj-label); line-height: var(--tj-label-lh); }
.sg-pruefform__zeile { display: flex; gap: 10px; margin-top: 6px; }
.sg-pruefform .tj-input { height: 51px; border-color: var(--tj-line-field); background: var(--tj-surface-white); font-family: var(--sg-mono); letter-spacing: .04em; text-transform: uppercase; }
.sg-pruefform .tj-input::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--tj-font); }
.sg-pruefform .tj-btn { flex: none; }
.sg-pruefform__fehler { color: var(--tj-c-red); font-weight: 600; font-size: var(--tj-label); line-height: var(--tj-label-lh); }
.sg-melden { padding-top: 24px; border-top: 1px solid var(--tj-line); }

/* --------------------------------------------------------------------------
   9. More about the employer (section 07): posts are link cards
   -------------------------------------------------------------------------- */
.sg-beitraege { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tj-gap); }
.sg-beitrag a {
  position: relative; height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 24px 64px 24px 24px;
  background: var(--tj-surface-white); border: 1px solid var(--tj-line); border-radius: var(--tj-r-inner);
  text-decoration: none; color: var(--tj-text);
  transition: transform var(--tj-t-hover) var(--tj-ease), box-shadow var(--tj-t-hover) var(--tj-ease), border-color var(--tj-t-hover) var(--tj-ease);
}
.sg-beitrag__datum { font-size: var(--tj-label); line-height: var(--tj-label-lh); }
.sg-beitrag__t { font-size: var(--tj-title); line-height: var(--tj-title-lh); font-weight: 600; color: var(--tj-text-strong); }
.sg-beitrag__ic { position: absolute; right: 20px; top: 22px; color: var(--tj-text-strong); transition: transform var(--tj-t-hover) var(--tj-ease); }
.sg-beitrag a:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) {
  .sg-beitrag a:hover { transform: translateY(var(--tj-lift)); box-shadow: var(--tj-shadow-hover); border-color: var(--tj-c-gold-line); }
  .sg-beitrag a:hover .sg-beitrag__ic { transform: translate(2px, -2px); }
}
.sg-versprechen { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: var(--tj-sp-inner); padding-top: 32px; border-top: 1px solid var(--tj-line); }
.sg-versprechen__t { font-size: var(--tj-title); line-height: var(--tj-title-lh); font-weight: 600; color: var(--tj-text-strong); }
.sg-versprechen__p { margin-top: 4px; }

/* --------------------------------------------------------------------------
   10. Overview page (index.html)
   -------------------------------------------------------------------------- */
.sg-richtungen { list-style: none; margin: calc(var(--tj-gap-kopf) - var(--tj-gap-text)) 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tj-gap); }
.sg-richtungskarte a {
  position: relative; height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 32px;
  border-radius: var(--tj-r-inner); text-decoration: none; border: 1px solid var(--tj-line); background: var(--tj-surface-white); color: var(--tj-text);
  transition: transform var(--tj-t-hover) var(--tj-ease), box-shadow var(--tj-t-hover) var(--tj-ease);
}
.sg-richtungskarte--b a { background: var(--tj-c-ink); border-color: var(--tj-c-ink); color: var(--tj-text-inverse-2); }
.sg-richtungskarte__b { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; font-size: var(--tj-statement); font-weight: 500; background: var(--tj-c-ink); color: var(--tj-accent); }
.sg-richtungskarte--b .sg-richtungskarte__b { background: var(--tj-accent); color: var(--tj-c-ink); }
.sg-richtungskarte__t { font-size: var(--tj-title); line-height: var(--tj-title-lh); font-weight: 600; color: var(--tj-text-strong); }
.sg-richtungskarte--b .sg-richtungskarte__t { color: var(--tj-text-inverse); }
.sg-richtungskarte__ic { position: absolute; right: 24px; top: 28px; }
@media (hover: hover) and (pointer: fine) { .sg-richtungskarte a:hover { transform: translateY(var(--tj-lift)); box-shadow: var(--tj-shadow-hover); } }
.sg-richtungskarte a:active { transform: scale(.99); }
.sg-uebersicht-raster { display: flex; justify-content: space-between; gap: var(--tj-gap); align-items: flex-start; }
.sg-uebersicht-raster > * { flex: 0 1 calc(50% - 12px); min-width: 0; }
.sg-zustaende { list-style: none; margin: 0; padding: 0; width: 100%; }
.sg-zustaende li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--tj-line); }
.sg-zustaende li span { text-align: right; }
.sg-liste { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.sg-liste li::marker { color: var(--tj-text-strong); }
.sg-liste__h { font-weight: 600; color: var(--tj-text-strong); }

/* ==========================================================================
   A  URKUNDE
   ========================================================================== */
.sg-hero--a { background: var(--tj-bg); }
.sg-urkunde {
  position: relative; isolation: isolate; overflow: hidden; padding: 14px;
  background: var(--tj-surface-white); border: 1px solid var(--tj-line); border-radius: var(--tj-r-inner);
}
.sg-guilloche { position: absolute; z-index: -1; right: -110px; top: -80px; width: 560px; height: 560px; color: var(--tj-accent); opacity: .3; pointer-events: none; }
.sg-urkunde__rahmen {
  position: relative; display: flex; flex-direction: column; gap: 36px;
  padding: 44px var(--tj-inset) 40px; border: 1px solid var(--tj-c-gold-line); border-radius: 10px;
}
.sg-urkunde__rahmen::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(208, 170, 109, .38); border-radius: 6px; pointer-events: none; }
.sg-urkunde__kopf { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 20px; }
.sg-register { font-size: var(--tj-label); line-height: var(--tj-label-lh); font-weight: 600; color: var(--tj-text-strong); }
.sg-pruefband { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--tj-line); overflow: hidden; }
.sg-pruefband span { position: absolute; inset: 0; background: var(--tj-accent); transform-origin: left center; }
body.sg-laeuft .sg-hero--a .sg-pruefband span { animation: sg-band 1000ms linear both; }
.sg-urkunde__inhalt { display: flex; justify-content: space-between; gap: var(--tj-gap); align-items: center; }
.sg-urkunde__text { flex: 0 1 calc(58.333% - 10px); min-width: 0; display: flex; flex-direction: column; gap: var(--tj-gap-text); }
.sg-h1__name { display: block; }
.sg-h1__zusatz { display: block; margin-top: 8px; font-size: var(--tj-statement); line-height: var(--tj-statement-lh); letter-spacing: var(--tj-statement-ls); color: var(--tj-text); }
.tj-on-dark .sg-h1__zusatz { color: var(--tj-text-inverse-2); }
.sg-urkunde__siegel { position: relative; flex: 0 1 calc(33.333% - 16px); display: flex; justify-content: center; padding: 8px 0 24px; }
.sg-urkunde__siegel .sg-siegelbild { width: 100%; max-width: min(100%, 250px); border-radius: 4px; box-shadow: 0 1px 0 var(--tj-line); }
.sg-stempel { position: absolute; left: -16%; bottom: -34px; width: 168px; height: 168px; color: var(--tj-accent-hover); transform: rotate(-12deg); pointer-events: none; }
.sg-stempel svg { width: 100%; height: 100%; }
.sg-stempel__ring { font: 700 15px/1 var(--tj-font); letter-spacing: 2.4px; fill: currentColor; }
.sg-stempel__datum { font: 700 17px/1 var(--sg-mono); fill: currentColor; }
.sg-stempel::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 2px solid var(--tj-accent); opacity: 0; }
body.sg-laeuft .sg-hero--a .sg-stempel { opacity: 0; }
.sg-hero--a.is-gestempelt .sg-stempel { animation: sg-stempel 460ms cubic-bezier(.2, .9, .3, 1) both; }
.sg-hero--a.is-gestempelt .sg-stempel::after { animation: sg-tinte 700ms var(--tj-ease) 160ms both; }
body[data-zustand="aus"] .sg-stempel, body[data-zustand="abgelaufen"] .sg-stempel,
body[data-zustand="unbekannt"] .sg-stempel { display: none; }
body[data-zustand="abgelaufen"] .sg-urkunde__siegel .sg-siegelbild,
body[data-zustand="unbekannt"] .sg-urkunde__siegel .sg-siegelbild { filter: grayscale(1); opacity: .45; }
.sg-urkunde__fuss { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 24px; border-top: 1px solid var(--tj-line); }
.sg-unterschrift { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sg-unterschrift__linie { display: block; width: 220px; height: 1px; background: var(--tj-c-ink); }
.sg-unterschrift p { font-size: var(--tj-label); line-height: var(--tj-label-lh); }
.sg-hero__knoepfe { margin-top: 32px; }
.sg-hero--a .sg-hero__knoepfe { padding-inline: var(--tj-inset); }

/* ==========================================================================
   B  PRUEFSTAND
   ========================================================================== */
.sg-hero--b {
  background-color: var(--tj-c-ink);
  background-image: linear-gradient(180deg, rgba(30, 30, 30, .25) 0%, rgba(30, 30, 30, .55) 55%, var(--tj-c-ink) 100%),
                    url("../images/Blog-post-BG-scaled.png");
  background-size: cover; background-position: center 35%; background-repeat: no-repeat;
}
.sg-hero--b > .tj-box { padding-inline: var(--tj-inset); padding-bottom: 80px; }
.sg-hero--b .sg-h1__zusatz { color: var(--tj-text-inverse-2); }
.sg-pruefstand { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--tj-gap); }
.sg-pruefstand__links { flex: 0 1 calc(41.667% - 14px); min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.sg-scanner { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; display: grid; place-items: center; }
.sg-ringe { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sg-ringe__striche line { stroke: rgba(255, 255, 255, .28); stroke-width: 1.5; }
.sg-ringe__striche { transform-origin: 160px 160px; }
.sg-ringe__spur { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 3; }
.sg-ringe__fortschritt { fill: none; stroke: var(--tj-accent); stroke-width: 3.5; stroke-linecap: round; }
.sg-ringe__innen { fill: rgba(30, 30, 30, .55); stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
body.sg-laeuft .sg-hero--b .sg-ringe__fortschritt { animation: sg-ring 1300ms var(--tj-ease) both; }
body.sg-laeuft .sg-hero--b .sg-ringe__striche { animation: sg-dreh-langsam 1500ms var(--tj-ease) both; }
.sg-scanner__siegel { position: relative; width: 40%; overflow: hidden; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.sg-scanner__siegel .sg-siegelbild { width: 100%; }
.sg-scanlinie { position: absolute; left: 0; right: 0; top: 0; height: 34%; opacity: 0; background: linear-gradient(180deg, rgba(208, 170, 109, 0), rgba(208, 170, 109, .55) 70%, rgba(255, 255, 255, .9) 72%, rgba(208, 170, 109, 0) 74%); }
body.sg-laeuft .sg-hero--b .sg-scanlinie { animation: sg-scan 1100ms var(--tj-ease-io) 100ms both; }
.sg-scanner__haken {
  position: absolute; right: 13%; bottom: 13%; width: 64px; height: 64px; border-radius: 50%;
  display: inline-grid; place-items: center; background: var(--tj-accent); color: var(--tj-c-ink);
  box-shadow: 0 0 0 6px var(--tj-c-ink), var(--tj-glow-gold);
}
body.sg-laeuft .sg-hero--b .sg-scanner__haken { opacity: 0; transform: scale(.85); }
.sg-hero--b.is-fertig .sg-scanner__haken { animation: sg-auf-skal 320ms var(--tj-ease) both; }
body[data-zustand="abgelaufen"] .sg-hero--b .sg-scanner__haken,
body[data-zustand="unbekannt"] .sg-hero--b .sg-scanner__haken { display: none; }
body[data-zustand="abgelaufen"] .sg-hero--b .sg-ringe__fortschritt,
body[data-zustand="unbekannt"] .sg-hero--b .sg-ringe__fortschritt { stroke: rgba(255, 255, 255, .45); }
body[data-zustand="abgelaufen"] .sg-scanner__siegel .sg-siegelbild,
body[data-zustand="unbekannt"] .sg-scanner__siegel .sg-siegelbild { filter: grayscale(1); opacity: .5; }
.sg-protokoll {
  flex: 0 1 calc(50% - 12px); min-width: 0; display: flex; flex-direction: column; gap: 4px;
  padding: 28px 32px 32px; border-radius: var(--tj-r-inner); border: 1px solid var(--tj-line-dark);
  background: rgba(30, 30, 30, .92); backdrop-filter: blur(6px);
}
.sg-protokoll__kopf { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; font-size: var(--tj-label); line-height: var(--tj-label-lh); font-weight: 600; color: var(--tj-text-inverse); }
.sg-protokoll__kopf .sg-mono { font-weight: 400; color: var(--tj-text-inverse-2); }
.sg-ergebnis { display: flex; flex-direction: column; gap: 18px; padding-top: 24px; border-top: 1px solid var(--tj-line-dark); }
.sg-ergebnis .sg-satz { color: var(--tj-text-inverse-2); }
.sg-ergebnis .mk { align-self: center; }
/* Stage and log are one composition: on the light page the log stays dark. */
.sg-flaeche { padding: var(--tj-pad-surface) var(--tj-inset); border-radius: var(--tj-r-surface); background: var(--tj-c-ink); }
.sg-sec .sg-flaeche .sg-staerke { border-top-color: var(--tj-line-dark); }
.sg-sec .sg-flaeche .sg-staerke:last-child { border-bottom-color: var(--tj-line-dark); }
.sg-flaeche .sg-staerke__ic { background: var(--tj-accent); color: var(--tj-c-ink); }
.sg-flaeche .sg-staerke__k, .sg-flaeche .sg-vergleich__lage, .sg-flaeche .sg-staerke__frage > .ic { color: var(--tj-text-inverse); }
.sg-flaeche .sg-staerke__frage { border-top-color: var(--tj-line-dark); }
.sg-flaeche .sg-skala__spur { background: rgba(255, 255, 255, .16); }
.sg-flaeche .sg-skala__schnitt { background: var(--tj-c-white); }
.sg-flaeche .sg-skala__l { color: var(--tj-text-inverse-2); }
.sg-flaeche .sg-skala__punkt::before { background: var(--tj-accent); box-shadow: 0 0 0 4px var(--tj-c-ink); }
.sg-flaeche .sg-zuordnung { border-bottom-color: var(--tj-line-dark); }
.sg-flaeche .sg-zuordnung summary { color: var(--tj-text-inverse); }
.sg-flaeche .sg-zuordnung__tab th, .sg-flaeche .sg-zuordnung__tab td { border-top-color: var(--tj-line-dark); }
.sg-flaeche .sg-zuordnung__tab :is(thead th, tbody th) { color: var(--tj-text-inverse); }
.sg-flaeche .tj-src { color: var(--tj-text-inverse-2); }
body[data-sg-richtung="b"] .sg-zeit__aktuell { background: var(--tj-c-ink); color: var(--tj-text-inverse); }
body[data-sg-richtung="b"] [id="05-entstehung"] .sg-befragung { background: var(--tj-c-ink); border-color: var(--tj-c-ink); color: var(--tj-text-inverse-2); }
body[data-sg-richtung="b"] [id="05-entstehung"] .sg-befragung :is(.sg-befragung__h, dt) { color: var(--tj-text-inverse); }
body[data-sg-richtung="b"] [id="05-entstehung"] .sg-befragung__zahlen > div { border-top-color: var(--tj-line-dark); }
body[data-sg-richtung="b"] [id="05-entstehung"] .sg-befragung__zahlen dd { color: var(--tj-accent); font-size: var(--tj-section); line-height: var(--tj-section-lh); letter-spacing: var(--tj-section-ls); }
body[data-sg-richtung="b"] [id="05-entstehung"] .sg-befragung .sg-bsp { color: var(--tj-accent); }

/* ==========================================================================
   C  AUSWEIS
   ========================================================================== */
.sg-hero--c { background: var(--tj-bg); }
.sg-c-raster { display: flex; justify-content: space-between; align-items: center; gap: var(--tj-gap); padding-inline: var(--tj-inset); }
.sg-c-text { flex: 0 1 calc(41.667% - 14px); min-width: 0; display: flex; flex-direction: column; gap: var(--tj-gap-text); align-items: flex-start; }
.sg-c-text .sg-status { margin-top: 8px; }
.sg-pass-buehne { flex: 0 1 calc(50% - 12px); min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.sg-pass {
  --rx: 0deg; --ry: 0deg; --px: .5; --py: .3;
  position: relative; width: 100%; max-width: 560px; perspective: 1400px;
}
.sg-pass__innen {
  position: relative; display: grid; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform var(--sg-t-flip) var(--tj-ease-io);
}
.sg-pass.is-folgt .sg-pass__innen { transition: transform 120ms linear; }
.sg-pass.is-gedreht .sg-pass__innen { transform: rotateX(var(--rx)) rotateY(calc(180deg + var(--ry))); }
.sg-pass__seite {
  grid-area: 1 / 1; position: relative; overflow: hidden; min-height: 352px;
  display: flex; flex-direction: column; gap: 14px; padding: 28px 30px 24px;
  border-radius: var(--sg-r-pass); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  color: var(--tj-text-inverse-2); box-shadow: var(--sg-shadow-pass), inset 0 0 0 1px rgba(208, 170, 109, .42);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(208, 170, 109, .22), rgba(208, 170, 109, 0) 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(45, 47, 53, .9), rgba(30, 30, 30, 0) 70%),
    var(--tj-c-ink);
}
.sg-pass__hinten { transform: rotateY(180deg); }
.sg-pass__kopf { display: flex; align-items: center; gap: 14px; }
.sg-pass__siegel { width: 52px; height: auto; border-radius: 3px; flex: none; }
.sg-pass__marke { display: flex; flex-direction: column; font-size: var(--tj-title); line-height: 22px; font-weight: 600; color: var(--tj-text-inverse); letter-spacing: .5px; }
.sg-pass__marke span { font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: .8px; text-transform: uppercase; color: var(--tj-accent); }
.sg-pass__name { margin-top: auto; font-size: var(--tj-section); line-height: var(--tj-section-lh); letter-spacing: var(--tj-section-ls); font-weight: 500; color: var(--tj-text-inverse); }
.sg-pass__ort { font-size: var(--tj-label); line-height: var(--tj-label-lh); margin-top: -8px; }
.sg-pass__felder { margin: 0; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 0 16px; padding-top: 14px; border-top: 1px solid var(--tj-line-dark); }
.sg-pass__felder > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sg-pass__felder dt { font-size: 13px; line-height: 18px; letter-spacing: .6px; text-transform: uppercase; color: var(--tj-text-inverse-2); }
.sg-pass__felder dd { margin: 0; font-size: var(--tj-body); line-height: 22px; font-weight: 600; color: var(--tj-text-inverse); overflow-wrap: anywhere; }
.sg-pass__band {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  border-radius: var(--tj-r-btn); border: 1px solid var(--tj-c-gold-line); background: rgba(208, 170, 109, .14);
  font-weight: 600; color: var(--tj-text-inverse);
}
.sg-pass__band-ic { display: inline-flex; color: var(--tj-accent); }
.sg-pass__band[data-sg-ton="aus"], .sg-pass__band[data-sg-ton="unbekannt"] { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .08); }
.sg-pass__band[data-sg-ton="aus"] .sg-pass__band-ic, .sg-pass__band[data-sg-ton="unbekannt"] .sg-pass__band-ic { color: var(--tj-text-inverse); }
.sg-pass__band-lade { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--tj-accent); transform: scaleX(0); transform-origin: left center; }
body.sg-laeuft .sg-pass__band-lade { animation: sg-band 1100ms linear both; }
body.sg-laeuft .sg-pass__band-ic { opacity: .4; }
/* Fields resolve as their check step passes (js: is-aufgeloest). */
body.sg-laeuft [data-schritt-feld]:not(.is-aufgeloest) { filter: blur(6px); opacity: .35; }
[data-schritt-feld] { transition: filter var(--sg-t-reveal) var(--tj-ease), opacity var(--sg-t-reveal) var(--tj-ease); }
.sg-pass__folie {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: color-dodge; opacity: .5;
  background: conic-gradient(from calc(var(--px) * 360deg) at calc(var(--px) * 100%) calc(var(--py) * 100%),
              rgba(208, 170, 109, 0), var(--sg-holo-1), var(--sg-holo-2), var(--sg-holo-3), rgba(208, 170, 109, 0) 70%);
  -webkit-mask-image: radial-gradient(70% 60% at calc(var(--px) * 100%) calc(var(--py) * 100%), #000, transparent 75%);
          mask-image: radial-gradient(70% 60% at calc(var(--px) * 100%) calc(var(--py) * 100%), #000, transparent 75%);
}
.sg-pass__glanz {
  position: absolute; inset: -20% -40%; pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, 0) 60%);
  transform: translateX(-70%);
}
.sg-pass.is-glanz .sg-pass__glanz { animation: sg-glanz 1000ms var(--tj-ease) both; }
body[data-zustand="abgelaufen"] .sg-pass__siegel, body[data-zustand="unbekannt"] .sg-pass__siegel { filter: grayscale(1); opacity: .5; }
body[data-zustand="abgelaufen"] .sg-pass__folie, body[data-zustand="unbekannt"] .sg-pass__folie { display: none; }
.sg-pass__h { font-size: 13px; line-height: 18px; letter-spacing: .6px; text-transform: uppercase; color: var(--tj-accent); }
.sg-pass__url { font-size: var(--tj-title); line-height: var(--tj-title-lh); color: var(--tj-text-inverse); overflow-wrap: anywhere; }
.sg-pass__qr { display: flex; gap: 16px; align-items: center; }
.sg-pass__qr-feld { flex: none; width: 104px; height: 104px; border-radius: 12px; background: var(--tj-c-white); color: var(--tj-c-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 600; }
.sg-pass__qr p { font-size: var(--tj-label); line-height: var(--tj-label-lh); }
.sg-pass__felder--hinten { margin-top: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sg-pass__drehen {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; min-height: 44px;
  border-radius: var(--tj-r-btn); border: 1.5px solid var(--tj-line-field); background: transparent;
  font: 600 var(--tj-label)/1 var(--tj-font); color: var(--tj-text-strong); cursor: pointer;
  transition: background-color var(--tj-t-ui) var(--tj-ease), border-color var(--tj-t-ui) var(--tj-ease), transform var(--tj-t-press) var(--tj-ease);
}
.sg-pass__drehen:active { transform: scale(.97); }
.sg-pass__drehen[aria-pressed="true"] { background: var(--tj-c-ink); border-color: var(--tj-c-ink); color: var(--tj-text-inverse); }
.sg-pass__drehen:disabled { opacity: .45; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .sg-pass__drehen:hover { border-color: var(--tj-c-ink); } }

/* Status bar that follows the reader (C) */
.sg-leiste {
  position: fixed; z-index: var(--sg-z-bar); top: var(--sg-bar-top);
  left: var(--tj-page-side); right: var(--tj-page-side);
  padding-inline: var(--tj-gutter); background: var(--tj-surface-white); border-bottom: 1px solid var(--tj-line);
  transform: translateY(-110%); opacity: 0; visibility: hidden;
  transition: transform var(--tj-t-close) var(--tj-ease), opacity var(--tj-t-close) var(--tj-ease), visibility 0s linear var(--tj-t-close);
}
.sg-leiste.is-sichtbar { transform: none; opacity: 1; visibility: visible; transition: transform var(--tj-t-open) var(--tj-ease), opacity var(--tj-t-open) var(--tj-ease), visibility 0s; }
.sg-leiste__in { max-width: var(--tj-container); margin: 0 auto; padding: 10px var(--tj-inset); display: flex; align-items: center; gap: 16px; min-width: 0; }
.sg-leiste__siegel { width: 22px; height: auto; border-radius: 2px; flex: none; }
.sg-leiste__name { font-weight: 600; color: var(--tj-text-strong); white-space: nowrap; }
.sg-leiste__status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; border-radius: var(--tj-r-btn); background: var(--tj-c-ink); color: var(--tj-text-inverse); font-size: var(--tj-label); line-height: var(--tj-label-lh); font-weight: 600; white-space: nowrap; }
.sg-leiste__ic { display: inline-flex; color: var(--tj-accent); }
.sg-leiste__status[data-sg-ton="aus"] .sg-leiste__ic, .sg-leiste__status[data-sg-ton="unbekannt"] .sg-leiste__ic { color: var(--tj-text-inverse); }
.sg-leiste__bis { font-size: var(--tj-label); line-height: var(--tj-label-lh); white-space: nowrap; }
.sg-leiste__link { margin-left: auto; font-size: var(--tj-label); font-weight: 600; color: var(--tj-text-strong); text-decoration-color: var(--tj-c-gold-line); text-decoration-thickness: 2px; text-underline-offset: 4px; white-space: nowrap; }
body[data-zustand="unbekannt"] .sg-leiste { display: none; }


/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes sg-dreh { to { transform: rotate(360deg); } }
@keyframes sg-dreh-langsam { from { transform: rotate(-24deg); } to { transform: rotate(0deg); } }
@keyframes sg-auf { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes sg-auf-skal { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes sg-band { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sg-ring { from { stroke-dashoffset: var(--u); } to { stroke-dashoffset: 0; } }
@keyframes sg-scan { 0% { opacity: 0; transform: translateY(-40%); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(300%); } }
@keyframes sg-stempel {
  0% { opacity: 0; transform: rotate(-20deg) scale(1.45); }
  62% { opacity: 1; transform: rotate(-12deg) scale(.95); }
  100% { opacity: 1; transform: rotate(-12deg) scale(1); }
}
@keyframes sg-tinte { 0% { opacity: .55; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes sg-glanz { from { transform: translateX(-70%); } to { transform: translateX(70%); } }
@keyframes sg-blitz { 0% { background-color: rgba(208, 170, 109, .28); } 100% { background-color: rgba(208, 170, 109, 0); } }

/* --------------------------------------------------------------------------
   Responsive: tablet 1024, phone 767 (the two breakpoints of the system)
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .sg-staerke { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "kopf vergleich" "wunsch feld" "wunsch frage"; }
}
@media (max-width: 1024px) {
  .sg-urkunde__inhalt, .sg-pruefstand, .sg-c-raster, .sg-profil, .sg-methode-raster, .sg-daten-raster, .sg-uebersicht-raster { flex-direction: column; align-items: stretch; }
  .sg-urkunde__text, .sg-urkunde__siegel, .sg-pruefstand__links, .sg-protokoll, .sg-c-text, .sg-pass-buehne, .sg-profil__bild, .sg-profil__text,
  .sg-methode-raster > .tj-stack, .sg-befragung, .sg-daten, .sg-werkzeuge, .sg-uebersicht-raster > * { flex-basis: auto; width: 100%; }
  .sg-scanner { max-width: 360px; align-self: center; }
  .sg-urkunde__siegel { align-self: center; max-width: 320px; }
  .sg-pruefstand { gap: 40px; }
  .sg-hero--b > .tj-box { padding-bottom: 64px; }
  .sg-beitraege, .sg-richtungen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-pass-buehne { order: -1; }
  .sg-zeit__art { font-size: 13px; line-height: 17px; }
}
@media (max-width: 767px) {
  .sg-urkunde { padding: 8px; }
  .sg-urkunde__rahmen { padding: 28px 20px 24px; gap: 28px; }
  .sg-urkunde__kopf { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sg-guilloche { right: -200px; top: -120px; }
  .sg-fakten, .sg-profil__fakten { grid-template-columns: minmax(0, 1fr); }
  .sg-stempel { width: 128px; height: 128px; left: -6%; }
  .sg-urkunde__fuss { flex-direction: column; align-items: flex-start; }
  .sg-hero--a .sg-hero__knoepfe { padding-inline: 0; }
  .sg-staerke { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kopf" "wunsch" "vergleich" "feld" "frage"; padding: 28px 0; }
  .sg-zeit { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sg-zeit::before { left: 17px; right: auto; top: 18px; bottom: 18px; width: 2px; height: auto; }
  .sg-zeit__j[data-art="leer"] { display: none; }
  .sg-zeit__j { display: grid; grid-template-columns: 36px auto minmax(0, 1fr); grid-template-areas: "punkt jahr art" ". aktuell aktuell"; align-items: center; gap: 4px 14px; text-align: left; padding: 8px 0; }
  .sg-zeit__j > .sg-zeit__punkt { grid-area: punkt; }
  .sg-zeit__j > .sg-zeit__jahr { grid-area: jahr; }
  .sg-zeit__j > .sg-zeit__art { grid-area: art; max-width: none; font-size: var(--tj-label); line-height: var(--tj-label-lh); }
  .sg-zeit__j > .sg-zeit__aktuell { grid-area: aktuell; justify-self: start; }
  .sg-methode li { grid-template-columns: 40px minmax(0, 1fr); }
  .sg-befragung { padding: 24px; }
  .sg-daten__z { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sg-pruefform__zeile { flex-direction: column; }
  .sg-pruefform .tj-btn { align-self: flex-start; }
  .sg-beitraege, .sg-richtungen { grid-template-columns: minmax(0, 1fr); }
  .sg-versprechen { flex-direction: column; align-items: flex-start; }
  .sg-c-raster { padding-inline: 0; }
  .sg-pass__seite { min-height: 0; padding: 22px 20px 20px; }
  .sg-pass__hinten { min-height: 100%; }
  .sg-pass__felder { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .sg-pass__felder > div:first-child { grid-column: 1 / -1; }
  .sg-pass__felder--hinten { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sg-pass__qr-feld { width: 84px; height: 84px; }
  .sg-protokoll { padding: 20px; }
  .sg-schritt { grid-template-columns: 28px minmax(0, 1fr); }
  .sg-schritt__w { grid-column: 2; text-align: left; }
  .sg-flaeche { padding: var(--tj-pad-surface) var(--tj-inset); }
  .sg-leiste__bis, .sg-leiste__siegel { display: none; }
  .sg-leiste__in { padding: 8px 0; gap: 10px; }
  .sg-leiste__name { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .sg-zustaende li { flex-direction: column; gap: 2px; }
  .sg-zuordnung__tab thead { display: none; }
  .sg-zuordnung__tab, .sg-zuordnung__tab tbody, .sg-zuordnung__tab tr, .sg-zuordnung__tab th, .sg-zuordnung__tab td { display: block; width: auto; }
  .sg-zuordnung__tab tr { padding: 12px 0; border-top: 1px solid var(--tj-line); }
  .sg-flaeche .sg-zuordnung__tab tr { border-top-color: var(--tj-line-dark); }
  .sg-zuordnung__tab th, .sg-zuordnung__tab td { border-top: 0; padding: 0; }
  .sg-zustaende li span { text-align: left; }
}

/* --------------------------------------------------------------------------
   Reduced motion: no movement, the result at once (js skips the sequence).
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .sg-sec *, .sg-leiste, .sg-pass__innen { animation: none !important; transition-duration: 0ms !important; }
  .sg-spinner, .sg-schritt__lade { animation: none !important; }
  .sg-pass__glanz { display: none; }
}
