/* PromptLab – Portfolio im Stil einer Produktseite: hell, ein 3D-Handy, große fette Schrift. */

@font-face {
  font-family: "Archivo"; src: url(/pl/schrift/archivo-latin-wdth-normal.woff2) format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}

:root {
  --grund: #f2f3f5;
  --weiss: #ffffff;
  --tinte: #111318;
  --grau: #6e737a;
  --linie: #dfe2e6;
  --glut: #ff6b35;
  --schrift: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --rand: clamp(20px, 5vw, 80px);
  --weich: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--grund); color: var(--tinte); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font: 400 17px/1.5 var(--schrift); background: var(--grund); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--tinte); color: var(--grund); }
:focus-visible { outline: 2px solid var(--glut); outline-offset: 4px; border-radius: 6px; }

.etikett { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--glut); }

.springen { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--tinte); color: var(--grund); padding: 10px 14px; border-radius: 8px; }
.springen:focus { top: 12px; }

/* Kopf */
.kopf {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--rand);
}
.kopf a { font-size: 15px; font-weight: 700; letter-spacing: -.01em; padding: 10px 0; }
.kopf__kontakt { padding: 10px 18px !important; border-radius: 99px; background: var(--tinte); color: var(--grund); transition: transform .3s var(--weich), background .3s; }
.kopf__kontakt:hover { transform: translateY(-1px); background: #2a2e36; }
.kopf__kontakt:active { transform: scale(.97); }

/* 3D-Bühne: liegt fest über allem Text der Kapitel, aber unter Kopf und Links */
.buehne { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 7; pointer-events: none; }
.ohne-3d .buehne { display: none; }

/* Cursor */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor {
    display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none;
    width: 0; height: 0; border-radius: 50%; background: var(--tinte);
    transition: width .45s var(--weich), height .45s var(--weich), margin .45s var(--weich);
  }
  .js .cursor.ist-gross { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
  .cursor__text { font-size: 12px; font-weight: 700; color: var(--grund); opacity: 0; transition: opacity .2s; }
  .cursor.ist-gross .cursor__text { opacity: 1; }
}

/* Hero: riesiges Wort hinter dem Handy */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: grid; place-items: center; }
.hero__licht { position: absolute; inset: 0; background: radial-gradient(42% 52% at 50% 50%, var(--weiss), transparent 72%); }
.hero__wort {
  position: relative; margin: 0; font-weight: 850; font-stretch: 125%; text-transform: uppercase; white-space: nowrap;
  font-size: clamp(44px, 11.2vw, 250px); line-height: .82; letter-spacing: -.045em;
  color: var(--tinte);
}
.hero__zeile { display: block; }
.hero__unter {
  position: absolute; left: var(--rand); right: var(--rand); bottom: 34px; margin: 0; display: flex; justify-content: space-between;
  font-size: clamp(15px, 1.25vw, 19px); font-weight: 500; color: var(--grau); z-index: 6;
}
.hero__unter span { color: var(--tinte); font-weight: 700; }

/* Kapitel: Text auf einer Seite, das Handy steht auf der anderen */
.kapitel { position: relative; min-height: 165svh; padding: 0 var(--rand); z-index: 6; pointer-events: none; }
.kapitel__text {
  position: sticky; top: 0; height: 100svh; max-width: 46vw;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.kapitel__text > * { pointer-events: auto; }
.kapitel--rechts .kapitel__text { margin-left: auto; align-items: flex-end; text-align: right; }
.kapitel h2 {
  margin: 10px 0 14px; font-weight: 850; font-stretch: 112%; font-size: clamp(48px, 6.4vw, 124px); line-height: .88; letter-spacing: -.045em;
  hyphens: manual;
}
.kapitel__zeile { margin: 0; font-size: clamp(19px, 1.7vw, 28px); font-weight: 500; letter-spacing: -.015em; color: var(--grau); }
.pfeil {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 12px 20px; border-radius: 99px;
  background: var(--weiss); box-shadow: 0 1px 0 rgba(17,19,24,.06), 0 10px 30px -14px rgba(17,19,24,.25);
  font-size: 15px; font-weight: 600; transition: transform .35s var(--weich), box-shadow .35s var(--weich);
}
.pfeil::after { content: "↗"; color: var(--glut); transition: transform .35s var(--weich); }
.pfeil:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(17,19,24,.06), 0 16px 34px -14px rgba(17,19,24,.35); }
.pfeil:hover::after { transform: translate(2px, -2px); }
.pfeil:active { transform: scale(.97); }
.kapitel__bild { display: none; }

