/* =========================================================
   Abschnitte nach dem Einstieg
   Aufbau: Grundlagen, dann je Abschnitt Desktop-Regeln,
   ganz unten die Umbrüche (1100, 900, 700, 520 px).
   ========================================================= */

/* ---------- Grundlagen ---------- */
.nur-leser { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ab { position: relative; z-index: 1; display: flow-root; }
.ab.hell { background: #f2f2f0; color: #0a0a0a; }
.ab.dunkel { background: #0a0a0a; color: #f2f2f0; }
.ab .rahmen { width: min(1320px, 100% - 80px); margin: 0 auto; }

/* Flüssige Kante: die neue Farbe steigt wie Wasser hoch (Form setzt abschnitte.js) */
.welle { position: absolute; left: 0; right: 0; top: -159px; height: 160px; width: 100%; display: block; pointer-events: none; }
.ab.hell .welle { fill: #f2f2f0; }
.ab.dunkel .welle { fill: #0a0a0a; }

.ab-kopf { padding: 150px 0 70px; max-width: 1100px; }
.ab-titel { font-family: var(--kopf); font-weight: 700; font-size: clamp(48px, 7.4vw, 120px); line-height: .95; letter-spacing: -0.05em; }
.ab-text { max-width: 640px; font-size: 19px; line-height: 1.6; margin-top: 28px; color: inherit; opacity: .78; }

/* Zeilen, die aus einer Maske steigen, und weiches Einblenden */
.zh { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.zh > span { display: inline-block; transition: transform 1.25s var(--feder); }
.tl-live .zeig:not(.da) .zh > span { transform: translateY(112%); }
.zeig .zh:nth-child(2) > span { transition-delay: .08s; }
.zeig .zh:nth-child(3) > span { transition-delay: .16s; }
.zeig .zh:nth-child(4) > span { transition-delay: .24s; }
.blend { transition: opacity 1s var(--feder) .2s, transform 1s var(--feder) .2s; }
.tl-live .blend:not(.da) { opacity: 0; transform: translateY(20px); }

/* ---------- Der Weg: waagerechte Zeitleiste, die beim Scrollen mitläuft ---------- */
.weg { height: 420vh; }
.weg-buehne { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.weg-spur { flex: 1; display: flex; width: max-content; will-change: transform; }

.station { position: relative; width: 100vw; flex: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; align-content: center; gap: 0 40px; padding: 0 40px; }
.station .jahr { position: relative; z-index: 1; grid-column: 1; grid-row: 1; font-family: var(--kopf); font-weight: 800; font-size: clamp(110px, 19vw, 320px); line-height: .8; letter-spacing: -0.07em; color: transparent; -webkit-text-stroke: 2px #0a0a0a; transition: color .9s var(--feder); }
.station.aktiv .jahr { color: #0a0a0a; }
.station .station-text { position: relative; z-index: 1; grid-column: 1; grid-row: 2; margin-top: 34px; max-width: 560px; }
.station h3 { font-family: var(--kopf); font-weight: 700; font-size: clamp(36px, 4vw, 64px); line-height: 1; letter-spacing: -0.04em; }
.station p { font-size: 19px; line-height: 1.6; margin-top: 18px; max-width: 520px; color: #3a3a3a; }

/* Prägendes Motiv je Station, rechts mit Abstand zum Rand */
.motiv { position: absolute; right: 7vw; top: 50%; width: 38vw; height: 64vh; transform: translateY(-50%) scale(.95); display: flex; align-items: center; justify-content: center; opacity: .09; transition: opacity 1.1s var(--feder), transform 1.6s var(--feder); pointer-events: none; z-index: 0; }
.station.aktiv .motiv { opacity: .17; transform: translateY(-50%); }
.station:first-child .motiv { opacity: .3; }
.station:first-child.aktiv .motiv { opacity: .55; }
.station:last-child .motiv { height: 30vh; }
.motiv img, .motiv svg { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.motiv svg { height: 100%; }
.motiv .m-dach { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(ellipse at center, #000 45%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 45%, transparent 75%); }
.motiv .m-breit { width: 100%; }
.motiv .m-farbe { display: none; }

.weg-unten { padding: 0 40px 44px; display: flex; align-items: center; gap: 18px; }
.weg-unten span { font-family: var(--mono); font-size: 12px; color: #6a6a6a; }
.weg-bahn { flex: 1; height: 1px; background: #cfcfcb; position: relative; }
.weg-bahn i { position: absolute; left: 0; top: 0; height: 1px; background: #0a0a0a; width: 0; }

/* ---------- Referenzen ---------- */
#arbeit .ab-kopf { padding-bottom: 50px; }

/* Umschalter */
.pr-tabs { display: flex; flex-wrap: wrap; gap: 4px 30px; border-bottom: 1px solid #262626; }
.pr-tab { background: none; border: 0; color: #6a6a6a; font: 600 clamp(20px, 1.9vw, 28px)/1 var(--kopf); letter-spacing: -0.03em; padding: 0 0 14px; cursor: pointer; position: relative; transition: color .4s; }
.pr-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #f2f2f0; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--feder); }
.pr-tab:hover { color: #b9b9b9; }
.pr-tab.an { color: #f2f2f0; }
.pr-tab.an::after { transform: scaleX(1); }
.pr-tab:focus { outline: none; }
.pr-tab:focus-visible { outline: 2px solid #f2f2f0; outline-offset: 6px; border-radius: 4px; }

/* Ein Produkt: Raster mit Trennlinien, Text | Bild | Ansichten, darunter Technik und Ergebnis */
.pr { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr) 122px; gap: 0; align-items: stretch; border-bottom: 1px solid #262626; }
.pr.an { display: grid; }
.pr-text { padding: 34px 40px 34px 0; }
.pr-text > * { transition: opacity .6s var(--feder), transform .8s var(--feder); }
.pr.rein .pr-text > * { opacity: 0; transform: translateY(14px); }
.pr-text h3 { font-family: var(--kopf); font-weight: 700; font-size: clamp(28px, 2.5vw, 40px); line-height: 1.05; letter-spacing: -0.04em; }
.pr-text > p { font-size: 16.5px; line-height: 1.7; margin-top: 18px; color: #a9a9a9; }
.pr-liste { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.pr-liste li { padding: 0 0 0 22px; position: relative; font-size: 15.5px; line-height: 1.5; color: #e2e2e0; }
.pr-liste li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: #6a6a6a; }

.pr-buehne { margin: 0; padding: 34px 32px; border-left: 1px solid #262626; }
.pr-bild { position: relative; border-radius: 12px; overflow: hidden; background: #111; aspect-ratio: 3024 / 1718; box-shadow: 0 50px 100px -50px rgba(255,255,255,.12), 0 0 0 1px #222; }
.pr-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; display: block; }
.pr-titel { font-size: 14px; color: #8a8a8a; margin-top: 12px; }

.pr-daumen { display: flex; flex-direction: column; gap: 10px; padding: 34px 0 34px 26px; border-left: 1px solid #262626; scrollbar-width: none; }
.pr-daumen::-webkit-scrollbar { display: none; }
.pr-daumen-b { flex: none; width: 96px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; color: #7a7a7a; font: 13px/1.3 'IBM Plex Sans', sans-serif; }
.pr-daumen-b img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; object-position: 0 0; border-radius: 6px; display: block; opacity: .45; transition: opacity .4s, box-shadow .4s; box-shadow: 0 0 0 1px #262626; }
.pr-daumen-b span { display: none; }
.pr-daumen-b:hover img { opacity: .8; }
.pr-daumen-b.an { color: #f2f2f0; }
.pr-daumen-b.an img { opacity: 1; box-shadow: 0 0 0 1px #f2f2f0; }

.pr-fuss { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; gap: 0; border-top: 1px solid #262626; transition: opacity .6s var(--feder) .1s, transform .8s var(--feder) .1s; }
.pr.rein .pr-fuss { opacity: 0; transform: translateY(14px); }
.pr-fuss > div { padding: 24px 40px 28px 0; }
.pr-fuss > div:last-child { grid-column: 2 / -1; padding: 24px 32px 28px; border-left: 1px solid #262626; }
.pr-fuss dt { font-size: 13px; color: #7a7a7a; }
.pr-fuss dd { font-size: 16px; line-height: 1.6; color: #d8d8d6; margin-top: 4px; }
.pr-fuss div:last-child dd { color: #f2f2f0; font-size: 18px; line-height: 1.5; }

/* Und noch mehr */
.mehr-titel { font-family: var(--kopf); font-weight: 700; font-size: clamp(36px, 4.4vw, 64px); letter-spacing: -0.045em; line-height: 1; margin-top: 140px; }
.apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: color-mix(in srgb, currentColor 14%, transparent); border: 1px solid color-mix(in srgb, currentColor 14%, transparent); margin: 36px 0 140px; }
.app { background: var(--ab-bg, #0a0a0a); padding: 28px 24px 32px; min-height: 200px; display: flex; flex-direction: column; transition: background .5s; }
.app:hover { background: color-mix(in srgb, var(--ab-bg, #0a0a0a) 92%, currentColor); }
.app h4 { font-family: var(--kopf); font-weight: 600; font-size: 24px; letter-spacing: -0.03em; }
.app p { font-size: 15px; line-height: 1.55; color: currentColor; opacity: .62; margin-top: 10px; }

/* ---------- Über mich ---------- */
.mich { padding-bottom: 230px; }
.mich-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.hobbys { list-style: none; }
.hobbys li { font-family: var(--kopf); font-weight: 700; font-size: clamp(40px, 5vw, 76px); letter-spacing: -0.045em; line-height: 1.12; border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); padding: 6px 0; display: flex; justify-content: space-between; align-items: baseline; transition: padding .6s var(--feder); }
.hobbys li:hover { padding-left: 18px; }
.mich-schluss { font-family: var(--kopf); font-weight: 600; font-size: clamp(22px, 2vw, 30px); line-height: 1.25; letter-spacing: -0.02em; margin-top: 34px; max-width: 22ch; }

.mich-medien { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mich-medien figure { position: relative; overflow: hidden; border-radius: 6px; background: #ddd; }
.mich-medien img, .mich-medien video { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); transition: filter 1.2s var(--feder); }
.mich-medien .hoch { aspect-ratio: 3 / 4; }
.mich-medien .quer { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.mich-medien figure.farbig video { filter: none; }

/* Bei Hover ein zweites Foto */
.mich-medien .tausch img { transition: opacity .7s var(--feder), transform 1.2s var(--feder), filter 1.2s var(--feder); }
.mich-medien .tausch .alt { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); }
.mich-medien .tausch:hover .alt { opacity: 1; transform: scale(1); }
.mich-medien .tausch:hover img:not(.alt) { transform: scale(1.04); }

/* Videos: Farbe und Ton beim Drüberfahren, Hinweis unten rechts */
.hover-video { cursor: pointer; }
.hover-video video { filter: grayscale(1) contrast(1.05); transition: filter 1.2s var(--feder); }
.hover-video.farbig video { filter: none; }
.ton-hinweis { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px 0 15px; border-radius: 999px; background: #f2f2f0; color: #111; font: 600 14px/1 'IBM Plex Sans', sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.35); pointer-events: none; transition: opacity .5s var(--feder), transform .5s var(--feder); }
.ton-hinweis svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.ton-hinweis .lsp { fill: currentColor; stroke: none; }
.hover-video.ton-an .ton-hinweis { background: #0a0a0a; color: #f2f2f0; }

/* Schluss: Dank und Video */
.schluss { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 72px; align-items: end; margin-top: 120px; }
.schluss-text { font-family: var(--kopf); font-weight: 600; font-size: clamp(26px, 2.8vw, 42px); line-height: 1.2; letter-spacing: -0.03em; max-width: 24ch; }
.schluss-video { position: relative; overflow: hidden; border-radius: 6px; background: #111; aspect-ratio: 9 / 16; margin: 0; }
/* Fächer: Video gerade vorn, dahinter zwei Fotos nach links aufgefächert, alle gleich groß */
.faecher { position: relative; margin-right: 30px; isolation: isolate; }
.faecher .schluss-video, .faecher-foto { transform-origin: 50% 50%; transition: transform .9s var(--feder), filter 1.2s var(--feder); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.faecher .schluss-video { z-index: 2; }
.faecher-foto { position: absolute; inset: 0; margin: 0; z-index: 1; border-radius: 6px; overflow: hidden; background: #111; transform: translateX(-64%) rotate(-8deg); }
.faecher-links { z-index: 0; transform: translateX(-128%) rotate(-16deg); }
.faecher-links img { transform: scaleX(-1); }
.faecher-foto img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05) brightness(.85); transition: filter 1.2s var(--feder); }

.faecher-foto:hover img { filter: none; }
@media (hover: hover) {
  .faecher:hover .faecher-foto { transform: translateX(-96%) rotate(-11deg); }
  .faecher:hover .faecher-links { transform: translateX(-185%) rotate(-22deg); }
}

/* ---------- KI-Workflow ---------- */
#ki .ab-kopf { max-width: none; }
#ki .ab-text b { color: #f2f2f0; font-weight: 600; }
.ki-raster { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; align-items: start; padding-bottom: 230px; }
.term { background: #121212; border: 1px solid #262626; border-radius: 14px; overflow: hidden; font-family: var(--mono); font-size: 13px; line-height: 1.75; }
.term-leiste { height: 38px; border-bottom: 1px solid #262626; display: flex; align-items: center; padding: 0 16px; color: #8f8f8f; font-size: 11px; letter-spacing: .1em; }
.term pre { padding: 20px 22px 26px; min-height: 420px; white-space: pre-wrap; color: #cfcfcd; }
.term .du, .term .ok { color: #f2f2f0; }
.term .tl { color: #8a8a8a; }
.term .ka { color: #6a6a6a; }
.mcp { position: relative; height: 340px; margin-top: 40px; }
.mcp .knoten { position: absolute; transform: translate(-50%, -50%); background: #121212; border: 1px solid #333; border-radius: 999px; padding: 10px 18px; font-size: 14px; white-space: nowrap; }
.mcp .knoten.mitte { background: #f2f2f0; color: #0a0a0a; border-color: #f2f2f0; font-weight: 600; padding: 14px 24px; }
.mcp .knoten small { display: block; font-family: var(--mono); font-size: 10px; color: #9a9a9a; letter-spacing: .08em; }
.mcp svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mcp svg line { stroke: #3a3a3a; stroke-width: 1; stroke-dasharray: 4 6; animation: mcp-fluss 1.2s linear infinite; }
@keyframes mcp-fluss { to { stroke-dashoffset: -20; } }
.regeln { list-style: none; counter-reset: r; }
.regeln li { counter-increment: r; border-top: 1px solid #262626; padding: 26px 0; }
.regeln li::before { content: counter(r, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: #6a6a6a; }
.regeln b { display: block; font-family: var(--kopf); font-weight: 600; font-size: 28px; letter-spacing: -0.025em; margin-top: 8px; }
.regeln p { font-size: 17px; line-height: 1.6; color: #9a9a9a; margin-top: 8px; }

/* ---------- Werkzeuge ---------- */
.werk { padding-bottom: 230px; }
.werk-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
.werk-gruppe { border-top: 1px solid #0a0a0a; padding: 18px 0 40px; }
.werk-gruppe h3 { font-family: var(--kopf); font-weight: 600; font-size: 15px; color: #6a6a6a; }
.werk-gruppe ul { list-style: none; margin-top: 14px; }
.werk-gruppe li { font-size: 20px; line-height: 1.55; letter-spacing: -0.01em; }

/* ---------- Kontakt ---------- */
.kontakt { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 140px 0 40px; }
.kontakt .gross-mail { font-family: var(--kopf); font-weight: 700; font-size: clamp(30px, 7vw, 120px); max-width: 100%; overflow-wrap: anywhere; letter-spacing: -0.05em; line-height: 1; display: inline-block; margin-top: 40px; position: relative; }
.kontakt .gross-mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .7s var(--feder); }
.kontakt .gross-mail:hover::after { transform: scaleX(1); transform-origin: left; }
.kontakt-zeilen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 90px; border-top: 1px solid #262626; padding-top: 28px; }
.kontakt-zeilen dt { font-size: 15px; color: #7a7a7a; }
.kontakt-zeilen dd { font-size: 20px; margin-top: 8px; }
.kontakt-fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; margin-top: 90px; font-size: 14px; color: #6a6a6a; }
.kontakt-fuss a { color: inherit; text-underline-offset: 3px; }
.kontakt-fuss a:hover { color: #f2f2f0; }

/* =========================================================
   Umbrüche
   ========================================================= */
@media (min-width: 901px) {
  /* Referenzen: Überschrift links, Text rechts */
  #arbeit .ab-kopf { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: end; }
  #arbeit .ab-kopf .ab-text { margin-top: 0; max-width: 620px; justify-self: end; }
  /* Über mich: Schlusssatz bündig mit der Unterkante des Videos */
  .mich-raster { align-items: stretch; }
  .mich-links { display: flex; flex-direction: column; }
  .mich-schluss { margin-top: auto; padding-top: 34px; margin-bottom: -.18em; }
}

@media (max-width: 1100px) {
  .pr { grid-template-columns: minmax(0, 1fr) 122px; }
  .pr-text { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; padding: 30px 0; border-bottom: 1px solid #262626; }
  .pr-text h3, .pr-text > p { grid-column: 1; }
  .pr-liste { grid-column: 2; grid-row: 1 / span 3; }
  .pr-buehne { padding: 30px 30px 30px 0; border-left: 0; }
  .pr-fuss { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pr-fuss > div:first-child { grid-column: 1; }
  .pr-fuss > div:last-child { grid-column: 2 / -1; padding: 24px 0 28px 26px; }
}

@media (max-width: 900px) {
  .ab .rahmen { width: calc(100% - 40px); }
  .ab-kopf { padding: 110px 0 50px; }

  /* Der Weg wird zur senkrechten Liste */
  .weg { height: auto; padding-bottom: 190px; }
  .weg-buehne { position: static; height: auto; }
  .weg-spur { flex-direction: column; width: auto; transform: none !important; } /* überstimmt den Inline-Transform aus abschnitte.js */
  .weg-unten { display: none; }
  .station { width: auto; grid-template-columns: 1fr; padding: 40px 20px; }
  .station .jahr { color: #0a0a0a; }
  /* Das Dach bleibt als großes Bild hinter der Jahreszahl */
  .station:first-child .motiv, .station:first-child.aktiv .motiv { right: -10px; top: -10px; width: 92%; height: 300px; transform: none; justify-content: flex-end; opacity: .45; }
  /* Die Logos stehen klein unter dem Text */
  .station:not(:first-child) .motiv { position: static; grid-column: 1; grid-row: 3; width: auto; height: 40px; margin: 22px 0 26px; opacity: 1; transform: none; justify-content: flex-start; }
  .station:not(:first-child):last-child .motiv { height: 28px; }
  .station:not(:first-child) .motiv img, .station:not(:first-child) .motiv svg { height: 100%; width: auto; max-width: 70%; }
  .motiv .m-breit { display: none; }
  .motiv .m-farbe { display: block; }

  /* Referenzen: Reiter waagerecht wischbar und klebend */
  .pr-tabs { position: sticky; top: 0; z-index: 5; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; gap: 26px; margin: 0 -20px; padding: 16px 20px 0; background: var(--ab-bg, #0a0a0a); white-space: nowrap; }
  .pr-tabs::-webkit-scrollbar { display: none; }
  .pr-tab { flex: none; font-size: 22px; }
  .pr-tab::after { bottom: 0; }
  .pr-wrap { padding-bottom: 10px; }
  .apps { grid-template-columns: 1fr 1fr; }

  .mich-raster, .ki-raster, .werk-raster { grid-template-columns: 1fr; gap: 50px; }
  .kontakt-zeilen { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 700px) {
  .pr { grid-template-columns: 1fr; }
  .pr-text { display: block; }
  .pr-buehne { padding: 24px 0; }
  .pr-daumen { flex-direction: row; overflow-x: auto; padding: 0 0 24px; border-left: 0; }
  .pr-fuss { grid-template-columns: 1fr; }
  .pr-fuss > div, .pr-fuss > div:last-child { grid-column: 1; padding: 20px 0; border-left: 0; }
  .pr-fuss > div:last-child { border-top: 1px solid #262626; }
  #ki .ab-titel { font-size: 9.4vw; }
}

@media (max-width: 900px) {
  .schluss { grid-template-columns: 1fr; gap: 40px; margin-top: 90px; }
  .faecher { width: 130px; margin: 20px 0 40px calc(50% + 40px); }
  .faecher .ton-hinweis { height: 34px; padding: 0 12px 0 10px; gap: 6px; font-size: 11.5px; right: 8px; bottom: 10px; white-space: nowrap; }
  .faecher .ton-hinweis svg { width: 14px; height: 14px; }
}

@media (max-width: 520px) {
  .kontakt .gross-mail { font-size: 8.6vw; }
  .apps { grid-template-columns: 1fr; }
}
/* Der Club-Clip ist fast nur rot beleuchtet, in Schwarz-Weiß wäre er sonst fast schwarz */
.schluss-video video { width: 100%; height: 100%; object-fit: cover; display: block; filter: url(#rot-grau) contrast(1.08); }
.schluss-video.farbig video { filter: none; }

/* Kachel-Übergang: Leinwand liegt kurz über Bild oder Video */
.kachel-schicht { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }

/* KI-Workflow: klebende Bühne links, Schritte rechts */
.ki-buehne { position: sticky; top: 14vh; height: 480px; }
.ki-szene { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .6s var(--feder), transform .8s var(--feder); pointer-events: none; }
.ki-szene.an { opacity: 1; transform: none; pointer-events: auto; }
.ki-szene .mcp { margin-top: 0; }
.ki-szene .term pre { min-height: 400px; }
.karte-ki { background: #121212; border: 1px solid #262626; border-radius: 14px; overflow: hidden; }
.plan { padding: 26px 26px 30px; display: grid; gap: 22px; }
.plan dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #7a7a7a; }
.plan dd { font-size: 19px; line-height: 1.45; color: #f2f2f0; margin-top: 6px; }
.plan dd span { display: inline-block; font-size: 14px; border: 1px solid #333; border-radius: 999px; padding: 5px 12px; margin: 4px 6px 0 0; color: #cfcfcd; }
.haken { list-style: none; padding: 12px 26px 18px; }
.haken li { display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; padding: 14px 0; border-bottom: 1px solid #262626; }
.haken li:last-child { border-bottom: 0; }
.haken li::before { content: ""; grid-row: 1 / span 2; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: #f2f2f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230a0a0a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.haken b { font-weight: 600; font-size: 17px; color: #f2f2f0; }
.haken span { font-family: var(--mono); font-size: 12.5px; color: #8a8a8a; margin-top: 3px; }
@media (min-width: 901px) {
  .ki-raster { align-items: start; }
  .regeln li { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .35; transition: opacity .5s var(--feder); }
  .regeln li.an { opacity: 1; }
  .regeln li:first-child { min-height: 48vh; }
}
@media (max-width: 900px) {
  .ki-buehne { display: none; }
  .regeln .ki-szene { position: static; opacity: 1; transform: none; margin-bottom: 22px; }
  .regeln .ki-szene .mcp { height: 260px; }
}

/* KI-Workflow: Bühne und Schritte mittig im Bild, ohne Trennlinien */
@media (min-width: 901px) {
  /* Bühne beginnt auf Höhe des ersten Schritts und bleibt dann in der Bildmitte stehen */
  .ki-buehne { top: calc(50vh - 240px); margin-top: calc(32vh - 240px); }
  .regeln li, .regeln li:first-child { border-top: 0; min-height: 64vh; padding: 0; }
}
@media (max-width: 900px) { .regeln li { border-top: 0; } }

/* Checkliste aus dem Atlas-Projekt */
.liste-ki { padding: 18px 24px 40px; max-height: 400px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3a3a3a transparent; -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); }
.liste-ki::-webkit-scrollbar { width: 6px; } .liste-ki::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 3px; }
.liste-ki p { position: relative; padding: 5px 0 5px 28px; font-size: 14.5px; line-height: 1.45; color: #cfcfcd; }
.liste-ki p::before { content: ""; position: absolute; left: 0; top: 8px; width: 15px; height: 15px; border: 1.5px solid #5a5a5a; border-radius: 4px; }
.liste-ki p.ja::before { border-color: #f2f2f0; background: #f2f2f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230a0a0a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.liste-ki p.lk-kopf { padding-left: 0; margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #7a7a7a; }
.liste-ki p.lk-kopf:first-child { margin-top: 0; }
.liste-ki p.lk-kopf::before { display: none; }

.ki-hinweis { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: #8a8a8a; }
.ki-hinweis svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: hinweis-pfeil 1.8s ease-in-out infinite; }
@keyframes hinweis-pfeil { 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .ki-hinweis svg { animation: none; } }

/* Header: oben transparent, beim Runterscrollen weg, beim Hochscrollen mit dunklem Hintergrund wieder da */
.tl-nav { position: fixed; z-index: 60; transition: transform .5s var(--feder), background-color .4s, border-color .4s; border-bottom: 1px solid transparent; }
.tl-nav.kopf-fest { background: rgba(10, 10, 10, .95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: #222; }
.tl-nav.kopf-weg { transform: translateY(-100%); }
@media (max-width: 900px) { .pr-tabs { transition: top .5s var(--feder); } body.kopf-da .pr-tabs { top: 76px; } }

/* Menü auf dem Handy */
.nav-knopf { display: none; }
@media (max-width: 900px) {
  .nav-knopf { display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 44px; height: 44px; margin-right: -10px; padding: 0 10px; background: none; border: 0; cursor: pointer; }
  .nav-knopf span { display: block; width: 22px; height: 1.5px; background: #f2f2f0; transition: transform .4s var(--feder); }
  .tl-nav { flex-wrap: wrap; gap: 0 18px; height: auto; min-height: 64px; align-content: flex-start; }
  .tl-nav .name, .tl-nav .spr, .tl-nav .nav-knopf { height: 64px; display: flex; align-items: center; }
  .tl-nav.offen { background: rgba(10, 10, 10, .97); border-bottom-color: #222; padding-bottom: 22px; }
  .tl-nav.offen a:not(.spr):not(.name) { display: block; order: 5; width: 100%; padding: 12px 0; font-family: var(--kopf); font-weight: 600; font-size: 30px; letter-spacing: -0.03em; color: #f2f2f0; border-top: 1px solid #222; }
  .tl-nav.offen .nav-knopf span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .tl-nav.offen .nav-knopf span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
}
