/* mausemaus — Seiteninhalt: Code-Blöcke, Werkzeug-Nachbildung, Bildblöcke.
   Kommt aus dem alten blog.css und wird jetzt von den Welt-Seiten benutzt.
   NICHT übernommen: .blog-liste, .eintrag*, .beitrag*, .nav — die gehören
   zur alten Beitragsübersicht/-seite, die es beide nicht mehr gibt. */

/* ===== Code-Blöcke (Optik angelehnt an den Claude-Chat) ===== */
.code-block {
  margin: 26px 0; border-radius: 14px; overflow: hidden;
  border: 1.5px solid var(--ink); background: #10171E;
  box-shadow: 5px 6px 0 var(--ink);
}
.code-kopf {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 14px; background: #182029; border-bottom: 1px solid rgba(255,255,255,0.09);
}
.code-sprache {
  font-family: 'Space Mono', monospace; font-size: 10.5px; letter-spacing: 1.4px;
  text-transform: uppercase; color: rgba(240,244,239,0.62);
}
.code-kopieren {
  font-family: 'Space Mono', monospace; font-size: 10.5px; letter-spacing: .6px;
  color: rgba(240,244,239,0.75); background: transparent; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.22); border-radius: 30px; padding: 4px 12px;
  transition: background .14s ease, color .14s ease;
}
.code-kopieren:hover { background: rgba(255,255,255,0.11); color: var(--paper); }
.code-kopieren.fertig { background: var(--sage); color: var(--ink); border-color: var(--sage); }
.code-block pre { margin: 0; padding: 16px 18px; overflow-x: auto; }
.code-block code {
  font-family: 'Space Mono', monospace; font-size: 12.5px; line-height: 1.65;
  color: #E6EDF3; white-space: pre; display: block;
}

/* Einfärbung selbst gesetzt — KEIN fertiges Farbschema von highlight.js laden,
   sonst bringt es einen eigenen Hintergrund mit und es entsteht ein Kasten im Kasten. */
