/* faradejo, Entwurf 07: Wachskreide
   Richtung: name-as-monument. Farben aus dem Rotkäppchen-Film: Papier, Nachtblau der Umrisse,
   Kappenrot. Schrift: Big Shoulders (Anzeige) und Public Sans (Text). */

:root {
  --bg: #eae8e3;          /* Papier */
  --surface: #dfdcd4;
  --ink: #232859;         /* Nachtblau, die Umrisslinie im Film */
  --muted: #4f5378;
  --accent: #b01722;      /* Kappenrot */
  --accent-ink: #f6f5f3;
  --wash: #d0514e;        /* Lasur unter der Kreide */
  --night: #232859;
  --night-ink: #eae8e3;
  --night-muted: #b9bcd6;
  --night-wash: #8d93c4;

  --font-display: "Big Shoulders", "Arial Narrow", sans-serif;
  --font-text: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 13vw, 13rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--ink) var(--surface); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; caret-color: var(--accent); }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
:target { scroll-margin-top: 2rem; }
p { max-width: 62ch; text-wrap: pretty; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; text-wrap: balance; hyphens: none; }
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.head { font-size: var(--step-head); line-height: 0.9; letter-spacing: -0.005em; text-transform: uppercase; }
.lead { font-size: var(--step-lead); line-height: 1.35; }

/* ---------- Kopf ---------- */
.top { position: absolute; inset: 0 0 auto 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding-block: 1.25rem; font-size: var(--step-small); }
.mark { font-weight: 600; text-decoration: none; }
.links { display: flex; gap: clamp(1rem, 2.4vw, 2.5rem); }
.links a { text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; padding-block: 0.6rem; }
@media (hover: hover) { .links a:hover, .mark:hover { text-decoration-color: currentColor; } }

/* ---------- Erster Bildschirm ---------- */
.hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; padding-top: 4.5rem; padding-bottom: 1.75rem; }
.sheet { position: relative; display: grid; place-items: center; touch-action: pan-y; cursor: crosshair; }
.crayon { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.name, .foot-name { position: relative; z-index: 1; }
.js .name.is-drawn, .js .foot-name.is-drawn { color: transparent; }
.name { display: inline-block; white-space: nowrap; font-size: 21vw; line-height: 0.88; letter-spacing: -0.005em; color: var(--wash); text-transform: lowercase; margin-left: -0.02em; padding-block: 0.06em; }
.name .w { display: inline; }
/* das „o“: ein Kreide-Ring in der Form des Big-Shoulders-o, darin Rotkäppchen */
.frame { position: relative; display: inline-block; width: 0.56em; height: 0.641em; vertical-align: -0.016em; margin-left: 0.02em; border: 0.1em solid var(--wash); border-radius: 999px; }
.js .name.is-drawn .frame { border-color: transparent; }
.win { position: absolute; inset: 0; border-radius: 999px; overflow: hidden; background: var(--surface); }
.win img { position: absolute; width: 1.72em; max-width: none; height: auto; left: -0.29em; top: -0.32em; }

.hero-foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; padding-top: 2rem; }
.chalk { grid-column: 1 / span 6; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; font-size: var(--step-small); margin-left: -0.7rem; }
.chalk-label { padding-left: 0.7rem; }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.swatch, .again { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; padding: 0 0.7rem; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.swatch[aria-pressed="true"] { background: var(--surface); font-weight: 600; }
.dot { width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--c); outline: 2px solid var(--ink); outline-offset: -2px; }
.again { margin-left: 0.4rem; text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; }
.swatch:active, .again:active { transform: scale(0.96); }
@media (hover: hover) { .swatch:hover { background: var(--surface); } .again:hover { text-decoration-thickness: 0.14em; } }
.swatch:focus-visible, .again:focus-visible { outline-offset: 0; }
.cta { grid-column: 8 / span 5; display: grid; justify-items: start; row-gap: 1.5rem; }
.intro { max-width: 34ch; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
@media (hover: hover) { .button:hover { background: var(--ink); } }

/* ---------- Alles bisher ---------- */
.index { padding-block: var(--section) calc(var(--section) * 0.8); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); grid-template-rows: auto 1fr auto; align-items: start; }
.index h2 { grid-column: 8 / span 5; grid-row: 1; margin-bottom: 2.5rem; }
.still { grid-column: 1 / span 6; grid-row: 1 / span 3; position: relative; }
.still img, .still canvas { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; object-position: 42% 50%; }
.still canvas { position: absolute; inset: 0 0 auto 0; height: auto; pointer-events: none; transition: opacity 1200ms var(--ease-soft); }
.still.is-built canvas { opacity: 0; }
.still figcaption { margin-top: 0.75rem; font-size: var(--step-small); color: var(--muted); }
.stand { grid-column: 8 / span 5; grid-row: 2; display: grid; row-gap: 1.1rem; font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem); line-height: 1.3; }
.stand > div { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); column-gap: 0.75rem; align-items: baseline; }
.stand dt { color: var(--muted); }
.stand dd { margin: 0; }
.stand a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 0.06em; transition: text-decoration-color var(--t-hover) ease; }
.inl { display: inline-block; width: 2.2em; height: 1.24em; margin-left: 0.3em; vertical-align: -0.28em; overflow: hidden; transform-origin: left center; transition: transform var(--t-ui) var(--ease-out); }
.inl.sq { width: 1.24em; }
.inl img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .stand a:hover { text-decoration-color: currentColor; } .stand a:hover .inl { transform: scale(1.5); } }
.count { grid-column: 8 / span 5; grid-row: 3; margin-top: 2rem; align-self: end; font-size: var(--step-small); color: var(--muted); }

