/* Bastelbogen: every page is a printed sheet you could cut out.
   4c process colour + two spot colours on white board, Archivo across its width axis.
   Taste (typesafe-taste-index, adapted): claim-size headlines, exact numbers, flat fields, square corners,
   no soft shadows, springs for touch, nothing fades in on scroll. */
@import url('/fonts/fonts.css');

@property --fold { syntax: '<angle>'; inherits: true; initial-value: 0deg; }

:root {
  --white: #ffffff;
  --k: #141414;          /* process black: text, cut lines */
  --k2: #4a4a4a;         /* secondary text, 8.9:1 on white */
  --rule: #cfcfcf;
  --c: #00a0df;          /* cyan: fills only, black text on it */
  --m: #e2007a;          /* magenta: fills, white text 4.65:1; the touched cut line */
  --y: #ffe500;          /* yellow: fills, black text; "now" and dates */
  --blue: #1e3c8c;       /* spot "Nachtblau" */
  --or: #ff6b12;         /* spot "Laternenorange": black text only */
  --c-t: #ccecf9; --m-t: #fcd9ea; --y-t: #fff7b3;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --gut: clamp(16px, 3.2vw, 40px);
  --max: 1360px;
  --cut: 1.6px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);      /* anything you touch */
  --link-ease: cubic-bezier(.12, .23, .5, 1);
  --fold-ease: cubic-bezier(.7, 0, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--k);
  font-family: 'Archivo', system-ui, sans-serif; font-size: 17px; line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: text-decoration-thickness .5s var(--link-ease), text-underline-offset .5s var(--link-ease); }
a:hover { text-decoration-thickness: 2px; text-underline-offset: 5px; }
:focus-visible { outline: 3px solid var(--m); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; }
.skip { position: absolute; left: var(--gut); top: -60px; z-index: 20; padding: 12px 16px; background: var(--k); color: var(--white); font-weight: 750; }
.skip:focus { top: 8px; }

/* ---------- two type worlds ---------- */
.disp { font-weight: 900; font-stretch: 125%; letter-spacing: -0.02em; line-height: .9; }
.label { font-stretch: 75%; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; line-height: 1.35; }