.code-block .hljs { background: transparent; color: #E6EDF3; padding: 0; }
/* Einfärbung — auf die Ink/Sage/Sky-Palette abgestimmt statt Standard-Bunt */
.hljs-keyword, .hljs-built_in         { color: #C39BE8; }
.hljs-string, .hljs-attr              { color: #A8D89A; }
.hljs-number, .hljs-literal           { color: #F2B478; }
.hljs-comment                         { color: #7B8794; font-style: italic; }
.hljs-title, .hljs-function .hljs-title { color: #8FC7F5; }
.hljs-variable, .hljs-params          { color: #E6EDF3; }
.hljs-property                        { color: #9FD2E8; }

/* Leerer Hinweis, wenn eine Einlage nicht hinterlegt ist (siehe inhalt.js). */
.leer { color: var(--muted); font-size: 14.5px; }

/* ===== Werkzeug-Nachbildung (The Race) — macOS-Stil ===== */

/* Darf aus der Lesespalte herausragen, es braucht Platz. */
.mm-demo { width: min(96vw, 980px); margin-inline: calc(50% - min(48vw, 490px)); }

.werkzeug {
  --flaeche:#F5F5F7; --karte:#FFFFFF; --linie:#DCDCE1; --rand:#D2D2D8;
  --text:#1D1D1F; --grau:#8A8A90; --blau:#0071E3;
  margin: 32px 0; border: 1px solid #D8D8DE; border-radius: 14px; overflow: hidden;
  background: var(--flaeche); color: var(--text);
  font-family: 'Manrope', sans-serif;
  box-shadow: 0 16px 44px rgba(0,0,0,.15), 0 2px 6px rgba(0,0,0,.07);
}

/* Titelleiste */
.wz-titelleiste {
  display: flex; align-items: center; gap: 9px; padding: 11px 15px; position: relative;
  background: linear-gradient(#FBFBFD, #EFEFF2); border-bottom: 1px solid var(--linie);
}
.wz-ampel { display: flex; gap: 6px; }
.wz-ampel i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.wz-ampel i:nth-child(1) { background: #FF5F57; }
.wz-ampel i:nth-child(2) { background: #FEBC2E; }
.wz-ampel i:nth-child(3) { background: #28C840; }
.wz-name {
  position: absolute; left: 0; right: 0; text-align: center;
  font-size: 12.5px; font-weight: 600; color: #5A5A60; pointer-events: none;
}

.wz-koerper { display: grid; grid-template-columns: 200px 1fr; }
/* Ohne min-width:0 sprengen die Eingabefelder das Raster und werden
   von overflow:hidden abgeschnitten statt umzubrechen. */
.wz-koerper > * { min-width: 0; }

/* Seitenleiste mit den Teilnehmenden */
.wz-seite { background: #EDEDF0; border-right: 1px solid var(--linie); padding: 14px 12px; }
.wz-titel {
  font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase;
  color: var(--grau); font-weight: 600; margin-bottom: 9px;
}
.wz-person {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 8px 10px; border: 0; border-radius: 8px; background: transparent;
  font-family: inherit; font-size: 13.5px; color: var(--text); cursor: pointer;
}
.wz-person i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.wz-person:hover { background: rgba(0,0,0,.045); }
.wz-person[aria-pressed="true"] {
  background: var(--karte); box-shadow: 0 1px 3px rgba(0,0,0,.1); font-weight: 600;
}

/* Hauptbereich */
.wz-haupt { padding: 18px 20px 20px; min-width: 0; }
.wz-seg {
  display: inline-flex; background: #E4E4E9; border-radius: 9px; padding: 2px;
  margin-bottom: 22px; max-width: 100%; overflow-x: auto;
}
.wz-art {
  border: 0; background: transparent; border-radius: 7px; padding: 7px 15px;
  font-family: inherit; font-size: 13px; color: #4A4A50; cursor: pointer; white-space: nowrap;
}
.wz-art[aria-pressed="true"] {
  background: var(--karte); box-shadow: 0 1px 3px rgba(0,0,0,.12);
  font-weight: 600; color: var(--text);
}

.wz-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wz-felder > * { min-width: 0; }
.wz-spalte-titel {
  font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase;
  color: var(--grau); font-weight: 600; margin-bottom: 8px;
}
.wz-zeile { display: flex; gap: 7px; margin-bottom: 7px; }
.wz-betrag, .wz-waehrung {
  border: 1px solid var(--rand); border-radius: 8px; background: var(--karte);
  font-family: 'Space Mono', monospace; color: var(--text);
}
.wz-betrag { flex: 1; min-width: 0; padding: 9px 12px; font-size: 13.5px; }
.wz-waehrung { padding: 9px 6px; font-size: 12px; cursor: pointer; }
.wz-betrag:focus, .wz-waehrung:focus {
  outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(0,113,227,.22);
}
.wz-weg {
  width: 28px; flex-shrink: 0; border: 1px solid var(--rand); border-radius: 8px;
  background: var(--karte); color: var(--grau); cursor: pointer; font-size: 15px; line-height: 1;
}
.wz-weg:hover { background: #FDEDEC; border-color: #F0B4AE; color: #C0392B; }
.wz-plus {
  width: 100%; border: 1px dashed #C6C6CE; border-radius: 8px; background: transparent;
  color: var(--grau); padding: 7px 0; cursor: pointer; font-family: inherit; font-size: 13px;
}
.wz-plus:hover { border-color: var(--blau); color: var(--blau); }

.wz-summe {
  grid-column: 1 / -1; margin-top: 4px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: var(--karte); border: 1px solid var(--rand); border-radius: 10px; padding: 14px 18px;
}
.wz-summe span { font-size: 12.5px; color: #6A6A70; }
.wz-summe b { font-family: 'Space Mono', monospace; font-size: 24px; }

.wz-hinweis { font-size: 12.5px; color: var(--grau); line-height: 1.55; margin-top: 14px; }

/* Fußleiste */
.wz-fuss {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--linie); flex-wrap: wrap;
}
.wz-fuss-rechts { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.wz-knopf {
  border: 1px solid #C9C9D0; border-radius: 8px; background: var(--karte); color: var(--text);
  padding: 8px 16px; font-family: inherit; font-size: 13px; cursor: pointer;
  transition: background .12s ease;
}
.wz-knopf:hover:not(:disabled) { background: #F0F0F3; }
.wz-knopf.haupt { background: var(--blau); border-color: var(--blau); color: #fff; font-weight: 600; }
.wz-knopf.haupt:hover:not(:disabled) { background: #0062C4; }
.wz-knopf:disabled { opacity: .42; cursor: not-allowed; }
.wz-zaehler { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--grau); }

/* Fortschritt */
.wz-fortschritt { margin-top: 16px; }
.wz-balken { height: 6px; border-radius: 6px; background: #DEDEE3; overflow: hidden; }
.wz-balken i { display: block; height: 100%; width: 0; background: var(--blau); transition: width .16s linear; }
.wz-protokoll {
  font-family: 'Space Mono', monospace; font-size: 11.5px; color: #6A6A70;
  margin-top: 10px; max-height: 104px; overflow-y: auto; line-height: 1.75;
}
.wz-fussnote {
  font-family: 'Space Mono', monospace; font-size: 10.5px; letter-spacing: .3px;
  color: var(--muted); padding: 10px 15px; background: var(--paper);
  border-top: 1px solid var(--linie);
}

@media (max-width: 720px) {
  .wz-koerper { grid-template-columns: 1fr; }
  .wz-seite { border-right: 0; border-bottom: 1px solid var(--linie); }
  /* Teilnehmer werden zur waagerecht scrollbaren Leiste */
  .wz-seite > div:last-child {
    display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px;
    scrollbar-width: none;
  }
  .wz-seite > div:last-child::-webkit-scrollbar { display: none; }
  .wz-person { width: auto; flex-shrink: 0; white-space: nowrap; }
  .wz-felder { grid-template-columns: 1fr; }
  .wz-name { display: none; }
  .wz-haupt { padding: 16px 14px 16px; }
  .wz-fuss { gap: 10px; }
  .wz-fuss .wz-knopf, .wz-fuss-rechts { flex: 1 1 auto; }
  .wz-fuss-rechts { justify-content: flex-end; }
}

/* ===== Textblock mit Bildern daneben (::: … :::) ===== */
.mm-block {
  display: grid; grid-template-columns: 1fr minmax(0, 300px); gap: 30px;
  align-items: start; margin: 28px 0;
}
.mm-block.mm-block-links { grid-template-columns: minmax(0, 300px) 1fr; }
.mm-block.mm-block-links .mm-block-text  { order: 2; }
.mm-block.mm-block-links .mm-block-media { order: 1; }
.mm-block > * { min-width: 0; }
.mm-block-text > *:first-child { margin-top: 0; }
.mm-block-text > * + * { margin-top: 16px; }
.mm-block-media > * + * { margin-top: 14px; }
/* Im Block dürfen Bilder die Spaltenbreite ausfüllen */
.mm-block-media figure.mm-klein  { max-width: 170px; }
.mm-block-media figure.mm-mittel { max-width: 100%; }

@media (max-width: 720px) {
  .mm-block, .mm-block.mm-block-links { grid-template-columns: 1fr; gap: 18px; }
  .mm-block.mm-block-links .mm-block-text  { order: 1; }
  .mm-block.mm-block-links .mm-block-media { order: 2; }
}

/* Reiter, die es im echten Werkzeug gab, in der Nachbildung aber nicht
   hinterlegt sind: sichtbar als Beleg, erkennbar nicht bedienbar. */
.wz-art[disabled] { opacity: .38; cursor: not-allowed; }
.wz-art[disabled]:hover { background: none; }
