/* Grußalbum Offline-Archiv — generiert. Keine externen Ressourcen. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-roman.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-sans-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-bold.woff2") format("woff2");
}

:root {
  --clr-bg: #FAF7F2; --clr-surface: #FFFFFF; --clr-text: #231F1A; --clr-text-muted: #6B5F52; --clr-accent: #9B6C3E; --clr-accent-text: #FAF7F2; --clr-border: #E0D6C8; --font-heading: var(--font-display); --font-body: var(--font-body); --radius: 12px; --shadow-card: 0 4px 16px rgba(35,31,26,0.08);
  /* Marken-Familie zuerst, dann lokaler System-Fallback (keine CDNs). */
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --archive-maxw: 640px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body.archive {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.amp {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--clr-accent);
}

/* ── Cover ─────────────────────────────────────────────── */
.cover {
  position: relative;
  overflow: hidden;
  padding: 96px 24px 72px;
  text-align: center;
  color: #fff;
  /* Gradient-Fallback — bleibt sichtbar, wenn kein Hero-Foto vorliegt. */
  background:
    radial-gradient(60% 80% at 50% 30%, rgba(255, 235, 210, 0.35) 0%, transparent 60%),
    repeating-linear-gradient(35deg, rgba(0, 0, 0, 0.05) 0 8px, transparent 8px 22px),
    linear-gradient(180deg, var(--clr-accent) 0%, var(--clr-text) 100%);
}

/* Hero-Foto (Slice 2c): füllt das Cover, Scrim sorgt für Textlesbarkeit. */
.cover.has-hero {
  padding-top: 120px;
  padding-bottom: 88px;
}
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cover-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(35, 31, 26, 0.30) 0%,
    rgba(35, 31, 26, 0.55) 70%,
    rgba(35, 31, 26, 0.68) 100%
  );
}

.cover-inner {
  position: relative;
  z-index: 2;
  max-width: var(--archive-maxw);
  margin: 0 auto;
}

.cover-eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.cover-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.cover-title .amp { color: #fff; }

.cover-meta {
  margin: 18px 0 0;
  font-size: 14px;
  letter-spacing: 0.04em;
  opacity: 0.92;
}

.cover-presented-by {
  margin: 12px 0 0;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ── Navigation (Slice 2b · scriptfrei, sticky) ─────────── */
html { scroll-behavior: smooth; }

.archive-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
}

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-full, 999px);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-text-muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 120ms ease, color 120ms ease;
}
.nav-link:hover {
  background: var(--clr-surface-alt, var(--clr-bg));
  color: var(--clr-text);
}
.nav-link:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 2px;
}
.nav-count {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--clr-accent);
}

.nav-link.is-active {
  background: var(--clr-accent);
  color: #fff;
  border-color: var(--clr-accent);
}
.nav-link.is-active .nav-count { color: #fff; }

/* Kompakter Kopf der Unterseiten (statt großem Cover-Hero) */
.page-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  max-width: var(--archive-maxw);
  margin: 0 auto;
  padding: 22px 16px 6px;
}
.page-back {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-accent);
  text-decoration: none;
  white-space: nowrap;
}
.page-back:hover { text-decoration: underline; }
.page-head-title {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--clr-text);
}

@media (max-width: 480px) {
  .archive-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-link { white-space: nowrap; }
}

/* ── Stream + Sektionen ─────────────────────────────────── */
.stream {
  max-width: var(--archive-maxw);
  margin: 0 auto;
  padding: 40px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.archive-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  /* Sticky-Nav nicht über den Sprung-Anker legen. */
  scroll-margin-top: 64px;
}

.section-title {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--clr-border);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--clr-text);
}

.section-empty {
  margin: 0;
  padding: 4px 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--clr-text-muted);
}

.entry {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
}

.entry.is-favorite {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 1px var(--clr-accent) inset, var(--shadow-card);
}

.entry-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 12px;
}

.entry-name {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 500;
  color: var(--clr-text);
}

.entry-sub {
  font-size: 12.5px;
  color: var(--clr-text-muted);
  letter-spacing: 0.02em;
}

.entry-fav {
  margin-left: auto;
  color: var(--clr-accent);
  font-size: 16px;
  line-height: 1;
}

