/* Rabbitopia — Studioauftritt. Tokens siehe agents/delivery/website/DESIGN.md */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/newsreader-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/newsreader-latin-300-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/newsreader-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/newsreader-latin-400-italic.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --space: #060708;
  --fragment: #e5ddcc;
  --muted: #a39d91;
  --faint: #6b6861;
  --hairline: rgba(229, 221, 204, 0.16);
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --label: Arial, Helvetica, sans-serif;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --measure: 34em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--space);
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--space);
  color: var(--fragment);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  font-optical-sizing: auto;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--muted);
}

a:hover {
  text-decoration-color: var(--fragment);
}

:focus-visible {
  outline: 2px solid var(--fragment);
  outline-offset: 3px;
}

.label {
  font-family: var(--label);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.5;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  background: var(--fragment);
  color: var(--space);
}

.skip-link:focus {
  top: 0.75rem;
}

/* Navigation */

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--gutter);
  background: linear-gradient(rgba(6, 7, 8, 0.94), rgba(6, 7, 8, 0.8) 70%, rgba(6, 7, 8, 0));
}

.site-nav a {
  text-decoration: none;
  padding: 0.35rem 0;
}

.wordmark {
  font-style: italic;
  font-weight: 300;
  font-size: 1.3rem;
  line-height: 1;
}