/* ---------- print furniture ---------- */
.colorbar { display: grid; grid-template-columns: repeat(12, 1fr); height: 8px; }
.colorbar i { display: block; }
.colorbar i:nth-child(1) { background: var(--c); } .colorbar i:nth-child(2) { background: var(--m); }
.colorbar i:nth-child(3) { background: var(--y); } .colorbar i:nth-child(4) { background: var(--k); }
.colorbar i:nth-child(5) { background: var(--blue); } .colorbar i:nth-child(6) { background: var(--or); }
.colorbar i:nth-child(7) { background: var(--c-t); } .colorbar i:nth-child(8) { background: var(--m-t); }
.colorbar i:nth-child(9) { background: var(--y-t); } .colorbar i:nth-child(10) { background: #bdbdbd; }
.colorbar i:nth-child(11) { background: #7a7a7a; } .colorbar i:nth-child(12) { background: var(--white); box-shadow: inset 0 0 0 1px #bdbdbd; }
.reg { position: absolute; width: 18px; height: 18px; color: var(--k); pointer-events: none; }
.scissors { width: 26px; height: 18px; color: var(--k); }
.arr { width: 22px; height: 22px; flex: none; transition: transform .3s var(--spring); }

/* the dashed cut outline, drawn with gradients so the dashes are even on every edge */
.cutline {
  --dash: var(--k);
  background:
    linear-gradient(90deg, var(--dash) 60%, transparent 0) top left / 10px var(--cut) repeat-x,
    linear-gradient(90deg, var(--dash) 60%, transparent 0) bottom left / 10px var(--cut) repeat-x,
    linear-gradient(180deg, var(--dash) 60%, transparent 0) top left / var(--cut) 10px repeat-y,
    linear-gradient(180deg, var(--dash) 60%, transparent 0) top right / var(--cut) 10px repeat-y,
    var(--paper, var(--white));
}
a.cutline:hover, a.cutline:focus-visible { --dash: var(--m); }

/* the glue tab (Klebelasche) on the top edge of a part */
.tab {
  position: absolute; left: 16px; top: -26px; height: 26px; min-width: 52px; padding: 4px 14px 0;
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 100%, 0 100%);
  background: radial-gradient(circle, var(--tab, var(--accent, var(--m))) 30%, transparent 33%) 0 0 / 6px 6px, var(--white);
  font-stretch: 75%; font-weight: 750; font-size: 13px; line-height: 22px; letter-spacing: .04em; text-transform: uppercase; text-align: center; white-space: nowrap;
  transform-origin: 50% 100%; transition: transform .45s var(--spring);
}
.tab b { background: var(--white); padding: 0 4px; font-weight: 750; }
a:hover > .tab, a:focus-visible > .tab { transform: perspective(200px) rotateX(-55deg); }

/* ---------- buttons and the big link ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px;
  background: var(--k); color: var(--white); text-decoration: none; font-weight: 750; font-size: 17px;
}
.btn:hover .arr, .row:hover .arr, .cta:hover .arr, .door:hover .arr { transform: translateX(4px); }
.cta { display: inline-flex; flex-direction: column; gap: 6px; text-decoration: none; min-height: 44px; }
.cta-t { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; font-stretch: 112%; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.05; letter-spacing: -0.01em; transition: color .5s var(--link-ease); }
.cta-t .arr { width: 26px; height: 26px; }
.cta-bar { height: 4px; background: currentColor; transform-origin: 50% 0; transition: height .3s var(--spring); }
.cta:hover .cta-bar, .cta:focus-visible .cta-bar { height: 8px; }
.cta:hover .cta-t { color: var(--m); }

/* ---------- header ---------- */
.top { max-width: var(--max); margin: 0 auto; padding: var(--s3) var(--gut); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s6); }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: inherit; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; }
.mark { width: 46px; height: 23px; flex: none; color: var(--k); }
.wordmark { font-weight: 900; font-stretch: 125%; font-size: 22px; letter-spacing: .005em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none;
  font-weight: 700; font-size: 16px; box-shadow: inset 0 -3px 0 transparent; transition: box-shadow .3s var(--spring);
}
.nav a:hover { box-shadow: inset 0 -4px 0 var(--c); }
.nav a[aria-current] { background: var(--c); color: var(--on-c); }
@media (max-width: 899px) {
  .nav { margin-left: 0; width: 100%; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .nav a { padding: 0 8px; font-size: 15px; justify-content: center; }
}
@media (max-width: 420px) {
  .nav { grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .nav a { justify-content: flex-start; padding: 0 8px; font-size: 16px; }
}

/* ---------- page frame ---------- */
main > * { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: var(--gut); padding-right: var(--gut); }
main > .field { max-width: none; padding-left: max(var(--gut), (100% - var(--max)) / 2 + var(--gut)); padding-right: max(var(--gut), (100% - var(--max)) / 2 + var(--gut)); }
main > .guide { padding-left: 0; padding-right: 0; }
main > .guide > * { padding-left: var(--gut); padding-right: var(--gut); }

/* ---------- a sheet (Bogen) ---------- */
.bogen { position: relative; padding-top: var(--s7); padding-bottom: var(--s5); }
.bogen + .bogen { margin-top: var(--s7); }
.bogen > .reg.tl { left: calc(var(--gut) - 9px); top: 14px; } .bogen > .reg.tr { right: calc(var(--gut) - 9px); top: 14px; }
.bogen-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s5); align-items: center;
  margin-top: var(--s7); padding-top: var(--s3); color: var(--k2); border-top: 1px solid var(--k);
}
.bogen-foot .label b { color: var(--k); font-weight: 800; }
h2.disp { font-size: clamp(32px, 4.8vw, 64px); margin: 0 0 var(--s6); }

/* ---------- home: the hero sheet ---------- */
.now-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "title title" "due stage" "side stage" "steps steps"; grid-template-rows: auto auto 1fr auto; gap: var(--s5) var(--s7); align-items: start; }
.now-head { display: contents; }
.now-title { grid-area: title; margin: 0; font-weight: 900; font-stretch: 125%; letter-spacing: -0.025em; line-height: .86; font-size: clamp(44px, 8.6vw, 128px); hyphens: auto; }
.now-stage { grid-area: stage; }
.now-side { grid-area: side; display: flex; flex-direction: column; gap: var(--s5); }
.now-steps { grid-area: steps; }
.now-panel .due { grid-area: due; }
.now-facts { margin: 0; color: var(--k2); }
.now-lede { margin: 0; font-size: 19px; line-height: 1.4; max-width: 36ch; }
.page-head.field { position: relative; }
.page-head .reg.tl { left: calc(max(var(--gut), (100% - var(--max)) / 2 + var(--gut)) - 9px); top: 14px; color: currentColor; }
.page-head .reg.tr { right: calc(max(var(--gut), (100% - var(--max)) / 2 + var(--gut)) - 9px); top: 14px; color: currentColor; }

