/* =========================================================================
   discere control – interaktive Klick-Demo
   Styles für App-Chrome (Desktop/Mobile), Geräte-Rahmen und Tour.
   Alles unter .demo-stage gescoped, damit nichts in die Seite leakt.
   Design-Tokens 1:1 aus der echten App (globals.css) nachgebaut.
   ========================================================================= */

.demo-stage {
  /* ── App-Tokens (echte Werte aus discere-control) ── */
  --dc-bg:        #f6f7f9;
  --dc-card:      #ffffff;
  --dc-border:    #e3e6eb;
  --dc-border-sf: #eef0f4;
  --dc-soft:      #f2f4f7;
  --dc-rail:      #1f2937;
  --dc-rail-fg:   #cbd2dc;
  --dc-rail-act:  #4a6b96;
  --dc-rail-hov:  #2d3f55;
  --dc-ink:       #1f2937;
  --dc-ink2:      #4b5563;
  --dc-ink3:      #8a93a0;
  --dc-ink4:      #b0b7c0;
  --dc-accent:    #2d5f8a;
  --dc-accent-dk: #1a3a5c;
  --dc-accent-lt: #e3edf5;
  --dc-green:     #16a34a;  --dc-green-bg: #e6f0e8;
  --dc-amber:     #a8721a;  --dc-amber-bg: #fbf0db;
  --dc-red:       #9a3a3a;  --dc-red-bg:   #fbe6e6;
  --dc-grey:      #6a6a6a;  --dc-grey-bg:  #ebedef;
  /* Lebenszyklus */
  --lc-blau:   #3b82f6;
  --lc-cyan:   #06b6d4;
  --lc-rot:    #dc2626;
  --lc-orange: #e07020;
  --lc-gruen:  #16a34a;
  /* Mangel-Kategorien */
  --kat-0: #4a8a65; --kat-1: #e03030; --kat-3: #e07020; --kat-x: #6a6a6a; --kat-kl: #2d5f8a;

  --dc-font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --dc-serif: 'Urbanist', Georgia, serif;
  --dc-mono: ui-monospace, 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
}

