/* Schrift: Archivo (Omnibus-Type), SIL Open Font License, lokal eingebunden */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --papier: #f0efea;
  --tinte: #151514;
  --grau: #6a6964;
  --linie: rgba(21, 21, 20, 0.17);
  --marker: #ffe14d;
  --rand: clamp(16px, 2.4vw, 36px);
  --spalt: clamp(12px, 1.5vw, 22px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #131312;
    --tinte: #e8e6e0;
    --grau: #98968f;
    --linie: rgba(232, 230, 224, 0.16);
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--marker); color: #151514; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

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

img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* 12-Spalten-Raster, auf das sich alles bezieht */
.raster {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--spalt);
  padding-inline: var(--rand);
  max-width: 1720px;
  margin-inline: auto;
}

.label {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
  font-stretch: 82%;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--grau);
}

/* ---------- Kopf ---------- */

.kopf {
  padding-block: 18px;
  align-items: start;
  font-size: 15px;
  line-height: 1.35;
}
.kopf .name {
  grid-column: 1 / span 4;
  font-weight: 600;
  text-decoration: none;
}
.kopf .rolle {
  grid-column: 5 / span 4;
  margin: 0;
  color: var(--grau);
}
.kopf nav {
  grid-column: 9 / span 4;
  justify-self: end;
  display: flex;
  gap: 22px;
}
.kopf nav a { text-decoration: none; }
.kopf nav a:hover { text-decoration: underline; }

/* ---------- Einstieg ---------- */

.intro {
  padding-top: clamp(72px, 15vh, 190px);
  padding-bottom: clamp(64px, 12vh, 150px);
}
.intro p {
  grid-column: 1 / span 10;
  margin: 0;
  font-size: clamp(30px, 4.3vw, 68px);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.026em;
  text-wrap: pretty;
}

/* ---------- Verzeichnis ---------- */

.verzeichnis { row-gap: 12px; }
.verzeichnis > .label { grid-column: 1 / -1; }

.liste {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--tinte);
}
.liste li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.liste a {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: baseline;
  padding-block: 13px 14px;
  border-bottom: 1px solid var(--linie);
  text-decoration: none;
  font-size: clamp(17px, 1.45vw, 21px);
  font-variant-numeric: tabular-nums;
}
.liste a:hover,
.liste a:focus-visible {
  background: var(--marker);
  box-shadow: -10px 0 0 var(--marker), 10px 0 0 var(--marker);
  color: #151514;
  outline: none;
}
.liste .nr { grid-column: 1; }
.liste .titel { grid-column: 2 / span 5; font-weight: 500; }
.liste .art { grid-column: 7 / span 4; }
.liste .jahr { grid-column: 11; }
.liste .dauer { grid-column: 12; justify-self: end; }
.liste .nr, .liste .art, .liste .jahr, .liste .dauer { color: var(--grau); }
.liste a:hover span, .liste a:focus-visible span { color: inherit; }

/* ---------- Werke ---------- */

.werk {
  padding-top: clamp(96px, 14vh, 170px);
  row-gap: 22px;
  scroll-margin-top: 0;
}
.werk-kopf {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  border-top: 1px solid var(--tinte);
  padding-top: 13px;
}
.werk-kopf .nr { grid-column: 1; }
.werk-kopf .zeile { grid-column: 2 / -1; }

.werk-titel {
  grid-column: 1 / -1;
  margin: 10px 0 8px -0.04em;
  font-size: clamp(48px, 9.2vw, 156px);
  line-height: 0.9;
  font-weight: 500;
  font-stretch: 86%;
  letter-spacing: -0.042em;
}

