/* Shared small-screen layout. Keep text in its column and controls easy to tap. */
@media (max-width: 850px) {
  .hero-grid, .split, .content-grid, .contact-grid, .people-grid,
  .case-feature, .case-narrative, .customer-quote-grid, .original-testimonials {
    min-width: 0;
  }
  :is(.hero-grid, .split, .content-grid, .contact-grid, .people-grid,
      .case-feature, .case-narrative, .customer-quote-grid, .original-testimonials) > * {
    min-width: 0;
  }
  .hero-visual { margin-right: 0; }
  .paper-art.paper-stage { width: 100%; max-width: 100%; margin-right: 0; }
  .nav > .brand, .footer .brand { display: flex; align-items: center; min-height: 44px; }
  .nav nav.open { overscroll-behavior: contain; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 90px; }
  main, section[id], [id^="kunde-"] { scroll-margin-top: 0; }
  .hero-grid, .split, .content-grid, .contact-grid, .people-grid,
  .customer-quote-grid, .original-testimonials { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-top: 36px; }
  .hero h1 { font-size: clamp(2.125rem, 10vw, 2.75rem); }
  .hero-intro { line-height: 1.65; margin-top: 20px; }
  .hero-actions { gap: 10px 20px; margin-top: 22px; }
  .hero-visual { height: auto; margin: 0; padding: 8px 0 12px; }
  .paper-art.paper-stage { width: clamp(144px, 46vw, 190px); max-width: 100%; height: auto; aspect-ratio: 630 / 600; margin: 0; transform: none; }

  .section { padding-block: 44px; }
  .section-head { margin-bottom: 24px; }
  .section-head h2, .split h2, .customer-stories .section-head h2,
  .customer-experiences .section-head h2, .case-narrative h2 {
    font-size: clamp(1.75rem, 8vw, 2.125rem);
  }
  .detail-hero { padding-block: 22px 36px; }
  .detail-hero h1 { font-size: clamp(2rem, 9vw, 2.5rem); line-height: 1.2; }
  .detail-intro { font-size: 1.0625rem; line-height: 1.65; margin-top: 20px; }
  .back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 20px; }
  .text-link { min-height: 44px; font-size: 1rem; }
  .hero-actions .text-link, .contact-details .text-link { font-size: 1rem; }
  .button, .button.small, .hero-actions .button { min-height: 44px; font-size: 1rem; }
  .button { max-width: 100%; }

  .products { padding-block: 36px; }
  .products .section-head { margin-bottom: 20px; }
  .product-grid { gap: 10px; }
  .product-card { padding: 16px; gap: 4px; }
  .product-card .product-brand { min-height: 0; margin-bottom: 8px; }
  .product-brand > img:not(.product-logo-icon), .product-brand > svg { width: 250px; max-width: 100%; height: auto; }
  .product-brand .product-logo-icon { width: 48px; height: 48px; }
  .product-wordmark-buddy { font-size: 1.5rem; }
  .product-brand-speak > img:not(.product-logo-icon) { width: 100%; max-width: 270px; }
  .product-brand-closer > img:not(.product-logo-icon) { width: 100%; max-width: 300px; }
  .product-brand-calendar > img:not(.product-logo-icon) { width: 180px; }
  .product-brand-calendar > span { font-size: 1rem; }
  .product-card .product-status { margin: 0 0 6px; line-height: 1.5; }
  .product-description { line-height: 1.6; }
  .product-card .text-link { min-height: 44px; }
  .service-card { min-height: 0; padding: 22px; }
  .service-card .card-link { margin-top: 8px; }
  .content-grid article { padding: 22px; }

  .customer-logo-row { min-height: 0; padding-block: 20px; gap: 18px 16px; }
  .customer-brand { gap: 6px; }
  .customer-brand img { width: 48px; height: 48px; }
  .customer-brand figcaption { font-size: .875rem; }
  .customer-stories .section-head { margin-bottom: 16px; }
  .customer-stories .customer-intro { margin-top: 6px; }
  .customer-quote-grid, .original-testimonials { gap: 12px; }
  .customer-hub-feature { padding-bottom: 0; }
  .customer-experiences { padding-top: 36px; }
  .case-copy, .testimonial-original { padding: 16px; }
  .case-copy :is(h2,h3) { margin-bottom: 12px; }
  .case-copy > p:not(.eyebrow) { margin-bottom: 16px; }
  .testimonial-author { min-height: 0; margin-bottom: 12px; gap: 12px; }
  .testimonial-author-link { gap: 12px; align-items: center; }
  .testimonial-author h3 { font-size: 1.125rem; line-height: 1.35; }
  .testimonial-media { width: 72px; height: 56px; }
  .testimonial-media--portrait { width: 48px; height: 64px; }
  .testimonial-original blockquote { font-size: 1rem; line-height: 1.65; }
  .reference-video { padding: 16px; }
  .customer-video video { max-width: 100%; max-height: 70svh; object-fit: contain; }
  .brand-film-media video { max-width: 100%; }
  .case-related { gap: 16px; }

  .course summary { padding-block: 18px; font-size: 1.125rem; gap: 16px; }
  .course summary > :first-child { min-width: 0; }
  .course .plus { flex-shrink: 0; }
  .course > div { padding-bottom: 20px; }
  .trainer { padding: 20px; gap: 20px; margin-top: 36px; }
  .people-grid { margin-top: 32px; }
  .people-grid a { display: flex; align-items: center; min-height: 44px; margin-block: 0; }
  .prose { min-width: 0; }
  .prose :is(ul, ol) { padding-left: 24px; }
  .policy-table { line-height: 1.55; }
  .policy-table code { overflow-wrap: anywhere; }
  .blog-article > br { display: none; }
  .blog-article > a { display: inline-flex; align-items: center; min-height: 44px; }
  .article-list li { padding-block: 22px; }
  .article-list h2 a { display: block; min-height: 44px; }

  .contact { padding-block: 44px; }
  .contact-grid { gap: 20px; }
  .contact-details > a:not(.text-link) { font-size: clamp(1.125rem, 5.2vw, 1.375rem); min-height: 44px; }
  .footer { padding-block: 28px 20px; }
  .footer-top { gap: 16px; padding-bottom: 20px; }
  .footer-top > a:last-child { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
  .footer-bottom { font-size: .875rem; line-height: 1.65; }
  .footer-bottom a { min-height: 44px; }
  .footer-bottom > :is(div, nav) { margin-top: 12px; gap: 0; }
}

@media (max-width: 380px) {
  .wrap:not(.privacy-inner) { width: calc(100% - 32px); }
  .testimonial-author-link { flex-direction: row; align-items: center; gap: 12px; }
  .testimonial-author h3 { font-size: 1.125rem; }
  .customer-brand figcaption { font-size: .875rem; }
}