/* ---------- Filme ---------- */
.films { background: var(--night); color: var(--night-ink); padding-block: calc(var(--section) * 0.6); }
.films :focus-visible { outline-color: var(--night-ink); }
.films h2 { margin-bottom: 4rem; }
.band { display: flex; height: 68svh; min-height: 26rem; }
.panel { position: relative; overflow: hidden; flex: var(--g) 1 0; transition: flex-grow 500ms var(--ease-out); }
.p1 { --g: 5; } .p2 { --g: 2; } .p3 { --g: 3; } .p4 { --g: 2; }
.panel img, .panel video { width: 100%; height: 100%; object-fit: cover; }
.p1 img { object-position: 66% 50%; }
.p2 img { object-position: 28% 50%; }
.p4 img { object-position: 52% 50%; }
.panel-title { position: absolute; top: 0; left: 0; padding: 1.5rem; background: rgba(18, 20, 40, 0.55); color: var(--night-ink); font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; text-transform: uppercase; }
@media (hover: hover) and (min-width: 48em) { .panel:hover { flex-grow: 6; } }
.band-caption { margin-top: 1rem; font-size: var(--step-small); color: var(--night-muted); max-width: none; }
.film-text { margin-top: 5rem; row-gap: 3rem; }
.ft { grid-column: span 4; }
.ft h3, .make h3 { font-size: 2rem; line-height: 1; text-transform: uppercase; margin-bottom: 1rem; }
.facts { color: var(--night-muted); margin-bottom: 0.75rem; }
.make { margin-top: 6rem; align-items: start; }
.make-text { grid-column: 1 / span 5; }
.player { grid-column: 7 / span 6; }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #11132c; }
.player figcaption { margin-top: 0.75rem; font-size: var(--step-small); color: var(--night-muted); }

/* ---------- Apps ---------- */
.apps { padding-block: var(--section) calc(var(--section) * 0.6); }
.apps h2 { margin-bottom: 3.5rem; }
.lineup { width: 100%; border-collapse: collapse; font-size: var(--step-lead); line-height: 1.3; }
.lineup th, .lineup td { text-align: left; vertical-align: top; font-weight: 400; padding: 0 1.5rem 1.6rem 0; }
.lineup th { width: 22%; font-weight: 600; }
.lineup th img { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -0.25em; margin-right: 0.55em; }
.lineup td:nth-child(2) { width: 24%; }
@media (max-width: 47.99em) { .lineup td:nth-child(2) { width: auto; } }
.lineup td.d { color: var(--muted); }
.lineup td.st { text-align: right; padding-right: 0; white-space: nowrap; color: var(--accent); font-weight: 600; }
.apps-note { margin-top: 1.5rem; }
.screens { margin-top: 5rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter); }
.screens img { width: 100%; aspect-ratio: 9 / 17; object-fit: cover; object-position: top; background: var(--surface); }
.screens span { display: block; margin-top: 0.6rem; font-size: var(--step-small); color: var(--muted); }

