/* =========================================================================
   CONTENT SYSTEM (cs-*)
   Komponenten-Schicht der Content-Seiten. Laeuft zusaetzlich zu /style.css,
   aus dem die Design-Tokens kommen. Der cgp-Block der Bestandsseiten wird
   hier bewusst nicht angefasst.
   ========================================================================= */

:root {
  --cs-max:            1180px;
  --cs-prose:          68ch;
  --cs-section:        clamp(64px, 8vw, 104px);
  --cs-section-tight:  clamp(48px, 5vw, 72px);
  --cs-gap:            clamp(20px, 3vw, 40px);
  --cs-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.cs-body { padding-top: 0; background: var(--bg-warm); }

.cs-container {
  max-width: var(--cs-max);
  margin: 0 auto;
  padding: 0 32px;
}

.cs-section { padding: var(--cs-section) 0; background: var(--bg-warm); }
.cs-section--white { background: var(--bg); }
.cs-section--dark  { background: var(--bg-dark); color: rgba(255,255,255,0.86); }
.cs-section--tight { padding: var(--cs-section-tight) 0; }

.cs-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Typografie ------------------------------------------------------- */
.cs-head { margin-bottom: 40px; max-width: var(--cs-prose); }
.cs-head--center { margin-inline: auto; text-align: center; }

.cs-eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red-dark); margin-bottom: 12px;
}
.cs-section--dark .cs-eyebrow { color: #ff8a85; }

.cs-h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800; line-height: 1.12;
  letter-spacing: calc(-0.052em + 0.054rem);
  hyphens: none;
}
.cs-h2 .accent { color: var(--red); }
.cs-section--dark .cs-h2 { color: #fff; }
.cs-section--dark .cs-h2 .accent { color: #ff6b66; }

.cs-lead {
  margin-top: 14px; font-size: 1.02rem; color: var(--text-muted);
  max-width: var(--cs-prose);
}
.cs-section--dark .cs-lead { color: rgba(255,255,255,0.66); }

/* --- Top-Nav ---------------------------------------------------------- */
.cs-topnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,245,241,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.cs-topnav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.cs-topnav__back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 0.9rem; font-weight: 600; color: var(--text-muted);
  text-decoration: none; transition: color var(--trans);
}
.cs-topnav__back:hover { color: var(--red); }
.cs-topnav__right { display: flex; align-items: center; gap: 16px; }
.cs-topnav__logo {
  font-weight: 800; color: var(--text); text-decoration: none;
  letter-spacing: -0.02em;
}
.cs-topnav__logo .dot { color: var(--red); }

/* --- Hero ------------------------------------------------------------- */
.cs-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 6vw, 80px); }
.cs-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--cs-gap); align-items: center;
}
/* Die drei Typen teilen den Hero unterschiedlich auf: das Ergebnis-Video
   traegt die Video-Seite, das Before/After-Paar braucht am meisten Platz,
   beim Repo stehen Text und Demo gleichberechtigt. */
.cs-hero--video  .cs-hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.cs-hero--github .cs-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cs-hero--prompt .cs-hero__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.cs-hero__body { min-width: 0; }

.cs-crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--text-dim); margin-bottom: 18px;
}
.cs-crumb a { color: var(--text-dim); text-decoration: none; }
.cs-crumb a:hover { color: var(--red); text-decoration: underline; }
.cs-crumb__cur { color: var(--text-muted); }

.cs-hero__title {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  font-weight: 800; line-height: 1.06;
  letter-spacing: calc(-0.052em + 0.054rem);
  hyphens: none; overflow-wrap: break-word;
  margin-bottom: 18px;
}
.cs-hero__title .accent { color: var(--red); }
.cs-hero__lead {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 34em; margin-bottom: 22px;
}
.cs-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cs-hero__media { min-width: 0; }

/* --- Chips ------------------------------------------------------------ */
.cs-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.cs-chip {
  display: inline-flex; align-items: center; min-height: 32px;
  padding: 0 12px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255,255,255,0.6);
  font-size: 0.8rem; font-weight: 500; color: var(--text-muted);
}

