/* Fakten als Code – 20 Fassungen (Dirk 02.11.), Basis Fakten-20 / 3. Klassen cd-. Schriften: Mono fuer Code (--tc-fs-text), sonst Startseite. */
/* Anordnung im Anfangs-Abschnitt */
.pr .prm.rv section.cd-sec[data-lay="side"] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); column-gap: clamp(30px, 5vw, 90px); align-items: start; }
.cd-sec[data-lay="side"] > .eyebrow, .cd-sec[data-lay="side"] > .ri-h, .cd-sec[data-lay="side"] > .ri-cols { grid-column: 1; }
.cd-sec[data-lay="side"] .ri-cols { grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 34rem; }
.cd-sec[data-lay="side"] .cd-wrap { grid-column: 2; grid-row: 1 / 5; margin: 0; align-self: center; }
.cd-sec[data-lay="under"] .cd-wrap { max-width: 860px; }
.pr .prm.rv section.cd-sec[data-lay="split"] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); column-gap: clamp(30px, 5vw, 90px); }
.cd-sec[data-lay="split"] > .eyebrow, .cd-sec[data-lay="split"] > .ri-h { grid-column: 1 / -1; }
.cd-sec[data-lay="split"] .ri-cols { grid-column: 1; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; }
.cd-sec[data-lay="split"] .cd-wrap { grid-column: 2; grid-row: 3; margin-top: clamp(30px, 3vw, 50px); }

