/* Orbit – Website: Funktions-Szenen im Stil der App, Status-Hinweise.
   Die Szenen benutzen dieselben Werte wie das Design-System der App (src/renderer/styles.css,
   „Orbit Nacht“): weiche Flächen statt Linien, Farbe nur für Zustände. Abgespielt von js/demos.js. */

.ui {
  --u-bg: #070809;
  --u-panel: #141519;
  --u-panel-2: #1b1c21;
  --u-panel-3: #25272d;
  --u-line: rgba(255, 255, 255, 0.07);
  --u-text: #eef0f4;
  --u-muted: #8a8f9b;
  --u-fill: #f2f3f6;
  --u-ink: #0b0c0e;
  --work: #5b9bff;
  --done: #3ccf8e;
  --warn: #f2b84b;
  --danger: #ff6b6b;
  --u-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 16px 44px rgba(0, 0, 0, 0.6);
  --u-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 290px;
  padding: 16px;
  border-radius: 24px;
  background: var(--u-panel);
  box-shadow: var(--u-shadow);
  color: var(--u-text);
  font: 400 13px/1.45 var(--f-text);
  overflow: hidden;
  text-align: left;
}
.ui i,
.ui em,
.ui b {
  font-style: normal;
}
.ui b {
  font-weight: 600;
}

/* Auftauchen: unsichtbar bis „on“; „gone“ blendet wieder aus. Ohne JavaScript ist alles sichtbar. */
.js .ui [data-at] {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.45s var(--u-ease),
    transform 0.45s var(--u-ease);
}
.js .ui [data-at].on {
  opacity: 1;
  transform: none;
}
.js .ui .gone,
.js .ui [data-at].on.gone {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}
.type-rest {
  visibility: hidden;
}
/* Endlos-Animationen laufen nur, solange die Szene im Bild ist */
.js .ui:not(.is-playing) *,
.js .ui:not(.is-playing) *::before,
.js .ui:not(.is-playing) *::after {
  animation-play-state: paused !important;
}

.ui-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--u-muted);
  font-size: 12px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--u-panel-2);
  color: var(--u-muted);
  font-size: 11.5px;
  white-space: nowrap;
}
.pill.rec {
  color: var(--danger);
}
.pill.rec i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  animation: u-blink 1.2s ease-in-out infinite;
}

/* Nachrichten */
.m-me {
  align-self: flex-end;
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 18px 18px 6px 18px;
  background: var(--u-fill);
  color: var(--u-ink);
}
.m-bot {
  align-self: flex-start;
  max-width: 92%;
  padding: 10px 13px;
  border-radius: 18px 18px 18px 6px;
  background: var(--u-panel-2);
}
/* Zwei Elemente am selben Platz (Rückfrage → Antwort), damit nach dem Ausblenden keine Lücke bleibt */
.swap {
  display: grid;
}
.swap > * {
  grid-area: 1 / 1;
}
.swap > .m-bot {
  justify-self: start;
}
.m-bot.sm,
.m-me.sm {
  font-size: 12.5px;
}

/* Werkzeug-Chips: läuft (blau, pulsiert) → fertig (grün) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--u-panel-2);
  color: var(--u-muted);
  font-size: 12px;
}
.chip::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--work);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--work) 60%, transparent);
  animation: u-pulse 1.4s ease-out infinite;
}
.chip.ok {
  color: var(--u-text);
}
.chip.ok::before {
  background: var(--done);
  animation: none;
}

.dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--u-muted);
}
.dot.g { background: var(--done); }
.dot.y { background: var(--warn); }
.dot.r { background: var(--danger); }
.dot.b { background: var(--work); }
.dot.m { background: #5d616c; }

/* Rückfrage */
.ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--u-panel-3);
  font-size: 12.5px;
}
.ask.crit {
  box-shadow: inset 3px 0 0 var(--danger);
}
.ask.big {
  flex-direction: column;
  align-items: flex-start;
}
.ask code {
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--u-bg);
  font: 400 12px/1.4 var(--f-mono);
}
.btns {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
}
.btns i,
.btnrow i,
.acts i {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--u-panel-2);
  font-size: 12px;
  color: var(--u-text);
}
.btns i.pri {
  background: var(--u-fill);
  color: var(--u-ink);
}
.btns i.pri.ok {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--work) 45%, transparent);
}
.acts {
  display: flex;
  gap: 6px;
}
.acts i {
  color: var(--u-muted);
}
.note {
  font-size: 12px;
  color: var(--warn);
}
.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--u-panel-3);
  color: var(--u-muted);
  font-size: 11.5px;
}
.tag.ok { color: var(--done); background: color-mix(in srgb, var(--done) 14%, transparent); }
.tag.bad { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.tag.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }

