/* =========================================================
   Endes Zettelkasten — Unterseiten (Artikel-Layout)
   Ergänzt base.css / v4.css um Typografie und Bausteine für
   die Inhaltsseiten (Projekt, Literatur, Stellenkommentar,
   Urmanuskript & Nachlass, Aktuelles).
   ========================================================= */

.breadcrumb {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}
.breadcrumb:hover { color: var(--bordeaux); }

/* Satzbreite: Überschrift und Fließtext teilen sich dasselbe Maß */
:root { --measure: 72ch; }

.article-head {
  text-align: left;
  max-width: var(--measure);
}
.article-head h1 {
  font-family: var(--serif-display);
  color: var(--bordeaux);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  margin: 0.3em 0 0.5em;
}

.article {
  max-width: var(--measure);
  padding-block: 0.5rem clamp(3rem, 6vw, 5rem);
  text-align: justify;
}
.article p { margin: 0 0 1.15em; }
.article h2 {
  font-family: var(--serif-display);
  color: var(--bordeaux);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 2rem 0 0.9rem;
}
.article ul { margin: 0 0 1.2em; padding-left: 1.4em; }
.article li { margin-bottom: 0.4em; }
.article a { color: var(--green-deep); text-decoration-color: var(--line); }
.article a:hover { color: var(--bordeaux); }
.article strong { color: var(--ink); }

.meta-block {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.meta-block a { color: var(--green-deep); }

/* --- Bilder / Abbildungen --- */
figure.fig { margin: 1.8rem 0; }
figure.fig img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--cream-soft);
}
figure.fig figcaption {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
figure.fig figcaption.small { font-size: 0.78rem; }

.fig-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 1.8rem 0 0;
}
.fig-pair img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.fig-pair-caption {
  grid-column: 1 / -1;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
@media (max-width: 600px) {
  .fig-pair { grid-template-columns: 1fr; }
}

/* --- Förderhinweis / DFG-Logo --- */
.funding {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.funding img { max-width: 260px; margin-inline: auto; }

/* --- Vortragskarten (Aktuelles) --- */
.talk {
  display: flex;
  gap: 1.8rem;
  margin: 0 0 2.6rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--line);
}
.talk:last-child { border-bottom: none; margin-bottom: 0; }
.talk .talk-figure { flex: 0 0 clamp(140px, 26vw, 190px); }
.talk .talk-figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.talk .talk-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.talk .talk-body {
  flex: 1 1 auto;
  min-width: 0;
  /* Flattersatz: die Spalte ist nur ~45 Zeichen breit, im Blocksatz reissen
     lange Linktexte, Werktitel und Domains sichtbare Luecken. */
  text-align: left;
}
.talk .talk-body h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  color: var(--bordeaux);
  font-size: 1.3rem;
  margin: 0 0 0.6rem;
  line-height: 1.25;
}
.talk .talk-body p { margin: 0 0 0.9em; }

.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--bordeaux);
  border-radius: 2px;
  color: var(--bordeaux);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 1em;
}
.article a.btn-pdf:hover { background: var(--bordeaux); color: var(--paper); }

.citation {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.55;
  padding-left: 0.9rem;
  border-left: 2px solid var(--line);
}

/* --- Literaturseite: PDF-Einbettung --- */
.pdf-embed {
  margin: 1.6rem 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  background: var(--paper);
}
.pdf-embed iframe {
  width: 100%;
  height: 70vh;
  border: 0;
  display: block;
}
.pdf-fallback {
  padding: 0.9rem 1.2rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  margin: 0;
}

@media (max-width: 700px) {
  .talk { flex-direction: column; }
  .talk .talk-figure { flex: none; max-width: 220px; }
}

/* --- Lightbox / Zoom für Abbildungen --- */
/* .is-zoomable wird per JavaScript gesetzt: ohne JS kein Zoom-Cursor */
.is-zoomable { cursor: zoom-in; }
.is-zoomable:focus-visible {
  outline: 2px solid var(--bordeaux);
  outline-offset: 3px;
}

body.lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 37, 32, 0.94);
  cursor: zoom-out;
}

.lightbox-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: min(1200px, 100%);
  max-height: 100%;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  width: auto;
  margin-inline: auto;
  border: 1px solid rgba(246, 241, 230, 0.25);
  border-radius: 2px;
  background: var(--cream-soft);
}

.lightbox-caption {
  margin: 0.9rem 0 0;
  max-width: 80ch;
  margin-inline: auto;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--cream-soft);
}
.lightbox-caption[hidden] { display: none; }

.lightbox-close {
  position: absolute;
  top: -2.6rem;
  right: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-body);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(246, 241, 230, 0.4);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--cream);
  color: var(--ink);
}

@media (max-width: 600px) {
  .lightbox-close { top: -2.3rem; }
  .lightbox-img { max-height: calc(100vh - 10rem); }
}
