/* ============================================================
   App-Viz — Mobile-App visualization (Option C composition)
   Center phone + 3 floating overlays (Route, Stopp-Infos, Fragebogen).
   Replaces the simple .iphone mockup in the mobile-app section.
   1140×900 artboard, scaled to container via JS (--av-s).
   ============================================================ */

.appviz {
  /* Tokens (scoped to .appviz so we don't pollute the global namespace) */
  --av-brand:    var(--accent, #4f72e3);
  --av-weak:     rgba(79,114,227,.14);
  --av-green:    #54B98A;
  --av-amber:    #E5891C;
  --av-text:     #101A2B;
  --av-text-2:   #54616F;
  --av-text-3:   #8B97A6;
  --av-surface:  #FFFFFF;
  --av-surf-2:   #F4F6F9;
  --av-surf-3:   #EAEDF2;
  --av-border:   #ECEEF2;
  --av-border-s: #D7DCE4;
  --av-map-bg:   #E4EAE2;
  --av-map-road: #FFFFFF;
  --av-map-park: #D2E3CE;
  --av-map-water:#C6DCEA;
  --av-shadow-float: 0 28px 50px -16px rgba(16,26,43,.22),
                     0 8px 16px -6px rgba(16,26,43,.12);
  --av-shadow-phone: 0 50px 90px rgba(16,26,43,.30);

  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--av-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.appviz *, .appviz *::before, .appviz *::after { box-sizing: border-box; }

/* ───── Outer responsive wrap ───── */
.appviz__wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1140 / 900;
  background: #EDF0F5;
  border-radius: 16px;
  overflow: hidden;
}

/* ───── Fixed-size 1140×900 stage, scaled by JS ───── */
.appviz__stage {
  position: absolute;
  top: 0; left: 0;
  width: 1140px;
  height: 900px;
  transform: scale(var(--av-s, 1));
  transform-origin: top left;
}

/* ───── Soft brand-tinted glow behind the phone ───── */
.appviz__glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 660px; height: 660px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(79,114,227,.08), transparent 68%);
  pointer-events: none;
}

/* ───── Phone (center) ───── */
.appviz__phone {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 3;
  filter: drop-shadow(var(--av-shadow-phone));
}
.appviz__ios {
  width: 392px;
  height: 848px;
  border-radius: 48px;
  overflow: hidden;
  position: relative;
  background: #F2F2F7;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
}
.appviz__ios-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 37px;
  border-radius: 24px;
  background: #000;
  z-index: 50;
}
.appviz__ios-screen {
  position: absolute;
  inset: 0;
}
.appviz__ios-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.appviz__ios-home {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 139px;
  height: 5px;
  border-radius: 100px;
  background: rgba(0,0,0,0.25);
  z-index: 60;
  pointer-events: none;
}

/* ───── Overlay containers + positions ───── */
.appviz__ov { position: absolute; }
.appviz__ov--route {
  left: 110px; top: 110px;
  transform: rotate(-2.5deg);
  z-index: 5;
}
.appviz__ov--info {
  right: 122px; top: 152px;
  transform: rotate(2.5deg);
  z-index: 6;
}
.appviz__ov--survey {
  left: 158px; bottom: 70px;
  transform: rotate(-2deg);
  z-index: 7;
}

/* ───── Label tab above each overlay ───── */
.appviz__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 9px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 18px -8px rgba(16,26,43,.28),
              0 0 0 1px rgba(16,26,43,.04);
  margin: 0 0 10px 6px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--av-text);
}
.appviz__ov--info .appviz__label {
  margin-left: auto;
  margin-right: 6px;
}
.appviz__label-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--av-weak);
  color: var(--av-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.appviz__label-icon svg { display: block; }

/* ───── Card (overlays) ───── */
.appviz__card {
  background: var(--av-surface);
  border: 1px solid var(--av-border);
  border-radius: 16px;
  filter: drop-shadow(var(--av-shadow-float));
  overflow: hidden;
}

/* ───── Route card ───── */
.appviz__card--route {
  width: 348px;
  height: 244px;
  position: relative;
}
.appviz__map {
  position: absolute;
  inset: 0;
  background: var(--av-map-bg);
}
.appviz__map svg {
  display: block;
  width: 100%;
  height: 100%;
}
.appviz__map-chip {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--av-border);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--av-text-2);
  box-shadow: 0 1px 2px rgba(16,26,43,.05);
  z-index: 10;
}
.appviz__pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border: 2.5px solid #fff;
  box-shadow: 0 3px 8px rgba(16,26,43,.28);
}
.appviz__pin--brand { background: var(--av-brand); }
.appviz__pin--green { background: var(--av-green); }
.appviz__pin--amber { background: var(--av-amber); }
.appviz__pin--start {
  background: #fff;
  color: var(--av-brand);
  border-color: var(--av-brand);
}

