/* Fahrten in Wien, Stunden- & Tagesbuchung, Messe & Events
   Eigene Bausteine: Sprungmarken im Hero, Tagesablauf (.dayline), Shuttle-Grafik (.shuttle).
   Ohne JS ist alles sichtbar; Animation startet, wenn main.js .is-revealed setzt. */

/* ---------- Sprungmarken im Hero ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.jump a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--ink-line); background: rgba(13,16,20,.45); font-size: 13.5px; font-weight: 600;
  color: var(--text-on-ink); text-decoration: none; transition: border-color .3s var(--ease), color .3s var(--ease);
}
.jump a::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.jump a:hover { border-color: var(--gold); color: var(--gold-2); }

.bf-cards { margin-top: clamp(40px, 6vw, 72px); }
.bf-note { font-size: 14px; color: var(--muted-on-ink); margin: 0; }
.section--light .bf-note, .section--light-2 .bf-note { color: var(--muted-on-paper); }
.bf-dest { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-note a { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.bf-note a:hover { color: var(--gold); }

/* Anlaesse privat / geschaeftlich */
.bf-occasions { margin-top: clamp(40px, 6vw, 72px); }
.bf-occasions .checklist { margin: 4px 0 0; padding: 0; list-style: none; }
.bf-occasions + .bf-cards { margin-top: 24px; }

/* ---------- Tagesablauf (Stundenbuchung) ---------- */
.dayline { position: relative; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--ink-line); padding: clamp(22px, 3vw, 40px); }
.dayline__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--ink-line); }
.dayline__head b { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); }
.dayline__head span { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-ink); }
.dayline__body { position: relative; }
.dayline__rail { position: absolute; left: 66px; top: 10px; bottom: 10px; width: 1px; background: var(--ink-line); }
.dayline__rail i { position: absolute; inset: 0; background: var(--gold); transform-origin: top; }
.dayline__car {
  position: absolute; left: 66px; top: 10px; z-index: 2; width: 14px; height: 24px; margin-left: -7px; border-radius: 5px;
  background: var(--text-on-ink); box-shadow: 0 0 0 4px rgba(201,168,106,.25); opacity: 0;
}
.dayline__car::after { content: ''; position: absolute; left: 3px; right: 3px; top: 5px; height: 6px; border-radius: 2px; background: var(--ink-2); }
.dayline__list { position: relative; display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.dayline__item { display: grid; grid-template-columns: 50px 32px 1fr; align-items: start; gap: 0; padding: 10px 0; }
.dayline__item time { font-family: var(--font-display); font-size: 20px; line-height: 1.2; color: var(--text-on-ink); font-variant-numeric: tabular-nums; }
.dayline__dot { justify-self: center; margin-left: 0; margin-top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink-2); border: 2px solid var(--gold); position: relative; z-index: 1; transform: translateX(0); }
.dayline__item--wait .dayline__dot { border-color: var(--muted-on-ink); border-style: dashed; }
.dayline__text { display: grid; gap: 2px; min-width: 0; }
.dayline__text b { font-size: 15.5px; font-weight: 700; }
.dayline__text span { font-size: 14px; color: var(--muted-on-ink); }
.dayline__tag { justify-self: start; margin-top: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(201,168,106,.16); color: var(--gold); }
.dayline__item--wait .dayline__tag { background: rgba(255,255,255,.06); color: var(--muted-on-ink); }
.dayline__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ink-line); font-size: 13px; color: var(--muted-on-ink); }
.dayline__legend span { display: inline-flex; align-items: center; gap: 8px; }
.dayline__legend i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--gold); }
.dayline__legend span + span i { border-color: var(--muted-on-ink); border-style: dashed; }

