/* =========================
   RAZOR PUNCH – TOUR
   Nächste Show als große Karte (Ticket-Look wie im Hero), weitere Termine
   als Liste, darunter "Zuletzt live". Rechts der Polaroid-Stapel.
   ========================= */

/* Bühnenlicht: zwei rote Spots im Hintergrund */
.rp-tour {
  --rp-bg:
    radial-gradient(ellipse 60% 70% at 15% -10%, rgba(225, 6, 0, .22), transparent 70%),
    radial-gradient(ellipse 50% 60% at 95% 110%, rgba(225, 6, 0, .16), transparent 70%),
    #0b0b0b;
}

.rp-tour-head {
  text-align: center;
}

.rp-tour-head .rp-section-headline {
  margin-bottom: 3rem;
}

.rp-tour-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

/* -------------------------------------------------------------------------
   Nächste Show
   ------------------------------------------------------------------------- */
.rp-gig-next {
  position: relative;
  padding: 1.6rem 1.75rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(225, 6, 0, .22), transparent 60%),
    linear-gradient(160deg, #1a1a1a 0%, #111 100%);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
  overflow: hidden;
  transition: border-color .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}

/* Roter Streifen links, wie der Abriss einer Eintrittskarte */
.rp-gig-next::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, #f01208, #8f0300);
}

.rp-gig-next:hover {
  border-color: rgba(225, 6, 0, .45);
}

.rp-gig-next-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.4rem;
}

.rp-gig-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: rgba(225, 6, 0, .15);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #ff6b5e;
}

.rp-gig-badge .rp-live-dot {
  background: var(--rp-accent);
}

.rp-gig-countdown {
  font-family: var(--rp-font-headline);
  font-size: 1.3rem;
  letter-spacing: .06em;
  color: var(--rp-muted);
}

.rp-gig-next-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
}

.rp-gig-next-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 1.75rem;
  border-right: 1px dashed rgba(255, 255, 255, .2);
  line-height: 1;
}

.rp-gig-next-day {
  font-family: var(--rp-font-headline);
  font-size: 5.2rem;
  line-height: .85;
  color: var(--rp-white);
}

.rp-gig-next-month {
  margin-top: .4rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rp-accent);
}

.rp-gig-next-title {
  margin: 0 0 .75rem;
  font-family: var(--rp-font-headline);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .02em;
}

.rp-gig-next-title a {
  color: inherit;
  text-decoration: none;
}

.rp-gig-next-title a:hover {
  color: var(--rp-accent);
}

.rp-gig-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .92rem;
  color: var(--rp-text);
}

.rp-gig-place {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.rp-gig-place svg {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: var(--rp-accent);
  stroke-width: 2;
}

.rp-gig-next-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.6rem;
}

.rp-gig-more,
.rp-gig-all {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rp-white);
  text-decoration: none;
}

.rp-gig-more span,
.rp-gig-all span {
  display: inline-block;
  transition: transform .3s ease;
}

.rp-gig-more:hover,
.rp-gig-all:hover {
  color: var(--rp-accent);
}

.rp-gig-more:hover span,
.rp-gig-all:hover span {
  transform: translateX(4px);
}

.rp-no-events {
  margin: 0;
  padding: 2.5rem 1.5rem;
  border: 1px dashed rgba(255, 255, 255, .18);
  border-radius: 10px;
  text-align: center;
  color: var(--rp-text);
}

/* -------------------------------------------------------------------------
   Weitere Termine + Zuletzt live
   ------------------------------------------------------------------------- */
.rp-gig-heading {
  margin: 2.5rem 0 .75rem;
  font-family: var(--rp-font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rp-muted);
}

.rp-gig-list,
.rp-gig-past {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

/* Ganze Zeile klickbar (Link über ::after gestreckt) */
.rp-gig {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem .75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: background-color .3s ease, padding-left .3s ease;
}

.rp-gig::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--rp-accent);
  transform: scaleY(0);
  transition: transform .3s ease;
}

.rp-gig:hover,
.rp-gig:focus-within {
  background: rgba(255, 255, 255, .04);
  padding-left: 1.1rem;
}

.rp-gig:hover::before,
.rp-gig:focus-within::before {
  transform: scaleY(1);
}

.rp-gig-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.rp-gig-day {
  font-family: var(--rp-font-headline);
  font-size: 2rem;
  color: var(--rp-white);
}

.rp-gig-month {
  margin-top: .15rem;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rp-accent);
}

.rp-gig-info {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}

.rp-gig-link {
  font-family: var(--rp-font-headline);
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--rp-white);
  text-decoration: none;
}

.rp-gig-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.rp-gig-info .rp-gig-place {
  font-size: .85rem;
  color: var(--rp-muted);
}

.rp-gig-cta {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rp-muted);
  transition: color .3s ease;
}

