/* =======================
   DESKTOP-Layout (>= 992px)
   Varianten rechts, Beschreibung/Route links
   ======================= */
@media (min-width: 992px) {
  /* 2-Spalten-Layout */
  .item-with-variations {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2%;
    border-bottom: 3px solid #ddd !important;
  }

  /* Linke Spalte: Headline/Route */
  .item-with-variations .product-row.headline {
    width: 48%;
    flex: 0 0 48%;
  }

  /* Rechte Spalte: Varianten */
  .item-with-variations .variations {
    width: 48%;
    flex: 0 0 48%;
  }

  /* In der Headline nur die erste Spalte (Beschreibung/Route) zeigen */
  .item-with-variations .product-row.headline > .col-md-8 {
    width: 100%;
  }

  /* Preis & Availability-Box in der Headline ausblenden (weil rechts gezeigt) */
  .item-with-variations .product-row.headline > .price,
  .item-with-variations .product-row.headline > .availability-box {
    display: none !important;
  }

  /* Variationen horizontal strukturieren */
  .product-row.variation {
    display: flex;
    align-items: flex-start;
    gap: 0; /* kein zusätzliches gap – Bootstrap hat schon Gutter */
  }

  /* Bootstrap-Gutter neutralisieren */
  .product-row.variation > [class^="col-"] {
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  /* Beschreibung nimmt den restlichen Platz */
  .product-row.variation > .col-md-8 {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Preis-Spalte korrekt einschränken */
  .product-row.variation > .col-md-2 {
    flex: 0 0 16.6667%;
    max-width: 16.6667%;
    min-width: 120px;
    margin-left: 0;
  }

  /* Availability-Box (Anzahl/Kaufen) rechts */
  .product-row.variation > .availability-box {
    flex: 0 0 auto;
    min-width: 130px;
    text-align: right;
    margin-left: 1rem;
  }

  /* Preistext rechtsbündig */
  .product-row.variation .price p {
    text-align: right;
    white-space: nowrap;
    margin: 0;
  }

  /* Erste Variation ohne obere Border */
  .variations > article:first-of-type.product-row::before {
    border-top: none !important;
  }
}

/* =======================
   MOBILE-Layout (< 992px)
   untereinander
   ======================= */
@media (max-width: 991.98px) {
  .item-with-variations {
    display: block;
  }

  .item-with-variations .product-row.headline,
  .item-with-variations .variations {
    width: 100%;
    flex: 0 0 100%;
  }
}

/* =======================
   Routenkarte Styling (global)
   ======================= */
.route-card {
  background: #f8f8f8;
  border: 2px solid #ddd;
  border-left: 6px solid #333;
  padding: 5px 0 0 10px;
  margin-top: 1.5em;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.route-card table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.route-card td:first-child {
  width: 60px;
  white-space: nowrap;
  vertical-align: top;
  font-weight: bold;
  padding-right: 5px;
}

.route-card td:nth-child(2) {
  width: 100%;
  vertical-align: top;
}

.route-card td:nth-child(2) em {
  font-size: 12px;
  color: #666;
  display: block;
  margin-top: 2px;
  font-style: italic;
}

.route-card tr {
  border-bottom: 1px dotted #ccc;
}

.route-card tr:last-child {
  background-color: #f0f0f0;
  border-bottom: none;
  border-top: 2px solid #333;
}

.route-card tr:last-child td {
  padding-top: 6px;
  font-weight: 500;
}

.route-card tr + tr td {
  padding-top: 3px;
  padding-bottom: 3px;
}

.route-card tr:nth-child(even) {
  background-color: #fefefe;
}

/* =======================
   Cleaning & kleinere Anpassungen
   ======================= */

/* Hinweis-Absatz mit altem Link ausblenden */
p:has(a[href="?old=1"]) {
  display: none !important;
}

/* Monats-Selform & bestimmtes Aside ausblenden */
#monthselform,
aside.front-page[aria-labelledby="if-you-already-ordered-a-ticket"] {
 /*display: none !important;*/
}

/* Abschnittstitel innerhalb der Produktbeschreibung */
.product-description > h4.h4 {
  font-size: 1.2em;
  font-weight: 700;
  background: #f5f5f5;
  padding: 0.75em 1em;
  border-left: 6px solid #e42221;
  margin: 0 0 1em 0;
  color: #222;
}

/* Linien entfernen/vereinheitlichen */
.product-row.headline::before,
.product-row.simple::before {
  border-top: 0 none;
}

/* Info-Row verstecken (falls nicht gebraucht) */
.info-row {
  display: none;
}

.shuttle-intro {
  margin-bottom: 10px;
}

/* Variation-Description-Absätze verstecken (optional) */
.variation-description > p {
  display: none !important;
}

/* Kleinteile unter Preis verstecken (optional) */
.price > p > small {
  display: none !important;
}

/* Versteckte Artikel komplett verstecken */
article.hidden-article {
  display: none !important;
}


.hm-kidtag {
  display: inline-block;
  font-size: 0.85em;          
  line-height: 1.4;
  background: #e5e7eb;        /* kräftigeres Grau */
  color: #111827;             /* dunkler Text */
  padding: 0.2em 0.6em;       /* mehr Luft innen */
  border-radius: 9999px;      /* pillenförmig */
  font-weight: 500;
  vertical-align: baseline;
  border: 1px solid #d1d5db;  /* feiner Rahmen */
}

.hm-kidtag strong {
  font-weight: 700;
}

.hm-date-tag {
  display: inline-block;
  margin-left: 0.75em;       /* Abstand zum Titel */
  font-size: 0.9em;          /* leicht kleiner */
  color: #6b7280;            /* grau */
  font-weight: 400;
}
