@font-face {
  font-family: "Archivo";
  src: url(assets/archivo.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: block;
}

:root {
  --tisch: #17110C;
  --schatten: #000;
  --abzug: #EFE6D6;
  --neben: #ADA294;
  --rot: #B3261E;
  --glut: #E8912D;
  --lx: 30vw;
  --ly: 25vh;
  --tx: 30%;
  --ty: 50%;
  --sx: 0px;
  --sy: 0px;
}

* { box-sizing: border-box; margin: 0; }
html { background: var(--schatten); color: var(--abzug); -webkit-text-size-adjust: 100%; }
body { font: 400 17px/1.5 "Archivo", system-ui, sans-serif; min-height: 100svh; overflow-x: hidden; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* Die Wand: ein Lichtkegel, der dem Zeiger folgt */
.light {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(75vmax 75vmax at var(--lx) var(--ly), #54412f 0, #2e2318 20%, var(--tisch) 40%, var(--schatten) 80%);
  opacity: 0;
}
.go .light { opacity: 1; transition: opacity 1.6s ease-out; }

.stage { position: relative; z-index: 1; min-height: 100svh; overflow: hidden; }

/* Wortmarke: eingefrorene anamorphe Entzerrung */
.mark {
  position: absolute; left: 2.2vw; top: 1.2vw; z-index: 1;
  font-size: 19.2vw; line-height: .86; font-weight: 600; letter-spacing: -.012em;
  white-space: nowrap; display: flex;
  background: radial-gradient(70vmax 70vmax at var(--tx) var(--ty), #fff6e6 0, var(--abzug) 30%, #7d7468 78%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0;
}
.film { font-stretch: 62%; }
.dealer { font-stretch: 62%; }
.go .mark { opacity: 1; transition: opacity .5s linear; }
.go .dealer { font-stretch: 125%; transition: font-stretch 2s cubic-bezier(.7, 0, .15, 1) .3s; }

/* Korn verbindet Foto und Wand und löst die Farbstufen im Dunkeln auf */
.stage::after {
  content: ""; position: fixed; inset: -50%; z-index: 5; pointer-events: none; opacity: .075;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.25'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation-name: korn; animation-duration: .66s; animation-timing-function: steps(1); animation-iteration-count: infinite;
}
@keyframes korn {
  0% { translate: 0 0; } 12.5% { translate: -3% 2%; } 25% { translate: 4% -2%; } 37.5% { translate: -2% -4%; }
  50% { translate: 3% 3%; } 62.5% { translate: -4% 1%; } 75% { translate: 1% 4%; } 87.5% { translate: 2% -3%; }
}

/* Porträt liegt vor der Wortmarke */
.portrait {
  position: absolute; z-index: 2; pointer-events: none;
  width: min(112vh, 66vw); aspect-ratio: 1024 / 1015;
  right: 10.5vw; top: calc(11vw - .13 * min(112vh, 66vw));
}
.portrait::before {
  content: ""; position: absolute; inset: 0;
  background: url(assets/lalesch.webp) center / 100% 100% no-repeat;
  filter: brightness(0) blur(2.2vw); translate: var(--sx) var(--sy); opacity: 0;
}
.go .portrait::before { opacity: .5; transition: opacity 1.6s ease-out .6s; }
.portrait img, .portrait canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gl .portrait img { visibility: hidden; }
html:not(.gl) .portrait img { opacity: 0; }
html:not(.gl).go .portrait img { opacity: 1; transition: opacity 1.4s ease-out; }

.copy {
  position: absolute; z-index: 3; left: 3vw; bottom: 8.5vh; width: min(30rem, 34vw);
  opacity: 0;
}
.go .copy { opacity: 1; transition: opacity .5s ease-out .2s; }
.copy .lead { font-size: clamp(1.9rem, 2.9vw, 2.75rem); line-height: 1.08; font-weight: 600; font-stretch: 88%; letter-spacing: -.01em; color: var(--abzug); margin-top: 0; max-width: none; }
.copy p { margin-top: .9rem; color: var(--neben); max-width: 27rem; }
.copy .claim { font: inherit; margin-top: .9rem; color: var(--neben); max-width: 27rem; }
.copy .ask { color: var(--abzug); margin-top: 1.5rem; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.3rem; margin-top: .7rem; }
.primary {
  background: var(--abzug); color: var(--schatten); text-decoration: none; font-weight: 600;
  padding: .72rem 1.15rem; transition: background .2s;
}
.primary:hover { background: #fff; }

/* Bühne läuft ins Schwarz aus, darunter die Leistungen */
.stage::before {
  content: ""; position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 24vh; pointer-events: none;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0), #000);
}
.more {
  position: relative; z-index: 0; background: #000;
  padding: clamp(3.5rem, 8vw, 7rem) 3vw clamp(2.5rem, 5vw, 4.5rem);
}
.more h2 { font-size: clamp(1.9rem, 3.6vw, 3.4rem); line-height: 1.08; font-weight: 600; font-stretch: 88%; letter-spacing: -.01em; max-width: 21em; }
.more .intro { color: var(--neben); max-width: 40rem; margin-top: 1.1rem; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.more h3 { font-size: 1.3rem; line-height: 1.2; font-weight: 600; font-stretch: 100%; }
.grid p { color: var(--neben); margin-top: .5rem; }
.more .kit { margin-top: clamp(2.5rem, 5vw, 4rem); }
.more .kit + .intro { margin-top: .5rem; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: minmax(0, 1fr); } }

/* Dreampulse: eine ausgeteilte Karte */
.card {
  position: absolute; z-index: 4; right: 3.2vw; bottom: 8.5vh;
  width: clamp(170px, 13.5vw, 215px); aspect-ratio: 5 / 7;
  perspective: 1100px; text-decoration: none; rotate: 3deg;
  transition: rotate .35s cubic-bezier(.16, 1, .3, 1), translate .35s cubic-bezier(.16, 1, .3, 1);
  translate: 60vw 40vh;
}
.card:hover { rotate: 0deg; translate: 0 -8px; }
.flip { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(180deg); display: block; }
.go .card { translate: 0 0; transition: translate .62s cubic-bezier(.12, .8, .2, 1) 1.9s, rotate .35s; }
.go.settled .card { transition: rotate .35s cubic-bezier(.16, 1, .3, 1), translate .35s cubic-bezier(.16, 1, .3, 1); }
.go.settled .card:hover { translate: 0 -8px; rotate: 0deg; }
.go .flip { transform: rotateY(0); transition: transform .7s cubic-bezier(.3, .7, .2, 1) 2.45s; }
.back, .face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 10px; box-shadow: calc(var(--sx) * .3) calc(var(--sy) * .3 + 14px) 30px rgb(0 0 0 / .75);
}
.back {
  transform: rotateY(180deg);
  border: 9px solid var(--abzug);
  background: repeating-linear-gradient(45deg, var(--rot) 0 7px, #971d16 7px 8px), var(--rot);
  background-blend-mode: normal;
}
.face {
  background: #170c07; border: 1px solid #5c3a1c; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 1rem .8rem; text-align: center;
}
.face small { font-size: .78rem; line-height: 1.25; color: #f0c48e; position: relative; }
.face img { width: 100%; height: auto; position: relative; }
.ring {
  position: absolute; left: 50%; top: 50%; width: 118%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, transparent 58%, #ff7a1a 66%, #ffb65c 69%, #e8912d 72%, rgb(232 145 45 / .28) 80%, transparent 100%);
  filter: blur(1.5px);
}

.hint {
  position: absolute; z-index: 3; right: 3.2vw; bottom: 2.1vh; font-size: .9rem; color: var(--neben);
  opacity: 0;
}
.go .hint { opacity: 1; transition: opacity 1s ease-out 3.2s; }
.hint .t { display: none; }
@media (hover: none) { .hint .m { display: none; } .hint .t { display: inline; } }
.moved .hint { opacity: 0; transition: opacity .6s; }

footer {
  position: relative; z-index: 0; background: #000; padding: 0 3vw 2rem; display: flex; flex-wrap: wrap; gap: .3rem 1.3rem;
  font-size: .9rem; color: var(--neben);
}

/* Hoch und schmal */
@media (max-width: 820px), (max-aspect-ratio: 1/1) {
  .stage { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; padding: 0 20px 22px; }
  .mark { position: relative; left: -.6vw; top: 0; margin-top: 4vw; font-size: 18.9vw; width: max-content; }
  .primary { flex: 1 0 100%; text-align: center; }
  .portrait { position: relative; right: auto; bottom: auto; width: 128vw; margin: -22vw 0 -24vw -22vw; touch-action: pan-y; pointer-events: auto; }
  .copy { position: relative; left: 0; bottom: 0; width: auto; }
  .copy .lead { font-size: 2.1rem; }
  .more, footer { padding-left: 20px; padding-right: 20px; }
  .card { position: relative; right: auto; bottom: auto; margin: 2.2rem 0 1.6rem auto; width: 50vw; max-width: 240px; justify-self: end; }
  .hint { display: none; }
}

/* Rechtstexte */
.legal { background: var(--schatten); }
.legal main { max-width: 42rem; padding: 3rem 20px 5rem; margin: 0 auto; }
.legal h1 { font-size: 2.2rem; font-weight: 600; font-stretch: 88%; margin: 1.6rem 0 1rem; }
.legal h2 { font-size: 1.15rem; font-weight: 600; margin-top: 1.8rem; }
.legal p { margin-top: .5rem; color: #d8d0c4; }
.legal mark { background: var(--rot); color: #fff; padding: 0 .3em; }

