/* Chapter art direction. Scoped to editorial subpages; home and legal stay intact. */
.chapter-hero {
  position: relative; isolation: isolate; display: flex; align-items: center;
  min-height: max(810px, 94svh); padding: 170px var(--gutter) 180px;
  background: radial-gradient(ellipse at 25% 65%, #221118 0%, #0b0d10 58%);
}
.chapter-hero::after {
  z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, #0b0d10 5%, rgb(11 13 16 / 76%) 30%, transparent 62%),
    linear-gradient(0deg, #0b0d10 0%, transparent 35%);
}
.chapter-visual {
  position: absolute; z-index: -1; inset: 115px 0 110px 29%;
  overflow: hidden; background: #0e1115;
  clip-path: polygon(40px 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%, 0 40px);
}
.chapter-hero .chapter-visual > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 57%; filter: saturate(.83) brightness(.88);
  animation: chapter-image-in 1.4s cubic-bezier(.16,.7,.3,1) both;
}
.chapter-image-corner { position: absolute; top: 22px; right: 28px; width: 44px; height: 44px; border-top: 1px solid #f4c0c7; border-right: 1px solid #f4c0c7; opacity: .7; }
.chapter-watermark {
  position: absolute; z-index: 1; top: 115px; right: 4vw; max-width: 90%; overflow: hidden;
  color: rgb(255 255 255 / 7%); -webkit-text-stroke: 1px rgb(255 255 255 / 48%);
  text-shadow: 0 2px 10px rgb(0 0 0 / 45%);
  font: 850 clamp(80px, 13vw, 260px)/1 var(--font); letter-spacing: -.065em;
  white-space: nowrap; pointer-events: none; user-select: none;
}
.chapter-hero .page-hero-content { position: relative; z-index: 2; width: min(1640px, 100%); margin: auto; }
.chapter-hero .back-link { margin-bottom: 42px; color: #b6bbc3; font-size: 14px; }
.chapter-hero .eyebrow { color: #e88a9a; margin-bottom: 24px; font-size: 12px; }
.chapter-hero h1 { width: min(900px, 67%); max-width: none; font-size: clamp(64px, 7.6vw, 140px); font-weight: 800; line-height: .99; letter-spacing: -.065em; text-shadow: 0 5px 45px rgb(0 0 0 / 18%); }
.chapter-lead { max-width: 440px; margin: 28px 0 0; color: #bcc1c8; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.55; letter-spacing: -.02em; }
.chapter-scroll { display: inline-flex; align-items: center; min-height: 48px; gap: 35px; margin-top: 26px; color: #f1f1f3; font-size: 14px; text-decoration: none; }
.chapter-scroll span { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid #6a3440; border-radius: 50%; color: #ff6076; font-size: 24px; transition: background .2s, border-color .2s; }
.chapter-scroll:hover span { color: #fff; background: #9e1930; border-color: #f74c68; }
.chapter-facts {
  position: absolute; z-index: 2; bottom: 0; left: var(--gutter); right: var(--gutter);
  width: min(1640px, calc(100% - var(--gutter) * 2)); margin-inline: auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid #4b3038;
}
.chapter-facts > div { min-width: 0; padding: 28px 28px 34px; border-left: 1px solid #352b32; }
.chapter-facts > div:first-child { padding-left: 0; border-left: 0; }
.chapter-facts span { display: block; margin-bottom: 12px; color: #c66b7c; font: 400 12px var(--tech); }
.chapter-facts strong { display: block; color: #d1d5db; font: 500 clamp(12px, 1vw, 16px)/1.5 var(--tech); letter-spacing: .035em; overflow-wrap: anywhere; }
.chapter-technical { background: #07090c; }
.chapter-technical .chapter-visual { inset: 150px 0 140px 22%; }
.chapter-technical::after { background: linear-gradient(90deg, #080a0d 0%, rgb(8 10 13 / 85%) 30%, rgb(8 10 13 / 12%) 78%), linear-gradient(0deg, #080a0d 0%, transparent 50%); }
.chapter-technical .chapter-visual::after { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 4px, rgb(0 0 0 / 10%) 4px 5px); content: ""; pointer-events: none; }
.chapter-technical .chapter-watermark { color: rgb(255 95 120 / 8%); -webkit-text-stroke-color: rgb(255 125 148 / 55%); font-size: clamp(80px, 12vw, 210px); }
body[data-page="kitts-inneren-werte"] .chapter-visual > img,
body[data-page="k-i-t-t-s-funktionen"] .chapter-visual > img { object-position: 50% center; filter: saturate(1.1) brightness(.88); }
body[data-page="neural-interface-echte-ki"] .chapter-visual > img { object-position: 67% center; }
body[data-page="k-i-t-t-s-funktionen"] .chapter-visual { transform: perspective(1600px) rotateY(-7deg); transform-origin: right center; }
body[data-page="k-i-t-t-aussen"] .chapter-watermark { font-size: clamp(120px, 17vw, 300px); }
body[data-page="delorean-mieten"] .chapter-hero h1 { font-size: clamp(56px, 6.6vw, 118px); }
body[data-page="delorean-mieten"] .chapter-visual > img { object-position: center 63%; }
body[data-page="der-fahrer"] .chapter-watermark { font-size: clamp(120px, 19vw, 340px); }

/* An editorial grid replaces the long, uniform text column. */
.story-section { padding-block: clamp(72px, 9vw, 150px); overflow: clip; }
.story-section .article-layout { max-width: 1440px; }
.story-section .story-copy {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 2.1vw, 36px); align-items: start; counter-reset: story;
}
.story-copy > * { grid-column: 5 / -1; min-width: 0; width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
.story-copy > p { margin-top: 0; margin-bottom: 28px; }
.story-section .story-copy > p:first-child {
  position: relative; grid-column: 1 / -1; max-width: 1100px; margin-bottom: 46px;
  padding-left: 30px; border-left: 3px solid #ac1730;
  color: #23282c; font-size: clamp(26px, 2.65vw, 43px); line-height: 1.45; letter-spacing: -.03em;
}
.story-section .story-copy > h2, .story-section .story-copy > h3 {
  grid-column: 1 / 5; counter-increment: story;
  margin: 0 0 28px; padding: 18px 0 0; border-top: 1px solid #a4a9a7;
  color: #22272a; font-size: clamp(25px, 2.4vw, 38px); line-height: 1.12; letter-spacing: -.045em;
  text-wrap: balance;
}
.story-copy > :is(h2, h3)::before {
  display: block; margin-bottom: 20px; content: counter(story, decimal-leading-zero) " /";
  color: #a21a30; font: 500 12px/1.4 var(--tech); letter-spacing: .1em;
}
.story-copy > :is(h2, h3) + p { margin-top: 0; padding-top: 18px; }
.story-copy > :is(ul, ol) { margin-top: 4px; margin-bottom: 40px; padding-left: 23px; }
.story-copy > :is(ul, ol) li { padding: 8px 0; }
.story-copy > :is(.article-visuals, .article-media, .conversion-gallery, .rental-gallery, .comparison-grid, .data-grid, .video-embed, .timeline) { grid-column: 1 / -1; max-width: none; }
.story-copy > .actions { margin-top: 0; margin-bottom: 38px; }
.story-section .story-copy .actions a.button { color: #fff; }
.story-section .story-copy blockquote { margin: 14px 0 40px; padding: 24px 28px; border-left: 3px solid #b51934; background: #bfc4c1; }
.story-section .article-visuals {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
  margin: 52px 0 80px; padding: clamp(18px, 3.5vw, 56px); border: 1px solid #272d34; border-top: 2px solid #bd1732;
  border-radius: 2px; background: radial-gradient(ellipse at 0 0, #35141f, transparent 55%), #101317;
  box-shadow: 0 28px 50px rgb(27 32 35 / 16%);
}
.story-section .article-visuals .article-visual { grid-column: auto; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 1px; border: 1px solid #43434a; background: #080b0e; }
.story-section .article-visuals .article-visual:first-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.story-section .article-visuals .article-visual img { height: 100%; width: 100%; object-fit: cover; }
.story-section .article-visuals .article-visual span { left: 24px; bottom: 24px; right: 70px; font: 500 15px/1.5 var(--font); }
.story-section .article-visuals .article-visual::before {
  position: absolute; z-index: 2; right: 20px; bottom: 20px; width: 36px; height: 36px;
  display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 40%); border-radius: 50%;
  color: #fff; background: #161920; content: "↗"; font-size: 20px; pointer-events: none;
}
.story-section .article-media { margin-block: 45px 65px; padding: 0 0 18px; border: 1px solid #454a50; border-top: 2px solid #b91531; border-radius: 2px; background: #14171c; }
.story-section .article-media img { max-height: 820px; object-fit: contain; background: #090c0f; border: 0; border-radius: 0; }
.story-section .article-media figcaption { color: #c3c9d0; padding: 3px 22px 0; font-size: 14px; }
.story-section .data-grid {
  --line: #363c45; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 30px 0 70px;
  padding: 22px; border: 0; border-top: 2px solid #c71d37; background: #14181e;
}
.story-section .data-grid > div { padding: 28px; border-bottom: 1px solid #353d45; border-right: 1px solid #353d45; }
.story-section .data-grid strong { color: #eceff4; margin-top: 14px; font-size: clamp(19px, 2vw, 28px); letter-spacing: -.025em; line-height: 1.3; overflow-wrap: anywhere; }
.story-section .data-grid span { color: #aeb6c0; font: 500 12px/1.5 var(--tech); letter-spacing: .025em; }
.story-section .conversion-gallery, .story-section .rental-gallery { margin: 35px 0 75px; }
.story-section .conversion-card, .story-section .rental-gallery-card { border-radius: 2px; border: 1px solid #858c91; }
.story-section .video-embed { margin: 35px 0 75px; width: 100%; min-height: 430px; background: radial-gradient(ellipse at 50% 70%, #411324, transparent 60%), #10141a; border: 1px solid #4a3641; }
.story-section .video-embed.vertical { width: min(520px, 100%); justify-self: center; }
.story-section .video-embed.loaded { min-height: 0; }
.story-section .timeline { margin-bottom: 60px; }
.story-section .timeline article { border-color: #969f9f; }
.story-section .timeline time { color: #971a32; font-size: 12px; }
.story-section .timeline h3 { color: #1c2227; }

/* Systems and voice have their own nocturnal, instrument-panel atmosphere. */
body:is([data-page="neural-interface-echte-ki"], [data-page="kitts-inneren-werte"], [data-page="k-i-t-t-s-funktionen"]) .story-section {
  background: radial-gradient(ellipse at 100% 5%, rgb(123 28 50 / 13%), transparent 30%), #171b21;
}
body:is([data-page="neural-interface-echte-ki"], [data-page="kitts-inneren-werte"], [data-page="k-i-t-t-s-funktionen"]) .story-copy > p:first-child { color: #eff1f5; border-color: #fb3858; }
body:is([data-page="neural-interface-echte-ki"], [data-page="kitts-inneren-werte"], [data-page="k-i-t-t-s-funktionen"]) .story-copy :is(p, li) { color: #b6bec9; }
body:is([data-page="neural-interface-echte-ki"], [data-page="kitts-inneren-werte"], [data-page="k-i-t-t-s-funktionen"]) .story-copy > :is(h2, h3) { color: #eff1f5; border-color: #434b56; }
body:is([data-page="neural-interface-echte-ki"], [data-page="kitts-inneren-werte"], [data-page="k-i-t-t-s-funktionen"]) .story-copy > :is(h2, h3)::before { color: #ff6784; }
body:is([data-page="neural-interface-echte-ki"], [data-page="kitts-inneren-werte"], [data-page="k-i-t-t-s-funktionen"]) .story-copy a { color: #ffa0b1; }
body:is([data-page="neural-interface-echte-ki"], [data-page="kitts-inneren-werte"], [data-page="k-i-t-t-s-funktionen"]) .story-copy blockquote { border-color: #e43f62; background: #242c36; }
body:is([data-page="neural-interface-echte-ki"], [data-page="kitts-inneren-werte"], [data-page="k-i-t-t-s-funktionen"]) .story-copy blockquote p { color: #d9dce3; }
body[data-page="k-i-t-t-s-funktionen"] .story-copy > ul {
  list-style: none; grid-column: 5 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; padding: 0;
}
body[data-page="k-i-t-t-s-funktionen"] .story-copy > ul li { position: relative; margin: 0; padding: 23px 20px 23px 35px; border: 1px solid #404852; border-radius: 2px; background: #20262e; font-size: 16px; }
body[data-page="k-i-t-t-s-funktionen"] .story-copy > ul li::before { position: absolute; top: 33px; left: 16px; width: 5px; height: 5px; background: #ff536f; content: ""; }

/* Gallery rhythm: expansive lead images and smaller moments beside them. */
.chapter-gallery { background: #11151a; }
.chapter-gallery .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(190px, 19vw, 340px); gap: 18px; }
.chapter-gallery .gallery-card { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; border: 1px solid #414853; border-radius: 2px; }
.chapter-gallery .gallery-card:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
.chapter-gallery .gallery-card::after { position: absolute; inset: 60% 0 0; background: linear-gradient(transparent, rgb(5 9 13 / 85%)); content: ""; pointer-events: none; }
.chapter-gallery .gallery-card span { z-index: 1; background: none; left: 24px; bottom: 22px; padding: 0; color: #e5e8ed; font-size: 15px; }
.story-section .film-vehicle-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 290px; }
.story-section .film-vehicle-gallery .rental-gallery-card:first-child { grid-column: span 2; grid-row: span 2; }

@keyframes chapter-image-in { from { opacity: .55; transform: scale(1.025); } to { opacity: 1; transform: none; } }
@media (min-width: 2100px) {
  .chapter-hero .page-hero-content { width: min(1840px, 100%); }
  .chapter-hero h1 { width: 1100px; font-size: clamp(140px, 6vw, 220px); }
  .chapter-visual { left: 34%; }
  .chapter-lead { max-width: 580px; font-size: 27px; }
  .chapter-facts { width: min(1840px, calc(100% - var(--gutter) * 2)); }
}
@media (max-width: 1100px) {
  .chapter-hero { min-height: 790px; padding-top: 160px; }
  .chapter-hero h1 { width: 75%; font-size: clamp(64px, 9vw, 100px); }
  .chapter-visual { left: 21%; }
  .chapter-watermark { top: 145px; }
  .chapter-facts strong { font-size: 12px; }
  .story-section .story-copy { column-gap: 24px; }
  .story-section .story-copy > h2, .story-section .story-copy > h3 { grid-column: 1 / 5; font-size: 27px; }
  .story-copy > * { grid-column: 5 / -1; }
  .story-section .data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-section .film-vehicle-gallery { grid-auto-rows: 230px; }
}
@media (max-width: 760px) {
  .chapter-hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 115px var(--gutter) 0; }
  .chapter-hero::after { display: none; }
  .chapter-hero .page-hero-content { order: 0; width: 100%; margin: 0; }
  .chapter-hero .back-link { margin-bottom: 22px; }
  .chapter-hero .eyebrow { margin-bottom: 20px; }
  .chapter-hero h1, body[data-page="delorean-mieten"] .chapter-hero h1 { width: 100%; font-size: clamp(46px, 10.5vw, 78px); }
  .chapter-lead { max-width: 500px; margin-top: 24px; font-size: 19px; }
  .chapter-scroll { margin-top: 18px; }
  .chapter-watermark { z-index: -1; top: 110px; right: -10px; max-width: none; font-size: 96px; -webkit-text-stroke-color: rgb(255 255 255 / 48%); }
  .chapter-visual, .chapter-technical .chapter-visual {
    position: relative; order: 1; z-index: 0; inset: auto; width: 100%; aspect-ratio: 4 / 3;
    margin: 32px 0 0; clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  }
  body[data-page="k-i-t-t-s-funktionen"] .chapter-visual { transform: none; }
  .chapter-hero .chapter-visual > img { object-position: center; }
  .chapter-technical .chapter-visual { aspect-ratio: 16 / 9; }
  .chapter-image-corner { right: 17px; top: 17px; width: 26px; height: 26px; }
  .chapter-facts {
    position: static; order: 2; width: 100%; margin: 22px 0 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .chapter-facts > div { padding: 21px 14px 25px; }
  .chapter-facts strong { font-size: 12px; letter-spacing: 0; }
  .chapter-facts span { margin-bottom: 9px; }
  .story-section { padding-block: 64px; }
  .story-section .story-copy { display: block; }
  .story-copy > * { width: 100%; }
  .story-section .story-copy > p:first-child { max-width: none; padding-left: 21px; margin-bottom: 32px; font-size: clamp(24px, 4.5vw, 32px); }
  .story-section .story-copy > h2, .story-section .story-copy > h3 { font-size: clamp(28px, 4.8vw, 36px); margin-top: 48px; }
  .story-copy > :is(h2, h3) + p { padding-top: 0; }
  .story-section .article-visuals { padding: 12px; gap: 12px; margin-block: 32px 48px; }
  .story-section .article-visuals .article-visual:first-child { aspect-ratio: 4 / 3; }
  .story-section .article-visuals .article-visual span { left: 15px; bottom: 13px; right: 15px; font-size: 13px; }
  .story-section .article-visuals .article-visual::before { display: none; }
  .story-section .data-grid { padding: 10px; margin-block: 30px 48px; }
  .story-section .data-grid > div { padding: 20px 15px; }
  .story-section .video-embed { min-height: 350px; margin-block: 35px 48px; }
  .story-section .video-embed.loaded { min-height: 0; }
  .story-section .film-vehicle-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 230px; }
  .story-section .film-vehicle-gallery .rental-gallery-card:first-child { grid-column: span 2; grid-row: auto; }
  .chapter-gallery .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 230px; gap: 14px; }
  .chapter-gallery .gallery-card:nth-child(7n+1) { grid-column: span 2; grid-row: auto; }
  .chapter-gallery .gallery-card span { left: 16px; bottom: 16px; font-size: 13px; }
}
@media (max-width: 440px) {
  .chapter-hero { padding-top: 104px; }
  .chapter-facts { grid-template-columns: 1fr; padding-block: 12px; }
  .chapter-facts > div, .chapter-facts > div:first-child { display: flex; align-items: baseline; gap: 16px; border-left: 0; padding: 10px 0; }
  .chapter-facts span { margin: 0; }
  .chapter-facts strong { font-size: 12px; }
  .story-section .article-visuals { grid-template-columns: 1fr; }
  .story-section .article-visuals .article-visual { aspect-ratio: 4 / 3; }
  .story-section .article-visuals .article-visual:first-child { grid-column: auto; }
  .story-section .data-grid { grid-template-columns: 1fr; }
  .story-section .data-grid > div { border-right: 0; }
  body[data-page="k-i-t-t-s-funktionen"] .story-copy > ul { grid-template-columns: 1fr; }
  .chapter-gallery .gallery-grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: 290px; }
  .chapter-gallery .gallery-card:nth-child(7n+1) { grid-column: auto; }
  .story-section .film-vehicle-gallery { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .story-section .film-vehicle-gallery .rental-gallery-card:first-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .chapter-hero .chapter-visual > img { animation: none; }
  .chapter-scroll span { transition: none; }
}

/* Leave room for letter outlines and keep every word inside the viewport. */
body[data-page] .chapter-hero .chapter-watermark {
  right: max(4vw, 20px);
  width: max-content;
  max-width: none;
  overflow: visible;
  padding: .04em .08em;
  box-sizing: content-box;
}
@media (max-width: 760px) {
  body[data-page] .chapter-hero .chapter-watermark {
    right: max(4vw, 16px);
    font-size: min(96px, 11vw);
  }
}
