/* Startseite – aus vorlage.html ausgelagert, damit die CSP kein 'unsafe-inline' braucht */
:root {
  --grund: #1d1c1a;
  --flaeche: #262421;
  --hell: #efe9df;
  --leise: #a39a8c;
  --linie: #3a3732;
  --textil: #8e9fd1;   /* Indigo, aufgehellt */
  --holz: #c8905f;     /* Nussbraun */
  --papier: #d8b861;   /* Ocker */
  /* Eine Schrift für alles: die von „Vielfalt – Neugier – Offenheit“ (Wunsch der Künstlerin) */
  --sans: "Segoe UI", "Open Sans", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.gleitet { scroll-behavior: auto; }   /* app.js gleitet selbst */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--grund); color: var(--hell); font-family: var(--sans); font-size: 1.02rem; line-height: 1.7; }
h1, h2, .titel, .kachel .schild b, .preis b { font-weight: 300; }
a { color: inherit; }
img { display: block; }
.innen { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.klein { font-family: var(--sans); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--leise); }
.sprung { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--hell); color: var(--grund); padding: 8px 14px; border-radius: 6px; }
.sprung:focus { top: 12px; }

/* Kopf */
header { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
header .innen { display: flex; justify-content: flex-end; align-items: center; height: 76px; }
header nav { background: rgba(29,28,26,.72); backdrop-filter: blur(6px); padding: 9px 18px; border-radius: 999px; }
header nav a { text-decoration: none; color: var(--hell); }
header nav a + a { margin-left: 22px; }

.buehne { min-height: clamp(640px, 100vh, 940px); display: grid; grid-template-columns: 1.05fr 1fr; }
.buehne .links { display: flex; flex-direction: column; justify-content: center; padding: 120px 56px 70px max(28px, calc((100vw - 1240px) / 2 + 28px)); }
/* Nur der Name im Seitentitel in Garamond (Wunsch der Künstlerin), sonst überall --sans */
.buehne h1 { font-family: "EB Garamond", Garamond, "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-weight: 400; font-size: clamp(3.4rem, 7.4vw, 6.8rem); line-height: .98; margin: 0; }
.buehne h1 span { display: block; }
.buehne h1 span + span { padding-left: .9em; }
.leitworte { margin: 72px 0 0; }
.leitworte span + span::before { content: "–"; margin: 0 .8em; letter-spacing: 0; }
.motto { margin: 20px 0 0; font-size: 1.2rem; font-weight: 300; color: var(--leise); }

.kacheln { display: grid; grid-template-rows: 1.2fr 1fr 1fr; }
.kachel { position: relative; display: block; text-decoration: none; overflow: hidden; border-left: 1px solid var(--linie); border-bottom: 1px solid var(--linie); background: var(--flaeche); }
.kachel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.kachel .schild {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 22px 28px;
  display: flex; align-items: baseline; gap: 16px;
  background: linear-gradient(to top, rgba(20,19,17,.85), transparent);
}
.kachel .schild b { font-size: 2.1rem; }
.kachel .schild .pfeil { margin-left: auto; transition: transform .25s; }
.kachel:hover .pfeil { transform: translateX(6px); }
.kachel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--farbe); z-index: 2; }

/* Werkverzeichnis */
.verzeichnis { padding: 120px 0 90px; }
.verzeichnis-kopf { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 44px; }
.verzeichnis-kopf h2 { font-size: 3rem; margin: 0; line-height: 1; }
.filter { display: flex; gap: 6px; flex-wrap: wrap; }
.filter[hidden] { display: none; }
.filter button {
  font: inherit; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  background: none; color: var(--leise); border: 1px solid var(--linie); border-radius: 999px; padding: 8px 16px; cursor: pointer;
}
.filter button[aria-pressed="true"] { color: var(--grund); background: var(--hell); border-color: var(--hell); }

.werkraum { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.liste li { border-bottom: 1px solid var(--linie); }
.liste button {
  width: 100%; background: none; border: 0; color: inherit; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 3.4em 1fr auto; align-items: baseline; gap: 12px; padding: 18px 6px;
  font: inherit;
}
.liste .nr { font-size: .8rem; color: var(--leise); }
.liste .titel { font-size: 1.55rem; transition: padding .25s, color .25s; }
.liste .art { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--farbe); }
.liste button:hover .titel, .liste button[aria-current="true"] .titel { padding-left: 12px; }
.liste button[aria-current="true"] .nr { color: var(--farbe); }
.liste .mini { display: none; }
.liste .mini img { width: 100%; height: auto; }

.ansicht { position: sticky; top: 40px; margin: 0; }
.ansicht .flaeche { position: relative; aspect-ratio: 1 / 1; background: #171614; }
.ansicht .flaeche img { position: absolute; inset: 28px; width: calc(100% - 56px); height: calc(100% - 56px); object-fit: contain; }
.ansicht figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; align-items: baseline; }
/* Titel bewusst eingerückt, aber nicht mittig (Wunsch der Künstlerin) */
.ansicht figcaption .titel { font-size: 1.35rem; padding-left: 18%; }

/* Vita */
.vita { background: var(--hell); color: #26231f; padding: 110px 0; }
.vita .innen { display: grid; grid-template-columns: .8fr 1.6fr; gap: 56px; }
.vita .innen > div:last-child { max-width: 42em; }
.vita h2 { font-size: 3rem; margin: 0; line-height: 1; }
.vita .klein { color: #6b6255; }
.vita p { margin: 0 0 18px; }
.preis { margin-top: 30px; padding-top: 20px; border-top: 1px solid #d4cbbd; }
.preis b { display: block; font-size: 1.3rem; margin-top: 6px; }

footer { padding: 40px 0 56px; }
footer .innen { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { text-decoration: none; margin-left: 24px; }

button:focus-visible, a:focus-visible { outline: 2px solid var(--papier); outline-offset: 3px; }

@media (max-width: 900px) {
  .buehne { grid-template-columns: 1fr; min-height: 0; }
  .buehne .links { padding: 120px 20px 56px; }
  .kacheln { grid-template-rows: none; }
  .kachel { height: 38vw; min-height: 170px; border-left: 0; }
  .kachel .schild .klein { display: none; }
  .werkraum { grid-template-columns: 1fr; }
  .ansicht { display: none; }
  .liste button { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .liste .mini { display: block; }
  .liste button:hover .titel, .liste button[aria-current="true"] .titel { padding-left: 0; }
  .liste .kopfzeile { display: flex; gap: 14px; align-items: baseline; padding-left: 14%; }
  .vita .innen { grid-template-columns: 1fr; gap: 30px; }
  .innen { padding: 0 16px; }
  /* .verzeichnis trägt auch .innen – sonst nimmt die Zeile darüber ihm den Abstand nach oben/unten */
  .verzeichnis { padding: 88px 16px 72px; }
}
@media (min-width: 901px) { .liste .kopfzeile { display: contents; } }

/* Farbe je Werkbereich (statt style-Attribut) */
.f-textil { --farbe: var(--textil); }
.f-holz { --farbe: var(--holz); }
.f-papier { --farbe: var(--papier); }
