/* ========== 2-Spalten-Layout: Route (links) + Varianten (rechts) ========== */
.item-with-variations {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2%;
}

/* Linker Block: Die Route, bleibt sichtbar */
.item-with-variations .product-row.headline {
  width: 49%;
  flex: 0 0 49%;
}

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

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

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

/* Mobile Ansicht untereinander */
@media (max-width: 768px) {
  .item-with-variations {
    flex-direction: column;
  }

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

/* ========== Routenkarte Styling ========== */
.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 (Sonstiges ausblenden) ========== */
p:has(a[href="?old=1"]),
#monthselform,
aside.front-page[aria-labelledby="if-you-already-ordered-a-ticket"] {
  display: none !important;
}


.item-with-variations .product-description > h4.h4 {
  font-size: 1.2em;
  font-weight: 700;
  background: #f5f5f5;
  padding: 0.75em 1em;
  border-left: 6px solid #e42221;
  margin: 0em 0 1em 0;
  color: #222;
}

.item-with-variations {
  border-bottom: 3px solid #ddd!important;
}

.product-row.headline::before, .product-row.simple::before {
  border-top: 0px solid #ddd;
}

.variations > article:first-of-type.product-row::before {
  border-top: none !important;
}

.info-row{
  display:none;
}


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






/* Variationen neu strukturieren */
.product-row.variation {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1rem;
}

.product-row.variation > .col-md-8,
.product-row.variation > .col-md-2 {
  flex: 1 1 auto;
  min-width: 0;
}

.product-row.variation > .availability-box {
  flex: 0 0 auto;
  min-width: 130px;
  text-align: right;
}

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


.variation-description > p{
  display:none!important;
}

.price > p > small {
  display:none!important;
}


/* Sprachlinks: Nur Flaggen anzeigen, Text ausblenden */
nav.locales ul li a {
  font-size: 0; /* Text unsichtbar */
  display: inline-block;
  width: 28px;
  height: 22px;
  text-align: center;
  padding: 0;
  margin-right: 6px;
  position: relative;
  opacity: 0.4; /* standardmäßig ausgegraut */
  transition: opacity 0.2s ease-in-out;
  background: none;
  border: none;
}

/* Flaggen als Unicode anzeigen */
nav.locales a[lang="de"]::before {
  content: "🇩🇪";
  font-size: 20px;
}

nav.locales a[lang="en"]::before {
  content: "🇬🇧";
  font-size: 20px;
}

nav.locales a[lang="nl"]::before {
  content: "🇳🇱";
  font-size: 20px;
}

/* Aktive Sprache: volle Farbe */
nav.locales a.active {
  opacity: 1 !important;
}

/* Optional: Hover-Effekt */
nav.locales a:hover {
  opacity: 0.7;
  cursor: pointer;
}


/* Entfernt weißen/schwarzen Border bei Hover und Klick */
nav.locales a {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Optional: Fokus bei Tastaturbedienung weiter sichtbar halten */
nav.locales a:focus-visible {
  outline: 2px dashed #aaa; /* oder eine Farbe deiner Wahl */
  outline-offset: 2px;
}

/* Basis: Keine Unterstreichung oder Rahmen */
nav.locales a,
nav.locales a:hover,
nav.locales a:active,
nav.locales a:focus {
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

article.hidden-article {
  display: none !important;
}