/* the countdown as a figure */
.due { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 0 var(--s3); margin: 0; padding: var(--s3) var(--s4) var(--s4); background: var(--y); color: var(--k); max-width: 480px; }
.due-n { grid-row: span 2; font-weight: 900; font-stretch: 125%; font-size: clamp(64px, 7vw, 96px); line-height: .8; letter-spacing: -0.03em; }
.due-t { font-weight: 800; font-size: 19px; line-height: 1.15; }
.due small { font-stretch: 75%; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.due-n[hidden] + .due-t { grid-column: 1 / -1; font-size: 24px; }

.parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s4); }
.part { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; min-height: 88px; padding: 8px 12px 8px 8px; margin-top: 26px; text-decoration: none; }
.part img { width: 72px; height: 72px; object-fit: contain; }
.part strong { display: block; font-weight: 800; font-size: 16px; line-height: 1.2; hyphens: auto; }
.part .label { display: block; color: var(--k2); margin-top: 4px; }
.part .tab { left: 10px; min-width: 40px; }
.parts li:nth-child(1) { --tab: var(--y); } .parts li:nth-child(2) { --tab: var(--m); }
.parts li:nth-child(3) { --tab: var(--c); } .parts li:nth-child(4) { --tab: var(--or); }

/* the stage: a printed sheet; on the lantern it folds the flat wall into the lantern */
.stage {
  --u: 15px;                      /* 1 cm on the sheet */
  --W: calc(var(--u) * 3.46);     /* one of 10 facets of the 34.6 cm wall */
  --H: calc(var(--u) * 18);
  --fz: 1.25;
  position: relative; height: clamp(320px, 36vw, 480px); background: var(--white);
  border: 1px solid var(--k); overflow: hidden; perspective: 1400px;
}
.stage .reg { z-index: 4; }
.reg.a { left: 10px; top: 10px; } .reg.b { right: 10px; top: 10px; }
.stage .reg.c { left: 10px; bottom: 26px; } .stage .reg.d { right: 10px; bottom: 26px; }
.stage .colorbar { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; z-index: 4; border-top: 1px solid var(--k); }
.stage-id { position: absolute; left: 38px; top: 10px; z-index: 4; color: var(--k2); }
.stage-img { position: absolute; inset: 32px 24px 22px; width: calc(100% - 48px); height: calc(100% - 54px); object-fit: contain; }
.hole {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: calc(var(--u) * 37 + 16px); height: calc(var(--H) + 16px);
  transform: translate(-50%, calc(-50% - 7px)); transition: opacity .6s var(--ease);
}
.hole .scissors { position: absolute; left: -13px; top: -9px; background: var(--white); padding: 0 2px; }
.hole .cap { position: absolute; left: 0; top: calc(100% + 8px); color: var(--k2); white-space: nowrap; }
.hole .cap b { color: var(--k); }
.spin { position: absolute; left: 50%; top: calc(50% - 7px); width: 0; height: 0; z-index: 2; transform-style: preserve-3d; transition: transform 2.2s var(--fold-ease), opacity .7s var(--ease); }
.net { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: translate3d(calc(var(--u) * -18.5), calc(var(--H) / -2), 0); transition: transform 2.2s var(--fold-ease), --fold 2.2s var(--fold-ease); }
.slat { position: absolute; left: 0; top: 0; width: var(--W); height: var(--H); transform-style: preserve-3d; transform-origin: 0 50%; }
.slat .slat { left: 100%; transform: rotateY(var(--fold)); }
.face { position: absolute; inset: 0; backface-visibility: hidden; }
.face.front { right: -1px; background: url('/img/bogen/strip.svg') no-repeat; background-size: calc(var(--u) * 34.6) var(--H); background-position: calc(var(--i) * var(--W) * -1) 0; }
.face.front::after { content: ''; position: absolute; inset: 0; background: url('/img/bogen/strip-lit.svg') no-repeat; background-size: inherit; background-position: inherit; opacity: 0; transition: opacity 1s var(--ease) 1.4s; }
.face.back { transform: rotateY(180deg); background: #f2f2f2; box-shadow: inset 1px 0 0 #dcdcdc; }
.glue { position: absolute; left: 100%; top: 0; width: calc(var(--u) * 2.4); height: var(--H); transform-origin: 0 50%; transform: rotateY(var(--fold)) translateZ(-1px); transform-style: preserve-3d; }
.glue .face.front { background: radial-gradient(circle, var(--m) 30%, transparent 33%) 0 0 / 6px 6px, var(--white); clip-path: polygon(0 0, 100% 10%, 100% 90%, 0 100%); display: grid; place-items: center; }
.glue .face.front::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='22'%3E%3Cpath d='M1 0v11M1 14v2M1 19v2' stroke='%23141414' stroke-width='1.5'/%3E%3C/svg%3E") repeat-y top / 2px 22px; }
.glue .face.front::after { display: none; }
.glue em { font-style: normal; writing-mode: vertical-rl; transform: rotate(180deg); background: var(--white); padding: 4px 0; font-size: 11px; font-weight: 750; font-stretch: 75%; letter-spacing: .04em; text-transform: uppercase; }
.stage-fig {
  position: absolute; inset: 0 0 14px; z-index: 3; width: 100%; height: calc(100% - 14px); border: 0; background: var(--white);
  clip-path: inset(100% 0 0 0); transform: translateY(30px); opacity: 0; pointer-events: none;
  transition: clip-path 1.2s var(--ease), transform 1.2s var(--ease), opacity .4s linear;
}
.stage-fig.is-on, .stage[data-state="figur"] .stage-fig { clip-path: inset(0 0 0 0); transform: none; opacity: 1; pointer-events: auto; }
.stage[data-state="gefaltet"] .net, .stage[data-state="figur"] .net { --fold: 36deg; transform: translate3d(calc(var(--W) / -2), calc(var(--H) / -2), calc(var(--W) / 2 / 0.32492)); }
.stage[data-state="gefaltet"] .spin, .stage[data-state="figur"] .spin { transform: scale(var(--fz)) rotateX(-16deg) rotateY(-160deg); }
.stage[data-state="gefaltet"] .face.front::after { opacity: 1; }
.stage[data-state="figur"] .spin, .stage[data-state="figur"] .hole { opacity: 0; }

.views { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5); margin-top: var(--s3); }
.seg { display: inline-flex; border: 1.5px solid var(--k); }
.seg button { appearance: none; border: 0; background: var(--white); color: var(--k); font: inherit; font-weight: 700; font-size: 16px; min-height: 44px; min-width: 44px; padding: 0 16px; cursor: pointer; }
.seg button + button { border-left: 1.5px solid var(--k); }
.seg button[aria-pressed="true"] { background: var(--k); color: var(--white); }
.seg button:hover:not([aria-pressed="true"]) { background: var(--y-t); }
.views-cap { margin: 0; font-size: 15px; color: var(--k2); }
.views-cap a { color: var(--k); font-weight: 650; }

