/* NØNE — Latest Releases (2026-10-03), gehört zu /js/latest-releases.js.
   Gestaltung aus den vorhandenen Abschnitten abgeleitet und über die
   CSS-Variablen des Bundles gebunden (mit eigenen Ersatzwerten):
   - Kopf wie „NØNE ON SPOTIFY“ auf /discography: Eyebrow, Bebas-Überschrift,
     verlaufender Strich.
   - Trennlinie wie .section-divider, Breiten wie .container (max. 1400px).
   - Karte wie „Book The Experience“: schwarz 40 %, feiner Rand, heller Verlauf
     oben links, Radius 8/12px.
   - Knopf wie „Request Booking“: eckig, Rand 20 %, Großbuchstaben, beim
     Darüberfahren weiß gefüllt.
   Bewegung: nur einmalige Einblendung beim Erscheinen, keine Scroll-Kopplung;
   bei prefers-reduced-motion ohne Bewegung. */

#latest-releases {
  position: relative;
}

/* ── Trennlinien ─────────────────────────────────────────────────────────── */
.lr-trenner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}
.lr-trenner[hidden] {
  display: none;
}
.lr-trenner-linie {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, hsl(var(--grey-600, 0 0% 20%)) 20%, hsl(var(--grey-600, 0 0% 20%)) 80%, transparent 100%);
}

/* ── Rahmen und Kopf ─────────────────────────────────────────────────────── */
.lr-innen {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 1rem;
  box-sizing: border-box;
}
.lr-kopf {
  margin-bottom: 2.5rem;
  text-align: center;
}
.lr-eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-body, "Inter"), sans-serif;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground, 0 0% 60%));
}
.lr-h2 {
  margin: 0;
  font-family: var(--font-display, "Bebas Neue"), sans-serif;
  font-weight: 400;
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--foreground, 0 0% 100%));
}
.lr-strich {
  width: 6rem;
  height: 1px;
  margin: 1rem auto 0;
  background: linear-gradient(to right, transparent, hsl(var(--foreground, 0 0% 100%) / 0.6), transparent);
}

/* ── Raster: Handy 1 + 2×2, Tablet 2 + 3, Desktop 5 nebeneinander ─────────── */
.lr-liste {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lr-karte:first-child {
  grid-column: 1 / -1;
}

/* ── Karte ───────────────────────────────────────────────────────────────── */
.lr-karte {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid hsl(var(--foreground, 0 0% 100%) / 0.08);
  border-radius: 0.5rem;
  background:
    linear-gradient(to bottom right, hsl(var(--foreground, 0 0% 100%) / 0.05), transparent 60%),
    rgb(0 0 0 / 0.4);
  transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.lr-karte:hover,
.lr-karte:has(.lr-link:focus-visible) {
  border-color: hsl(var(--foreground, 0 0% 100%) / 0.3);
}

.lr-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: hsl(var(--grey-900, 0 0% 5%));
}
.lr-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.35), transparent 40%);
  pointer-events: none;
}
.lr-cover img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.lr-karte:hover .lr-cover img {
  transform: scale(1.05);
}

.lr-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.75rem 0.75rem 0.875rem;
}
.lr-titel {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-family: var(--font-display, "Bebas Neue"), sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  color: hsl(var(--foreground, 0 0% 100%));
  /* zwei Zeilen reserviert: Datum und Knopf stehen in einer Reihe auf gleicher Höhe */
  min-height: 2.3em;
}
.lr-karte:first-child .lr-titel {
  min-height: 0;
  font-size: 1.5rem;
}
.lr-meta {
  margin: 0 0 0.5rem;
  font-family: var(--font-body, "Inter"), sans-serif;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground, 0 0% 60%));
}

/* Der Spotify-Knopf ist der einzige Link der Karte; sein ::after spannt die
   Klickfläche über die ganze Karte (Cover eingeschlossen). */
.lr-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.375rem;
  height: 2rem;
  margin-top: auto;
  padding: 0 0.75rem;
  border: 1px solid hsl(var(--foreground, 0 0% 100%) / 0.2);
  background: transparent;
  color: hsl(var(--foreground, 0 0% 100%));
  font-family: var(--font-body, "Inter"), sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.lr-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.lr-karte:hover .lr-link,
