/* ══════════════════════════════════════════════════════════
   TOUR – Ablauf Schritt für Schritt (links → rechts)
   Ohne JavaScript stehen die Schritte untereinander; mit JS
   (Klasse .tour-js) wird daraus ein Karussell.
══════════════════════════════════════════════════════════ */
.tour { margin-top: 40px; --bildh: clamp(320px, 40vw, 470px); --texth: 74px; }

/* Fortschritt / Navigation */
.tour-nav {
  display: none;
  list-style: none;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin: 0 0 20px;
  scrollbar-width: thin;
  position: relative;
}
.tour-js .tour-nav { display: flex; }
.tour-nav li { flex: 0 0 auto; display: flex; align-items: center; }
.tour-nav li.tour-trenner {
  margin-left: 10px; padding-left: 14px; border-left: 2px solid var(--border);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.tour-tab {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--border); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 6px 14px 6px 6px;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: all .15s;
}
.tour-tab:hover { border-color: var(--accent); color: var(--text); }
.tour-num {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eef2f7; color: #4b5563; font-size: 13px; font-weight: 700;
}
.tour-tab.erledigt .tour-num { background: var(--accent-light); color: var(--accent); }
.tour-tab.aktiv { border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.tour-tab.aktiv .tour-num { background: var(--accent); color: #fff; }

/* Bühne */
.tour-viewport { overflow: hidden; }
.tour-track { display: block; }
.tour-js .tour-track { display: flex; align-items: flex-start; transition: transform .35s ease; touch-action: pan-y; }
.tour-js .tour-slide { flex: 0 0 100%; min-width: 0; }
.tour-slide { margin: 0 0 56px; }
.tour-js .tour-slide { margin: 0; padding: 4px 22px 24px; }  /* Platz für den Schatten, damit er nicht in den Nachbar-Schritt ragt */
/* Text links, Bild rechts */
.tour-slide {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 40px;
  align-items: start;
}

.tour-text { text-align: left; }
.tour-kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.tour-kicker.zusatz { color: var(--text); }
.tour-text h3 { font-size: 28px; line-height: 1.25; font-weight: 800; letter-spacing: -.015em; margin-bottom: 12px; }
.tour-text p { font-size: 17px; color: var(--muted); line-height: 1.65; }
.tour-mehr { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--accent); }
.tour-mehr:hover { text-decoration: underline; }

/* Bildbereich */
.tour-bild {
  position: relative;
  height: var(--bildh);
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 20px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow);
}
.tour-bildposten { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.tour-bild img {
  width: auto; height: auto; max-width: 100%; max-height: calc(var(--bildh) - 40px - var(--texth)); min-width: 0;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
  box-shadow: var(--shadow);
}
.tour-bildlabel { display: none; }
.tour-bildtext { margin: 12px 0 0; min-height: calc(var(--texth) - 12px); font-size: 14px; line-height: 1.45; color: var(--muted); text-align: left; align-self: stretch; }

/* Mehrere Bilder in einem Schritt: einzeln durchblättern (nur mit JavaScript) */
.tour-js .tour-bild.mehrere { flex-direction: column; gap: 10px; }
.tour-js .tour-bild.mehrere .tour-bildposten { display: none; width: 100%; }
.tour-js .tour-bild.mehrere .tour-bildposten.aktiv { display: flex; }
.tour-js .tour-bild.mehrere img { max-height: calc(var(--bildh) - 40px - 44px - var(--texth)); }
.tour-bildpfeil {
  position: absolute; top: calc(50% - 22px); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); background: rgba(255,255,255,.95); color: var(--text);
  font-size: 22px; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
  transition: all .15s;
}
.tour-bildpfeil:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.tour-bildpfeil[disabled] { opacity: .3; cursor: default; }
.tour-bildpfeil.links  { left: 10px; }
.tour-bildpfeil.rechts { right: 10px; }
.tour-bildfuss { display: flex; align-items: center; justify-content: center; gap: 12px; height: 34px; }
.tour-bildlabel-sichtbar { font-size: 13px; font-weight: 600; color: var(--muted); }
.tour-punkte { display: inline-flex; gap: 6px; }
.tour-punkt { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #cbd5e1; cursor: pointer; }
.tour-punkt.aktiv { background: var(--accent); }

/* Steuerung unten */
.tour-fuss { display: none; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; }
.tour-js .tour-fuss { display: flex; }
.tour-zaehler { min-width: 64px; text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); }
.tour-fuss .btn[disabled] { opacity: .4; cursor: not-allowed; }

.tour-cta { text-align: center; margin-top: 36px; }
.tour-weitere { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.tour-weitere a { color: var(--accent); font-weight: 600; }
.tour-weitere a:hover { text-decoration: underline; }

@media (max-width: 800px) {
  .tour-slide { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tour-slide .tour-bild { order: -1; }
  .tour { --bildh: clamp(280px, 74vw, 400px); --texth: 100px; }
}
@media (max-width: 700px) {
  .tour { margin-top: 28px; }
  .tour-tab { padding-right: 6px; }
  .tour-tab .tour-name { display: none; }
  .tour-tab.aktiv { padding-right: 14px; }
  .tour-tab.aktiv .tour-name { display: inline; }
  .tour-bild { padding: 12px; gap: 10px; }
  .tour-bild img { max-height: calc(var(--bildh) - 24px - var(--texth)); }
  .tour-js .tour-bild.mehrere img { max-height: calc(var(--bildh) - 24px - 44px - var(--texth)); }
  .tour-text h3 { font-size: 22px; }
  .tour-text p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-js .tour-track { transition: none; }
}
