/* Phone typography and spacing. Desktop layouts keep their original rules. */
@media (max-width:767px) {
  :root{--gutter:clamp(18px,5vw,24px)}
  html{scroll-padding-top:16px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
  .wrap{min-width:0;padding-left:max(var(--gutter),env(safe-area-inset-left));padding-right:max(var(--gutter),env(safe-area-inset-right))}
  .site-header{height:72px;gap:12px}
  .site-header .brand{gap:8px}
  .site-header .brand>svg{width:27px;height:24px}
  .site-header .brand>span{font-size:20px;letter-spacing:-.6px}
  .site-header .brand small{font-size:6px;letter-spacing:1px;margin-top:6px}
  .header-language-switch a{width:44px;height:44px}

  .home-page .hero{min-height:0;grid-template-columns:minmax(0,1fr);gap:16px;padding-top:14px;padding-bottom:36px;align-items:start}
  .home-page .hero-copy{max-width:none;padding:0;min-width:0}
  html .home-page .hero h1{font-size:clamp(31px,8.7vw,38px);line-height:1.08;letter-spacing:-1.4px;margin:0 0 18px}
  .home-page .hero h1 br{display:block}
  .home-page .hero-lead{font-size:14px;line-height:1.65;max-width:none;text-wrap:pretty}
  .home-page .hero-actions{flex-wrap:wrap;gap:8px 18px;margin-top:20px}
  .home-page .hero-actions .button{font-size:12px;line-height:1.4;min-height:44px;padding:12px 16px}
  .home-page .hero-actions .text-link{font-size:12px;min-height:44px}
  html[lang=de] .home-page .hero-actions{gap:8px 18px}
  .home-page .hero-note{font-size:10px;line-height:1.5;gap:8px;margin-top:16px;align-items:flex-start}
  .home-page .hero-note .tiny-line{width:20px;margin-top:7px;flex-shrink:0}
  .home-page .product-scene{width:min(100%,430px);margin:12px auto 16px}
  .home-page .scene-stage{margin-top:0}
  .home-page .product-scene[data-active]:not([data-active=""]){margin-bottom:104px}
  .home-page .scene-tooltip[data-scene-tip]{padding:12px 14px;top:calc(100% + 12px)}
  .home-page .scene-tooltip strong{font-size:13px}
  .home-page .scene-tooltip p{font-size:12px;line-height:1.5}

  .home-page .section{padding-block:42px}
  .home-page .section-intro{margin-bottom:26px;gap:20px}
  .home-page .section h2,.home-page .workflow-section h2,.home-page .contact-copy h2{font-size:clamp(24px,6.5vw,28px);line-height:1.18;letter-spacing:-.8px;text-wrap:pretty}
  .home-page .solutions.has-scroll-reveal .section-intro h2{clip-path:none}
  .home-page .service-row summary{grid-template-columns:minmax(0,1fr) 24px;gap:7px 12px;padding-block:18px}
  .home-page .service-title,html[lang=de] .home-page .service-title{font-size:16px;line-height:1.35;letter-spacing:-.3px}
  .home-page .service-short{grid-column:1;grid-row:2;font-size:12px;line-height:1.6;max-width:none;margin:0}
  .home-page .service-plus{grid-column:2;grid-row:1/3}
  .home-page .service-body{padding:0 0 22px;font-size:13px;line-height:1.65}
  .home-page .service-tags{font-size:11px;line-height:1.6;margin-bottom:10px}
  .home-page .service-body .text-link{min-height:40px;margin-top:10px;font-size:12px}
  .home-page .service-body .service-more{display:inline-flex;margin-left:16px}

  .home-page .workflow-section{padding:36px 0 32px}
  .home-page .flow-canvas{margin-top:26px;padding-top:18px}
  .home-page .flow-demo{font-size:9px;line-height:1.5;letter-spacing:.7px}
  .home-page .is-scroll-driven .flow-steps{margin:24px 0 18px}
  .home-page .is-scroll-driven .flow-step{padding:0 0 22px 60px;min-height:74px}
  .home-page .is-scroll-driven .flow-step strong{font-size:12px;line-height:1.4;padding-top:4px;margin:0}
  .home-page .is-scroll-driven .flow-description{font-size:11px;line-height:1.5;margin-top:5px;max-width:none}
  .home-page .is-scroll-driven .flow-step:last-child{min-height:42px;padding-bottom:0}
  .home-page .flow-status{font-size:10px;line-height:1.5;margin-top:20px;min-height:16px}

  .home-page .projects .section-intro>.text-link{font-size:12px;min-height:40px;margin-top:12px}
  .home-page .project-copy{padding:20px}
  .home-page .project-copy h3{font-size:30px;letter-spacing:-1px;margin:14px 0 10px}
  .home-page .project-copy>p{font-size:13px;line-height:1.65;max-width:none}
  .home-page .project-note{font-size:10px;line-height:1.5;margin-top:12px}
  .home-page .project-open{font-size:11px;min-height:40px;margin-top:12px}
  .home-page .project-shot{width:calc(100% - 20px);margin:0 0 -4px 20px;transform:rotate(-3deg) translateY(4px)}
  .home-page .project-feature:hover .project-shot{transform:rotate(-2deg) translateY(4px)}
  .home-page .project-pair{gap:24px;margin-top:24px}
  .home-page .project-small-heading{margin-top:12px}
  .home-page .project-small h3{font-size:21px;letter-spacing:-.5px;margin-top:5px}
  .home-page .project-small>p{font-size:13px;line-height:1.6;margin-top:7px}
  .home-page .project-tag{font-size:10px;line-height:1.5}

  .home-page .process{padding-top:16px;padding-bottom:40px}
  .home-page .process-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 18px}
  .home-page .process-list>li{padding-top:18px;min-width:0}
  .home-page .process-number{font-size:10px;line-height:1.2}
  .home-page .process-list h3{font-size:15px;line-height:1.35;letter-spacing:-.25px;margin-top:18px;overflow-wrap:break-word}
  .home-page .process-list p{font-size:12px;line-height:1.65;margin-top:8px}

  .home-page .contact-section{padding-block:40px}
  .home-page .contact-layout{grid-template-columns:minmax(0,1fr);gap:24px}
  .home-page .contact-copy>p:not(.eyebrow){font-size:13px;line-height:1.65;max-width:none;margin-top:16px}
  .home-page .contact-email-label{font-size:10px;margin-top:20px}
  .home-page .contact-email{font-size:18px;line-height:1.5;overflow-wrap:anywhere}
  .home-page .contact-form{min-width:0;padding:0;max-width:none}
  .home-page .contact-form .form-pair{grid-template-columns:minmax(0,1fr);gap:0}
  .home-page .contact-form label{font-size:11px;margin-bottom:18px}
  .home-page .contact-form input,.home-page .contact-form select,.home-page .contact-form textarea{font-size:16px;min-height:44px;padding:10px 0}
  .home-page .contact-form textarea{min-height:112px}
  .home-page .contact-form .button{width:100%;min-height:48px;font-size:13px;margin-top:0}
  .home-page .form-note,.home-page .form-status{font-size:11px;line-height:1.6;max-width:none;margin-top:12px}

  .site-footer{padding-left:max(var(--gutter),env(safe-area-inset-left));padding-right:max(var(--gutter),env(safe-area-inset-right))}
  .site-footer .footer-bottom{gap:12px;padding-top:16px}
  .site-footer .footer-legal{gap:0 14px}
  .site-footer .footer-legal a,.site-footer .cookie-settings-button{min-height:40px;display:inline-flex;align-items:center;font-size:11px}
  .site-footer .footer-end{justify-content:space-between;gap:12px}
  .site-footer .social-icon{min-width:44px;min-height:44px}
  .site-footer .footer-whatsapp .whatsapp-options{width:min(250px,calc(100vw - 48px))}
  .consent-banner{padding:16px}
  .consent-copy strong{font-size:13px}
  .consent-copy p{font-size:11px;line-height:1.5}
  .consent-actions button{font-size:12px;min-height:44px}

  .subpage .breadcrumbs{font-size:11px;margin-top:18px;gap:8px}
  .subpage .page-intro{padding:22px 0 28px}
  .subpage .page-intro h1,html[lang=de] .subpage .page-intro h1{font-size:30px;line-height:1.15;letter-spacing:-1px}
  .subpage .page-intro>p{font-size:13px;line-height:1.65;margin-top:16px}
  .legal-document{font-size:14px;line-height:1.75}
  .legal-document h2{font-size:21px;line-height:1.35;margin:28px 0 12px}
  .projects-page .project h2{font-size:34px;letter-spacing:-1px;margin-bottom:18px}
  .projects-page .project-copy p{font-size:14px;line-height:1.65}
  .projects-page .portfolio-heading h2{font-size:26px}
  .projects-page .portfolio-copy h3{font-size:23px}
  .projects-page .portfolio-description{font-size:14px;line-height:1.65}
  .support-page .support-main{padding-top:24px;padding-bottom:40px}
  .support-page .support-art{width:140px}
  .support-page .support-intro{gap:18px;padding-bottom:28px}
  .support-page .support-intro h1{font-size:30px;line-height:1.15;letter-spacing:-1px;margin-bottom:16px}
  .support-page .support-intro .hero-sub{font-size:14px;line-height:1.65}
  .support-page .support-section{padding-block:28px;gap:20px}
  .support-page .support-section h2{font-size:23px;line-height:1.25}
  .support-page .support-faq summary{font-size:14px;line-height:1.5;min-height:44px}
  .support-page .support-modal{padding:12px}
  .support-page .support-panel{padding:22px 20px;max-height:calc(100dvh - 24px);border-radius:12px}
  .support-page .support-modal-header h3{font-size:23px}
  .support-page .support-close{width:40px;height:40px;top:14px;right:14px}
  .support-page .sf-field input:not([type=checkbox]),.support-page .sf-field select,.support-page .sf-field textarea{font-size:16px;min-height:44px}
}

@media (min-width:601px) and (max-width:767px) {
  .home-page .product-scene{width:min(100%,620px)}
}

@media (min-width:768px) and (max-width:1000px) {
  html .home-page .hero h1{font-size:clamp(42px,5.2vw,52px);letter-spacing:-2px}
  .home-page .hero{padding-top:28px;gap:16px}
  .home-page .product-scene{max-width:620px;margin-top:16px}
}
