/* DoroDesk – Oberfläche im Bundesdesigner-Stil (30.09.2026), passend zu DoroPlay / Portal.
   Nur die Desk-UI. Die Poster-Vorschau #stela-preview-box (= generierte Grafik) bleibt unverändert:
   Schrift und Farben dort werden unten ausdrücklich auf den bisherigen Stand festgenagelt.
   Wirkt im dunklen Modus (Standard). Der Hell/Dunkel-Knopf schaltet weiterhin auf die alte helle Ansicht. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-var-latin.woff2") format("woff2");
}
body.bd-ui.dark-mode {
  --bg-main: #111111; --bg-header: #171717; --bg-card: #171717; --bg-input: #1c1c1c;
  --text-primary: #ffffff; --text-muted: #9a9a9a; --border-color: #2a2a2a;
  --header-shadow: none; --chart-text: #9a9a9a; --accent: #EE9832; --radius: 18px;
  --c-step1: #EE9832; --c-step2: #EE9832; --c-step3: #EE9832;
  --bd-orange: #EE9832; --bd-line: #2a2a2a; --bd-line-strong: #3a3a3a; --bd-dim: #6b6b6b;
  --bd-font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #111111; color: #fff;
}
body.bd-ui.dark-mode * { font-family: var(--bd-font); }
/* Poster-Grafik: Schrift wie bisher (Systemschrift) – NICHT Inter */
body.bd-ui #stela-preview-box, body.bd-ui #stela-preview-box * {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}
body.bd-ui #stela-preview-box .terminal-text { font-family: inherit !important; }

