/*
 * tour-head -- der Kopf der Tourseite im weißen Abschnitt oben. Entwurf:
 * `claude_design/tour-trail-1.html`, vom User am 26. Oktober 2026 angenommen.
 *
 * tour-head__content  Name (layout__title), Kennzahlen, Terminal, Start
 * tour-head__facts    die Kennzahlen als graue Felder, der Wert groß oben; am Handy zu
 *                     zweit, bei 300px untereinander, ab Tablet in einer Reihe
 * tour-head__note     wo die Urkunde herauskommt, mit Druckersymbol
 * tour-head__start    „Allein starten" und „Als Gruppe starten", gleich gewichtet
 * tour-head__image    das Titelbild, wenn es eins gibt; am Desktop rechts daneben
 */

.tour-head {
  display: grid;
  gap: var(--space-6);
}

.tour-head__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}

/* Feste zwei Spalten und nicht auto-fit: Bei vier Zahlen stünde sonst eine allein in
   der zweiten Reihe */
.tour-head__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
}

/* Im Dokument steht dt vor dd („Länge -- 14,5 km"), im Bild der Wert oben */
.tour-head__fact {
  display: flex;
  flex-direction: column-reverse;
  min-width: 0;
  padding: var(--space-3);
  border-radius: var(--radius-medium);
  background-color: var(--color-card);
}

.tour-head__fact-value {
  margin: 0;
  color: var(--color-primary);
  font-size: var(--font-size-title);
  font-weight: var(--font-weight-heavy);
  font-variant-numeric: tabular-nums;
  line-height: var(--line-height-tight);
}

.tour-head__fact-label {
  overflow-wrap: break-word;
}

.tour-head__note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
}

.tour-head__note svg {
  flex: none;
  inline-size: 1.25rem;
  block-size: 1.25rem;
  color: var(--color-primary);
}

.tour-head__start {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
}

.tour-head__start form {
  display: grid;
  margin: 0;
}

.tour-head__image {
  display: block;
  inline-size: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-large);
  object-fit: cover;
}

@media (max-width: 22rem) {
  .tour-head__facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 36rem) {
  .tour-head__start {
    grid-template-columns: repeat(2, max-content);
  }
}

@media (min-width: 48rem) {
  .tour-head__facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .tour-head:has(.tour-head__image) {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: center;
  }
}
