/* =====================================================================
   HAVERBECK — couche spécifique au Digitalarchiv Ursula Haverbeck.
   Chargée en dernier, après archive.css + glacial-noir.css +
   design-restoration.css. Additive : logo typographique, tableaux des
   procédures, notices bibliographiques avec provenance, chronique médias.
   ===================================================================== */

/* ---------- Logo typographique (pas de wordmark image) ---------- */
.uh-logo { flex-direction: column; align-items: flex-start; gap: 0.1rem; line-height: 1; }
.uh-logo-text { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: 0.04em; color: var(--text); }
.uh-logo-sub { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }

/* Hero : cadrage sur le visage (photo d'audience, sujet à droite) ; le haut de
   l'image est clair (vitrage) → voile supérieur renforcé pour la nav et le kicker */
.uh-hero-bg img { object-position: 62% 24%; }
.uh-logo-text, .uh-logo-sub { text-shadow: 0 1px 14px rgba(20, 15, 11, 0.8); }
.uh-hero-credit {
  display: block; margin-top: 2.2rem;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--muted); opacity: 0.8;
}
/* Nav : huit entrées — resserrer légèrement */
@media (min-width: 769px) { .uh-nav-links { gap: 1.35rem; } .uh-nav-link { font-size: 0.7rem; } }
@media (max-width: 1100px) and (min-width: 769px) { .uh-nav-links { gap: 1rem; } .uh-nav-link { letter-spacing: 0.08em; } }

/* ---------- Chronologie : ligne de source sous chaque entrée ---------- */
.uh-tl-text { max-width: 60ch; }
.uh-tl-desc { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; max-width: 62ch; }
.uh-tl-src { margin-top: 0.5rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; color: var(--muted); opacity: 0.85; }
.uh-tl-src::before { content: ""; display: inline-block; width: 14px; height: 1px; background: var(--gold); opacity: 0.6; margin: 0 0.5rem 0.2em 0; }

/* ---------- Schriften : cartes avec notice, nachweis, provenance ---------- */
.uh-works-grid { grid-template-columns: repeat(3, 1fr); }
.uh-work-cover { aspect-ratio: 3 / 4; }
.uh-work-cover--none {
  display: grid; place-items: center; padding: 1.4rem; text-align: center;
  background: var(--cover-bg);
}
.uh-work-cover--none span {
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem; line-height: 1.35; color: var(--muted);
}
.uh-work-cover--none small { display: block; margin-top: 0.8rem; font-family: var(--font-mono); font-style: normal; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); opacity: 0.7; }
.uh-work-cover--contain img { object-fit: contain; padding: 1rem; background: var(--cover-bg); }
.uh-work-title { font-size: 1.08rem; }
.uh-work-desc { font-size: 0.86rem; }
.uh-work-proof { margin-top: 0.6rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; color: var(--text); }
.uh-work-proof a { color: var(--gold); border-bottom: 1px solid var(--border-strong); padding-bottom: 1px; transition: border-color 0.3s var(--ease); }
.uh-work-proof a:hover { border-color: var(--gold); }
.uh-work-credit { margin-top: 0.45rem; font-size: 0.72rem; line-height: 1.5; color: var(--muted); opacity: 0.85; }
@media (max-width: 1024px) { .uh-works-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .uh-works-grid { grid-template-columns: 1fr; } }

/* ---------- Verfahren : tableaux d'archive ---------- */
.uh-verf-title {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.1rem; font-weight: 400;
}
.uh-verf-title + .uh-verf-wrap { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.uh-verf-wrap {
  overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface);
}
.uh-verf {
  width: 100%; min-width: 980px; border-collapse: collapse;
  font-size: 0.86rem; line-height: 1.55; color: var(--color-cool-gray);
}
.uh-verf th {
  font-family: var(--font-mono); font-size: 0.64rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); text-align: left; padding: 1rem 1.1rem; border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
.uh-verf td { padding: 1rem 1.1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.uh-verf tbody tr:last-child td { border-bottom: 0; }
.uh-verf tbody tr { transition: background 0.3s var(--ease); }
.uh-verf tbody tr:hover { background: var(--tint); }
.uh-verf em { color: var(--text); font-style: italic; }
.uh-verf-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text); white-space: nowrap; }
.uh-verf-court { color: var(--text); }
.uh-verf a { color: var(--gold); border-bottom: 1px solid var(--border-strong); padding-bottom: 1px; transition: border-color 0.3s var(--ease); font-size: 0.8rem; }
.uh-verf a:hover { border-color: var(--gold); }
@media (max-width: 767px) {
  .uh-verf-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .uh-verf { min-width: 0; }
  .uh-verf thead { display: none; }
  .uh-verf tbody tr { display: block; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 1rem; padding: 0.5rem 0; }
  .uh-verf td { display: block; border: 0; padding: 0.45rem 1rem; }
  .uh-verf td::before {
    content: attr(data-label); display: block; font-family: var(--font-mono); font-size: 0.58rem;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.15rem;
  }
}

