/* ════════════════════════════════════════════════════
   Hop-on-Hop-off Vergleichswidget — CSS
   Aus widget-v1.1-ORIGINAL.html ausgelagert.
   Farbschema A (Crimson + Gold + Sand + Ink):
     --hp-brand   = Crimson (Hero-BG, Submit, Best-Price-Badge)
     --hp-accent  = Gold (Trust-Bar, Best-Card-Border, alt-CTA)
     --hp-accent2 = Gold-Dunkel (Trust-Bar-Text, Hover)
     --hp-sand    = Sand-Beige (ruhige Section-Backgrounds, Type-Badges)
     --hp-cream   = Cream (Section-BG)
     --hp-ink     = Ink (Body-Text, wärmer als Schwarz)
   ════════════════════════════════════════════════════ */

:root {
  --hp-brand:   #B3271F;
  --hp-brand-d: #8E1C16;
  --hp-accent:  #F2C744;
  --hp-accent2: #8A6210;
  --hp-sand:    #F5E9D4;
  --hp-cream:   #FAF6EE;
  --hp-ink:     #1B1F2A;
}

/* ══════════════════════════════════════
   HERO + WIDGET KOMBI
   ══════════════════════════════════════ */

.hp-hero {
  position: relative;
  background: var(--hp-brand);
  overflow: hidden;
  isolation: isolate;
}
.hp-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  display: block;
}
picture:has(.hp-hero-bg-img) { display: contents; }
.hp-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(122,15,10,0.88) 0%,
      rgba(122,15,10,0.78) 28%,
      rgba(122,15,10,0.35) 50%,
      rgba(0,0,0,0.10) 70%,
      rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.20) 100%);
}
.hp-hero-copyright {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 0.7em;
  color: rgba(255,255,255,0.65);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  z-index: 1;
}
.hp-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 28px 52px;
  position: relative;
  z-index: 0;
}
.hp-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  align-items: center;
  min-height: 380px;
}
.hp-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
}
.hp-hero-text { color: #fff; }
.hp-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 5px 12px;
  border-radius: 24px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  align-self: flex-start;
}
.hp-hero-h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 14px;
  color: #fff;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.55), 0 0 2px rgba(0,0,0,0.5);
}
.hp-hero-h1-sub {
  color: var(--hp-accent);
}
.hp-hero-sub {
  font-size: clamp(0.92rem, 1.4vw, 1.02rem);
  line-height: 1.55;
  color: #fff;
  margin: 0 0 20px;
  max-width: 540px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.hp-hero-proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hp-hero-stars { color: var(--hp-accent); font-size: 1em; letter-spacing: 2px; }
.hp-hero-rating { font-size: 0.88em; font-weight: 600; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.hp-hero-count { font-size: 0.78em; color: rgba(255,255,255,0.78); text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.hp-hero-right {
  display: flex;
  align-items: center;
  padding: 0;
}
.hp-widget {
  background: #fff;
  border-radius: 12px;
  padding: 22px 20px 24px;
  width: 100%;
  box-shadow: 0 12px 36px rgba(0,0,0,0.22);
  color: #333;
}
.hp-widget-head {
  display: block;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F1EDE2;
}
.hp-widget-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 26px;
}
.hp-widget-logo {
  height: 26px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  display: block;
}

/* Formular */
.hp-widget-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.hp-widget-field { flex: 1; }
.hp-widget-label {
  display: block;
  font-size: 0.78em;
  color: #555;
  margin-bottom: 5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hp-widget-age {
  font-weight: 400;
  color: #999;
  font-size: 0.9em;
}
.hp-widget-label-mobile { display: none; }

.hp-widget-input {
  width: 100%;
  padding: 11px 10px;
  border: 1.5px solid #e8e5e0;
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: 600;
  color: #333;
  background: #fff;
  text-align: center;
  box-sizing: border-box;
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color-scheme: light;
}
.hp-widget-input:focus {
  outline: none;
  border-color: var(--hp-accent) !important;
}
input[type="date"].hp-widget-input--date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.4;
}

.hp-widget-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid #e8e5e0;
  border-radius: 8px;
  overflow: hidden;
}
.hp-widget-stepper-btn {
  width: 38px;
  height: 42px;
  border: none;
  background: #fff;
  color: var(--hp-brand);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.hp-widget-stepper-btn:hover { background: var(--hp-sand); }
.hp-widget-stepper-btn:active { background: #ECD78A; }
.hp-widget-stepper-val {
  flex: 1;
  text-align: center;
  font-size: 1em;
  font-weight: 700;
  color: #333;
  min-width: 26px;
}

.hp-widget-dur {
  display: flex;
  gap: 6px;
}
.hp-widget-dur-opt {
  flex: 1;
  padding: 10px 0;
  border: 1.5px solid #e8e5e0;
  border-radius: 8px;
  text-align: center;
  font-size: 0.88em;
  font-weight: 500;
  color: #666;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.hp-widget-dur-opt:hover { border-color: #ccc; }
.hp-widget-dur-opt--active {
  border-color: var(--hp-accent) !important;
  color: var(--hp-accent2) !important;
  background: var(--hp-cream) !important;
  font-weight: 600;
}

.hp-widget-submit {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 6px;
  background: var(--hp-brand) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s ease;
  outline: none !important;
  box-shadow: none !important;
}
.hp-widget-submit:hover {
  background: var(--hp-brand-d) !important;
  color: #fff !important;
}

.hp-widget-foot {
  text-align: center;
  margin-top: 10px;
  font-size: 0.7em;
  color: #aaa;
}
.hp-widget-foot-label { color: #aaa; }
.hp-widget-foot-sep { color: #ccc; margin: 0 2px; }

/* ══════════════════════════════════════
   TRUST BAR
   ══════════════════════════════════════ */

.hp-trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 14px 16px;
  background: var(--hp-accent);
}
.hp-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #5A3F08;
}
.hp-trust-item svg {
  width: 18px;
  height: 18px;
  color: #5A3F08;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   ERGEBNIS-BEREICH
   ══════════════════════════════════════ */

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

.hp-result-section {
  background: var(--hp-cream);
  padding: 28px 16px 32px;
}
.hp-result-inner {
  max-width: 760px;
  margin: 0 auto;
}

.hp-result-summary {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hp-result-pill {
  font-size: 0.9em;
  font-weight: 500;
  color: #555;
  background: #fff;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid #e8e5e0;
  white-space: nowrap;
}

.hp-result-toggle {
  text-align: center;
  margin-bottom: 18px;
}
.hp-result-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e8e5e0;
}
.hp-result-toggle-label:hover { border-color: var(--hp-accent); }
.hp-result-toggle-text {
  font-size: 0.88em;
  font-weight: 600;
  color: #444;
}
.hp-result-toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.hp-result-toggle-switch input { opacity: 0; width: 0; height: 0; }
.hp-result-toggle-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc;
  border-radius: 22px;
  transition: background 0.2s ease;
}
.hp-result-toggle-slider:before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.hp-result-toggle-switch input:checked + .hp-result-toggle-slider { background: var(--hp-accent); }
.hp-result-toggle-switch input:checked + .hp-result-toggle-slider:before { transform: translateX(18px); }

.hp-result-offers {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
  align-items: stretch;
}

.hp-offer-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 18px 18px;
  text-align: center;
  border: 1px solid #ECE7DC;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  color: var(--hp-ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hp-offer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.hp-offer-card--best {
  border: 2px solid var(--hp-brand);
  background: #fff;
  padding: 32px 24px 22px;
  box-shadow: 0 10px 30px rgba(179,39,31,0.15);
}
.hp-offer-card--best:hover {
  box-shadow: 0 14px 36px rgba(179,39,31,0.22);
}
.hp-offer-card--toprated {
  border: 2px solid var(--hp-accent);
  background: #fff;
  padding: 32px 20px 22px;
  box-shadow: 0 10px 30px rgba(242,199,68,0.18);
}
.hp-offer-card--toprated:hover {
  box-shadow: 0 14px 36px rgba(242,199,68,0.26);
}
.hp-offer-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72em;
  font-weight: 700;
  color: #fff;
  background: var(--hp-brand);
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(179,39,31,0.25);
}
.hp-offer-badge--toprated {
  background: var(--hp-accent);
  color: #5A3F08;
  box-shadow: 0 3px 10px rgba(242,199,68,0.35);
}

/* ── Rating-Zeile auf jeder Card ── */
.hp-offer-rating {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.82em;
  color: var(--hp-ink);
  margin: -4px 0 12px;
  font-weight: 500;
}
.hp-offer-rating-star {
  color: var(--hp-accent);
  font-size: 1.05em;
  line-height: 1;
}
.hp-offer-rating-value {
  font-weight: 700;
}
.hp-offer-rating-count {
  color: #999;
  font-weight: 400;
  font-size: 0.92em;
}
.hp-offer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
  width: 100%;
  overflow: hidden;
}
.hp-offer-buslogo { height: 28px; width: auto; max-width: 45%; object-fit: contain; }
.hp-offer-via { color: #bbb; font-size: 0.72em; flex-shrink: 0; }
.hp-offer-resellerlogo { height: 22px; width: auto; max-width: 40%; object-fit: contain; }
/* GYG-Logo ist Quadrat — kleiner anzeigen, sonst dominiert es die Karte. */
.hp-offer-resellerlogo[alt="GetYourGuide"] { height: 22px; max-width: 28px; }

.hp-offer-price-wrap {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hp-offer-old {
  font-size: 0.8em;
  color: #bbb;
  text-decoration: line-through;
  display: block;
  margin-bottom: 4px;
  min-height: 1em;
}
.hp-offer-old:empty::before {
  content: "\00a0";
}
.hp-offer-current {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hp-offer-price {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--hp-ink);
}
.hp-offer-card--best .hp-offer-price {
  color: var(--hp-brand);
  font-size: 2em;
  letter-spacing: -0.01em;
}

/* Save-Pill: nur auf Best-Card. Klare Mikro-Botschaft. */
.hp-offer-save {
  display: inline-block;
  background: var(--hp-sand);
  color: var(--hp-accent2);
  font-size: 0.78em;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 12px;
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}
.hp-offer-discount {
  display: inline-block;
  font-size: 0.7em;
  font-weight: 700;
  color: #fff;
  background: #c62828;
  padding: 3px 7px;
  border-radius: 4px;
  margin-left: 8px;
  flex-shrink: 0;
}

.hp-offer-btn {
  display: block;
  width: 100%;
  margin-top: auto;
}
.hp-offer-btn a {
  display: block;
  padding: 12px 16px;
  border-radius: 24px;
  font-size: 0.9em;
  font-weight: 600;
  text-decoration: none !important;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hp-offer-btn--best a {
  background: var(--hp-brand) !important;
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(179,39,31,0.30);
  padding: 14px 18px;
  font-size: 0.95em;
}
.hp-offer-btn--best a:hover {
  transform: translateY(-1px);
  background: var(--hp-brand-d) !important;
  box-shadow: 0 5px 16px rgba(179,39,31,0.45);
  color: #fff !important;
}
.hp-offer-btn--alt a {
  background: transparent !important;
  color: var(--hp-ink) !important;
  border: 1px solid #E5DFD0;
  padding: 10px 14px;
  font-size: 0.85em;
  font-weight: 600;
}
.hp-offer-btn--alt a:hover {
  background: var(--hp-cream) !important;
  color: var(--hp-brand) !important;
  border-color: var(--hp-brand);
}

/* ══════════════════════════════════════
   MOBILE
   ══════════════════════════════════════ */

@media (max-width: 768px) {
  .hp-hero-inner { padding: 32px 18px 28px; }
  .hp-hero-grid { grid-template-columns: 1fr; gap: 22px; min-height: 0; align-items: stretch; }
  .hp-hero-left { order: 1; padding: 0; text-align: center; align-items: center; }
  .hp-hero-text { display: flex; flex-direction: column; align-items: center; }
  .hp-hero-badge { margin-bottom: 14px; }
  .hp-hero-h1 { font-size: 1.85rem; }
  .hp-hero-sub { font-size: 0.95rem; max-width: none; }
  .hp-hero-right { order: 2; padding: 0; }
  .hp-hero-overlay {
    background: linear-gradient(180deg,
      rgba(122,15,10,0.86) 0%,
      rgba(122,15,10,0.62) 35%,
      rgba(0,0,0,0.25) 70%,
      rgba(0,0,0,0.35) 100%);
  }
  .hp-widget { padding: 18px 16px 20px; border-radius: 10px; }
  .hp-widget-head { margin-bottom: 14px; padding-bottom: 12px; }
  .hp-widget-logos { gap: 10px; justify-content: space-between; }
  .hp-widget-logo { height: 22px; max-width: 80px; }
  .hp-widget-label-desktop { display: none !important; }
  .hp-widget-label-mobile { display: inline !important; }

  .hp-trust-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    padding: 12px 16px;
  }

  .hp-result-offers { grid-template-columns: 1fr; gap: 12px; }
  .hp-offer-card { padding: 30px 16px 16px; text-align: center; }
  .hp-offer-card--best { margin-top: 12px; }
  .hp-offer-card:not(.hp-offer-card--best) .hp-offer-badge { display: none; }
  .hp-offer-logos { gap: 6px; margin-bottom: 12px; }
  .hp-offer-buslogo { height: 26px; max-width: 45%; }
  .hp-offer-resellerlogo { height: 20px; max-width: 40%; }
  .hp-offer-resellerlogo[alt="GetYourGuide"] { height: 20px; max-width: 24px; }
  .hp-offer-price { font-size: 1.4em; }
  .hp-offer-btn a { padding: 11px 16px; font-size: 0.88em; }
}

@media (min-width: 769px) {
  .hp-widget-label-mobile { display: none !important; }
  .hp-widget-label-desktop { display: inline !important; }
}

/* ══════════════════════════════════════
   CHILDREN INFO POPOVER (am Widget-Label)
   ══════════════════════════════════════ */
.hp-widget-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  color: var(--hp-brand);
  cursor: pointer;
  vertical-align: -3px;
  position: relative;
  border-radius: 50%;
  transition: color 0.15s ease, background 0.15s ease;
}
.hp-widget-info:hover,
.hp-widget-info:focus-visible,
.hp-widget-info[aria-expanded="true"] {
  color: #fff;
  background: var(--hp-brand);
  outline: none;
}
.hp-widget-info svg { display: block; }

.hp-widget-popover {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  max-width: calc(100vw - 32px);
  background: #fff;
  color: var(--hp-ink);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 14px 16px;
  z-index: 50;
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.5;
  font-weight: 400;
  white-space: normal;
  cursor: default;
}
.hp-widget-popover::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-bottom-color: #fff;
}
.hp-widget-info[aria-expanded="true"] .hp-widget-popover,
.hp-widget-info:hover .hp-widget-popover,
.hp-widget-info:focus-within .hp-widget-popover {
  display: block;
}
.hp-widget-popover-title {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--hp-ink);
}
.hp-widget-popover-intro {
  display: block;
  color: #555;
  margin-bottom: 10px;
}
.hp-widget-popover-list {
  display: block;
  border-top: 1px solid #eee;
  margin-bottom: 8px;
}
.hp-widget-popover-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f1f1;
}
.hp-widget-popover-row:last-child { border-bottom: none; }
.hp-widget-popover-op {
  font-weight: 600;
  color: var(--hp-ink);
}
.hp-widget-popover-age {
  font-variant-numeric: tabular-nums;
  color: var(--hp-brand-d);
  font-weight: 600;
  white-space: nowrap;
}
.hp-widget-popover-foot {
  display: block;
  color: #777;
  font-size: 0.78rem;
  margin-top: 4px;
}

/* Popover am Viewport-Rand abfangen (Mobile) */
@media (max-width: 480px) {
  .hp-widget-popover {
    left: 0;
    transform: none;
    width: min(280px, calc(100vw - 40px));
  }
  .hp-widget-popover::before { left: 9px; transform: none; }
}

/* ══════════════════════════════════════
   CHILD-AGE-ZEILE auf Result-Cards
   ══════════════════════════════════════ */
.hp-offer-childage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 4px;
  font-size: 0.78rem;
  color: #666;
  line-height: 1.3;
}
.hp-offer-childage svg {
  flex-shrink: 0;
  color: #999;
}
/* Best-Card: zusätzlicher Abstand zwischen Child-Age-Zeile und Save-Pill */
.hp-offer-card--best .hp-offer-childage {
  margin-bottom: 10px;
}
