/* /partners/wunderflats/ — "U-Bahn line map": purple route from request to keys on a pale
   lilac page; booking steps are stations on a line. Base tokens in /partners/partners.css. */

:root {
  --pv-brand: #542ebc;
  --pv-brand-ink: #ffffff;
  --pv-brand-soft: rgba(84, 46, 188, 0.1);
  --pv-accent: #f5b83d;
  --pv-bg: #f6f4fc;
  --pv-surface: #ffffff;
  --pv-surface-2: #ece8f8;
  --pv-ink: #18122e;
  --pv-muted: #5b5670;
  --pv-border: #d9d2ee;
  --pv-link: #4524a0;
  --pv-radius: 16px;
  --pv-radius-sm: 10px;
  --pv-shadow: 0 14px 36px rgba(84, 46, 188, 0.1);
  --pv-nav-bg: rgba(246, 244, 252, 0.92);
  --pv-nav-ink: #18122e;
  --pv-nav-line: rgba(84, 46, 188, 0.14);
  --wf-line: #542ebc;
  --wf-line-soft: #c9bdf0;
  --wf-end: #0f9f6e;
}

/* =========================================================================
   Hero
   ========================================================================= */
.wf-hero {
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    linear-gradient(90deg, transparent 0 calc(100% - 1px), rgba(84, 46, 188, 0.06) calc(100% - 1px)) 0 0 / 56px 56px,
    linear-gradient(0deg, transparent 0 calc(100% - 1px), rgba(84, 46, 188, 0.06) calc(100% - 1px)) 0 0 / 56px 56px,
    #fff;
}
.wf-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60rem 30rem at 85% 0%, rgba(84, 46, 188, 0.1), transparent 60%);
  pointer-events: none;
}
.wf-hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.wf-hero__kicker {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem;
  padding: 0.4rem 0.9rem 0.4rem 0.6rem; border-radius: 6px;
  background: var(--pv-surface-2); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pv-muted);
}
.wf-hero__kicker img { height: 22px; width: auto; }
.wf-hero h1 {
  font-family: var(--pv-font-display);
  font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.035em;
  color: var(--pv-ink);
}
.wf-hero h1 em { font-style: normal; color: var(--pv-brand); }
.wf-hero__dek { max-width: 38rem; margin-top: 1.25rem; font-size: clamp(1.02rem, 1.4vw, 1.12rem); color: var(--pv-muted); }
.wf-hero__dek strong { color: var(--pv-ink); font-variant-numeric: tabular-nums; }
.wf-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.wf-hero__facts { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 2px solid var(--wf-line); list-style: none; }
.wf-hero__facts li { display: flex; flex-direction: column; min-width: 0; }
.wf-hero__facts strong { font-family: var(--pv-font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--pv-ink); line-height: 1.1; }
.wf-hero__facts span { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pv-muted); margin-top: 0.25rem; }

/* ---------- Line map ---------- */
.wf-line {
  margin: 0; padding: 1.5rem 1.25rem 1.1rem; border-radius: 20px;
  background: #fff; border: 1px solid var(--pv-border);
  box-shadow: 0 30px 60px rgba(84, 46, 188, 0.14);
}
.wf-line__svg { width: 100%; height: auto; display: block; font-family: var(--pv-font-body); }
.wf-line__track { fill: none; stroke: var(--wf-line-soft); stroke-width: 10; stroke-linecap: round; }
.wf-line__train {
  fill: none; stroke: var(--wf-line); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 640; stroke-dashoffset: 640;
  animation: wf-ride 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}
@keyframes wf-ride { to { stroke-dashoffset: 0; } }
.wf-line__station circle { fill: #fff; stroke: var(--wf-line); stroke-width: 5; }
.wf-line__station--end circle { stroke: var(--wf-end); }
.wf-line__name { font-size: 15px; font-weight: 800; fill: var(--pv-ink); }
.wf-line__sub { font-size: 12px; font-weight: 500; fill: var(--pv-muted); }
.wf-line__name--mid, .wf-line__sub--mid { text-anchor: middle; }
.wf-line__name--right, .wf-line__sub--right { text-anchor: end; }
.wf-line__caption {
  display: flex; align-items: center; gap: 0.6rem; margin-top: 0.75rem; padding-top: 0.75rem;
  border-top: 1px dashed var(--pv-border);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pv-muted);
}
.wf-line__badge {
  display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 4px;
  background: var(--wf-line); color: #fff; font-weight: 800; font-size: 0.85rem; letter-spacing: 0;
}

@media (max-width: 900px) {
  .wf-hero__inner { grid-template-columns: 1fr; }
  .wf-line { max-width: 26rem; margin: 0 auto; width: 100%; }
}

/* =========================================================================
   Sections
   ========================================================================= */
.wf-data { background: var(--pv-surface-2); }
.pv-stat--wide { flex: 2 1 300px; max-width: min(100%, 52rem); }
@media (max-width: 480px) { .pv-stat--wide { flex-basis: 150px; } }

/* Steps as stations on Line W: horizontal rail on desktop, vertical rail on mobile */
.wf-route .pv-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; position: relative; padding-top: 0.5rem; }
.wf-route .pv-steps::before {
  content: ''; position: absolute; left: 2.4rem; right: 2.4rem; top: 1.75rem; height: 8px; border-radius: 8px;
  background: linear-gradient(90deg, var(--wf-line) 0 78%, var(--wf-end) 100%);
}
.wf-route .pv-step { grid-template-columns: 1fr; padding: 0 1.2rem 1.2rem; background: transparent; border: 0; }
.wf-route .pv-step::before {
  grid-row: auto; width: 2.4rem; height: 2.4rem; margin-bottom: 1rem;
  background: #fff; color: var(--wf-line); border: 5px solid var(--wf-line);
  box-shadow: 0 0 0 5px var(--pv-bg); font-size: 0.8rem;
}
.wf-route .pv-step:last-child::before { border-color: var(--wf-end); color: var(--wf-end); }
.wf-route .pv-step h3 { padding-top: 0.2rem; }
@media (max-width: 900px) {
  .wf-route .pv-steps { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .wf-route .pv-steps::before { left: 1.2rem; right: auto; top: 1.2rem; bottom: 1.2rem; width: 8px; height: auto; background: linear-gradient(180deg, var(--wf-line) 0 78%, var(--wf-end) 100%); }
  .wf-route .pv-step { grid-template-columns: 3rem minmax(0, 1fr); padding: 0.4rem 0 1.4rem 0; }
  .wf-route .pv-step::before { grid-row: 1 / span 2; margin: 0; width: 2.4rem; height: 2.4rem; box-shadow: none; }
}

.wf-listings { background: #fff; }
.wf-faq { max-width: 56rem; }
.wf-guides__title { margin: 2rem 0 0.75rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pv-muted); }
.wf-sources { display: grid; gap: 1.25rem; }

/* Final band — purple platform edge */
.wf-final { position: relative; overflow: hidden; padding: clamp(3rem, 6vw, 4.5rem) 0; background: var(--pv-brand); color: #fff; text-align: center; }
.wf-final__rail { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: repeating-linear-gradient(90deg, #fff 0 28px, transparent 28px 56px); opacity: 0.35; }
.wf-final__inner { position: relative; }
.wf-final h2 { font-family: var(--pv-font-display); font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 600; letter-spacing: -0.03em; }
.wf-final p { max-width: 36rem; margin: 0.8rem auto 1.5rem; color: rgba(255, 255, 255, 0.85); }
.wf-final .pv-btn--ink { background: #18122e; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .wf-line__train { animation: none; stroke-dashoffset: 0; }
}
