/* ================================================================
   [PUBLIC SHOWS v1.1] — page-specific styles, public-shows/
   Theatre-programme schedule: large horizontal rows, editorial
   typography, thin rules, generous negative space. No rounded
   cards, no shadows, no product-grid appearance.
   Typography/nav/footer/base come from ../style.css; this file
   only adds the page layout, so the homepage files stay untouched.
   ================================================================ */

.ps-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) clamp(20px, 5vw, 64px) clamp(64px, 10vw, 120px);
}

/* ---- page intro (restrained header) ---- */

.ps-eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #000;
}

.ps-heading {
  margin: 20px 0 16px;
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.ps-lede {
  margin: 0 0 56px;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

/* ---- schedule: one reusable horizontal row component ----
   DATE | SHOW INFORMATION | TICKETS
   Rows separated by thin horizontal rules only. */

.ps-schedule {
  margin-top: clamp(48px, 8vw, 96px);
}

.ps-row {
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(32px, 5vw, 56px) 0;
}

.ps-row + .ps-row {
  border-top: 1px solid #000;
}

/* date block — one of the strongest visual elements */

.ps-date {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ps-date-weekday {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #000;
}

.ps-date-day {
  font-size: clamp(56px, 9vw, 104px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #000;
}

/* placeholder dates (external event not yet known): same slot,
   smaller and spaced so it reads as a placeholder, not a number */
.ps-date-day--placeholder {
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
}

.ps-date-monthyear {
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #000;
}

/* show information */

.ps-info {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  min-width: 0;
}

.ps-info-text {
  flex: 1 1 auto;
  min-width: 0;
}

.ps-meta {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #333;
}

.ps-show {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #000;
}

.ps-desc {
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

/* optional poster: a secondary editorial element only —
   placeholder for now, never the main card structure */

.ps-poster {
  flex: 0 0 auto;
  width: clamp(84px, 9vw, 116px);
  aspect-ratio: 3 / 4;
  margin: 0;
  border: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.ps-poster span {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #666;
}

/* real event photos in the poster slot (any event row) —
   the only images in the schedule, each bound to its own row */
.ps-poster--real {
  width: clamp(180px, 20vw, 280px);
  background: #000;
  overflow: hidden;
}

.ps-poster--real img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* landscape sources (Gala Show photo) use a 4:3 slot */
.ps-poster--wide {
  aspect-ratio: 4 / 3;
}

/* portrait source (Rüsselsheim portrait): keep the faces high in the crop */
.ps-row--external .ps-poster--real img {
  object-position: center 25%;
}

/* ticket CTA — prominent but restrained, site red accent on hover */

.ps-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.ps-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s;
}

.ps-cta:hover {
  color: #ff0000;
}

.ps-cta .ps-arrow {
  display: inline-block;
  letter-spacing: 0;
  transition: transform 0.3s;
}

.ps-cta:hover .ps-arrow {
  transform: translateX(4px);
}

/* reserved hook for a future secondary action (e.g. TERMIN SPEICHERN) */
.ps-cta--secondary {
  color: #333;
}

/* ================================================================
   [PUBLIC SHOWS v1.2] — inline reservation panels
   Same editorial language as the schedule: thin rules, uppercase
   letterspaced labels, underline inputs, red accent. No cards,
   no shadows, no SaaS form styling.
   ================================================================ */

/* the ticket CTA is a real button on the internal rows */
button.ps-cta {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

/* active (panel open) state: a quiet line under the CTA — no colour */
button.ps-reserve-toggle {
  border-bottom: 1px solid transparent;
}

button.ps-reserve-toggle[aria-expanded="true"] {
  border-bottom-color: #000;
}

.ps-reserve-toggle:focus-visible,
.ps-back:focus-visible,
.ps-submit:focus-visible {
  outline: 2px solid #000;
  outline-offset: 4px;
}

/* the panel is a full-width continuation of its event row */
.ps-reserve {
  grid-column: 1 / -1;
  display: none;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: clamp(24px, 4vw, 40px);
  border-top: 1px solid #000;
}

.ps-reserve.open {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .ps-reserve.open {
    animation: ps-panel-fade 0.35s ease;
  }

  @keyframes ps-panel-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}

/* the selected event expands into: summary on the left, form in the main column */
.ps-reserve-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.ps-reserve-day {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #000;
}

.ps-reserve-date {
  margin: 10px 0 0;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #000;
}

.ps-reserve-venue {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #000;
}

.ps-reserve-address {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #333;
}

/* show description in the main column, above the reservation form */
.ps-reserve-desc {
  margin: 0 0 clamp(28px, 3.5vw, 40px);
  max-width: 62ch;
  display: grid;
  gap: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: #333;
}

.ps-reserve-heading {
  margin: 0 0 clamp(26px, 3.5vw, 40px);
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 600;
  color: #000;
}

/* ---- form ---- */

.ps-form {
  margin-top: 0;
}

.ps-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 44px);
}

@media (max-width: 992px) {
  /* the reservation panel stacks: summary first, form below it */
  .ps-reserve-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ps-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .ps-form-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

.ps-label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #000;
}

.ps-input {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 0;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: #000;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #000;
  border-radius: 0;
}

.ps-input:focus {
  outline: none;
  border-bottom-color: #ff0000;
}

/* marked (not failed yet — just client-side attention) */
.ps-input.ps-error {
  border-bottom-color: #ff0000;
}

.ps-select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 26px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path d="M1 1l5 5 5-5" fill="none" stroke="%23000" stroke-width="1.4"/></svg>');
  background-repeat: no-repeat;
  background-position: right 2px center;
  cursor: pointer;
}

/* honeypot: off-screen, invisible to users, present for bots */
.ps-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* status line — errors announced by text + a red rule, never color alone */
.ps-status {
  min-height: 1.6em;
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #000;
}

.ps-status:focus {
  outline: none;
}

.ps-status--error {
  border-left: 1px solid #ff0000;
  padding-left: 14px;
}

.ps-submit {
  margin-top: 28px;
  padding: 16px 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #000;
  background: #fff;
  border: 1px solid #000;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}

.ps-submit:hover {
  color: #ff0000;
  border-color: #ff0000;
}

.ps-submit .ps-arrow {
  display: inline-block;
  letter-spacing: 0;
  transition: transform 0.3s;
}

.ps-submit:hover .ps-arrow {
  transform: translateX(4px);
}

/* loading keeps the label width stable while the arrow rests */
.ps-submit.is-loading .ps-arrow {
  visibility: hidden;
}

.ps-submit:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ---- success state (in place of the form) ---- */

.ps-success {
  margin-top: 0;
}

.ps-success-title {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #000;
}

.ps-success-code {
  margin: 18px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #000;
}

.ps-success-line {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.5;
  color: #000;
}

.ps-success-note {
  margin: 14px 0 0;
  max-width: 56ch;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.ps-back {
  display: inline-flex;
  margin-top: 26px;
}

/* ---- concise event/reservation information (in the panel's left column) ---- */

.ps-reserve-info {
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding: 0;
  border: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
}

.ps-reserve-info a {
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #000;
}

.ps-reserve-info a:hover {
  color: #ff0000;
  border-bottom-color: #ff0000;
}

/* ---- responsive: stack naturally, date first, CTA last ---- */

@media (max-width: 992px) {
  .ps-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
    padding: 36px 0;
  }

  /* date becomes a compact horizontal line, still first */
  .ps-date {
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
  }

  .ps-date-day {
    font-size: clamp(40px, 10vw, 56px);
  }

  .ps-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  /* the placeholder poster earns no space on small screens —
     real event photos are content: keep them, stacked below the info */
  .ps-poster {
    display: none;
  }

  .ps-poster--real {
    display: block;
    width: 100%;
    max-width: 420px;
  }

  .ps-action {
    align-items: flex-start;
  }

  /* easy to tap */
  .ps-cta {
    padding: 16px 0;
  }
}

/* ---- [MOBILE UX P1A] phone composition (<=992px only) ----
   The stacked layout already existed, but the dense letterspaced
   meta line read as one squeezed row, and the CTA had no group
   boundary against the content above/below it. Desktop unchanged. */
@media (max-width: 992px) {
  .ps-meta {
    letter-spacing: 0.12em;
    line-height: 2;
  }
  .ps-date {
    flex-wrap: wrap;
  }
  .ps-action {
    border-top: 1px solid #000;
    padding-top: 18px;
  }
}

/* ---- [MOBILE UX P1B] stacked date module (<=992px only) ----
   The pre-existing <=992 block forced the date into one horizontal
   line (weekday + numeral + month/year), which read as a flattened
   date row on a real phone. Restore the desktop date block's stacked
   composition as one compact, intentional module; the numeral scales
   the desktop formula down to phone widths. Desktop unchanged. */
@media (max-width: 992px) {
  .ps-date {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .ps-date-weekday {
    font-size: 12px;
    letter-spacing: 0.3em;
  }
  .ps-date-day {
    font-size: clamp(48px, 13vw, 64px);
    line-height: 0.9;
  }
  .ps-date-monthyear {
    font-size: 14px;
    letter-spacing: 0.24em;
  }
}
