/* Themes über Custom Properties: dunkel (Standard), hell, papier. */ :root { --bg: #12161c; --panel: #181e27; --karte: #202834; --rand: #2d3746; --text: #dbe2ec; --dim: #8d99aa; --akzent: #4f9cf7; --gruen: #43c17f; --gelb: #e6c04a; --rot: #e36b6b; --lese-bg: #14181f; --lese-text: #c9d1dc; --lese-dim: #98a3b3; --lese-rand: #2a3340; --code-bg: #0e1218; --code-fg: #d8dee9; --c-kw: #c792ea; --c-str: #a5d6a7; --c-com: #7b8794; --c-num: #f6c177; --c-fn: #82aaff; --c-type: #ffcb6b; } :root[data-theme="light"] { --bg: #f4f6f9; --panel: #ffffff; --karte: #eef1f5; --rand: #d5dbe3; --text: #1d2531; --dim: #5f6b7c; --akzent: #1b6fd6; --gruen: #1f8a57; --gelb: #9a7a12; --rot: #c43d3d; --lese-bg: #ffffff; --lese-text: #2b3440; --lese-dim: #5c6674; --lese-rand: #dfe4ea; --code-bg: #f1f3f6; --code-fg: #1f2933; --c-kw: #7c3aed; --c-str: #1a7f37; --c-com: #6b7280; --c-num: #b45309; --c-fn: #1d4ed8; --c-type: #0e7490; } :root[data-theme="sepia"] { --bg: #efe6d2; --panel: #f8f1de; --karte: #eee3c8; --rand: #d8caa6; --text: #43392a; --dim: #82745a; --akzent: #7a5b2c; --gruen: #4f7a42; --gelb: #8f6b14; --rot: #a6442e; --lese-bg: #f6efdd; --lese-text: #3f3527; --lese-dim: #6f6249; --lese-rand: #d9cba8; --code-bg: #ece2c7; --code-fg: #3b3224; --c-kw: #7a3e9d; --c-str: #2f6b2f; --c-com: #8a7c62; --c-num: #9a5b12; --c-fn: #2b5aa6; --c-type: #1c6f74; } * { box-sizing: border-box; } html, body, #app { margin: 0; height: 100%; } body { background: var(--bg); color: var(--text); font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; } button, a.knopf { background: var(--akzent); color: #fff; border: 0; border-radius: 6px; padding: 6px 14px; cursor: pointer; font: inherit; } button.sekundaer, a.knopf.sekundaer { background: var(--karte); color: var(--text); border: 1px solid var(--rand); } button.rot { background: var(--rot); } button.klein, a.knopf.klein { padding: 3px 9px; font-size: 12px; } button:disabled { opacity: 0.45; cursor: default; } input, select { background: var(--karte); color: var(--text); border: 1px solid var(--rand); border-radius: 6px; padding: 6px 10px; font: inherit; } a { color: var(--akzent); } a.knopf { display: inline-block; text-decoration: none; line-height: normal; } .app { height: 100%; display: flex; } .sidebar { width: 230px; min-width: 230px; background: var(--panel); border-right: 1px solid var(--rand); display: flex; flex-direction: column; } .sidebar .topics { flex: 1; overflow-y: auto; padding: 8px; } .topic-eintrag { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; cursor: pointer; color: var(--dim); } .topic-eintrag.aktiv { background: var(--karte); color: var(--text); } .topic-eintrag .punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; } .topic-eintrag .punkt.fertig { background: var(--gruen); } .topic-eintrag .punkt.laeuft { background: var(--akzent); animation: puls 1.2s infinite; } .topic-eintrag .punkt.pausiert { background: var(--gelb); } .topic-eintrag .punkt.fehler { background: var(--rot); } @keyframes puls { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } } .sidebar .neu { padding: 10px; border-top: 1px solid var(--rand); display: grid; gap: 6px; } /* Eingeklappte Themenliste (Tab „Buch“ und schmale Bildschirme): ☰ öffnet sie als Overlay */ .schliessen { display: none; } .sidebar.offen { display: flex; position: fixed; inset: 0 auto 0 0; z-index: 25; box-shadow: 0 0 30px rgba(0,0,0,0.4); } .sidebar.offen .schliessen { display: inline-block; margin: 10px 10px 4px; align-self: flex-start; } .burger { display: none; } .app.tab-buch .burger { display: inline-block; } .app.tab-buch .sidebar:not(.offen) { display: none; } .backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 24; } .haupt { flex: 1; display: flex; flex-direction: column; min-width: 0; } .topbar { display: flex; gap: 10px; align-items: center; padding: 8px 16px; background: var(--panel); border-bottom: 1px solid var(--rand); flex-wrap: wrap; } .topbar .titel { font-weight: 600; margin-right: 6px; } .tabs { display: flex; gap: 4px; } .tabs button { background: transparent; color: var(--dim); } .tabs button.aktiv { background: var(--karte); color: var(--text); } .spacer { flex: 1; } .badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 11.5px; background: var(--karte); color: var(--dim); } .badge.gruen { color: var(--gruen); } .badge.gelb { color: var(--gelb); } .badge.rot { color: var(--rot); } .badge.blau { color: var(--akzent); } .inhalt { flex: 1; overflow: hidden; display: flex; flex-direction: column; min-height: 0; } .fehler { margin: 10px 16px; padding: 8px 12px; border: 1px solid var(--rot); border-radius: 6px; color: var(--rot); cursor: pointer; } /* Lauf-Ansicht */ .lauf { padding: 18px 22px; overflow-y: auto; } .lauf .aktionen { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; } .lauf .grund { margin: 8px 0 14px; padding: 8px 12px; background: var(--karte); border-left: 3px solid var(--gelb); border-radius: 4px; } .deutung { max-width: 760px; margin: 0 0 16px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--rand); border-radius: 8px; } .deutung .titel { font-weight: 600; font-size: 15px; } .deutung .sub { color: var(--dim); font-size: 12.5px; } .deutung p { margin: 8px 0; } .deutung .fakten { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--dim); } .deutung .fakten b { font-weight: 600; color: var(--text); margin-right: 4px; } .stufen { display: grid; gap: 6px; max-width: 760px; } .stufe { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 10px; align-items: center; padding: 9px 12px; background: var(--panel); border: 1px solid var(--rand); border-radius: 8px; } .stufe .kreis { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--rand); display: grid; place-items: center; font-size: 11px; } .stufe.fertig .kreis { background: var(--gruen); border-color: var(--gruen); color: #fff; } .stufe.laeuft .kreis { border-color: var(--akzent); border-top-color: transparent; animation: dreh 0.9s linear infinite; } .stufe.pausiert .kreis { border-color: var(--gelb); } .stufe.fehler .kreis { background: var(--rot); border-color: var(--rot); } @keyframes dreh { to { transform: rotate(360deg); } } .stufe .name { font-weight: 600; } .stufe .sub { color: var(--dim); font-size: 12px; } .stufe .balken { height: 4px; background: var(--karte); border-radius: 2px; margin-top: 5px; overflow: hidden; } .stufe .balken i { display: block; height: 100%; background: var(--akzent); } .stufe.fertig .balken i { background: var(--gruen); } /* Agenten: Zeile aufklappen zeigt den Abschlussbericht */ .agenten { max-width: 760px; margin-top: 18px; } .agenten h3, .ereignisse summary { margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; } .agent { background: var(--panel); border: 1px solid var(--rand); border-radius: 8px; margin-bottom: 6px; } .agent.laeuft { border-color: var(--akzent); } .agent.fehler { border-color: var(--rot); } .agent summary { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 12px; cursor: pointer; list-style: none; } .agent summary::-webkit-details-marker { display: none; } .agent summary .name { font-weight: 600; flex: 1; min-width: 160px; } .agent summary .sub { color: var(--dim); font-size: 12px; white-space: nowrap; } .agent .bericht { padding: 6px 12px 12px; border-top: 1px solid var(--rand); } .agent .bericht.sub { color: var(--dim); font-size: 12.5px; } .ereignisse { max-width: 760px; margin-top: 18px; } .ereignisse summary { cursor: pointer; } .ereignis { display: grid; grid-template-columns: 64px 130px 1fr; gap: 10px; padding: 2px 0; font: 12px/1.5 "SF Mono", Consolas, Menlo, monospace; border-bottom: 1px solid var(--rand); } .ereignis .zeit, .ereignis .wer { color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ereignis .text { overflow-wrap: anywhere; } .ereignis.fehler .text { color: var(--rot); } .ereignis.start .text, .ereignis.ende .text { color: var(--akzent); } /* Gerendertes Markdown außerhalb des Buchtexts (Berichte, Prüfung, Quellen, Gliederung) */ .md { font: 13px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; } .md h1, .md h2, .md h3, .md h4 { font-size: 13.5px; margin: 12px 0 4px; line-height: 1.4; } .md p, .md ul, .md ol { margin: 0 0 0.7em; } .md ul, .md ol { padding-left: 1.4em; } .md li { margin: 0.15em 0; } .md code { font-family: "SF Mono", Consolas, Menlo, monospace; font-size: 0.9em; background: var(--code-bg); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; } .md pre { background: var(--code-bg); color: var(--code-fg); padding: 10px 12px; border-radius: 6px; overflow-x: auto; font-size: 0.9em; line-height: 1.5; } .md pre code { background: none; padding: 0; } .md table { border-collapse: collapse; margin: 0 0 0.8em; display: block; max-width: 100%; overflow-x: auto; } .md th, .md td { border: 1px solid var(--rand); padding: 3px 8px; text-align: left; } /* Buch-Ansicht */ .guide { flex: 1; display: flex; min-height: 0; } .guide-nav { width: 270px; min-width: 240px; overflow-y: auto; padding: 14px 10px; border-right: 1px solid var(--rand); background: var(--panel); font-size: 13px; } .guide-nav .werkzeuge { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; } .guide-nav .meta { color: var(--dim); font-size: 12px; margin-bottom: 10px; } .guide-nav a.kap { display: flex; align-items: baseline; gap: 6px; padding: 6px 8px; border-radius: 6px; cursor: pointer; color: var(--text); text-decoration: none; font-weight: 600; margin-top: 6px; } .guide-nav a.kap .pfeil { color: var(--dim); font-size: 10px; width: 10px; flex: none; } .guide-nav a.kap .t { flex: 1; } .guide-nav a.abs { display: flex; justify-content: space-between; gap: 6px; padding: 3px 8px 3px 24px; border-radius: 6px; cursor: pointer; color: var(--dim); text-decoration: none; } .guide-nav a.aktiv { background: var(--karte); color: var(--text); } .guide-nav .zeit { color: var(--dim); font-size: 11px; white-space: nowrap; } .guide-nav .fortschritt { height: 4px; background: var(--karte); border-radius: 2px; margin: 8px 0 4px; overflow: hidden; } .guide-nav .fortschritt i { display: block; height: 100%; background: var(--gruen); } .guide-nav .leer { color: var(--dim); padding: 8px; } .guide-nav .teil { margin: 14px 0 2px; font: 600 11px system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); } .lese { flex: 1; overflow-y: auto; background: var(--lese-bg); color: var(--lese-text); } .buch { max-width: 68ch; margin: 0 auto; padding: 36px 28px 120px; font-family: "Charter", "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 1.125rem; line-height: 1.65; hyphens: auto; hyphenate-limit-chars: 8 4 4; } .buch h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 10px; } .buch .untertitel { color: var(--lese-text); font-style: italic; font-size: 1.1rem; margin-bottom: 6px; } .buch .meta { color: var(--lese-dim); margin-bottom: 26px; font-size: 0.95rem; } .buch .vorwort { margin-top: 8px; } .buch .vorwort h2 { font-size: 1.3rem; margin-bottom: 14px; } .buch .kapitel { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--lese-rand); } .buch .kapitel:first-of-type { border-top: 0; margin-top: 8px; } .buch h2 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 6px; } .buch h2 .badge { font: 11.5px system-ui, sans-serif; vertical-align: middle; margin-left: 10px; } .buch .kap-meta { color: var(--lese-dim); font-size: 0.85rem; margin-bottom: 14px; } .buch .kap-intro { color: var(--lese-text); margin-bottom: 24px; } .buch h3 { font-size: 1.22rem; margin: 34px 0 4px; line-height: 1.3; scroll-margin-top: 16px; } .buch p { margin: 0 0 1em; } .buch ul, .buch ol { padding-left: 1.4em; margin: 0 0 1em; } .buch li { margin: 0.25em 0; } .buch code { font-family: "SF Mono", Consolas, Menlo, monospace; font-size: 0.86em; background: var(--code-bg); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; } .buch p, .buch li { overflow-wrap: anywhere; } .buch pre { background: var(--code-bg); color: var(--code-fg); padding: 12px 14px; border-radius: 8px; overflow-x: auto; font-size: 0.86em; line-height: 1.5; } .buch pre code { background: none; padding: 0; } .buch table { border-collapse: collapse; margin: 0 0 1em; font-size: 0.92em; display: block; max-width: 100%; overflow-x: auto; } .buch th, .buch td { border: 1px solid var(--lese-rand); padding: 4px 9px; text-align: left; } .buch .hinweis { background: var(--karte); border-radius: 6px; padding: 8px 12px; font-size: 0.85rem; color: var(--dim); font-family: system-ui, sans-serif; margin: 0 0 14px; } .buch .teil-titel { font: 600 0.78rem system-ui, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lese-dim); margin: 40px 0 6px; } /* Prüfung je Kapitel (Autoren- und Prüfbericht), eingeklappt */ .buch .pruefung { margin-top: 28px; border: 1px solid var(--lese-rand); border-radius: 8px; font-family: system-ui, sans-serif; } .buch .pruefung summary { padding: 8px 12px; cursor: pointer; color: var(--lese-dim); font-size: 0.85rem; font-weight: 600; } .buch .pruefung h4 { margin: 10px 12px 4px; font-size: 0.78rem; color: var(--lese-dim); text-transform: uppercase; letter-spacing: 0.06em; } .buch .pruefung .md { padding: 0 12px 10px; } .buch .ende { margin-top: 60px; border-top: 1px solid var(--lese-rand); padding-top: 16px; font-family: system-ui, sans-serif; } .buch .ende details { margin-bottom: 8px; } .buch .ende summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; padding: 6px 0; } .buch .ende .md { padding: 4px 0 8px; } .mobil-leiste { display: none; } /* Lesemodus (Overlay, Bildschirm für Bildschirm) */ .lesemodus { position: fixed; inset: 0; z-index: 40; background: var(--lese-bg); color: var(--lese-text); display: flex; flex-direction: column; } .lm-kopf { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--lese-rand); font: 12.5px system-ui, sans-serif; color: var(--lese-dim); } .lm-kopf .balken { flex: 1; height: 4px; background: var(--karte); border-radius: 2px; overflow: hidden; } .lm-kopf .balken i { display: block; height: 100%; background: var(--gruen); } .lm-kopf button { background: transparent; color: var(--lese-dim); font-size: 18px; padding: 2px 8px; } .lm-buehne { flex: 1; overflow-y: auto; } .lm-screen { max-width: 66ch; margin: 0 auto; padding: 40px 28px 80px; font-family: "Charter", "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 1.15rem; line-height: 1.65; hyphens: auto; hyphenate-limit-chars: 8 4 4; } .lm-label { font: 600 11.5px system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lese-dim); margin-bottom: 8px; } .lm-screen h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 12px; } .lm-screen h2 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 6px; } .lm-screen .intro { color: var(--lese-text); } .lm-screen .stats { color: var(--lese-dim); font: 13px system-ui, sans-serif; margin-top: 14px; } .lm-screen p { margin: 0 0 1em; } .lm-screen code { font-family: "SF Mono", Consolas, monospace; font-size: 0.86em; background: var(--code-bg); padding: 1px 5px; border-radius: 4px; } .lm-screen pre { background: var(--code-bg); color: var(--code-fg); padding: 12px 14px; border-radius: 8px; overflow-x: auto; font-size: 0.86em; } .lm-screen pre code { background: none; padding: 0; } .lm-screen ul, .lm-screen ol { padding-left: 1.4em; } .lm-screen table { border-collapse: collapse; margin: 0 0 1em; font-size: 0.92em; display: block; max-width: 100%; overflow-x: auto; } .lm-screen th, .lm-screen td { border: 1px solid var(--lese-rand); padding: 4px 9px; text-align: left; } .lm-screen.ende { text-align: center; padding-top: 120px; } .lm-fuss { display: flex; justify-content: space-between; padding: 10px 18px; border-top: 1px solid var(--lese-rand); font-family: system-ui, sans-serif; } .lm-fuss button { background: var(--karte); color: var(--text); border: 1px solid var(--rand); } .lm-fuss button.weiter { background: var(--akzent); color: #fff; border: 0; } kbd { font: 11px system-ui, sans-serif; border: 1px solid var(--rand); border-radius: 4px; padding: 0 5px; margin-left: 6px; color: var(--dim); } @media (max-width: 800px) { .topbar { gap: 8px; padding: 8px 10px; flex-wrap: nowrap; } .topbar .badge { display: none; } .topbar .titel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } .mobil-leiste { display: flex; gap: 8px; padding: 10px 16px 0; align-items: center; } .guide-nav.offen .schliessen { display: inline-block; margin: 10px 10px 4px; } .lese { overflow-x: hidden; } .sidebar:not(.offen) { display: none; } .burger { display: inline-block; } .guide-nav { display: none; } .guide-nav.offen { display: block; position: fixed; inset: 0 auto 0 0; z-index: 25; width: 82vw; } .buch { padding: 22px 16px 100px; font-size: 1.02rem; } .lm-screen { padding: 24px 16px 60px; font-size: 1.05rem; } .lm-kopf, .lm-fuss { padding: 8px 12px; } .stufe { grid-template-columns: 26px 1fr; } .stufe .rechts { grid-column: 2; } .ereignis { grid-template-columns: 64px 1fr; } .ereignis .text { grid-column: 1 / -1; } } /* Code-Farben je Theme (statt einer festen highlight.js-Vorlage) */ pre.hljs, .hljs { background: var(--code-bg); color: var(--code-fg); } .hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-meta { color: var(--c-kw); } .hljs-string, .hljs-regexp, .hljs-addition { color: var(--c-str); } .hljs-comment, .hljs-quote { color: var(--c-com); font-style: italic; } .hljs-number, .hljs-symbol, .hljs-bullet { color: var(--c-num); } .hljs-title, .hljs-function, .hljs-section, .hljs-name { color: var(--c-fn); } .hljs-built_in, .hljs-type, .hljs-class, .hljs-attr, .hljs-variable { color: var(--c-type); }