/* --- Anpassung single-events.php ---*/
/* =========================================================
   EVENTS SINGLE - finaler Builder-orientierter Stand
========================================================= */

/* Nur Content auf volle Breite, Masthead/Menu normal lassen */
.single-events.pht-events-fullwidth #main {
  width: 100% !important;
  max-width: 100% !important;
}

.single-events.pht-events-fullwidth #primary,
.single-events.pht-events-fullwidth #content,
.single-events.pht-events-fullwidth .pht-events-primary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.single-events.pht-events-fullwidth #secondary,
.single-events.pht-events-fullwidth .widget-area,
.single-events.pht-events-fullwidth aside.widget-area {
  display: none !important;
}

.single-events.pht-events-fullwidth article.post,
.single-events.pht-events-fullwidth .post {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.single-events.pht-events-fullwidth .entry-header,
.single-events.pht-events-fullwidth header.entry-header,
.single-events.pht-events-fullwidth .entry-meta,
.single-events.pht-events-fullwidth #comments,
.single-events.pht-events-fullwidth .post-navigation {
  display: none !important;
}

.single-events.pht-events-fullwidth #main {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
}

.pht-event-entry-content {
  margin: 0 !important;
  padding: 0 !important;
}

.pht-event-page {
  width: 100%;
  background: #fff;
  color: #2d2d2d;
}

.pht-event-header {
  display: block;
}

.pht-event-hero {
  position: relative;
  min-height: 700px;
  background-position: center center;
  background-size: auto;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.pht-event-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(51, 51, 51, 0.65);
}

.pht-event-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.pht-event-hero__content {
  text-align: center;
}

.pht-event-hero__title,
.single-events .pht-event-hero__title {
  margin: 0;
  font-size: clamp(42px, 8vw, 112px);
  line-height: 0.95;
  color: #ffffff !important;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 0 25px rgba(0,0,0,0.25);
}

.pht-event-hero__subtitle,
.single-events .pht-event-hero__subtitle {
  margin: 12px 0 0;
  font-size: 32px;
  line-height: 1.25;
  color: #ffffff !important;
  font-weight: 400;
  text-align: center;
  text-shadow: 0 0 25px rgba(0,0,0,0.25);
}

.pht-event-summary {
  background: #ffffff;
  padding: 2% 5% 2% 5%;
}

.pht-event-summary__inner {
  max-width: 760px;
  margin: 0 auto;
}

.pht-event-summary__title,
.pht-event-summary p.pht-event-summary__title,
.pht-event-summary h1.pht-event-summary__title {
  margin: 0;
  font-size: 26px !important;
  line-height: 1.1;
  color: #262626;
  text-align: left;
  font-weight: 600 !important;
  font-family: inherit;
}

.pht-event-summary__intro {
  margin: 18px 0 0;
  color: #555555;
  font-size: 18px;
  line-height: 1.7;
}

.pht-event-summary__dates {
  margin: 15px 0;
  color: #555555;
  text-align: left;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 300;
}

.pht-event-summary__dateblock + .pht-event-summary__dateblock {
  margin-top: 4px;
}

.pht-event-summary__duration {
  margin-top: 6px;
}

.pht-event-summary__cta-wrap {
  margin: 0;
}

.pht-event-summary__cta,
.pht-event-summary__cta:hover,
.pht-event-summary__cta:visited,
.pht-event-summary__cta:focus,
.pht-event-summary__cta:active {
  display: block;
  background: #ffcb01;
  color: #2d2d2d !important;
  text-decoration: none;
  text-align: center;
  font-size: 1.15em;
  font-weight: 600;
  padding: 1em;
  border-radius: 0;
}

.pht-event-summary__cta:hover,
.pht-event-summary__cta:focus {
  background: #000;
  color: #fff !important;
}

.pht-event-section--grey {
  background: #f7f7f7;
}

.pht-event-section--desc {
  padding: 5% 5% 0 5%;
}

.pht-event-section--cast {
  padding: 5% 5% 5% 5%;
}

.pht-event-section--dates-inline {
  padding: 5% 5% 5% 5%;
}

.pht-event-section--gallery {
  padding: 3% 5% 0 5%;
}

.pht-event-section--press {
  padding: 5% 5% 0 5%;
}

.pht-event-section--video {
  padding: 0 5% 0 5%;
}

.pht-event-section--partners {
  padding: 5% 5% 2% 5%;
}
.pht-event-section--infos {
  padding: 5% 5% 5% 5%;
}
.pht-event-section--termine {
  padding: 5% 5% 5% 5%;
}