/* Fenster */
@keyframes cd-in { from { opacity: 0; translate: -10px 0; } }
.cd { overflow: hidden; border-radius: 18px; background: #0b0f06; box-shadow: 0 40px 70px -40px rgba(11,15,6,.6); color: #f4f5f2; }
.cd-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: #161a12; }
.cd-bar > i { width: 11px; height: 11px; border-radius: 50%; background: rgba(244,245,242,.2); }
.cd-bar > span { margin-left: 12px; font: 500 var(--tc-fs-label)/1 var(--mono); letter-spacing: .04em; color: rgba(244,245,242,.55); }
.cd-pre { margin: 0; padding: 22px 26px 26px; font: 500 var(--tc-fs-text)/1.85 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.cd-pre > span { display: inline-block; animation: cd-in .5s var(--d) both; }
.cd s { text-decoration: none; color: #8fb3ff; } .cd u { text-decoration: none; color: #c5f74f; } .cd b { font: inherit; color: #ffb86b; } .cd em { font-style: normal; color: rgba(244,245,242,.45); } .cd q { quotes: none; color: rgba(244,245,242,.55); }
.cd-pre.num { counter-reset: ln; } .cd-pre.num > span { position: relative; padding-left: 38px; } .cd-pre.num > span::before { content: counter(ln); counter-increment: ln; position: absolute; left: 0; width: 22px; text-align: right; color: rgba(244,245,242,.28); }
/* 4 aktive Zeile */
.cd.hl .cd-pre > span:nth-child(5) { width: calc(100% + 52px); margin: 0 -26px; padding-left: 64px; padding-right: 26px; background: rgba(197,247,79,.1); box-shadow: inset 3px 0 #c5f74f; }
.cd.hl .cd-pre.num > span:nth-child(5)::before { left: 26px; }
/* 5 tippt sich */
@keyframes cd-type { from { clip-path: inset(0 100% 0 0); } } @keyframes cd-blink { 50% { opacity: 0; } }
.cd.typing .cd-pre > span { animation: cd-type .4s var(--d) steps(28) both; }
.cd.typing .cd-pre::after { content: ""; display: inline-block; width: 9px; height: 1.1em; margin-left: 4px; vertical-align: -3px; background: #c5f74f; animation: cd-blink 1s infinite; }
/* 6 hell */
.cd.light { background: #fff; color: #0b0f06; } .cd.light .cd-bar { background: #eef0ea; } .cd.light .cd-bar > i { background: rgba(11,15,6,.15); } .cd.light .cd-bar > span { color: rgba(11,15,6,.55); }
.cd.light s { color: #2f6ad0; } .cd.light u { color: #0b0f06; background: rgba(197,247,79,.55); } .cd.light b { color: #b45309; } .cd.light q, .cd.light em { color: rgba(11,15,6,.45); } .cd.light .cd-pre.num > span::before { color: rgba(11,15,6,.25); }
/* 7 lime */
.cd.lime { background: #c5f74f; color: #0b0f06; } .cd.lime .cd-bar { background: #b2e23e; } .cd.lime .cd-bar > i { background: rgba(11,15,6,.25); } .cd.lime .cd-bar > span { color: rgba(11,15,6,.6); }
.cd.lime s { color: #0b0f06; font-weight: 700; } .cd.lime u { color: #0b0f06; } .cd.lime b { color: #0b0f06; text-decoration: underline 2px; } .cd.lime q { color: rgba(11,15,6,.5); }
/* 8 Reiter */
.cd-tabs { display: flex; gap: 2px; margin-left: auto; } .cd-tabs b { padding: 7px 12px; border-radius: 8px 8px 0 0; font: 500 var(--tc-fs-label)/1 var(--mono) !important; color: rgba(244,245,242,.5) !important; cursor: pointer; }
.cd-tabs b.on { background: #0b0f06; color: #c5f74f !important; } .cd-tabbed .cd-bar > span { display: none; } .cd-tabbed .cd-bar { padding-bottom: 0; }
.cd-tabbed > .cd { display: none; } .cd-tabbed:not([data-on]) > .t1, .cd-tabbed[data-on="1"] > .t1, .cd-tabbed[data-on="2"] > .t2, .cd-tabbed[data-on="3"] > .t3 { display: block; }
.cd .sw { display: inline-block; width: 14px; height: 14px; margin-left: 6px; border-radius: 4px; background: var(--c); vertical-align: -2px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
/* 9 Terminal */
.cd.term .cd-pre { font-size: var(--tc-fs-klein); } .cd.term q { color: #8fb3ff; }
/* 10 Git */
.cd.git b { color: #c5f74f; } .cd.git em { color: #ffb86b; }
/* 11 Explorer / IDE */
.cd-ide-b { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.cd-tree { display: grid; align-content: start; gap: 8px; padding: 18px 16px; border-right: 1px solid rgba(244,245,242,.08); background: #10140c; font: 500 var(--tc-fs-klein)/1.4 var(--mono); }
.cd-tree small { font: 500 var(--tc-fs-mini) var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(244,245,242,.4); }
.cd-tree b { color: #f4f5f2 !important; } .cd-tree i { padding: 3px 0 3px 16px; font-style: normal; color: rgba(244,245,242,.6); } .cd-tree i.on { margin: 0 -16px; padding-left: 32px; background: rgba(197,247,79,.12); color: #c5f74f; }
.cd-status { display: flex; gap: 18px; padding: 8px 16px; background: #c5f74f; color: #0b0f06; font: 600 var(--tc-fs-mini)/1 var(--mono); letter-spacing: .06em; }
/* 12 Code + Vorschau */
.cd-pair { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr); gap: 20px; align-items: center; }
.cd-eq { font: 900 var(--tc-fs-akzent)/1 var(--display); font-style: normal; color: #0b0f06; }
.cd-render { padding: 22px 24px; border-radius: 18px; background: #fff; box-shadow: 0 30px 60px -40px rgba(11,15,6,.5); }
.cd-render > small, .cd-render p small { display: block; font: 500 var(--tc-fs-label)/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(11,15,6,.5); }
.cd-render p { margin: 0 !important; padding: 12px 0; border-top: 1px solid rgba(11,15,6,.1); } .cd-render p b { display: block; margin-top: 4px; font: 800 var(--tc-fs-titel)/1.25 var(--display); color: #0b0f06; }
/* 13 mit Pfeil */
.cd-witharrow { position: relative; } .cd-arrow { position: absolute; left: -150px; top: 30%; width: 130px; overflow: visible; z-index: 2; }
.cd-arrow path { fill: none; stroke: #0b0f06; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
/* 14 Diff */
.cd.diff del, .cd.diff ins { display: block; margin: 0 -26px; padding: 0 26px; text-decoration: none; }
.cd.diff del { background: rgba(255,99,99,.12); color: #ff9a9a; } .cd.diff ins { background: rgba(197,247,79,.1); color: #c5f74f; }
/* 15 YAML-Karte */
.cd.yaml { background: #fff; color: #0b0f06; box-shadow: inset 6px 0 #c5f74f, 0 30px 60px -40px rgba(11,15,6,.5); } .cd.yaml .cd-bar { background: transparent; padding-left: 22px; } .cd.yaml .cd-bar > i { display: none; } .cd.yaml .cd-bar > span { margin: 0; color: rgba(11,15,6,.5); }
.cd.yaml s { color: #0b0f06; font-weight: 700; } .cd.yaml u { color: #2f6ad0; } .cd.yaml b { color: #0b0f06; background: #c5f74f; padding: 0 4px; } .cd.yaml q { color: rgba(11,15,6,.4); } .cd.yaml .cd-pre { padding-left: 32px; }
/* 16 Befehlspalette */
@keyframes cd-cur { 50% { opacity: 0; } }
.cd-cmd { overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 50px 90px -40px rgba(11,15,6,.55), 0 0 0 1px rgba(11,15,6,.06); }
.cd-cmd-q { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-bottom: 1px solid rgba(11,15,6,.1); }
.cd-cmd-q i { padding: 6px 9px; border-radius: 8px; background: #eef0ea; font: 600 var(--tc-fs-label) var(--mono); font-style: normal; } .cd-cmd-q b { font: 800 var(--tc-fs-statement)/1 var(--display); color: #0b0f06; }
.cd-cmd-q .cur { width: 2px; height: 26px; background: #0b0f06; animation: cd-cur 1s infinite; }
.cd-cmd-r { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: baseline; gap: 14px; padding: 14px 22px; }
.cd-cmd-r small { font: 500 var(--tc-fs-label) var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(11,15,6,.5); } .cd-cmd-r b { font: 700 var(--tc-fs-text)/1.3 var(--display); color: #0b0f06; }
.cd-cmd-r.on { background: #c5f74f; } .cd-cmd-r em { font: 600 var(--tc-fs-label) var(--mono); font-style: normal; }
/* 17 Zeilen-Hover */
.cd-pre.hov > span { position: relative; display: block; margin: 0 -26px; padding: 0 26px; transition: background .2s; }
.cd-pre.hov > span[data-t=""] { pointer-events: none; }
.cd-pre.hov > span:hover { background: rgba(197,247,79,.14); }
.cd-pre.hov > span:not([data-t=""])::after { content: attr(data-t); position: absolute; right: 16px; top: 50%; translate: 0 -50%; padding: 4px 10px; border-radius: 99px; background: #c5f74f; color: #0b0f06; font: 600 var(--tc-fs-mini)/1.4 var(--mono); opacity: 0; transition: opacity .2s; }
.cd-pre.hov > span:hover::after { opacity: 1; }
/* 19 gestapelt */
.cd-stack { position: relative; padding: 0 0 50px 50px; } .cd-stack .back { position: absolute; left: 0; bottom: 0; width: calc(100% - 50px); opacity: .55; } .cd-stack .front { position: relative; z-index: 1; }
/* 20 Mini-IDE */
.cd-mini { box-shadow: 0 0 0 4px #c5f74f, 0 40px 70px -40px rgba(11,15,6,.6); } .cd-mini .cd-status { justify-content: space-between; }

@media (max-width: 960px) {
  .pr .prm.rv section.cd-sec[data-lay] { display: block; } .cd-sec .cd-wrap { margin-top: 40px !important; }
  .cd-pair { grid-template-columns: minmax(0, 1fr); } .cd-eq { rotate: 90deg; justify-self: center; } .cd-ide-b { grid-template-columns: minmax(0, 1fr); } .cd-tree { display: none; } .cd-arrow { display: none; }
}
/* Korrekturen: Code-Teile bleiben in der Zeile */
.rf-v .cd b, .rf-v .cd s, .rf-v .cd u, .rf-v .cd em, .rf-v .cd q { display: inline; font: inherit; }
.rf-v .cd b { color: #ffb86b; } .rf-v .cd.lime b, .rf-v .cd.yaml b { color: #0b0f06; } .rf-v .cd.light b { color: #b45309; } .rf-v .cd.git b { color: #c5f74f; }
.rf-v .cd-cmd b, .rf-v .cd-render b, .rf-v .cd-tree b { display: block; }
.cd-pre.hov { white-space: normal; } .cd-pre.hov > span { white-space: pre-wrap; }
.cd-stack .back { opacity: 1; filter: brightness(.75); }
