/* ==========================================================================
   Gut Vibes – Location
   --------------------------------------------------------------------------
   Aus dem Designentwurf zusammengefasst (letzter Stand der Kaskade).
   Nutzt die CSS-Variablen des Themes: --ink, --paper, --line, --surface,
   --surface-strong, --pink-text, --content-gutter.
   Grundgerüst, Hintergrund, Dachzeile, Überschrift und Seitenränder kommen aus
   Resources/Public/Css/sections.css (Klasse gv-section).
   ========================================================================== */

.location {
  /* Hintergrund im ::before, damit der Paint-Trail darüber laufen kann */
  /*--section-fill: #0e0b11;*/
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  padding: 0 var(--content-gutter);
  /* Linie oben ersetzt den Abschluss der Line-up-Section aus dem Entwurf,
     die in TYPO3 auf Einstieg und Tagesblöcke verteilt ist. */
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Slider ---------------------------------------------------------------- */

.location-photo.location-carousel {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 620px;
}

.location-view {
  position: relative;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.location-slide {
  position: absolute;
  inset: 0;
  margin: 0;
}

.location-slide[hidden],
.location-controls[hidden] {
  display: none;
}

.location-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bildbeschriftung als Label; Ausrichtung aus tx_t3sbootstrap_description_align */
.location-slide .location-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  max-width: calc(100% - 32px);
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--paper);
  background: var(--ink);
}

.location-slide .location-label--center {
  left: 50%;
  transform: translateX(-50%);
}

.location-slide .location-label--end {
  right: 16px;
  left: auto;
}

.location-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
}

.location-controls button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 20px;
  color: var(--paper);
  background: var(--surface);
  border: 1px solid #73627b;
  cursor: pointer;
}

.location-controls button:is(:hover, :focus-visible) {
  color: var(--pink-text);
  background: var(--surface-strong);
}

.location-position {
  min-width: 40px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* Text ------------------------------------------------------------------ */

.location-copy {
  padding: 65px 0 65px clamp(30px, 4vw, 60px);
}

.location-copy h2 {
  font-size: clamp(44px, 5.8vw, 88px);
}

.location-copy p {
  max-width: 55ch;
  margin-top: 25px;
  font-size: 13px;
}

.location-copy .text-link {
  display: inline-block;
  margin-top: 25px;
}

/* Tablet ---------------------------------------------------------------- */

@media (max-width: 900px) {
  .location-photo.location-carousel {
    min-height: 560px;
  }

  .location-copy {
    padding: 45px 0 45px 30px;
  }
}

/* Mobil ----------------------------------------------------------------- */

@media (max-width: 640px) {
  .location {
    grid-template-columns: minmax(0, 1fr);
  }

  .location-photo.location-carousel {
    min-height: 0;
  }

  .location-view {
    aspect-ratio: 4 / 3;
  }

  .location-copy {
    padding: 42px 0;
  }

  .location-copy h2 {
    font-size: 52px;
  }

  /* Pinke Zeile rückt auf dem Handy an die vorherige heran */
  .location-copy h2 .location-break {
    display: none;
  }
}

@media (max-width: 360px) {
  .location-copy h2 {
    font-size: 44px;
  }
}