/* steps as a row of cut-out frames */
.srow-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s5); margin: var(--s7) 0 var(--s4); }
.srow-head h2 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; font-stretch: 112%; letter-spacing: -0.01em; line-height: 1.05; }
.srow-head .label { margin: 0; color: var(--k2); }
.srow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4); }
.srow a { position: relative; display: block; height: 100%; padding: 10px; text-decoration: none; }
.num { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; background: var(--k); color: var(--white); font-weight: 900; font-stretch: 112%; font-size: 17px; line-height: 1; }
.srow .num { position: absolute; left: 0; top: 0; z-index: 1; }
.srow img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.srow-t { display: block; font-weight: 650; font-size: 15px; line-height: 1.3; margin-top: 8px; }

/* ---------- parts (tiles) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s5) var(--s5); }
.tile { position: relative; display: flex; flex-direction: column; margin-top: 26px; padding: 8px; text-decoration: none; transition: transform .35s var(--spring); }
.tile:hover { transform: translateY(-4px); }
.tile-pic { display: block; aspect-ratio: 4 / 3; }
.tile-pic img { width: 100%; height: 100%; object-fit: contain; }
.tile-body { display: block; padding: 10px 8px 8px; }
.tile-name { display: block; font-weight: 900; font-stretch: 112%; font-size: 19px; line-height: 1.12; letter-spacing: -0.01em; hyphens: auto; }
.tile-facts { display: block; margin-top: 6px; font-stretch: 75%; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; color: var(--k2); }
.tile-explain .tab { --tab: var(--k); }

/* auch gerade gesucht: bands run through the process colours */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.also-tile { height: calc(100% - 26px); }
.tile-band { display: block; flex: 1; padding: 14px 16px 16px; background: var(--fill); color: var(--on, var(--k)); }
.tile-band strong { display: block; font-weight: 900; font-stretch: 112%; font-size: 21px; line-height: 1.12; letter-spacing: -0.01em; hyphens: auto; }
.tile-band > span { display: block; font-size: 15px; margin-top: 6px; font-weight: 500; }
.tiles > :nth-child(6n+1) { --fill: var(--m); --on: var(--white); --tab: var(--m); }
.tiles > :nth-child(6n+2) { --fill: var(--or); --tab: var(--or); }
.tiles > :nth-child(6n+3) { --fill: var(--y); --tab: var(--y); }
.tiles > :nth-child(6n+4) { --fill: var(--blue); --on: var(--white); --tab: var(--blue); }
.tiles > :nth-child(6n+5) { --fill: var(--k); --on: var(--white); --tab: var(--k); }
.tiles > :nth-child(6n+6) { --fill: var(--c); --tab: var(--c); }

