/* Almana – Eine schwarze Hochzeit (Grundlage: Amave mera) */
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans"; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans"; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans"; src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  /* Schwarz, Elfenbein, dunkles Weinrot (#8b1a1a). Für Text auf Schwarz eine hellere Stufe desselben Rots (lesbar). */
  --paper: #0a0909;
  --paper-2: #121010;
  --ink: #ece6df;
  --ink-soft: #a9a09b;
  --wine: #8b1a1a;
  --accent: #c8625b;
  --gold: #c8625b;
  --moss: #6b4644;
  --line: #2a2222;
  --card: #110f0f;
  color-scheme: dark;
}

html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans", system-ui, sans-serif;
  font-size: 1.08rem;
  line-height: 1.7;
}
h1, h2, h3, .serif { font-family: "Cormorant", Georgia, serif; font-weight: 600; letter-spacing: .01em; }
h2 { font-size: 2.2rem; margin-bottom: 1rem; }
h3 { font-size: 1.55rem; }
a { color: var(--accent); }
a:hover { color: var(--gold); }
.text-soft { color: var(--ink-soft); }
.lead { font-size: 1.22rem; }

/* navigation */
.navbar { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.navbar-brand { font-family: "Cormorant", Georgia, serif; font-size: 1.45rem; color: var(--ink) !important; }
.navbar-brand em { color: var(--accent); font-weight: 500; }
.nav-link { color: var(--ink-soft) !important; font-size: .98rem; }
.nav-link.active, .nav-link:hover { color: var(--accent) !important; }
.navbar-toggler { border-color: var(--line); }
.navbar-toggler-icon { filter: invert(1); }

/* hero */
.hero { padding: 7rem 0 4.5rem; text-align: center; position: relative; }
.hero .title { font-size: clamp(3.2rem, 11vw, 6.5rem); line-height: 1; margin: 0; }
.hero .subtitle { font-family: "Cormorant", Georgia, serif; font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 5vw, 2.5rem); color: var(--accent); margin-top: .4rem; }
.hero .credits { margin-top: 1.4rem; color: var(--ink-soft); letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
.staff { display: block; width: 100%; height: auto; color: var(--gold); }
/* Leitmotiv: notation that plays */
.motif { margin: 2.2rem auto 0; width: min(680px, 100%); }
.motif-btn { display: block; width: 100%; padding: .4rem 0; background: none; border: 0; border-radius: 6px; cursor: pointer; color: inherit; }
.motif-btn .staff { transition: filter .4s ease; }
.motif-btn:hover .staff, .motif-btn:focus-visible .staff, .motif.is-playing .staff { filter: drop-shadow(0 0 6px rgba(200, 98, 91, .35)); }
.motif-btn:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.staff .n { transition: color .25s ease, filter .25s ease; }
.motif.is-playing .staff .n { color: rgba(200, 98, 91, .55); }
.motif.is-playing .staff .n.on { color: #ffe3de; filter: drop-shadow(0 0 5px rgba(240, 160, 150, .9)); }
.motif.is-playing .staff .n.done { color: var(--gold); }
.motif-cap { margin-top: .5rem; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.05rem; color: var(--ink-soft); letter-spacing: .02em; }
.motif-btn:hover + .motif-cap, .motif.is-playing .motif-cap { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .staff .n, .motif-btn .staff { transition: none; } }
.page-hero { padding: 5.5rem 0 2rem; text-align: center; }
.page-hero h1 { font-size: clamp(2.6rem, 8vw, 4rem); margin: 0; }
.page-hero p { color: var(--ink-soft); font-style: italic; font-family: "Cormorant", Georgia, serif; font-size: 1.4rem; }

section { padding: 3.5rem 0; }
.prose { max-width: 42rem; margin: 0 auto; }
.divider { border: 0; border-top: 1px solid var(--line); width: 6rem; margin: 2.5rem auto; opacity: 1; }

/* cards */
.card-soft { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; height: 100%; }
.badge-step { display: inline-block; font-family: "Cormorant", Georgia, serif; font-size: 1.1rem; color: var(--gold); border: 1px solid var(--gold); border-radius: 50%; width: 2.2rem; height: 2.2rem; line-height: 2.05rem; text-align: center; margin-bottom: .6rem; }
.year { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

/* player */
.player { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; max-width: 46rem; margin: 0 auto; }
.player audio { width: 100%; }
.missing { font-style: italic; color: var(--ink-soft); padding: .8rem 0; display: none; }
.player.is-missing .missing, .stage.is-missing .missing { display: block; }
.player.is-missing audio, .stage.is-missing audio, .stage.is-missing video { display: none; }
.chapters button:hover .ch-title, .chapters li.current .ch-title { color: var(--accent); }
.chapters button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ch-time { font-variant-numeric: tabular-nums; color: var(--gold); min-width: 3.2rem; }
.ch-title { font-family: "Cormorant", Georgia, serif; font-size: 1.25rem; font-weight: 600; }
.ch-desc { display: block; color: var(--ink-soft); font-size: .95rem; }
/* a clicked chapter plays alone: gold frame and a progress line */
.chapters li { position: relative; }
.chapters .ch-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold); opacity: .8; pointer-events: none; }
.chapters li.solo button { outline: 1px solid var(--gold); outline-offset: -1px; }

/* youtube two-click */
.yt { position: relative; aspect-ratio: 16/9; background: #111 center/cover; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; color: #eee; padding: 1rem; }
.yt button { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: .55rem 1.2rem; font-weight: 600; }
.yt small { display: block; margin-top: .6rem; opacity: .8; font-size: .8rem; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* hands */
.hands { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .hands { grid-template-columns: 1fr 1fr; } }
.hands h3 small { display: block; font-family: "Source Sans", sans-serif; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 400; }
.hands ul { padding-left: 1.1rem; margin: 0; }

blockquote.voice { font-family: "Cormorant", Georgia, serif; font-style: italic; font-size: 1.45rem; line-height: 1.4; border-left: 3px solid var(--gold); padding: .2rem 0 .2rem 1.2rem; margin: 1.8rem 0; }
blockquote.voice footer { font-family: "Source Sans", sans-serif; font-style: normal; font-size: .85rem; color: var(--ink-soft); margin-top: .4rem; }

.timeline { position: relative; padding-left: 1.6rem; }
.timeline::before { content: ""; position: absolute; left: .45rem; top: .4rem; bottom: .4rem; width: 1px; background: var(--line); }
.timeline .tl { position: relative; margin-bottom: 1.4rem; }
.timeline .tl::before { content: ""; position: absolute; left: -1.38rem; top: .55rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.timeline .tl strong { font-family: "Cormorant", Georgia, serif; font-size: 1.2rem; }

.placeholder-note { background: color-mix(in srgb, var(--gold) 14%, transparent); border: 1px dashed var(--gold); border-radius: 10px; padding: .9rem 1.1rem; font-size: .95rem; }
.portrait { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: var(--paper-2); }

footer.site { border-top: 1px solid var(--line); padding: 2.2rem 0 3rem; color: var(--ink-soft); font-size: .92rem; text-align: center; }
footer.site a { color: var(--ink-soft); }
.btn-accent { background: var(--accent); color: #fff; border-radius: 999px; padding: .55rem 1.4rem; }
.btn-accent:hover { background: var(--gold); color: #fff; }
.btn-outline { border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: .5rem 1.3rem; }
.btn-outline:hover { background: var(--accent); color: #fff; }
.footer-title { font-size: 1.3rem; }

.hero .title { letter-spacing: .04em; font-weight: 400; }
.btn-accent { background: var(--gold); color: #0a0909; }
.btn-accent:hover { background: var(--ink); color: #0a0909; }
.btn-outline:hover { background: var(--gold); color: #0a0909; }
.yt button { background: var(--gold); color: #0a0909; }
.prose p, .card-soft p { color: var(--ink); }
.text-soft { color: var(--ink-soft) !important; }

/* video thumbnails with play button */
.thumb { position: relative; display: block; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; padding: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease, opacity .3s; opacity: .9; }
.thumb:hover img { transform: scale(1.03); opacity: 1; }
.thumb .play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  background: rgba(10,9,9,.62); border: 2px solid var(--gold); cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.thumb .play::after { content: ""; position: absolute; left: 30px; top: 22px; border-style: solid; border-width: 15px 0 15px 24px;
  border-color: transparent transparent transparent var(--gold); }
.thumb:hover .play { background: rgba(200,98,91,.9); transform: scale(1.06); }
.thumb:hover .play::after { border-left-color: #0a0909; }
.thumb .play:focus-visible, a.thumb:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.thumb-note { display: block; margin-top: .5rem; color: var(--ink-soft); font-size: .82rem; }
.yt.thumb { display: block; }
.yt.thumb .play { top: 26%; }

/* ---------- Museum: chronological exhibits with a vertical timeline ---------- */
.museum-intro { max-width: 40rem; margin: 0 auto 3.5rem; text-align: center; color: var(--ink-soft); font-family: "Cormorant", Georgia, serif; font-style: italic; font-size: 1.35rem; }
.exhibits { list-style: none; padding: 0; margin: 0 auto; max-width: 60rem; position: relative; }
.exhibits::before { content: ""; position: absolute; top: .6rem; bottom: 0; left: 10.5rem; width: 1px;
  background: linear-gradient(to bottom, var(--gold), var(--line) 12%, var(--line) 88%, transparent); }
.exhibit { display: grid; grid-template-columns: 9rem 1fr; column-gap: 3rem; padding-bottom: 5rem; position: relative; }
.exhibit::before { content: ""; position: absolute; left: calc(10.5rem - 6px); top: .55rem; width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--gold); transition: background .6s ease, box-shadow .6s ease; }
.exhibit.in::before { background: var(--gold); box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 15%, transparent); }
.ex-date { text-align: right; padding-top: .1rem; }
.ex-year { display: block; font-family: "Cormorant", Georgia, serif; font-size: 2.3rem; line-height: 1; color: var(--gold); }
.ex-when { display: block; margin-top: .35rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.ex-body { max-width: 36rem; }
.ex-label { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.ex-body h2 { font-size: 2.4rem; margin-bottom: .3rem; }
.ex-meta { font-size: .85rem; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 1.1rem; }
.ex-quote { font-family: "Cormorant", Georgia, serif; font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--ink);
  border-left: 1px solid var(--gold); padding-left: 1.1rem; margin: 1.3rem 0; }
.ex-media { margin: 1.6rem 0 0; max-width: 32rem; }
.ex-media figcaption { margin-top: .55rem; font-size: .8rem; color: var(--ink-soft); letter-spacing: .02em; }
.ex-media audio { width: 100%; }
.ex-media .missing { font-style: italic; color: var(--ink-soft); display: none; }
.ex-media.is-missing .missing { display: block; }
.ex-media.is-missing audio { display: none; }
.notes { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1rem; }
.note { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; background: var(--card); }
.note h3 { font-size: 1.25rem; margin: 0 0 .25rem; color: var(--gold); }
.note p { margin: 0; font-size: .97rem; }
.exhibit.final .ex-body h2 { font-style: italic; color: var(--gold); }
@media (max-width: 767.98px) {
  .exhibits::before { left: .45rem; }
  .exhibit { grid-template-columns: 1fr; padding-left: 2rem; padding-bottom: 3.5rem; }
  .exhibit::before { left: calc(.45rem - 6px); }
  .ex-date { text-align: left; margin-bottom: .6rem; }
  .ex-year { display: inline; font-size: 1.7rem; margin-right: .6rem; }
  .ex-when { display: inline; }
  .ex-body h2 { font-size: 2rem; }
}
/* quiet reveal while scrolling */
.reveal.pending { opacity: 0; transform: translateY(18px); }
.reveal { transition: opacity .9s ease, transform .9s ease; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.pending { transition: none; opacity: 1; transform: none; } }

/* ---------- title image: four hands ---------- */
.hero-photo { display: grid; padding-top: 4.2rem; }
.hero-text { text-align: center; padding: 2.2rem 1rem 1.6rem; position: relative; z-index: 2; }
.hero-text .title { font-size: clamp(3rem, 10vw, 6.5rem); line-height: 1; margin: 0; letter-spacing: .04em; font-weight: 400; }
.hero-text .subtitle { font-family: "Cormorant", Georgia, serif; font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 4.5vw, 2.5rem); color: var(--gold); margin-top: .3rem; }
.hero-text .credits { margin-top: 1rem; color: var(--ink-soft); letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.hero-media { margin: 0; position: relative; }
.hero-media img { display: block; width: 100%; height: auto; max-height: 92vh; object-fit: cover; object-position: center 60%; }
.hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, var(--paper) 0%, transparent 18%, transparent 80%, var(--paper) 100%); }
@media (min-width: 768px) {
  .hero-photo > * { grid-area: 1 / 1; }
  .hero-text { align-self: start; padding-top: 2.5rem; text-shadow: 0 2px 18px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,.6); }
  .hero-text .credits { color: var(--ink); }
  .hero-media::after { background: linear-gradient(to bottom, rgba(10,9,9,.92) 0%, rgba(10,9,9,.55) 26%, transparent 46%, transparent 78%, var(--paper) 100%); }
}
.hero-intro { padding-top: 1.5rem; }

/* ---------- Wald-Theme ---------- */
body { background:
  radial-gradient(120% 60% at 50% 0%, rgba(139,26,26,.10), transparent 60%) fixed,
  var(--paper); }
.navbar { background: color-mix(in srgb, var(--paper) 82%, transparent); }

/* title image: the forest */
.hero-media img { object-position: center 38%; }
@media (max-width: 767.98px) { .hero-media img { min-height: 56vh; object-fit: cover; } }
.hero-media::after { background: linear-gradient(to bottom, var(--paper) 0%, transparent 16%, transparent 72%, var(--paper) 100%); }
@media (min-width: 768px) {
  .hero-media::after { background: linear-gradient(to bottom, rgba(10,9,9,.9) 0%, rgba(10,9,9,.45) 28%, transparent 48%, transparent 74%, var(--paper) 100%); }
}

/* sub-pages: forest header strip */
.page-hero { position: relative; padding: 8rem 0 4rem; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(10,9,9,.55), rgba(10,9,9,.35) 45%, var(--paper) 100%),
              url("../../img/ring.webp") center 35% / cover no-repeat; }
@media (max-width: 700px) { .page-hero::before { background-image:
  linear-gradient(to bottom, rgba(10,9,9,.55), rgba(10,9,9,.35) 45%, var(--paper) 100%), url("../../img/ring-900.webp"); } }
.page-hero h1 { text-shadow: 0 2px 18px rgba(0,0,0,.8); }
.page-hero p { color: var(--ink); text-shadow: 0 1px 10px rgba(0,0,0,.9); }
.page-hero.hero-hands::before { background-image:
  linear-gradient(to bottom, rgba(10,9,9,.6), rgba(10,9,9,.3) 45%, var(--paper) 100%), url("../../img/a-quattro-mani.jpg");
  background-position: center 55%; }

.card-soft, .note, .player { border-color: color-mix(in srgb, var(--moss) 28%, var(--line)); }
.divider { border-top-color: color-mix(in srgb, var(--moss) 45%, var(--line)); }
.ex-label, .year { color: var(--moss); }
.ex-label { color: color-mix(in srgb, var(--gold) 70%, var(--moss)); }

/* ---------- chapters as a horizontal slider ---------- */
.player { max-width: 62rem; }
.chapters-wrap { position: relative; margin-top: 1.2rem; }
.chapters { list-style: none; margin: 0; padding: .2rem .1rem .9rem; display: flex; gap: .8rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: .1rem; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--gold) 45%, transparent) transparent;
  -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
.chapters.at-end { -webkit-mask-image: none; mask-image: none; }
.chapters li { flex: 0 0 76%; scroll-snap-align: start; position: relative; display: flex;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: border-color .4s ease, background .4s ease; }
@media (min-width: 576px) { .chapters li { flex-basis: 43%; } }
@media (min-width: 992px) { .chapters li { flex-basis: 28.5%; } }
.chapters button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: .25rem;
  width: 100%; padding: 1rem 1.05rem 1.2rem; }
.chapters .ch-time { min-width: 0; font-size: .9rem; }
.chapters .ch-title { font-size: 1.4rem; line-height: 1.15; }
.chapters .ch-desc { font-size: .92rem; line-height: 1.45; margin-top: .2rem; }
.chapters li.current { border-color: color-mix(in srgb, var(--gold) 70%, transparent);
  background: color-mix(in srgb, var(--gold) 9%, var(--paper-2)); }
.chapters li.solo button { outline: none; }
.chapters li.solo { border-color: var(--gold); }
.chapters .ch-bar { height: 3px; }
.ch-nav { position: absolute; top: calc(50% - .45rem); transform: translateY(-50%); width: 2.6rem; height: 2.6rem;
  border-radius: 50%; border: 1px solid var(--gold); background: rgba(10,9,9,.85); color: var(--gold);
  display: none; align-items: center; justify-content: center; font-size: 1.3rem; line-height: 1; cursor: pointer; z-index: 2;
  transition: opacity .3s, background .2s; }
.ch-nav:hover { background: var(--gold); color: var(--paper); }
.ch-nav[disabled] { opacity: 0; pointer-events: none; }
.ch-prev { left: -1.3rem; } .ch-next { right: -1.3rem; }
@media (hover: hover) and (pointer: fine) { .ch-nav { display: flex; } }
.ch-hint { margin: .2rem 0 0; font-size: .82rem; color: var(--ink-soft); text-align: right; }
@media (hover: hover) and (pointer: fine) { .ch-hint { display: none; } }

/* contact at the bottom of the start page */
.contact-block { text-align: center; }
.contact-block .facts { color: var(--ink-soft); font-size: .98rem; }

/* temporary preview badge (switch off in layout.js: PREVIEW = false) */
.preview-badge { position: absolute; right: 1rem; top: 5.2rem; z-index: 1020; text-decoration: none; transition: background .2s, color .2s;
  padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--gold);
  background: rgba(10,9,9,.88); color: var(--gold); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 4px 18px rgba(0,0,0,.45); }
.preview-badge:hover, .preview-badge:focus-visible { background: var(--gold); color: #0a0909; }
@media (max-width: 1199.98px) {
  .preview-badge { position: relative; top: auto; right: auto; display: table; margin: calc(var(--nav-h, 66px) + .9rem) auto -3.2rem; font-size: .7rem; }
}
#kontakt { scroll-margin-top: 4.5rem; }

/* ---------- notes over the forest + scroll cue ---------- */
.hero-photo { position: relative; }
.hero-motif { position: relative; z-index: 2; padding: 0 1rem; text-align: center; }
.hero-motif .motif { margin-top: 0; }
.hero-motif .staff { filter: drop-shadow(0 1px 3px rgba(0,0,0,.95)) drop-shadow(0 0 10px rgba(0,0,0,.7)); }
.hero-motif .motif-btn:hover .staff, .hero-motif .motif-btn:focus-visible .staff, .hero-motif .motif.is-playing .staff {
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.95)) drop-shadow(0 0 8px rgba(200,98,91,.45)); }
.hero-motif .motif-cap { color: var(--ink); text-shadow: 0 1px 8px rgba(0,0,0,.95); }
@media (min-width: 768px) {
  .hero-motif { grid-area: 1 / 1; align-self: end; padding-bottom: 5.2rem; }
  .hero-media::after { background: linear-gradient(to bottom, rgba(10,9,9,.9) 0%, rgba(10,9,9,.45) 28%, transparent 46%,
    rgba(10,9,9,.35) 64%, rgba(10,9,9,.75) 86%, var(--paper) 100%); }
}
@media (max-width: 767.98px) {
  .hero-motif { margin-top: -11rem; padding-bottom: 3.6rem; }
  .hero-media::after { background: linear-gradient(to bottom, var(--paper) 0%, transparent 16%, transparent 45%, rgba(10,9,9,.7) 78%, var(--paper) 100%); }
}
.scroll-cue { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 3;
  width: 2.6rem; height: 2.6rem; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  color: var(--gold); animation: cue 2.4s ease-in-out infinite; }
.scroll-cue span { width: .8rem; height: .8rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); }
.scroll-cue:hover, .scroll-cue:focus-visible { color: var(--ink); outline: none; }
@keyframes cue { 0%, 100% { transform: translate(-50%, 0); opacity: .65; } 50% { transform: translate(-50%, 7px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }
#einleitung { scroll-margin-top: 4.5rem; }
.btn.is-pending { opacity: .55; cursor: default; pointer-events: none; border-style: dashed; }

/* ---------- mobile: menu bar and headings ---------- */
.navbar-brand { white-space: nowrap; }
@media (max-width: 420px) { .navbar-brand { font-size: 1.2rem; } }
@media (max-width: 991.98px) {
  .navbar-nav { text-align: center; padding: .4rem 0 .8rem; }
  .navbar-nav .nav-link { padding: .55rem 0; }
}
@media (max-width: 767.98px) {
  .hero-photo { padding-top: var(--nav-h, 66px); }
  .hero-text { padding-top: 3.2rem; }
  .page-hero { padding-top: calc(var(--nav-h, 66px) + 4.5rem); }
}
/* tablets: the notes sit below the title, over the lower edge of the picture */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .hero-motif { grid-area: 2 / 1; align-self: start; margin-top: -10rem; padding-bottom: 4.2rem; }
}

/* draft score notice */
.draft-note { border: 1px dashed var(--gold); border-radius: 10px; padding: .75rem 1rem; font-size: .95rem;
  background: color-mix(in srgb, var(--gold) 8%, transparent); color: var(--ink); }
.draft-note strong { color: var(--gold); letter-spacing: .04em; }
/* mobile menu bar: name and a smaller menu button side by side, centred together */
@media (max-width: 991.98px) {
  .navbar > .container { justify-content: center; column-gap: .7rem; }
  .navbar-brand { margin-right: 0; }
  .navbar-toggler { padding: .2rem .45rem; font-size: 1rem; border-radius: 8px; }
  .navbar-toggler-icon { width: 1.15em; height: 1.15em; }
}

/* centred quote (start page) */
blockquote.voice.voice-center { border-left: 0; padding: 0; margin: 1rem auto 1.4rem; font-size: clamp(1.4rem, 3.4vw, 1.9rem); color: var(--ink); }
blockquote.voice.voice-center::after { content: ""; display: block; width: 3rem; height: 1px; background: var(--gold); margin: 1.2rem auto 0; }

/* wide photo (Über mich) */
.photo-wide { max-width: 56rem; margin: 0 auto 3rem; }
.photo-wide img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--paper-2); }
.photo-wide figcaption { margin-top: .5rem; text-align: right; font-size: .8rem; color: var(--ink-soft); }

/* ---------- Almana: Schwarz mit Weinrot ---------- */
.btn-accent { background: var(--wine); color: var(--ink); border: 1px solid var(--wine); }
.btn-accent:hover, .btn-accent:focus-visible { background: #a52525; color: #fff; border-color: #a52525; }
.btn-outline { border-color: var(--wine); color: var(--ink); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--wine); color: var(--ink); }
.navbar-brand em { color: var(--accent); }
.hero-text .subtitle { color: var(--accent); }
blockquote.voice { border-left-color: var(--wine); }
blockquote.voice.voice-center::after { background: var(--wine); }
.chapters li.current { border-color: var(--wine); background: color-mix(in srgb, var(--wine) 14%, var(--paper-2)); }
.chapters li.solo { border-color: var(--accent); }
.ch-nav { border-color: var(--wine); color: var(--accent); }
.ch-nav:hover { background: var(--wine); color: var(--ink); }
.preview-badge { border-color: var(--wine); color: var(--accent); }
.preview-badge:hover, .preview-badge:focus-visible { background: var(--wine); color: var(--ink); }
.draft-note { border-color: var(--wine); background: color-mix(in srgb, var(--wine) 10%, transparent); }
.draft-note strong { color: var(--accent); }

/* title image: ring on black cloth, the ring sits right of centre */
.hero-media img { object-position: 62% 50%; }
@media (max-width: 767.98px) { .hero-media img { object-position: 66% 50%; } }

/* sub-page header strips */
.page-hero::before { background-position: center 55%; }
.page-hero.hero-witwe::before { background-image:
  linear-gradient(to bottom, rgba(10,9,9,.55), rgba(10,9,9,.35) 45%, var(--paper) 100%), url("../../img/witwe.webp");
  background-position: center 18%; }
@media (max-width: 700px) { .page-hero.hero-witwe::before { background-image:
  linear-gradient(to bottom, rgba(10,9,9,.55), rgba(10,9,9,.35) 45%, var(--paper) 100%), url("../../img/witwe-900.webp"); } }

/* divider: a thin line with a ring */
.ring-divider { display: block; width: 100%; max-width: 560px; height: auto; margin: 3rem auto; }

/* Hintergrund page */
.figure-witwe { max-width: 56rem; margin: 0 auto 2.5rem; }
.figure-witwe img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.figure-witwe figcaption { margin-top: .5rem; text-align: right; font-size: .8rem; color: var(--ink-soft); }
.prose h2 { margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
.music-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .9rem; }
.music-list li { border-left: 2px solid var(--wine); padding: .1rem 0 .1rem 1rem; }
.music-list strong { font-family: "Cormorant", Georgia, serif; font-size: 1.25rem; color: var(--accent); display: block; }
.hebrew { font-family: "Times New Roman", serif; font-size: 1.15em; }
.fiction-note { font-style: italic; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 2.4rem; }
.sources { font-size: .9rem; color: var(--ink-soft); }
.sources li { margin-bottom: .3rem; }
.sources a { color: var(--ink-soft); }
.sources a:hover { color: var(--accent); }

/* notation from Verovio: its own <style> is removed (CSP), these rules replace it */
.staff ellipse, .staff path, .staff polygon, .staff polyline, .staff rect { stroke: currentColor; }
.staff g.placeholder { visibility: hidden; }

/* chapter cards: story first, music below */
.chapters .ch-desc { color: var(--ink); }
.chapters .ch-music { display: block; margin-top: .7rem; padding-top: .6rem; border-top: 1px solid var(--line);
  font-size: .84rem; line-height: 1.45; color: var(--ink-soft); }
.chapters .ch-music:empty { display: none; }