/* ===== Geräte-Rahmen: Browser ===== */
.demo-stage .frame-browser {
  background: var(--dc-card);
  border: 1px solid #d8dee6;
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(15,27,45,0.18), 0 4px 12px rgba(15,27,45,0.06);
  overflow: hidden;
  max-width: 1080px;
  margin: 0 auto;
}
.demo-stage .browser-bar {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.9rem;
  background: #eef1f5;
  border-bottom: 1px solid #dfe4ea;
}
.demo-stage .browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.demo-stage .browser-bar .dot.r { background: #ff5f57; }
.demo-stage .browser-bar .dot.y { background: #febc2e; }
.demo-stage .browser-bar .dot.g { background: #28c840; }
.demo-stage .browser-bar .url {
  flex: 1; max-width: 420px; margin: 0 auto;
  background: #fff; border: 1px solid #dfe4ea; border-radius: 7px;
  font-family: var(--dc-font); font-size: 0.8rem; color: var(--dc-ink2);
  padding: 0.32rem 0.8rem; text-align: center;
}

/* ===== App-Grundgerüst ===== */
.demo-stage .app {
  display: flex;
  height: 620px;
  background: var(--dc-bg);
  font-family: var(--dc-font);
  color: var(--dc-ink);
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
}
.demo-stage .app * { box-sizing: border-box; }

/* ── NavRail ── */
.demo-stage .navrail {
  width: 56px; flex-shrink: 0;
  background: var(--dc-rail);
  display: flex; flex-direction: column; align-items: center;
  padding: 0.5rem 0; gap: 0.25rem;
}
.demo-stage .rail-logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--dc-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--dc-serif); font-weight: 800; font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.demo-stage .rail-item {
  position: relative;
  width: 40px; height: 40px; border-radius: 10px;
  border: none; background: transparent; color: var(--dc-rail-fg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.demo-stage .rail-item svg { width: 19px; height: 19px; stroke-width: 2; }
.demo-stage .rail-item:hover { background: var(--dc-rail-hov); color: #fff; }
.demo-stage .rail-item.active { background: var(--dc-rail-act); color: #fff; }
.demo-stage .rail-item .badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px;
  background: #dc2626; color: #fff; font-size: 0.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.demo-stage .rail-tip {
  position: absolute; left: 48px; top: 50%; transform: translateY(-50%);
  background: #111827; color: #fff; font-size: 0.72rem; white-space: nowrap;
  padding: 0.25rem 0.55rem; border-radius: 6px; opacity: 0; pointer-events: none;
  transition: opacity 0.15s; z-index: 20;
}
.demo-stage .rail-item:hover .rail-tip { opacity: 1; }
.demo-stage .rail-sep { width: 26px; height: 1px; background: rgba(255,255,255,0.12); margin: 0.4rem 0; }
.demo-stage .rail-spacer { flex: 1; }

/* ── App-Main + Topbar ── */
.demo-stage .app-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.demo-stage .topbar {
  height: 48px; flex-shrink: 0;
  background: var(--dc-card); border-bottom: 1px solid var(--dc-border);
  display: flex; align-items: center; gap: 0.9rem; padding: 0 1rem;
}
.demo-stage .tb-logo { display: flex; align-items: baseline; gap: 0.4rem; }
.demo-stage .tb-logo .serif { font-family: var(--dc-serif); font-weight: 800; font-size: 1.05rem; color: var(--dc-accent-dk); }
.demo-stage .tb-logo .tb-control { font-size: 0.6rem; letter-spacing: 0.22em; color: var(--dc-ink3); font-weight: 600; }
.demo-stage .tb-tenant {
  font-size: 0.82rem; color: var(--dc-ink2); padding: 0.25rem 0.6rem;
  border: 1px solid var(--dc-border); border-radius: 7px; cursor: pointer; background: #fff;
}
.demo-stage .tb-spacer { flex: 1; }
.demo-stage .tb-search {
  font-size: 0.8rem; color: var(--dc-ink3); background: var(--dc-soft);
  border: 1px solid var(--dc-border); border-radius: 7px; padding: 0.3rem 0.8rem;
  min-width: 180px; cursor: text;
}
.demo-stage .tb-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--dc-accent);
  color: #fff; font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* ── App-Body / Szenen ── */
.demo-stage .app-body { flex: 1; overflow-y: auto; padding: 1.3rem 1.4rem; }
.demo-stage .scene { display: none; animation: dcFade 0.2s ease both; }
.demo-stage .scene.active { display: block; }
@keyframes dcFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Allgemeine App-Bausteine ── */
.demo-stage .page-title { font-family: var(--dc-serif); font-weight: 800; font-size: 1.35rem; color: var(--dc-ink); letter-spacing: -0.01em; }
.demo-stage .page-sub { color: var(--dc-ink3); font-size: 0.85rem; margin-top: 0.15rem; margin-bottom: 1.1rem; }
.demo-stage .dc-card { background: var(--dc-card); border: 1px solid var(--dc-border); border-radius: 10px; }
.demo-stage .sec-head { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dc-ink3); margin: 0 0 0.5rem; }
.demo-stage .mono { font-family: var(--dc-mono); }

.demo-stage .btn {
  font-family: var(--dc-font); font-size: 0.82rem; font-weight: 600;
  border-radius: 8px; padding: 0.45rem 0.9rem; cursor: pointer; border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 0.4rem; transition: background 0.15s, border-color 0.15s;
}
.demo-stage .btn-accent { background: var(--dc-accent); color: #fff; }
.demo-stage .btn-accent:hover { background: var(--dc-accent-dk); }
.demo-stage .btn-ghost { background: #fff; color: var(--dc-ink2); border-color: var(--dc-border); }
.demo-stage .btn-ghost:hover { border-color: var(--dc-accent); color: var(--dc-accent); }

/* ── Dashboard (originalgetreu, ohne KPI-Kacheln) ── */
.demo-stage .dash-title { font-size: 1.25rem; font-weight: 400; color: var(--dc-ink); }
.demo-stage .dash-date { font-size: 0.78rem; color: var(--dc-ink3); margin-top: 0.1rem; margin-bottom: 1.2rem; }

.demo-stage .dash-route-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--dc-accent); color: #fff; text-decoration: none;
  font-size: 0.84rem; font-weight: 500; padding: 0.5rem 1rem; border-radius: 8px;
  margin-bottom: 1rem; cursor: pointer; border: none;
}
.demo-stage .dash-route-btn svg { width: 15px; height: 15px; }

.demo-stage .dash-alarm { border: 1px solid #f0c0c0; background: #fdf2f2; border-radius: 12px; overflow: hidden; margin-bottom: 1rem; }
.demo-stage .dash-alarm-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--dc-border-sf); }
.demo-stage .dash-alarm-head svg { width: 16px; height: 16px; color: var(--dc-red); flex-shrink: 0; }
.demo-stage .dash-alarm-head h2 { flex: 1; font-size: 0.85rem; font-weight: 600; color: var(--dc-red); margin: 0; }

.demo-stage .sec-cnt { font-size: 0.72rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 20px; }
.demo-stage .sec-cnt.red { background: var(--dc-red-bg); color: var(--dc-red); }
.demo-stage .sec-cnt.soft { background: var(--dc-soft); color: var(--dc-ink2); }

.demo-stage .dash-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.demo-stage .sec-card { background: var(--dc-card); border: 1px solid var(--dc-border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.demo-stage .sec-card-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--dc-border-sf); }
.demo-stage .sec-card-head svg { width: 16px; height: 16px; flex-shrink: 0; }
.demo-stage .sec-card-head h2 { flex: 1; font-size: 0.85rem; font-weight: 600; color: var(--dc-ink); margin: 0; }
.demo-stage .ic-green { color: var(--dc-green); }
.demo-stage .ic-accent { color: var(--dc-accent); }
.demo-stage .ic-amber { color: var(--dc-amber); }

.demo-stage .dash-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.demo-stage .dash-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--dc-border-sf); }
.demo-stage .dash-row:last-child { border-bottom: none; }
.demo-stage .dash-row-main { flex: 1; min-width: 0; text-align: left; background: none; border: none; cursor: pointer; padding: 0.55rem 1rem; transition: background 0.12s; font-family: inherit; }
.demo-stage .dash-row-main:hover { background: var(--dc-soft); }
.demo-stage .dash-row-top { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.2rem; }
.demo-stage .dash-row-top .num { font-family: var(--dc-mono); font-size: 0.72rem; color: var(--dc-ink3); }
.demo-stage .dash-row-top .flex1 { flex: 1; }
.demo-stage .art-badge { font-size: 0.62rem; font-weight: 700; padding: 0.06rem 0.4rem; border-radius: 4px; }
.demo-stage .art-badge.pk { background: var(--dc-status-blue-bg, #e3edf5); color: var(--dc-accent); }
.demo-stage .art-badge.ak { background: var(--dc-green-bg); color: var(--dc-green); }
.demo-stage .art-badge.sk { background: var(--dc-amber-bg); color: var(--dc-amber); }
.demo-stage .statusflags { display: inline-flex; align-items: center; gap: 4px; }
.demo-stage .statusflags svg { width: 14px; height: 14px; }
.demo-stage .dash-row-name { font-size: 0.84rem; color: var(--dc-ink); }
.demo-stage .dash-row-meta { font-size: 0.72rem; color: var(--dc-ink3); margin-top: 0.1rem; }
.demo-stage .dash-row-nav { display: flex; align-items: center; padding: 0 0.8rem; border: none; border-left: 1px solid var(--dc-border-sf); color: var(--dc-accent); cursor: pointer; background: none; }
.demo-stage .dash-row-nav:hover { background: var(--dc-soft); }
.demo-stage .dash-row-nav svg { width: 16px; height: 16px; }
.demo-stage .sec-expand { padding: 0.5rem; font-size: 0.72rem; font-weight: 500; color: var(--dc-accent); border: none; border-top: 1px solid var(--dc-border-sf); background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.25rem; }
.demo-stage .sec-expand:hover { background: var(--dc-soft); }
.demo-stage .sec-expand svg { width: 14px; height: 14px; }

/* Lebenszyklus-Pin (klein, für Listen) */
.demo-stage .lc-pin { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.demo-stage .lc-pin.blau { background: var(--lc-blau); }
.demo-stage .lc-pin.cyan { background: var(--lc-cyan); }
.demo-stage .lc-pin.rot { background: var(--lc-rot); }
.demo-stage .lc-pin.orange { background: var(--lc-orange); }
.demo-stage .lc-pin.gruen { background: var(--lc-gruen); }
.demo-stage .lc-pin.quadrat { border-radius: 3px; }
.demo-stage .lc-pin.dreieck { width: 0; height: 0; border-radius: 0; background: transparent !important; border: none; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 12px solid var(--lc-rot); box-shadow: none; }

/* Mini-Badge */
.demo-stage .pill {
  font-size: 0.7rem; font-weight: 600; padding: 0.12rem 0.5rem; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.demo-stage .pill.blue { background: var(--dc-accent-lt); color: var(--dc-accent); }
.demo-stage .pill.amber { background: var(--dc-amber-bg); color: var(--dc-amber); }
.demo-stage .pill.red { background: var(--dc-red-bg); color: var(--dc-red); }
.demo-stage .pill.green { background: var(--dc-green-bg); color: var(--dc-green); }
.demo-stage .pill.grey { background: var(--dc-grey-bg); color: var(--dc-grey); }

/* placeholder scenes for later stages */
.demo-stage .scene-stub { color: var(--dc-ink3); font-size: 0.85rem; padding: 2rem; text-align: center; }

/* ===== Kontrollen-Liste ===== */
.demo-stage .list-head { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.demo-stage .list-title { font-size: 1.25rem; font-weight: 400; color: var(--dc-ink); }
.demo-stage .btn-new { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--dc-accent); color: #fff; border: none; font-size: 0.82rem; font-weight: 500; padding: 0.4rem 0.8rem; border-radius: 6px; cursor: pointer; }
.demo-stage .btn-new svg { width: 15px; height: 15px; }
.demo-stage .btn-new:hover { background: var(--dc-accent-dk); }

.demo-stage .view-tabs { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.demo-stage .view-tab { font-size: 0.72rem; padding: 0.35rem 0.75rem; border-radius: 8px; border: 1px solid var(--dc-border); background: var(--dc-card); color: var(--dc-ink2); cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem; }
.demo-stage .view-tab.active { background: var(--dc-ink); color: #fff; border-color: var(--dc-ink); }
.demo-stage .view-tab.add { border-style: dashed; color: var(--dc-accent); border-color: var(--dc-accent); background: none; }
.demo-stage .view-tab.add svg { width: 12px; height: 12px; }

.demo-stage .list-search { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.8rem; border-radius: 8px; border: 1px solid var(--dc-border); background: var(--dc-card); margin-bottom: 1rem; max-width: 420px; }
.demo-stage .list-search svg { width: 14px; height: 14px; color: var(--dc-ink3); flex-shrink: 0; }
.demo-stage .list-search input { flex: 1; border: none; outline: none; background: none; font-family: inherit; font-size: 0.85rem; color: var(--dc-ink); }

.demo-stage .k-table-wrap { border: 1px solid var(--dc-border); border-radius: 8px; overflow: hidden; overflow-x: auto; }
.demo-stage table.k-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.demo-stage table.k-table thead tr { background: var(--dc-soft); }
.demo-stage table.k-table th { padding: 0.5rem 0.75rem; text-align: left; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dc-ink3); border-bottom: 1px solid var(--dc-border); white-space: nowrap; }
.demo-stage table.k-table th.r { text-align: right; }
.demo-stage table.k-table td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--dc-border-sf); color: var(--dc-ink2); white-space: nowrap; }
.demo-stage table.k-table td.ink { color: var(--dc-ink); }
.demo-stage table.k-table td.mono { font-family: var(--dc-mono); font-size: 0.78rem; }
.demo-stage table.k-table tbody tr { background: var(--dc-card); cursor: pointer; transition: background 0.12s; }
.demo-stage table.k-table tbody tr:hover { background: var(--dc-soft); }
.demo-stage table.k-table tbody tr:last-child td { border-bottom: none; }
.demo-stage .list-count { font-size: 0.72rem; color: var(--dc-ink4); margin-top: 0.7rem; }

/* ===== Kontroll-Detail ===== */
.demo-stage .kdetail-head { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.9rem; }
.demo-stage .kdetail-back { display: inline-flex; align-items: center; gap: 0.4rem; }
.demo-stage .kdetail-back .bk { width: 30px; height: 30px; border-radius: 50%; border: none; background: none; color: var(--dc-ink2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.demo-stage .kdetail-back .bk:hover { background: var(--dc-soft); }
.demo-stage .kdetail-back .bk svg { width: 20px; height: 20px; }
.demo-stage .kdetail-num { font-size: 1.25rem; font-weight: 400; color: var(--dc-ink); }
.demo-stage .kdetail-save { display: flex; align-items: center; gap: 0.7rem; }
.demo-stage .save-status { font-size: 0.74rem; color: var(--dc-green); }
.demo-stage .btn-save { font-size: 0.72rem; font-weight: 500; padding: 0.3rem 0.7rem; border-radius: 6px; border: 1px solid var(--dc-border); background: var(--dc-soft); color: var(--dc-ink2); cursor: pointer; }

/* Status-Balken */
.demo-stage .statusbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.7rem; border-radius: 8px; background: var(--dc-card); border: 1px solid var(--dc-border); margin-bottom: 1rem; }
.demo-stage .stage-pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.72rem; font-weight: 500; white-space: nowrap; border: none; cursor: pointer; transition: background 0.15s, color 0.15s; background: var(--dc-soft); color: var(--dc-ink3); }
.demo-stage .stage-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--dc-ink4); flex-shrink: 0; }
.demo-stage .stage-pill.on { background: var(--dc-green-bg); color: var(--dc-green); }
.demo-stage .stage-pill.on .dot { background: var(--dc-green); }
.demo-stage .stage-pill.archiv { cursor: default; }
.demo-stage .stage-pill.nk { background: var(--dc-amber-bg); color: var(--dc-amber); cursor: default; }
.demo-stage .stage-pill.nk .dot { background: var(--dc-amber); }

/* Tab-Leiste */
.demo-stage .ktabs { display: flex; gap: 0; border-bottom: 1px solid var(--dc-border); margin-bottom: 1.2rem; overflow-x: auto; }
.demo-stage .ktab { padding: 0.5rem 0.9rem; font-size: 0.83rem; white-space: nowrap; border: none; border-bottom: 2px solid transparent; background: none; color: var(--dc-ink3); cursor: pointer; }
.demo-stage .ktab:hover { color: var(--dc-ink2); }
.demo-stage .ktab.active { border-bottom-color: var(--dc-accent); color: var(--dc-accent); }
.demo-stage .ktab-panel { display: none; }
.demo-stage .ktab-panel.active { display: block; animation: dcFade 0.2s ease both; }

/* Informationen-Tab */
.demo-stage .info-card { background: var(--dc-card); border: 1px solid var(--dc-border); border-radius: 8px; padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.demo-stage .info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem 1rem; }
.demo-stage .info-sec { grid-column: 1 / -1; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dc-ink3); margin: 0.3rem 0 0.1rem; }
.demo-stage .info-sec:not(:first-child) { margin-top: 0.8rem; }
.demo-stage .fld { display: flex; flex-direction: column; gap: 0.2rem; }
.demo-stage .fld.span2 { grid-column: span 2; }
.demo-stage .fld.span3 { grid-column: 1 / -1; }
.demo-stage .fld-label { font-size: 0.7rem; color: var(--dc-ink3); }
.demo-stage .inp { font-family: inherit; font-size: 0.83rem; color: var(--dc-ink); background: var(--dc-soft); border: 1px solid var(--dc-border); border-radius: 6px; padding: 0.4rem 0.6rem; outline: none; width: 100%; }
.demo-stage .inp:focus { border-color: var(--dc-accent); background: #fff; }
.demo-stage .inp.mono { font-family: var(--dc-mono); }
.demo-stage select.inp { cursor: pointer; }
.demo-stage textarea.inp { resize: vertical; min-height: 56px; }

/* Adress-Auswahl (Swisstopo) */
.demo-stage .addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.demo-stage .addr-role { border: 1px solid var(--dc-border); border-radius: 8px; padding: 0.8rem; background: var(--dc-card); position: relative; }
.demo-stage .addr-role-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.demo-stage .addr-role-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dc-ink3); }
.demo-stage .addr-search { display: flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.6rem; border: 1px solid var(--dc-border); border-radius: 6px; background: var(--dc-soft); }
.demo-stage .addr-search svg { width: 14px; height: 14px; color: var(--dc-ink3); flex-shrink: 0; }
.demo-stage .addr-search input { flex: 1; border: none; outline: none; background: none; font-family: inherit; font-size: 0.82rem; color: var(--dc-ink); }
.demo-stage .addr-sugg { list-style: none; margin: 0.3rem 0 0; padding: 0; border: 1px solid var(--dc-border); border-radius: 6px; overflow: hidden; max-height: 168px; overflow-y: auto; box-shadow: 0 8px 22px rgba(15,27,45,0.1); }
.demo-stage .addr-sugg li { padding: 0.45rem 0.6rem; font-size: 0.8rem; color: var(--dc-ink); cursor: pointer; border-bottom: 1px solid var(--dc-border-sf); }
.demo-stage .addr-sugg li:last-child { border-bottom: none; }
.demo-stage .addr-sugg li:hover { background: var(--dc-accent-lt); }
.demo-stage .addr-sugg .muted { color: var(--dc-ink3); font-size: 0.74rem; }
.demo-stage .addr-sugg .empty { color: var(--dc-ink4); cursor: default; }
.demo-stage .addr-sugg .empty:hover { background: none; }
.demo-stage .addr-selected { border: 1px solid var(--dc-accent-lt); background: #fbfdff; border-radius: 6px; padding: 0.55rem 0.7rem; font-size: 0.82rem; color: var(--dc-ink); position: relative; }
.demo-stage .addr-selected .a-name { font-weight: 600; }
.demo-stage .addr-selected .a-line { color: var(--dc-ink2); font-size: 0.8rem; }
.demo-stage .addr-selected .a-clear { position: absolute; top: 0.4rem; right: 0.5rem; border: none; background: none; color: var(--dc-ink3); cursor: pointer; font-size: 1rem; line-height: 1; }
.demo-stage .addr-egid { margin-top: 0.5rem; font-size: 0.7rem; color: var(--dc-ink3); display: flex; align-items: center; gap: 0.3rem; }
.demo-stage .addr-egid .badge-egid { font-family: var(--dc-mono); background: var(--dc-green-bg); color: var(--dc-green); padding: 0.05rem 0.4rem; border-radius: 4px; font-size: 0.68rem; }

@media (max-width: 720px) {
  .demo-stage .info-grid { grid-template-columns: 1fr; }
  .demo-stage .addr-grid { grid-template-columns: 1fr; }
}

/* ===== Karte (Leaflet + Swisstopo) ===== */
.demo-stage .map-wrap { position: relative; height: 520px; border-radius: 10px; overflow: hidden; border: 1px solid var(--dc-border); background: #e8eae5; }
.demo-stage .demo-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.demo-stage .leaflet-container { font-family: var(--dc-font); background: #e8eae5; }

/* Pins als Leaflet-DivIcons */
.demo-stage .dc-pin { background: transparent; border: none; }
.demo-stage .dc-pin .pdot { display: block; width: 19px; height: 19px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.45); }
.demo-stage .dc-pin.quadrat .pdot { border-radius: 4px; }
.demo-stage .dc-pin.dreieck .pdot { width: 0; height: 0; border-radius: 0; border: none; background: transparent !important; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 16px solid currentColor; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45)); }

