/* Copyright © 2026 Caelum GmbH, Kenny Looser. Alle Rechte vorbehalten.
   Schaubilder der Bereiche im Stil des Hydra-Schaubilds der Startseite (Caelum im Kreis, Knoten mit farbigem Rand, laufende Linien)
   + Schritt-Spieler mit Terminal (Labor) + Motion im Browser (Sound Design).
   KI-Beitrag (Claude, GB-7), 22.11.2026 – Freigabe durch Kenny Looser ausstehend (GB-8). */
:root {
  --c-pandora: #D97757; --c-vision: #C44FD6; --c-viewer: #F2B05A; --c-goose: #6BAF73; --info: #7FA3D6;
  --c-motion: #E8C547; --ok: #7BC47F;
}
.modul { margin: 0 0 56px; }
.modul > h2 { font-size: 22px; margin: 8px 0 6px; }
.modul > p.lead { color: var(--text-soft); margin: 0 0 18px; max-width: 46em; }

/* ---- Schaubild (wie .hydra auf der Startseite) ---- */
.sb { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.sb svg { width: 100%; height: auto; display: block; }
.sb svg.hoch { display: none; }
@media (max-width: 560px) { .sb svg.breit { display: none; } .sb svg.hoch { display: block; } .sb { padding: 10px; } }
.sb text { font-family: "Caelum Zeichen", Inter, "Segoe UI", system-ui, sans-serif; text-anchor: middle; }
.sb .lbl { fill: var(--muted); font-size: 11px; letter-spacing: .08em; text-anchor: start; }
.sb .lbl.r { text-anchor: end; }
.sb .edge { stroke: var(--line); stroke-width: 2; transition: stroke .3s, opacity .3s; }
.sb .flow { stroke: var(--sky); stroke-width: 2.4; stroke-dasharray: 4 12; opacity: 0; transition: opacity .3s; }
.sb .flow.an { opacity: .95; animation: sbflow 1.2s linear infinite; }
.sb .flow.an.rueck { animation-direction: reverse; }
@keyframes sbflow { to { stroke-dashoffset: -32; } }
.sb .node rect { fill: var(--bg); stroke: var(--c, var(--line)); stroke-width: 1.5; transition: fill .3s, stroke-width .3s; }
.sb .node text { fill: var(--text-soft); font-size: 14px; font-weight: 500; }
.sb .node .sub { fill: var(--muted); font-size: 11px; font-weight: 400; }
.sb .node.an rect { fill: color-mix(in srgb, var(--c, var(--sky)) 18%, var(--bg)); stroke-width: 3; }
.sb .node.an text { fill: var(--text); }
.sb .node.app rect { fill: var(--bg-deep); stroke-width: 2; }
.sb .node.app text { font-weight: 600; }
.sb .kreis circle { fill: var(--bg-deep); stroke: var(--sky); stroke-width: 2; }
.sb .kreis .ring { fill: none; stroke: var(--sky); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.sb .kreis.an .ring { animation: sbring 1.6s ease-out infinite; }
@keyframes sbring { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }
.sb .kreis text { fill: var(--text); font-size: 16px; font-weight: 600; }
.sb .kreis .sub { fill: var(--muted); font-size: 11px; font-weight: 400; }

/* ---- Schritt-Spieler + Terminal ---- */
.spieler { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
@media (max-width: 820px) { .spieler { grid-template-columns: 1fr; } }
.schritte { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 1 / -1; align-items: center; }
.schritte button { all: unset; cursor: pointer; font-size: 13px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-soft); background: var(--bg); }
.schritte button b { color: var(--muted); font-weight: 600; margin-right: 6px; }
.schritte button:hover { border-color: var(--sky); }
.schritte button[aria-current="step"] { background: color-mix(in srgb, var(--sky) 24%, var(--bg)); border-color: var(--sky); color: var(--text); }
.schritte button[aria-current="step"] b { color: var(--sky); }
.schritte button:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.schritte .play { margin-left: auto; border-color: var(--sky); color: var(--text); }
.erklaer { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.erklaer h3 { margin: 0 0 6px; font-size: 17px; }
.erklaer p { margin: 0; color: var(--text-soft); }
.term { background: #141413; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-height: 168px; display: flex; flex-direction: column; }
.term .leiste { display: flex; gap: 6px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.term .leiste i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: inline-block; }
.term .leiste span { margin-left: 8px; font-family: "Caelum Zeichen", ui-monospace, "Cascadia Code", Consolas, monospace; }
.term pre { margin: 0; padding: 12px 14px; font: 13px/1.55 "Caelum Zeichen", ui-monospace, "Cascadia Code", Consolas, monospace; color: #C9C6BF; white-space: pre-wrap; overflow-wrap: anywhere; flex: 1; }
.term .p { color: var(--sky); }
.term .k { color: #8A8882; }   /* 23.11.2026: 4,4 → 5,3 */
.term .ok { color: var(--ok); }
.term .w { color: #E8C547; }
.term .cursor { display: inline-block; width: .55em; height: 1.1em; vertical-align: -0.15em; background: var(--sky); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* UAC-Karte (stilisiert, Caelum-Farben) */
.uac { margin: 0 14px 14px; border: 1px solid #E8C547; border-radius: 12px; background: color-mix(in srgb, #E8C547 10%, #141413); padding: 12px 14px; display: none; gap: 12px; align-items: center; font-size: 14px; }
.uac.an { display: flex; animation: uacein .35s ease-out; }
@keyframes uacein { from { opacity: 0; transform: translateY(6px); } }
.uac svg { width: 34px; height: 38px; flex: none; }
.uac .t b { display: block; color: var(--text); }
.uac .t small { color: var(--muted); }
.uac .k { margin-left: auto; display: flex; gap: 6px; }
.uac .k span { white-space: nowrap; padding: 5px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--text-soft); font-size: 13px; }
.uac .k span.ja { background: #E8C547; color: #1F1E1D; border-color: #E8C547; font-weight: 600; }
.uac.ok .k span.ja::after { content: " ✓"; }

/* ---- Motion im Browser (Sound Design) ---- */
.motion { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 820px) { .motion { grid-template-columns: 1fr; } }
.motion .pad { position: relative; aspect-ratio: 1 / 1; max-height: 460px; width: 100%; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 14px; touch-action: none; cursor: crosshair; overflow: hidden; }
.motion .pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.motion .pad .hinweis { position: absolute; inset: auto 0 12px 0; text-align: center; color: var(--muted); font-size: 13px; pointer-events: none; }
.motion .seite { display: flex; flex-direction: column; gap: 12px; }
.motion .karte { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.motion .karte h3 { margin: 0 0 8px; font-size: 15px; color: var(--text); }
.motion .knoepfe { display: flex; flex-wrap: wrap; gap: 6px; }
.motion button { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text-soft); font-size: 14px; }
.motion button:hover { border-color: var(--c-motion); }
.motion button[aria-pressed="true"] { background: color-mix(in srgb, var(--c-motion) 22%, var(--bg)); border-color: var(--c-motion); color: var(--text); }
.motion button.gross { background: var(--c-motion); color: #1F1E1D; font-weight: 600; border-color: var(--c-motion); }
.motion button:focus-visible { outline: 2px solid var(--c-motion); outline-offset: 2px; }
.motion .werte { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 10px; align-items: center; font-size: 13px; color: var(--text-soft); }
.motion .werte .balken { height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.motion .werte .balken i { display: block; height: 100%; width: 0; background: var(--c-motion); }
.motion .werte code { font: 12px "Caelum Zeichen", ui-monospace, Consolas, monospace; color: var(--muted); min-width: 4.5em; text-align: right; }
.motion .midi { font: 12px/1.5 "Caelum Zeichen", ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--muted); background: #141413; border-radius: 10px; padding: 8px 10px; min-height: 5.6em; white-space: pre; overflow: hidden; }
.motion .klein { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
/* Ansichten Synth · Datei · Live-Musik (23.11.2026) */
.motion-block { touch-action: pan-y; }
.motion-block [hidden] { display: none !important; }
.motion-block .reiter { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 12px; }
.motion-block .reiter button { all: unset; cursor: pointer; padding: 7px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text-soft); font-size: 14px; }
.motion-block .reiter button[aria-selected="true"] { background: color-mix(in srgb, var(--c-motion) 22%, var(--bg)); border-color: var(--c-motion); color: var(--text); }
.motion-block .reiter button:focus-visible { outline: 2px solid var(--c-motion); outline-offset: 2px; }
.motion-block .reiter .wisch { color: var(--muted); font-size: 12px; margin-left: 6px; }
@media (hover: hover) and (pointer: fine) { .motion-block .reiter .wisch { display: none; } }
.motion button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.motion .datei-name { overflow-wrap: anywhere; }
.motion details.erkl { margin-top: 10px; font-size: 13px; color: var(--text-soft); line-height: 1.5; }
.motion details.erkl summary { cursor: pointer; color: var(--text); }
.motion details.erkl p { margin: 6px 0 0; }

@media (prefers-reduced-motion: reduce) {
  .sb .flow.an, .sb .kreis.an .ring, .term .cursor { animation: none; }
}

/* Labor: Themen per Klick ausfahren (Wunsch Kenny 23.11.2026, KI-Beitrag Claude GB-7) */
.thema { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 16px 18px; margin: 0 0 16px; }
.thema-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.thema-kopf h2 { margin: 0 0 4px; font-size: 20px; }
.thema-kopf .lead { margin: 0; color: var(--text-soft); max-width: 46em; }
.thema-auf { all: unset; box-sizing: border-box; cursor: pointer; flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border-radius: 10px; border: 1px solid var(--c-labor, #7BC47F); color: var(--text); font-size: 14px; white-space: nowrap; }
.thema-auf:hover, .thema.offen .thema-auf { background: color-mix(in srgb, var(--c-labor, #7BC47F) 18%, transparent); }
.thema-auf:focus-visible { outline: 2px solid var(--c-labor, #7BC47F); outline-offset: 2px; }
.thema-pfeil { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s; }
.thema.offen .thema-pfeil { transform: rotate(-135deg) translateY(-2px); }
.thema-huelle { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .4s ease, opacity .3s ease; }
.thema.offen .thema-huelle { grid-template-rows: 1fr; opacity: 1; }
.thema-inhalt { overflow: hidden; min-height: 0; }
.thema.offen .thema-inhalt { padding-top: 16px; }
.thema .sb { background: var(--bg); }
@media (max-width: 560px) { .thema { padding: 14px 12px; } .thema-kopf { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .thema-huelle, .thema-pfeil { transition: none; } }
/* Begriffe (Labor, 29.11.2026): Liste + Möglichkeiten/Grenzen */
.begriffe { display: grid; grid-template-columns: minmax(10em, 14em) 1fr; gap: 8px 18px; margin: 0; }
.begriffe dt { font-weight: 600; color: var(--text); }
.begriffe dd { margin: 0; color: var(--text-soft); }
.begriffe-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.begriffe-zwei h3 { margin: 0 0 6px; font-size: 16px; }
.begriffe-zwei ul { margin: 0; padding-left: 1.2em; color: var(--text-soft); }
.begriffe-zwei li { margin: 0 0 4px; }
@media (max-width: 560px) { .begriffe, .begriffe-zwei { grid-template-columns: 1fr; } .begriffe dd { margin-bottom: 8px; } }
/* Schreibsprache (Labor, 29.11.2026): Befehlsgruppen */
.begriffe-gruppe { margin: 18px 0 8px; font-size: 16px; }
.begriffe-gruppe:first-child { margin-top: 0; }
.begriffe.befehle { grid-template-columns: minmax(12em, 20em) 1fr; }
.begriffe.befehle code { font: 13px/1.5 "Caelum Zeichen", ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--sky);
  background: #141413; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
@media (max-width: 560px) { .begriffe.befehle { grid-template-columns: 1fr; } .begriffe.befehle dd { margin-bottom: 8px; } }
/* Anleitung zum Kopieren + Tagebuch (Labor #basics, 29.11.2026) */
.anleitung-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 14px; }
.anleitung-hinweis { margin: 0; color: var(--text-soft); font-size: 14px; }
.anleitung { margin: 0; padding-left: 1.6em; display: grid; gap: 16px; }
.anleitung-schritt h3 { margin: 0 0 4px; font-size: 16px; }
.anleitung-schritt p { margin: 0 0 8px; color: var(--text-soft); }
.befehl-zeile { display: flex; align-items: stretch; gap: 8px; margin: 0 0 6px; }
.befehl { flex: 1; min-width: 0; margin: 0; padding: 8px 10px; background: #141413; border: 1px solid var(--line); border-radius: 6px;
  font: 13px/1.5 "Caelum Zeichen", ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--sky); white-space: pre-wrap; overflow-wrap: anywhere; }
.befehl::before { color: var(--text-soft); margin-right: .6em; user-select: none; }
.befehl.ps::before { content: "PS>"; }
.befehl.sh::before { content: "$"; color: var(--ok); }
.befehl.deb::before { content: "#"; color: var(--ok); }
.kopier, .kopier-alle { font: inherit; font-size: 13px; cursor: pointer; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--text); padding: 6px 12px; }
.kopier-alle { border-color: var(--c-labor, #7BC47F); font-weight: 600; }
.kopier:hover, .kopier-alle:hover { background: color-mix(in srgb, var(--c-labor, #7BC47F) 18%, transparent); }
.kopier:focus-visible, .kopier-alle:focus-visible { outline: 2px solid var(--c-labor, #7BC47F); outline-offset: 2px; }
.kopier.ok, .kopier-alle.ok { border-color: var(--ok); color: var(--ok); }
.kopier.fehl, .kopier-alle.fehl { border-color: var(--warn, #E0A84F); }
.ablage-notweg { position: fixed; left: -9999px; top: 0; opacity: 0; }
@media (max-width: 560px) { .befehl-zeile { flex-direction: column; } .kopier { align-self: flex-start; } }
/* Bildschirmfoto in einer Anleitung („So sieht Xfce aus“, Claude 03.12.2026) */
.anleitung-bild { margin: 0 0 16px; }
.anleitung-bild img { display: block; width: 100%; max-width: 760px; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.anleitung-bild figcaption { margin-top: 6px; color: var(--text-soft); font-size: 14px; }
/* Adressen und Ports „so bei uns“ (Claude 04.12.2026): Name = Link (KasmVNC im Tab, xrdp als .rdp-Datei) */
.port-tafel { margin: 16px 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.port-tafel h4 { margin: 0 0 4px; font-size: 16px; }
.port-tafel p { margin: 0 0 10px; color: var(--text-soft); font-size: 14px; }
.port-tafel table { width: 100%; border-collapse: collapse; font-size: 14px; }
.port-tafel th { text-align: left; font-weight: 600; color: var(--text-soft); padding: 4px 10px 6px 0; border-bottom: 1px solid var(--line); }
.port-tafel td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-soft); }
.port-tafel td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.port-tafel a { color: var(--sky); }
.port-tafel code { font: 13px/1.5 "Caelum Zeichen", ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--sky); white-space: nowrap; }
@media (max-width: 560px) {
  .port-tafel thead { display: none; }
  .port-tafel tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .port-tafel td { display: block; padding: 1px 0; border: 0; }
}
