/* =====================================================================
   Phone refinements (≤ 720 px), loaded last. Desktop is not touched.
   Goal: one calm column with the same rhythm everywhere – 20 px side
   gutter, content at full width, no stray gaps, no floating connectors.
   ===================================================================== */
@media (max-width: 720px) {

  /* ---------- section rhythm: the same breathing room between all light sections ---------- */
  .overview { padding: 56px 20px 48px; }
  .ws { padding: 56px 20px 48px; }
  .frs { padding-top: 56px; padding-bottom: 48px; }

  /* ---------- overview ---------- */
  /* keep the line break: "In Sekunden festgehalten –" / "und alle Unterlagen immer dabei." */
  .overview__title br { display: block; }
  .overview__title .muted { display: block; }
  .overview__composition { margin-top: 36px; }
  /* the connectors explain the side-by-side layout; stacked they only float around */
  .connector { display: none !important; }
  /* both features use the full column, like every other block on the phone */
  .feature { --feature-w: 100%; width: 100%; }
  .feature--plan { margin: 0 0 32px; }
  .feature--photo { --shot-w: min(260px, 72vw); margin-top: 32px; }
  .feature--photo .feature__head { width: var(--shot-w); }
  .feature__head { margin-bottom: 16px; }
  .feature__title { font-size: 17px; }
  .feature__sub { font-size: 14px; }

  /* ---------- AI workspace ---------- */
  .ws__title { font-size: clamp(30px, 8.4vw, 36px); }
  .ws-ctrl { margin-top: 28px; }

  /* ---------- feature slideshow ---------- */
  /* slides share one grid cell: let each slide's stage follow its text directly
     instead of being pushed down by the tallest slide */
  .frs__slide { align-content: start; row-gap: 28px; }
  .frs__title { font-size: clamp(30px, 8.4vw, 36px); }
  .frs__ctrl { margin-top: 28px; }

  /* ---------- dark area ---------- */
  /* a shorter stage: the horizon sits closer to the early-access block */
  .dk__stage { height: 420px; }
  .dk__head { top: 20%; }
  .dk__arc, .dk__rim { top: 64%; }
  .dk__ea { padding-bottom: 112px; }
  /* the four points as compact rows: icon left, text right */
  .dk__cols li {
    display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 16px; row-gap: 4px;
    padding: 22px 20px 24px; min-height: 0;
  }
  .dk__cols svg { grid-row: 1 / span 2; margin: 1px 0 0; }
  .dk__cols b { margin-top: 0; font-size: 16px; }
  .dk__cols span { font-size: 14.5px; max-width: none; }

  /* ---------- footer ---------- */
  .ft__top { padding-top: 48px; padding-bottom: 40px; }
  .ft__claim { max-width: 30ch; }
}

/* ---------- phone: slide 2 a little more compact, so the shorter slides leave less empty space ---------- */
@media (max-width: 560px) {
  .frs__slide[data-slide="projektansichten"] .frs__visual { aspect-ratio: 5.6 / 8.8; }
  /* dark stage: horizon a touch higher, closer to the early-access block */
  .dk__stage { height: 400px; }
  .dk__arc, .dk__rim { top: 66%; }
}

/* ---------- phone: the larger photo shrinks a bit further, so it fits the folder like on desktop ---------- */
@media (max-width: 720px) {
  .feature.is-live.s-sink .photo-frame { transform: translateY(4px) scale(0.226); }
}

/* ---------- phone: no desktop frame lines along the screen edges ---------- */
@media (max-width: 720px) {
  .ws, .frs { border-right: 0; }
  .dk::before, .dk::after, .ft::before, .ft::after { display: none; }
}

/* ---------- phone: the email field stays one calm capsule (field left, button right) ---------- */
@media (min-width: 340px) and (max-width: 560px) {
  .dk__form { margin-top: 32px; }
  .dk__field { height: 56px; flex-direction: row; align-items: center; padding: 5px; border-radius: 999px; }
  .dk__field::before { border-radius: 999px; }
  .ea__input { height: 100%; text-align: left; padding: 0 6px 0 18px; font-size: 16px; }
  .ea__btn { height: 100%; padding: 0 18px; border-radius: 999px; font-size: 15px; }
}
/* very narrow phones (< 340 px): stacked, but with the same capsule language */
@media (max-width: 339px) {
  .dk__field { border-radius: 28px; padding: 6px; }
  .dk__field::before { border-radius: 28px; }
  .ea__input { height: 48px; }
  .ea__btn { height: 48px; border-radius: 999px; }
}

/* ---------- phone: both dot capsules (AI section and slideshow) share one size ---------- */
@media (max-width: 560px) {
  .frs__dot { padding: 0 8px; min-width: 0; }
}
