/* Gemeinsame Grundlagen für den Rundgang und den HTML-Katalog. */
:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --ink: #272522;
  --muted: #655f56;
  --line: #d7cfc3;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: Arial, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
a { color: inherit; text-underline-offset: 5px; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #aa5834; outline-offset: 5px; }
.brand-name { display: flex; align-items: center; gap: 13px; font-family: Georgia, serif; font-size: 25px; line-height: 1.2; letter-spacing: -.04em; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 25px; font-size: 12px; }
nav button, .close-button { padding: 10px 0; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 5px; }
main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.eyebrow { margin: 0; font-size: 12px; line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 17px 0 9px; font-size: clamp(30px, 2.7vw, 48px); font-weight: 400; line-height: 1.1; letter-spacing: -.045em; }
h1 em { font-family: Georgia, serif; font-weight: 400; }

/* Werkdetails im Dialog und auf der Katalogseite. */
.project-detail[data-project-room="photos"] > h2,
.project-detail[data-project-room^="visual-"] > h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; }
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; }
.pixel-image { image-rendering: pixelated; }
figure img + img { margin-top: 18px; }
figcaption { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.museum-process-gallery { display: grid; gap: 30px; margin-top: 28px; }
.museum-process-gallery figcaption { font-size: 13px; }
.detail-layout h3 { margin: 0 0 8px; font-size: 15px; font-weight: 500; }
.detail-layout p { margin: 0 0 24px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.animal-character-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; margin-top: 28px; }
.animal-character-grid figure { padding: 18px; background: #f3eee4; border-radius: 14px; }
.animal-character-grid img { max-width: 200px; margin-inline: auto; }
.animal-character-grid figcaption { margin-top: 12px; overflow-wrap: anywhere; hyphens: auto; }
.animal-character-grid figcaption strong { display: block; margin-bottom: 3px; color: var(--ink); font: 22px Georgia, serif; }
.animal-character-grid figcaption span { display: block; }
.minime-mobile-image { max-width: 320px; margin-inline: auto; }
.app-mobile-detail { max-height: 620px; object-fit: contain; }
.minime-gallery, .research-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 28px; margin-top: 32px; }
.research-section { margin-top: 40px; }
.research-section > h3 { margin: 0 0 20px; font-size: 18px; font-weight: 500; }
.research-section .research-gallery { margin-top: 0; }
.research-diagram { background: #fff; }
.thesis-presentation { max-width: 640px; }
.thesis-title { font-size: 14px; line-height: 1.75; }
.thesis-title summary { cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.thesis-title p { margin-top: 16px; }
.irie-logo { max-width: 300px; margin-inline: auto; }
.irie-gallery { display: grid; gap: 32px; margin-top: 36px; }
.irie-results { width: min(100%, 640px); justify-self: center; }
.minime-mobile-study { grid-column: 1 / -1; justify-self: center; width: min(100%, 320px); }
.detail-poster { min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; gap: 25px; padding: 28px; background: #243646; color: #fbf5e9; }
.kinbot-work .kinbot-logo { width: 40px; height: 40px; object-fit: contain; }
.detail-poster.kinbot-work {
  position: relative; border-radius: 18px; border: 1px solid #b882f54d; color: #c7bad6;
  background: radial-gradient(ellipse at 0 0, #7138b34d, transparent 70%), radial-gradient(ellipse at 100% 100%, #d64b8a38, transparent 70%), #100c1c;
}
.kinbot-brand { display: flex; align-items: center; gap: 12px; color: #f6efff; font-size: 24px; }
.detail-poster.kinbot-work .locale-label { align-self: flex-start; padding: 6px 12px; border: 1px solid #bd8fe33d; border-radius: 999px; color: #dbbfef; background: #ffffff0b; }
.detail-poster.kinbot-work .hello-title { font-family: Arial, sans-serif; font-weight: 700; background: linear-gradient(135deg, #b882f5, #ed78b4, #ffb59c); background-clip: text; color: transparent; }
.detail-poster.kinbot-work .merge-label { padding-top: 18px; border-top: 1px solid #bda4d32b; }
.detail-poster .hello-title { font-family: Georgia, serif; font-size: 65px; font-weight: 400; }
.locale-label, .merge-label { font-size: 12px; line-height: 1.6; }
.poster-application { max-width: 760px; }
.project-detail > .eyebrow { margin: -12px 0 28px; }
.archive-note { color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 240px); gap: 22px 36px; align-items: start; margin-top: 22px; }
.about-portrait { grid-column: 2; grid-row: 1; display: block; width: 100%; height: auto; }
.about-copy { grid-column: 1; grid-row: 1; max-width: 650px; font-size: 16px; line-height: 1.8; }
.about-copy p { margin: 0 0 22px; }

@media (max-width: 900px) {
  .brand-name { gap: 11px; font-size: 23px; }
  nav { gap: 8px 22px; min-height: 40px; }
  h1 { font-size: clamp(28px, 5.6vw, 38px); }
  .detail-layout, .minime-gallery, .research-gallery { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .animal-character-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .animal-character-grid figure { padding: 12px; }
  .animal-character-grid figcaption strong { font-size: 19px; }
}
@media (max-width: 600px) {
  .about-layout { grid-template-columns: minmax(0, 1fr); }
  #about-view .about-portrait { grid-column: 1; grid-row: 1; max-width: 200px; }
  .about-copy { grid-column: 1; grid-row: 2; }
}

/* Gemeinsame Werkansichten. Die Originaldateien bleiben unverändert. */
.art-study { background: #e8e0d1; }
.project-role { padding: 12px 0; margin: 0 0 26px; border-block: 1px solid #d7cfc3; font-size: 13px; line-height: 1.7; }
.project-role strong { margin-right: 12px; }
.church-study, .prop-study { max-width: 240px; margin-inline: auto; }
.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.asset-grid img { width: 100%; max-width: 220px; height: auto; margin-inline: auto; background: #e8e0d1; }
.variant-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.variant-grid img { max-width: 120px; }
.animation-study { margin-top: 28px; }
.frame-player { font-size: 14px; line-height: 1.6; }
.frame-player input { margin: 0 8px 0 0; accent-color: #302b23; }
.frame-player label { cursor: pointer; }
.frame-viewport, .strip-viewport { position: relative; display: block; width: min(100%, 240px); aspect-ratio: 1; overflow: hidden; margin-top: 16px; background: #e8e0d1; }
.frame-viewport .animation-frame { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: contain; opacity: 0; }
.frame-viewport .animation-frame:first-child { opacity: 1; }
/* Je ein Zehntel der Sekunde sichtbar: zehn unveränderte Einzelbilder. */
.frame-player input:checked ~ .frame-viewport .animation-frame { animation: show-asset-frame 1s steps(1, end) infinite; animation-delay: calc(var(--frame) * .1s); }
@keyframes show-asset-frame { 0% { opacity: 1; } 10%, 100% { opacity: 0; } }
/* Der Originalstreifen enthält elf gleich breite Bilder. */
.strip-viewport .bat-strip { width: 1100%; max-width: none; height: 100%; margin: 0; }
.frame-player input:checked ~ .strip-viewport .bat-strip { animation: bat-flight 1.1s steps(11, end) infinite; }
@keyframes bat-flight { to { transform: translateX(-100%); } }
.motion-note { display: none; font-size: 12px; }
/* Prozessmaterial bleibt normales HTML und wird erst in der Werkansicht geladen. */
.process-study { padding-top: 28px; border-top: 1px solid #d7cfc3; }
.process-kicker { margin: 0 0 10px; color: #6b6357; font-size: 11px; line-height: 1.6; letter-spacing: .09em; text-transform: uppercase; }
.process-study > h3 { margin-bottom: 16px; }
.process-copy { max-width: 720px; margin: 0 0 26px; font-size: 14px; line-height: 1.8; color: #625d54; }
.process-note { margin: 20px 0 0; max-width: 760px; font-size: 12px; line-height: 1.75; color: #6b6357; }
.project-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #202a25; }
/* DILIBAD: gemeinsames Spiel, eigener Beitrag und Originalgrafiken getrennt zeigen. */
.project-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 28px 0 36px; padding-block: 20px; border-block: 1px solid #d7cfc3; }
.project-facts dt { margin-bottom: 8px; color: #655f56; font-size: 11px; }
.project-facts dd { margin: 0; font-family: Georgia, serif; font-size: 22px; line-height: 1.3; }
.contribution-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 36px; }
.contribution-grid h3 { margin: 0 0 14px; font-size: 16px; font-weight: 500; line-height: 1.5; }
.contribution-grid section > p:last-child { margin: 0; color: #625d54; font-size: 14px; line-height: 1.8; }
.effect-study-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.effect-study-grid figure { display: flex; flex-direction: column; align-items: center; padding: 26px 16px 20px; border-radius: 12px; background: #293b4d; text-align: center; }
.effect-study-grid img { width: 96px; max-width: 100%; height: auto; image-rendering: pixelated; }
.effect-study-grid figcaption { color: #dce2e6; }
.effect-study-grid strong, .effect-study-grid span { display: block; }
.effect-study-grid strong { color: #fbfaf7; font-size: 13px; font-weight: 500; }
.effect-study-grid span { margin-top: 4px; color: #b7c1cb; font: 10px monospace; }
.product-variant-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; padding: 24px; background: #edece6; }
.product-variant-grid figure { min-width: 0; }
.product-variant-grid img { width: 100%; height: auto; max-height: 220px; object-fit: contain; }
.product-variant-grid figcaption { margin-top: 12px; text-align: center; font-size: 12px; }
.process-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.process-step { display: block; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid #d7cfc3; font-size: 12px; }
.process-comparison a { display: block; }
.process-comparison img { display: block; width: 100%; height: auto; border: 1px solid #d7cfc3; }
.board-study-stack { display: grid; align-content: start; gap: 28px; }
.design-board-detail { display: block; width: 100%; height: auto; border: 1px solid #d7cfc3; border-radius: 8px; background: #f3f5f2; overflow: hidden; }
.board-overview { margin-top: 28px; font-size: 14px; line-height: 1.7; }
.board-overview summary { cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.board-overview figure { margin-top: 18px; }
.assembly-study { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 36px; }
.assembly-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.assembly-inputs img { max-width: 140px; }
.assembly-inputs figcaption { font-size: 12px; text-align: center; }
.assembly-result { margin: 0; }
.assembly-result .frame-viewport { width: min(100%, 320px); }
.layer-stack > img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: contain; }
.asset-organisation { margin-top: 28px; padding: 22px; border: 1px solid #d7cfc3; }
.asset-organisation h4 { margin: 0 0 12px; font-size: 15px; font-weight: 500; }
.asset-organisation > p { font-size: 13px; line-height: 1.8; }
.asset-organisation > code { display: block; padding: 14px; background: #ede8dc; overflow-wrap: anywhere; font-size: 12px; line-height: 1.7; }
.identity-system { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 24px; padding: 26px; background: #eef3ef; border: 1px solid #c7d3ce; }
.identity-system > * { min-width: 0; }
.identity-mark img { max-width: 190px; margin-inline: auto; }
.identity-mark figcaption { font-size: 12px; }
.identity-system h4 { margin: 0 0 20px; font-size: 12px; font-weight: 500; }
.identity-system p { margin: 18px 0 0; font-size: 12px; line-height: 1.75; color: #53615c; }
.system-swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.system-swatches > span { font-size: 11px; line-height: 1.8; }
.system-swatches i { display: block; height: 54px; margin-bottom: 8px; border: 1px solid #c7d3ce; }
.system-swatches code { display: block; font-size: 11px; }
.component-samples { display: grid; gap: 10px; color: #0f172a; font-family: Arial, sans-serif; font-size: 13px; }
.sample-label { font-weight: 600; font-size: 12px; }
.sample-field { padding: 10px 12px; border: 1px solid #d7e0e3; border-radius: 10px; background: #f2f6f6; }
.sample-action, .sample-secondary { padding: 12px; border-radius: 10px; text-align: center; font-weight: 700; }
.sample-action { background: #2f6b71; color: #f0f5f5; }
.sample-secondary { border: 1px solid #d7e0e3; }
@media (max-width: 760px) {
  .identity-system { grid-template-columns: 1fr; gap: 28px; padding: 22px; }
  .identity-mark { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
  .identity-mark figcaption { margin: 0; }
  .system-swatches i { height: 64px; }
}
@media (max-width: 600px) {
  .identity-mark { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .identity-mark img { max-width: 160px; }
  .identity-mark figcaption { text-align: center; }
  .project-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .project-facts > div:last-child { grid-column: 1 / -1; }
  .project-facts dd { font-size: 17px; }
  .contribution-grid { grid-template-columns: 1fr; gap: 28px; }
  .effect-study-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .effect-study-grid figure { padding: 20px 12px 16px; }
  .effect-study-grid img { width: 64px; }
  .product-variant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; gap: 20px 12px; }
  .product-variant-grid img { max-height: 180px; }
  .process-comparison, .assembly-study { grid-template-columns: 1fr; gap: 28px; }
  .assembly-result .frame-viewport { width: min(100%, 280px); }
  .system-swatches code { font-size: 11px; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .variant-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .frame-player input, .frame-player label { display: none; }
  .frame-player input:checked ~ .frame-viewport .animation-frame { animation: none; opacity: 0; }
  .frame-player input:checked ~ .frame-viewport .animation-frame:first-child { opacity: 1; }
  .frame-player input:checked ~ .strip-viewport .bat-strip { animation: none; }
  .motion-note { display: block; }
}

/* Consistent project presentation, November 2026. */
.pioneer-pair { display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:start; }
.pioneer-pair > figure { min-width:0; margin:0; }
.pioneer-pair .detail-image { height:220px; width:100%; object-fit:contain; image-rendering:pixelated; }
.pioneer-pair .frame-viewport { height:220px; width:100%; margin:0 0 12px; }
.pioneer-pair .frame-player { display:flex; flex-wrap:wrap; align-items:center; }
.pioneer-pair .frame-viewport { order:-1; }
.pioneer-pair .frame-player label { font-size:12px; }
.lead-project { grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:28px; }
.project-detail > .detail-layout > figure > .detail-image { max-height:440px; object-fit:contain; }
.project-detail .detail-copy h3 { margin-top:24px; }
.project-detail .detail-copy h3:first-child { margin-top:0; }
@media(max-width:760px) {
            .lead-project { grid-template-columns:1fr; }
 .pioneer-pair .detail-image, .pioneer-pair .frame-viewport { height:160px; }
}