/* Ohne 3D: Handybilder neben dem Text */
.ohne-3d .kapitel { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; min-height: 100svh; }
.ohne-3d .kapitel__text { position: static; height: auto; margin: 0; }
.ohne-3d .kapitel--rechts .kapitel__text { order: 2; text-align: left; justify-self: start; }
.ohne-3d .kapitel__text { max-width: none; }
.ohne-3d .kapitel__bild { display: block; width: min(300px, 70%); justify-self: center; border-radius: 34px; box-shadow: 0 0 0 8px #d9d5ce, 0 40px 80px -30px rgba(17,19,24,.4); }

/* Galerie: Desktop-Ansichten laufen seitwärts */
.galerie { position: relative; z-index: 6; overflow: hidden; padding: 6vh 0; background: var(--grund); }
.galerie__band { display: flex; gap: 28px; width: max-content; padding: 0 var(--rand); }
.galerie a { display: block; width: clamp(300px, 56vw, 980px); border-radius: 20px; overflow: hidden; background: var(--weiss); box-shadow: 0 30px 80px -40px rgba(17,19,24,.35), 0 0 0 1px rgba(17,19,24,.05); transition: transform .5s var(--weich); }
.galerie a:hover { transform: translateY(-2px); }
.galerie img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .8s var(--weich); }
.galerie a:hover img { transform: scale(1.025); }

/* Kontakt */
.kontakt { position: relative; z-index: 6; min-height: 100svh; display: grid; place-items: center; align-content: center; gap: 44px; padding: 14vh var(--rand) 120px; text-align: center; background: var(--grund); }
.kontakt__titel { margin: 0; font-weight: 850; font-stretch: 112%; font-size: clamp(56px, 10vw, 190px); line-height: .86; letter-spacing: -.05em; }
.knopf {
  display: inline-block; padding: 22px 40px; border-radius: 99px; background: var(--tinte); color: var(--grund);
  font-size: 18px; font-weight: 700; transition: transform .35s var(--weich), background .35s;
}
.knopf:hover { transform: translateY(-2px); background: var(--glut); color: var(--tinte); }
.knopf:active { transform: scale(.97); }
.fuss { position: absolute; left: var(--rand); right: var(--rand); bottom: 28px; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--grau); }
.fuss a { padding: 12px 0; }
.fuss a:hover { color: var(--tinte); }

/* Handy */
@media (max-width: 760px) {
  .kopf { padding: 12px var(--rand); }
  .hero__unter { flex-direction: column; gap: 4px; bottom: 26px; }
  .kapitel { min-height: 160svh; }
  .kapitel__text, .kapitel--rechts .kapitel__text {
    max-width: none; margin: 0 calc(var(--rand) * -1); padding: 0 var(--rand) 9vh; align-items: flex-start; text-align: left;
    justify-content: flex-end;
  }
  .kapitel h2 { font-size: clamp(44px, 13vw, 64px); }
  .ohne-3d .kapitel { grid-template-columns: 1fr; padding-top: 12vh; }
  .ohne-3d .kapitel__text { background: none; margin: 0; padding: 0 0 6vh; }
  .ohne-3d .kapitel__bild { order: -1; width: 52%; }
  .fuss { flex-direction: column; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
