@media (max-width: 768px) {
  html {
    font-size: 16px;
    overflow-x: hidden;
    overflow-x: clip;
  }

  body {
    line-height: 1.58;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100%;
  }

  .page-shell {
    overflow-x: hidden;
    overflow-x: clip;
  }

  .site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 40;
    backdrop-filter: blur(14px);
  }

  .nav-wrap {
    min-height: 68px;
    padding: 0.7rem 0.8rem;
    gap: 0.6rem;
  }

  .brand {
    font-size: 1.06rem;
    line-height: 1.1;
    max-width: 58vw;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    min-height: 40px;
    padding: 0.52rem 0.8rem;
    border-radius: 999px;
    font-size: 0.93rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 20px rgba(20, 94, 201, 0.28);
  }

  .nav-links {
    position: fixed;
    top: 68px;
    bottom: auto;
    right: 0;
    left: auto;
    width: min(88vw, 380px);
    max-width: 100%;
    height: calc(100dvh - 68px);
    max-height: calc(100dvh - 68px);
    background: linear-gradient(185deg, #ffffff 0%, #e9f6ff 100%);
    border-left: 1px solid rgba(20, 94, 201, 0.2);
    border-top: 1px solid rgba(20, 94, 201, 0.14);
    margin: 0;
    padding: 1rem 0.85rem calc(1.4rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-content: flex-start;
    align-items: stretch;
    gap: 0.58rem;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 45;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateX(0);
    box-shadow: -22px 0 40px rgba(8, 28, 63, 0.25);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    border: 1px solid rgba(20, 94, 201, 0.16);
    background: #fff;
    border-radius: 12px;
    padding: 0.76rem 0.86rem;
    font-size: 0.98rem;
    line-height: 1.25;
    font-weight: 700;
  }

  body {
    padding-top: 68px;
  }

  .main-content {
    padding-top: 0;
    overflow-x: hidden;
    overflow-x: clip;
  }

  body.menu-open,
  html.menu-open {
    overflow-x: hidden;
  }

  .hero {
    min-height: 66vh;
    align-items: end;
  }

  .hero-overlay {
    background: linear-gradient(108deg, rgba(10, 43, 97, 0.88) 18%, rgba(10, 43, 97, 0.58) 58%, rgba(10, 43, 97, 0.82) 100%);
  }

  .hero-content {
    padding: 1.45rem 0.84rem 1.4rem;
  }

  .index-hero {
    align-items: end;
  }

  .index-hero-content {
    padding: 1.55rem 0.84rem 1.2rem;
  }

  .hero h1,
  .index-hero-content h1,
  .services-hero-content h1,
  .emob-hero-content h1 {
    font-size: clamp(1.85rem, 8.2vw, 2.5rem);
    line-height: 1.03;
    max-width: 15ch;
  }

  .hero p,
  .lead,
  .action-week-copy,
  .free-workshop-copy,
  .service-sales-copy {
    font-size: 1rem;
    line-height: 1.65;
    letter-spacing: 0.01em;
  }

  .services-hero-content {
    max-width: 100%;
    padding: 1.75rem 0.84rem;
  }

  .services-hero-buttons {
    justify-content: stretch;
  }

  .section {
    padding: 2rem 0.84rem;
  }

  .section h2 {
    margin-bottom: 0.72rem;
    font-size: clamp(1.4rem, 6vw, 2rem);
    line-height: 1.12;
  }

  .section h3 {
    font-size: 1.16rem;
    line-height: 1.22;
  }

  .grid.two,
  .grid.three,
  .kpis,
  .form-grid,
  .feature-strip,
  .service-detail-grid,
  .action-week-card,
  .emob-rebuild-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile variant: text first, image second in action card */
  .action-week-card .card-body {
    order: 1;
    padding: 1.02rem;
  }

  .action-week-image {
    order: 2;
    min-height: 180px;
    max-height: 220px;
    object-fit: cover;
  }

  .card {
    border-radius: 14px;
  }

  .card img {
    aspect-ratio: 16/10;
  }

  .card-body {
    padding: 0.92rem 0.94rem;
  }

  .free-workshop-left-card .card-body {
    padding: 1rem;
    gap: 0.45rem;
  }

  .emob-hero-content {
    padding: 1.4rem 0.84rem;
    min-height: 62vh;
  }

  .emob-rebuild-card {
    min-height: 450px;
  }

  .emob-rebuild-card .overlay {
    padding: 0.92rem;
  }

  .emob-rebuild-card .overlay p {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .about-top {
    padding-top: 0.38rem;
  }

  .about-sections-marquee {
    width: 100%;
    max-width: 100%;
    margin-top: 0.82rem;
    border-radius: 12px;
  }

  .about-sections-marquee .marquee-track {
    gap: 0.42rem;
    padding: 0.32rem;
  }

  .about-sections-marquee .marquee-item {
    min-width: 128px;
    width: 128px;
    flex: 0 0 128px;
    border-radius: 8px;
  }

  .marquee-cta-row {
    margin-top: 1rem;
  }

  .about-top-gap {
    height: 26px;
  }

  .werkstatt-box {
    min-height: clamp(430px, 66vh, 520px);
  }

  .werkstatt-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .werkstatt-box .overlay {
    position: absolute;
    inset: 0;
    min-height: 100%;
    max-height: 100%;
    justify-content: flex-start;
    padding: 1rem;
    overflow: hidden;
  }

  .werkstatt-box .overlay h3 {
    font-size: 1.24rem;
  }

  .werkstatt-box .overlay p {
    font-size: 0.96rem;
    line-height: 1.5;
    margin: 0 0 0.55rem;
  }

  .feedback-item {
    min-width: 88vw;
  }

  .feedback-marquee.mobile-feedback-rotator {
    overflow: hidden;
  }

  .feedback-marquee.mobile-feedback-rotator .marquee-track {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0.35rem;
    position: relative;
    transition: height 0.4s ease;
    transform: none !important;
    will-change: auto;
  }

  .feedback-marquee.mobile-feedback-rotator .feedback-item {
    min-width: 100%;
    max-width: 100%;
  }

  .feedback-marquee.mobile-feedback-rotator .mobile-feedback-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
  }

  .feedback-marquee.mobile-feedback-rotator .mobile-feedback-slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .service-gallery {
    grid-template-columns: repeat(2, minmax(128px, 1fr));
    gap: 0.45rem;
    justify-content: stretch;
  }

  .service-detail-grid {
    gap: 0.9rem;
  }

  .controls {
    flex-direction: column;
    gap: 0.62rem;
    margin: 0.8rem 0 1.25rem;
  }

  .input,
  .select,
  textarea {
    max-width: 100%;
    min-height: 46px;
    font-size: 1rem;
  }

  textarea {
    min-height: 120px;
  }

  .card-body > .btn {
    align-self: stretch;
  }

  .btn {
    width: 100%;
    min-height: 46px;
    text-align: center;
    font-size: 0.98rem;
    line-height: 1.25;
    padding: 0.8rem 1rem;
  }

  .btn-row {
    flex-direction: column;
    gap: 0.58rem;
  }

  .faq-q {
    padding: 0.95rem 1.8rem 0.95rem 0;
    font-size: 1rem;
    line-height: 1.34;
  }

  .site-footer {
    margin-top: 2rem;
  }

  .modern-footer {
    padding: 2.2rem 1rem;
    margin-top: 2.4rem;
  }

  .modern-footer .footer-wrap {
    flex-direction: column;
    gap: 1.6rem;
    padding: 0;
  }

  .modern-footer .footer-col {
    flex: 1 1 auto;
  }

  .footer-wrap {
    padding: 1rem 0.84rem;
    gap: 0.6rem;
    font-size: 0.95rem;
  }

  .hero-visual-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual-grid img:nth-child(2),
  .hero-visual-grid img:nth-child(3) {
    display: none;
  }

  .mobile-compact {
    display: none;
  }

  .desktop-only {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-wrap {
    padding: 0.62rem 0.66rem;
  }

  .brand {
    font-size: 0.98rem;
    max-width: 56vw;
  }

  .menu-toggle {
    min-width: 84px;
    min-height: 38px;
    font-size: 0.88rem;
  }

  .nav-links {
    width: 92vw;
    height: calc(100dvh - 68px);
    max-height: calc(100dvh - 68px);
    padding: 0.9rem 0.72rem 1.2rem;
  }

  .hero {
    min-height: 60vh;
  }

  .hero-content,
  .services-hero-content,
  .index-hero-content,
  .emob-hero-content {
    padding-left: 0.66rem;
    padding-right: 0.66rem;
  }

  .hero h1,
  .index-hero-content h1,
  .services-hero-content h1,
  .emob-hero-content h1 {
    font-size: clamp(1.62rem, 8.8vw, 2.14rem);
    max-width: 16ch;
  }

  .hero p,
  .lead {
    font-size: 0.97rem;
    line-height: 1.62;
  }

  .section {
    padding: 1.7rem 0.66rem;
  }

  .section h2 {
    font-size: clamp(1.24rem, 6.4vw, 1.78rem);
  }

  .card-body {
    padding: 0.84rem 0.82rem;
  }

  .about-sections-marquee .marquee-item {
    min-width: 116px;
    width: 116px;
    flex: 0 0 116px;
  }

  .marquee-cta-row {
    margin-top: 0.86rem;
  }

  .feedback-item {
    min-width: 92vw;
  }

  .service-gallery {
    grid-template-columns: repeat(2, minmax(108px, 1fr));
  }

  .btn {
    min-height: 44px;
    font-size: 0.95rem;
  }

  .footer-wrap {
    padding: 0.9rem 0.66rem;
    font-size: 0.9rem;
  }
}