/* Tabellen ohne Gitter */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.tbl td {
  padding: 6px 6px;
  border-bottom: 1px solid var(--u-line);
  vertical-align: middle;
}
.tbl td:first-child {
  padding-left: 0;
}
.tbl td:nth-child(3) {
  white-space: nowrap;
  color: var(--u-muted);
}
.tbl td:last-child {
  color: var(--u-muted);
}
.strike {
  text-decoration: line-through;
  text-decoration-color: var(--danger);
}

/* Rat */
.council {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.member {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px;
  border-radius: 14px;
  background: var(--u-panel-2);
  font-size: 12px;
}
.member em {
  align-self: flex-start;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--u-panel-3);
  color: var(--u-muted);
  font-size: 10.5px;
}
.lines {
  display: grid;
  gap: 5px;
  margin-top: 6px;
}
.lines i {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  transform-origin: left;
  animation: u-grow 2.6s var(--u-ease) infinite;
}
.lines i.s {
  width: 60%;
}
.lines i:nth-child(2) { animation-delay: 0.3s; }
.lines i:nth-child(3) { animation-delay: 0.6s; }
.proto {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--u-muted);
}
.decide {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  font-size: 12.5px;
}

/* Herkunft */
.hl-ok {
  border-bottom: 2px solid var(--done);
}
.hl-bad {
  text-decoration: underline wavy var(--danger);
  text-underline-offset: 3px;
}
.origin {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 11.5px;
  color: var(--u-muted);
}
.origin span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.origin .warn {
  color: var(--danger);
}

/* Orbit Welt */
.ui--world {
  background: radial-gradient(120% 90% at 20% 30%, #0d1424, var(--u-bg) 70%);
}
.world {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) 1.1fr;
  gap: 14px;
  align-items: center;
}
.globe svg {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  filter: drop-shadow(0 0 24px rgba(91, 155, 255, 0.18));
}
.g-sea { fill: #0b1a33; }
.g-land { fill: #2b4a3a; }
.g-night { fill: rgba(0, 0, 0, 0.45); }
.g-rim { fill: none; stroke: rgba(150, 190, 255, 0.35); stroke-width: 1; }
.g-spin {
  animation: u-spin 16s linear infinite;
}
.g-pt {
  fill: #ffd27a;
  filter: drop-shadow(0 0 4px #ffd27a);
  animation: u-blink 2.2s ease-in-out infinite;
}
.g-pt.b { animation-delay: 0.6s; fill: #9cc2ff; filter: drop-shadow(0 0 4px #9cc2ff); }
.g-pt.c { animation-delay: 1.3s; }
.world__side {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.tabs {
  display: inline-flex;
  align-self: flex-start;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--u-panel-2);
}
.tabs i {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--u-muted);
}
.tabs i.on {
  background: var(--u-panel-3);
  color: var(--u-text);
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
}
.row em {
  margin-left: auto;
  color: var(--u-muted);
  font-size: 11px;
  white-space: nowrap;
}
.js .ui .row.dim.on {
  opacity: 0.55;
}
.sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 12.5px;
}
.sub em {
  color: var(--u-muted);
  font-size: 10.5px;
}
.world__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mini {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 11px;
  border-radius: 14px;
  background: var(--u-panel-2);
  font-size: 12px;
}
.mini em {
  color: var(--u-muted);
  font-size: 11px;
}

/* Meeting */
.wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 46px;
  padding: 0 4px;
}
.wave i {
  flex: 1;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: scaleY(0.25);
  animation: u-wave 1.1s ease-in-out infinite;
}
.wave i:nth-child(3n) { animation-delay: -0.3s; }
.wave i:nth-child(3n + 1) { animation-delay: -0.65s; }
.wave i:nth-child(4n) { animation-duration: 0.8s; }
.wave i:nth-child(5n) { animation-duration: 1.4s; }
.notes p {
  margin: 0 0 4px;
  font-size: 12.5px;
}
.notes b {
  display: inline-block;
  min-width: 70px;
  color: var(--u-muted);
  font-weight: 500;
}
.offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: var(--u-panel-3);
  font-size: 12.5px;
}