.entry-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.entry-audio {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.entry-audio-el {
  width: 100%;
  max-width: 420px;
  height: 40px;
}

.entry-dur {
  font-size: 12px;
  color: var(--clr-text-muted);
  font-variant-numeric: tabular-nums;
}

.entry-video-el {
  width: 100%;
  max-width: 480px;
  border-radius: calc(var(--radius) - 4px);
  background: #000;
}

.entry-photo-img {
  max-width: 100%;
  max-height: 380px;
  border-radius: calc(var(--radius) - 4px);
  object-fit: cover;
  display: block;
}

.entry-photo-credit {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--clr-text-muted);
}

.lightbox-credit {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--clr-text-muted);
}

.entry-transcript {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--clr-text);
  white-space: pre-wrap;
  padding-left: 16px;
  border-left: 2px solid var(--clr-accent);
}

.entry-role { display:block; font-style: italic; opacity: 0.85; margin-top: 2px; }
.entry-doc { margin-top: 10px; }
.entry-doc-link { font-size: 0.9em; text-decoration: underline; }

.archive-empty {
  text-align: center;
  color: var(--clr-text-muted);
  padding: 48px 0;
}

/* ── Fußzeile ──────────────────────────────────────────── */
.archive-foot {
  max-width: var(--archive-maxw);
  margin: 0 auto;
  padding: 32px 16px 64px;
  text-align: center;
}

.archive-foot-title {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--clr-text);
}

.archive-foot-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--clr-text-muted);
}

/* Technische Hinweise zur Wiedergabe — ruhige Karte, links ausgerichtet. */
.archive-tech {
  margin: 28px auto 0;
  max-width: 540px;
  padding: 18px 20px;
  text-align: left;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
}

.archive-tech-title {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

.archive-tech-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--clr-text-muted);
}

.archive-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: var(--clr-text);
}

/* ── Galerie (Masonry · scriptfrei) ────────────────────── */
.archive-gallery .gallery {
  columns: 180px;
  column-gap: 10px;
}

.gallery-tile {
  display: block;
  position: relative;
  break-inside: avoid;
  margin: 0 0 10px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--clr-surface);
  text-decoration: none;
}

.gallery-tile.is-favorite { border-color: var(--clr-accent); }

.gallery-img,
.gallery-vid {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* ── Lightbox (reines :target — kein JS) ───────────────── */
.lightbox { display: none; }

.lightbox:target {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 15, 0.78);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(880px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--clr-surface);
  border-radius: var(--radius);
  overflow: auto;
}

.lightbox-media { display: flex; justify-content: center; }

.lightbox-img,
.lightbox-vid {
  max-width: 100%;
  max-height: 70vh;
  border-radius: calc(var(--radius) - 4px);
  object-fit: contain;
  background: #000;
}

.lightbox-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--clr-text);
}

.lightbox-fav { color: var(--clr-accent); margin-left: 8px; }

.lightbox-sub {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--clr-text-muted);
}

.lightbox-text {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  padding-left: 12px;
  border-left: 2px solid var(--clr-accent);
  color: var(--clr-text);
}

.lb-nav,
.lb-close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-full, 999px);
  text-decoration: none;
}

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 20px;
}

.lb-prev { left: 18px; }
.lb-next { right: 18px; }

.lb-close {
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  font-size: 16px;
}

@media (min-width: 720px) {
  .cover { padding: 120px 24px 88px; }
  .stream { padding-top: 56px; }
}


/* Mitwirkende (Provider-Karten) */
.archive-providers .provider-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
}

.provider-card-inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.provider-photo {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
}

.provider-photo-placeholder {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--clr-surface-alt, var(--clr-bg));
  border: 1px solid var(--clr-border);
}

.provider-info {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.provider-name {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 500;
  color: var(--clr-text);
  line-height: 1.2;
}

.provider-trades {
  margin: 0;
  font-size: 12.5px;
  color: var(--clr-text-muted);
  letter-spacing: 0.02em;
}

.provider-bio {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--clr-text);
}

.provider-contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.provider-link {
  font-size: 13px;
  color: var(--clr-accent);
  text-decoration: none;
  word-break: break-all;
}
.provider-link:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .provider-card-inner { flex-direction: column; align-items: center; text-align: center; }
  .provider-contact { align-items: center; }
}

