/*
 * Tourila Public 1.8.0 – the composition of the theme pages (start page, pages, magazine). Every value from the tokens of
 * Tourila UI (plugin: assets/css/tourila-ui.css); components (header, footer, cards, tiles, chips, search field) are
 * never restyled here – they look the same on the travel page and in the Studio preview.
 */

/* Start page: claim, the search, up to three real covers. */
/* 1.2.0: four covers, the right column a little lower – a board of pictures, not a grid of thumbnails. */
.tu-home > .tu-section:last-child {
  padding-bottom: 0;
}
/* Pages and posts */
.tu-page__head--wide {
  max-width: none;
}
.tu-page__cover {
  margin: 0 auto var(--tu-space-10);
  max-width: 1040px;
}
.tu-page__cover img {
  border-radius: var(--tu-radius-xl);
  display: block;
  width: 100%;
}
.tu-pager:empty {
  display: none;
}
.tu-pager .page-numbers {
  border-radius: var(--tu-radius-pill);
  color: var(--tu-ink);
  min-width: var(--tu-control-h);
  padding: var(--tu-space-2) var(--tu-space-3);
  text-align: center;
  text-decoration: none;
}
.tu-pager .page-numbers.current {
  background: var(--tu-ink);
  color: var(--tu-surface);
}
/* 1.3.0: the page for travel providers (/reiseanbieter/) – composition only, every value from the tokens. */
.tu-providers__eyebrow {
  color: var(--tu-brand-strong);
  font-size: var(--tu-text-sm);
  font-weight: var(--tu-weight-heavy);
  letter-spacing: .08em;
  margin: 0 0 var(--tu-space-4);
  text-transform: uppercase;
}
.tu-providers__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tu-space-3);
  margin: 0;
}
.tu-steps-line {
  counter-reset: step;
  display: grid;
  gap: var(--tu-space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.tu-steps-line li {
  border-top: 2px solid var(--tu-line);
  counter-increment: step;
  display: grid;
  gap: var(--tu-space-1);
  padding-top: var(--tu-space-4);
}
.tu-steps-line li::before {
  color: var(--tu-brand);
  content: counter(step);
  font-size: var(--tu-text-lg);
  font-weight: var(--tu-weight-heavy);
}
.tu-steps-line b {
  color: var(--tu-ink);
}
.tu-steps-line span {
  color: var(--tu-muted);
  font-size: var(--tu-text-md);
}
.tu-faq {
  border-top: 1px solid var(--tu-line);
  max-width: var(--tu-reading-max);
}
.tu-faq details {
  border-bottom: 1px solid var(--tu-line);
}
.tu-faq summary {
  color: var(--tu-ink);
  cursor: pointer;
  font-size: var(--tu-text-base);
  font-weight: var(--tu-weight-semibold);
  list-style: none;
  min-height: var(--tu-control-h);
  padding: var(--tu-space-4) var(--tu-space-8) var(--tu-space-4) 0;
  position: relative;
}
.tu-faq summary::-webkit-details-marker {
  display: none;
}
.tu-faq summary::after {
  color: var(--tu-muted);
  content: "+";
  font-size: 22px;
  font-weight: var(--tu-weight-regular);
  position: absolute;
  right: var(--tu-space-1);
  top: 50%;
  transform: translateY(-50%);
}
.tu-faq details[open] summary::after {
  content: "–";
}
.tu-faq p {
  color: var(--tu-text);
  margin: 0 0 var(--tu-space-5);
}
.tu-providers > .tu-section:last-child {
  padding-bottom: 0;
}
/* 1.4.0: pages built from blocks („Volle Breite (Tourila)“, own start page). */
.tu-page--wide {
  overflow-x: clip;
  padding-top: var(--tu-space-10);
}
.tu-wide > h1,
.tu-wide > .wp-block-heading:is(h1) {
  font-size: var(--tu-title-display);
  font-weight: var(--tu-weight-heavy);
  letter-spacing: var(--tu-tracking-display);
  line-height: 1.02;
  margin: var(--tu-space-6) 0 var(--tu-space-5);
  max-width: 16ch;
}
.tu-wide > h2 {
  font-size: var(--tu-title-section);
  font-weight: var(--tu-weight-heavy);
  letter-spacing: var(--tu-tracking-title);
  margin: var(--tu-space-12) 0 var(--tu-space-4);
}
.tu-wide > p {
  color: var(--tu-text);
  font-size: var(--tu-text-base);
  line-height: var(--tu-leading);
  max-width: var(--tu-reading-max);
}
.tu-wide > p.tu-lead {
  font-size: clamp(17px, 0.6vw + 14px, 21px);
  max-width: 46ch;
}
.tu-wide > .alignwide {
  max-width: none;
}
.tu-wide > .alignfull {
  margin-left: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}
.tu-wide :where(figure, p) img {
  height: auto;
  max-width: 100%;
}
.tu-wide > :last-child {
  margin-bottom: 0;
}
/* 1.5.0: start page „Postkarte“ (Brand Experience 2.0) – warm ground, the search as an invitation, two photos. */
.tu-pc-hero {
  background: var(--tu-sand);
}
.tu-pc-hero__grid {
  align-items: center;
  display: grid;
  gap: clamp(32px, 4vw, 64px);
  padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 96px);
}
.tu-pc-hero__grid.has-photos {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
}
.tu-pc-hero__copy {
  min-width: 0;
}
.tu-pc-hero__title {
  font-size: var(--tu-title-display);
  font-weight: var(--tu-weight-heavy);
  letter-spacing: var(--tu-tracking-display);
  line-height: 1.02;
  margin: 0 0 var(--tu-space-5);
  max-width: 14ch;
}
.tu-pc-hero__lead {
  color: var(--tu-text);
  font-size: clamp(17px, 0.6vw + 14px, 20px);
  line-height: 1.55;
  margin: 0 0 var(--tu-space-8);
  max-width: 44ch;
}
.tu-pc-hero__photos {
  aspect-ratio: 5 / 6;
  position: relative;
}
.tu-pc-hero__photos img {
  border-radius: 28px;
  box-shadow: 0 20px 60px rgb(60 40 20 / 0.18);
  height: 100%;
  object-fit: cover;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
}
.tu-pc-hero__photos.has-two img:first-child {
  height: 86%;
  width: 82%;
}
.tu-pc-hero__photos.has-two img:nth-child(2) {
  border: 6px solid var(--tu-sand);
  bottom: 0;
  height: 44%;
  left: 0;
  right: auto;
  top: auto;
  width: 46%;
}
/* 1.6.0: .tu-soon lives in Tourila UI (plugin 0.585). */
.tu-soon b {
  color: var(--tu-ink);
}
.tu-people {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
}
.tu-people.has-photo {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.tu-people__photo {
  margin: 0;
}
.tu-people__photo img {
  aspect-ratio: 6 / 5;
  border-radius: 28px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}
.tu-people p {
  color: var(--tu-text);
  font-size: clamp(17px, 0.4vw + 15px, 19px);
  line-height: 1.6;
  margin: var(--tu-space-4) 0 0;
  max-width: 46ch;
}
.tu-people .tu-section__title {
  font-size: clamp(26px, 1.6vw + 14px, 38px);
  font-weight: var(--tu-weight-heavy);
  line-height: 1.1;
}
@media (max-width: 759px) {
  .tu-pc-hero__grid.has-photos {
    grid-template-columns: 1fr;
  }
  .tu-pc-hero__title {
    font-size: 40px;
  }
  .tu-pc-hero__lead {
    margin-bottom: var(--tu-space-6);
  }
  /* On a phone the search comes first; the photos follow as a calm pair. */
  .tu-pc-hero__photos {
    aspect-ratio: auto;
    display: grid;
    gap: 10px;
    grid-template-columns: 1.4fr 1fr;
  }
  .tu-pc-hero__photos img,
  .tu-pc-hero__photos.has-two img:first-child,
  .tu-pc-hero__photos.has-two img:nth-child(2) {
    aspect-ratio: 4 / 5;
    border: 0;
    border-radius: var(--tu-radius-xl);
    box-shadow: none;
    height: auto;
    position: static;
    width: 100%;
  }
  .tu-pc-hero__photos:not(.has-two) {
    grid-template-columns: 1fr;
  }
  .tu-pc-hero__photos:not(.has-two) img {
    aspect-ratio: 16 / 10;
  }
  .tu-people.has-photo {
    grid-template-columns: 1fr;
  }
}
/* 1.5.0: the page for travel providers – an invitation (photo beside the message), then the details. */
.tu-pv-hero {
  display: grid;
}
.tu-pv-hero.has-photo {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(680px, 80vh);
}
.tu-pv-hero__photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.tu-pv-hero__copy {
  align-self: center;
  padding: clamp(32px, 5vw, 80px) clamp(20px, 5vw, 80px);
}
.tu-pv-hero:not(.has-photo) .tu-pv-hero__copy {
  margin-inline: auto;
  max-width: var(--tu-page-max);
  width: 100%;
}
.tu-pv-hero__title {
  font-size: clamp(36px, 3.4vw + 10px, 62px);
  font-weight: var(--tu-weight-heavy);
  letter-spacing: var(--tu-tracking-display);
  line-height: 1.03;
  margin: 0 0 var(--tu-space-5);
  max-width: 15ch;
}
.tu-pv-hero__lead {
  color: var(--tu-text);
  font-size: clamp(17px, 0.5vw + 14px, 20px);
  line-height: 1.55;
  margin: 0 0 var(--tu-space-8);
  max-width: 44ch;
}
.tu-pv-hero__login {
  color: var(--tu-muted);
  font-size: var(--tu-text-md);
  margin: var(--tu-space-5) 0 0;
}
.tu-pv-hero__login a {
  color: var(--tu-ink);
}
.tu-pv-invite {
  display: grid;
  gap: var(--tu-space-8);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}
.tu-pv-invite p,
.tu-pv-show p {
  color: var(--tu-text);
  font-size: var(--tu-text-lg);
  line-height: 1.65;
  margin: 0 0 var(--tu-space-4);
}
.tu-pv-show {
  background: var(--tu-sand);
  border-radius: 32px;
  display: grid;
  gap: var(--tu-space-10);
  padding: clamp(24px, 4vw, 56px);
}
.tu-pv-show.has-example {
  align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}
.tu-pv-show .tu-section__title + p {
  margin-top: var(--tu-space-3);
}
.tu-pv-show p + .tu-section__title {
  margin-top: var(--tu-space-8);
}
.tu-pv-show__card {
  grid-template-columns: 1fr;
  margin: 0;
}
.tu-pv-tools {
  display: grid;
  gap: var(--tu-space-4) var(--tu-space-8);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.tu-pv-tools li {
  border-top: 1px solid var(--tu-line);
  display: grid;
  gap: var(--tu-space-1);
  padding-top: var(--tu-space-4);
}
.tu-pv-tools span {
  color: var(--tu-muted);
  font-size: var(--tu-text-md);
}
@media (max-width: 759px) {
  .tu-pv-hero.has-photo,
  .tu-pv-invite,
  .tu-pv-show.has-example {
    grid-template-columns: 1fr;
  }
  .tu-pv-hero.has-photo {
    min-height: 0;
  }
  .tu-pv-hero__photo img {
    aspect-ratio: 4 / 3;
    height: auto;
  }
}

/* 1.7.0: why Tourila – four short lines right under the search (two columns on a phone, no extra box). */
.tu-section--trust {
  padding-top: var(--tu-space-8);
}
.tu-section--trust .tu-trust {
  margin: 0;
}
@media (max-width: 759px) {
  .tu-section--trust {
    padding-top: var(--tu-space-6);
  }
  .tu-section--trust .tu-trust {
    gap: var(--tu-space-5) var(--tu-space-4);
    grid-template-columns: 1fr 1fr;
  }
  .tu-section--trust .tu-trust li {
    flex-direction: column;
    gap: var(--tu-space-2);
  }
}