.lr-link:focus-visible {
  border-color: hsl(var(--foreground, 0 0% 100%));
  background: hsl(var(--foreground, 0 0% 100%));
  color: hsl(var(--background, 0 0% 0%));
}
.lr-link:focus-visible {
  outline: 2px solid hsl(var(--ring, 0 0% 100%));
  outline-offset: 3px;
}
.lr-pfeil {
  width: 0.75rem;
  height: 0.75rem;
  flex: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.lr-karte:hover .lr-pfeil {
  transform: translate(2px, -2px);
}

/* ── Größere Bildschirme (Tailwind-Stufen der Seite: 640 / 768 / 1024) ────── */
@media (min-width: 640px) {
  .lr-innen {
    padding: 6rem 1.5rem;
  }
  .lr-kopf {
    margin-bottom: 3.5rem;
  }
  .lr-eyebrow {
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    line-height: 1rem;
    letter-spacing: 0.4em;
  }
  .lr-h2 {
    font-size: 2.25rem;
    line-height: 2.5rem;
    letter-spacing: 0.2em;
  }
  .lr-strich {
    width: 8rem;
    margin-top: 1.5rem;
  }
  .lr-liste {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
  }
  .lr-karte,
  .lr-karte:first-child {
    grid-column: span 2;
  }
  .lr-karte:nth-child(-n+2) {
    grid-column: span 3;
  }
  .lr-karte {
    border-radius: 0.75rem;
  }
  .lr-text {
    gap: 0.5rem;
    padding: 1rem 1rem 1.125rem;
  }
  .lr-titel,
  .lr-karte:first-child .lr-titel {
    min-height: 2.3em;
    font-size: 1.375rem;
  }
  .lr-meta {
    font-size: 0.6875rem;
  }
  .lr-link {
    height: 2.25rem;
    padding: 0 1rem;
    font-size: 0.75rem;
  }
}
@media (min-width: 768px) {
  .lr-h2 {
    font-size: 3rem;
    line-height: 1;
  }
}
@media (min-width: 1024px) {
  .lr-liste {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .lr-karte,
  .lr-karte:first-child,
  .lr-karte:nth-child(-n+2) {
    grid-column: auto;
  }
  .lr-titel,
  .lr-karte:first-child .lr-titel {
    font-size: 1.25rem;
  }
}
@media (min-width: 1280px) {
  .lr-titel,
  .lr-karte:first-child .lr-titel {
    font-size: 1.375rem;
  }
}

/* ── Einblendung beim Erscheinen (einmalig, eigene Zeit) ──────────────────── */
.lr--bereit:not(.lr--sichtbar) .lr-kopf,
.lr--bereit:not(.lr--sichtbar) .lr-karte {
  opacity: 0;
  transform: translateY(1rem);
}
.lr--sichtbar .lr-kopf,
.lr--sichtbar .lr-karte {
  --lr-verzug: 0s;
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1) var(--lr-verzug),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) var(--lr-verzug),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.lr--sichtbar .lr-karte:nth-child(1) { --lr-verzug: 0.12s; }
.lr--sichtbar .lr-karte:nth-child(2) { --lr-verzug: 0.2s; }
.lr--sichtbar .lr-karte:nth-child(3) { --lr-verzug: 0.28s; }
.lr--sichtbar .lr-karte:nth-child(4) { --lr-verzug: 0.36s; }
.lr--sichtbar .lr-karte:nth-child(5) { --lr-verzug: 0.44s; }

@media (prefers-reduced-motion: reduce) {
  .lr--bereit:not(.lr--sichtbar) .lr-kopf,
  .lr--bereit:not(.lr--sichtbar) .lr-karte {
    opacity: 1;
    transform: none;
  }
  .lr-karte,
  .lr--sichtbar .lr-kopf,
  .lr--sichtbar .lr-karte,
  .lr-cover img,
  .lr-link,
  .lr-pfeil {
    transition: none;
  }
  .lr-karte:hover .lr-cover img,
  .lr-karte:hover .lr-pfeil {
    transform: none;
  }
}
