/* Developer-Bereich /developer/ (Demos aus unseren Spielen) – baut auf recht.css auf, 20.11.2026 */
body.dev main.wrap { max-width: 1040px; }
.kopf { margin-bottom: 36px; }
.kopf .ueber { font-family: "Caelum Zeichen", ui-monospace, "Cascadia Code", Consolas, monospace; color: color-mix(in srgb, var(--sky) 70%, #fff); font-size: 14px; letter-spacing: .04em; margin: 0 0 6px; }
.kopf p:last-child { color: var(--text-soft); font-size: 17px; max-width: 44em; }

/* Umschalter Firma ⇄ Developer (gleich wie in index.html) */
.dev-schalter { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: 14px; }
.dev-schalter:hover { text-decoration: none; color: var(--text); }
.dev-schalter .spur { width: 34px; height: 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); position: relative; transition: background .25s, border-color .25s; flex: none; }
.dev-schalter .spur i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .25s, background .25s; }
.dev-schalter.an .spur { background: color-mix(in srgb, var(--sky) 35%, var(--surface)); border-color: var(--sky); }
.dev-schalter.an .spur i { transform: translateX(14px); background: var(--sky); }
.dev-schalter b { font-weight: 500; font-family: "Caelum Zeichen", ui-monospace, "Cascadia Code", Consolas, monospace; }
.dev-schalter:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; border-radius: 6px; }

/* Karten */
.demos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.demo .bild { aspect-ratio: 16 / 9; position: relative; background: var(--bg-deep); overflow: hidden; }
.demo .bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo .bild canvas { width: 100%; height: 100%; display: block; }
.demo .inhalt { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.demo h2 { margin: 0; font-size: 20px; }
.demo h2 small { color: var(--muted); font-weight: 400; font-size: 15px; margin-left: 6px; }
.demo p { margin: 0; }
.demo .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.demo .tags span { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.demo .tags span.status { color: var(--text-soft); border-color: currentColor; }
.demo .knopf { margin-top: auto; padding-top: 10px; }
.btn { display: inline-block; background: var(--accent); color: #1F1E1D; font-weight: 600; border-radius: 10px; padding: 10px 18px; font-size: 15px; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.aus { background: var(--bg); color: var(--faint); border: 1px dashed var(--line); cursor: default; filter: none; }
.leer { color: var(--muted); }

.wie { margin-top: 56px; }
.wie ol { max-width: 46em; }

footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; max-width: 1040px; }
footer a { color: var(--muted); }

/* Spielseite */
body.spiel { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
body.spiel nav { align-items: center; }
body.spiel nav button { background: var(--surface); color: var(--text-soft); border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.buehne { flex: 1; position: relative; padding: 0; background: #000; min-height: 0; }
.buehne canvas { width: 100%; height: 100%; display: block; }
.laden { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; background: var(--bg); text-align: center; padding: 24px; }
.laden[hidden] { display: none; }
.laden .balken { width: min(320px, 70vw); height: 6px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.laden .balken i { display: block; height: 100%; width: 0; background: var(--sky); transition: width .2s; }
.laden p { color: var(--text-soft); max-width: 32em; }

@media (max-width: 600px) {
  .demos { grid-template-columns: 1fr; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .dev-schalter .spur, .dev-schalter .spur i { transition: none; } }
.demos > .leer { min-height: 560px; }   /* 28.11.2026: Platz der Karte freihalten (CLS 0,24–0,31 → 0) */