/* Zustand vor dem Einblenden (nur mit JS) */
.js .dayline:not(.is-revealed) .dayline__rail i { transform: scaleY(0); }
.js .dayline:not(.is-revealed) .dayline__item { opacity: 0; transform: translateX(-12px); }
.js .dayline .dayline__rail i { transition: transform 2.6s cubic-bezier(.45, 0, .2, 1) .2s; }
.js .dayline .dayline__item { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(.25s + var(--i, 0) * .34s); }
.js .dayline.is-revealed .dayline__car { animation: dayline-drive 2.6s cubic-bezier(.45, 0, .2, 1) .2s forwards; }
@keyframes dayline-drive {
  0% { opacity: 0; top: 10px; }
  8% { opacity: 1; }
  100% { opacity: 1; top: calc(100% - 34px); }
}

/* ---------- Shuttle-Grafik (Messe & Events) ---------- */
.shuttle { position: relative; border-radius: var(--radius); background: var(--ink); border: 1px solid var(--ink-line); padding: clamp(18px, 3vw, 36px); overflow: hidden; }
.shuttle svg { width: 100%; height: auto; overflow: visible; }
.shuttle__grid line { stroke: rgba(255,255,255,.045); }
.shuttle__river { fill: none; stroke: rgba(120,150,180,.16); stroke-width: 26; stroke-linecap: round; }
.shuttle__road { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 8; stroke-linecap: round; }
.shuttle__flow { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 14; opacity: .85; }
.shuttle__node { fill: var(--ink-3); stroke: rgba(255,255,255,.22); stroke-width: 1.5; }
.shuttle__pin { fill: var(--gold); }
.shuttle__pulse { fill: none; stroke: var(--gold); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: shuttle-pulse 2.8s var(--ease) infinite; }
.shuttle__label { fill: var(--text-on-ink); font: 700 25px var(--font-body); }
.shuttle__sub { fill: var(--muted-on-ink); font: 500 19px var(--font-body); }
.shuttle__river-label { fill: rgba(160,185,210,.45); font: italic 400 22px var(--font-display); letter-spacing: .04em; }
.shuttle__car { fill: var(--text-on-ink); opacity: 0; }
.shuttle__car--gold { fill: var(--gold-2); }
.shuttle__car .win { fill: var(--ink); }
@keyframes shuttle-pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
@keyframes shuttle-flow { to { stroke-dashoffset: -160; } }
@keyframes shuttle-drive { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

.js .shuttle.is-revealed .shuttle__flow { animation: shuttle-flow 6s linear infinite; }
@supports (offset-path: path('M0 0 L1 1')) {
  .shuttle__car { offset-rotate: auto; }
  .shuttle__car--a { offset-path: path('M180 300 C 250 250, 320 190, 420 180'); }
  .shuttle__car--b { offset-path: path('M420 180 C 500 170, 560 130, 640 110'); }
  .shuttle__car--c { offset-path: path('M690 360 C 560 380, 330 380, 180 300'); }
  .js .shuttle.is-revealed .shuttle__car { animation: shuttle-drive 7s cubic-bezier(.45, 0, .3, 1) infinite; }
  .js .shuttle.is-revealed .shuttle__car--b { animation-delay: 2.3s; }
  .js .shuttle.is-revealed .shuttle__car--c { animation-delay: 4.6s; animation-duration: 8s; }
}
.shuttle__caption { margin: 14px 0 0; font-size: 13px; color: var(--muted-on-ink); }

/* ---------- Mobil ---------- */
@media (max-width: 520px) {
  .dayline__item { grid-template-columns: 46px 26px 1fr; }
  .dayline__rail, .dayline__car { left: 59px; }
  .dayline__item time { font-size: 18px; }
  .page-business .route__facts { grid-template-columns: 1fr; }
}

/* ---------- Reduzierte Bewegung: Endzustand sofort, keine Endlosschleifen ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .dayline .dayline__item, .js .dayline .dayline__rail i { transition-delay: 0s !important; }
  .js .dayline:not(.is-revealed) .dayline__item { opacity: 1; transform: none; }
  .js .dayline:not(.is-revealed) .dayline__rail i { transform: none; }
  .dayline__car, .shuttle__car, .shuttle__pulse { display: none; }
  .js .shuttle.is-revealed .shuttle__flow { animation: none; }
}
