/* ============================================================
   EINHAND PRESS — Stylesheet
   Gestaltungsidee: Buchdruck / Letterpress.
   Papierton statt Weiß, Buchdruckrot als Akzent, feine Haarlinien
   wie ein Satzspiegel, Navigation wie ein Inhaltsverzeichnis.
   ============================================================ */

:root {
  --paper: #ffffff;
  --paper-deep: #f2f2f2;
  --ink: #232019;
  --ink-soft: #524b3f;
  --press-red: #7c2a24;
  --press-red-deep: #5c1f1b;
  --rule: #d8d8d8;
  --max-width: 780px;

  --font-display: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-meta: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Site stays on warm paper regardless of OS theme — book paper doesn't invert */
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--press-red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--press-red-deep); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--press-red); outline-offset: 3px; }

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

/* ---------- Kopfzeile ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 2.2rem 1.5rem 1.4rem;
  text-align: left;
}

.site-header .press-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: 0.02em;
  margin: 0;
}

.site-header .press-tagline {
  font-family: var(--font-meta);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0.4rem 0 0;
}

/* ---------- Hauptnavigation: Befehlszeile am Seitenende ---------- */
.cmd-nav {
  background: #1a1816;
  color: #e7e4dd;
  font-family: 'SF Mono', 'Menlo', 'Consolas', 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-align: left;
  overflow-x: auto;
  white-space: nowrap;
}

.cmd-prompt {
  color: #8fbf7f;
  flex-shrink: 0;
}

.cmd-items a {
  color: #e7e4dd;
  text-decoration: none;
}

.cmd-items a:hover,
.cmd-items a[aria-current="page"] {
  color: #ff9a86;
  text-decoration: underline;
}

.cmd-nav .cmd-sep {
  color: #6b6862;
  margin: 0 0.15rem;
}

/* ---------- Banner (Startseite) ---------- */
.hero-banner {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-deep);
}
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 560px) {
  .hero-banner { height: 110px; }
}

/* ---------- Inhalt ---------- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.page-eyebrow {
  font-family: var(--font-meta);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--press-red);
  margin: 0 0 0.6rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 1.6rem;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 2.6rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 1.8rem 0 0.6rem;
}

p { margin: 0 0 1.1rem; }

.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
}

hr.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.6rem 0;
}

figure { margin: 2rem 0; }
figure img {
  border: 1px solid var(--rule);
  background: #fff;
  padding: 6px;
}
figcaption {
  font-family: var(--font-meta);
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
  text-align: center;
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
  margin: 2rem 0;
}

/* Platzhalter für Bilder, die noch nicht vorliegen (lokale Mac-Pfade) */
.image-missing {
  border: 1px dashed var(--rule);
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-family: var(--font-meta);
  font-size: 0.85rem;
  padding: 2.5rem 1rem;
  text-align: center;
  border-radius: 2px;
}
.image-missing code {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  word-break: break-all;
}

/* ---------- Listen / Sammlungen ---------- */
.plain-list {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  columns: 2;
  column-gap: 2.4rem;
}
.plain-list li {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--rule);
  break-inside: avoid;
}

.exhibit-list {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
}
.exhibit-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dotted var(--rule);
  font-size: 0.97rem;
}
.exhibit-list .place { color: var(--ink); }
.exhibit-list .year { color: var(--ink-soft); font-family: var(--font-meta); font-size: 0.85rem; white-space: nowrap; }

/* ---------- Bücherliste (Aktuell) ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.4rem;
  margin: 2rem 0;
}
.work-card {
  border: 1px solid var(--rule);
  background: rgba(255,255,255,0.35);
  padding: 1.4rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.work-card:hover {
  border-color: var(--press-red);
  transform: translateY(-2px);
}
.work-card .work-eyebrow {
  font-family: var(--font-meta);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--press-red);
  display: block;
  margin-bottom: 0.4rem;
}
.work-card .work-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  display: block;
}
.work-card .work-sub {
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: block;
  margin-top: 0.3rem;
}

/* ---------- Kontaktblock ---------- */
.contact-block {
  border-left: 3px solid var(--press-red);
  padding: 0.2rem 0 0.2rem 1.4rem;
  margin: 1.6rem 0;
}
.contact-block p { margin: 0 0 0.3rem; }
.contact-block .label {
  font-family: var(--font-meta);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Anfrage-Hinweis (auf jeder Werk-Seite) ---------- */
.inquiry-note {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-meta);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.inquiry-note a { color: var(--press-red); }

/* ---------- Fußzeile ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  font-family: var(--font-meta);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--press-red); }
.site-footer .back-start {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Responsiv ---------- */
@media (max-width: 560px) {
  .plain-list { columns: 1; }
  .exhibit-list li { flex-direction: column; gap: 0.1rem; }
  main { padding: 2.2rem 1.2rem 3rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work-card { transition: none; }
}

/* ---------- Lightbox (Bild anklicken zum Vergrößern) ---------- */
.lightbox-thumb {
  display: block;
  cursor: zoom-in;
}
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
  text-decoration: none;
}
.lightbox-overlay:target {
  display: flex;
}
.lightbox-overlay img {
  max-width: 92vw;
  max-height: 88vh;
  border: none;
  padding: 0;
  background: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-overlay .lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  color: #f2ede3;
  font-family: var(--font-meta);
  font-size: 2rem;
  line-height: 1;
}