.site-nav ul {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul a {
  color: var(--muted);
}

.site-nav ul a:hover,
.site-nav ul a:focus-visible {
  color: var(--fragment);
}

/* Einstieg */

.hero {
  --rabbit-cy: 0.38;
  --rabbit-h: 0.46;
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 36rem;
  overflow: hidden;
}

.hero-canvas,
.hero-static {
  position: absolute;
}

.hero-canvas {
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.intro-live .hero-canvas {
  opacity: 1;
}

.hero-static {
  left: 50%;
  top: calc(var(--rabbit-cy) * 100%);
  height: calc(var(--rabbit-h) * 120%);
  width: auto;
  max-width: none;
  transform: translate(-50%, -50%);
}

.js .hero-static {
  visibility: hidden;
}

.js.intro-failed .hero-static {
  visibility: visible;
}

.hero-title {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: calc((var(--rabbit-cy) + var(--rabbit-h) / 2) * 100% + clamp(0.5rem, 6vh - 1.75rem, 2.5rem));
  margin: 0;
  text-align: center;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3.25rem, 1rem + 7.5vw, 8rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.hero-title:focus {
  outline: none;
}

.hero-copy {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(1.5rem, 5vh, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 3rem;
}

.hero-line {
  max-width: 17em;
  margin: 0;
  font-size: clamp(1.35rem, 1rem + 1.3vw, 2.1rem);
  line-height: 1.22;
  font-weight: 300;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.85rem 0 0.7rem;
  border-bottom: 1px solid var(--fragment);
  text-decoration: none;
}

.cta span[aria-hidden] {
  transition: transform 0.3s ease;
}

.cta:hover span[aria-hidden] {
  transform: translateY(3px);
}

.intro-skip {
  position: absolute;
  top: 4.75rem;
  right: var(--gutter);
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  display: none;
}

/* Während des Intros nur für Tastatur und Screenreader da (wie .skip-link);
   bei Fokus erscheint er an seiner Position. Abkürzen per Klick auf den Hasen: intro.js */
.intro-live:not(.intro-done) .intro-skip {
  display: block;
}

.intro-live:not(.intro-done) .intro-skip:not(:focus):not(:focus-visible) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.intro-skip:hover {
  color: var(--fragment);
}

/* Die Texte erscheinen nach dem Hasen; ohne JS sind sie sofort da. */
@keyframes reveal {
  from { opacity: 0; transform: translateY(0.35rem); }
  to { opacity: 1; transform: none; }
}

.js .reveal-name {
  opacity: 0;
  animation: reveal 1.4s cubic-bezier(0.2, 0.6, 0.2, 1) 5.6s forwards;
}

.js .reveal-line {
  opacity: 0;
  animation: reveal 1.2s cubic-bezier(0.2, 0.6, 0.2, 1) 6.4s forwards;
}

.js.intro-done .reveal-name,
.js.intro-done .reveal-line,
.js .reveal-line:focus-within {
  opacity: 1;
  animation: none;
}

/* Abschnitte */

main > section:not(.hero) {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(0, 3fr);
  column-gap: var(--gutter);
  padding: clamp(5rem, 13vh, 9rem) var(--gutter);
  border-top: 1px solid var(--hairline);
}

.section-label {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.section-body {
  min-width: 0;
}

.section-body > p {
  max-width: var(--measure);
  margin: 0 0 1.1em;
}

.lead {
  font-size: clamp(1.4rem, 1.05rem + 1.2vw, 2.1rem);
  line-height: 1.3;
  font-weight: 300;
  max-width: 22em;
}

.section-body > p.lead {
  max-width: 22em;
  margin-bottom: 1.2em;
}

/* Werktitel mit der Leitfrage als Unterzeile. */
.work-heading {
  margin: 0 0 clamp(2.5rem, 6vh, 4rem);
}

.work-title {
  max-width: 17em;
  margin: 0 0 0.4em;
  font-weight: 300;
  font-size: clamp(2rem, 1.2rem + 3vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.work-question {
  max-width: 22em;
  margin: 0;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.35rem, 1rem + 1.3vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.work-figure {
  margin: 0 calc(-1 * var(--gutter)) clamp(2.5rem, 6vh, 4rem) 0;
}

.work-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  box-sizing: border-box;
  border: 1px solid var(--hairline);
}

.work-figure figcaption {
  max-width: 44em;
  margin-top: 0.9rem;
  padding-right: var(--gutter);
  color: var(--muted);
  letter-spacing: 0.12em;
}

/* Werkzugänge: Hauptweg als CTA, weitere Fassungen als Liste */

.work-versions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.work-versions a {
  display: inline-block;
  padding: 0.4rem 0;
}

.work-versions-note {
  max-width: var(--measure);
  margin: 0.9rem 0 clamp(2.5rem, 6vh, 4rem);
  color: var(--muted);
  font-size: 0.95rem;
}

.work-text {
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr);
  gap: 1rem var(--gutter);
  align-items: start;
}

.work-text p {
  margin: 0 0 1.1em;
}

.facts {
  margin: 0.4rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--hairline);
  list-style: none;
}

.facts li {
  display: flex;
  gap: 0.9em;
  align-items: baseline;
  padding: 0.35rem 0;
}

.facts strong {
  min-width: 2.2em;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0;
  text-transform: none;
}

.facts-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.direction {
  margin-top: clamp(3rem, 8vh, 5rem);
}

.direction h3 {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-weight: 400;
}

.direction ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
  font-weight: 300;
}

.direction li {
  display: flex;
  align-items: baseline;
}

.direction li + li::before {
  content: '→';
  margin: 0 0.6em;
  color: var(--faint);
  font-size: 0.8em;
}

.direction .is-open {
  color: var(--faint);
}

.direction .is-open .word {
  color: var(--muted);
  opacity: 0.62;
}

.direction-legend {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: var(--measure);
}

.contact-mail {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: clamp(1.35rem, 1rem + 1.2vw, 2rem);
  font-weight: 300;
  font-style: italic;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Rechtsseiten: eine schmale Textspalte, gleiche Tokens wie die Startseite */

.legal {
  padding: clamp(6rem, 14vh, 9rem) var(--gutter) clamp(3rem, 8vh, 5rem);
}

.legal .section-body > h1 {
  margin: 0 0 1.2em;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  line-height: 1.1;
}

.legal h2 {
  max-width: var(--measure);
  margin: 1.8em 0 0.5em;
  font-weight: 400;
  font-size: 1.2em;
}

.legal ul {
  max-width: var(--measure);
  margin: 0 0 1.1em;
  padding-left: 1.2em;
}

.legal li {
  margin: 0 0 0.35em;
}

.optout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.optout-button {
  padding: 0.6rem 1rem;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--fragment);
  cursor: pointer;
}

.optout-button:hover {
  border-color: var(--muted);
}

.optout-status {
  color: var(--muted);
}

/* Interne Freigabefelder: bewusst auffällig, nie unauffällig. Vor Veröffentlichung entfernen. */
.approval-pending {
  display: inline-block;
  padding: 0.05em 0.4em;
  border: 1px dashed var(--fragment);
  background: rgba(229, 221, 204, 0.08);
  color: var(--fragment);
  font-family: var(--label);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.approval-banner {
  max-width: var(--measure);
  margin: 0 0 2rem;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--fragment);
  color: var(--fragment);
  font-size: 0.95rem;
}

@media (max-width: 60rem) {
  .work-text {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 47.5rem) {
  main > section:not(.hero) {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-label {
    margin: 0 0 1.5rem;
  }

  .work-figure {
    margin-left: calc(-1 * var(--gutter));
  }

  .work-figure img {
    aspect-ratio: 16 / 9;
  }

  .work-figure figcaption {
    padding-left: var(--gutter);
  }

  .hero {
    --rabbit-cy: 0.36;
    --rabbit-h: 0.42;
  }

  .hero-copy {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav ul {
    gap: 1.1rem;
  }
}

/* Vier Navigationseinträge: Abstände und Laufweite stufenweise enger,
   Schriftgröße der Einträge bleibt 0.75rem. Geprüft 320–480 px. */
@media (max-width: 30rem) {
  .site-nav {
    gap: 0.75rem;
  }

  .site-nav .wordmark {
    font-size: 1.15rem;
  }

  .site-nav ul {
    gap: 0.75rem;
  }

  .site-nav ul .label {
    letter-spacing: 0.08em;
  }
}

@media (max-width: 22.5rem) {
  .site-nav ul {
    gap: 0.6rem;
  }

  .site-nav ul .label {
    letter-spacing: 0.05em;
  }
}

@media (max-width: 21.25rem) {
  .site-nav .wordmark {
    font-size: 1.05rem;
  }

  .site-nav ul {
    gap: 0.5rem;
  }

  .site-nav ul .label {
    letter-spacing: 0.02em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal-name,
  .js .reveal-line {
    opacity: 1;
    animation: none;
  }

  .cta span[aria-hidden] {
    transition: none;
  }
}

/* Porträt im angenommenen Künstlerprofil, ohne Beschnitt. */
#ueber .section-body { display: flow-root; }
.profile-portrait {
  float: right;
  width: 34%;
  max-width: 20rem;
  height: auto;
  margin: 0 0 1.5rem 2rem;
}
.profile-portrait img {
  display: block;
  width: 100%;
  height: auto;
}
.profile-portrait figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}
/* Archivaufnahme beim Q.Et.Al-Absatz: klein, dem Porträt untergeordnet. */
.archive-photo {
  float: right;
  clear: right;
  width: 20%;
  max-width: 11rem;
  margin: 0 0 1.5rem 2rem;
}
.archive-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.archive-photo figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}
@media (max-width: 60rem) {
  .archive-photo {
    float: none;
    width: 100%;
    max-width: 12rem;
    margin: 0 0 2rem;
  }
  .profile-portrait {
    float: none;
    display: block;
    width: 100%;
    max-width: 24rem;
    margin: 0 0 2rem;
  }
}

/* Live-Performance „Mensch, Bass und Maschine“: ruhige Passage am Ende von #arbeit. */
.live {
  margin-top: clamp(3rem, 8vh, 5rem);
  padding-top: clamp(2rem, 5vh, 3rem);
  border-top: 1px solid var(--hairline);
}
.live-title {
  max-width: 17em;
  margin: 0 0 1rem;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.live-status {
  display: inline-block;
  margin: 0 0 1.75rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--fragment);
  color: var(--fragment);
}
.live-text {
  max-width: var(--measure);
}
.live-text p {
  margin: 0 0 1.1em;
}
.live-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem var(--gutter);
  max-width: 48rem;
  margin: 1.75rem 0 0;
}
.live-forms dt {
  margin: 0 0 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
}
.live-forms dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.live-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 2rem;
  margin: 1.75rem 0 0;
}
.live-more {
  color: var(--muted);
  padding: 0.4rem 0;
}
@media (max-width: 47.5rem) {
  .live-forms {
    grid-template-columns: minmax(0, 1fr);
  }
}
