@font-face {
  font-family: "Lora";
  src: url("/fonts/lora.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/fonts/lora-italic.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Die Seite ist eine Wand. --wand wird auf der Bildseite umgeschaltet. */
  --wand: #EEEEEA;
  --tinte: #24292B;
  --leise: #5D6668;
  --linie: rgba(36, 41, 43, 0.16);
  --rahmen: #1E2021;
  --passepartout: #FBFBF8;
  --schild: #FFFFFF;
  --moos: #3E5847;
  --moos-hell: #E3EAE4;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mass: 1.5rem;
  --breite: 72rem;
  color-scheme: light;
}

/* Dunkle Wand: Schrift hell. Wird per Klasse gesetzt, nicht per Systemeinstellung,
   weil die Wandfarbe eine Entscheidung des Besuchers ist. */
html.wand-dunkel {
  --tinte: #EDEFEE;
  --leise: #B5BDBB;
  --linie: rgba(237, 239, 238, 0.22);
  --moos-hell: #2C3A31;
}

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

html {
  background: var(--wand);
  transition: background-color 400ms ease;
}

body {
  margin: 0;
  background: var(--wand);
  color: var(--tinte);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 400ms ease, color 400ms ease;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--moos);
  outline-offset: 3px;
}
html.wand-dunkel :focus-visible { outline-color: #CFE0D3; }

.uebersprung {
  position: absolute; left: -999px; top: 0;
  background: var(--schild); color: #24292B; padding: 0.5rem 1rem; z-index: 10;
}
.uebersprung:focus { left: 1rem; top: 1rem; }

.innen {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 48rem) { .innen { padding: 0 2rem; } }

/* Kopf */
.kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.marke {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.marke small {
  display: block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--leise);
  letter-spacing: 0;
}
.nav { display: flex; gap: 1.25rem; font-family: var(--sans); font-size: 0.9375rem; }
.nav a { text-decoration: none; padding: 0.25rem 0; }
.nav a[aria-current="page"] { text-decoration: underline; }

.entwurf {
  font-family: var(--sans);
  font-size: 0.8125rem;
  background: #F6E7B8;
  color: #3D3418;
  text-align: center;
  padding: 0.4rem 1rem;
}

/* Gerahmtes Bild: das eine wiederkehrende Element der Seite */
.druck {
  background: var(--rahmen);
  padding: 0.5rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 30px -18px rgba(0, 0, 0, 0.55),
    0 4px 8px -4px rgba(0, 0, 0, 0.3);
}
.druck .matte {
  background: var(--passepartout);
  padding: 8%;
}
.druck img {
  width: 100%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(0,0,0,.2);
}
.druck.schmal { padding: 0.3125rem; }
.druck.schmal .matte { padding: 7%; }

/* Museumsschild */
.schild {
  background: var(--schild);
  color: #24292B;
  padding: 1.25rem 1.375rem 1.375rem;
  max-width: 22rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.schild h1, .schild h2 {
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 0.25rem;
}
.schild .angaben {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: #5D6668;
  margin: 0 0 0.875rem;
  line-height: 1.5;
}
.schild p { margin: 0 0 1rem; font-size: 1rem; }
.schild .platzhalter-hinweis {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: #7A5B12;
}

/* Knöpfe */
.knoepfe { display: flex; flex-direction: column; gap: 0.5rem; }
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #3E5847;
  background: #3E5847;
  color: #FFFFFF;
}
.knopf:hover { background: #2F4637; text-decoration: none; }
.knopf.zweit { background: transparent; color: #3E5847; }
.knopf.zweit:hover { background: #E3EAE4; }
.bald {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: #5D6668;
  margin: 0;
}

/* Startseite: ein Bild hängt an der Wand */
.buehne {
  display: grid;
  gap: 2rem;
  align-items: end;
  padding: 2rem 0 4rem;
}
.buehne .druck { width: min(100%, 26rem); justify-self: center; }
@media (min-width: 56rem) {
  .buehne {
    grid-template-columns: 1fr minmax(0, 28rem) 1fr;
    padding: 3rem 0 6rem;
  }
  .buehne .druck { grid-column: 2; width: 100%; }
  .buehne .schild { grid-column: 3; align-self: end; margin-bottom: 2rem; }
  .buehne .einleitung { grid-column: 1; grid-row: 1; align-self: start; }
}
.einleitung h1 {
  font-weight: 500;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  max-width: 14ch;
}
.einleitung p { margin: 0; color: var(--leise); max-width: 30ch; }

/* Serien */
.serie {
  border-top: 1px solid var(--linie);
  padding: 2.5rem 0 3.5rem;
}
.serie-kopf {
  display: grid;
  gap: 0.5rem 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 48rem) {
  .serie-kopf { grid-template-columns: minmax(0, 14rem) minmax(0, 36rem); align-items: baseline; }
}
.serie-kopf h2 { font-weight: 500; font-size: 1.75rem; margin: 0; }
.serie-kopf h2 a { text-decoration: none; }
.serie-kopf h2 a:hover { text-decoration: underline; }
.serie-kopf p { margin: 0; color: var(--leise); }

/* Hängung: Bilder an einer gemeinsamen Mittellinie, wie in einer Ausstellung */
.haengung {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem 2rem;
}
.haengung .werk { flex: 0 1 auto; text-decoration: none; display: block; }
.haengung .werk.hoch { width: clamp(9rem, 22vw, 14rem); }
.haengung .werk.quer { width: clamp(13rem, 32vw, 20rem); }
.haengung .werk.quadrat { width: clamp(10rem, 25vw, 16rem); }
.werk .unterschrift {
  font-family: var(--sans);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  color: var(--leise);
}
.werk .unterschrift strong { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1rem; color: var(--tinte); }
.werk:hover .unterschrift strong { text-decoration: underline; }
@media (max-width: 30rem) {
  .haengung { gap: 2rem 1rem; }
  .haengung .werk.hoch, .haengung .werk.quadrat { width: calc(50% - 0.5rem); }
  .haengung .werk.quer { width: 100%; }
}

/* Bildseite */
.werkseite {
  display: grid;
  gap: 2.5rem;
  padding: 1.5rem 0 3rem;
}
@media (min-width: 56rem) {
  .werkseite { grid-template-columns: minmax(0, 1fr) 22rem; gap: 4rem; align-items: center; }
}
.werkseite .druck { margin: 0 auto; }
.werkseite .druck.hoch { width: min(100%, 30rem); }
.werkseite .druck.quadrat { width: min(100%, 34rem); }
.werkseite .druck.quer { width: 100%; }

.krume {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--leise);
  margin: 0.5rem 0 0;
}
.krume a { color: inherit; }

/* Wandprobe */
.wandprobe {
  border-top: 1px solid var(--linie);
  padding: 2.5rem 0 4rem;
}
.wandprobe h2 { font-weight: 500; font-size: 1.5rem; margin: 0 0 0.25rem; }
.wandprobe > p { margin: 0 0 1.5rem; color: var(--leise); max-width: 40rem; }

.regler {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
}
.regler fieldset { border: 0; margin: 0; padding: 0; }
.regler legend { font-weight: 600; margin-bottom: 0.5rem; padding: 0; }
.wahl { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wahl label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--linie);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
}
html.wand-dunkel .wahl label { background: rgba(255, 255, 255, 0.06); }
.wahl input {
  position: absolute; opacity: 0; width: 1px; height: 1px;
}
.wahl input:checked + span { font-weight: 700; }
.wahl label:has(input:checked) { border-color: var(--tinte); }
.wahl label:has(input:focus-visible) { outline: 2px solid var(--moos); outline-offset: 2px; }
.farbpunkt {
  width: 1rem; height: 1rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.szene {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--wand);
  border: 1px solid var(--linie);
  overflow: hidden;
  transition: background-color 400ms ease;
}
.szene .probe {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: width 300ms ease, height 300ms ease, bottom 300ms ease;
}
.szene .probe .druck { padding: 0.15rem; height: 100%; }
.szene .probe .matte { padding: 6%; height: 100%; display: flex; }
.szene .probe img { width: 100%; height: 100%; object-fit: cover; }
.szene .sofa {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  color: rgba(36, 41, 43, 0.82);
}
html.wand-dunkel .szene .sofa { color: rgba(15, 18, 19, 0.9); }
.szene .boden {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3%;
  background: rgba(0, 0, 0, 0.12);
}
.szene-legende {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--leise);
  margin: 0.75rem 0 0;
}

/* Textseiten */
.text {
  max-width: 40rem;
  padding: 1rem 0 4rem;
}
.text h1 { font-weight: 500; font-size: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem); line-height: 1.15; margin: 0 0 1.5rem; }
.text h2 { font-weight: 600; font-size: 1.25rem; margin: 2.25rem 0 0.5rem; }
.text h3 { font-weight: 600; font-size: 1.0625rem; margin: 1.5rem 0 0.25rem; }
.text p, .text li { max-width: 68ch; }
.text address { font-style: normal; }
.text .hinweis {
  font-family: var(--sans);
  font-size: 0.875rem;
  background: var(--moos-hell);
  padding: 0.75rem 1rem;
}

/* Fuß */
.fuss {
  border-top: 1px solid var(--linie);
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--leise);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.fuss nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.fuss a { color: inherit; }
@media (max-width: 30rem) { .szene { aspect-ratio: 4 / 3; } }