/* ---------- section doors ---------- */
.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.door { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 340px; padding: var(--s5); background: var(--c); color: var(--on-c); text-decoration: none; overflow: hidden; }
.door-label { display: block; font-weight: 900; font-stretch: 125%; letter-spacing: -0.02em; line-height: .95; font-size: clamp(24px, 2.4vw, 32px); hyphens: auto; }
.door-n { display: block; margin-top: var(--s3); font-stretch: 75%; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; }
.door-teaser { display: block; margin-top: var(--s2); font-size: 16px; font-weight: 500; max-width: 24ch; }
.door-cut { align-self: flex-end; width: 74%; margin: var(--s5) -8px -8px 0; padding: 8px; transform: rotate(-3deg); transition: transform .45s var(--spring); }
.door[style*="#141414"] .door-cut { --dash: var(--y); }
.door-cut img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.door:hover .door-cut { transform: rotate(0deg) translateY(-6px); }
.door:hover .door-label { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* the year */
.year-title { margin: var(--s7) 0 var(--s4); font-weight: 900; font-stretch: 112%; font-size: 24px; line-height: 1.1; }
.year-strip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.year-strip a { display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 6px 14px; text-decoration: none; border: 1.5px solid var(--k); box-shadow: inset 6px 0 0 var(--c); padding-left: 18px; }
.year-strip a:hover { background: var(--y-t); }
.year-strip a.is-now { background: var(--c); color: var(--on-c); }
.ys-name { font-weight: 800; font-size: 16px; line-height: 1.2; }
.ys-when { color: inherit; opacity: .85; }
.ys-all a { flex-direction: row; align-items: center; gap: 8px; border-style: dashed; box-shadow: none; padding-left: 14px; font-weight: 800; }

/* ---------- row links (hubs, seasons) ---------- */
.sign-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s3) var(--s4); }
.row { display: flex; align-items: center; gap: var(--s4); min-height: 72px; padding: 10px 16px 10px 10px; text-decoration: none; border: 1.5px solid var(--k); transition: transform .35s var(--spring); }
.row:hover { transform: translateY(-3px); border-color: var(--m); }
.row-sw { align-self: stretch; width: 14px; flex: none; background: var(--c); }
.row-text { flex: 1; min-width: 0; }
.row-label { display: block; font-weight: 900; font-stretch: 112%; font-size: 19px; line-height: 1.15; }
.row-facts { display: flex; flex-wrap: wrap; gap: 0 10px; margin-top: 4px; font-stretch: 75%; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; color: var(--k2); }
.season-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-top: var(--s7); }
.as-back .arr { transform: scaleX(-1); order: -1; }
.as-back:hover .arr { transform: scaleX(-1) translateX(4px); }

/* ---------- collection pages ---------- */
.crumbs { padding-top: var(--s3); padding-bottom: var(--s3); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.crumbs li { font-stretch: 75%; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; color: var(--k2); display: inline-flex; align-items: center; }
.crumbs li + li::before { content: '/'; margin: 0 8px; color: var(--k2); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--k); }
.page-head.field { background: var(--c); color: var(--on-c); padding-top: var(--s7); padding-bottom: var(--s7); margin-bottom: var(--s6); }
.page-head h1 { margin: 0; font-weight: 900; font-stretch: 125%; letter-spacing: -0.025em; line-height: .88; font-size: clamp(40px, 7vw, 104px); hyphens: auto; max-width: 16ch; }
.page-head .lead { margin: var(--s5) 0 0; max-width: 56ch; font-size: 19px; line-height: 1.45; }
.page-head .due { margin-top: var(--s5); display: inline-grid; background: var(--white); }
.page-head + .when, main > .filters { margin-top: 0; }
section > h2, .age-group > h2, .ex-group > h2 { font-weight: 900; font-stretch: 112%; font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -0.01em; line-height: 1.05; margin: var(--s7) 0 var(--s4); }
.when h2 { margin-top: 0; }
.timeline { list-style: none; margin: 0 0 var(--s6); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.timeline li { display: flex; flex-direction: column; padding: 10px 14px; border: 1.5px dashed var(--k); min-width: 150px; }
.timeline li.tl-key { background: var(--y); border-style: solid; }
.tl-date { font-stretch: 75%; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.tl-what { font-weight: 800; font-size: 17px; }
.hubs { margin-bottom: var(--s6); }
.link-chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s6); }
.link-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--k); text-decoration: none; font-weight: 700; font-size: 16px; }
.link-chips a:hover { background: var(--y-t); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s5); margin-top: var(--s7); margin-bottom: var(--s6); }
.fact { border-top: 4px solid var(--k); padding-top: var(--s3); }
.fact h2 { margin: 0 0 var(--s2); font-weight: 900; font-stretch: 112%; font-size: 20px; line-height: 1.15; }
.fact p { margin: 0; }
main > .grid, main > section, main > .sign-list, main > nav { margin-bottom: var(--s6); }