/* Kamera */
.photo {
  position: relative;
  height: 110px;
  border-radius: 16px;
  background: radial-gradient(circle at 60% 40%, #1f3a2a, #0e1712 70%);
  overflow: hidden;
}
.leaf {
  position: absolute;
  left: 38%;
  top: 14%;
  width: 70px;
  height: 80px;
  border-radius: 60% 10% 60% 10%;
  background: #3f7a52;
  transform: rotate(-20deg);
}
.leaf.b {
  left: 52%;
  top: 30%;
  width: 54px;
  height: 64px;
  background: #346644;
  transform: rotate(35deg);
}
.scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--work);
  box-shadow: 0 0 14px 2px var(--work);
  animation: u-scan 2.4s ease-in-out infinite;
}
.inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.inputs i {
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--u-panel-2);
  font-size: 11.5px;
  color: var(--u-muted);
}
.hey {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.ring {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--u-text);
}
.ring::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--u-text);
  animation: u-ripple 1.6s ease-out infinite;
}

/* Bildschirm-Begleiter */
.ui--doc {
  background: #e9eaee;
  color: #1b1d22;
}
.doc p {
  margin: 0 0 8px;
  font-size: 12.5px;
}
.doc .h {
  font-weight: 600;
  font-size: 13.5px;
}
.doc .ln {
  height: 1px;
  background: rgba(0, 0, 0, 0.18);
  margin-bottom: 14px;
}
.doc .ln.s {
  width: 70%;
}
.js .ui .sel {
  transform: none;
  opacity: 1;
  transition: background-color 0.4s ease;
  border-radius: 3px;
}
.js .ui .sel.on {
  background: rgba(91, 155, 255, 0.35);
}
.doc .ins {
  color: #1f5ccc;
}
.bubble {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: min(260px, 80%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #141519;
  color: #eef0f4;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  font-size: 12.5px;
}
.bubble .btns {
  margin-left: 0;
}

/* Computersteuerung */
.app {
  position: relative;
  flex: 1;
  border-radius: 14px;
  background: var(--u-bg);
  overflow: hidden;
}
.app__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  background: var(--u-panel-2);
  font-size: 11px;
  color: var(--u-muted);
}
.app__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--u-panel-3);
}
.app__bar span {
  margin-left: 6px;
}
.app__body {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
}
.el {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px dashed rgba(91, 155, 255, 0.5);
  color: var(--u-muted);
  font: 400 11.5px/1.3 var(--f-mono);
}
.el.hit.ok {
  border-style: solid;
  background: color-mix(in srgb, var(--work) 22%, transparent);
  color: var(--u-text);
}
.cursor {
  position: absolute;
  left: 20%;
  top: 80%;
  width: 14px;
  height: 14px;
  clip-path: polygon(0 0, 100% 62%, 52% 62%, 30% 100%);
  background: #fff;
  filter: drop-shadow(0 1px 2px #000);
}
.js .ui .cursor {
  transition:
    opacity 0.3s ease,
    left 0.9s var(--u-ease),
    top 0.9s var(--u-ease);
}
.js .ui .cursor.on {
  left: 37%;
  top: 31%;
}

/* Abläufe */
.flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 0;
  padding: 10px 0;
}
.node {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 11px;
  border-radius: 12px;
  background: var(--u-panel-2);
  box-shadow: inset 3px 0 0 var(--u-muted);
  font-size: 12.5px;
  transition:
    box-shadow 0.4s ease,
    background-color 0.4s ease;
}
.node em {
  color: var(--u-muted);
  font-size: 10.5px;
}
.node.t { box-shadow: inset 3px 0 0 #b9bcc6; }
.node.a { box-shadow: inset 3px 0 0 #a58bff; }
.node.i { box-shadow: inset 3px 0 0 #f29f4b; }
.node.f { box-shadow: inset 3px 0 0 #4bc6d6; }
.node.ok {
  background: color-mix(in srgb, var(--done) 16%, var(--u-panel-2));
}
.node.ok::after {
  content: 'done';
  color: var(--done);
  font-size: 10px;
}
.wire {
  width: 22px;
  height: 2px;
  background: var(--u-panel-3);
  transition: background-color 0.4s ease;
}
.wire.ok {
  background: var(--done);
}
.sched {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--u-muted);
}

/* To-dos */
.brief {
  padding: 11px 13px;
  border-radius: 16px;
  background: var(--u-panel-2);
  font-size: 12.5px;
}
.todo {
  margin: 0;
  padding: 0;
  list-style: none;
}
.todo li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 9px;
  padding: 7px 0;
  border-bottom: 1px solid var(--u-line);
  font-size: 12.5px;
  transition: color 0.4s ease;
}
.todo li > i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--u-muted);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}
.todo li em {
  margin-left: auto;
  font-size: 11px;
  color: var(--work);
}
.todo li em.r {
  color: var(--danger);
}
.todo .next {
  flex: 1 0 100%;
  padding-left: 24px;
  font-size: 11px;
  color: var(--u-muted);
}
.todo li.ok {
  color: var(--u-muted);
  text-decoration: line-through;
}
.todo li.ok > i {
  background: var(--done);
  border-color: var(--done);
}
.dl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

