/* Shared styles for the Beispielreisen content pages */

.u-page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: 50% 50%;
}

.u-page-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15));
}

.u-page-hero .u-sheet {
  position: relative;
  z-index: 1;
  padding: 40px 0;
}

.u-page-hero h1 {
  color: #ffffff;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
}

.u-page-hero .u-hero-en {
  display: block;
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: 1px;
  opacity: 0.85;
  margin-top: 8px;
}

.u-page-hero .u-hero-note {
  color: #ffffff;
  opacity: 0.85;
  font-size: 0.9375rem;
  margin: 14px 0 0;
}

.u-page-body {
  padding: 60px 0 80px;
}

.u-page-body .u-sheet {
  max-width: 1000px;
}

.u-page-intro {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #4a4a4a;
  border-left: 3px solid #d8d8d8;
  padding-left: 22px;
  margin: 0 0 46px;
}

.u-en-block {
  color: #6d6d6d;
  font-size: 0.9375rem;
  border-left: 2px solid #ececec;
  padding-left: 18px;
  margin: 18px 0 0;
  line-height: 1.7;
}

.u-page-figure {
  margin: 34px 0;
}

.u-page-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.u-page-figure figcaption {
  font-size: 0.875rem;
  color: #8a8a8a;
  margin-top: 10px;
  font-style: italic;
}

/* Itinerary day blocks */
.u-day {
  border-left: 3px solid #e0e0e0;
  padding: 4px 0 4px 26px;
  margin: 0 0 34px;
  position: relative;
}

.u-day:before {
  content: "";
  position: absolute;
  left: -8px;
  top: 12px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #b4b4b4;
}

.u-day h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333333;
  margin: 0 0 2px;
}

.u-day .u-day-en {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: #8a8a8a;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.u-day p {
  line-height: 1.8;
  color: #4a4a4a;
  margin: 14px 0;
}

/* Reisebuch stage row — the ~KM | Fahrtzeit | Basis line from FaberCollins'
   printed itineraries, plus its key line and the closing wish */
.u-stage {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin: 8px 0 0;
  padding: 8px 0;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
  font-size: 0.9375rem;
  color: #4a4a4a;
  line-height: 1.4;
}

.u-stage-cell {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.u-stage-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8a8a8a;
}

.u-stage-key {
  font-size: 0.8125rem;
  color: #8a8a8a;
  font-style: italic;
  margin: 0 0 26px;
}

.u-closing {
  text-align: center;
  font-family: "Caveat", "Segoe Script", cursive;
  font-size: 1.875rem;
  color: #023b10;
  margin: 12px 0 0;
}

.u-callout {
  background: #f7f7f5;
  border-radius: 8px;
  padding: 26px 30px;
  margin: 40px 0;
}

.u-callout h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #333333;
  margin: 22px 0 8px;
}

.u-callout h3:first-child {
  margin-top: 0;
}

.u-callout h3 .u-topic-en {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: #8a8a8a;
  margin-top: 2px;
}

.u-callout ul {
  line-height: 1.8;
  color: #4a4a4a;
  padding-left: 22px;
  margin: 10px 0;
}

.u-callout li {
  margin-bottom: 5px;
}

.u-page-cta {
  text-align: center;
  padding: 20px 0 0;
}

.u-page-cta p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #4a4a4a;
  margin: 0 0 22px;
}

.u-page-cta .u-email-btn {
  display: inline-block;
  background-color: #ffffff;
  color: #757575;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 44px;
  border-radius: 16px;
  text-decoration: none;
  border: none;
  box-shadow: 0 2px 16px 0 rgba(192, 192, 192, 1);
  transition: background-color 0.2s, color 0.2s;
}

.u-page-cta .u-email-btn:hover {
  background-color: #023b10;
  color: #ffffff;
}

.u-page-nav-links {
  margin: 50px 0 0;
  padding-top: 26px;
  border-top: 1px solid #e6e6e6;
  font-size: 0.9375rem;
}

.u-page-nav-links a {
  color: #478ac9;
  margin-right: 26px;
}

/* Beispielreisen dropdown (shared with index.css / 404.css) */
.u-fc-has-dropdown {
  position: relative;
}

.u-fc-dropdown {
  position: absolute;
  top: 100%;
  left: 10px;
  min-width: 190px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 1000;
}