/* filters: open = cut out, chosen = printed black */
.filters { display: grid; gap: var(--s3); margin-bottom: var(--s5); }
.frow { display: grid; grid-template-columns: 80px 1fr; gap: var(--s3); align-items: center; }
.flabel { font-stretch: 75%; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.fchips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.fchip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px dashed var(--k); background: var(--white); color: var(--k); text-decoration: none; font-weight: 700; font-size: 15px; cursor: pointer; }
.fchip .fn { font-stretch: 75%; font-weight: 650; font-size: 14px; color: var(--k2); }
.fchip:hover { border-color: var(--m); }
.fchip[aria-current] { background: var(--k); color: var(--white); border-style: solid; }
.fchip[aria-current] .fn { color: #d6d6d6; }
.fchip[aria-disabled="true"] { color: #767676; border-color: #9a9a9a; cursor: default; }
.fchip[aria-disabled="true"] .fn { color: #767676; }
.fcount { margin: 0; font-stretch: 75%; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.empty { padding: var(--s6) var(--s5) !important; border: 1.5px dashed var(--k); margin-bottom: var(--s6); }
.empty-title { margin: 0 0 var(--s4); font-weight: 900; font-stretch: 112%; font-size: 22px; }
.empty p:last-child { margin: 0; }
@media (max-width: 599px) { .frow { grid-template-columns: 1fr; gap: var(--s2); } }

/* ---------- guide ---------- */
.guide .crumbs { max-width: var(--max); margin: 0 auto; }
.guide > :not(.crumbs) { max-width: var(--max); margin-left: auto; margin-right: auto; }
.g-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6) var(--s7); align-items: start; padding-top: var(--s4); }
.g-head h1 { margin: 0; font-weight: 900; font-stretch: 112%; letter-spacing: -0.02em; line-height: .92; font-size: clamp(34px, 4.6vw, 64px); hyphens: auto; overflow-wrap: break-word; }
.g-head .lead { margin: var(--s5) 0 0; font-size: 19px; line-height: 1.45; max-width: 52ch; }
.g-facts { list-style: none; margin: var(--s5) 0 0; padding: 0; display: flex; flex-wrap: wrap; border-top: 1.5px solid var(--k); border-bottom: 1.5px solid var(--k); }
.g-facts li { display: flex; flex-direction: column; padding: 10px 18px 10px 0; margin-right: 18px; }
.g-facts li + li { padding-left: 18px; margin-left: -18px; border-left: 1px solid var(--rule); }
.g-facts span { font-stretch: 75%; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; color: var(--k2); }
.g-facts strong { font-weight: 850; font-size: 18px; line-height: 1.25; }
.g-facts em { font-style: normal; font-size: 14px; color: var(--k2); }
.g-facts a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.dot { display: inline-block; width: 12px; height: 12px; background: var(--c); flex: none; margin-right: 6px; }
.g-facts .dot, .foot .dot { margin-right: 0; }
.foot .dot { box-shadow: 0 0 0 1px #8a8a8a; }
.g-adult { display: flex; gap: 10px; align-items: flex-start; margin: var(--s4) 0 0; padding: 12px 14px; background: var(--m-t); max-width: 56ch; }
.ic { width: 22px; height: 22px; flex: none; }
.g-hero { position: relative; margin: 0; padding: 10px; }
.g-hero .scissors { position: absolute; left: -13px; top: -9px; background: var(--white); padding: 0 2px; z-index: 1; }
.g-hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.g-jump { display: flex; flex-wrap: wrap; gap: 0; margin-top: var(--s6); margin-bottom: var(--s6); }
.g-jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 1.5px solid var(--k); margin: 0 -1.5px -1.5px 0; text-decoration: none; font-weight: 750; font-size: 16px; }
.g-jump a:hover { background: var(--y); }
.g-body { display: grid; grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr); gap: var(--s7); align-items: start; }
.g-need { position: sticky; top: var(--s4); padding: var(--s5); border: 1.5px solid var(--k); background: var(--white); }
.g-need h2, .g-steps h2, .g-figure h2, .g-why h2, .g-ritual h2, .g-trouble h2, .g-safety h2, .g-faq h2, .g-more h2 { margin: 0 0 var(--s4); font-weight: 900; font-stretch: 112%; font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -0.01em; line-height: 1.05; }
.g-need h2 { font-size: 22px; }
.g-need h3 { margin: var(--s5) 0 var(--s2); font-stretch: 75%; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.need { list-style: none; margin: 0; padding: 0; }
.need li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--rule); cursor: pointer; min-height: 44px; }
.need li::before { content: ''; position: absolute; left: 0; top: 12px; width: 20px; height: 20px; border: 1.5px dashed var(--k); background: var(--white); }
.need li.done::before { border-style: solid; background: var(--k) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10l4 4 8-8' fill='none' stroke='%23fff' stroke-width='2.5'/%3E%3C/svg%3E") center / 16px no-repeat; }
.need li.done .item, .need li.done .amt { text-decoration: line-through; color: var(--k2); }
.need .amt { font-weight: 850; }
.need .note { display: block; font-size: 14px; color: var(--k2); }
.need.tools li { cursor: default; padding-left: 0; }
.need.tools li::before { display: none; }
.vorlage { display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: center; margin-top: var(--s5); padding: 10px; border: 1.5px dashed var(--k); text-decoration: none; font-weight: 750; }
.vorlage:hover { border-color: var(--m); }
.vorlage img { width: 80px; height: auto; border: 1px solid var(--rule); }
.vorlage span { display: inline-flex; gap: 8px; align-items: center; }
.steps-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s3); }
.mirror-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--k); background: var(--white); color: var(--k); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; margin-bottom: var(--s4); }
.mirror-btn[aria-pressed="true"] { background: var(--k); color: var(--white); }
.predict, .result { padding: var(--s4) var(--s5); background: var(--y); margin-bottom: var(--s5); }
.result { margin-top: var(--s5); }
.predict h3, .result h3 { margin: 0 0 var(--s2); font-weight: 900; font-stretch: 112%; font-size: 20px; }
.predict p, .result p { margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s6); }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s5); align-items: start; scroll-margin-top: var(--s4); }
.step.no-img { grid-template-columns: 1fr; }
.step-img { position: relative; padding: 10px; }
.step-img { --dash: var(--k); background:
    linear-gradient(90deg, var(--dash) 60%, transparent 0) top left / 10px var(--cut) repeat-x,
    linear-gradient(90deg, var(--dash) 60%, transparent 0) bottom left / 10px var(--cut) repeat-x,
    linear-gradient(180deg, var(--dash) 60%, transparent 0) top left / var(--cut) 10px repeat-y,
    linear-gradient(180deg, var(--dash) 60%, transparent 0) top right / var(--cut) 10px repeat-y, var(--white); }
