/* Phone & tablet fixes for the career pages (karriere.html, karriere-en.html).
   Section ids: EN numbers/fields/routes/jobs = DE zahlen/branchen/wege/berufe.
   Loaded after assets/responsive.css; only active below 1100px. */

/* Hero (video background) */
html.mzw-fluid .sc-host > div > section:first-of-type { padding-top: 112px !important; padding-bottom: 56px !important; }
html.mzw-fluid .zk-herovid-veil {
  background: radial-gradient(90% 70% at 50% 46%, rgba(251,250,248,.66), rgba(251,250,248,.42) 65%, rgba(251,250,248,.14)),
              linear-gradient(rgba(251,250,248,0) 70%, #fbfaf8) !important;
}
html.mzw-fluid .sc-host > div > section:first-of-type > p { color: #515154 !important; }
/* the job-name tag sits under the coloured line instead of running off to the right */
html.mzw-fluid .zk-tag { left: 50% !important; bottom: auto !important; top: 16px; transform: translateX(-50%) !important; }
/* hero + closing CTA buttons: one line each, wrap as a row */
html.mzw-fluid .sc-host > div > section:first-of-type > div[style*="gap: 16px"],
html.mzw-fluid .sc-host > div > section:last-of-type > div[style*="gap: 16px"] {
  flex-wrap: wrap; justify-content: center; gap: 10px !important; margin-top: 28px !important;
}
html.mzw-fluid .sc-host > div > section:first-of-type > div[style*="gap: 16px"] > a,
html.mzw-fluid .sc-host > div > section:last-of-type > div[style*="gap: 16px"] > a {
  white-space: nowrap; padding: 13px 20px !important; font-size: 16px !important;
}

/* Numbers */
html.mzw-fluid :is(#numbers, #zahlen) { margin-top: 0 !important; padding-top: 48px !important; padding-bottom: 40px !important; border-radius: 32px !important; }
html.mzw-fluid :is(#numbers, #zahlen) > div[style*="margin-top: 56px"] { margin-top: 28px !important; gap: 12px !important; }
html.mzw-fluid :is(#numbers, #zahlen) .gd { padding: 24px !important; }
html.mzw-fluid :is(#numbers, #zahlen) > p { margin-top: 24px !important; }

/* Fields in demand — flip cards: height follows the taller face instead of a fixed 470px */
html.mzw-fluid :is(#fields, #branchen) { padding-top: 72px !important; gap: 28px !important; }
html.mzw-fluid :is(#fields, #branchen) > div[style*="grid-template-columns"] { gap: 12px !important; }
html.mzw-fluid .kflip { height: auto !important; }
html.mzw-fluid .kflip-inner { display: grid; }
html.mzw-fluid .kface { position: relative !important; inset: auto !important; grid-area: 1 / 1; padding: 22px !important; min-height: 260px; }
html.mzw-fluid .kface.glass .khint { padding-top: 16px; }

/* Routes to Germany */
html.mzw-fluid :is(#routes, #wege) { margin-top: 72px !important; padding-top: 48px !important; padding-bottom: 40px !important; border-radius: 32px !important; }
html.mzw-fluid :is(#routes, #wege) > div:last-child { margin-top: 28px !important; gap: 12px !important; }
html.mzw-fluid :is(#routes, #wege) > div:last-child > .glass { padding: 24px !important; }

/* Job directory: search, filter chips, cards */
html.mzw-fluid :is(#jobs, #berufe) { padding-top: 72px !important; gap: 20px !important; }
html.mzw-fluid :is(#jobs, #berufe) > div:first-child { padding: 0 4px !important; gap: 16px !important; }
html.mzw-fluid :is(#jobs, #berufe) > div.glass { margin-top: 0 !important; padding: 14px !important; border-radius: 28px !important; gap: 12px !important; }
html.mzw-fluid :is(#jobs, #berufe) > div.glass > label { height: 50px !important; padding: 0 16px !important; }
html.mzw-fluid :is(#jobs, #berufe) > div.glass > label input { font-size: 16px !important; min-width: 0; } /* 16px: no iOS zoom on focus */
html.mzw-fluid :is(#jobs, #berufe) > div[style*="grid-template-columns"] { gap: 12px !important; }
html.mzw-fluid :is(#jobs, #berufe) > div[style*="grid-template-columns"] > div { padding: 22px 20px !important; gap: 12px !important; border-radius: 24px !important; }
html.mzw-fluid :is(#jobs, #berufe) > div[style*="grid-template-columns"] > div > div[style*="min-height: 53px"] { min-height: 0 !important; font-size: 20px !important; }
html.mzw-fluid :is(#jobs, #berufe) > div[style*="grid-template-columns"] span[style*="width: 112px"] { width: 96px !important; }
@media (max-width: 640px) {
  /* filter chips become one swipeable row */
  html.mzw-fluid :is(#jobs, #berufe) > div.glass > div[style*="flex-wrap: wrap"] {
    flex-wrap: nowrap !important; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 4px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding: 0 14px;
  }
  html.mzw-fluid :is(#jobs, #berufe) > div.glass > div[style*="flex-wrap: wrap"]::-webkit-scrollbar { display: none; }
  html.mzw-fluid :is(#jobs, #berufe) > div.glass > div[style*="flex-wrap: wrap"] > button { flex-shrink: 0; white-space: nowrap; }
}

/* Closing CTA */
html.mzw-fluid .sc-host > div > section:last-of-type { margin-top: 72px !important; padding-top: 56px !important; padding-bottom: 48px !important; border-radius: 32px !important; }
html.mzw-fluid .sc-host > div > section:last-of-type > .orb { top: auto !important; bottom: -200px !important; }

/* Touch screens: no sticky hover lift / dimming of sibling cards after a tap */
@media (hover: none) {
  html.mzw-fluid :is(#numbers, #zahlen) .gd:hover,
  html.mzw-fluid :is(#routes, #wege) > div:last-child > .glass:hover { transform: none !important; }
  html.mzw-fluid :is(#numbers, #zahlen) > div:hover > .gd:not(:hover),
  html.mzw-fluid :is(#routes, #wege) > div:last-child:hover > .glass:not(:hover) { opacity: 1 !important; }
}

/* Footer */
html.mzw-fluid .sc-host footer { margin-top: 56px !important; padding: 36px 20px 28px !important; }