/* Setlist (Musik & Stimmung) */
.archive-setlists .setlist { margin: 0 0 28px; }
.setlist-head { margin: 0 0 10px; }
.setlist-label { margin: 0; font-size: 1.15rem; }
.setlist-sub { margin: 2px 0 0; color: var(--clr-text-muted); font-size: .85rem; }
.setlist-list, .setlist-timeline { list-style: none; margin: 0; padding: 0; }
.setlist-track {
  display: flex; gap: 12px; align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid var(--clr-border);
}
.setlist-track:last-child { border-bottom: 0; }
.setlist-time {
  flex: 0 0 auto; min-width: 3.2em; color: var(--clr-accent);
  font-variant-numeric: tabular-nums; font-size: .85rem; font-weight: 600;
}
.setlist-timeline { position: relative; padding-left: 14px; }
.setlist-artist { font-weight: 600; }
.setlist-dot { color: var(--clr-text-muted); }
.setlist-title { color: var(--clr-text); }

/* Mini-Spiele: Foto-Bingo-Wand + Multi-Angle-Momente */
.section-lead { margin: 0 0 18px; color: var(--clr-text-muted); font-size: .92rem; }
.archive-bingo .bingo-motif,
.archive-moments .moment-bundle { margin: 0 0 28px; }
.bingo-motif-title,
.moment-bundle-title {
  margin: 0 0 10px; font-size: 1.1rem; font-family: var(--font-heading); font-weight: 600;
}
.bingo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.bingo-tile { margin: 0; border-radius: var(--radius); overflow: hidden; }
.bingo-tile.is-favorite { outline: 2px solid var(--clr-accent); outline-offset: -2px; }
.bingo-img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
}
.moment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.moment-clip {
  border: 1px solid var(--clr-border); border-radius: var(--radius);
  overflow: hidden; background: var(--clr-surface);
}
.moment-vid { width: 100%; height: auto; display: block; background: #000; }

/* Zeitkapseln (Migration 0092): scriptfreier <details>-Reveal.
   Zugeklappt = Siegel-Karte; [open] klappt den Inhalt mit sanfter
   Einblendung auf. Keine Persistenz — Neuladen versiegelt die Ansicht
   wieder (Rubbellos: die bewusste Handlung zählt, nicht der Zustand). */
.capsule-card {
  margin: 0 0 14px;
  border: 1px dashed var(--clr-border);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 6px,
      rgba(0, 0, 0, 0.025) 6px, rgba(0, 0, 0, 0.025) 12px),
    var(--clr-surface);
  overflow: hidden;
}
.capsule-summary {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none; /* Standard-Dreieck ausblenden — das Siegel ist der Marker */
}
.capsule-summary::-webkit-details-marker { display: none; }
.capsule-summary:hover { background: rgba(0, 0, 0, 0.03); }
.capsule-seal { font-size: 1.6rem; flex: none; }
.capsule-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.capsule-name { font-weight: 600; font-family: var(--font-heading); }
.capsule-meta { color: var(--clr-text-muted); font-size: .85rem; }
.capsule-open-hint {
  margin-left: auto; flex: none;
  padding: 6px 14px;
  border: 1px solid var(--clr-accent); border-radius: 999px;
  color: var(--clr-accent); font-size: .82rem; font-weight: 600;
  white-space: nowrap;
}
.capsule-card[open] { border-style: solid; }
.capsule-card[open] .capsule-open-hint { display: none; }
.capsule-body {
  padding: 4px 18px 18px;
  animation: capsule-reveal .45s ease-out;
}
.capsule-text {
  margin: 8px 0 0; padding: 10px 14px;
  border-left: 3px solid var(--clr-accent);
  background: var(--clr-bg);
  white-space: pre-wrap; font-style: italic;
}
.capsule-empty { color: var(--clr-text-muted); font-size: .9rem; }
@keyframes capsule-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.demo-banner{position:sticky;top:0;z-index:50;margin:0;padding:10px 18px;
  font-family:var(--font-body);font-size:13px;letter-spacing:.02em;text-align:center;
  color:var(--clr-text);background:var(--clr-accent-soft,#f3e7d2);
  border-bottom:1px solid var(--clr-border,#d8c7a8);}
