/* ============================================================
   Runa da Silva — Der digitale Kunstraum
   Ein Gut: Werke hängen pasgenau auf einer Linie, jede Arbeit
   trägt eine Museumsbeschriftung, der rote Punkt bedeutet
   „verkauft“. Alles andere bleibt zurückhaltend.
   ============================================================ */

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

@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('/fonts/archivo-latin-wdth-italic.woff2') format('woff2-variations');
}

:root {
  --wand: #FBFBF9;
  --wand-tief: #F1F0EB;
  --tinte: #191713;
  --tinte-sanft: #5F5B52;
  --linie: #E4E2DC;
  --rot: #B3261E;
  --breit: 1240px;
  --rand: clamp(1.25rem, 4vw, 3rem);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--wand);
  color: var(--tinte);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 100%;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--tinte);
  color: var(--wand);
}

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

/* ---- Orientierung für Tastatur und Bildschirmleser ---------------------- */

.sprung {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-300%);
  background: var(--tinte);
  color: var(--wand);
  padding: 0.7rem 1.1rem;
  text-decoration: none;
  z-index: 60;
  border-radius: 4px;
}

.sprung:focus {
  transform: none;
}

.fuer-leser {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nur-fuer-automaten {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Kopfbereich ---------------------------------------------------------- */

.kopf {
  position: sticky;
  top: 0;
  background: var(--wand);
  border-bottom: 1px solid var(--linie);
  z-index: 40;
}

.kopf-innen {
  max-width: var(--breit);
  margin-inline: auto;
  padding: 0.85rem var(--rand);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.namens-block {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.namenszug {
  font-stretch: 125%;
  font-weight: 740;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--tinte);
  text-decoration: none;
}

.namenszug:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.namens-unter {
  display: block;
  font-size: 0.78rem;
  font-weight: 420;
  color: var(--tinte-sanft);
  letter-spacing: 0.01em;
}

.haupt-nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.9rem);
  flex-wrap: wrap;
}

.haupt-nav a {
  color: var(--tinte);
  text-decoration: none;
  font-size: 0.97rem;
  padding-block: 0.55rem;
}

.haupt-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 7px;
}

.haupt-nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

/* ---- Grundraster ---------------------------------------------------------- */

.inhalt {
  max-width: var(--breit);
  margin-inline: auto;
  padding: 0 var(--rand) 5rem;
}

.seiten-titel {
  font-stretch: 125%;
  font-weight: 740;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  line-height: 1.06;
  margin: clamp(2rem, 5vw, 3.5rem) 0 0.9rem;
}

.abschnitt-titel {
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  margin: 0 0 1.6rem;
}

.text-link {
  color: var(--tinte);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.text-link:hover {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--rot);
}

/* ---- Startseite ------------------------------------------------------------ */

.aktuell-hinweis {
  margin: 1.6rem 0 0;
  font-size: 0.95rem;
  color: var(--tinte-sanft);
}

.aktuell-hinweis a {
  color: var(--tinte);
}

.hero {
  margin-top: clamp(1rem, 3vw, 2rem);
}

.hero-figur {
  margin: 0 auto;
  width: fit-content;
  max-width: 100%;
}

.hero-bild-link {
  display: block;
}

