/* ==========================================================================
   Drei Damen im Strandbad — Ergänzungen zur Buchseite
   Baut auf style.css und books.css auf und nutzt deren Variablen.
   Alle Klassen mit dd- vorangestellt, damit nichts Bestehendes kollidiert.
   ========================================================================== */

/* ------------------------------------------------------------- Kopfband --- */

.dd-hero {
  width: 100%;
  aspect-ratio: 1080 / 380;
  overflow: hidden;
  background: var(--accent-tint-a);
  border-bottom: 1px solid var(--line);
}
.dd-hero img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------- Abschnitte --- */

.dd-section { margin: 56px 0; max-width: 76ch; }
.dd-section__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 6px;
}
.dd-section__title {
  font-size: 25px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
}
.dd-section__lead {
  color: var(--ink-body);
  margin: 0 0 24px;
  max-width: 68ch;
  text-wrap: pretty;
}

/* ------------------------------------------------------------- Trailer --- */

/* Der Container ist ein div, der Knopf liegt darin. Ein iframe darf nicht in
   einem button stehen, dort wäre das Video nicht bedienbar. */
.dd-trailer {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--accent-tint-a);
  width: 100%;
}
.dd-trailer__poster {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.dd-trailer img { width: 100%; height: 100%; object-fit: cover; }
.dd-trailer iframe { width: 100%; height: 100%; border: 0; display: block; }

.dd-trailer__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: oklch(0.27 0.015 265 / 0.28);
  transition: background 0.18s ease;
}
.dd-trailer__poster:hover .dd-trailer__play { background: oklch(0.27 0.015 265 / 0.14); }

/* Ohne gültige Video-ID keinen Abspielknopf vorgaukeln */
.dd-trailer--ohne-id .dd-trailer__poster { cursor: default; }
.dd-trailer--ohne-id .dd-trailer__play { display: none; }

.dd-trailer__button {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 22px oklch(0.27 0.015 265 / 0.35);
  transition: transform 0.18s ease, background 0.18s ease;
}
.dd-trailer__poster:hover .dd-trailer__button {
  transform: scale(1.07);
  background: var(--accent-strong);
}
.dd-trailer__button svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }

.dd-trailer__note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}
.dd-trailer__fallback { margin-left: 10px; }

/* ---------------------------------------------------------- Die Damen --- */

.dd-trio {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.dd-trio__img { display: block; }
.dd-trio__img img { width: 100%; height: auto; display: block; }

.dd-people {
  list-style: none;
  margin: 0;
  padding: 22px 24px;
  display: grid;
  gap: 18px;
}
.dd-people li { display: grid; gap: 3px; }
.dd-people__name {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
}
.dd-people__text { color: var(--ink-body); font-size: 16px; line-height: 1.55; }

/* ----------------------------------------------------------- Galerie --- */

.dd-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: none;
}
.dd-figure { margin: 0; }
.dd-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: block;
}
.dd-figure figcaption {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 9px;
}

/* -------------------------------------------------------- Zitatkasten --- */

.dd-pull {
  margin: 48px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  max-width: 62ch;
}
.dd-pull p {
  margin: 0;
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.dd-pull cite {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  color: var(--muted-2);
}

/* --------------------------------------------------------- responsive --- */

@media (max-width: 720px) {
  .dd-section { margin: 40px 0; }
  .dd-section__title { font-size: 22px; }
  .dd-gallery { grid-template-columns: 1fr; gap: 16px; }
  .dd-hero { aspect-ratio: 16 / 9; }
  .dd-pull p { font-size: 19px; }
  .dd-trailer__button { width: 54px; height: 54px; }
  .dd-trailer__fallback { display: block; margin: 6px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dd-trailer__button, .dd-trailer__play { transition: none; }
  .dd-trailer__poster:hover .dd-trailer__button { transform: none; }
}
