.trip-tag-past {
  padding: 0 0.5em;
  border-radius: 4px;
  background: #6b6b6b;
  color: #fff;
}

.trip-past-info {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e8c547;
  border-radius: 8px;
  background: #fff4c2;
  color: #3d3000;
  font-size: 1rem;
  line-height: 1.5;
}

.trip-past-info a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.trip-past-next {
  margin-bottom: 1.5rem;
}

.trip-past-next h4 {
  margin-bottom: 0.5rem;
}

.trip-meta-theme a {
  text-decoration: underline;
}

.trip-past-next .columns {
  row-gap: 0 !important;
}

/* Seitenleiste vergangener Reisen: zu schmal für die Kalender-Spalten der Vorlage. Titel oben,
   darunter Dauer · Datum und Preis, nichts abgeschnitten. */
.trip-past-next .trip-card-sm {
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  column-gap: 0.4em !important;
  row-gap: 2px !important;
}
.trip-past-next .trip-card-sm > * {
  flex: none !important;
  min-width: 0 !important;
  width: auto !important;
  text-align: left !important;
  justify-content: flex-start !important;
}
.trip-past-next .trip-card-sm > .trip-title {
  flex: 0 0 100% !important;
}
.trip-past-next .trip-card-sm > .trip-date::before {
  content: "·";
  margin-right: 0.4em;
}
.trip-past-next .trip-card-sm > .trip-price {
  margin-left: auto !important;
  white-space: nowrap;
}

.content-list.trip-past .trip-price {
  display: none;
}

.content-list.trip-past .trip-title::before {
  content: "Vergangen";
  display: block;
  width: max-content;
  padding: 0 0.5em;
  border-radius: 4px;
  background: #6b6b6b;
  color: #fff;
  font-size: 0.8125rem;
}

/* Seiten-Container bringt eigenen Abstand mit, der Header liegt sonst tiefer als auf der Reiseseite. */
.page.single-reise main.main-content {
  padding-top: 0;
}

.trip-theme-links {
  padding: 0 clamp(16px, 2.5vw, 32px);
}

.trip-theme-links-rest {
  margin-top: 3rem;
}

.trip-theme-links h3 {
  margin-bottom: 1rem;
}

.trip-theme-links nav {
  columns: 4;
  column-gap: 32px;
  text-align: left;
}

@media (max-width: 960px) {
  .trip-theme-links nav {
    columns: 2;
    column-gap: 16px;
  }
}

.trip-theme-links a {
  display: block;
  padding: 0.25rem 0;
  break-inside: avoid;
  text-decoration: underline;
}

/* Eigener Abstand, weil die Liste hier nicht vom Listen-Block kommt. */
.trip-theme-cards {
  padding: 0 clamp(16px, 2.5vw, 32px);
}

/* Buchungsstatus und Reise-Tags gelten nicht mehr für vergangene Reisen. */
.content-list.trip-past .trip-tags,
.trip-is-past .trip-tags > :not(.trip-tag-past):not(.trip-meta) {
  display: none;
}

/* Thema ohne kommende Termine */
.trip-no-upcoming-text {
	padding: var(--wp--preset--spacing--m, 1.5rem);
	background: var(--wp--preset--color--theme-white, #fff);
	border-left: 4px solid var(--wp--preset--color--theme-primary, #f5b400);
	border-radius: 8px;
}


/* Reisethema: grauer Text unter dem Titel, wie die zweite Zeile im Reise-Archiv. */
.trip-detail-overlay .lp-subtitle {
    margin-top: 0;
    max-width: 1216px;
    font-size: clamp(1.25rem, 0.9rem + 1vw, 1.75rem);
    line-height: 1.3;
    color: var(--wp--preset--color--dark-neutral, #a0a5aa);
}

/* Reisethema: alle Bereiche bündig mit dem Titel, wie im Reise-Archiv. */
.lp-reisethema > section:not(.main-content):not(.trip-theme-links):not(.trip-theme-cards),
.lp-reisethema > .lp-freier-inhalt {
    padding-left: clamp(16px, 2.5vw, 32px);
    padding-right: clamp(16px, 2.5vw, 32px);
}

/* Reisethema: Den Abstand unter dem fixen Header trägt das Kopfbild, nicht der Rahmen. */
body main.lp-reisethema.main-content {
    padding-top: 0;
}

/* Reisethema: Luft unter den Bereichs-Überschriften und zwischen Kurztext und „Nächste Termine“, wie im Mockup. */
.lp-reisethema h3.wp-block-heading {
    margin-bottom: 1.5rem;
}

/* Reisethema: Vergangene und Weitere Themen kleiner als die Termine und zentriert, damit sie nicht ablenken. */
.lp-reisethema .lp-vergangen > .columns,
.lp-reisethema .trip-past > .grid,
.lp-reisethema .trip-theme-cards > .grid,
.lp-reisethema .trip-theme-links-rest > .columns {
    max-width: 1216px;
    margin-left: auto;
    margin-right: auto;
}
.lp-reisethema .lp-vergangen h3,
.lp-reisethema .trip-theme-links h3 {
    text-align: center;
}

/* Reiseseite: weitere Termine des Themas am Ende des Reiseprogramms. */
.trip-theme-hint h3 {
    margin-bottom: 0.75rem;
}
.trip-theme-hint-intro {
    margin: 0 0 1rem;
}
.trip-theme-hint ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.trip-content .trip-theme-hint li {
    padding-left: 0 !important;
    font-size: inherit !important;
    border-bottom: 1px solid #f0f3f5;
}
/* Ohne die Häkchen der Leistungslisten. */
.trip-content .trip-theme-hint li::before {
    content: none !important;
    display: none !important;
}
.trip-content .trip-theme-hint li a {
    display: block;
    padding: 0.6rem 0;
    color: inherit !important;
    text-decoration: none !important;
}
.trip-content .trip-theme-hint li a::after {
    content: "→";
    float: right;
}
.trip-content .trip-theme-hint li a:hover,
.trip-content .trip-theme-hint li a:focus-visible {
    text-decoration: underline !important;
}
.trip-theme-hint-more {
    margin: 0.75rem 0 0;
}

/* Reisethema: Überschrift der News bündig mit der News-Liste (Breite wie auf der News-Seite). */
.lp-reisethema section.lp-news.grid > .columns {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}