.hero-bild {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 900px);
  width: auto;
  height: auto;
  animation: erscheinen 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes erscheinen {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.einleitung {
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

.einleitung-text {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.55;
  font-weight: 470;
  max-width: 34em;
  margin: 0;
}

.auswahl,
.leer-hinweis-rahmen {
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
}

.abschnitt-kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.abschnitt-kopf .abschnitt-titel {
  margin: 0;
}

/* ---- Die Hängung: Bilderraster -------------------------------------------- */

.werk-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(2.5rem, 5vw, 3.6rem) clamp(1.5rem, 3.5vw, 2.6rem);
  border-top: 1px solid var(--linie);
  padding-top: clamp(2rem, 4vw, 3rem);
}

.werk-karte {
  display: block;
  color: inherit;
  text-decoration: none;
}

.werk-bild-rahmen {
  display: block;
  background: var(--wand-tief);
}

.werk-bild-rahmen img {
  display: block;
  width: 100%;
  height: auto;
}

.werk-karte:hover .werk-titel,
.werk-karte:focus-visible .werk-titel {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.werk-label {
  display: block;
  margin-top: 0.95rem;
}

.werk-titel {
  font-style: italic;
  font-weight: 520;
  font-size: 1.03rem;
  color: var(--tinte);
}

.werk-meta {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.9rem;
  color: var(--tinte-sanft);
}

.roter-punkt {
  display: inline-block;
  width: 0.52em;
  height: 0.52em;
  border-radius: 50%;
  background: var(--rot);
  margin-left: 0.5em;
}

/* ---- Filter ------------------------------------------------------------------ */

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.5rem;
  margin: 1.1rem 0 2.4rem;
}

.filter a {
  color: var(--tinte-sanft);
  text-decoration: none;
  font-size: 0.96rem;
  padding-block: 0.4rem;
}

.filter a:hover {
  color: var(--tinte);
}

.filter a[aria-current='page'] {
  color: var(--tinte);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

/* ---- Werkseite ---------------------------------------------------------------- */

.zurueck {
  margin: 1.6rem 0 0;
  font-size: 0.93rem;
}

.werk-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-top: 1.2rem;
}

.werk-hauptbild {
  margin: 0;
}

.werk-hauptbild img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
}

.werk-beschriftung {
  position: sticky;
  top: 6.5rem;
}

.werk-gross-titel {
  font-style: italic;
  font-weight: 560;
  font-size: clamp(1.45rem, 3.5vw, 1.95rem);
  line-height: 1.18;
  margin: 0 0 1.5rem;
}

.beschriftung-liste {
  margin: 0;
  border-top: 1px solid var(--linie);
}

.beschriftung-zeile {
  padding: 0.75rem 0;
}

.beschriftung-zeile + .beschriftung-zeile {
  border-top: 1px solid var(--linie);
}

.beschriftung-zeile dt {
  font-size: 0.82rem;
  color: var(--tinte-sanft);
  margin: 0 0 0.15rem;
}

.beschriftung-zeile dd {
  margin: 0;
  font-size: 0.98rem;
}

.werk-beschreibung {
  margin-top: 1.5rem;
  max-width: 34em;
  font-size: 1rem;
}

.werk-beschreibung p {
  margin: 0 0 0.9rem;
}

.weitere-ansichten {
  margin-top: clamp(3rem, 7vw, 5rem);
}

.ansichten-reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ansicht img {
  display: block;
  height: 130px;
  width: auto;
}

.ansicht:hover img {
  outline: 1px solid var(--linie);
}

.werk-weiter {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: clamp(3.5rem, 8vw, 5rem);
  border-top: 1px solid var(--linie);
  padding-top: 1.6rem;
}

.weiter-link {
  text-decoration: none;
  max-width: 46%;
}

.weiter-link.rechts {
  text-align: right;
  margin-left: auto;
}

.weiter-klein {
  display: block;
  font-size: 0.82rem;
  color: var(--tinte-sanft);
  margin-bottom: 0.3rem;
}

.weiter-titel {
  font-style: italic;
  font-size: 1.05rem;
}

.weiter-link:hover .weiter-titel {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---- Ausstellungen ---------------------------------------------------------- */

.ausstellungs-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 48rem;
}

.ausstellungs-zeile {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 0 1.75rem;
  padding: 1.7rem 0;
}

.ausstellungs-zeile + .ausstellungs-zeile {
  border-top: 1px solid var(--linie);
}

.zeit-spanne {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--tinte-sanft);
  font-variant-numeric: tabular-nums;
}

.ausstellungs-titel {
  font-weight: 620;
  font-size: 1.16rem;
  margin: 0 0 0.25rem;
}

.ort-zeile {
  margin: 0;
  font-size: 0.95rem;
  color: var(--tinte-sanft);
}

.ausstellungs-beschreibung {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  max-width: 40em;
}

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

.ueber-seite {
  display: grid;
  grid-template-columns: minmax(220px, 330px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: 1.8rem;
  align-items: start;
}

.portrait {
  margin: 0;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--wand-tief);
}

.ueber-text p {
  max-width: 34em;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-block: 1rem;
}

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

