/* Datei-Chaos - Spiel-Styles (Praefix dc_)
   GUI-NEUBAU 26.10.2026: "Windows-Schreibtisch & Datei-Explorer".

   Aufbau (von aussen nach innen):
     1. Farben (Windows-Blau, Fenster-Grau, Ordner-Gelb)
     1b. Seitenkulisse: kachelbare Schreibtisch-Tapete (kulisse.svg)
     2. Die JUPI-Leiste als Fenster-Titelleiste
     3. Die Befehlsleiste (.dc_panel) wie ein Explorer-Ribbon
     4. Die Buehne (.dc_stage) als Schreibtisch-Flaeche + Aufgaben-Schild
     5. Schreibtisch-Symbole: Datei-Karte (Ordern) und Ordner-Verknuepfungen
     6. Antwort-Knoepfe, Aktionszeile, Meldung
     7. Das Explorer-Fenster (Titelleiste, Tabs, Adressleiste, Baum, Liste)
     8. Die Taskleiste (Modus-Umschalter, Uhr)
     9. Start-Fenster, Runden-Bericht, Hilfe-Dialog
    10. Dark Mode (dunkler Schreibtisch, Fenster bleibt beleuchtet)
    11. Handy, flache Fenster, Bedienziele, weniger Bewegung

   Alle Regeln haengen an body.jupi.dc_body (bzw. mit html[data-theme] davor),
   damit sie die Plattform-Grundregeln aus jupi.css in BEIDEN Themes schlagen -
   sonst faerbt jupi.css Leiste, Knoepfe und Fuss hart um (Lehre aus
   Zeitmeister/Schatzkarte/Zelllabor). */

/* ---------- 1. Farben ---------- */
body.jupi.dc_body {
  --dc-akzent: #0f6cbd;          /* Windows-Blau */
  --dc-akzent-hell: #2f8fe0;
  --dc-akzent-tief: #0b4a83;
  --dc-akzent-blass: #e3f0fd;
  --dc-slate: #16283a;           /* Fenster-Chrom */
  --dc-slate-tief: #0e1b28;
  --dc-glas: rgba(255, 255, 255, .72);
  --dc-papier: #ffffff;
  --dc-papier-2: #f4f7fb;
  --dc-linie: #d2dce8;
  --dc-linie-2: #e6ecf4;
  --dc-tinte: #16232e;
  --dc-tinte-soft: #5b6f85;
  --dc-ordner: #ffcf4d;          /* Ordner-Gelb */
  --dc-ordner-tief: #e8a91f;
  --dc-ordner-hell: #ffe49b;
  --dc-gruen: #107c10;           /* Windows-Erfolgsgruen */
  --dc-gruen-hell: #d6f0d2;
  --dc-rot: #c42b1c;             /* Windows-Fehlerrot */
  --dc-rot-hell: #fde7e4;
  --dc-mono: ui-monospace, "Cascadia Mono", "Consolas", "Courier New", monospace;
}

/* ---------- 1b. Seitenkulisse: der Schreibtisch hinter allem ----------
   Die Tapete (kulisse.svg, Generator .zcode/dateichaos-kulisse.cjs) zeigt
   Geister-Fenster, Desktop-Symbole, Auswahl-Rechteck und ein feines Raster.
   Darueber liegen weiche Lichter, damit die Mitte ruhig bleibt.
   Muster: Schatzkarte (Piraten-Meer), Zelllabor (Laborwand). */
body.jupi.dc_body {
  min-height: 100vh;
  background-repeat: no-repeat;
  background:
    radial-gradient(1200px 520px at 50% -12%, rgba(255, 255, 255, .90) 0%, transparent 62%),
    radial-gradient(900px 480px at 96% 6%, rgba(198, 224, 255, .55) 0%, transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, .74) 0%, rgba(255, 255, 255, .58) 45%,
      rgba(247, 251, 255, .46) 100%),
    url("kulisse.svg") repeat,
    #dbe7f5;
}
/* Dunkel = Abend am Schreibtisch: die Tapete sinkt ins Nachtblau, die
   Zeichnungen bleiben als Schatten sichtbar (durchsichtige Nacht-Schicht). */