.u-fc-has-dropdown:hover .u-fc-dropdown,
.u-fc-has-dropdown:focus-within .u-fc-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.u-fc-dropdown a {
  display: block;
  padding: 10px 22px;
  color: #4a4a4a;
  font-size: 0.9375rem;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.u-fc-dropdown a:hover {
  background-color: #eef4fa;
  color: #478ac9;
}
/* country group labels inside the dropdown (rendered from beispielreisen.json) */
.u-fc-dd-country {
  margin: 0;
  padding: 10px 22px 2px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9a9a9a;
}

.u-fc-dd-country + .u-fc-dd-country,
.u-fc-dropdown a + .u-fc-dd-country {
  border-top: 1px solid #f0f0f0;
  margin-top: 6px;
}

@media (max-width: 767px) {
  .u-page-hero {
    min-height: 280px;
  }

  .u-page-hero h1 {
    font-size: 2.25rem;
  }

  .u-page-hero .u-hero-en {
    font-size: 1.125rem;
  }

  .u-page-body {
    padding: 40px 0 56px;
  }

  .u-callout {
    padding: 20px 22px;
  }
}

/* Portrait-format figures: constrained and centered */
.u-page-figure.u-figure-portrait {
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}

/* Gorilla photo: standing beside Day 7 on desktop, inline below it on mobile */
.u-day-pair {
  margin: 0 0 34px;
}

@media (min-width: 1025px) {
  .u-day-pair {
    display: flex;
    align-items: center;
    gap: 46px;
  }

  .u-day-pair .u-day {
    flex: 1 1 auto;
    margin: 0;
  }

  .u-day-pair .u-figure-side {
    flex: 0 0 330px;
    max-width: 330px;
    margin: 0;
  }
}

/* --- Route map: follows the itinerary while scrolling (Beispielreise pages).
   Mobile: slim sticky band pinned below the site header (JS sets the exact
   offset); ≥1025px: sticky sidebar next to the days. Outline: Natural Earth
   50m, public domain, schematic. --- */

.u-pdf-row {
  margin: -20px 0 44px;
}

.u-pdf-btn {
  display: inline-block;
  color: #023b10;
  border: 2px solid #023b10;
  border-radius: 16px;
  padding: 10px 26px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.u-pdf-btn:hover {
  background-color: #023b10;
  color: #ffffff;
}

.u-trip-map {
  position: sticky;
  top: 90px; /* fallback; JS measures the real header height */
  z-index: 10; /* below the site header (z-index 20) so it can never cover it */
  background: #ffffff;
  padding: 10px 0 8px;
  border-bottom: 1px solid #e6e6e6;
  margin: 0 0 30px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.u-trip-map svg {
  display: block;
  height: 150px;
  width: auto;
  flex: 0 0 auto;
}

.u-map-chip {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #023b10;
  border-left: 3px solid #023b10;
  padding-left: 12px;
}

.u-map-note {
  display: none;
  margin: 0;
  font-size: 0.75rem;
  color: #8a8a8a;
  font-style: italic;
}

.u-map-country {
  fill: #f7f7f5;
  stroke: #b4b4b4;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.u-map-route {
  fill: none;
  stroke: #b4b4b4;
  stroke-width: 2;
  stroke-dasharray: 3 6;
  stroke-linecap: round;
}

.u-map-route-done {
  fill: none;
  stroke: #023b10;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.u-map-stop {
  fill: #ffffff;
  stroke: #b4b4b4;
  stroke-width: 2.5;
  transition: fill 0.25s, stroke 0.25s;
}

.u-map-stop.is-done {
  fill: #023b10;
  stroke: #023b10;
}

.u-map-stop.is-active {
  fill: #023b10;
  stroke: #333333;
  stroke-width: 4;
}

.u-print-contact {
  display: none;
}

@media (min-width: 1025px) {
  .u-trip-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 46px;
    align-items: start;
  }

  .u-trip-map {
    order: 2;
    display: block;
    position: sticky;
    top: 110px;
    margin: 6px 0 0;
    padding: 0;
    border-bottom: none;
    background: transparent;
    z-index: 1;
  }

  .u-trip-map svg {
    width: 100%;
    height: auto;
  }

  .u-map-chip {
    margin-top: 14px;
  }

  .u-map-note {
    display: block;
    margin-top: 6px;
  }

  .u-trip-days {
    min-width: 0;
  }

  /* Narrower column beside the map: stack the day-7 pair vertically */
  .u-trip-layout .u-day-pair {
    display: block;
  }

  .u-trip-layout .u-day-pair .u-day {
    margin: 0 0 34px;
  }

  .u-trip-layout .u-day-pair .u-figure-side {
    max-width: 430px;
    margin: 0 auto;
    flex: none;
  }
}

/* Footer small print — same look as the homepage photo-credit line
   (that rule lives in index.css, which this page does not load) */
.u-fc-photo-credits {
  font-size: 0.75rem;
  color: #9a9a9a;
  margin: 18px 0 0;
  line-height: 1.6;
}
