:root {
  --ink: #0c2b44;
  --paper: #f1e8d8;
  --paper-light: rgba(250, 246, 237, 0.88);
  --band: rgba(224, 207, 181, 0.68);
  --line: rgba(12, 43, 68, 0.23);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #171a1c; }
body { color: var(--ink); font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; }
a { color: inherit; }
button { font: inherit; }

.page-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper) url("assets/papierhintergrund.png") center top / 100% auto repeat-y;
  box-shadow: 0 0 42px rgba(0,0,0,.42);
}

.main-navigation {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: .9fr 1.25fr 1.05fr;
  min-height: 58px;
  background: var(--ink);
}

.main-navigation a,
.main-navigation button {
  display: grid;
  min-width: 0;
  min-height: 58px;
  place-items: center;
  padding: 8px 5px;
  border: 0;
  color: #f5ecdd;
  background: transparent;
  text-decoration: none;
  font-size: clamp(17px, 5.1vw, 21px);
  letter-spacing: .025em;
  cursor: pointer;
}

.main-navigation a:hover,
.main-navigation button:hover,
.main-navigation a:focus-visible,
.main-navigation button:focus-visible {
  background: rgba(255,255,255,.12);
  outline: 2px solid #f5ecdd;
  outline-offset: -4px;
}

.visual-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 400 / 575;
  overflow: hidden;
  background: var(--paper);
}

.visual-hero picture,
.visual-hero img {
  display: block;
  width: 100%;
}

.visual-hero img {
  height: auto;
  transform: translateY(-10.1%);
}

.series-link {
  position: absolute;
  z-index: 3;
  left: 25%;
  top: 39%;
  width: 72%;
  height: 49%;
  border-radius: 45%;
}

.series-link:hover { background: rgba(255,255,255,.055); }
.series-link:focus-visible { outline: 4px solid #fff; outline-offset: -7px; }

.band-list {
  position: relative;
  padding: 24px 24px 54px;
  background: rgba(246,239,226,.54);
}

.band-group {
  position: relative;
  margin-bottom: 13px;
  background: var(--paper-light);
}

.band-header,
.chapter-row { text-decoration: none; }

.band-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 51px;
  padding: 8px 14px;
  background: var(--band);
  font-size: clamp(21px,6.2vw,27px);
  line-height: 1;
  letter-spacing: .035em;
}

a.band-header:hover,
a.band-header:focus-visible,
.chapter-row:hover,
.chapter-row:focus-visible {
  background-color: rgba(204,180,143,.46);
  outline: none;
}

.band-header span:last-child,
.listen {
  font-size: clamp(14px,3.7vw,16px);
  letter-spacing: .07em;
}

.chapter-row {
  display: grid;
  grid-template-columns: 86px minmax(0,1fr) auto;
  align-items: center;
  min-height: 52px;
  padding: 7px 11px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(16px,4.35vw,19px);
  line-height: 1.12;
  transition: background-color 150ms ease;
}

.chapter-number,
.listen { white-space: nowrap; }
.chapter-number { color: rgba(12,43,68,.63); }
.chapter-title { padding-right: 8px; }

.forthcoming-list { display: grid; gap: 5px; margin-top: 16px; }
.forthcoming { color: rgba(12,43,68,.68); background: rgba(224,207,181,.5); }

.chapter-dialog {
  width: min(calc(100% - 24px),620px);
  max-height: min(760px,calc(100dvh - 24px));
  padding: 0;
  border: 1px solid rgba(12,43,68,.32);
  color: var(--ink);
  background: var(--paper) url("assets/papierhintergrund.png") center / cover;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}
.chapter-dialog::backdrop { background: rgba(5,14,22,.68); }
.dialog-card { padding: 20px 22px 28px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 11px; border-bottom: 1px solid rgba(12,43,68,.44); }
.dialog-heading h2 { margin: 0; font-size: 30px; letter-spacing: .12em; font-weight: 600; }
.dialog-close { width: 52px; height: 52px; border: 0; color: var(--ink); background: transparent; font-size: 44px; line-height: 1; cursor: pointer; }
.chapter-dialog nav { display: grid; }
.chapter-dialog nav a { display: grid; grid-template-columns: 45px 1fr; gap: 10px; align-items: center; min-height: 64px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 22px; }
.chapter-dialog nav a:hover,
.chapter-dialog nav a:focus-visible { background: rgba(204,180,143,.25); outline: none; }
.chapter-dialog nav strong { font-weight: 500; }

.placeholder-page { min-height: 100dvh; display: grid; place-items: center; padding: 22px; background: #171a1c; }
.placeholder-card { width: min(100%,520px); padding: 48px 32px; text-align: center; background: var(--paper) url("assets/papierhintergrund.png") center / cover; box-shadow: 0 16px 60px rgba(0,0,0,.38); }
.placeholder-card h1 { margin: 0 0 18px; font-size: clamp(34px,9vw,52px); font-weight: 500; }
.placeholder-card p { margin: 0 auto 30px; max-width: 36ch; font-size: 20px; line-height: 1.45; }
.back-link { display: inline-flex; min-height: 48px; align-items: center; padding: 8px 18px; border: 1px solid var(--ink); text-decoration: none; font-size: 18px; }

@media (max-width:370px) {
  .band-list { padding-inline: 14px; }
  .chapter-row { grid-template-columns: 79px minmax(0,1fr) auto; padding-inline: 8px; font-size: 15px; }
  .listen { font-size: 12px; }
}

@media (min-width: 800px) {
  html, body { background: #d7d0c5; }
  .site-page { padding: clamp(20px,4vw,56px); }
  .page-shell {
    display: grid;
    grid-template-columns: minmax(380px, .92fr) minmax(500px, 1.08fr);
    grid-template-rows: auto 1fr;
    width: min(100%, 1440px);
    min-height: min(900px, calc(100vh - 80px));
    overflow: hidden;
    background-size: 620px auto;
  }
  .main-navigation {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    gap: clamp(34px,5vw,76px);
    min-height: 64px;
  }
  .main-navigation a,
  .main-navigation button {
    min-height: 64px;
    min-width: 132px;
    padding-inline: 16px;
    font-size: 22px;
  }
  .visual-hero {
    grid-column: 1;
    grid-row: 2;
    aspect-ratio: auto;
    min-height: 790px;
    background: transparent;
  }
  .visual-hero picture,
  .visual-hero img {
    width: 100%;
    height: 100%;
  }
  .visual-hero img {
    object-fit: cover;
    object-position: center top;
    transform: none;
  }
  .series-link { left: 31%; top: 34%; width: 63%; height: 27%; }
  .band-list {
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
    padding: 18px clamp(30px,4vw,62px) 48px;
    background: rgba(249,245,236,.66);
  }
  .band-group { margin-bottom: 18px; }
  .band-header { min-height: 48px; font-size: 22px; }
  .band-header span:last-child,
  .listen { font-size: 15px; }
  .chapter-row {
    grid-template-columns: 108px minmax(0,1fr) auto;
    min-height: 48px;
    font-size: 18px;
  }
  .forthcoming-list { margin-top: 22px; }
  .forthcoming { min-height: 38px; font-size: 18px; }
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; }
}
