:root {
  --bg: #dce3de;
  --pink: #e94b8a;
  --mint: #b8d1bf;
  --text: #000000;
  --trail: #8c8c8c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

.viewport {
  width: 100vw;
  height: calc(100vh - 48px);
  overflow: hidden;
  position: relative;
  background: var(--bg);
}

.map {
  width: 5800px;
  height: 3000px;
  position: relative;
  transform: translate(0, 0);
  transition: transform 1.5s ease-in-out;
  background:
    radial-gradient(circle at 20% 20%, rgba(233, 75, 138, 0.04), transparent 18%),
    radial-gradient(circle at 72% 52%, rgba(233, 75, 138, 0.03), transparent 22%),
    var(--bg);
}

/* PFAD */

.trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.trail path {
  fill: none;
  stroke: var(--trail);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 12 26;
  opacity: 0.95;
}

/* STATIONEN */

.station {
  position: absolute;
  width: 440px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
  z-index: 5;
}

.station.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.station.done {
  opacity: 0.55;
  visibility: visible;
}

.station.locked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.station.unlocked {
  visibility: visible;
  pointer-events: auto;
}

.station-card-wrap {
  position: relative;
  width: 100%;
}

.question-card {
  position: relative;
  z-index: 6;
  width: 100%;
  background: var(--pink);
  border-radius: 34px;
  padding: 30px 28px 28px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
}

.label {
  margin: 0 0 12px 0;
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mint);
  font-weight: 700;
}

.question-card h2 {
  margin: 0 0 24px 0;
  font-size: 38px;
  line-height: 1.02;
  color: #000000;
  font-weight: 700;
  max-width: 300px;
}

.question-card input {
  width: 100%;
  border: 4px solid var(--mint);
  background: transparent;
  color: #000000;
  border-radius: 18px;
  padding: 18px 18px;
  font-size: 22px;
  font-family: Arial, Helvetica, sans-serif;
  outline: none;
}

.question-card input::placeholder {
  color: rgba(0, 0, 0, 0.42);
}

.question-card input:focus {
  border-color: #d6f0dd;
}

.station-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  background: var(--pink);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 16px 28px;
  min-width: 150px;
  font-size: 20px;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.station-button:hover {
  opacity: 0.92;
}

/* STATION 4 */

.final-station {
  width: 480px;
}

.final-box {
  padding-top: 24px;
}

.final-map-stage {
  position: relative;
  width: 100%;
  margin: 0 0 22px 0;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(220, 227, 222, 0.18);
}

.final-map-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.final-text {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
  color: #000000;
}

/* JÜRGEN */

.guide {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    left 1.5s ease-in-out,
    top 1.5s ease-in-out;
  pointer-events: none;
}

.guide.visible {
  opacity: 1;
  transform: translateY(0);
}

.guide-image {
  width: 140px;
  height: auto;
  display: block;
  object-fit: contain;
}

.guide-bubble {
  position: relative;
  background: var(--pink);
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 20px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  min-width: 100px;
  text-align: center;
  pointer-events: auto;
}

.guide-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 18px;
  height: 18px;
  background: var(--pink);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 3px;
}

.guide.guide-final {
  flex-direction: column-reverse;
}

.guide.guide-final .guide-bubble::after {
  top: -8px;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.guide-bubble a {
  color: #ffffff;
  text-decoration: underline;
}

/* FOOTER */

.map-footer {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.page-imprint {
  color: var(--text);
  font-size: 1rem;
  text-decoration: underline;
}

/* TABLET */

@media (max-width: 900px) {
  .viewport {
    height: calc(100vh - 44px);
  }

  .station {
    width: 320px;
  }

  .final-station {
    width: 340px;
  }

  .question-card {
    border-radius: 26px;
    padding: 22px 20px 20px;
  }

  .label {
    font-size: 14px;
  }

.question-card h2 {
  font-size: 28px;
  line-height: 1.04;
  margin-bottom: 18px;
  max-width: 230px;
}

  .question-card input {
    font-size: 18px;
    padding: 15px 16px;
    border-width: 3px;
    border-radius: 16px;
  }

  .station-button {
    margin-top: 14px;
    font-size: 18px;
    min-width: 120px;
    padding: 12px 20px;
  }

  .final-box h2 {
    font-size: 28px;
  }

  .final-text {
    font-size: 18px;
  }

  .guide-image {
    width: 96px;
  }

  .guide-bubble {
    font-size: 18px;
    padding: 11px 14px;
    min-width: 72px;
  }

  .guide-bubble::after {
    bottom: -7px;
    width: 14px;
    height: 14px;
  }
}

/* MOBILE */

@media (max-width: 560px) {
  .trail {
    display: none;
  }

  .viewport {
    width: 100vw;
    height: calc(100vh - 42px);
    overflow: hidden;
  }

  .map {
    width: 5800px;
    height: 3000px;
    position: relative;
    transform: translate(0, 0);
    transition: transform 1.2s ease-in-out;
  }

  .station,
  .station.active,
  .station.done,
  .station.unlocked,
  .station.locked,
  .final-station {
    position: absolute;
    width: 300px;
  }

  .station.locked {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .station.unlocked,
  .station.active,
  .station.done {
    visibility: visible;
  }

  .station.active {
    opacity: 1;
    pointer-events: auto;
  }

  .question-card {
    border-radius: 24px;
    padding: 20px 18px 18px;
  }

 .question-card h2 {
  font-size: 23px;
  line-height: 1.06;
  max-width: 200px;
}

  .question-card input {
    font-size: 16px;
  }

  .station-button {
    width: 100%;
  }

  .final-box h2 {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .final-map-stage,
  .final-map-image {
    border-radius: 18px;
  }

  .final-text {
    font-size: 16px;
    line-height: 1.35;
  }

  .guide {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(10px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      left 1.2s ease-in-out,
      top 1.2s ease-in-out;
    margin: 0;
  }

  .guide-image {
    width: 82px;
  }

  .guide-bubble {
    font-size: 16px;
    padding: 10px 12px;
    min-width: 64px;
  }

  .map-footer {
    height: 42px;
  }

  .page-imprint {
    font-size: 0.95rem;
  }
}

.map-footer {
  position: fixed;
  left: 0;
  bottom: 28px;
  z-index: 80;
  width: 100%;
  padding: 0 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  background: transparent;
  backdrop-filter: none;
}

.map-footer .page-imprint,
.map-footer .footer-sep {
  font-size: 0.95rem;
}

.map-footer .page-imprint {
  color: #000000;
  font-size: 1rem;
  text-decoration: underline;
  display: inline-block;
}

.map-footer .footer-sep {
  color: #000000;
  font-size: 1rem;
  line-height: 1;
  display: inline-block;
}

@media (max-width: 560px) {
  .map-footer {
    padding: 10px 16px 14px;
    gap: 14px;
  }

  .map-footer .page-imprint,
  .map-footer .footer-sep {
    font-size: 0.95rem;
  }
}