/* --- Buttons ---------------------------------------------------------- */
.cs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: var(--radius-sm);
  font-size: 0.92rem; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--trans), border-color var(--trans),
              color var(--trans), transform var(--trans);
}
.cs-btn--primary { background: var(--red); color: #fff; }
.cs-btn--primary:hover { background: var(--red-dark); }
.cs-btn--ghost {
  background: transparent; color: var(--text); border-color: var(--border-h);
}
.cs-btn--ghost:hover { border-color: var(--text); }
.cs-btn:active { transform: translateY(1px); }

/* --- Medien ----------------------------------------------------------- */
.cs-media { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.cs-media--video { box-shadow: 0 24px 60px rgba(0,0,0,0.16); }
.cs-media--image { border: 1px solid var(--border); }
.cs-media__video, .cs-media__img {
  display: block; width: 100%; height: auto; object-fit: cover;
}
/* Hochkant (9:16): sonst wird das Medium so breit wie die Spalte und damit
   fast doppelt so hoch wie das Textfeld daneben. Die Breite folgt der Hoehe. */
.cs-media--portrait { width: min(100%, 340px, calc(74vh * 9 / 16)); margin-inline: auto; }
.cs-media__pill {
  position: absolute; left: 14px; bottom: 14px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(17,17,16,0.72); color: #fff;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  max-width: calc(100% - 28px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.cs-media__sound {
  position: absolute; right: 14px; top: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 0 15px; border-radius: 999px;
  border: 0; cursor: pointer;
  background: rgba(17,17,16,0.72); color: #fff;
  font: inherit; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color var(--trans);
}
.cs-media__sound:hover { background: rgba(17,17,16,0.88); }
.cs-media__soundicon {
  width: 13px; height: 13px; flex: 0 0 13px;
  background: currentColor;
  -webkit-mask: var(--cs-sound-off) center / contain no-repeat;
  mask: var(--cs-sound-off) center / contain no-repeat;
}
.cs-media__sound[aria-pressed="true"] .cs-media__soundicon {
  -webkit-mask-image: var(--cs-sound-on);
  mask-image: var(--cs-sound-on);
}
:root {
  --cs-sound-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M11 5 6 9H3v6h3l5 4V5Zm4.5 3.5 5 5m0-5-5 5' stroke='%23000' stroke-width='2' stroke-linecap='round' fill-opacity='1'/%3E%3C/svg%3E");
  --cs-sound-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M11 5 6 9H3v6h3l5 4V5Z'/%3E%3Cpath d='M15.5 9.5a3.5 3.5 0 0 1 0 5m2.5-7.5a7 7 0 0 1 0 9.5' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.cs-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cs-ba__half { margin: 0; position: relative; }
.cs-ba__half img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.cs-ba__cap {
  position: absolute; left: 10px; top: 10px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.9); color: var(--text-muted);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cs-ba__cap--after { background: var(--red); color: #fff; }

/* --- Sticky In-Page-Nav ----------------------------------------------- */
.cs-subnav {
  position: sticky; top: 60px; z-index: 90;
  background: rgba(246,245,241,0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cs-subnav__inner {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.cs-subnav__inner::-webkit-scrollbar { display: none; }
.cs-subnav__link {
  flex: 0 0 auto; scroll-snap-align: start;
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 14px;
  font-size: 0.86rem; font-weight: 600; color: var(--text-dim);
  text-decoration: none; border-bottom: 2px solid transparent;
  transition: color var(--trans), border-color var(--trans);
  white-space: nowrap;
}
.cs-subnav__link:hover { color: var(--text); }
.cs-subnav__link.is-active { color: var(--red); border-bottom-color: var(--red); }

/* --- Ergebnis + Stats -------------------------------------------------- */
.cs-result { display: grid; gap: 24px; }
.cs-result .cs-media { max-width: 820px; margin-inline: auto; }
.cs-result .cs-media--portrait { max-width: min(100%, 380px, calc(80vh * 9 / 16)); }
.cs-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  list-style: none;
}
.cs-stat {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 9px 16px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--bg-warm);
}
.cs-stat__v { font-size: 1.05rem; font-weight: 800; }
.cs-stat__l { font-size: 0.82rem; color: var(--text-muted); }

/* --- Tool-Stack -------------------------------------------------------- */
.cs-toolstack__cap { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 14px; }
.cs-toolstack__list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.cs-toolstack__item {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  padding: 0 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); font-size: 0.9rem; font-weight: 600;
}
.cs-toolstack__item img { display: block; width: 24px; height: 24px; }

/* --- Step-Timeline ----------------------------------------------------- */
.cs-steps { list-style: none; display: grid; gap: 4px; }
.cs-step {
  display: grid;
  grid-template-columns: minmax(46px, max-content) minmax(0, 1fr);
  column-gap: 22px; row-gap: 8px; align-items: start;
  padding: 26px 0; border-top: 1px solid var(--border);
}
.cs-step:last-child { border-bottom: 1px solid var(--border); }
.cs-step__num {
  font-family: var(--cs-mono); font-size: 1.05rem; font-weight: 600;
  color: var(--red-dark); padding-top: 2px;
}
.cs-step__body { min-width: 0; max-width: var(--cs-prose); }
.cs-step__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.cs-step__text { color: var(--text-muted); font-size: 0.96rem; }
.cs-step__media { grid-column: 2; margin: 6px 0 0; }
.cs-step__media img {
  display: block; width: 100%; height: auto; max-width: 460px;
  border-radius: var(--radius); border: 1px solid var(--border);
}

/* --- Tabelle ----------------------------------------------------------- */
.cs-tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.cs-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.cs-table th, .cs-table td { padding: 14px 20px; text-align: left; vertical-align: top; }
.cs-table th {
  font-weight: 600; color: var(--text-muted); width: 38%;
  white-space: nowrap;
}
.cs-table td { font-family: var(--cs-mono); font-size: 0.88rem; }
.cs-table tr + tr th, .cs-table tr + tr td { border-top: 1px solid var(--border); }

/* --- Use Cases --------------------------------------------------------- */
.cs-cases {
  list-style: none; display: grid; gap: 2px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.cs-case { padding: 22px; border: 1px solid var(--border); background: var(--bg); }
.cs-case__num {
  display: block; font-family: var(--cs-mono); font-size: 0.82rem;
  font-weight: 600; color: var(--red-dark); margin-bottom: 10px;
}
.cs-case__title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.cs-case__body { font-size: 0.92rem; color: var(--text-muted); }

/* --- Galerie ----------------------------------------------------------- */
.cs-gallery { display: grid; gap: 48px; }
.cs-gallery__item { scroll-margin-top: 120px; }
.cs-gallery__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 14px;
}
.cs-gallery__code, .cs-featured__code, .cs-lib__code {
  font-family: var(--cs-mono); font-size: 0.9rem; font-weight: 600;
  padding: 5px 10px; border-radius: var(--radius-sm);
  background: var(--bg-dark); color: #fff;
}
.cs-gallery__desc { flex: 1 1 240px; font-size: 0.94rem; color: var(--text-muted); }

/* --- Code-Block --------------------------------------------------------- */
.cs-code {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1); background: #0e0e12;
}
.cs-code__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px; background: #18181f;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.cs-code__dots { display: inline-flex; gap: 6px; flex: 0 0 auto; }
.cs-code__dots i {
  width: 10px; height: 10px; border-radius: 50%; background: #3a3a44;
}
.cs-code__name {
  flex: 1 1 auto; font-family: var(--cs-mono); font-size: 0.78rem;
  color: rgba(255,255,255,0.42);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cs-code__body {
  margin: 0; padding: 22px; max-height: 60vh; overflow: auto;
  font-family: var(--cs-mono); font-size: 0.84rem; line-height: 1.7;
  color: rgba(255,255,255,0.84); white-space: pre-wrap; word-break: break-word;
}

/* --- Copy-Button --------------------------------------------------------- */
.cs-copy {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 15px; flex: 0 0 auto;
  border: 1px solid var(--border-h); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
  font-size: 0.84rem; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: background-color var(--trans), color var(--trans),
              border-color var(--trans);
}
.cs-copy:hover { border-color: var(--text); }
.cs-copy.is-copied {
  background: var(--red); border-color: var(--red); color: #fff;
}
.cs-copy--sm { min-height: 44px; padding: 0 12px; font-size: 0.8rem; }
.cs-copy__label { white-space: nowrap; }

/* --- Tabs ---------------------------------------------------------------- */
.cs-tabs__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.cs-tabs__list { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cs-tabs__list::-webkit-scrollbar { display: none; }
.cs-tabs__tab {
  flex: 0 0 auto; min-height: 44px; padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-sm);
  background: transparent; color: rgba(255,255,255,0.6);
  font-size: 0.86rem; font-weight: 600; font-family: inherit; cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--trans), color var(--trans),
              border-color var(--trans);
}
.cs-tabs__tab:hover { color: #fff; }
.cs-tabs__tab[aria-selected="true"] {
  background: #fff; border-color: #fff; color: var(--bg-dark);
}
.cs-tabs__panels { min-width: 0; }
.cs-tabs__panel:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.cs-tabs__all {
  background: transparent; color: rgba(255,255,255,0.72);
  border-color: rgba(255,255,255,0.18);
}
.cs-tabs__all:hover { color: #fff; border-color: #fff; }

/* --- Prompt-Library ------------------------------------------------------ */
.cs-lib__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.cs-lib__search {
  flex: 1 1 260px; min-height: 46px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); font-family: inherit; font-size: 0.94rem; color: var(--text);
}
.cs-lib__search:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.cs-lib__count { font-size: 0.82rem; color: var(--text-dim); }
.cs-lib__filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.cs-lib__chip {
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg); color: var(--text-muted);
  font-size: 0.82rem; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: background-color var(--trans), color var(--trans), border-color var(--trans);
}
.cs-lib__chip b { color: var(--text-dim); font-weight: 600; }
.cs-lib__chip.is-on { background: var(--text); border-color: var(--text); color: #fff; }
.cs-lib__chip.is-on b { color: rgba(255,255,255,0.6); }
.cs-lib__list {
  list-style: none; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; background: var(--bg);
}
.cs-lib__row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 14px 18px;
}
.cs-lib__row + .cs-lib__row { border-top: 1px solid var(--border); }
.cs-lib__row[hidden] { display: none; }
.cs-lib__desc { flex: 1 1 200px; font-size: 0.9rem; color: var(--text-muted); }
.cs-lib__empty { padding: 28px 0; text-align: center; color: var(--text-dim); }

/* --- Featured Prompt ------------------------------------------------------ */
.cs-featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--cs-gap); align-items: start; }
.cs-featured__visual { min-width: 0; }
.cs-featured__body { min-width: 0; display: grid; gap: 14px; justify-items: start; }
.cs-featured__desc { font-size: 0.96rem; color: var(--text-muted); max-width: var(--cs-prose); }
.cs-featured__body .cs-code { width: 100%; }

/* --- Quick Facts ---------------------------------------------------------- */
.cs-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px; border: 1px solid var(--border); background: var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.cs-facts__pair { padding: 18px 20px; background: var(--bg); }
.cs-facts__k {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px;
}
.cs-facts__v { font-size: 0.98rem; font-weight: 600; margin: 0; }

/* --- Features -------------------------------------------------------------- */
.cs-features { display: grid; gap: clamp(40px, 6vw, 72px); }
.cs-feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--cs-gap); align-items: center;
}
.cs-feature--flip .cs-feature__visual { order: 2; }
.cs-feature__visual { min-width: 0; }
.cs-feature__index {
  font-family: var(--cs-mono); font-size: clamp(3.5rem, 9vw, 6rem);
  font-weight: 700; line-height: 1; color: var(--border-h);
}
.cs-feature__body { min-width: 0; max-width: var(--cs-prose); }
.cs-feature__title { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 700; margin-bottom: 10px; }
.cs-feature__text { color: var(--text-muted); }
.cs-feature__bullets { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.cs-feature__bullet {
  position: relative; padding-left: 18px; font-size: 0.92rem; color: var(--text-muted);
}
.cs-feature__bullet::before {
  content: ''; position: absolute; left: 0; top: 0.6em;
  width: 7px; height: 1.5px; background: var(--red);
}

/* --- Architektur-Flow -------------------------------------------------------- */
.cs-flow { list-style: none; display: grid; gap: 0; max-width: 520px; }
.cs-flow__node {
  position: relative; padding: 16px 20px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg);
}
.cs-flow__node + .cs-flow__node { margin-top: 30px; }
.cs-flow__node + .cs-flow__node::before {
  content: ''; position: absolute; left: 50%; top: -30px;
  width: 1px; height: 30px; background: var(--border-h);
}
.cs-flow__node + .cs-flow__node::after {
  content: ''; position: absolute; left: 50%; top: -9px;
  width: 7px; height: 7px; transform: translateX(-50%) rotate(45deg);
  border-right: 1.5px solid var(--red); border-bottom: 1.5px solid var(--red);
}
.cs-flow__label { display: block; font-weight: 700; font-size: 0.98rem; }
.cs-flow__note { display: block; font-size: 0.85rem; color: var(--text-dim); margin-top: 3px; }
.cs-flow__cap { margin-top: 18px; font-size: 0.88rem; color: var(--text-dim); max-width: var(--cs-prose); }