/* Routen */
.map {
  position: relative;
  height: 130px;
  border-radius: 16px;
  background: #11161c;
  overflow: hidden;
}
.map svg {
  width: 100%;
  height: 100%;
}
.m-road {
  fill: none;
  stroke: #262d36;
  stroke-width: 6;
}
.m-route {
  fill: none;
  stroke: var(--work);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: u-draw 9s var(--u-ease) infinite;
}
.m-a { fill: var(--u-text); }
.m-b { fill: var(--danger); }
.jam {
  position: absolute;
  right: 18%;
  top: 46%;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--danger);
  color: #160707;
  font-size: 11px;
  font-weight: 600;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 14px;
}
.stats b:last-child {
  color: var(--u-muted);
  font-weight: 400;
  font-size: 12.5px;
  align-self: center;
}
.btnrow {
  display: flex;
  gap: 6px;
}

/* Fokuszeit */
.focus {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 4px auto 0;
}
.focus__ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.focus__ring circle {
  fill: none;
  stroke: var(--u-panel-3);
  stroke-width: 6;
}
.focus__ring .p {
  stroke: var(--u-text);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0.2;
  animation: u-count 9s linear infinite;
}
.focus__t {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.focus__t b {
  font-size: 30px;
  line-height: 1;
}
.focus__t em {
  color: var(--u-muted);
  font-size: 11px;
}
.apps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.apps span {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--u-panel-2);
  font-size: 12px;
  transition: color 0.4s ease;
}
.apps span.ok {
  color: var(--u-muted);
  text-decoration: line-through;
  text-decoration-color: var(--danger);
}
.apps .keep {
  color: var(--done);
}
.lock {
  align-self: center;
  padding: 7px 12px;
  border-radius: 12px;
  background: var(--u-bg);
  font-size: 12px;
  color: var(--u-muted);
}
.lock b {
  color: var(--u-text);
}

/* Support */
.finds {
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--u-panel-2);
}
.finds p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0;
  font-size: 12.5px;
}

/* Handy + Widget */
.ui--phones {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: radial-gradient(100% 80% at 50% 0%, #1b1c22, var(--u-panel));
}
.phone {
  flex: none;
  width: 160px;
  padding: 6px;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.phone__in {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 262px;
  padding: 16px 9px 10px;
  border-radius: 23px;
  background: var(--u-bg);
}
.p-date {
  margin: 0;
  font-size: 9px;
  color: var(--u-muted);
}
.p-hi {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.p-ask {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--u-panel-2);
  font-size: 9.5px;
  color: var(--u-muted);
}
.p-tile {
  display: flex;
  flex-direction: column;
  padding: 7px 8px;
  border-radius: 12px;
  background: var(--u-panel);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.p-tile b {
  font-size: 14px;
  line-height: 1.1;
}
.p-tile.wide b {
  font-size: 22px;
}
.p-tile span {
  font-size: 8.5px;
  color: var(--u-muted);
}
.p-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.p-grid .p-tile {
  min-width: 0;
  padding: 6px 5px;
}
.p-grid .p-tile b {
  font-size: 12px;
}
.p-grid .p-tile span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 7.5px;
}
.p-todo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}
.p-todo i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--u-muted);
}
.p-todo i.ok {
  background: var(--done);
  border-color: var(--done);
}
.widget {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 140px;
  height: 140px;
  padding: 12px;
  border-radius: 24px;
  background: #1c1d22;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.widget em {
  color: var(--u-muted);
  font-size: 10.5px;
}
.widget b {
  font-size: 14px;
  line-height: 1.2;
}
.widget span {
  margin-top: auto;
  font-size: 11px;
  color: var(--work);
}