.demo-stage .map-count { position: absolute; right: 12px; top: 12px; background: #fff; border: 1px solid var(--dc-border); border-radius: 8px; padding: 0.3rem 0.7rem; font-size: 0.74rem; color: var(--dc-ink2); box-shadow: 0 4px 14px rgba(0,0,0,0.1); z-index: 1000; }

.demo-stage .map-legend { position: absolute; left: 12px; bottom: 12px; background: #fff; border: 1px solid var(--dc-border); border-radius: 8px; padding: 0.6rem 0.75rem; box-shadow: 0 4px 14px rgba(0,0,0,0.12); z-index: 1000; }
.demo-stage .map-legend .lg-head { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dc-ink3); margin-bottom: 0.45rem; }
.demo-stage .map-legend label { display: flex; align-items: center; gap: 0.45rem; padding: 0.13rem 0; cursor: pointer; color: var(--dc-ink2); font-size: 0.74rem; }
.demo-stage .map-legend label.off { opacity: 0.4; }
.demo-stage .map-legend input { cursor: pointer; margin: 0; }
.demo-stage .map-legend .lg-mk { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.12); flex-shrink: 0; }
.demo-stage .map-legend .lg-mk.quadrat { border-radius: 3px; }
.demo-stage .map-legend .lg-mk.dreieck { width: 0; height: 0; border-radius: 0; border: none; box-shadow: none; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 11px solid currentColor; }