.kontakt-seite {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(300px, 1.35fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  margin-top: 2.2rem;
}

.kontakt-zeile {
  margin: 0 0 1.5rem;
}

.kontakt-titel {
  display: block;
  font-size: 0.82rem;
  color: var(--tinte-sanft);
  margin-bottom: 0.25rem;
}

.kontakt-zeile p {
  margin: 0.15rem 0;
}

.kontakt-einladung {
  margin-top: 2rem;
  font-size: 0.97rem;
  color: var(--tinte-sanft);
  max-width: 27em;
}

.bezug-hinweis {
  font-size: 0.92rem;
  color: var(--tinte-sanft);
  margin: 0 0 1.4rem;
}

/* ---- Formulare (öffentlich) ------------------------------------------------------ */

.kontakt-form {
  max-width: 36rem;
}

.form-feld {
  margin-bottom: 1.35rem;
}

.form-feld label {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

input[type='text'],
input[type='email'],
input[type='month'],
input[type='password'],
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 1rem;
  color: var(--tinte);
  background: var(--wand);
  border: 1px solid var(--linie);
  border-radius: 3px;
}

textarea {
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--tinte);
  outline-offset: 1px;
  border-color: var(--tinte);
}

.feld-fehler {
  margin: 0.4rem 0 0;
  color: var(--rot);
  font-size: 0.9rem;
}

.form-fehler-box {
  border: 1px solid var(--rot);
  padding: 0.95rem 1.2rem;
  margin-bottom: 1.6rem;
  border-radius: 3px;
  font-size: 0.95rem;
}

.form-fehler-box p {
  margin: 0;
}

.form-fehler-box ul {
  margin: 0.5rem 0 0 1.3rem;
  padding: 0;
}

.form-fehler-box a {
  color: var(--rot);
}

.grosser-knopf {
  display: inline-block;
  background: var(--tinte);
  color: var(--wand);
  border: 1px solid var(--tinte);
  font: inherit;
  font-size: 1rem;
  font-weight: 560;
  padding: 0.8rem 1.5rem;
  min-height: 48px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}

.grosser-knopf:hover {
  background: #312d26;
}

.grosser-knopf:active {
  transform: translateY(1px);
}

.grosser-knopf:focus-visible {
  outline: 2px solid var(--wand);
  outline-offset: 2px;
}

/* ---- Einfache Seiten (Impressum, Datenschutz, Meldungen) ------------------------- */

.text-seite,
.ok-seite {
  max-width: 42rem;
}

.text-seite p,
.ok-seite p {
  font-size: 1.02rem;
  line-height: 1.7;
  margin-block: 1rem;
}

.leer-hinweis {
  color: var(--tinte-sanft);
  font-size: 1.02rem;
}

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

.fuss {
  border-top: 1px solid var(--linie);
}

.fuss-innen {
  max-width: var(--breit);
  margin-inline: auto;
  padding: 1.8rem var(--rand);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--tinte-sanft);
}

.fuss-zeile {
  margin: 0;
}

.fuss-nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.fuss-nav a {
  color: var(--tinte-sanft);
}

.fuss-nav a:hover {
  color: var(--tinte);
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ---- Kleine Bildschirme -------------------------------------------------------------- */

@media (max-width: 940px) {
  .werk-detail {
    grid-template-columns: 1fr;
  }

  .werk-beschriftung {
    position: static;
    border-top: 1px solid var(--linie);
    padding-top: 1.5rem;
  }

  .werk-hauptbild img {
    margin-inline: auto;
  }
}

@media (max-width: 780px) {
  .kopf-innen {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
    padding-block: 1rem;
  }

  .haupt-nav {
    gap: 0.9rem 1.3rem;
  }

  .haupt-nav a {
    padding-block: 0.8rem;
  }

  .hero-bild {
    max-height: 66vh;
  }

  .ueber-seite,
  .kontakt-seite {
    grid-template-columns: 1fr;
  }

  .ausstellungs-zeile {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    padding-block: 1.4rem;
  }

  .zeit-spanne {
    order: 2;
    margin-top: 0.4rem;
  }

  .weiter-link,
  .weiter-link.rechts {
    max-width: 100%;
    text-align: left;
    margin-left: 0;
  }
}

/* ---- Weniger Bewegung, wenn gewünscht ------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .hero-bild {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