/* ---------- Arbeitsweise ---------- */
.about { padding-block: calc(var(--section) * 0.6) var(--section); }
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.row > :first-child { grid-column: 1 / span 4; }
.row > :last-child { grid-column: 5 / -1; }
.row2 { margin-top: 7.5rem; }
.facts-col { display: grid; gap: 1.25rem; align-content: start; padding-top: 0.6rem; }
.facts-col dt { color: var(--muted); font-size: var(--step-small); }
.facts-col dd { font-size: var(--step-body); }
.wide { max-width: 56rem; }
.about h2 { margin-bottom: 1.75rem; }
.para { font-size: var(--step-lead); line-height: 1.4; max-width: 46ch; }
.side { align-self: start; }
.lists { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 17rem)); gap: 2rem 4rem; }
.lists li { padding-block: 0.3rem; }
.lists li span { font-weight: 600; }

/* ---------- Kontakt ---------- */
.contact { min-height: min(100svh, 46rem); display: grid; grid-template-rows: auto 1fr auto; background: var(--accent); color: var(--accent-ink); padding: clamp(1.5rem, 4vw, 3rem) var(--margin) 4rem; }
.contact :focus-visible { outline-color: var(--accent-ink); }
.contact-q { font-family: var(--font-text); font-weight: 400; font-size: var(--step-lead); line-height: 1.3; max-width: 22ch; }
.mail-line { align-self: end; max-width: none; padding-block: 3rem 8vh; }
.mail { display: inline-block; white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: 13vw; line-height: 0.9; letter-spacing: -0.005em; text-decoration: none; transition: color var(--t-hover) ease; }
@media (hover: hover) { .mail:hover { color: var(--night); } }
.contact-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--step-small); }