.step-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.is-mirrored .step-img img { transform: scaleX(-1); }
.step-text h3 { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 var(--s3); font-weight: 900; font-stretch: 112%; font-size: 22px; line-height: 1.15; }
.step-text h3 .num { flex: none; }
.step-text p { margin: 0 0 var(--s3); max-width: 60ch; }
.badges { display: flex; flex-wrap: wrap; gap: var(--s2); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font-stretch: 75%; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.badge .ic { width: 18px; height: 18px; }
.badge-adult { background: var(--m); color: var(--white); }
.badge-hard { background: var(--k); color: var(--white); }
.check { padding: 10px 14px; background: var(--c-t); }
.step-safety { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; background: var(--m-t); }
.g-figure { margin-top: var(--s7); }
.figure-frame { position: relative; border: 1px solid var(--k); background: var(--white); padding-bottom: 14px; }
.figure-frame .reg { z-index: 1; }
.figure-frame iframe { display: block; width: 100%; height: min(72vh, 640px); border: 0; }
.figure-frame.is-tool iframe { height: 560px; }
.figure-frame .colorbar { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; border-top: 1px solid var(--k); }
.ex-figure figcaption { margin-top: var(--s2); font-size: 15px; color: var(--k2); }
.g-why, .g-ritual, .g-trouble, .g-safety, .g-faq, .g-more, .hub-link { margin-top: var(--s7); }
.g-why p, .g-faq p, .g-ritual p { max-width: 68ch; }
.more-try { padding: var(--s3) var(--s4); background: var(--c-t); }
.g-ritual dl, .g-trouble dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s4) var(--s5); }
.g-ritual dl > div, .g-trouble dl > div { border-top: 4px solid var(--k); padding-top: var(--s3); }
dt { font-weight: 850; font-size: 18px; line-height: 1.25; }
dd { margin: 6px 0 0; }
.g-safety { padding: var(--s5); background: var(--y); }
.g-safety h2 { display: flex; align-items: center; gap: 10px; }
.g-safety ul { margin: 0; padding-left: 20px; }
.g-safety li { margin: 6px 0; max-width: 70ch; }
.qa { padding: var(--s4) 0; border-top: 1px solid var(--rule); }
.qa h3 { margin: 0 0 var(--s2); font-weight: 850; font-size: 19px; line-height: 1.25; }
.qa p { margin: 0; }
.g-meta { margin-top: var(--s7); padding-top: var(--s3); border-top: 1px solid var(--k); font-size: 15px; color: var(--k2); }
.g-meta a { color: var(--k); }
.g-meta summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--k); }
.hub-link a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 750; margin-right: var(--s4); }
.guide { padding-bottom: var(--s7); }