html[data-theme="dark"] body.jupi.dc_body {
  background:
    linear-gradient(rgba(7, 16, 28, .70), rgba(4, 10, 18, .80)),
    radial-gradient(1100px 520px at 50% -10%, rgba(120, 180, 250, .18) 0%, transparent 60%),
    radial-gradient(1200px 520px at 0% 108%, rgba(2, 8, 16, .6) 0%, transparent 62%),
    url("kulisse.svg") repeat,
    #08121e;
}
/* Die weisse Plattform-Karte darf die Tapete nicht zudecken. */
body.jupi.dc_body .jupi_container > .jupi_main { background: transparent; }
body.jupi.dc_body .jupi_container > .jupi_footer {
  background: transparent;
  border-top: 0;
  border-radius: 0;
  box-shadow: none;
}
body.jupi.dc_body .jupi_footer_text { color: #43596e; }
body.jupi.dc_body .jupi_footer_text a { color: var(--dc-akzent-tief); font-weight: 700; }
html[data-theme="dark"] body.jupi.dc_body .jupi_footer_text { color: #9db4c9; }
html[data-theme="dark"] body.jupi.dc_body .jupi_footer_text a { color: #7cc4ff; }
/* Fuss unten halten (wie auf der Plattform) - sonst verteilt das Grid die
   freie Hoehe auf implizite auto-Zeilen. */
body.jupi.dc_body .jupi_container {
  align-content: start;
  grid-template-rows: auto auto 1fr auto;
  min-height: 100vh;
}
@supports (height: 100dvh) {
  body.jupi.dc_body .jupi_container { min-height: 100dvh; }
}
body.jupi.dc_body .jupi_main { padding: .85rem 1.15rem 1.1rem; }

/* ---------- 2. Die JUPI-Leiste als Fenster-Titelleiste ----------
   Regel 3.13.2: links zurueck, MITTIG Logo + Name, rechts Werkzeuge.
   Optik: dunkles Fenster-Chrom mit blauer Zierkante unten, rechts die
   angedeuteten Fenster-Knoepfe (— ▢ ✕), rein dekorativ. */
body.jupi.dc_body .dc_header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .8rem;
  min-height: 60px;
  padding: .45rem .9rem .5rem;
  border-bottom: 3px solid var(--dc-akzent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(0, 0, 0, .22)),
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, .03) 0 1px, transparent 1px 6px),
    linear-gradient(135deg, #20374d 0%, #1b2f43 55%, #12212f 100%);
  box-shadow: 0 8px 26px -12px rgba(8, 22, 38, .62),
              inset 0 1px 0 rgba(160, 205, 245, .28);
  color: #f4f9ff;
}
body.jupi.dc_body .dc_header .jupi_nav_back {
  position: static;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 40px;
  padding: .35rem .85rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
  color: #123049;
  background: linear-gradient(180deg, #ffffff, #e8eff7);
  border: 1px solid #b9c9da;
  box-shadow: 0 2px 8px rgba(4, 14, 26, .35);
  white-space: nowrap;
}
body.jupi.dc_body .dc_header .jupi_nav_back:hover {
  background: linear-gradient(180deg, #ffffff, #dbe8f6);
  color: #0b2438;
  transform: translateY(-1px);
}
body.jupi.dc_body .dc_brand {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
}
body.jupi.dc_body .dc_brand img {
  display: block;
  width: 44px;
  height: 44px;
  flex: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5));
}
body.jupi.dc_body .dc_brand_text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
body.jupi.dc_body .dc_brand h1 {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .01em;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.jupi.dc_body .dc_claim {
  font: 700 .66rem/1.35 var(--dc-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9dc8ee;
}
body.jupi.dc_body .dc_header .jupi_werkzeuge {
  position: static;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}
/* Sprachwahl wie ein Windows-Auswahlfeld im dunklen Chrom */
body.jupi.dc_body .jupi_sprachen_wahl {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-width: 0;
  max-width: 12.5rem;
}
body.jupi.dc_body .jupi_sprachen_icon { font-size: .95rem; opacity: .95; }
body.jupi.dc_body .jupi_sprachen_select {
  min-width: 0;
  min-height: 36px;
  max-width: 100%;
  padding: .2rem .5rem;
  border-radius: .4rem;
  font: inherit;
  font-size: .86rem;
  color: #eaf4ff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(170, 205, 240, .5);
}
body.jupi.dc_body .jupi_sprachen_select:hover { background: rgba(255, 255, 255, .2); }
body.jupi.dc_body .jupi_sprachen_select option { color: #16232e; background: #ffffff; }
body.jupi.dc_body .dc_header #jupi_theme_toggle {
  min-height: 36px;
  min-width: 66px;
  background: rgba(255, 255, 255, .14);
  border-color: rgba(170, 205, 240, .5);
}
body.jupi.dc_body .dc_header #jupi_theme_toggle:hover { background: rgba(255, 255, 255, .24); }
/* Die drei Fenster-Knoepfe: reine Zierde (aria-hidden im Markup) */
body.jupi.dc_body .dc_win_btns {
  display: flex;
  align-items: center;
  gap: .22rem;
  padding-inline-start: .3rem;
}
body.jupi.dc_body .dc_win_btns i {
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: .28rem;
  font-size: .72rem;
  line-height: 1;
  color: #cfe2f4;
  background: rgba(255, 255, 255, .09);
}
body.jupi.dc_body .dc_win_btns i:last-child { color: #ffd9d5; }

/* ---------- 3. Die Befehlsleiste (.dc_panel) ---------- */
body.jupi.dc_body .dc_panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem 1.2rem;
  padding: .5rem .85rem;
  border-radius: .7rem;
  border: 1px solid #c9d6e5;
  background:
    linear-gradient(180deg, #ffffff 0%, #f2f6fb 62%, #e9eff7 100%);
  box-shadow: 0 10px 22px -16px rgba(10, 30, 52, .7),
              inset 0 1px 0 #ffffff;
  margin-bottom: .65rem;
}
body.jupi.dc_body .dc_stat {
  display: flex;
  flex-direction: column;
  gap: .05rem;
  padding: .1rem .8rem .1rem 0;
  min-width: 4.2rem;
  border-inline-end: 1px solid var(--dc-linie);
}
body.jupi.dc_body .dc_stat:last-of-type { border-inline-end: 0; }
body.jupi.dc_body .dc_stat label {
  font: 700 .64rem/1.2 var(--dc-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dc-tinte-soft);
}
body.jupi.dc_body .dc_stat span {
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--dc-akzent-tief);
  font-variant-numeric: tabular-nums;
}
body.jupi.dc_body .dc_controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .55rem;
}
body.jupi.dc_body .dc_controls label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--dc-tinte-soft);
}
body.jupi.dc_body .dc_controls select,
body.jupi.dc_body .dc_controls button { min-height: 40px; }
/* Auswahlfelder wie Windows-Kombinationsfelder */
body.jupi.dc_body .dc_controls .jupi_select {
  font-size: .88rem;
  padding: .3rem .55rem;
  border-radius: .4rem;
  color: var(--dc-tinte);
  background: #ffffff;
  border: 1px solid #b3c4d8;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(16, 40, 66, .08);
}
body.jupi.dc_body .dc_controls .jupi_select:hover { border-color: var(--dc-akzent-hell); }
body.jupi.dc_body .dc_controls .jupi_select:focus {
  outline: none;
  border-color: var(--dc-akzent);
  box-shadow: 0 0 0 3px rgba(15, 108, 189, .22);
}
/* Werkzeug-Knoepfe (❓ / 🔊) */
body.jupi.dc_body .dc_controls .jupi_btn_alt {
  font-size: .88rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: .4rem;
  color: var(--dc-tinte);
  background: linear-gradient(180deg, #ffffff, #eef3f9);
  border: 1px solid #b3c4d8;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(16, 40, 66, .1);
  text-decoration: none;
}
body.jupi.dc_body .dc_controls .jupi_btn_alt:hover {
  background: linear-gradient(180deg, #ffffff, #e2edfa);
  border-color: var(--dc-akzent-hell);
  color: var(--dc-akzent-tief);
  transform: none;
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 6px rgba(15, 108, 189, .18);
}
body.jupi.dc_body .dc_controls .jupi_btn_alt:focus-visible {
  outline: 3px solid rgba(15, 108, 189, .45);
  outline-offset: 2px;
}
/* Der Ton-Knopf ist schmal und quadratisch */
body.jupi.dc_body #dc_ton_knopf { min-width: 44px; padding-inline: .55rem; }

/* ---------- 4. Die Buehne: Schreibtisch-Flaeche ---------- */
/* [hidden]-Guards: eigene display-Regeln schlagen sonst das hidden-Attribut
   (der leere Schreibtisch blieb im Explorer-Modus sichtbar stehen, die Buehne
   waere nach dem Rundenende weiter zu sehen). */
body.jupi.dc_body .dc_stage[hidden] { display: none; }
body.jupi.dc_body .dc_brett[hidden] { display: none; }
body.jupi.dc_body .dc_ordner_zeile[hidden] { display: none; }
body.jupi.dc_body .dc_exp[hidden] { display: none; }
body.jupi.dc_body .dc_done[hidden] { display: none; }
body.jupi.dc_body .dc_stage {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  /* FESTE BUEHNENHOEHE (Wunsch 26.10.2026): jeder Modus ist gleich hoch, damit
     die Taskleiste beim Umschalten nicht springt. Die freie Hoehe gehoert dem
     Schreibtisch - die Knopfzeile haelt sich mit margin-top:auto unten, und im
     Explorer-Modus fuellt das Fenster die Buehne (siehe 7.). Die Hoehe ist ein
     Mindestwert: passt ein Inhalt (lange Uebersetzung) nicht hinein, waechst die
     Buehne, statt ihn abzuschneiden. */
  --dc-buehne-h: 47.5rem;
  height: var(--dc-buehne-h);
  min-height: 0;
  overflow: auto;
  justify-content: flex-start;
  padding: .65rem .8rem .5rem;
  border-radius: .9rem;
  border: 1px solid rgba(255, 255, 255, .8);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .70) 0%, rgba(255, 255, 255, .44) 100%);
  box-shadow: 0 20px 42px -30px rgba(10, 30, 52, .8),
              inset 0 1px 0 rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
/* Aufgaben-Schild: dunkle Pille ueber dem Schreibtisch */
body.jupi.dc_body .dc_frage_label {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: .1rem auto .55rem;
  padding: .32rem .95rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(26, 44, 64, .92), rgba(14, 27, 40, .94));
  border: 1px solid rgba(160, 205, 245, .38);
  box-shadow: 0 6px 16px -10px rgba(6, 16, 28, .9), inset 0 1px 0 rgba(255, 255, 255, .14);
  color: #f2f8ff;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

/* ---------- 5a. Die eine Datei (Ordern): Symbol auf dem Schreibtisch ---------- */
body.jupi.dc_body .dc_brett {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 158px;
  /* In der festen Buehne teilt sich die freie Hoehe auf: halbe Luft ueber der
     Datei (margin-top:auto) und halbe unter den Ordnern (margin-top:auto der
     Knopfzeile). So steht die Aufgabe mittig auf dem Schreibtisch. */
  margin-top: auto;
  padding: .6rem;
  border: 0;
  border-radius: .7rem;
  background: transparent;
}
body.jupi.dc_body .dc_datei_karte {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  padding: .8rem 1.1rem .7rem;
  border-radius: .55rem;
  border: 1px solid rgba(15, 108, 189, .38);
  background: rgba(214, 233, 253, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
body.jupi.dc_body .dc_datei_karte::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
}
body.jupi.dc_body .dc_datei_icon {
  width: 84px;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(14, 38, 64, .28));
}
body.jupi.dc_body .dc_datei_name {
  font-family: var(--dc-mono);
  font-size: .92rem;
  font-weight: 700;
  padding: .12rem .5rem;
  border-radius: .25rem;
  background: rgba(16, 32, 48, .82);
  color: #f4f9ff;
  word-break: break-all;
  text-align: center;
}
body.jupi.dc_body .dc_datei_karte.dc_eingeordnet {
  transform: scale(.94);
  border-color: var(--dc-gruen);
  background: rgba(214, 240, 210, .7);
}
body.jupi.dc_body .dc_datei_karte.dc_eingeordnet .dc_datei_name {
  background: var(--dc-gruen);
}

/* ---------- 5b. Der Chaos-Name (Benennen): Namensschild mit Warnkante ---------- */
body.jupi.dc_body .dc_chaos_karte {
  display: flex;
  align-items: center;
  gap: .5rem;
  max-width: 100%;
  padding: .7rem 1rem;
  border-radius: .5rem;
  border: 1px solid #e0c4c0;
  border-inline-start: 6px solid var(--dc-rot);
  background: linear-gradient(180deg, #ffffff, #fbf4f3);
  box-shadow: 0 8px 18px -14px rgba(60, 20, 16, .6);
  font-size: 1.02rem;
  text-align: start;
  color: var(--dc-tinte);
}
body.jupi.dc_body .dc_chaos_karte code {
  font-family: var(--dc-mono);
  font-weight: 700;
  font-size: .95rem;
  word-break: break-all;
  color: #7d1b12;
}

/* ---------- 5c. Ordner-Verknuepfungen auf dem Schreibtisch ---------- */
body.jupi.dc_body .dc_ordner_zeile {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin: .15rem 0 .1rem;
}
body.jupi.dc_body .dc_ordner_knopf {
  position: relative;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  min-width: 108px;
  padding: .55rem .7rem .5rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  background: transparent;
  color: var(--dc-tinte);
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}
body.jupi.dc_body .dc_ordner_knopf:hover:not(:disabled),
body.jupi.dc_body .dc_ordner_knopf:focus-visible:not(:disabled) {
  background: rgba(255, 255, 255, .74);
  border-color: rgba(15, 108, 189, .40);
  outline: none;
}
body.jupi.dc_body .dc_ordner_knopf:active:not(:disabled) { transform: scale(.97); }
body.jupi.dc_body .dc_ordner_knopf:disabled { cursor: default; opacity: .6; }
body.jupi.dc_body .dc_ordner_icon {
  width: 58px;
  height: auto;
  filter: drop-shadow(0 5px 8px rgba(24, 44, 66, .3));
  transition: transform .14s ease;
}
body.jupi.dc_body .dc_ordner_knopf:hover:not(:disabled) .dc_ordner_icon { transform: translateY(-2px); }
body.jupi.dc_body .dc_ordner_knopf span {
  font-size: .86rem;
  font-weight: 800;
  padding: .1rem .45rem;
  border-radius: .25rem;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(160, 184, 208, .55);
  box-shadow: 0 1px 3px rgba(16, 40, 66, .12);
}
body.jupi.dc_body .dc_Ordner_richtig {
  border-color: var(--dc-gruen) !important;
  background: rgba(214, 240, 210, .92) !important;
  opacity: 1 !important;
  box-shadow: 0 0 0 3px rgba(16, 124, 16, .22);
}
body.jupi.dc_body .dc_Ordner_richtig span {
  background: var(--dc-gruen);
  border-color: var(--dc-gruen);
  color: #ffffff;
}
body.jupi.dc_body .dc_Ordner_falsch {
  border-color: var(--dc-rot) !important;
  background: rgba(253, 231, 228, .92) !important;
  opacity: 1 !important;
  box-shadow: 0 0 0 3px rgba(196, 43, 28, .18);
}
body.jupi.dc_body .dc_Ordner_falsch span {
  background: var(--dc-rot);
  border-color: var(--dc-rot);
  color: #ffffff;
}

/* ---------- 6. Antwort-Knoepfe, Aktionszeile, Meldung ---------- */
body.jupi.dc_body .dc_antworten {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin: .45rem 0 .2rem;
}
body.jupi.dc_body .dc_btn_antwort {
  font: inherit;
  font-family: var(--dc-mono);
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  max-width: 30rem;
  padding: .55rem .9rem;
  border-radius: .45rem;
  border: 1px solid #b3c4d8;
  color: var(--dc-tinte);
  background: linear-gradient(180deg, #ffffff, #eff4fa);
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(16, 40, 66, .12);
  text-align: start;
}
body.jupi.dc_body .dc_btn_antwort:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffffff, #dfeaf8);
  border-color: var(--dc-akzent-hell);
  color: var(--dc-akzent-tief);
}
body.jupi.dc_body .dc_btn_antwort:focus-visible {
  outline: 3px solid rgba(15, 108, 189, .45);
  outline-offset: 2px;
}
body.jupi.dc_body .dc_btn_antwort:disabled { cursor: default; opacity: .62; }
body.jupi.dc_body .dc_btn_right {
  background: linear-gradient(180deg, #1a8f1a, var(--dc-gruen)) !important;
  border-color: #0b5c0b !important;
  color: #ffffff !important;
  opacity: 1 !important;
  box-shadow: 0 0 0 3px rgba(16, 124, 16, .22), inset 0 1px 0 rgba(255, 255, 255, .3) !important;
}
body.jupi.dc_body .dc_btn_wrong {
  background: linear-gradient(180deg, #fdece9, #f9dcd6) !important;
  border-color: var(--dc-rot) !important;
  color: #7d1b12 !important;
  opacity: 1 !important;
}
body.jupi.dc_body .dc_btns_row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  /* auto statt fester Wert: die Knopfzeile (mit Meldung und Taskleiste darunter)
     bleibt am unteren Rand der festen Buehne - die freie Hoehe landet im
     Schreibtisch darueber, nicht als Luecke unter der Taskleiste. */
  margin-top: auto;
  padding-top: .35rem;
}
/* Aktions-Knoepfe: "Weiter" als blaue Hauptschaltflaeche, "Vorlesen" ruhig */
body.jupi.dc_body .dc_btns_row .jupi_btn {
  font: inherit;
  font-weight: 800;
  font-size: .92rem;
  min-height: 42px;
  padding: .45rem 1.15rem;
  border-radius: .45rem;
  border: 1px solid var(--dc-akzent-tief);
  color: #ffffff;
  background: linear-gradient(180deg, #2f8fe0, var(--dc-akzent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 10px -4px rgba(15, 108, 189, .8);
  text-decoration: none;
}
body.jupi.dc_body .dc_btns_row .jupi_btn:hover {
  background: linear-gradient(180deg, #46a0ec, #1577cc);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 6px 16px -6px rgba(15, 108, 189, .9);
}
body.jupi.dc_body .dc_btns_row .jupi_btn_alt {
  color: var(--dc-tinte);
  background: linear-gradient(180deg, #ffffff, #eef3f9);
  border-color: #b3c4d8;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(16, 40, 66, .12);
}
body.jupi.dc_body .dc_btns_row .jupi_btn_alt:hover {
  background: linear-gradient(180deg, #ffffff, #e2edfa);
  border-color: var(--dc-akzent-hell);
  color: var(--dc-akzent-tief);
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 6px rgba(15, 108, 189, .18);
}
/* Meldung = Statuszeile eines Fensters */
body.jupi.dc_body .dc_msg {
  margin-top: .45rem;
  min-height: 2.1em;
  padding: .35rem .75rem;
  border-radius: .4rem;
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(178, 198, 220, .7);
  font-size: .92rem;
  text-align: center;
  color: var(--dc-tinte);
}
body.jupi.dc_body .dc_msg:empty {
  background: transparent;
  border-color: transparent;
}
body.jupi.dc_body .dc_msg_ok {
  background: rgba(214, 240, 210, .85);
  border-color: rgba(16, 124, 16, .38);
  color: #0d5c0d;
  font-weight: 700;
}
body.jupi.dc_body .dc_msg_err {
  background: rgba(253, 231, 228, .9);
  border-color: rgba(196, 43, 28, .38);
  color: #8c1f12;
  font-weight: 700;
}

/* ---------- 7. Das Explorer-Fenster ---------- */
/* Das Fenster FUELLT die Buehne (feste Hoehe, siehe 4.):
   es waechst mit der freien Hoehe, die Dateiliste scrollt, wenn sie
   nicht ganz hineinpasst. .dc_exp[hidden] bleibt display:none. */
body.jupi.dc_body .dc_exp {
  margin-top: .1rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
body.jupi.dc_body .dc_exp_fenster {
  border-radius: .8rem;
  border: 1px solid #a9b9cb;
  background: #ffffff;
  /* Feste Tinte: das Fenster ist in BEIDEN Themes hell - Theme-Variablen
     wuerden im Dunkelmodus helle Schrift auf weiss setzen. */
  color: #16232e;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  box-shadow: 0 26px 46px -26px rgba(8, 24, 42, .72),
              0 0 0 1px rgba(255, 255, 255, .55),
              inset 0 1px 0 #ffffff;
}
/* Titelleiste */
body.jupi.dc_body .dc_exp_titelleiste {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .38rem .55rem .38rem .65rem;
  background: linear-gradient(180deg, #fbfdff, #e9eff7);
  border-bottom: 1px solid #ccd8e5;
  font-size: .9rem;
  font-weight: 800;
  color: #1d3040;
}
body.jupi.dc_body .dc_exp_titel_icon { font-size: .95rem; }
body.jupi.dc_body .dc_exp_titel_text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.jupi.dc_body .dc_exp_deko { display: flex; gap: .25rem; flex: none; }
body.jupi.dc_body .dc_exp_deko i {
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  border-radius: .25rem;
  font-size: .64rem;
  line-height: 1;
  color: #5d7b96;
  background: #e2e9f2;
}
body.jupi.dc_body .dc_exp_deko i:last-child {
  color: #8c1f12;
  background: #f7ded9;
}
/* Reiter-Zeile (wie Windows 11): aktueller Ort als Reiter */
body.jupi.dc_body .dc_exp_tabs {
  display: flex;
  align-items: flex-end;
  gap: .3rem;
  padding: .28rem .5rem 0;
  background: #e9eff7;
  border-bottom: 1px solid #ccd8e5;
}
body.jupi.dc_body .dc_exp_tab {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  max-width: 60%;
  padding: .26rem .7rem;
  border-radius: .4rem .4rem 0 0;
  font-size: .78rem;
  font-weight: 700;
  color: #4a6076;
  background: #dde5ef;
  border: 1px solid #c6d3e2;
  border-bottom: 0;
}
body.jupi.dc_body .dc_exp_tab_aktiv {
  color: #16232e;
  background: #ffffff;
  box-shadow: inset 0 2px 0 var(--dc-akzent);
}
body.jupi.dc_body .dc_exp_tab span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.jupi.dc_body .dc_exp_tab_plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-bottom: .16rem;
  border-radius: .25rem;
  font-size: .8rem;
  color: #4a6076;
  background: #e2e9f2;
}
/* Adressleiste */
body.jupi.dc_body .dc_exp_navileiste {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .5rem;
  background: #f4f7fb;
  border-bottom: 1px solid #dbe4ee;
}
body.jupi.dc_body .dc_exp_nav {
  font: inherit;
  cursor: pointer;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: .4rem;
  border: 1px solid #b9c9da;
  background: #ffffff;
  color: #23445f;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(16, 40, 66, .1);
}
body.jupi.dc_body .dc_exp_nav:hover:not(:disabled) {
  background: var(--dc-akzent-blass);
  border-color: var(--dc-akzent-hell);
  color: var(--dc-akzent-tief);
}
body.jupi.dc_body .dc_exp_nav:disabled { opacity: .4; cursor: default; }
body.jupi.dc_body .dc_exp_pfad {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .2rem .3rem;
  min-height: 34px;
  padding: .2rem .55rem;
  border-radius: .4rem;
  border: 1px solid #b9c9da;
  background: #ffffff;
  font-size: .88rem;
  box-shadow: inset 0 1px 2px rgba(16, 40, 66, .07);
}
body.jupi.dc_body .dc_exp_krume {
  font: inherit;
  cursor: pointer;
  padding: .05rem .3rem;
  border: 0;
  border-radius: .25rem;
  background: none;
  color: #0b4a83;
  font-weight: 700;
}
body.jupi.dc_body .dc_exp_krume:hover { background: #e3f0fd; }
body.jupi.dc_body .dc_exp_krume_aktiv {
  color: #16232e;
  background: #e3f0fd;
  cursor: default;
}
body.jupi.dc_body .dc_exp_krume_aktiv:hover { background: #e3f0fd; }
body.jupi.dc_body .dc_exp_pfeil { color: #93a6b9; }
body.jupi.dc_body .dc_exp_ort_grau { color: #5f7488; padding-inline-start: .15rem; }

/* Koerper: Baum links, Liste rechts */
body.jupi.dc_body .dc_exp_koerper {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  /* minmax(0,1fr): die Zeile darf SCHRUMPFEN - sonst waechst sie mit der
     Dateiliste mit und das Fenster laeuft unten aus der Buehne. */
  grid-template-rows: minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 232px;
}
body.jupi.dc_body .dc_exp_baum {
  padding: .45rem .35rem;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f4f7fb;
  border-inline-end: 1px solid #dbe4ee;
  min-width: 0;
}
body.jupi.dc_body .dc_exp_baum_titel {
  padding: .1rem .45rem .3rem;
  font: 700 .64rem/1.2 var(--dc-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #5b6f85;
}
body.jupi.dc_body .dc_exp_ort {
  width: 100%;
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .1rem;
  padding: .26rem .4rem;
  border: 1px solid transparent;
  border-radius: .35rem;
  background: none;
  color: #16232e;
  font-size: .88rem;
  text-align: start;
}
body.jupi.dc_body .dc_exp_ort:hover { background: #e6effa; border-color: #c7dbf1; }
body.jupi.dc_body .dc_exp_ort svg { width: 22px; height: auto; flex: none; }
body.jupi.dc_body .dc_exp_ort_name {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.jupi.dc_body .dc_exp_ort_zahl {
  flex: none;
  min-width: 1.4em;
  padding: .02rem .35rem;
  border-radius: 999px;
  background: #dde7f2;
  color: #3d5a75;
  font-size: .68rem;
  font-weight: 800;
  text-align: center;
}
body.jupi.dc_body .dc_exp_aktiv {
  background: #e3f0fd;
  border-color: #9cc3ea;
  box-shadow: inset 2px 0 0 #0f6cbd;
}
body.jupi.dc_body .dc_exp_aktiv .dc_exp_ort_zahl {
  background: var(--dc-akzent);
  color: #ffffff;
}
body.jupi.dc_body .dc_exp_start_symbol { font-size: 1rem; line-height: 1; }

/* Ziehen: Ziele leuchten, das Ziel unter dem Zeiger kraeftig */
body.jupi.dc_body.dc_exp_ziehen .dc_exp_ort[data-exp-ziel] {
  border-color: #9dc8a0;
  background: #f0faf0;
}
body.jupi.dc_body .dc_exp_ort.dc_exp_ziel_ueber {
  border-color: var(--dc-gruen) !important;
  background: var(--dc-gruen-hell) !important;
  box-shadow: inset 2px 0 0 var(--dc-gruen), 0 0 0 3px rgba(16, 124, 16, .2);
  transform: scale(1.02);
}
body.jupi.dc_body .dc_exp_ort.dc_exp_ziel_falsch {
  border-color: var(--dc-rot) !important;
  background: var(--dc-rot-hell) !important;
  animation: dc_exp_wackeln .4s ease;
}
@keyframes dc_exp_wackeln {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

/* Rechte Seite: Spaltenkopf + Dateiliste */
body.jupi.dc_body .dc_exp_rechts {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #ffffff;
}
body.jupi.dc_body .dc_exp_kopf {
  flex: none;
  display: flex;
  gap: .5rem;
  padding: .34rem .6rem;
  padding-inline-start: .6rem;
  background: #f4f7fb;
  border-bottom: 1px solid #dbe4ee;
  font: 700 .66rem/1.3 var(--dc-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5b6f85;
}
body.jupi.dc_body .dc_exp_kk_name { flex: 1; min-width: 0; }
body.jupi.dc_body .dc_exp_kk_typ { flex: none; width: 9.5em; }
body.jupi.dc_body .dc_exp_kk_groesse { flex: none; width: 5.2em; text-align: right; }
body.jupi.dc_body .dc_exp_kk_haken { flex: none; width: 1.1em; }
body.jupi.dc_body .dc_exp_liste {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: .25rem;
  /* Passt die Liste nicht in die feste Buehne, scrollt SIE - nicht die Seite. */
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.jupi.dc_body .dc_exp_zeile {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  padding: .26rem .4rem;
  border: 1px solid transparent;
  border-radius: .35rem;
  cursor: grab;
  touch-action: none;
  user-select: none;
  outline-offset: 1px;
}
body.jupi.dc_body .dc_exp_zeile:hover { background: #eef5fd; }
body.jupi.dc_body .dc_exp_zeile:focus-visible {
  border-color: var(--dc-akzent);
  box-shadow: 0 0 0 3px rgba(15, 108, 189, .22);
  outline: none;
}
body.jupi.dc_body .dc_exp_zeile.dc_exp_gewaehlt {
  background: #cfe6ff;
  border-color: #4a96dd;
  box-shadow: inset 2px 0 0 var(--dc-akzent);
}
body.jupi.dc_body .dc_exp_zeile.dc_exp_quelle { opacity: .35; }
body.jupi.dc_body .dc_exp_zeile svg {
  width: 26px;
  height: auto;
  flex: none;
  filter: drop-shadow(0 1px 2px rgba(20, 40, 66, .22));
}
body.jupi.dc_body .dc_exp_dname {
  flex: 1;
  min-width: 0;
  font-family: var(--dc-mono);
  font-size: .86rem;
  font-weight: 700;
  word-break: break-word;
  overflow-wrap: anywhere;
}
/* Die Endung bleibt zusammen - nie mitten im ".mp3" umbrechen */
body.jupi.dc_body .dc_exp_dext { white-space: nowrap; }
body.jupi.dc_body .dc_exp_dtyp {
  flex: none;
  width: 9.5em;
  font-size: .78rem;
  color: #4f657a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.jupi.dc_body .dc_exp_dgroesse {
  flex: none;
  width: 5.2em;
  font-size: .78rem;
  text-align: right;
  color: #4f657a;
  font-variant-numeric: tabular-nums;
}
body.jupi.dc_body .dc_exp_haken { flex: none; color: var(--dc-gruen); font-weight: 800; }
body.jupi.dc_body .dc_exp_zeile.dc_exp_fertig { cursor: default; }
body.jupi.dc_body .dc_exp_zeile.dc_exp_fertig:hover { background: none; }
body.jupi.dc_body .dc_exp_zeile.dc_exp_weg { animation: dc_exp_weg .28s ease forwards; }
@keyframes dc_exp_weg {
  to { opacity: 0; transform: scale(.6) translateX(30px); }
}
body.jupi.dc_body .dc_exp_zeile.dc_exp_wackeln { animation: dc_exp_wackeln .4s ease; }
body.jupi.dc_body .dc_exp_puls { animation: dc_exp_puls 1.6s ease-in-out 2; }
@keyframes dc_exp_puls {
  0%, 100% { box-shadow: 0 0 0 0 rgba(15, 108, 189, 0); }
  50% { box-shadow: 0 0 0 5px rgba(15, 108, 189, .3); }
}
body.jupi.dc_body .dc_exp_leer {
  padding: 1.5rem .8rem;
  text-align: center;
  font-weight: 700;
  color: #4f657a;
}
body.jupi.dc_body .dc_exp_status {
  flex: none;
  padding: .3rem .6rem;
  background: #f4f7fb;
  border-top: 1px solid #dbe4ee;
  font-size: .76rem;
  color: #4f657a;
}

/* Der Geist, der beim Ziehen unter dem Zeiger/Finger haengt */
body.jupi.dc_body .dc_exp_geist {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: .4rem;
  max-width: 260px;
  padding: .3rem .6rem;
  border-radius: .45rem;
  border: 1px solid var(--dc-akzent);
  background: #ffffff;
  box-shadow: 0 12px 26px -10px rgba(10, 30, 52, .55);
  font-family: var(--dc-mono);
  font-size: .84rem;
  font-weight: 700;
  color: #16232e;
  pointer-events: none;
  transition: transform .05s linear;
}
body.jupi.dc_body .dc_exp_geist svg { width: 22px; height: auto; flex: none; }
body.jupi.dc_body .dc_exp_geist_flug {
  opacity: .3;
  transition: transform .24s ease-in, opacity .24s ease-in;
}
body.jupi.dc_body .dc_exp_hinweis {
  flex: none;
  margin: .45rem 0 .05rem;
  text-align: center;
  font-size: .86rem;
  color: #3f566c;
}

/* ---------- 8. Die Taskleiste: Modus-Umschalter + Uhr ----------
   Sie ist der sichtbare "Schreibtisch"-Rahmen: Start-Knopf (Zierde), ein
   Knopf je Spielmodus (echte Umschaltung, synchron mit dem Auswahlfeld) und
   rechts die Uhr. */
body.jupi.dc_body .dc_taskbar {
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-top: auto;
  padding: .28rem .38rem;
  border-radius: .55rem;
  border: 1px solid rgba(150, 195, 235, .30);
  background:
    linear-gradient(180deg, rgba(28, 48, 70, .90), rgba(12, 24, 38, .94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16),
              0 8px 18px -14px rgba(4, 12, 22, .9);
}
body.jupi.dc_body .dc_tb_start {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 34px;
  flex: none;
  border-radius: .38rem;
  border: 1px solid rgba(180, 215, 250, .5);
  background: linear-gradient(180deg, #2f8fe0, #0f6cbd);
  color: #ffffff;
  font-size: .95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
body.jupi.dc_body .dc_tb_app {
  position: relative;
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 34px;
  flex: none;
  border-radius: .38rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .09);
  font-size: 1rem;
  line-height: 1;
  transition: background .14s ease, border-color .14s ease;
}
body.jupi.dc_body .dc_tb_app:hover {
  background: rgba(160, 205, 245, .26);
  border-color: rgba(170, 210, 250, .55);
}
body.jupi.dc_body .dc_tb_app:focus-visible {
  outline: 3px solid rgba(124, 196, 255, .7);
  outline-offset: 2px;
}
body.jupi.dc_body .dc_tb_app::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  bottom: -1px;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: transparent;
}
body.jupi.dc_body .dc_tb_app.dc_aktiv {
  background: rgba(120, 190, 255, .26);
  border-color: rgba(150, 205, 250, .55);
}
body.jupi.dc_body .dc_tb_app.dc_aktiv::after { background: #7cc4ff; }
body.jupi.dc_body .dc_tb_uhr {
  margin-inline-start: auto;
  padding-inline: .4rem;
  font: 700 .74rem/1 var(--dc-mono);
  color: #d6e7f6;
  white-space: nowrap;
}

/* ---------- 9a. Start-Fenster ---------- */
body.jupi.dc_body .dc_start {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 18, 30, .62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
body.jupi.dc_body .dc_start[hidden] { display: none; }
body.jupi.dc_body .dc_start_karte {
  width: min(540px, 100%);
  padding: 0;
  overflow: hidden;
  border-radius: .8rem;
  border: 1px solid #a9b9cb;
  background: #ffffff;
  color: var(--dc-tinte);
  text-align: center;
  box-shadow: 0 34px 60px -28px rgba(4, 14, 26, .8), 0 0 0 1px rgba(255, 255, 255, .5);
}
body.jupi.dc_body .dc_start_karte h2 { margin: .2rem 0 .1rem; font-size: 1.45rem; }
body.jupi.dc_body .dc_start_karte p {
  margin: .4rem 0;
  padding-inline: 1.4rem;
  font-size: .93rem;
  line-height: 1.45;
  color: #33485c;
}
body.jupi.dc_body .dc_start_karte p:last-of-type { margin-bottom: .9rem; }
body.jupi.dc_body .dc_start_karte .jupi_btn {
  font: inherit;
  font-weight: 800;
  min-height: 46px;
  margin: 0 1.4rem 1.3rem;
  padding: .5rem 1.4rem;
  border-radius: .45rem;
  border: 1px solid var(--dc-akzent-tief);
  color: #ffffff;
  background: linear-gradient(180deg, #2f8fe0, var(--dc-akzent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 16px -8px rgba(15, 108, 189, .9);
}
body.jupi.dc_body .dc_start_karte .jupi_btn:hover {
  background: linear-gradient(180deg, #46a0ec, #1577cc);
  transform: translateY(-1px);
}
body.jupi.dc_body .dc_start_kopf {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .55rem .4rem .7rem;
  background: linear-gradient(180deg, #20374d, #16283a);
  border-bottom: 2px solid var(--dc-akzent);
  color: #eaf4ff;
  font-size: .84rem;
  font-weight: 800;
}
body.jupi.dc_body .dc_start_kopf img {
  width: 22px;
  height: 22px;
  flex: none;
}
body.jupi.dc_body .dc_start_kopf span:first-of-type { flex: 1; text-align: start; }
body.jupi.dc_body .dc_start_kopf .dc_win_btns i {
  background: rgba(255, 255, 255, .1);
  color: #d6e7f6;
}
body.jupi.dc_body .dc_start_logo {
  display: block;
  width: 88px;
  height: 88px;
  margin: 1.1rem auto .2rem;
  filter: drop-shadow(0 10px 16px rgba(14, 38, 64, .28));
}

/* ---------- 9b. Runden-Bericht ---------- */
body.jupi.dc_body .dc_done {
  position: relative;
  width: min(560px, 100%);
  margin: .3rem auto 0;
  padding: 0 0 1rem;
  overflow: hidden;
  border-radius: .8rem;
  border: 1px solid #a9b9cb;
  background: #ffffff;
  color: var(--dc-tinte);
  text-align: center;
  box-shadow: 0 26px 46px -30px rgba(8, 24, 42, .8);
}
body.jupi.dc_body .dc_done h3 {
  margin: 0 0 .1rem;
  padding: .45rem .8rem;
  background: linear-gradient(180deg, #20374d, #16283a);
  border-bottom: 2px solid var(--dc-akzent);
  color: #ffffff;
  font-size: 1.05rem;
}
body.jupi.dc_body .dc_done_icon { margin: .5rem 0 .1rem; font-size: 2.6rem; }
body.jupi.dc_body .dc_done p { margin: .3rem 1.2rem; font-size: .95rem; color: #33485c; }
body.jupi.dc_body .dc_sterne { margin: .3rem 0 .7rem; font-size: 1.7rem; }
body.jupi.dc_body .dc_done .jupi_btn {
  font: inherit;
  font-weight: 800;
  min-height: 44px;
  padding: .45rem 1.3rem;
  border-radius: .45rem;
  border: 1px solid var(--dc-akzent-tief);
  color: #ffffff;
  background: linear-gradient(180deg, #2f8fe0, var(--dc-akzent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 12px -6px rgba(15, 108, 189, .9);
}
body.jupi.dc_body .dc_done .jupi_btn:hover {
  background: linear-gradient(180deg, #46a0ec, #1577cc);
  transform: translateY(-1px);
}
body.jupi.dc_body .dc_konfetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
body.jupi.dc_body .dc_konfetti i {
  position: absolute;
  top: -14px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  opacity: .9;
  animation: dc_fallen 2.8s ease-in forwards;
}
@keyframes dc_fallen {
  to { transform: translateY(105vh) rotate(540deg); opacity: .15; }
}

/* ---------- 9c. Hilfe-Dialog (Regel 3.13 Typ 2: Modal) ---------- */
body.jupi.dc_body .dc_modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 18, 30, .68);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
body.jupi.dc_body .dc_modal[hidden] { display: none; }
body.jupi.dc_body .dc_dialog {
  width: 100%;
  max-width: 600px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 0 0 .8rem;
  border-radius: .7rem;
  border: 1px solid #9fb2c6;
  background: #ffffff;
  color: var(--dc-tinte);
  box-shadow: 0 34px 60px -28px rgba(4, 14, 26, .85);
}
body.jupi.dc_body .dc_dialog h3 {
  margin: 0 0 .5rem;
  padding: .45rem .9rem;
  background: linear-gradient(180deg, #20374d, #16283a);
  border-bottom: 2px solid var(--dc-akzent);
  color: #ffffff;
  font-size: 1.05rem;
}
body.jupi.dc_body .dc_dialog_unter {
  margin: .55rem .95rem .2rem;
  font-size: .98rem;
  color: var(--dc-akzent-tief);
}
body.jupi.dc_body .dc_dialog_lernsatz {
  margin: .2rem .95rem .5rem;
  padding: .55rem .7rem;
  border-inline-start: 4px solid var(--dc-akzent);
  border-radius: .35rem;
  background: var(--dc-akzent-blass);
  font-size: .9rem;
  line-height: 1.5;
  color: #22384c;
}
body.jupi.dc_body .dc_dialog ul { margin: .3rem .95rem; padding-inline-start: 1.2rem; }
body.jupi.dc_body .dc_dialog li { margin-bottom: .4rem; font-size: .9rem; line-height: 1.45; }
body.jupi.dc_body .dc_dialog li::marker { color: var(--dc-akzent); }
body.jupi.dc_body .dc_dialog strong { color: #123049; }
body.jupi.dc_body .dc_dialog_knopf { margin: .8rem .95rem 0; text-align: end; }
body.jupi.dc_body .dc_dialog_knopf .jupi_btn {
  font: inherit;
  font-weight: 800;
  min-height: 42px;
  padding: .45rem 1.25rem;
  border-radius: .45rem;
  border: 1px solid var(--dc-akzent-tief);
  color: #ffffff;
  background: linear-gradient(180deg, #2f8fe0, var(--dc-akzent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
body.jupi.dc_body .dc_dialog_knopf .jupi_btn:hover {
  background: linear-gradient(180deg, #46a0ec, #1577cc);
  transform: none;
}

/* ---------- 10. Dark Mode = Abend am Schreibtisch ----------
   Die Fenster bleiben HELL und beleuchtet (wie ein echtes Programmfenster
   auf einem dunklen Schreibtisch) - nur Rahmen, Leisten und Flaechen aussen
   dunkeln ab. */
html[data-theme="dark"] body.jupi.dc_body {
  --dc-akzent: #2f8fe0;
  --dc-akzent-hell: #5fb0f0;
  --dc-akzent-tief: #8cc6f6;
  --dc-akzent-blass: #16344d;
  --dc-papier-2: #1e2833;
  --dc-linie: #33465a;
  --dc-linie-2: #2a3846;
  --dc-tinte: #e8f1f9;
  --dc-tinte-soft: #9fb6cb;
}
html[data-theme="dark"] body.jupi.dc_body .dc_header {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .3)),
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, .025) 0 1px, transparent 1px 6px),
    linear-gradient(135deg, #101d2a 0%, #0c1722 55%, #070f18 100%);
  box-shadow: 0 8px 26px -12px rgba(0, 0, 0, .8),
              inset 0 1px 0 rgba(120, 170, 220, .22);
}
html[data-theme="dark"] body.jupi.dc_body .dc_header .jupi_nav_back {
  color: #dbe9f7;
  background: linear-gradient(180deg, #243546, #1a2836);
  border-color: #3a5068;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
html[data-theme="dark"] body.jupi.dc_body .dc_header .jupi_nav_back:hover {
  background: linear-gradient(180deg, #2b3f53, #1e2f3f);
  color: #ffffff;
}
html[data-theme="dark"] body.jupi.dc_body .dc_claim { color: #7fb4e0; }
html[data-theme="dark"] body.jupi.dc_body .dc_panel {
  border-color: #2c3b4b;
  background: linear-gradient(180deg, #1c2734 0%, #16202b 62%, #111a23 100%);
  box-shadow: 0 12px 26px -18px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(120, 170, 220, .16);
}
html[data-theme="dark"] body.jupi.dc_body .dc_stat { border-inline-end-color: #2c3b4b; }
html[data-theme="dark"] body.jupi.dc_body .dc_stat label { color: #90a9c0; }
html[data-theme="dark"] body.jupi.dc_body .dc_stat span { color: #7cc4ff; }
html[data-theme="dark"] body.jupi.dc_body .dc_controls label { color: #b9cadb; }
html[data-theme="dark"] body.jupi.dc_body .dc_controls .jupi_select {
  color: #e8f1f9;
  background: #22303d;
  border-color: #3d5165;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
html[data-theme="dark"] body.jupi.dc_body .dc_controls .jupi_select option {
  color: #e8f1f9;
  background: #22303d;
}
html[data-theme="dark"] body.jupi.dc_body .dc_controls .jupi_btn_alt {
  color: #e8f1f9;
  background: linear-gradient(180deg, #253443, #1b2733);
  border-color: #3d5165;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
html[data-theme="dark"] body.jupi.dc_body .dc_controls .jupi_btn_alt:hover {
  background: linear-gradient(180deg, #2c4054, #21303f);
  border-color: #5fb0f0;
  color: #ffffff;
}
html[data-theme="dark"] body.jupi.dc_body .dc_stage {
  border-color: rgba(120, 170, 220, .24);
  background: linear-gradient(180deg, rgba(22, 34, 46, .82) 0%, rgba(12, 22, 32, .74) 100%);
  box-shadow: 0 24px 46px -30px rgba(0, 0, 0, .9),
              inset 0 1px 0 rgba(140, 190, 240, .16);
}
html[data-theme="dark"] body.jupi.dc_body .dc_datei_karte {
  border-color: rgba(120, 180, 240, .45);
  background: rgba(60, 110, 160, .34);
}
html[data-theme="dark"] body.jupi.dc_body .dc_ordner_knopf:hover:not(:disabled),
html[data-theme="dark"] body.jupi.dc_body .dc_ordner_knopf:focus-visible:not(:disabled) {
  background: rgba(40, 70, 100, .7);
  border-color: rgba(120, 180, 240, .5);
}
html[data-theme="dark"] body.jupi.dc_body .dc_ordner_knopf span {
  background: rgba(18, 30, 42, .9);
  border-color: rgba(120, 170, 220, .4);
  color: #e8f1f9;
}
html[data-theme="dark"] body.jupi.dc_body .dc_Ordner_richtig {
  background: rgba(24, 66, 28, .85) !important;
  border-color: #4caf50 !important;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, .28);
}
html[data-theme="dark"] body.jupi.dc_body .dc_Ordner_falsch {
  background: rgba(84, 24, 18, .85) !important;
  border-color: #ef5350 !important;
  box-shadow: 0 0 0 3px rgba(239, 83, 80, .26);
}
html[data-theme="dark"] body.jupi.dc_body .dc_btn_antwort {
  color: #e8f1f9;
  background: linear-gradient(180deg, #24323f, #1a2531);
  border-color: #3d5165;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
html[data-theme="dark"] body.jupi.dc_body .dc_btn_antwort:hover:not(:disabled) {
  background: linear-gradient(180deg, #2b3f53, #21303f);
  border-color: #5fb0f0;
  color: #ffffff;
}
html[data-theme="dark"] body.jupi.dc_body .dc_btn_right {
  background: linear-gradient(180deg, #1f9a1f, #137d13) !important;
  border-color: #4caf50 !important;
  color: #ffffff !important;
}
html[data-theme="dark"] body.jupi.dc_body .dc_btn_wrong {
  background: linear-gradient(180deg, #4a1c16, #3a1410) !important;
  border-color: #ef5350 !important;
  color: #ffcdc7 !important;
}
html[data-theme="dark"] body.jupi.dc_body .dc_btns_row .jupi_btn_alt {
  color: #e8f1f9;
  background: linear-gradient(180deg, #253443, #1b2733);
  border-color: #3d5165;
}
html[data-theme="dark"] body.jupi.dc_body .dc_btns_row .jupi_btn_alt:hover {
  background: linear-gradient(180deg, #2c4054, #21303f);
  border-color: #5fb0f0;
}
html[data-theme="dark"] body.jupi.dc_body .dc_msg {
  background: rgba(22, 34, 46, .78);
  border-color: rgba(70, 96, 120, .8);
  color: #dbe9f6;
}
html[data-theme="dark"] body.jupi.dc_body .dc_msg:empty {
  background: transparent;
  border-color: transparent;
}
html[data-theme="dark"] body.jupi.dc_body .dc_msg_ok {
  background: rgba(20, 60, 26, .8);
  border-color: rgba(76, 175, 80, .45);
  color: #b6e7b0;
}
html[data-theme="dark"] body.jupi.dc_body .dc_msg_err {
  background: rgba(70, 22, 16, .82);
  border-color: rgba(239, 83, 80, .45);
  color: #ffc4bc;
}
html[data-theme="dark"] body.jupi.dc_body .dc_exp_hinweis { color: #b9cadb; }
html[data-theme="dark"] body.jupi.dc_body .dc_chaos_karte {
  border-color: #5c3a34;
  border-inline-start-color: #ef5350;
  background: linear-gradient(180deg, #2a1c1a, #231715);
  color: #f0e6e4;
}
html[data-theme="dark"] body.jupi.dc_body .dc_chaos_karte code { color: #ffb4ab; }
/* Dunkle Fassungen der Fenster-Karten: Start, Bericht, Dialog */
html[data-theme="dark"] body.jupi.dc_body .dc_start_karte,
html[data-theme="dark"] body.jupi.dc_body .dc_done,
html[data-theme="dark"] body.jupi.dc_body .dc_dialog {
  border-color: #33465a;
  background: #1b2530;
  color: #e8f1f9;
  box-shadow: 0 34px 60px -28px rgba(0, 0, 0, .9);
}
html[data-theme="dark"] body.jupi.dc_body .dc_start_karte p,
html[data-theme="dark"] body.jupi.dc_body .dc_done p { color: #bfd2e3; }
html[data-theme="dark"] body.jupi.dc_body .dc_start_karte h2 { color: #ffffff; }
html[data-theme="dark"] body.jupi.dc_body .dc_done h3,
html[data-theme="dark"] body.jupi.dc_body .dc_dialog h3 {
  background: linear-gradient(180deg, #0f1b26, #0a141d);
  color: #ffffff;
}
html[data-theme="dark"] body.jupi.dc_body .dc_dialog_unter { color: #7cc4ff; }
html[data-theme="dark"] body.jupi.dc_body .dc_dialog_lernsatz {
  background: #14283a;
  color: #cfe2f4;
  border-inline-start-color: #5fb0f0;
}
html[data-theme="dark"] body.jupi.dc_body .dc_dialog strong { color: #ffffff; }
html[data-theme="dark"] body.jupi.dc_body .dc_dialog li { color: #d5e4f1; }

/* ---------- 11a. Schmaler Desktop / Tablet ----------
   Bei 768 px reichte die 1fr-Spalte der Werkzeuge nicht mehr: die drei
   Zier-Fensterknoepfe schoben sich ueber den Spielnamen (Foto der GUI-Probe).
   Zierde faellt zuerst, dann der Claim, dann die Schriftgroessen. */
@media (max-width: 900px) {
  body.jupi.dc_body .dc_win_btns { display: none; }
  body.jupi.dc_body .jupi_sprachen_wahl { max-width: 9rem; }
  body.jupi.dc_body .dc_header .jupi_werkzeuge { gap: .35rem; }
}
@media (max-width: 820px) {
  body.jupi.dc_body .dc_claim { display: none; }
  body.jupi.dc_body .jupi_sprachen_wahl { max-width: 7.5rem; }
}

/* ---------- 11b. Handy ---------- */
@media (max-width: 700px) {
  body.jupi.dc_body .dc_header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .35rem .5rem;
    padding: .4rem .5rem .45rem;
  }
  body.jupi.dc_body .dc_brand {
    grid-row: 1;
    grid-column: 1 / -1;
    justify-content: center;
  }
  body.jupi.dc_body .dc_brand img { width: 36px; height: 36px; }
  body.jupi.dc_body .dc_brand h1 { font-size: 1.16rem; }
  body.jupi.dc_body .dc_claim { font-size: .6rem; letter-spacing: .14em; }
  body.jupi.dc_body .dc_header .jupi_nav_back {
    grid-row: 2;
    grid-column: 1;
    justify-self: start;
    font-size: .82rem;
    padding: .3rem .65rem;
    min-height: 36px;
  }
  body.jupi.dc_body .dc_header .jupi_werkzeuge {
    grid-row: 2;
    grid-column: 2;
    justify-self: end;
    gap: .35rem;
  }
  body.jupi.dc_body .dc_win_btns { display: none; }
  body.jupi.dc_body .jupi_sprachen_wahl { max-width: 8.2rem; }
  body.jupi.dc_body .jupi_sprachen_select { font-size: .78rem; padding: .15rem .35rem; }
  body.jupi.dc_body .dc_header #jupi_theme_toggle { min-width: 58px; }
  body.jupi.dc_body .jupi_main { padding: .6rem .55rem .9rem; }
  body.jupi.dc_body .dc_panel { gap: .45rem .6rem; padding: .45rem .55rem; }
  body.jupi.dc_body .dc_stat { min-width: 3.4rem; padding-inline-end: .55rem; }
  body.jupi.dc_body .dc_stat span { font-size: 1.1rem; }
  body.jupi.dc_body .dc_controls { width: 100%; }
  body.jupi.dc_body .dc_controls select { flex: 1 1 8rem; min-width: 0; max-width: 100%; }
  /* "Modus:"/"Schwierigkeit:" standen am Handy allein am Zeilenende, weil das
     Auswahlfeld umbrach. Sie werden unsichtbar - bleiben aber im
     Bedienbaum (for/id unveraendert), damit Screenreader sie vorlesen. */
  body.jupi.dc_body .dc_controls > label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  body.jupi.dc_body .dc_stage {
    padding: .5rem .45rem .4rem;
    --dc-buehne-h: 36rem;
  }
  body.jupi.dc_body .dc_frage_label {
    font-size: .88rem;
    padding: .28rem .7rem;
    margin-bottom: .45rem;
  }
  body.jupi.dc_body .dc_datei_icon { width: 68px; }
  body.jupi.dc_body .dc_ordner_knopf { min-width: 84px; padding: .4rem .4rem .35rem; }
  body.jupi.dc_body .dc_ordner_icon { width: 46px; }
  body.jupi.dc_body .dc_ordner_knopf span { font-size: .76rem; }
  body.jupi.dc_body .dc_btn_antwort { font-size: .84rem; padding: .5rem .7rem; }
  body.jupi.dc_body .dc_msg { font-size: .84rem; }
  /* Explorer am Handy: Baum wird eine waagrechte Reihe von Ordnern, damit
     die Dateiliste die volle Breite bekommt (vorher lief das Fenster rechts
     aus dem Bild - gemessen bei 390 px). */
  body.jupi.dc_body .dc_exp_koerper {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
  }
  body.jupi.dc_body .dc_exp_baum {
    display: flex;
    align-items: center;
    gap: .3rem;
    overflow-x: auto;
    padding: .35rem;
    border-inline-end: 0;
    border-bottom: 1px solid #dbe4ee;
    scrollbar-width: thin;
  }
  body.jupi.dc_body .dc_exp_baum_titel { display: none; }
  body.jupi.dc_body .dc_exp_ort {
    width: auto;
    flex: 0 0 auto;
    margin-bottom: 0;
    padding: .3rem .45rem;
    font-size: .78rem;
    white-space: nowrap;
  }
  body.jupi.dc_body .dc_exp_ort svg { width: 18px; }
  body.jupi.dc_body .dc_exp_ort_name { max-width: 6.4rem; }
  body.jupi.dc_body .dc_exp_tab { max-width: 70%; font-size: .72rem; }
  body.jupi.dc_body .dc_exp_kopf { font-size: .6rem; }
  body.jupi.dc_body .dc_exp_kk_typ,
  body.jupi.dc_body .dc_exp_dtyp { display: none; }
  body.jupi.dc_body .dc_exp_kk_groesse { width: 4.2em; }
  body.jupi.dc_body .dc_exp_dgroesse { width: 4.2em; font-size: .7rem; }
  body.jupi.dc_body .dc_exp_zeile svg { width: 20px; }
  body.jupi.dc_body .dc_exp_dname { font-size: .74rem; }
  body.jupi.dc_body .dc_exp_zeile { padding: .34rem .35rem; }
  body.jupi.dc_body .dc_brett { min-height: 132px; }
  body.jupi.dc_body .dc_taskbar { gap: .22rem; padding: .24rem .3rem; }
  body.jupi.dc_body .dc_tb_app { width: 34px; height: 32px; }
  body.jupi.dc_body .dc_tb_start { width: 32px; height: 32px; }
  body.jupi.dc_body .dc_tb_uhr { font-size: .68rem; }
  body.jupi.dc_body .dc_start_karte p { padding-inline: 1rem; font-size: .88rem; }
  body.jupi.dc_body .dc_done { width: 100%; }
}
@media (max-width: 400px) {
  body.jupi.dc_body .dc_brand h1 { font-size: 1.06rem; }
  body.jupi.dc_body .dc_claim { display: none; }
  body.jupi.dc_body .jupi_sprachen_wahl { max-width: 6.8rem; }
  body.jupi.dc_body .dc_ordner_knopf { min-width: 76px; }
  body.jupi.dc_body .dc_tb_app { width: 31px; }
}

/* ---------- 11c. Flache Fenster (Schul-Laptops) ---------- */
@media (max-height: 800px) {
  /* Flache Schul-Laptops: die Buehne wird flacher, bleibt aber fest. */
  body.jupi.dc_body .dc_stage { --dc-buehne-h: 39rem; }
  body.jupi.dc_body .dc_brett { min-height: 128px; }
  body.jupi.dc_body .dc_datei_icon { width: 68px; }
  body.jupi.dc_body .dc_ordner_icon { width: 48px; }
  body.jupi.dc_body .dc_exp_koerper { min-height: 196px; }
  body.jupi.dc_body .dc_msg { min-height: 1.8em; }
}

/* ---------- 12. Bedienziele >= 40 x 40 px (Regel 3.13.5) ----------
   STEHT AM ENDE: sonst gewinnt eine spaetere Grundregel. */
body.jupi.dc_body .dc_panel button,
body.jupi.dc_body .dc_panel select { min-height: 40px; }
body.jupi.dc_body .dc_tb_app,
body.jupi.dc_body .dc_tb_start { min-height: 34px; }
body.jupi.dc_body .dc_exp_nav { min-width: 34px; min-height: 34px; }

/* ---------- 13. Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  body.jupi.dc_body .dc_konfetti,
  body.jupi.dc_body .dc_exp_puls,
  body.jupi.dc_body .dc_exp_zeile.dc_exp_weg,
  body.jupi.dc_body .dc_exp_ort.dc_exp_ziel_falsch { animation: none; }
  body.jupi.dc_body .dc_datei_karte,
  body.jupi.dc_body .dc_ordner_knopf,
  body.jupi.dc_body .dc_ordner_icon { transition: none; }
}
