/* =========================================================
   POOL PROMOTION — ARTISTS (eine Seite, Liste wie auf der Startseite)
   Links: electronic + pop untereinander, rechts das Foto (Desktop).
   ========================================================= */

body .artists-onepage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(30px, 5vw, 80px);
  align-items: start;
  box-sizing: border-box;
  width: 100%;
  padding: var(--content-offset, 100px) var(--content-pad, var(--gutter)) 120px;
}

/* ---------- Abschnitte ---------- */
.artists-section {
  scroll-margin-top: calc(var(--header-height, 120px) + 20px);
}
.artists-section + .artists-section {
  margin-top: calc(var(--letter-gap, 44px) * 2);
}
body .artists-section .section-title {
  margin: 0 0 var(--title-gap, 34px);
}

/* ---------- Liste ---------- */
.artists-onepage .artist-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.artist-item {
  animation: pool-row-in .6s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes pool-row-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.artists-onepage .artist-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 7px 0;
  border: 0;
  background: none;
  color: var(--white, #fff);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: default;
}
.artists-onepage button.artist-row { cursor: pointer; }

.artists-onepage .artist-row-name {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  transition: color .2s ease;
}
.artist-item:hover .artist-row-name,
.artist-item.is-current .artist-row-name,
.artist-item.is-open .artist-row-name,
.artists-onepage .artist-row:focus-visible .artist-row-name {
  color: var(--berry, #820A5F);
}
/* Auto-Vorschau: markierter Name etwas zurückhaltender */
.artists-onepage.is-autoplay .artist-item.is-current:not(:hover) .artist-row-name {
  color: color-mix(in srgb, var(--berry, #820A5F) 75%, var(--white, #fff));
}

/* ---------- Aufklappen (Links; auf dem Handy auch das Foto) ----------
   grid-rows 0fr → 1fr = weiches Auf- und Zuklappen ohne feste Höhe */
.artist-item-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s cubic-bezier(.16, 1, .3, 1);
}
.artist-item.is-open .artist-item-more { grid-template-rows: 1fr; }
.artist-item-more-inner {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity .3s ease;
}
.artist-item.is-open .artist-item-more-inner { opacity: 1; }

.artist-item-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  padding: 2px 0 12px;
  font-size: var(--text-size, 21px);
  line-height: 1.3;
}
.artist-item-links a {
  color: var(--white, #fff);
  text-decoration: none;
  transition: color .2s ease;
}
.artist-item-links a:hover,
.artist-item-links a:focus-visible {
  color: var(--berry, #820A5F);
}

/* Foto unter dem Namen nur auf dem Handy */
.artist-item-photo { display: none; }

/* kein blauer Rahmen beim Antippen/Klicken – nur bei Tastatur */
.artists-onepage .artist-row { -webkit-tap-highlight-color: transparent; }
.artists-onepage .artist-row:focus { outline: none; }
.artists-onepage .artist-row:focus-visible .artist-row-name {
  text-decoration: underline;
  text-decoration-color: var(--berry, #820A5F);
  text-underline-offset: 4px;
}

/* ---------- Großes Foto rechts (bleibt beim Scrollen stehen) ---------- */
.artists-onepage .artist-list-preview {
  position: sticky;
  top: calc(var(--header-height, 120px) + 30px);
  /* Foto beginnt etwas unter der Genre-Überschrift (auf Höhe ihrer Grundlinie) */
  margin-top: calc(var(--title-size, 36px) * .85);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  isolation: isolate;
}
.artists-onepage .artist-list-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: pool-photo-in .45s ease both;
}
@keyframes pool-photo-in {
  from { opacity: .4; }
  to   { opacity: 1; }
}

/* Farbfilter wie bei allen anderen Fotos (Werte aus dem Panel) */
.artists-onepage .artist-list-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--photo-tint, var(--berry, #820A5F));
  opacity: var(--photo-tint-opacity, 1);
  mix-blend-mode: color;
  pointer-events: none;
}
.artists-onepage .artist-list-preview img {
  filter:
    grayscale(var(--photo-grayscale, 100%))
    contrast(var(--photo-contrast, 1.12))
    brightness(var(--photo-brightness, 1));
}

@media (max-width: 1000px) {
  .artists-onepage .artist-row-name { font-size: 26px; }
}

/* ---------- Handy: nur Namen, Foto + Links klappen darunter auf ---------- */
@media (max-width: 700px) {
  body .artists-onepage {
    display: block;
    padding-bottom: 80px;
  }
  .artists-onepage .artist-list-preview { display: none; }

  .artists-onepage .artist-row { padding: 6px 0; }
  .artists-onepage .artist-row-name { font-size: 24px; }

  .artist-item-links {
    padding: 0 0 10px;
    font-size: 18px;
  }
  .artist-item-photo {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    margin: 4px 0 18px;
    overflow: hidden;
    isolation: isolate;
    background: var(--berry, #820A5F);
  }
  .artist-item-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter:
      grayscale(var(--photo-grayscale, 100%))
      contrast(var(--photo-contrast, 1.12))
      brightness(var(--photo-brightness, 1));
  }
  .artist-item-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: var(--photo-tint, var(--berry, #820A5F));
    opacity: var(--photo-tint-opacity, 1);
    mix-blend-mode: color;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .artist-item,
  .artists-onepage .artist-list-preview img { animation: none; }
  .artist-item-more,
  .artist-item-more-inner { transition: none; }
}

/* Sprung zu einem Artist (/artists#name): gleicher Abstand unter dem Header
   wie überall (--anchor-offset misst header.js) */
.artist-item { scroll-margin-top: var(--anchor-offset, 300px); }