/* ---------- Medienchronik ---------- */
.uh-media { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.uh-media-date { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--gold); }
.uh-media .uh-card-title { font-size: 1.25rem; }
.uh-media-src { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); display: inline-flex; gap: 0.5rem; align-items: center; border-bottom: 1px solid var(--border-strong); padding-bottom: 3px; align-self: flex-start; transition: all 0.3s var(--ease); }
.uh-media-src:hover { color: var(--gold); border-color: var(--gold); }
.uh-media-src--none { border: 0; color: var(--muted); }
@media (max-width: 768px) { .uh-media { grid-template-columns: 1fr; } }

/* Galerie : légendes toujours lisibles pour les couvertures (fond clair) */
.uh-gallery { columns: 3; }
.uh-gallery-item figcaption { opacity: 1; font-size: 0.7rem; line-height: 1.45; padding-top: 2.2rem; }
.uh-gallery-item figcaption em { font-style: italic; }
@media (max-width: 768px) { .uh-gallery { columns: 2; } }
@media (max-width: 480px) { .uh-gallery { columns: 1; } }

/* ---------- Familie / Themen : cartes d'à-propos ---------- */

/* ---------- Sources : catégorie en filet ---------- */
.uh-source-card .uh-card-title { font-size: 1.15rem; }

/* Bandeau principe (remplace le carrousel de citations) */
.uh-quote-text { font-size: clamp(1.35rem, 3vw, 2.15rem); max-width: 30ch; }

/* ---------- Accueil : chiffres clés, dates repères, renvois ---------- */
.uh-section--tight { padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
.uh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.uh-stat { display: flex; flex-direction: column; gap: 0.35rem; padding: 0 0 0 1.1rem; border-left: 1px solid var(--border-strong); }
.uh-stat-n { font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1; color: var(--gold); letter-spacing: -0.02em; }
.uh-stat-l { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); max-width: 18ch; line-height: 1.5; }
.uh-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem 2rem; counter-reset: fact; }
.uh-fact { position: relative; padding: 1.2rem 0 0; border-top: 1px solid var(--border-strong); display: flex; flex-direction: column; gap: 0.5rem; }
.uh-fact::before { content: ""; position: absolute; top: -1px; left: 0; width: 34px; height: 2px; background: var(--gold); box-shadow: 0 0 10px var(--rz-glow); }
.uh-fact-y { font-family: var(--font-display); font-size: 1.6rem; color: var(--gl-ice-bright, var(--text)); letter-spacing: -0.01em; }
.uh-fact-t { color: var(--muted); font-size: 0.95rem; line-height: 1.6; max-width: 34ch; }
.uh-more { margin: clamp(1.6rem, 3vw, 2.4rem) 0 0; }
a.uh-work { color: inherit; }
@media (max-width: 1024px) { .uh-stats { grid-template-columns: repeat(2, 1fr); } .uh-facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .uh-stats { grid-template-columns: 1fr 1fr; gap: 1.4rem 0.8rem; } .uh-facts { grid-template-columns: 1fr; } }

/* ---------- Vidéo : carte externe (ouvre la page de la rédaction) ---------- */
.uh-videos-grid { grid-template-columns: repeat(2, 1fr); }
.uh-video--ext { display: block; color: inherit; }
.uh-video-thumb img { filter: saturate(0.6) contrast(1.05); }
.uh-video--ext:hover .uh-video-thumb img { filter: saturate(0.8) contrast(1.05); }
.uh-video-name { font-family: var(--font-display); font-size: 1.2rem; }
.uh-video-desc { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; max-width: 56ch; }
.uh-video-src { display: inline-block; margin-top: 0.7rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 768px) { .uh-videos-grid { grid-template-columns: 1fr; } }

/* Ancre du hero vers la vidéo : dégager la barre de navigation fixe */
#video { scroll-margin-top: 90px; }

/* ---------- Accessibilité : lien d'évitement, texte masqué, cibles tactiles, focus ---------- */
.uh-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.uh-skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; padding: 0.7rem 1.1rem; border-radius: 999px; background: var(--gold); color: #2E241B; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; transition: top 0.2s var(--ease); }
.uh-skip:focus { top: 1rem; outline: 2px solid #2E241B; outline-offset: 2px; }
main:focus { outline: none; }
.uh-lang-btn { min-height: 44px; min-width: 44px; padding: 0.35rem 0.85rem; }
.uh-burger { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.uh-filter-btn { min-height: 44px; }
.uh-to-top { width: 48px; height: 48px; }
.uh-card:focus-visible, .uh-work:focus-visible, .uh-video--ext:focus-visible, .uh-filter-btn:focus-visible, .uh-lang-btn:focus-visible, .uh-burger:focus-visible, .uh-to-top:focus-visible, .uh-footer-brand:focus-visible, .uh-footer-col a:focus-visible, .uh-media-src:focus-visible, .uh-work-proof a:focus-visible, .uh-verf a:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Galerie : bouton natif d'agrandissement ---------- */
.uh-gallery-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: inherit; }
.uh-gallery-zoom img { display: block; width: 100%; }
.uh-gallery-item:focus-within figcaption { opacity: 1; }
.uh-gallery-zoom:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