/* ───── Stop-info card ───── */
.appviz__card--info { width: 336px; }
.appviz__info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 14px;
  gap: 12px;
  border-bottom: 1px solid var(--av-border);
}
.appviz__info-headL {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.appviz__num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.appviz__num--amber { background: var(--av-amber); }
.appviz__info-title {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.appviz__skel {
  height: 7px;
  border-radius: 5px;
  background: var(--av-surf-3);
  margin-top: 7px;
}
.appviz__skel--w92  { width: 92px; }
.appviz__skel--w104 { width: 104px; }

.appviz__badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.appviz__badge--running { background: var(--av-amber); color: #fff; }

.appviz__stats {
  display: flex;
  padding: 4px 12px;
}
.appviz__stat {
  flex: 1;
  text-align: center;
  padding: 4px 0;
}
.appviz__stat-v {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.appviz__stat-k {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--av-text-3);
  margin-top: 3px;
}
.appviz__stat-div {
  width: 1px;
  background: var(--av-border);
  align-self: stretch;
  margin: 6px 0;
}

.appviz__contact { padding: 8px 16px 16px; }
.appviz__contact-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--av-text-3);
  margin-bottom: 9px;
}
.appviz__contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--av-border);
  border-radius: 16px;
}
.appviz__contact-cardL {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.appviz__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--av-surf-3);
  color: var(--av-text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}
.appviz__contact-name {
  font-size: 14.5px;
  font-weight: 700;
}
.appviz__contact-icons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.appviz__cicon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--av-weak);
  color: var(--av-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.appviz__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: var(--av-brand);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  box-shadow: 0 6px 16px -8px rgba(79,114,227,.6);
  margin-top: 14px;
}
.appviz__cta svg { color: #fff; }

/* ───── Mini-survey card ───── */
.appviz__card--survey {
  width: 300px;
  padding: 16px;
}
.appviz__survey-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--av-text-3);
}
.appviz__survey-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--av-text);
}
.appviz__q {
  padding: 14px;
  border-radius: 13px;
  background: var(--av-surf-2);
  margin-bottom: 11px;
  border: 1px solid var(--av-border);
}
.appviz__q:last-child { margin-bottom: 0; }
.appviz__q-label {
  font-size: 14.5px;
  font-weight: 800;
  margin-bottom: 11px;
}
.appviz__choices {
  display: flex;
  gap: 10px;
}
.appviz__choice {
  flex: 1;
  height: 46px;
  border-radius: 11px;
  border: 1.5px solid var(--av-border);
  background: var(--av-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--av-text);
}
.appviz__choice--sel {
  background: var(--av-weak);
  border-color: var(--av-brand);
  color: var(--av-brand);
}
.appviz__input {
  height: 42px;
  border-radius: 11px;
  background: var(--av-surface);
  border: 1.5px solid var(--av-border);
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 13.5px;
  color: var(--av-text-3);
  font-weight: 500;
}

/* ───── Icons baseline ───── */
.appviz svg { display: block; }

/* ───── Responsive: hide overlays + glow on narrow viewports ───── */
@media (max-width: 600px) {
  .appviz__wrap {
    aspect-ratio: auto;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }
  .appviz__stage {
    position: relative;
    width: 392px;
    height: 848px;
    margin: 0 auto;
    transform: none;
  }
  .appviz__ov,
  .appviz__glow { display: none; }
  .appviz__phone {
    left: 0;
    top: 0;
    transform: none;
    filter: drop-shadow(0 30px 60px rgba(16,26,43,.22));
  }
}