/* Anhänger */
.ui--pendant {
  align-items: center;
  justify-content: center;
  background: radial-gradient(80% 70% at 50% 40%, #1a1b20, var(--u-panel));
}
.pendant {
  position: relative;
  width: 196px;
  height: 196px;
  border-radius: 50%;
  background: #000;
  box-shadow:
    0 0 0 7px #2a2b30,
    0 0 0 8px rgba(255, 255, 255, 0.12),
    0 20px 40px rgba(0, 0, 0, 0.6);
}
.pd-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 26px;
  text-align: center;
  transition: opacity 0.5s ease;
}
.pd-clock b {
  font-size: 46px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
}
.pd-clock span,
.pd-done span {
  font-size: 10.5px;
  color: var(--u-muted);
}
.pd-talk {
  font-size: 13px;
}
.pd-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: u-breathe 1.4s ease-in-out infinite;
}
.pd-done b {
  font-size: 22px;
}
.js .ui .pd-clock.gone {
  transform: none;
}
.pd-cap {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: var(--u-muted);
  text-align: center;
}

/* Sicherheit: Szene neben der Liste */
.sec-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  margin-top: clamp(56px, 8vw, 110px);
}
.sec-demo__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sec-demo__list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--t2);
  font-size: 15px;
}
.sec-demo__list b {
  color: var(--t1);
  font-weight: 600;
}
.review {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--u-muted);
}
.anon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--u-bg);
  font: 400 12px/1.45 var(--f-mono);
}
.anon em {
  font: 400 11px/1 var(--f-text);
  color: var(--u-muted);
}
.toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
}
.tg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tg i {
  position: relative;
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: var(--u-panel-3);
}
.tg i::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}
.tg.on i {
  background: var(--done);
}
.tg.on i::after {
  left: 14px;
}

/* ===================== Funktionen: Raster ===================== */
.feats {
  position: relative;
  padding: clamp(140px, 22vh, 240px) 0 clamp(100px, 16vh, 180px);
}
.feats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}
.feat {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(14px, 1.6vw, 20px);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.006) 50%),
    rgba(10, 10, 12, 0.88);
  border: 1px solid var(--line);
}
.feat--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
}
.feat__copy {
  padding: 0 clamp(4px, 1vw, 12px) 6px;
}
.feat--wide .feat__copy {
  padding: 12px clamp(8px, 2vw, 28px);
}
.feat__copy h3 {
  margin: 0 0 10px;
  font: 500 clamp(1.3rem, 1.8vw, 1.75rem)/1.12 var(--f-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.feat__copy p {
  margin: 0;
  max-width: 54ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--t2);
}
.more {
  margin-top: clamp(48px, 7vw, 90px);
}
.more__label {
  margin-bottom: 18px;
}
.more__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.more__list li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 13.5px;
  color: var(--t2);
}

/* ===================== Status ===================== */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(10, 10, 12, 0.6);
  font: 500 12.5px/1 var(--f-text);
  letter-spacing: 0.02em;
  color: var(--t1);
}
.status-pill__dot,
.dot-s {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f2b84b;
  box-shadow: 0 0 10px rgba(242, 184, 75, 0.7);
}
.status-pill__dot {
  animation: u-blink 2.4s ease-in-out infinite;
}
.status-list {
  display: grid;
  gap: 10px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
  text-align: left;
}
.status-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--t2);
  font-size: 15px;
}
.dot-s {
  flex: none;
  background: #55555d;
  box-shadow: none;
}
.dot-s.is-done {
  background: #3ccf8e;
}
.dot-s.is-work {
  background: #5b9bff;
}
.follow {
  max-width: 46ch;
  margin: 0;
  font-size: 13.5px;
  color: var(--t3);
}