/* --- Creator Verdict ---------------------------------------------------------- */
.cs-verdict {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px; border: 1px solid var(--border); background: var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.cs-verdict__col { padding: 26px 24px; background: var(--bg); }
.cs-verdict__h { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.cs-verdict__col--good .cs-verdict__h { color: var(--red-dark); }
.cs-verdict__col--bad .cs-verdict__h { color: var(--text-dim); }
.cs-verdict__list { list-style: none; display: grid; gap: 9px; }
.cs-verdict__item { position: relative; padding-left: 18px; font-size: 0.94rem; color: var(--text-muted); }
.cs-verdict__item::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 7px; height: 1.5px; background: currentColor; opacity: 0.5; }
.cs-verdict__metas { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 28px; padding: 18px 24px; background: var(--bg-warm); }
.cs-verdict__meta { display: grid; gap: 2px; }
.cs-verdict__meta-k { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.cs-verdict__meta-v { font-size: 0.94rem; font-weight: 600; }

/* --- Callouts ------------------------------------------------------------------ */
.cs-callouts { list-style: none; display: grid; gap: 14px; max-width: 780px; }
.cs-callout { padding: 18px 22px; border-left: 2px solid var(--red); background: var(--bg); }
.cs-callout__title { font-size: 1rem; font-weight: 700; margin-bottom: 5px; }
.cs-callout__body { font-size: 0.94rem; color: var(--text-muted); }

/* --- CTA ------------------------------------------------------------------------ */
.cs-cta { text-align: center; max-width: 640px; margin: 0 auto; }
.cs-cta__title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; line-height: 1.12; letter-spacing: calc(-0.052em + 0.054rem); }
.cs-cta__title .accent { color: var(--red); }
.cs-cta__body { margin-top: 14px; color: var(--text-muted); }
.cs-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.cs-cta__meta { margin-top: 18px; font-size: 0.86rem; color: var(--text-dim); }
.cs-cta__meta a { color: var(--red-dark); font-weight: 600; }
.cs-cta__meta .accent { color: var(--red-dark); font-weight: 600; }

/* --- Related --------------------------------------------------------------------- */
.cs-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cs-related__card {
  display: grid; gap: 6px; text-decoration: none; color: inherit;
  transition: transform var(--trans);
}
.cs-related__card:hover { transform: translateY(-3px); }
.cs-related__media {
  display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 8px; background: var(--bg);
  aspect-ratio: 16 / 10;
}
.cs-related__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cs-related__cat { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-dark); }
.cs-related__title { font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.cs-related__tool { font-size: 0.82rem; color: var(--text-dim); }

/* --- FAQ -------------------------------------------------------------------------- */
.cs-faq { max-width: 780px; border-top: 1px solid var(--border); }
.cs-faq__item { border-bottom: 1px solid var(--border); }
.cs-faq__q { padding: 18px 0; font-size: 1rem; font-weight: 600; cursor: pointer; list-style: none; }
.cs-faq__q::-webkit-details-marker { display: none; }
.cs-faq__q::after { content: '+'; float: right; color: var(--red); font-weight: 400; }
.cs-faq__item[open] .cs-faq__q::after { content: '\2212'; }
.cs-faq__a { padding: 0 0 20px; color: var(--text-muted); font-size: 0.95rem; max-width: var(--cs-prose); }

/* --- Footer ------------------------------------------------------------------------- */
.cs-footer { padding: 28px 0; border-top: 1px solid var(--border); background: var(--bg-warm); }
.cs-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-dim); }
.cs-footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.cs-footer__links a { color: var(--text-dim); text-decoration: none; transition: color var(--trans); }
.cs-footer__links a:hover { color: var(--text-muted); }