/* Leaflet-Popup im App-Stil */
.demo-stage .leaflet-popup-content-wrapper { border-radius: 8px; box-shadow: 0 10px 28px rgba(15,27,45,0.22); }
.demo-stage .leaflet-popup-content { margin: 0.55rem 0.7rem; }
.demo-stage .mp-top { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.25rem; }
.demo-stage .mp-num { font-family: var(--dc-mono); font-size: 0.7rem; color: var(--dc-ink3); }
.demo-stage .mp-name { font-weight: 600; font-size: 0.82rem; color: var(--dc-ink); }
.demo-stage .mp-addr { font-size: 0.76rem; color: var(--dc-ink2); margin-top: 0.05rem; }
.demo-stage .mp-actions { display: flex; gap: 0.4rem; margin-top: 0.55rem; }
.demo-stage .mp-btn { font-size: 0.72rem; font-weight: 500; padding: 0.3rem 0.65rem; border-radius: 6px; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem; }
.demo-stage .mp-btn svg { width: 12px; height: 12px; }
.demo-stage .mp-btn.open { background: var(--dc-accent); color: #fff; }
.demo-stage .mp-btn.nav { background: var(--dc-accent-lt); color: var(--dc-accent); }

/* =========================================================================
   BÜHNE B — Handy / Feld (Phone-Rahmen + Mobile-Chrome)
   ========================================================================= */
.demo-stage .frame-phone { width: 392px; max-width: 100%; margin: 0 auto; background: #0b0d10; border-radius: 46px; padding: 11px; box-shadow: 0 30px 70px rgba(15,27,45,0.28), 0 4px 12px rgba(15,27,45,0.1); }
.demo-stage .phone-screen { position: relative; background: var(--dc-bg); border-radius: 36px; overflow: hidden; height: 760px; display: flex; flex-direction: column; }
.demo-stage .phone-statusbar { height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 1.4rem; font-size: 0.74rem; font-weight: 600; color: var(--dc-ink); background: var(--dc-card); }
.demo-stage .phone-statusbar .ph-icons { display: inline-flex; gap: 0.3rem; align-items: center; }
.demo-stage .phone-notch { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 120px; height: 22px; background: #0b0d10; border-radius: 0 0 14px 14px; z-index: 5; }

.demo-stage .mtopbar { height: 46px; flex-shrink: 0; background: var(--dc-card); border-bottom: 1px solid var(--dc-border); display: flex; align-items: center; gap: 0.7rem; padding: 0 0.9rem; }
.demo-stage .mtopbar .burger { background: none; border: none; color: var(--dc-ink2); cursor: pointer; display: flex; padding: 0; }
.demo-stage .mtopbar .burger svg { width: 20px; height: 20px; }
.demo-stage .mtopbar .tb-logo { flex: 1; }
.demo-stage .mbody { flex: 1; overflow-y: auto; padding: 0.9rem 0.9rem 3.6rem; }

/* Mobile Kontroll-Header */
.demo-stage .mk-head { display: flex; align-items: flex-start; gap: 0.4rem; margin-bottom: 0.7rem; }
.demo-stage .mk-back { width: 32px; height: 32px; border-radius: 50%; border: none; background: none; color: var(--dc-ink2); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.demo-stage .mk-back svg { width: 20px; height: 20px; }
.demo-stage .mk-info { flex: 1; min-width: 0; padding-top: 0.2rem; }
.demo-stage .mk-row1 { display: flex; align-items: center; gap: 0.5rem; }
.demo-stage .mk-num { font-family: var(--dc-mono); font-size: 0.82rem; color: var(--dc-ink2); }
.demo-stage .mk-addr { font-size: 0.84rem; font-weight: 600; color: var(--dc-ink); margin-top: 0.1rem; }

/* Mobile Pill-Tabs */
.demo-stage .mtabs { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.7rem; margin-bottom: 0.4rem; scrollbar-width: none; }
.demo-stage .mtabs::-webkit-scrollbar { display: none; }
.demo-stage .mtab { flex-shrink: 0; padding: 0.35rem 0.85rem; border-radius: 20px; font-size: 0.8rem; font-weight: 500; white-space: nowrap; border: none; cursor: pointer; background: var(--dc-soft); color: var(--dc-ink2); }
.demo-stage .mtab.active { background: var(--dc-ink); color: #fff; }
.demo-stage .mtab-panel { display: none; }
.demo-stage .mtab-panel.active { display: block; animation: dcFade 0.2s ease both; }

/* Mängel-Liste (mobil) */
.demo-stage .m-add { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.4rem; background: var(--dc-accent); color: #fff; border: none; border-radius: 10px; padding: 0.7rem; font-size: 0.88rem; font-weight: 600; cursor: pointer; margin-bottom: 0.8rem; font-family: inherit; }
.demo-stage .m-add svg { width: 16px; height: 16px; }
.demo-stage .m-card { display: flex; gap: 0; border: 1px solid var(--dc-border); border-radius: 10px; overflow: hidden; background: var(--dc-card); margin-bottom: 0.6rem; }
.demo-stage .m-bar { width: 5px; flex-shrink: 0; }
.demo-stage .m-card-body { flex: 1; padding: 0.65rem 0.75rem; min-width: 0; }
.demo-stage .m-card-top { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.2rem; }
.demo-stage .m-nr { font-size: 0.92rem; font-weight: 800; color: var(--dc-ink); }
.demo-stage .m-kat { width: 20px; height: 20px; border-radius: 5px; color: #fff; font-size: 0.7rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.demo-stage .m-photo { margin-left: auto; color: var(--dc-ink3); display: inline-flex; align-items: center; gap: 0.2rem; font-size: 0.7rem; }
.demo-stage .m-photo svg { width: 13px; height: 13px; }
.demo-stage .m-title { font-size: 0.86rem; font-weight: 600; color: var(--dc-ink); margin-top: 0.1rem; }
.demo-stage .m-desc { font-size: 0.78rem; color: var(--dc-ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 0.15rem; }
.demo-stage .m-meta { font-size: 0.74rem; color: var(--dc-ink3); margin-top: 0.2rem; }
.demo-stage .m-sync { font-size: 0.72rem; color: var(--dc-green); display: flex; align-items: center; gap: 0.25rem; margin-top: 0.45rem; }
.demo-stage .m-sync svg { width: 12px; height: 12px; }

/* Mängel-Sheet (Bottom-Sheet) */
.demo-stage .m-sheet-backdrop { position: absolute; inset: 0; background: rgba(15,27,45,0.4); z-index: 20; display: none; }
.demo-stage .m-sheet-backdrop.open { display: block; }
.demo-stage .m-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; background: var(--dc-card); border-radius: 18px 18px 0 0; max-height: 88%; display: flex; flex-direction: column; transform: translateY(100%); transition: transform 0.28s ease; }
.demo-stage .m-sheet.open { transform: translateY(0); }
.demo-stage .m-sheet-head { position: relative; display: flex; align-items: center; justify-content: center; padding: 0.9rem 1rem 0.6rem; border-bottom: 1px solid var(--dc-border-sf); }
.demo-stage .m-sheet-head h3 { font-size: 0.95rem; font-weight: 700; color: var(--dc-ink); }
.demo-stage .m-sheet-head .x { position: absolute; left: 0.9rem; border: none; background: none; color: var(--dc-ink3); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.demo-stage .m-sheet-head .unsaved { position: absolute; right: 1rem; font-size: 0.7rem; color: var(--dc-ink3); }
.demo-stage .m-sheet-body { overflow-y: auto; padding: 0.9rem 1rem; }
.demo-stage .m-sheet .fld-label { text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; font-size: 0.64rem; }
.demo-stage .m-sheet-foot { padding: 0.7rem 1rem; border-top: 1px solid var(--dc-border-sf); }
.demo-stage .m-fld { margin-bottom: 0.8rem; }
.demo-stage .m-fld > .fld-label { display: block; margin-bottom: 0.25rem; }
.demo-stage .kat-chips { display: flex; gap: 0.4rem; }
.demo-stage .kat-chip { flex: 1; padding: 0.5rem 0; border-radius: 8px; font-size: 0.88rem; font-weight: 800; color: #fff; border: 2px solid transparent; cursor: pointer; text-align: center; opacity: 0.85; transition: opacity 0.12s; font-family: inherit; }
.demo-stage .kat-chip.sel { opacity: 1; border-color: var(--dc-ink); }
.demo-stage .vorlage-box { position: relative; }
.demo-stage .vorlage-sugg { list-style: none; margin: 0.3rem 0 0; padding: 0; border: 1px solid var(--dc-border); border-radius: 8px; overflow: hidden; }
.demo-stage .vorlage-sugg li { padding: 0.5rem 0.7rem; font-size: 0.82rem; color: var(--dc-ink); cursor: pointer; border-bottom: 1px solid var(--dc-border-sf); }
.demo-stage .vorlage-sugg li:last-child { border-bottom: none; }
.demo-stage .vorlage-sugg li:hover { background: var(--dc-accent-lt); }
.demo-stage .vorlage-sugg .v-norm { font-size: 0.72rem; color: var(--dc-ink3); font-family: var(--dc-mono); }
.demo-stage .m-photos { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.demo-stage .m-photo-add { width: 64px; height: 64px; border-radius: 10px; border: 1.5px dashed var(--dc-border2); background: var(--dc-soft); color: var(--dc-ink3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; cursor: pointer; font-size: 0.6rem; }
.demo-stage .m-photo-add svg { width: 18px; height: 18px; }
.demo-stage .m-photo-thumb { width: 64px; height: 64px; border-radius: 10px; position: relative; overflow: hidden; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.demo-stage .m-photo-thumb .pk-check { position: absolute; right: 3px; bottom: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--dc-green); color: #fff; display: flex; align-items: center; justify-content: center; }
.demo-stage .m-photo-thumb .pk-check svg { width: 11px; height: 11px; }
.demo-stage .btn-done { width: 100%; background: var(--dc-accent); color: #fff; border: none; border-radius: 10px; padding: 0.7rem; font-size: 0.9rem; font-weight: 600; cursor: pointer; font-family: inherit; }

/* Mängel-Tab: Counts, Hint, Abschliessen, Akkordeons, FAB, SyncPill */
.demo-stage .m-counts { font-size: 0.78rem; color: var(--dc-ink3); margin-bottom: 0.35rem; }
.demo-stage .m-counts b { color: var(--dc-ink); }
.demo-stage .m-hint { font-size: 0.72rem; color: var(--dc-ink4); line-height: 1.5; margin-bottom: 0.9rem; }
.demo-stage .m-abschliessen { width: 100%; background: var(--dc-accent); color: #fff; border: none; border-radius: 10px; padding: 0.8rem; font-size: 0.9rem; font-weight: 600; cursor: pointer; margin: 0.5rem 0 0.9rem; font-family: inherit; }
.demo-stage .m-accordion { border: 1px solid var(--dc-border); border-radius: 10px; background: var(--dc-card); margin-bottom: 0.7rem; overflow: hidden; }
.demo-stage .m-acc-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 0.9rem; cursor: pointer; font-size: 0.86rem; font-weight: 600; color: var(--dc-ink); }
.demo-stage .m-acc-head svg { width: 16px; height: 16px; color: var(--dc-ink3); transition: transform 0.15s; }
.demo-stage .m-accordion.open .m-acc-head svg { transform: rotate(90deg); }
.demo-stage .m-acc-body { padding: 0 0.9rem 0.9rem; display: none; }
.demo-stage .m-accordion.open .m-acc-body { display: block; }
.demo-stage .frist-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--dc-ink2); margin-bottom: 0.8rem; }
.demo-stage .frist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-bottom: 0.7rem; }
.demo-stage .btn-outline { width: 100%; padding: 0.6rem; border: 1px solid var(--dc-border2); background: var(--dc-card); border-radius: 8px; font-size: 0.84rem; color: var(--dc-ink2); cursor: pointer; font-family: inherit; }
.demo-stage .frist-hint { font-size: 0.72rem; color: var(--dc-ink4); margin: 0.7rem 0; }
.demo-stage .btn-accent-sm { background: var(--dc-accent); color: #fff; border: none; border-radius: 8px; padding: 0.5rem 0.9rem; font-size: 0.82rem; font-weight: 600; cursor: pointer; float: right; font-family: inherit; }
.demo-stage .m-textnorm-del { font-size: 0.74rem; color: #9a3a3a; background: none; border: 1px solid var(--dc-border); border-radius: 6px; padding: 0.35rem 0.65rem; cursor: pointer; margin-top: 0.5rem; font-family: inherit; }
.demo-stage .fab { position: absolute; right: 16px; bottom: 60px; width: 52px; height: 52px; border-radius: 50%; background: var(--dc-accent); color: #fff; border: none; box-shadow: 0 6px 18px rgba(42,113,184,0.45); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 15; }
.demo-stage .fab svg { width: 24px; height: 24px; }
.demo-stage .sync-pill { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: #e6f5ec; color: #16a34a; border: 1px solid #bfe6cd; border-radius: 20px; padding: 0.32rem 0.85rem; font-size: 0.74rem; font-weight: 600; display: flex; align-items: center; gap: 0.4rem; z-index: 14; white-space: nowrap; }
.demo-stage .sync-pill .d { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; }

/* Messungen (mobil) */
.demo-stage .mess-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.demo-stage .mess-btn { font-size: 0.74rem; font-weight: 500; padding: 0.35rem 0.7rem; border-radius: 7px; border: 1px solid var(--dc-border); background: var(--dc-card); color: var(--dc-ink2); cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem; }
.demo-stage .mess-btn.accent { background: var(--dc-accent); color: #fff; border-color: transparent; }
.demo-stage .mess-btn svg { width: 13px; height: 13px; }
.demo-stage .quickfill { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.7rem; padding: 0.5rem 0.6rem; background: var(--dc-accent-lt); border-radius: 8px; }
.demo-stage .quickfill .qf-label { font-size: 0.72rem; color: var(--dc-accent-dk); font-weight: 600; }
.demo-stage .qf-btn { font-size: 0.74rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 6px; border: 1px solid var(--dc-accent); background: #fff; color: var(--dc-accent); cursor: pointer; }
.demo-stage .mess-table { width: 100%; border-collapse: collapse; font-size: 0.76rem; border: 1px solid var(--dc-border); border-radius: 8px; overflow: hidden; }
.demo-stage .mess-table th { background: var(--dc-soft); text-align: left; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dc-ink3); padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--dc-border); }
.demo-stage .mess-table th.r, .demo-stage .mess-table td.r { text-align: right; }
.demo-stage .mess-table td { padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--dc-border-sf); color: var(--dc-ink2); }
.demo-stage .mess-table td.mono { font-family: var(--dc-mono); }
.demo-stage .mess-table tr:last-child td { border-bottom: none; }

/* Bericht (mobil) */
.demo-stage .ber-toolbar { display: flex; gap: 0.2rem; padding: 0.4rem; border: 1px solid var(--dc-border); border-bottom: none; border-radius: 8px 8px 0 0; background: var(--dc-soft); }
.demo-stage .ber-toolbar button { width: 28px; height: 28px; border: none; background: none; border-radius: 5px; color: var(--dc-ink2); cursor: pointer; font-size: 0.85rem; }
.demo-stage .ber-toolbar button:hover { background: var(--dc-card); }
.demo-stage .ber-area { border: 1px solid var(--dc-border); border-radius: 0 0 8px 8px; padding: 0.7rem; min-height: 220px; font-size: 0.84rem; color: var(--dc-ink); line-height: 1.6; background: var(--dc-card); outline: none; }
.demo-stage .ber-area p { margin-bottom: 0.6rem; }
.demo-stage .ber-load { margin-top: 0.7rem; font-size: 0.78rem; font-weight: 500; color: var(--dc-accent); background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0; }

/* Bericht (mobil) – vollständige Erstellung */
.demo-stage .ber-card { background: var(--dc-card); border: 1px solid var(--dc-border); border-radius: 10px; padding: 0.85rem 0.9rem; margin-bottom: 0.7rem; }
.demo-stage .ber-card-title { font-size: 0.9rem; font-weight: 700; color: var(--dc-ink); margin-bottom: 0.7rem; }
.demo-stage .ber-btn-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.demo-stage .ber-btn { font-size: 0.8rem; font-weight: 600; padding: 0.5rem 0.85rem; border-radius: 8px; border: none; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 0.35rem; }
.demo-stage .ber-btn svg { width: 14px; height: 14px; }
.demo-stage .ber-btn.accent { background: var(--dc-accent); color: #fff; }
.demo-stage .ber-btn.ghost { background: var(--dc-card); color: var(--dc-ink2); border: 1px solid var(--dc-border2); }
.demo-stage .ber-btn.danger { background: var(--dc-card); color: #9a3a3a; border: 1px solid var(--dc-border2); }
.demo-stage .ber-btn.disabled { background: var(--dc-soft); color: var(--dc-ink4); cursor: default; }
.demo-stage .ber-addr-sel { border: 1px solid var(--dc-border); background: var(--dc-soft); border-radius: 6px; padding: 0.5rem 0.6rem; font-size: 0.8rem; color: var(--dc-ink); margin: 0.4rem 0; }
.demo-stage .ber-genrow { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.demo-stage .ber-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--dc-ink2); }

.demo-stage .ber-generating { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--dc-accent); margin-top: 0.7rem; }
.demo-stage .ber-spinner { width: 16px; height: 16px; border: 2px solid var(--dc-accent-lt); border-top-color: var(--dc-accent); border-radius: 50%; animation: dcSpin 0.7s linear infinite; }
@keyframes dcSpin { to { transform: rotate(360deg); } }

/* PDF-Vorschau (fertiger Bericht) */
.demo-stage .ber-pdf-wrap { margin-top: 0.8rem; display: none; }
.demo-stage .ber-pdf-wrap.show { display: block; animation: dcFade 0.35s ease both; }
.demo-stage .ber-pdf-cap { font-size: 0.72rem; color: var(--dc-green); font-weight: 600; display: flex; align-items: center; gap: 0.3rem; margin-bottom: 0.4rem; }
.demo-stage .ber-pdf-cap svg { width: 13px; height: 13px; }
.demo-stage .ber-pdf { background: #fff; border: 1px solid var(--dc-border); border-radius: 4px; box-shadow: 0 8px 24px rgba(15,27,45,0.15); padding: 0.95rem 1rem; font-size: 0.66rem; color: #1f2937; line-height: 1.5; }
.demo-stage .ber-pdf .pdf-brand { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--dc-accent); padding-bottom: 0.45rem; margin-bottom: 0.55rem; }
.demo-stage .ber-pdf .b-logo { font-family: var(--dc-serif); font-weight: 800; color: var(--dc-accent-dk); font-size: 0.92rem; }
.demo-stage .ber-pdf .b-meta { text-align: right; color: var(--dc-ink3); font-size: 0.58rem; }
.demo-stage .ber-pdf h4 { font-size: 0.76rem; font-weight: 700; margin: 0.5rem 0 0.3rem; color: #1f2937; }
.demo-stage .ber-pdf .pdf-addr { color: var(--dc-ink2); margin-bottom: 0.55rem; }
.demo-stage .ber-pdf .pdf-p { margin-bottom: 0.45rem; }
.demo-stage .ber-pdf table { width: 100%; border-collapse: collapse; margin-top: 0.4rem; font-size: 0.6rem; }
.demo-stage .ber-pdf th { background: var(--dc-soft); text-align: left; padding: 0.25rem 0.35rem; border: 1px solid var(--dc-border); font-weight: 700; }
.demo-stage .ber-pdf td { padding: 0.25rem 0.35rem; border: 1px solid var(--dc-border); vertical-align: top; }
.demo-stage .ber-pdf .kat-cell { text-align: center; color: #fff; font-weight: 800; width: 18px; }
.demo-stage .ber-pdf-frame { width: 100%; height: 470px; border: 1px solid var(--dc-border); border-radius: 4px; box-shadow: 0 8px 24px rgba(15,27,45,0.15); background: #fff; display: block; }

/* ===== SiNa/MP + Dokumente (Desktop-Abschluss) ===== */
.demo-stage .sina-subhead { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dc-ink3); margin: 1rem 0 0.55rem; }
.demo-stage .info-card > .sina-subhead:first-child { margin-top: 0; }
.demo-stage .grund-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.demo-stage .grund-chip { font-size: 0.8rem; padding: 0.4rem 0.85rem; border-radius: 20px; border: 1px solid var(--dc-border); background: var(--dc-card); color: var(--dc-ink2); cursor: pointer; font-family: inherit; }
.demo-stage .grund-chip.sel { background: var(--dc-accent); color: #fff; border-color: transparent; }
.demo-stage .proto-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.75rem; border: 1px solid var(--dc-border); border-radius: 8px; margin-bottom: 0.5rem; }
.demo-stage .proto-row .p-name { font-weight: 600; font-size: 0.84rem; color: var(--dc-ink); }
.demo-stage .proto-row .p-meta { font-size: 0.74rem; color: var(--dc-green); }

.demo-stage .doc-block { background: var(--dc-card); border: 1px solid var(--dc-border); border-radius: 10px; padding: 1rem 1.1rem; margin-bottom: 0.9rem; }
.demo-stage .doc-block-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.8rem; }
.demo-stage .doc-block-head h3 { font-size: 0.95rem; font-weight: 700; color: var(--dc-ink); flex: 1; }
.demo-stage .doc-hint { font-size: 0.74rem; color: var(--dc-ink3); }
.demo-stage .doc-hint.ok { color: var(--dc-green); }
.demo-stage .doc-meta-line { font-size: 0.78rem; color: var(--dc-ink3); margin-bottom: 0.7rem; }
.demo-stage .doc-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.demo-stage .doc-actions .btn svg { width: 14px; height: 14px; }
.demo-stage .versand-ok { background: var(--dc-green-bg); color: var(--dc-green); border-radius: 8px; padding: 0.5rem 0.8rem; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.8rem; display: none; align-items: center; gap: 0.4rem; }
.demo-stage .versand-ok.show { display: flex; }
.demo-stage .versand-ok svg { width: 14px; height: 14px; }
.demo-stage .doc-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0; border-bottom: 1px solid var(--dc-border-sf); }
.demo-stage .doc-row:last-child { border-bottom: none; }
.demo-stage .doc-row .d-icon { color: var(--dc-accent); display: flex; }
.demo-stage .doc-row .d-icon svg { width: 16px; height: 16px; }
.demo-stage .doc-row .d-name { flex: 1; font-size: 0.84rem; color: var(--dc-ink); font-family: var(--dc-mono); }
.demo-stage .doc-row .d-dl { font-size: 0.76rem; color: var(--dc-accent); cursor: pointer; }
.demo-stage .doc-divider { border: none; border-top: 1px solid var(--dc-border-sf); margin: 0.9rem 0; }

@media (max-width: 460px) {
  .demo-stage .frame-phone { border-radius: 0; padding: 0; box-shadow: none; }
  .demo-stage .phone-screen { border-radius: 0; height: 680px; }
  .demo-stage .phone-notch { display: none; }
}

/* Desktop-Bühne auf schmalen Screens nutzbar halten */
@media (max-width: 760px) {
  .demo-stage .tb-search { display: none; }
  .demo-stage .app { height: 560px; }
  .demo-stage .browser-bar .url { max-width: 200px; font-size: 0.7rem; }
  .demo-stage .app-body { padding: 1rem; }
  .demo-stage .tb-tenant { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 720px) {
  .demo-stage .dash-sections { grid-template-columns: 1fr; }
}

/* =========================================================================
   GEFÜHRTE TOUR (seitenweit, nicht gescoped)
   ========================================================================= */
.dctour-overlay { position: fixed; inset: 0; z-index: 9000; background: transparent; }
.dctour-hole {
  position: fixed; z-index: 9001; border-radius: 10px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(15,27,45,0.62);
  transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease;
}
.dctour-tip {
  position: fixed; z-index: 9002; width: 300px; max-width: calc(100vw - 24px);
  background: #fff; border-radius: 14px; box-shadow: 0 18px 48px rgba(15,27,45,0.32);
  padding: 1.05rem 1.15rem 0.9rem;
  font-family: 'Figtree', system-ui, sans-serif; color: #33445a;
  transition: top 0.25s ease, left 0.25s ease;
}
.dctour-step { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; color: #2a71b8; text-transform: uppercase; }
.dctour-dots { display: flex; gap: 5px; margin: 0.45rem 0 0.55rem; }
.dctour-dots i { width: 7px; height: 7px; border-radius: 50%; background: #cfd9e4; display: inline-block; }
.dctour-dots i.on { background: #2a71b8; }
.dctour-title { font-family: 'Urbanist', sans-serif; font-size: 1.08rem; font-weight: 800; color: #0f1b2d; margin: 0 0 0.3rem; letter-spacing: -0.01em; }
.dctour-text { font-size: 0.9rem; line-height: 1.55; color: #4b5563; margin: 0 0 0.9rem; }
.dctour-actions { display: flex; align-items: center; gap: 0.5rem; }
.dctour-actions .flex { flex: 1; }
.dctour-btn { font-family: 'Figtree', sans-serif; font-size: 0.85rem; font-weight: 600; border-radius: 8px; padding: 0.5rem 1rem; border: none; cursor: pointer; }
.dctour-next { background: #2a71b8; color: #fff; }
.dctour-next:hover { background: #1f5a96; }
.dctour-back { background: #fff; color: #4b5563; border: 1px solid #d4deea; padding: 0.5rem 0.8rem; }
.dctour-back:hover { border-color: #2a71b8; color: #2a71b8; }
.dctour-back:disabled { opacity: 0.4; cursor: default; }
.dctour-skip { background: none; border: none; color: #8a93a0; font-size: 0.8rem; cursor: pointer; padding: 0.4rem 0; font-family: 'Figtree', sans-serif; }
.dctour-skip:hover { color: #4b5563; }

/* Replay-Button (Dev / später optional) */
.dev-tour { background: #2a71b8; color: #fff; border: none; border-radius: 8px; padding: 0.4rem 0.9rem; font-size: 0.82rem; font-weight: 600; cursor: pointer; font-family: 'Figtree', sans-serif; }

@media (prefers-reduced-motion: reduce) {
  .dctour-hole, .dctour-tip { transition: none; }
}
