/* Phone nav (Timo 2026-11-03 "nav and stuff needs obviously work", then "the same style as the navbar on desktop, with the
   cards and the highlighted things, just adjusted for mobile"). Up to 980px the bar is fixed and slim: logo, the
   "Jetzt starten" button and a burger. The burger opens the desktop dropdown's own glass frame under the bar; in it the nav
   items as the desktop pills (the open one highlighted), and under an open item that item's desktop panel itself
   (mobile-nav.js clones it, so the cards, labels, the case study video and the hero stack are the desktop ones), stacked.
   It also fixes the hero blur on phones: styles.css made .site-nav position:static there, so its ::before blur layer
   (site-motion.css, inset:0) stretched over the whole hero instead of the bar. */
.mn-burger, .mn-sheet, .mn-scrim { display: none; }

@media (max-width: 980px) {
  .site-nav { position: fixed; top: 0; left: 0; right: 0; height: 56px; min-height: 0; padding: 0 16px; z-index: 60; }
  .nav-inner { width: 100%; flex-wrap: nowrap; justify-content: flex-start; gap: .75rem; }
  .site-nav .nav-links, .site-nav .nav-dropdown { display: none; }
  .brand { margin-right: auto; }
  .brand-mark { height: 20px; }
  .site-nav .btn-nav { padding: .6em .95em; font-size: .8125rem; }

  .mn-burger { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -8px; padding: 0; border: 0;
    border-radius: .5rem; background: none; color: var(--white); cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: background-color .15s ease; }
  html.mn-open .mn-burger { background: rgba(255, 255, 255, .08); }
  .mn-burger i { position: relative; display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 1px; }
  .mn-burger i::before, .mn-burger i::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px;
    background: currentColor; border-radius: 1px; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
  .mn-burger i::before { transform: translateY(-5px); }
  .mn-burger i::after { transform: translateY(5px); }
  html.mn-open .mn-burger i { background: transparent; }
  html.mn-open .mn-burger i::before { transform: rotate(45deg); }
  html.mn-open .mn-burger i::after { transform: rotate(-45deg); }

  /* a dim behind the frame: the desktop panel floats over the page, here it needs the page quieter to read */
  .mn-scrim { display: block; position: fixed; inset: 0; z-index: 58; background: rgba(0, 0, 0, .5);
    opacity: 0; visibility: hidden; transition: opacity .15s ease-in-out, visibility 0s linear .15s; }
  html.mn-open .mn-scrim { opacity: 1; visibility: visible; transition: opacity .15s ease-in-out; }

  /* the frame: .nav-dropdown-frame's border, radius, padding, shadow and blur, grown from the top like the desktop panel */
  .mn-sheet { display: block; position: fixed; z-index: 59; top: 64px; left: 8px; right: 8px; max-height: calc(100dvh - 72px);
    overflow-y: auto; overscroll-behavior: contain; text-align: left;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transform-origin: top center; opacity: 0; visibility: hidden; transform: scale(.94); pointer-events: none;
    transition: opacity .15s ease-in-out, transform .15s ease-in-out, visibility 0s linear .15s; }
  html.mn-open .mn-sheet { opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    transition: opacity .15s ease-in-out, transform .15s ease-in-out; }
  .mn-sheet .nav-dropdown-inner { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); padding: .35rem; }

  /* the items: the desktop nav pills, a size up for a thumb; the open one stays lit as on desktop */
  .mn-row { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: .8rem .75rem;
    border: 0; border-radius: .5rem; background: none; font: inherit; font-size: .9375rem; letter-spacing: -.02em;
    color: var(--white-50); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: color .15s ease, background-color .15s ease; }
  .mn-row:active, .mn-grp.is-open > .mn-row { color: var(--white); background: rgba(255, 255, 255, .08); }
  .mn-row svg { width: 12px; height: 12px; flex: none; opacity: .6; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
  .mn-grp.is-open > .mn-row svg { transform: rotate(180deg); }
  .mn-grp + .mn-grp, .mn-grp + .mn-row, .mn-row + .mn-row { margin-top: 2px; }

  .mn-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s cubic-bezier(.2,.7,.2,1); }
  .mn-grp.is-open > .mn-panel { grid-template-rows: 1fr; }
  .mn-panel > div { overflow: hidden; min-height: 0; }

  /* the desktop panel, stacked: columns under each other, the divider lies down */
  .mn-sheet .dropdown-panel, .mn-sheet .dropdown-panel[data-panel] { position: static; inset: auto; opacity: 1; transform: none;
    pointer-events: auto; transition: none; flex-direction: column; padding: .5rem .25rem .75rem; }
  .mn-sheet .dropdown-col, .mn-sheet .dropdown-col-wide,
  .mn-sheet .dropdown-panel[data-panel] .dropdown-col:not(.dropdown-col-wide),
  .mn-sheet .dropdown-panel[data-panel] .dropdown-col-wide { flex: none; min-width: 0; width: auto; }
  .mn-sheet .dropdown-panel[data-panel] .dropdown-col:not(.dropdown-col-wide) { padding: .75rem; }
  .mn-sheet .dropdown-divider { width: auto; height: 1px; margin: .5rem .75rem; align-self: auto; }
  .mn-sheet .dropdown-grid { gap: .75rem; }
  .mn-sheet .dropdown-links-stack { gap: 0; }
  .mn-sheet .dropdown-feature-eyebrow { white-space: normal; }
  .mn-sheet .dropdown-feature-media { flex: none; height: 9.5rem; }
  .mn-sheet .hero-stack { flex: none; height: 9rem; }
  .mn-sheet .dropdown-link:active { background: rgba(255, 255, 255, .03); }
  .mn-sheet .dropdown-feature:active { background: rgba(255, 255, 255, .07); }
  .mn-sheet .dropdown-resource-card:active { background: rgba(255, 255, 255, .03); }
  .mn-sheet .dropdown-resource-grid { grid-template-rows: auto; gap: .25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mn-sheet, .mn-scrim, .mn-panel, .mn-row svg, .mn-burger i::before, .mn-burger i::after { transition: none; }
}

/* Socials cards in the phone menu: stacked, compact (Timo 2026-11-11 12:46) */
.mn-sheet .dropdown-socials { grid-template-columns: 1fr; gap: .5rem; }
.mn-sheet .dropdown-social.dropdown-feature { padding: .95rem 1rem; gap: .3rem; }
.mn-sheet .dropdown-social .ds-wordmark { height: 1.25rem; } .mn-sheet .dropdown-social .ds-wm-instagram { height: 1.7rem; }
.mn-sheet .dropdown-social .ds-wordmark + .ds-txt { margin-top: .6rem; }
.mn-sheet .dropdown-social .ds-user { margin-top: 0; }