.leinwand-rahmen {
  grid-column: 1 / span 8;
  margin: 0;
}
.leinwand {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  color: inherit;
  font: inherit;
}
.leinwand video,
.leinwand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.leinwand .ansehen {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px 12px 14px;
  background: var(--papier);
  color: var(--tinte);
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.leinwand .ansehen .dauer { color: var(--grau); font-weight: 400; }
.leinwand:hover .ansehen,
.leinwand:focus-visible .ansehen { background: var(--marker); color: #151514; }
.leinwand:hover .ansehen .dauer,
.leinwand:focus-visible .ansehen .dauer { color: #151514; }
.dreieck {
  width: 0;
  height: 0;
  border-left: 10px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.leinwand-rahmen figcaption { margin-top: 9px; }

.werk-info {
  grid-column: 9 / span 4;
  align-self: start;
}
.werk-text {
  margin: 0 0 26px;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.42;
  text-wrap: pretty;
}
.daten {
  margin: 0;
  border-top: 1px solid var(--linie);
  font-size: 15px;
  line-height: 1.35;
}
.daten div {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 12px;
  padding-block: 8px 9px;
  border-bottom: 1px solid var(--linie);
}
.daten dt { color: var(--grau); }
.daten dd { margin: 0; }

/* ---------- Über mich ---------- */

.ueber {
  padding-top: clamp(110px, 16vh, 210px);
  row-gap: 22px;
}
.abschnitt {
  grid-column: 1 / -1;
  border-top: 1px solid var(--tinte);
  padding-top: 13px;
}
.portrait {
  grid-column: 1 / span 3;
  margin: 0;
}
.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.ueber-text {
  grid-column: 5 / span 7;
}
.ueber-text p {
  margin: 0 0 0.9em;
  max-width: 34em;
  font-size: clamp(19px, 1.55vw, 24px);
  line-height: 1.36;
  letter-spacing: -0.008em;
  text-wrap: pretty;
}
.stationen-titel { margin-top: 44px; margin-bottom: 10px; }
.stationen {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--linie);
  font-size: 15px;
  max-width: 44em;
}
.stationen li {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 12px;
  padding-block: 8px 9px;
  border-bottom: 1px solid var(--linie);
}
.stationen .zeit { color: var(--grau); font-variant-numeric: tabular-nums; }

/* ---------- Kontakt ---------- */

.kontakt {
  padding-top: clamp(110px, 16vh, 210px);
  row-gap: 22px;
}
.mail {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 6px;
  font-size: clamp(26px, 7vw, 116px);
  line-height: 1;
  font-weight: 500;
  font-stretch: 86%;
  letter-spacing: -0.04em;
  text-decoration-thickness: 0.045em;
  text-underline-offset: 0.12em;
  overflow-wrap: anywhere;
}
.mail:hover { background: var(--marker); color: #151514; text-decoration-thickness: 0.045em; }
.kontakt-weiter {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 17px;
}

/* ---------- Fuß ---------- */

.fuss {
  padding-top: clamp(110px, 16vh, 200px);
  padding-bottom: 26px;
  align-items: end;
  font-size: 13px;
  line-height: 1.4;
  color: var(--grau);
}
.fuss p { margin: 0; }
.fuss-name { grid-column: 1 / span 4; }
.fuss-recht { grid-column: 5 / span 6; }
.fuss-hoch { grid-column: 11 / span 2; justify-self: end; }

.hinweis-nojs { padding-block: 40px; }

/* ---------- Vorführung ---------- */

.vf {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  color: #d4d2cb;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.vf[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.vf.an { opacity: 1; }
.vf::backdrop { background: transparent; }

.vf-kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px var(--rand);
  font-size: 15px;
}
.vf-titel { margin: 0; font-weight: 500; }
.vf-titel .nr { color: #8e8c86; font-weight: 400; margin-right: 0.9em; font-variant-numeric: tabular-nums; }
.vf-zu {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.vf-zu:hover { border-color: rgba(255, 255, 255, 0.7); }
.vf-zu .taste {
  padding: 1px 5px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 11px;
  font-stretch: 82%;
  letter-spacing: 0.04em;
  color: #8e8c86;
}
.vf :focus-visible { outline-color: #fff; }

.vf-buehne {
  display: grid;
  place-items: center;
  min-height: 0;
  padding-inline: var(--rand);
}
.vf-video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 124px);
  background: #000;
}
.vf-yt {
  display: block;
  outline: 1px solid rgba(255, 255, 255, 0.12);
  width: min(100%, calc((100dvh - 124px) * 16 / 9));
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}
.vf-fuss {
  margin: 0;
  padding: 12px var(--rand) 18px;
  font-size: 13px;
  color: #8e8c86;
}

/* ---------- Schmal ---------- */

@media (max-width: 860px) {
  .kopf .name { grid-column: 1 / span 6; }
  .kopf .rolle { grid-column: 7 / span 6; justify-self: end; text-align: right; }
  .kopf nav {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 14px;
  }
  .intro p { grid-column: 1 / -1; }

  .liste a {
    grid-template-columns: 2.4em minmax(0, 1fr) auto;
    column-gap: 10px;
    row-gap: 2px;
  }
  .liste .nr { grid-column: 1; grid-row: 1; }
  .liste .titel { grid-column: 2; grid-row: 1; }
  .liste .dauer { grid-column: 3; grid-row: 1; }
  .liste .art { grid-column: 2; grid-row: 2; font-size: 14px; }
  .liste .jahr { grid-column: 3; grid-row: 2; justify-self: end; font-size: 14px; }

  .werk-kopf .nr { grid-column: 1 / span 2; }
  .werk-kopf .zeile { grid-column: 3 / -1; }
  .leinwand-rahmen, .werk-info { grid-column: 1 / -1; }
  .leinwand .ansehen { padding: 8px 11px 9px 10px; font-size: 14px; gap: 9px; }
  .werk-info { margin-top: 18px; }

  .portrait { grid-column: 1 / span 7; }
  .ueber-text { grid-column: 1 / -1; margin-top: 10px; }

  .fuss { row-gap: 12px; }
  .fuss-name { grid-column: 1 / span 6; }
  .fuss-hoch { grid-column: 7 / span 6; }
  .fuss-recht { grid-column: 1 / -1; grid-row: 1; margin-bottom: 8px; }
}

@media (min-width: 861px) and (max-width: 1180px) {
  .leinwand-rahmen { grid-column: 1 / span 7; }
  .werk-info { grid-column: 8 / span 5; }
  .portrait { grid-column: 1 / span 4; }
  .ueber-text { grid-column: 6 / span 7; }
}

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