.pht-event-card {
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #ffffff;
  padding: 3%;
}

.pht-event-card__heading {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.35;
  color: #262626;
  font-weight: 600;
}

.pht-event-card__intro {
  margin: 0 0 14px;
  color: #555;
  line-height: 1.7;
  font-size: 16px;
}

.pht-event-content {
  color: #555;
  line-height: 1.75;
  font-size: 16px;
}

.pht-event-content p:last-child {
  margin-bottom: 0;
}

.pht-event-ensemble {
  margin-bottom: 24px;
}

.pht-event-ensemble__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
}

.pht-event-ensemble__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.pht-event-ensemble__image-link,
.pht-event-ensemble__image-wrap {
  display: block;
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  height: 72px;
  flex: 0 0 72px;
  overflow: hidden;
  border-radius: 50%;
}

.pht-event-ensemble__image {
  display: block;
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.pht-event-ensemble__body {
  min-width: 0;
}

.pht-event-ensemble__name {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
  color: #2d2d2d;
}

.pht-event-ensemble__name a {
  color: #2d2d2d;
  text-decoration: none;
}

.pht-event-ensemble__name a:hover {
  text-decoration: underline;
}

.pht-event-ensemble__role {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.35;
  color: #555;
}

.pht-event-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}

.pht-event-team-grid__row {
  display: flex;
  gap: 6px;
  align-items: baseline;
  min-width: 0;
  padding: 4px 0;
  font-size: 16px;
  line-height: 1.45;
  color: #555;
}

.pht-event-team-grid__function {
  white-space: nowrap;
}

.pht-event-team-grid__person {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #2d2d2d;
}

.pht-event-team-grid__person a {
  color: #2d2d2d;
  text-decoration: none;
}

.pht-event-team-grid__person a:hover {
  text-decoration: underline;
}

.pht-event-rights {
  margin-top: 20px;
  color: #666;
  font-size: 15px;
  line-height: 1.55;
}