/* --- Fokus --------------------------------------------------------------------------- */
.cs-btn:focus-visible, .cs-copy:focus-visible, .cs-lib__chip:focus-visible,
.cs-tabs__tab:focus-visible, .cs-subnav__link:focus-visible,
.cs-related__card:focus-visible, .cs-topnav__back:focus-visible,
.cs-faq__q:focus-visible {
  outline: 2px solid var(--red); outline-offset: 3px; border-radius: var(--radius-sm);
}

/* --- Mobile ---------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .cs-hero__grid,
  .cs-hero--video .cs-hero__grid,
  .cs-hero--github .cs-hero__grid,
  .cs-hero--prompt .cs-hero__grid,
  .cs-featured,
  .cs-feature { grid-template-columns: minmax(0, 1fr); }
  .cs-feature--flip .cs-feature__visual { order: 0; }
  .cs-hero__media { order: 2; }
  .cs-feature__index { font-size: 3rem; }
}
@media (max-width: 680px) {
  .cs-container { padding: 0 20px; }
  .cs-section { padding: clamp(56px, 12vw, 80px) 0; }
  .cs-section--tight { padding: clamp(44px, 9vw, 60px) 0; }
  .cs-subnav { top: 56px; }
  .cs-topnav__inner { height: 56px; }
  .cs-step { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .cs-step__num { padding-top: 0; }
  .cs-step__media { grid-column: 1; }
  .cs-code__body { padding: 18px; font-size: 0.8rem; max-height: 55vh; }
  .cs-code__name { display: none; }
  .cs-table th { width: 44%; white-space: normal; }
  .cs-gallery { gap: 36px; }
  .cs-footer__inner { flex-direction: column; text-align: center; }
}

/* --- Reduced Motion ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .cs-related__card:hover { transform: none; }
  .cs-btn:active { transform: none; }
  html { scroll-behavior: auto; }
}

/* --- Bildleiste (Referenzen + Beat-Stills) -------------------------------- */
.cs-strip {
  list-style: none; display: grid; gap: 14px; margin-top: 22px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.cs-strip--beats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
/* align-content: start - sonst verteilt der Grid die Restzeile einer hoeheren
   Nachbarkachel und die Labels stehen versetzt. */
.cs-strip__item { display: grid; gap: 6px; min-width: 0; align-content: start; }
.cs-strip__img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg);
}
/* Seitenverhaeltnis kommt aus den echten Bildmassen (--cs-ar setzt der
   Generator), damit hochkante Stills nicht auf Querformat beschnitten werden. */
.cs-strip__img { aspect-ratio: var(--cs-ar, 3 / 4); object-fit: cover; }
.cs-strip--refs .cs-strip__img {
  aspect-ratio: 1 / 1; object-fit: contain;
  background: var(--bg-warm); padding: 8px;
}
.cs-strip__label {
  font-size: 0.82rem; font-weight: 600; color: var(--text);
}
.cs-strip__note {
  font-family: var(--cs-mono); font-size: 0.74rem; color: var(--text-dim);
}
