/* Phone refinement. Every rule sits in its own media query: <=700px phones, <=650px where a section's own phone layout starts,
   701-1080px touch-target aids only. Desktop (>1080px) never loads this file. */
@media (max-width: 700px) {
  /* Hero: smaller headline that keeps "KI-Automatisierung" on one line, full-width CTA, tighter bottom. */
  .framer-home .hero.ki-hero { padding: 28px 20px 36px; }
  .framer-home .ki-hero .hero-intro { gap: 20px; margin-bottom: 36px; }
  .framer-home .ki-hero .hero-intro h1 {
    font-size: clamp(26px, 8.1vw, 40px);
    line-height: 1.1;
    letter-spacing: -.04em;
    text-wrap: pretty;
  }
  .framer-home .ki-hero .hero__copy { width: 100%; }
  .framer-home .ki-hero .hero__copy .button {
    display: flex;
    width: 100%;
    margin-inline: 0;
    justify-content: center;
    min-height: 56px;
    font-size: 15px;
  }
  .framer-home .ki-hero .client-logos { margin-bottom: 0; }

  /* Workflow (phone timeline): shorter rows, calmer rhythm, the final "Freigabe" step is the highlighted outcome. */
  .framer-home .ki-workflow { padding: 56px 20px 52px; }
  .framer-home .ki-hero .mobile-hero-timeline li { min-height: 0; padding-bottom: 28px; }
  .framer-home .ki-hero .mobile-hero-timeline li:last-child { padding-bottom: 0; }
  .framer-home .ki-hero .mobile-hero-timeline li:not(:last-child)::after { bottom: 6px; }
  .framer-home .ki-hero .mobile-hero-timeline li:last-child .mobile-hero-timeline__number { background: rgba(10, 165, 31, .16); }
  .framer-home .ki-hero .mobile-hero-timeline li:last-child .mobile-hero-timeline__card {
    border-color: rgba(10, 165, 31, .6);
    box-shadow: inset 0 1px rgba(185, 236, 198, .04), 0 12px 25px rgba(0, 0, 0, .15), 0 0 24px rgba(10, 165, 31, .14);
  }

  /* Contact: direct lines become two tap rows; whole anchor is the tap target. */
  .framer-home .contact-editorial__message h2 { font-size: clamp(28px, 8vw, 34px); line-height: 1.12; }
  .framer-home .contact-editorial__action { gap: 16px; }
  .framer-home .contact-editorial__action > p.contact-editorial__direct { display: grid; gap: 0; margin: 0; }
  .framer-home .contact-editorial__direct .cd-lead { color: #7f958c; font-size: 14px; }
  .framer-home .contact-editorial__direct .cd-sep { display: none; }
  .framer-home .contact-editorial__direct .cd-item { display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
  .framer-home .contact-editorial__direct .cd-item a { display: inline-flex; align-items: center; min-height: 44px; }

  /* Process section: eyebrow gets air, decorative arcs are dropped on phones. */
  .framer-home .collaboration-editorial .collaboration-editorial__heading p.collaboration-editorial__eyebrow { margin: 0 0 18px; line-height: 1.5; }
  .framer-home .collaboration.collaboration-editorial::before,
  .framer-home .collaboration.collaboration-editorial::after { display: none; }

  /* Services pagination dots: keep the 10px dot, extend the tap area to 44px. */
  .framer-home .services-mobile-pagination button { position: relative; }
  .framer-home .services-mobile-pagination button::before { content: ""; position: absolute; inset: -17px -14px; }

  /* Legal pages: top bar and inline contact links reach 44px tap height. */
  .legal-page .legal-topbar { flex-wrap: wrap; column-gap: 12px; }
  .legal-page .legal-logo { min-height: 44px; height: 44px; }
  .legal-page .legal-logo img { height: 32px; }
  .legal-page .legal-back { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
  .legal-page .legal-content a[href^="mailto:"],
  .legal-page .legal-content a[href^="tel:"],
  .legal-page .legal-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 650px) {
  /* Process steps: narrow index column so descriptions get the full text width. */
  .framer-home .collaboration-editorial__phases li { grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; padding: 16px 0 18px; }
  .framer-home .collaboration-editorial__phases .phase-index { min-height: 34px; padding-right: 0; border-right: 0; font-size: 17px; }
  .framer-home .collaboration-editorial__phases h3 { font-size: 24px; }
  .framer-home .collaboration-editorial__phases p { padding-top: 0; }

  /* Calculator: tighter field groups; the live pill keeps the result visible while a slider is used. */
  .framer-home .manual-calculator { padding: 56px 20px 56px; }
  .framer-home .manual-calculator__head { margin-bottom: 28px; }
  .framer-home .manual-calculator__body { gap: 28px; }
  .framer-home .calc-field { padding: 18px 0 14px; }
  .framer-home .calc-range { margin-top: 8px; }
  .framer-home .calc-field__scale { margin-top: 0; }
  .framer-home .manual-calculator__result { padding-top: 28px; }
  .framer-home .manual-calculator__scenario { margin-top: 22px; padding-top: 20px; }
  .framer-home .manual-calculator__note { margin-top: 20px; }
  .framer-home .manual-calculator__cta { margin-top: 24px; }
  .framer-home .calc-live {
    position: sticky;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 14px 0 0;
    padding: 12px 16px;
    border: 1px solid rgba(26, 202, 55, .4);
    border-radius: 12px;
    background: rgba(7, 18, 14, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
    color: #a9bbb5;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
  }
  .framer-home .calc-live strong { color: #f4f8f4; font-size: 18px; font-weight: 600; }
}

@media (max-width: 360px) {
  /* Very narrow phones: retain readable type while allowing the CTA to use its canonical label. */
  .framer-home .ki-hero .hero-intro h1 { font-size: 30px; }
  .framer-home .contact-editorial__action .button,
  .framer-home .manual-calculator__cta { font-size: 14px; padding-inline: 16px; text-wrap: wrap; }
}

/* Touch tablets (701-1080px): inline contact and legal links reach a 44px hit area without changing line layout. */
@media (min-width: 701px) and (max-width: 1080px) {
  .framer-home .contact-editorial__direct a,
  .legal-page .legal-content a[href^="mailto:"],
  .legal-page .legal-content a[href^="tel:"],
  .legal-page .legal-bottom a { display: inline-block; padding-block: 12px; margin-block: -12px; }
  .legal-page .legal-logo,
  .legal-page .legal-back { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Calculator number fields: 44px touch height on every touch layout. */
@media (max-width: 1080px) {
  .framer-home .calc-field__value input { min-height: 44px; }
}