/* Flächen: flach, dünne Linien, keine Schatten/Verläufe */
body.bd-ui.dark-mode .main-header,
body.bd-ui.dark-mode .grid-card { background: #171717; border: 1px solid #2a2a2a; box-shadow: none !important; border-radius: 18px; }
body.bd-ui.dark-mode .header-section,
body.bd-ui.dark-mode .middle-section { border-color: #2a2a2a !important; }
body.bd-ui.dark-mode .step-banner { border-bottom: 1px solid #2a2a2a; min-height: 70px; }
body.bd-ui.dark-mode .step-number,
body.bd-ui.dark-mode .step-1 .step-number,
body.bd-ui.dark-mode .step-2 .step-number,
body.bd-ui.dark-mode .step-3 .step-number { background: transparent !important; border: 1px solid #3a3a3a; color: #EE9832; font-weight: 300; font-size: 16px; }
body.bd-ui.dark-mode .step-title { font-weight: 300; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; color: #d6d6d6; }

/* Wortmarke DORO (fett, orange) + DESK (dünn, weiß) */
body.bd-ui.dark-mode .branding-top h1 { font-size: 22px; font-weight: 800; color: #EE9832; letter-spacing: .01em; text-transform: uppercase; }
body.bd-ui.dark-mode .branding-top h1 span { font-weight: 300; color: #fff; letter-spacing: .02em; }
body.bd-ui.dark-mode .live-clock { font-weight: 300; letter-spacing: .02em; font-size: 26px; color: #fff; }
body.bd-ui.dark-mode .live-date,
body.bd-ui.dark-mode .section-label,
body.bd-ui.dark-mode .counter-badge,
body.bd-ui.dark-mode .term-log,
body.bd-ui.dark-mode .stele-external-links a { font-weight: 500; letter-spacing: .18em; color: #6b6b6b; }
body.bd-ui.dark-mode .section-label { color: #9a9a9a; font-size: 10px; }
body.bd-ui.dark-mode .live-pulse { color: #EE9832; }
body.bd-ui.dark-mode .term-percent { font-weight: 300; color: #fff; }
body.bd-ui.dark-mode .term-fill { background: #EE9832; }
body.bd-ui.dark-mode .compact-cal-mini .calendar-cell { border-color: #2a2a2a; color: #6b6b6b; border-radius: 50%; }
body.bd-ui.dark-mode .compact-cal-mini .calendar-cell[style*="background"] { background: #EE9832 !important; color: #111 !important; border-color: #EE9832; }

/* Überschriften/Labels */
body.bd-ui.dark-mode h3,
body.bd-ui.dark-mode .centered-label { font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #9a9a9a; font-size: 10px; }
body.bd-ui.dark-mode label { font-weight: 500; letter-spacing: .16em; color: #6b6b6b; }
body.bd-ui.dark-mode .side-label { font-weight: 500 !important; letter-spacing: .14em; color: #6b6b6b; }

/* Pill-Buttons: dünne Kontur, füllen orange beim Hover */
body.bd-ui.dark-mode .btn-massive,
body.bd-ui.dark-mode .btn-secondary,
body.bd-ui.dark-mode .source-toggle-group button,
body.bd-ui.dark-mode .source-toggle-group a,
body.bd-ui.dark-mode .btn-flat-outline,
body.bd-ui.dark-mode .theme-toggle,
body.bd-ui.dark-mode .tools-section a {
  background: transparent !important; color: #fff !important; border: 1px solid #3a3a3a !important;
  border-radius: 999px !important; box-shadow: none !important; filter: none; transform: none !important;
  font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 11px;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
body.bd-ui.dark-mode .btn-massive:hover:not(:disabled),
body.bd-ui.dark-mode .btn-secondary:hover,
body.bd-ui.dark-mode .source-toggle-group button:hover,
body.bd-ui.dark-mode .source-toggle-group a:hover,
body.bd-ui.dark-mode .btn-flat-outline:hover,
body.bd-ui.dark-mode .theme-toggle:hover,
body.bd-ui.dark-mode .tools-section a:hover { background: #EE9832 !important; border-color: #EE9832 !important; color: #111 !important; opacity: 1 !important; }
/* Hauptaktion (PNG EXPORT, Entsperren): orange Kontur */
body.bd-ui.dark-mode .btn-flat-primary { border-color: #EE9832 !important; color: #EE9832 !important; }
/* aktive Auswahl (Quelle HEIDELBERG usw.) */
body.bd-ui.dark-mode .source-toggle-group button.active { background: #EE9832 !important; border-color: #EE9832 !important; color: #111 !important; }
body.bd-ui.dark-mode .btn-massive:disabled { opacity: .35; filter: none; }
body.bd-ui.dark-mode .theme-toggle { width: 38px; height: 38px; padding: 0 !important; letter-spacing: 0; }
body.bd-ui.dark-mode #btn-faq-catalog { width: auto; padding: 0 16px !important; letter-spacing: .16em; }
body.bd-ui.dark-mode .tools-section a { padding: 11px 20px !important; }
body.bd-ui.dark-mode .btn-copy { color: #6b6b6b; letter-spacing: .14em; text-decoration: none; font-weight: 600; }
body.bd-ui.dark-mode .btn-copy:hover { color: #EE9832; }
body.bd-ui.dark-mode .btn-xs { padding: 6px 12px !important; font-size: 9px !important; }
/* Pulsieren (Aufmerksamkeit) ohne Glow */
body.bd-ui.dark-mode .pulse-attention-1, body.bd-ui.dark-mode .pulse-attention-2 { box-shadow: none !important; border-color: #EE9832 !important; }

/* Segment-Schalter (Format / Layout) */
body.bd-ui.dark-mode .format-switcher,
body.bd-ui.dark-mode .layout-header-switcher,
body.bd-ui.dark-mode .preview-controls { background: transparent; border: 1px solid #2a2a2a; border-radius: 999px; }
body.bd-ui.dark-mode .fmt-btn,
body.bd-ui.dark-mode .layout-toggle-btn { border-radius: 999px; color: #9a9a9a; letter-spacing: .14em; font-weight: 600; }
body.bd-ui.dark-mode .fmt-btn:hover,
body.bd-ui.dark-mode .layout-toggle-btn:hover { color: #fff; }
body.bd-ui.dark-mode .fmt-btn.active,
body.bd-ui.dark-mode .layout-toggle-btn.active { background: #EE9832; color: #111; box-shadow: none; }
body.bd-ui.dark-mode .divider-vert { background: #2a2a2a; }
body.bd-ui.dark-mode .btn-icon { color: #fff; }

/* Seitenleisten-Knöpfe */
body.bd-ui.dark-mode .side-btn-sm,
body.bd-ui.dark-mode .thumb-nav-btn { background: transparent; border: 1px solid #3a3a3a; border-radius: 999px; color: #fff; transform: none !important; }
body.bd-ui.dark-mode .side-btn-sm:hover,
body.bd-ui.dark-mode .thumb-nav-btn:hover { background: #EE9832; border-color: #EE9832; color: #111; }
body.bd-ui.dark-mode .side-marker-btn.active { border-color: #EE9832 !important; box-shadow: none; }
body.bd-ui.dark-mode .thumb { border-color: #2a2a2a; }
body.bd-ui.dark-mode .thumb.active,
body.bd-ui.dark-mode .thumb-color.active { border: 2px solid #EE9832; box-shadow: none; }

/* Eingaben, Textfelder, Listen */
body.bd-ui.dark-mode input,
body.bd-ui.dark-mode textarea,
body.bd-ui.dark-mode .raw-text-box,
body.bd-ui.dark-mode .input-with-btn input,
body.bd-ui.dark-mode .field-group textarea { background: #111111; color: #fff; border: 1px solid #2a2a2a; border-radius: 12px; }
body.bd-ui.dark-mode input:focus,
body.bd-ui.dark-mode textarea:focus { border-color: #EE9832 !important; }
body.bd-ui.dark-mode .raw-text-box { color: #9a9a9a; }
body.bd-ui.dark-mode .news-item-row { border: 1px solid #2a2a2a; border-radius: 12px; background: transparent; }
body.bd-ui.dark-mode .news-item-row:hover { border-color: #3a3a3a; background: #1c1c1c; }
body.bd-ui.dark-mode .news-item-row.active { background: transparent; border-color: #EE9832; }
body.bd-ui.dark-mode .news-item-row.active h4 { color: #EE9832; }
body.bd-ui.dark-mode .news-item-row h4 { font-weight: 500; color: #fff; }
body.bd-ui.dark-mode .asset-box,
body.bd-ui.dark-mode .loading-terminal { border-color: #2a2a2a; border-radius: 14px; }
body.bd-ui.dark-mode .img-preview-container { background: #111; border-color: #2a2a2a; }
body.bd-ui.dark-mode .editor-placeholder-msg { color: #6b6b6b; }
body.bd-ui.dark-mode .stela-preview-wrapper { border-color: #2a2a2a; border-radius: 8px; }
body.bd-ui.dark-mode ::-webkit-scrollbar-thumb { background: #3a3a3a; }


/* PIN-Sperre / Hilfe-Fenster */
body.bd-ui.dark-mode .pin-overlay,
body.bd-ui.dark-mode .faq-overlay { background: rgba(17, 17, 17, .86); backdrop-filter: none; -webkit-backdrop-filter: none; }
body.bd-ui.dark-mode .pin-modal,
body.bd-ui.dark-mode .faq-modal { background: #171717; border: 1px solid #2a2a2a; border-radius: 22px; box-shadow: none; }
body.bd-ui.dark-mode .pin-modal h2 { font-weight: 300; letter-spacing: .2em; }
body.bd-ui.dark-mode .pin-modal input { font-weight: 300; background: #111; border-radius: 12px; }
body.bd-ui.dark-mode .pin-error { color: #EE9832; }

/* ---------- DoroPlay-Knöpfe, Status, Fenster (beide Modi) ---------- */
.dp-auto-row { margin: -8px 0 20px; }
.dp-auto-row .btn-massive { margin-bottom: 6px; }
.dp-quota { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); text-align: center; }
.dp-quota.dp-full { color: #EE9832; }
.dp-export-row { margin-top: 8px; }
.dp-status { margin-top: 10px; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: 12px; font-size: 12px; line-height: 1.45; color: var(--text-primary); word-break: break-word; }
.dp-status.dp-ok { border-color: #2fd36b; }
.dp-status.dp-ok b { color: #2fd36b; }
.dp-status.dp-err { border-color: #ff3b30; color: #ff8a80; }
.dp-status .dp-meta, .dp-meta { color: var(--text-muted); font-size: 11px; }
.dp-who { display: block; margin-top: 4px; color: var(--text-muted); font-size: 11px; }
.dp-who a { color: inherit; }
.dp-overlay { position: fixed; inset: 0; z-index: 100001; background: rgba(17, 17, 17, .86); display: flex; align-items: center; justify-content: center; padding: 20px; }
.dp-modal { width: min(420px, 100%); background: #171717; color: #fff; border: 1px solid #2a2a2a; border-radius: 22px; padding: 24px 26px; }
.dp-modal-wide { width: min(620px, 100%); max-height: 86vh; overflow: auto; }
.dp-modal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dp-wm { font-weight: 300; letter-spacing: .04em; text-transform: uppercase; font-size: 18px; }
.dp-wm b { font-weight: 800; color: #EE9832; }
.dp-x { background: transparent; border: 1px solid #3a3a3a; color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; }
.dp-x:hover { background: #EE9832; border-color: #EE9832; color: #111; }
.dp-modal-p { font-size: 13px; line-height: 1.55; color: #d6d6d6; margin-bottom: 14px; }
.dp-modal-err { font-size: 12px; color: #ff8a80; margin-bottom: 10px; }
.dp-modal input.dp-pin { width: 100%; background: #111; color: #fff; border: 1px solid #2a2a2a; border-radius: 12px; padding: 12px 14px; font-size: 18px; letter-spacing: .2em; outline: none; margin-bottom: 16px; }
.dp-modal input.dp-pin:focus { border-color: #EE9832; }
.dp-modal-btns { display: flex; gap: 10px; align-items: center; }
.dp-modal-btns .btn-massive { margin: 0; flex: 1; }
.dp-modal .btn-massive { background: transparent !important; color: #fff !important; border: 1px solid #3a3a3a !important; border-radius: 999px !important; letter-spacing: .16em; }
.dp-modal .btn-massive.btn-flat-primary { border-color: #EE9832 !important; color: #EE9832 !important; }
.dp-modal .btn-massive:hover { background: #EE9832 !important; border-color: #EE9832 !important; color: #111 !important; }
.dp-auto-list { margin: 0 0 14px 0; padding: 0; list-style: none; border-top: 1px solid #2a2a2a; }
.dp-auto-list li { padding: 9px 2px; border-bottom: 1px solid #2a2a2a; font-size: 13px; line-height: 1.4; }
.dp-auto-list li .dp-st { display: inline-block; width: 18px; color: #6b6b6b; }
.dp-auto-list li.dp-run .dp-st { color: #EE9832; }
.dp-auto-list li.dp-ok .dp-st { color: #2fd36b; }
.dp-auto-list li.dp-bad .dp-st { color: #ff3b30; }
.dp-check { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .04em; text-transform: none; color: #d6d6d6; margin: 0 0 16px; font-weight: 400; cursor: pointer; }
.dp-check input { accent-color: #EE9832; width: 16px; height: 16px; }
.dp-prog { margin: 0 0 16px; }
.dp-prog-bar { height: 4px; border: 1px solid #2a2a2a; border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.dp-prog-fill { height: 100%; width: 0; background: #EE9832; transition: width .3s ease; }
.dp-prog-txt { font-size: 12px; color: #9a9a9a; }

/* ---------- Anleitung (ersetzt den Chat „Bernd“) – immer dunkel, wie Bundesdesigner ---------- */
.dg { margin-top: 14px; background: #111; color: #fff; border: 1px solid #2a2a2a; border-radius: 14px; padding: 14px 16px 12px; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; }
.dg.hidden { display: none !important; }
.dg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dg-kicker { font-size: 10px; letter-spacing: .24em; color: #9a9a9a; font-weight: 500; }
.dg-x { background: transparent; border: 1px solid #3a3a3a; color: #fff; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 15px; line-height: 1; padding: 0; }
.dg-x:hover { background: #EE9832; border-color: #EE9832; color: #111; }
.dg-body { display: flex; gap: 16px; align-items: flex-start; }
.dg-num { font-size: 88px; line-height: .86; font-weight: 200; color: #EE9832; letter-spacing: -.04em; flex: 0 0 auto; min-width: 52px; font-variant-numeric: tabular-nums; }
.dg-txt { flex: 1; min-width: 0; padding-top: 4px; }
.dg-txt h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.dg-txt p { margin: 0; font-size: 13px; line-height: 1.5; color: #d6d6d6; font-weight: 400; }
.dg-txt b { color: #fff; font-weight: 600; }
.dg-bad { color: #ff8a80; }
.dg-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dg-btn { background: transparent; color: #fff; border: 1px solid #3a3a3a; border-radius: 999px; padding: 8px 14px; font-size: 11px; letter-spacing: .12em; font-weight: 500; cursor: pointer; font-family: inherit; }
.dg-btn.dg-primary { border-color: #EE9832; color: #EE9832; }
.dg-btn.dg-ghost { color: #9a9a9a; }
.dg-btn:hover:not(:disabled) { background: #EE9832; border-color: #EE9832; color: #111; }
.dg-btn:disabled { opacity: .45; cursor: default; }
.dg-res { margin-top: 10px; font-size: 12px; line-height: 1.45; min-height: 0; }
.dg-res:empty { display: none; }
.dg-res.dg-ok { color: #2fd36b; }
.dg-res.dg-err { color: #ff8a80; }
.dg-res.dg-info { color: #d6d6d6; }
.dg-link { color: #EE9832; text-decoration: none; border-bottom: 1px solid rgba(238,152,50,.5); }
.dg-off { display: flex; align-items: center; gap: 7px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #222; font-size: 11px; color: #6b6b6b; cursor: pointer; text-transform: none; letter-spacing: .02em; font-weight: 400; }
.dg-off input { accent-color: #EE9832; width: 13px; height: 13px; margin: 0; }
.dg.dg-in .dg-num { animation: dgNum .7s cubic-bezier(.4,0,.2,1) both; }
.dg.dg-in .dg-txt { animation: dgIn .5s cubic-bezier(.4,0,.2,1) .12s both; }
.dg.dg-in { animation: dgIn .4s cubic-bezier(.4,0,.2,1) both; }
@keyframes dgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dgNum { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Render-Animation über der Vorschau: Punktwolke (Canvas, nicht Teil der Grafik) ---------- */
.dg-fx { position: absolute; inset: 0; z-index: 50; pointer-events: none; background: #0b0b0b; animation: dgFxIn .2s ease both; }
.dg-fx.dg-fx-out { animation: dgFxOut .45s ease forwards; }
.dg-fx canvas { width: 100%; height: 100%; display: block; }
@keyframes dgFxIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dgFxOut { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dg, .dg * { animation: none !important; } .dg-fx { display: none; } }

/* Runde 3: dauerhafte DoroPlay-Anmeldung – Anzeige unter dem Auto-Knopf */
.dp-login { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); text-align: center; margin-top: 4px; }
.dp-login.dp-on { color: #9a9a9a; }
.dp-login a { color: #EE9832; text-decoration: none; border-bottom: 1px solid rgba(238,152,50,.45); }
.pin-keep { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 14px; font-size: 12px; color: #9a9a9a; cursor: pointer; }
.pin-keep input { accent-color: #EE9832; width: 15px; height: 15px; margin: 0; }