/* ===================== Sicherheit: Verschlüsselung, Standards, Lokal ===================== */
.sec-block {
  margin-top: clamp(80px, 11vw, 150px);
}
.sec-block__head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.sec-block__title {
  margin: 0 0 14px;
  font: 500 clamp(1.8rem, 3.4vw, 3rem)/1.05 var(--f-display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.sec-block__head p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--t2);
}
.crypto {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.crypto__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.006) 50%),
    rgba(10, 10, 12, 0.88);
}
.crypto__what {
  font: 500 1.15rem/1.2 var(--f-display);
  letter-spacing: -0.01em;
}
.crypto__how {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font: 400 11px/1 var(--f-mono);
  letter-spacing: 0.04em;
  color: #9fd8bd;
}
.crypto__item p {
  margin: 4px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--t2);
}
.standards__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.standards__list,
.local__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.standards__list li,
.local__list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--t2);
  font-size: 15px;
  line-height: 1.6;
}
.standards__list b,
.local__list b {
  color: var(--t1);
  font-weight: 600;
}
.honest {
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid rgba(242, 184, 75, 0.3);
  background: rgba(242, 184, 75, 0.05);
}
.honest p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--t2);
}
.honest p:last-child {
  margin-bottom: 0;
}
.honest b {
  color: var(--t1);
}
.honest__label {
  font: 400 11px/1 var(--f-mono) !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f2b84b !important;
}
.local__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.ui--local {
  gap: 0;
  align-items: stretch;
}
.lc-box {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--done) 45%, transparent);
  background: color-mix(in srgb, var(--done) 6%, var(--u-panel));
}
.lc-title {
  display: block;
  margin-bottom: 10px;
  color: var(--u-muted);
  font-size: 11.5px;
}
.lc-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lc-items span {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--u-panel-2);
  color: var(--u-muted);
  font-size: 12px;
  transition:
    color 0.4s ease,
    box-shadow 0.4s ease;
}
.lc-items span.ok {
  color: var(--u-text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--done) 60%, transparent);
}
.lc-link {
  position: relative;
  width: 2px;
  height: 46px;
  margin: 0 auto;
  background: repeating-linear-gradient(180deg, var(--u-muted) 0 4px, transparent 4px 8px);
}
.lc-packet {
  position: absolute;
  left: -3px;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--work);
  box-shadow: 0 0 10px var(--work);
  animation: u-travel 1.6s ease-in-out infinite;
}
.lc-cloud {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: var(--u-panel-2);
}
.lc-cloud code {
  font: 400 12px/1.45 var(--f-mono);
}
.lc-note {
  color: var(--u-muted);
  font-size: 11px;
}
@keyframes u-travel {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 38px; opacity: 0; }
}
@media (max-width: 1080px) {
  .crypto {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .standards__grid,
  .local__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .crypto {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===================== Bewegungen ===================== */
@keyframes u-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--work) 60%, transparent); }
  100% { box-shadow: 0 0 0 7px transparent; }
}
@keyframes u-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes u-grow {
  0% { transform: scaleX(0.05); }
  60%, 100% { transform: scaleX(1); }
}
@keyframes u-spin {
  to { transform: translateX(-200px); }
}
@keyframes u-wave {
  0%, 100% { transform: scaleY(0.2); }
  50% { transform: scaleY(1); }
}
@keyframes u-scan {
  0%, 100% { top: 6%; }
  50% { top: 92%; }
}
@keyframes u-ripple {
  from { transform: scale(0.7); opacity: 1; }
  to { transform: scale(1.6); opacity: 0; }
}
@keyframes u-draw {
  0% { stroke-dashoffset: 1; }
  30%, 100% { stroke-dashoffset: 0; }
}
@keyframes u-count {
  from { stroke-dashoffset: 0.2; }
  to { stroke-dashoffset: 0.27; }
}
@keyframes u-breathe {
  0%, 100% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* ===================== Schmale Bildschirme ===================== */
@media (max-width: 900px) {
  .feats__grid,
  .feat--wide,
  .sec-demo {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 759px) {
  .feats {
    padding-top: 110px;
  }
  .feat {
    border-radius: 24px;
  }
  .ui {
    min-height: 0;
    border-radius: 20px;
  }
  .world {
    grid-template-columns: minmax(0, 1fr);
  }
  .globe svg {
    max-width: 170px;
  }
  .world__cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .council {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .member {
    padding: 8px;
  }
  .tbl td:last-child {
    display: none;
  }
  .ui--phones {
    flex-wrap: wrap;
  }
}

/* Weniger Bewegung: Endlos-Animationen ruhen, die Szenen stehen im Endzustand (js/demos.js) */
@media (prefers-reduced-motion: reduce) {
  .ui *,
  .ui *::before,
  .ui *::after,
  .status-pill__dot {
    animation: none !important;
  }
  .m-route {
    stroke-dashoffset: 0;
  }
  .wave i {
    transform: scaleY(0.6);
  }
}