/* explainer */
.explainer .g-head { padding-top: var(--s4); }
.ex-answer { margin-top: var(--s5); padding: var(--s4) var(--s5); background: var(--y); max-width: 72ch; }
.ex-answer p { margin: 0; font-size: 20px; line-height: 1.45; font-weight: 500; }
.ex-room { margin: var(--s4) 0 0; }
.ex-figure { margin-top: var(--s6); }
.ex-ages > div { border-top-color: var(--c); }
.ex-try-card { margin-top: var(--s4); max-width: 320px; }

/* prose */
.prose { max-width: 760px; padding-top: var(--s6); padding-bottom: var(--s7); }
.prose h1 { margin: 0 0 var(--s5); font-weight: 900; font-stretch: 125%; letter-spacing: -0.025em; line-height: .9; font-size: clamp(36px, 6vw, 72px); hyphens: auto; }
.prose h2 { margin: var(--s6) 0 var(--s2); font-weight: 900; font-stretch: 112%; font-size: 24px; line-height: 1.15; }
.prose .lead { font-size: 20px; line-height: 1.45; }
.prose p { max-width: 66ch; }

.ad-slot:empty { display: none; }

/* ---------- footer ---------- */
.foot { margin-top: var(--s8); background: var(--k); color: var(--white); }
.foot-in { max-width: var(--max); margin: 0 auto; padding: var(--s6) var(--gut) var(--s7); display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s6); }
.foot .mark { color: var(--white); --mark-bg: var(--k); }
.foot-brand p { margin: var(--s3) 0 0; color: #d6d6d6; font-size: 15px; max-width: 38ch; }
.foot-h { margin: 0 0 var(--s2); font-stretch: 75%; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; color: #d6d6d6; }
.foot-h a { color: inherit; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 15px; }
.foot-col a:hover { text-decoration: underline; }
.foot-small { grid-column: 1 / -1; margin: 0; padding-top: var(--s4); border-top: 1px solid #3a3a3a; font-size: 14px; color: #bdbdbd; }
.foot-small a { color: var(--white); }

/* ---------- tablet and phone ---------- */
@media (max-width: 899px) {
  .now-panel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "due" "stage" "side" "steps"; grid-template-rows: none; gap: var(--s4); }
  .stage { --u: 8.6px; --fz: 1.3; height: 330px; }
  .srow { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--s3); margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) var(--s3); }
  .srow li { flex: 0 0 62%; scroll-snap-align: start; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s3); }
  .tile-band { padding: 10px 12px 12px; }
  .tile-band strong { font-stretch: 100%; font-size: 17px; }
  .tile-band > span { font-size: 14px; }
  .doors { grid-template-columns: 1fr 1fr; }
  .g-top, .g-body { grid-template-columns: minmax(0, 1fr); }
  .g-need { position: static; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  body { font-size: 16.5px; }
  .now-title { font-stretch: 112%; }
  .parts { grid-template-columns: 1fr; }
  .stage-id, .hole .cap { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile-pic { aspect-ratio: 1; }
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 42%; gap: var(--s4); align-items: end; padding: var(--s5) var(--s4) var(--s4); }
  .door-cut { width: 100%; margin: 0 -6px -6px 0; }
  .door-label { font-stretch: 108%; font-size: 24px; }
  .grid { grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s3); }
  .tile-name { font-size: 16px; font-stretch: 100%; }
  .sign-list, .season-nav { grid-template-columns: 1fr; }
  .page-head .lead, .g-head .lead { font-size: 17.5px; }
  .step { grid-template-columns: 1fr; gap: var(--s3); }
  .g-facts li { padding-right: 14px; margin-right: 14px; }
  .g-facts li + li { padding-left: 14px; margin-left: -14px; }
  .figure-frame iframe { height: 440px; }
  .foot-in { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
main > .empty { width: calc(100% - 2 * var(--gut)); max-width: calc(var(--max) - 2 * var(--gut)); }