.rp-gig:hover .rp-gig-cta {
  color: var(--rp-accent);
}

.rp-gig-past li {
  display: flex;
  gap: 1.25rem;
  padding: .7rem .75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-size: .88rem;
  color: var(--rp-muted);
}

.rp-gig-past time {
  flex: none;
  min-width: 5.5rem;
  font-variant-numeric: tabular-nums;
  color: rgba(245, 245, 245, .4);
}

.rp-gig-all {
  display: inline-block;
  margin-top: 1.75rem;
}

/* -------------------------------------------------------------------------
   Polaroid-Stapel
   ------------------------------------------------------------------------- */
.rp-polaroids {
  position: relative;
  width: 100%;
  height: 470px;
  max-width: 480px;
  margin: 0 auto;
}

.rp-polaroid {
  --rot: 0deg;
  --x: 0;
  --y: 0;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 270px;
  margin: 0;
  padding: 12px 12px 0;
  background: #f4f1ea; /* leicht vergilbtes Fotopapier */
  border-radius: 2px;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, .15),
    0 12px 28px rgba(0, 0, 0, .55);
  transform: rotate(var(--rot));
  transition:
    transform .45s cubic-bezier(.2, .9, .3, 1.2),
    box-shadow .45s ease;
  cursor: pointer;
  outline: none;
}

/* Klebestreifen oben */
.rp-polaroid::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 90px;
  height: 26px;
  margin-left: -45px;
  background: rgba(255, 248, 220, .55);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
  transform: rotate(calc(var(--rot) * -1.5));
  backdrop-filter: blur(1px);
}

.rp-polaroid-photo {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: #222;
}

.rp-polaroid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Sofortbild-Look: warm, leicht ausgeblichen, etwas mehr Kontrast */
  filter: sepia(.35) saturate(1.25) contrast(1.08) brightness(1.03) hue-rotate(-8deg);
  transition: filter .45s ease;
}

/* Lichteinfall + abgedunkelte Ecken wie bei echten Polaroids */
.rp-polaroid-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 190, 120, .35), transparent 45%),
    radial-gradient(ellipse at center, transparent 55%, rgba(40, 10, 0, .45) 100%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.rp-polaroid figcaption {
  padding: .7rem .25rem .9rem;
  font-family: var(--rp-font-hand);
  font-size: 1.15rem;
  line-height: 1.2;
  text-align: center;
  color: #2a2a2a;
  transform: rotate(-1deg);
}

/* Position und Neigung im Stapel */
.rp-polaroid--1 { --x: 0;     --y: 30px; --rot: -9deg; z-index: 1; }
.rp-polaroid--2 { --x: 190px; --y: 0;    --rot: 7deg;  z-index: 2; }
.rp-polaroid--3 { --x: 85px;  --y: 120px; --rot: -2deg; z-index: 3; }

/* Hover/Fokus: Foto kommt gerade und größer nach vorn */
.rp-polaroid:hover,
.rp-polaroid:focus-visible {
  z-index: 10;
  transform: rotate(0deg) scale(1.12) translateY(-10px);
  box-shadow:
    0 2px 2px rgba(0, 0, 0, .15),
    0 30px 60px rgba(0, 0, 0, .7);
}

.rp-polaroid:hover img,
.rp-polaroid:focus-visible img {
  filter: sepia(.15) saturate(1.2) contrast(1.05);
}

/* Die anderen Fotos rücken dabei leicht zur Seite */
.rp-polaroids:hover .rp-polaroid:not(:hover) {
  transform: rotate(var(--rot)) scale(.96);
}

@media (max-width: 1024px) {
  .rp-tour-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .rp-polaroids {
    height: 380px;
    max-width: 340px;
  }

  .rp-polaroid {
    width: 200px;
    padding: 9px 9px 0;
  }

  .rp-polaroid figcaption {
    font-size: .95rem;
    padding: .5rem .2rem .7rem;
  }

  .rp-polaroid--1 { --x: 0;     --y: 30px; }
  .rp-polaroid--2 { --x: 130px; --y: 0; }
  .rp-polaroid--3 { --x: 60px;  --y: 120px; }

  .rp-gig-next {
    padding: 1.3rem 1.2rem 1.4rem 1.4rem;
  }

  .rp-gig-next-body {
    gap: 1.1rem;
  }

  .rp-gig-next-date {
    padding-right: 1.1rem;
  }

  .rp-gig-next-day {
    font-size: 3.8rem;
  }

  .rp-gig-next-actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }

  .rp-gig {
    grid-template-columns: 2.8rem minmax(0, 1fr);
    gap: 1rem;
  }

  .rp-gig-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rp-polaroid,
  .rp-polaroid img,
  .rp-gig,
  .rp-gig::before,
  .rp-gig-next {
    transition: none;
  }
}
