/* Auswahl: „Nächste Auftritte." aus Variante 3 (Tuschezug), auf die Termine reduziert.
   Flachere Tickets, ohne roten Kreis um die Zahl. */

.v3-dates {
  --v3-red: #c81016;
  --v3-hot: #ef443b;
  --v3-ash: #ada597;
  --v3-ease: cubic-bezier(0.65, 0, 0.25, 1);
  --v3-swipe: url("ink/swipe.webp");
  --v3-enso: url("termine/enso.webp");
  --v3-night: linear-gradient(#0006, #0006), #121211 var(--black-paper) repeat 0 0 / 620px 620px;
  --v3-cream: linear-gradient(#f1e7d2f0, #f1e7d2f0), #f1e7d2 var(--black-paper) repeat 0 0 / 520px 520px;
}
.v3-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Shared torn black-paper edge (same photographed pulp as the hero). */
.v3-tear {
  position: absolute;
  left: 0;
  right: 0;
  height: 230px;
  z-index: 0;
  pointer-events: none;
}
.v3-tear::before,
.v3-tear::after {
  content: "";
  position: absolute;
  inset: 0;
}
.v3-tear::before {
  background: url("torn-paper-v10.png") repeat-x left top / 1086px 100%;
  filter: brightness(0.88);
}
.v3-tear::after {
  background: var(--tear-fill, #171615);
  -webkit-mask: linear-gradient(#000 44%, transparent 52%);
  mask: linear-gradient(#000 44%, transparent 52%);
}
.v3-dates {
  position: relative;
  isolation: isolate;
  background: linear-gradient(#c81016ea, #c81016ea), var(--v3-red) var(--black-paper) center / 620px;
  color: var(--paper);
  padding-block: clamp(120px, 11vw, 160px) clamp(96px, 9vw, 140px);
}
.v3-tear-top {
  top: calc(18px - 115px);
}
/* the booking's black paper tears up into the red band (booking paints over the part below the edge) */
.v3-tear-bottom {
  bottom: calc(18px - 115px);
  transform: rotate(180deg);
  --tear-fill: linear-gradient(#0005, #0005), #121211 var(--black-paper) repeat 0 0 / 620px 620px;
}
.v3-dates-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(40px, 4.5vw, 64px);
}
.v3-dates h2 {
  font-size: clamp(48px, 5vw, 76px);
}
.v3-dates-more {
  font-size: 18px;
  font-weight: 700;
  text-decoration-thickness: 2px;
}
.v3-dates-more:focus-visible {
  outline-color: var(--paper);
}
.v3-tickets {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 52px);
  align-items: start;
}
.v3-tickets > li {
  filter: drop-shadow(0 16px 18px #4d000466);
}
.v3-tickets > li:nth-child(3n + 1) {
  rotate: -1.4deg;
}
.v3-tickets > li:nth-child(3n + 2) {
  rotate: 0.9deg;
  margin-top: 22px;
}
.v3-tickets > li:nth-child(3n + 3) {
  rotate: -0.4deg;
  margin-top: 8px;
}
.v3-ticket,
.v3-empty {
  --perf: 128px;
  --notch: 13px;
  position: relative;
  -webkit-mask:
    url("termine/rag-bottom.webp") left bottom / 760px 24px repeat-x,
    linear-gradient(#000, #000) left top / 100% calc(100% - 23px) no-repeat;
  mask:
    url("termine/rag-bottom.webp") left bottom / 760px 24px repeat-x,
    linear-gradient(#000, #000) left top / 100% calc(100% - 23px) no-repeat;
}
.v3-ticket-paper {
  position: relative;
  min-height: 100%;
  background: var(--v3-cream);
  color: var(--ink);
  -webkit-mask:
    radial-gradient(circle var(--notch) at 0 var(--perf), #0000 95%, #000),
    radial-gradient(circle var(--notch) at 100% var(--perf), #0000 95%, #000);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle var(--notch) at 0 var(--perf), #0000 95%, #000),
    radial-gradient(circle var(--notch) at 100% var(--perf), #0000 95%, #000);
  mask-composite: intersect;
}
.v3-stub {
  position: relative;
  height: var(--perf);
  display: flex;
  align-items: center;
  padding: 0 clamp(24px, 2.4vw, 36px);
}
.v3-stub time {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(28px, 2.6vw, 40px);
}
.v3-day {
  font-size: clamp(68px, 5.6vw, 92px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
}
.v3-month {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.v3-ticket-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 6px 16px;
  padding: 22px clamp(24px, 2.4vw, 36px) 40px;
}
.v3-ticket-body::before {
  content: "";
  position: absolute;
  left: calc(var(--notch) + 8px);
  right: calc(var(--notch) + 8px);
  top: -4px;
  height: 8px;
  background: radial-gradient(circle 3.4px, #9e0b10 92%, transparent) 0 0 / 15px 8px repeat-x;
}
.v3-ticket-body h3 {
  grid-column: 1 / -1;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.v3-ticket-body > p {
  grid-column: 1 / -1;
  font-size: 18px;
  line-height: 1.35;
}
.v3-ticket-body > p span {
  display: block;
  font-size: 16px;
  color: #4c443b;
}
.v3-ticket-body > .v3-ticket-time {
  grid-column: 1;
  white-space: nowrap;
  font-weight: 700;
  font-size: 20px;
  align-self: end;
}
.v3-stamp {
  grid-column: 2;
  grid-row: span 1;
  align-self: end;
  display: inline-block;
  rotate: -8deg;
  color: var(--v3-red);
  text-decoration: none;
  transition: rotate 0.25s, scale 0.2s;
}
.v3-stamp span {
  display: block;
  padding: 8px 16px 3px;
  border: 3px solid currentColor;
  border-radius: 4px;
  font: 400 30px/1.1 Sukajan, Arial, sans-serif;
  -webkit-mask: url("termine/stamp-grain.webp") 0 0 / 180px 180px;
  mask: url("termine/stamp-grain.webp") 0 0 / 180px 180px;
}
.v3-stamp:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}
@media (hover: hover) {
  .v3-stamp:hover {
    rotate: -3deg;
    scale: 0.95;
    color: #8f0a0e;
  }
}
.v3-stamp:active {
  scale: 0.9;
}
/* Empty state: a blank ticket that points to the channels. */
.v3-empty {
  --perf: 170px;
  max-width: 900px;
  position: relative;
  z-index: 1;
  filter: none;
}
.v3-empty .v3-ticket-paper {
  display: grid;
  grid-template-columns: var(--perf) minmax(0, 1fr);
  -webkit-mask:
    radial-gradient(circle var(--notch) at var(--perf) 0, #0000 95%, #000),
    radial-gradient(circle var(--notch) at var(--perf) 100%, #0000 95%, #000);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle var(--notch) at var(--perf) 0, #0000 95%, #000),
    radial-gradient(circle var(--notch) at var(--perf) 100%, #0000 95%, #000);
  mask-composite: intersect;
}
.v3-empty .v3-stub {
  height: auto;
  justify-content: center;
}
.v3-empty-enso {
  width: 110px;
  aspect-ratio: 1;
  background: var(--ink);
  -webkit-mask: var(--v3-enso) center / contain no-repeat;
  mask: var(--v3-enso) center / contain no-repeat;
  opacity: 0.85;
}
.v3-empty .v3-ticket-body {
  display: block;
  padding: 34px 40px 52px;
}
.v3-empty .v3-ticket-body::before {
  left: -4px;
  top: calc(var(--notch) + 8px);
  bottom: calc(var(--notch) + 8px);
  right: auto;
  width: 8px;
  height: auto;
  background: radial-gradient(circle 3.4px, #9e0b10 92%, transparent) 0 0 / 8px 15px repeat-y;
}
.v3-empty h3 {
  margin-bottom: 10px;
}
.v3-empty p {
  max-width: 46ch;
}
.v3-empty-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 22px;
}
.v3-empty-links a {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--v3-red);
  text-decoration-thickness: 2px;
}
@media (max-width: 1100px) {
  .v3-tickets {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .v3-tickets > li:nth-child(n) {
    width: min(100%, 680px);
    margin-top: 0;
  }
  .v3-tickets > li:nth-child(even) {
    margin-left: auto;
  }
  /* Tickets turn sideways: stub left, torn edge right. */
  .v3-ticket,
  .v3-empty {
    --perf: 132px;
    --notch: 11px;
    -webkit-mask:
      url("termine/rag-right.webp") right top / 20px 640px repeat-y,
      linear-gradient(#000, #000) left top / calc(100% - 19px) 100% no-repeat;
    mask:
      url("termine/rag-right.webp") right top / 20px 640px repeat-y,
      linear-gradient(#000, #000) left top / calc(100% - 19px) 100% no-repeat;
  }
  .v3-ticket .v3-ticket-paper,
  .v3-empty .v3-ticket-paper {
    display: grid;
    grid-template-columns: var(--perf) minmax(0, 1fr);
    -webkit-mask:
      radial-gradient(circle var(--notch) at var(--perf) 0, #0000 95%, #000),
      radial-gradient(circle var(--notch) at var(--perf) 100%, #0000 95%, #000);
    -webkit-mask-composite: source-in;
    mask:
      radial-gradient(circle var(--notch) at var(--perf) 0, #0000 95%, #000),
      radial-gradient(circle var(--notch) at var(--perf) 100%, #0000 95%, #000);
    mask-composite: intersect;
  }
  .v3-stub {
    height: auto;
    padding: 0;
    justify-content: center;
  }
  .v3-stub time {
    flex-direction: column;
    gap: 22px;
    text-align: center;
  }
  .v3-day {
    font-size: 64px;
  }
  .v3-month {
    font-size: 16px;
  }
  .v3-ticket-body,
  .v3-empty .v3-ticket-body {
    padding: 20px 48px 20px 30px;
  }
  .v3-ticket-body::before,
  .v3-empty .v3-ticket-body::before {
    left: -4px;
    right: auto;
    top: calc(var(--notch) + 6px);
    bottom: calc(var(--notch) + 6px);
    width: 8px;
    height: auto;
    background: radial-gradient(circle 3px, #9e0b10 92%, transparent) 0 0 / 8px 14px repeat-y;
  }
}
@media (max-width: 760px) {

  .v3-dates {
    padding-block: 104px 84px;
  }
  .v3-dates-head {
    display: block;
    margin-bottom: 34px;
  }
  .v3-dates h2 {
    font-size: 48px;
    margin-bottom: 14px;
  }
  .v3-tickets {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .v3-tickets > li:nth-child(3n + 1) {
    rotate: -0.8deg;
  }
  .v3-tickets > li:nth-child(3n + 2) {
    rotate: 0.6deg;
  }
  .v3-tickets > li:nth-child(3n + 3) {
    rotate: -0.3deg;
  }
  .v3-ticket,
  .v3-empty {
    --perf: 112px;
    --notch: 11px;
  }
  .v3-tickets > li:nth-child(n) {
    width: 100%;
    margin-left: 0;
  }
  .v3-day {
    font-size: 60px;
  }
  .v3-ticket-body,
  .v3-empty .v3-ticket-body {
    padding: 22px 30px 22px 18px;
  }
  .v3-ticket-body h3 {
    font-size: 22px;
  }
  .v3-ticket-body > .v3-ticket-time {
    font-size: 18px;
  }
  .v3-stub time {
    gap: 18px;
  }
  .v3-ticket .v3-ticket-body {
    column-gap: 8px;
  }
  .v3-stamp span {
    font-size: 20px;
    padding: 5px 8px 1px;
    border-width: 2px;
  }
  .v3-empty-enso {
    width: 76px;
  }
  .v3-empty-links a {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v3-stamp {
    transition: none;
  }
}
