.home-mobile-intro, .home-mobile-links { display: none; }

@media (max-width: 720px) {
  .site-shell {
    --edge: clamp(16px, 5vw, 29px);
    --mobile-control-size: 44px;
    --hero-title-top: 24px;
    --page-title-size: clamp(28px, 7.7vw, 40px);
  }

  .site-shell .header-inner { min-height: 62px; padding-inline: var(--edge); }
  .site-shell .header-inner .brand img { width: clamp(164px, 48vw, 210px); }
  .site-shell .mobile-menu { width: 44px; height: 44px; background: #22282f; }
  .site-shell .navigation-open {
    display: grid;
    gap: 0;
    max-height: calc(100dvh - 62px);
    overflow-y: auto;
    padding: 5px var(--edge) 12px;
    border-left: 0;
  }
  .site-shell .navigation > a, .site-shell .nav-group > a { min-height: 44px; padding: 8px 10px; }
  .site-shell .navigation > a[aria-current], .site-shell .nav-group > a[aria-current] { background: #ffffff0d; border-radius: 7px; }
  .site-shell .navigation > a[aria-current="page"]::after, .site-shell .nav-group > a[aria-current]::after {
    inset: 9px auto 9px 0;
    width: 2px;
    height: auto;
  }
  .site-shell .nav-group { flex-wrap: wrap; justify-content: space-between; }
  .site-shell .nav-caret { width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .site-shell .dropdown { position: static; flex-basis: 100%; min-width: 0; margin: 0 0 5px; box-shadow: none; }
  .site-shell .navigation > .header-contact { justify-self: start; margin: 4px 0 0; padding: 8px 12px; }

  .site-shell main h1 { line-height: 1.06; overflow-wrap: break-word; hyphens: manual; }
  .site-shell main .button, .site-shell .tools-grid .tile .button {
    min-height: var(--mobile-control-size);
    gap: 7px;
    padding: 8px 11px;
    border-radius: 8px;
    font-size: .875rem;
  }
  .site-shell main .button svg { width: 17px; height: 17px; }
  .site-shell main .button-row { gap: 7px 10px; }

  .site-shell .home-desktop-intro, .site-shell .home-grid { display: none; }
  .site-shell .home-mobile-intro, .site-shell .home-mobile-links { display: block; }
  .home-mobile-intro { padding-top: 14px; }
  .home-mobile-photo {
    height: clamp(142px, 47vw, 248px);
    margin-bottom: 20px;
    border: 1px solid #ffffff20;
    border-radius: 13px;
    background: #22282e url("/assets/startseite.png") right 52% / auto 143% no-repeat;
  }
  .home-mobile-intro h1 { margin-bottom: 10px; letter-spacing: -.05em; }
  .home-mobile-intro p { max-width: 37ch; margin-bottom: 14px; color: var(--muted); font-size: .9375rem; line-height: 1.46; }
  .home-mobile-links { margin-block: 22px 26px; }
  .home-mobile-links ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; margin: 0; padding: 0; list-style: none; }
  .home-mobile-links a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    height: 100%;
    min-height: 46px;
    padding: 6px 0;
    border-top: 1px solid var(--line);
    font-size: .83rem;
    font-weight: 650;
    line-height: 1.2;
  }
  .home-mobile-links a:is(:hover, :focus-visible) { color: #ffafb6; }
  .home-mobile-links svg { width: 17px; height: 17px; color: #ff959e; }
  .home-mobile-links svg:last-child { width: 13px; height: 13px; color: var(--muted); }

  .site-shell .hero-sub { min-height: 0; }
  .site-shell .hero-sub .hero-inner { width: calc(100% - 2 * var(--edge)); margin-inline: auto; padding: 22px 0 28px; }
  .site-shell .hero-sub h1 { max-width: 100%; text-wrap: pretty; }
  .site-shell .hero-sub .hero-inner > p {
    max-width: 51ch;
    margin-bottom: 15px;
    font-size: .975rem;
    line-height: 1.46;
  }
  .site-shell .hero:is(.hero-services, .hero-innovation, .hero-service-detail, .hero-maintenance, .hero-contact, .hero-team) {
    padding-top: 14px;
    background-color: #11161b;
    background-size: 0 0;
  }
  .site-shell .hero:is(.hero-services, .hero-innovation, .hero-service-detail, .hero-maintenance, .hero-contact, .hero-team)::before {
    display: block;
    position: static;
    width: calc(100% - 2 * var(--edge));
    height: clamp(132px, 43vw, 225px);
    margin-inline: auto;
    border: 1px solid #ffffff20;
    border-radius: 13px;
    background: inherit;
    background-position: right 53%;
    background-size: auto 145%;
    background-repeat: no-repeat;
  }
  .site-shell .hero-services .button-row > a[href="/kontakt"] + a[href="/kontakt"] { display: none; }
  .site-shell .hero-telefonanlagen .telephony-flow { margin-block: 15px; }
  .site-shell .hero-telefonanlagen .telephony-flow-node { padding: 8px 9px; gap: 5px 7px; }
  .site-shell .hero-telefonanlagen .telephony-flow-node small { font-size: .75rem; }
  .site-shell .tool-keys { gap: 7px 12px; font-size: .82rem; }
  .site-shell .tool-keys svg { width: 17px; height: 17px; }

  .site-shell .card-grid { gap: 10px; }
  .site-shell .tile { min-height: auto; padding: 14px; }
  .site-shell .tile-with-photo { padding-top: 57px; padding-bottom: 30px; }
  .site-shell .tile .service-icon { width: 26px; height: 26px; margin-bottom: 7px; }
  .site-shell .tile h3 { font-size: 1rem; line-height: 1.15; }
  .site-shell .tile p { font-size: .875rem; line-height: 1.42; }
  .site-shell .tile .card-arrow { width: 25px; height: 25px; bottom: 8px; right: 8px; }
  .site-shell .innovation-cards .tile { padding: 14px 40px 14px 51px; }
  .site-shell .innovation-cards .tile .service-icon { top: 16px; }
  .site-shell .tools-grid .download-product { gap: 10px 12px; }
  .site-shell .tools-grid .download-copy h2 { font-size: clamp(18px, 5vw, 25px); overflow-wrap: normal; }
  .site-shell .tools-grid .download-copy p { margin-bottom: 9px; }
  .site-shell .tools-grid .download-meta { font-size: .78rem; }
  .site-shell .download-usage { margin-bottom: 8px; }
  .site-shell .download-preview { border-radius: 8px; }

  .site-shell .feature-band { padding: 17px; margin-block: 23px; gap: 11px; }
  .site-shell .feature-band h2, .site-shell .page-closing h2 { font-size: clamp(21px, 5.8vw, 29px); }
  .site-shell .feature-band p, .site-shell .page-closing p { font-size: .9rem; }
  .site-shell .page-closing-inner { gap: 9px; padding-block: 20px; }
  .site-shell .page-closing-start .button.secondary { display: none; }

  .site-shell .security-hero { background: #11171c; }
  .site-shell .security-hero-inner { min-height: 0; }
  .site-shell .security-intro { margin-top: 20px; padding-bottom: 0; }
  .site-shell .security-kicker { position: static; margin-bottom: 10px; font-size: .75rem; gap: 7px; }
  .site-shell .security-intro h1 { margin-bottom: 10px; text-wrap: pretty; }
  .site-shell .security-intro > p:not(.security-kicker) { font-size: .925rem; margin-bottom: 13px; }
  .site-shell .security-intro .button { min-width: 0; }
  .site-shell .security-globe { height: clamp(215px, 66vw, 400px); }
  .site-shell .security-tile { min-height: 0; padding: 13px 13px 32px; }
  .site-shell .security-tile h2 { font-size: 1.05rem; }
  .site-shell .security-tile p { font-size: .875rem; }

  .site-shell .customer-login { padding-block: 23px 34px; background: #171d23; }
  .site-shell .customer-login-layout { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .site-shell .customer-intro p, .site-shell .portal-picker p { font-size: .94rem; margin-bottom: 10px; }
  .site-shell .portal-picker { padding: 16px; }
  .site-shell .portal-picker h2 { font-size: 1.35rem; }
  .site-shell .portal-picker > svg { display: none; }
  .site-shell .portal-option { min-height: 48px; }
  .site-shell .footer-inner { min-height: 0; gap: 8px 16px; padding-block: 18px; font-size: .83rem; }
  .site-shell .footer-inner a { min-height: 32px; display: inline-flex; align-items: center; }
}

@media (max-width: 355px) {
  .home-mobile-links ul { gap: 0 7px; }
  .home-mobile-links a { gap: 4px; font-size: .78rem; }
  .home-mobile-links svg:last-child { display: none; }
}