.pht-event-gallery {
  max-width: 1180px;
  margin: 0 auto 35px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pht-event-gallery__item {
  display: none;
}

.pht-event-gallery__item.is-visible {
  display: block;
}

.pht-event-gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.pht-event-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.pht-event-gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(0,0,0,.72);
  color: #fff;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}

.pht-event-gallery__item:hover .pht-event-gallery__caption {
  opacity: 1;
  transform: translateY(0);
}

.pht-event-press__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.pht-event-press__row:last-child {
  border-bottom: 0;
}

.pht-event-press__left {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.pht-event-press__quote,
.pht-event-press__meta {
  color: #555;
  font-size: 16px;
  line-height: 1.45;
}

.pht-event-press__meta {
  color: #777;
}

.pht-event-press__right a,
.pht-event-press__right a:hover,
.pht-event-press__right a:visited,
.pht-event-press__right a:focus,
.pht-event-press__right a:active {
  color: #d7b100 !important;
  text-decoration: none;
  white-space: nowrap;
  font-size: 16px;
}

.pht-event-press__right a:hover {
  text-decoration: underline;
}

.pht-event-partners {
  max-width: 760px;
  margin: 0 auto 35px auto;
  display: flex;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
}

.pht-event-partners__item {
  width: 180px;
  text-align: center;
}

.pht-event-partners__logo {
  margin-bottom: 10px;
}

.pht-event-partners__logo img {
  max-width: 100%;
  max-height: 230px;
  width: auto;
  height: auto;
}

.pht-event-partners__text {
  font-size: 0.9rem;
  line-height: 1.35;
  color: #777;
}

.pht-event-info-list {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px 20px;
  margin: 0;
}

.pht-event-info-list dt {
  font-weight: 600;
  color: #2d2d2d;
  font-size: 16px;
}

.pht-event-info-list dd {
  margin: 0;
  color: #555;
  font-size: 16px;
}

.pht-event-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.pht-event-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pht-event-dates {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pht-event-dates__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.pht-event-dates__item:last-child {
  border-bottom: 0;
}

.pht-event-dates__main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.pht-event-dates__datetime {
  display: inline-grid;
  grid-template-columns: 3.4em 7em 4em;
  gap: .5em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #555;
  font-size: 16px;
  width: stretch;
}

.pht-event-dates__badge {
  background: #f2f2f2;
  color: #333;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 14px;
}

.pht-event-dates__button,
.pht-event-dates__button:hover,
.pht-event-dates__button:visited,
.pht-event-dates__button:focus,
.pht-event-dates__button:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffcb01;
  color: #2d2d2d !important;
  text-decoration: none;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  min-width: 0;
  box-sizing: border-box;
}

.pht-event-dates__button:hover,
.pht-event-dates__button:focus {
  background: #000;
  color: #fff !important;
}

.pht-event-dates__button--state {
  background: #ffcb01;
  color: #fff !important;
}

@media (max-width: 1100px) {
  .pht-event-hero__title {
    font-size: 84px;
  }

  .pht-event-hero__subtitle {
    font-size: 26px;
  }
  .single-events .pht-event-hero {
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center top;
  }
}

@media (max-width: 900px) {
  .pht-event-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .pht-event-team-grid,
  .pht-event-ensemble__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pht-event-gallery {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .single-events .pht-event-hero {
    min-height: 420px;
  }

  .pht-event-hero__title {
    font-size: 52px;
  }

  .pht-event-hero__subtitle {
    font-size: 20px;
  }

  .pht-event-summary__title {
    font-size: 26px !important;
    text-align: center;
  }

  .pht-event-summary__dates {
    font-size: 20px;
    text-align: center;
  }

  .pht-event-gallery {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pht-event-dates__item {
    grid-template-columns: 1fr;
  }

  .pht-event-dates__datetime {
    grid-template-columns: auto auto auto;
  }

  .pht-event-press__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .pht-event-team-grid__person {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .pht-event-info-list {
    grid-template-columns: 1fr;
  }
}

.pht-event-gallery-loadmore-wrap {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.pht-event-gallery-loadmore {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  background: #ffcb01;
  color: #2d2d2d !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-shadow: none;
  padding: 12px 24px;
  min-width: 180px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.pht-event-gallery-loadmore:hover,
.pht-event-gallery-loadmore:focus,
.pht-event-gallery-loadmore:active,
.pht-event-gallery-loadmore:visited {
  background: #000000;
  color: #ffffff !important;
  border: 0;
  box-shadow: none;
  text-shadow: none;
  outline: none;
}

.pht-event-gallery-loadmore:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

.pht-event-gallery-loadmore[disabled],
.pht-event-gallery-loadmore.is-hidden {
  display: none;
}

.pht-event-gallery__item {
  display: none;
  opacity: 0;
  transform: translateY(8px);
}

.pht-event-gallery__item.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .25s ease, transform .25s ease;
}

.pht-home-heroes {
  width: 100%;
}

.pht-home-hero {
  position: relative;
  min-height: 800px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  margin: 0;
}

.pht-home-hero .pht-event-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(51, 51, 51, 0.65);
}

.pht-home-hero .pht-event-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  min-height: 940px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pht-home-hero__content {
  width: 100%;
  text-align: center;
}

.pht-home-hero__date {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 0 25px rgba(0,0,0,0.25);
}

.pht-home-hero__title,
.pht-home-hero .pht-event-hero__title {
  margin: 0;
  font-size: clamp(42px, 8vw, 112px);
  line-height: 0.95;
  color: #fff;
}

.pht-home-hero__subtitle,
.pht-home-hero .pht-event-hero__subtitle {
  margin: 12px 0 0;
  font-size: clamp(16px, 4vw, 32px);
  line-height: 1.15;
  font-weight: 300 !important;
  color: #fff;
}

.pht-home-hero__buttons {
  margin-top: 24px;
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.pht-home-hero__button,
.pht-home-hero__button:hover,
.pht-home-hero__button:visited,
.pht-home-hero__button:focus,
.pht-home-hero__button:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 1em;
  background: #ffcb01;
  color: #2d2d2d !important;
  text-decoration: none;
  font-size: 1.5em;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 0;
}

.pht-home-hero__button:hover,
.pht-home-hero__button:focus {
  background: #000;
  color: #fff !important;
}

@media (max-width: 780px) {
  .pht-home-hero,
  .pht-home-hero .pht-event-hero__inner {
    min-height: 505px;
    background-size: cover;
  }

  .pht-home-hero__date {
    font-size: 22px;
  }

  .pht-home-hero__button,
  .pht-home-hero__button:hover,
  .pht-home-hero__button:visited,
  .pht-home-hero__button:focus,
  .pht-home-hero__button:active {
    min-width: 140px;
    font-size: 1.1em;
    padding: 0.9em 1.2em;
  }
}