/* ---------- Fuß ---------- */
.foot { background: var(--night); color: var(--night-ink); padding-bottom: 2rem; }
.foot :focus-visible { outline-color: var(--night-ink); }
.foot-sheet { padding: 5.5rem var(--margin) 0; place-items: start; }
.foot-name { max-width: none; display: inline-block; white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: 26vw; line-height: 0.88; color: var(--night-wash); margin-left: -0.02em; }
.foot-row { margin-top: 4.5rem; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3rem; }
.places { grid-column: 1 / span 5; display: grid; gap: 0.6rem; font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1.1; }
.places a { text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) { .places a:hover { text-decoration-color: currentColor; } }
.foot-cols { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1.2fr 1.8fr; gap: 2rem; font-size: var(--step-small); }
.foot-cols li { padding-block: 0.15rem; }
.foot-cols p + p { margin-top: 0.15rem; }
.foot-cols #datenschutz { margin-top: 1rem; }
.credits p + p { margin-top: 0.75rem; }
.foot-cols a { text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.foot-last { margin-top: 6rem; display: flex; justify-content: space-between; font-size: var(--step-small); }

/* ---------- Telefon ---------- */
@media (max-width: 47.99em) {
  .links { gap: 0.9rem; }
  .mark { display: none; }
  .top { justify-content: flex-end; }
  .hero { padding-top: 4rem; grid-template-rows: auto auto; align-content: start; row-gap: 2rem; }
  .sheet { padding-block: 1rem 0; place-items: start; }
  .hero-foot { grid-template-columns: 1fr; row-gap: 1.75rem; padding-top: 0; }
  .cta, .chalk { grid-column: 1; }
  .cta { order: 1; justify-items: stretch; row-gap: 1.25rem; }
  .chalk { order: 2; }
  .chalk-label { width: 100%; }
  .sw-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .swatch { min-width: 2.75rem; justify-content: center; padding: 0; }
  .dot { width: 1.5rem; height: 1.5rem; }
  .films h2 { padding-left: 0; margin-bottom: 2rem; }
  .band { height: 84svh; display: grid; grid-template-columns: repeat(100, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; }
  .p1 { grid-column: 1 / 65; grid-row: 1; } .p2 { grid-column: 65 / 101; grid-row: 1; }
  .p4 { grid-column: 1 / 37; grid-row: 2; } .p3 { grid-column: 37 / 101; grid-row: 2; }
  .panel-title { padding: 1rem; }
  .index { grid-template-rows: none; padding-block: calc(var(--section) * 0.9) calc(var(--section) * 0.7); }
  .index h2, .still, .stand, .count { grid-column: 1 / -1; grid-row: auto; }
  .index h2 { margin-bottom: 1.5rem; }
  .still { margin-bottom: 2.5rem; }
  .still img, .still canvas { aspect-ratio: 1 / 1; object-position: 36% 50%; }
  .stand { font-size: var(--step-lead); row-gap: 0.9rem; }
  .stand > div { display: block; }
  .stand dt, .stand dd { display: inline; }
  .stand dt::after { content: ":"; }
  .stand dd { margin-left: 0.3em; }
  .ft h3, .make h3, .panel-title, .places { font-size: 1.5rem; }
  .ft { grid-column: 1 / -1; }
  .film-text { margin-top: 3rem; }
  .make { margin-top: 4rem; row-gap: 2rem; }
  .make-text, .player { grid-column: 1 / -1; }
  .lineup, .lineup tbody, .lineup tr, .lineup th, .lineup td { display: block; width: auto; }
  .lineup tr { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; padding-bottom: 1.5rem; }
  .lineup th { font-size: var(--step-lead); padding: 0; grid-column: 1; }
  .lineup td { padding: 0; font-size: var(--step-body); grid-column: 1 / -1; }
  .lineup td.st { grid-column: 2; grid-row: 1; align-self: center; font-size: var(--step-small); }
  .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 3rem; }
  .screens li:last-child { display: none; }
  .row { grid-template-columns: 1fr; row-gap: 1.5rem; }
  .row > :first-child, .row > :last-child { grid-column: 1; }
  .facts-col { order: 2; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
  .wide { order: 1; }
  .row2 { margin-top: 5rem; }
  .lists { grid-template-columns: 1fr; gap: 2rem; }
  .contact { min-height: 64svh; }
  .contact-foot { flex-direction: column-reverse; }
  .mail-line { padding-bottom: 2.5rem; align-self: center; }
  .foot-row, .foot-cols { grid-template-columns: 1fr; }
  .places, .foot-cols { grid-column: 1; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .credits { grid-column: 1 / -1; }
}

/* Hochformat: der Name steht auf zwei Zeilen */
@media (max-aspect-ratio: 1/1) {
  .name { line-height: 0.84; }
  .name .w { display: block; }
  .sheet { place-items: start; padding-bottom: 2.5rem; }
}
@media (min-width: 64em) { .stand a { white-space: nowrap; } }
@media (min-width: 48em) and (max-width: 63.99em) { .stand { font-size: var(--step-lead); } .stand > div { display: block; } .stand dt, .stand dd { display: inline; } .stand dt::after { content: ":"; } .stand dd { margin-left: 0.3em; } .index h2, .stand, .count { grid-column: 7 / -1; } .still { grid-column: 1 / span 6; } .cta { grid-column: 7 / -1; } .chalk { grid-column: 1 / span 6; } .chalk .sw-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .swatch { min-width: 2.75rem; justify-content: center; padding: 0; } }

/* ---------- Bewegung ---------- */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); transition: transform 900ms var(--ease-expo); }
  .js .lines.is-in [data-line] { transform: none; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .intro, .js .hero-foot .button, .js .chalk { opacity: 0; transform: translateY(16px); animation: rise 800ms var(--ease-out) forwards; }
  .js .intro { animation-delay: 300ms; } .js .hero-foot .button { animation-delay: 380ms; } .js .chalk { animation-delay: 460ms; }
  .js .win img { transform: scale(1.18); animation: settle 2400ms var(--ease-soft) 200ms forwards; }
  .js .still img { transform: scale(1.06); transition: transform 6000ms var(--ease-soft); }
  .js .still.is-building img { transform: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes settle { to { transform: none; } }
