/* Phone & tablet fixes for the Ausbildung pages (ausbildung-en, ausbildung).
   Loaded after assets/responsive.css; only active below 1100px. */

/* Header: keep a little air between the brand and the language button */
html.mzw-fluid .sc-host nav.glass .zk-lang-btn { padding: 0 11px !important; gap: 6px !important; margin-left: 6px; }

/* Hero (video background) */
html.mzw-fluid .sc-host > div > section:nth-of-type(1) { padding-top: 120px !important; padding-bottom: 64px !important; }
html.mzw-fluid .sc-host > div > section:nth-of-type(1) > .orb { width: 320px !important; height: 320px !important; }
html.mzw-fluid .sc-host > div > section:nth-of-type(1) > p { max-width: 600px !important; }
html.mzw-fluid .sc-host > div > section:nth-of-type(1) > .zk-scene .zk-tag { display: none; } /* hover-only label, would sit at the screen edge */
html.mzw-fluid .sc-host > div > section:nth-of-type(1) > div[style*="display: flex"] { flex-wrap: wrap; justify-content: center; gap: 10px !important; }
html.mzw-fluid .sc-host > div > section:nth-of-type(1) > div[style*="display: flex"] > a { white-space: nowrap; }

/* General requirements */
html.mzw-fluid :is(#requirements, #voraussetzungen) { padding-top: 56px !important; padding-bottom: 56px !important; border-radius: 32px !important; }
html.mzw-fluid :is(#requirements, #voraussetzungen) > div[style*="margin-top: 56px"] { margin-top: 32px !important; gap: 12px !important; }
html.mzw-fluid :is(#requirements, #voraussetzungen) > div:last-child > div { padding: 24px !important; border-radius: 24px !important; }
/* no lift/zoom hover effect on touch screens */
html.mzw-fluid :is(#requirements, #voraussetzungen) > div:last-child > div:hover { transform: none !important; }
html.mzw-fluid :is(#requirements, #voraussetzungen) > div:last-child > div:hover > div:first-child { transform: none !important; }
html.mzw-fluid :is(#requirements, #voraussetzungen) > div:last-child:hover > div:not(:hover) { opacity: 1 !important; }
html.mzw-fluid :is(#requirements, #voraussetzungen) > .orb { width: 320px !important; height: 320px !important; bottom: -200px !important; }

/* Job directory: search + category filters */
html.mzw-fluid :is(#jobs, #berufe) { padding-top: 72px !important; gap: 20px !important; }
html.mzw-fluid :is(#jobs, #berufe) > div:first-child { padding: 0 !important; gap: 16px !important; }
html.mzw-fluid :is(#jobs, #berufe) > div.glass { padding: 14px !important; border-radius: 26px !important; gap: 12px !important; margin-top: 0 !important; }
html.mzw-fluid :is(#jobs, #berufe) > div.glass > label { height: 50px !important; padding: 0 16px !important; gap: 10px !important; }
html.mzw-fluid :is(#jobs, #berufe) > div.glass > label input { min-width: 0; font-size: 16px !important; } /* 16px stops iOS zooming in on focus */
html.mzw-fluid :is(#jobs, #berufe) > div.glass > div { gap: 6px !important; }
html.mzw-fluid :is(#jobs, #berufe) > div.glass > div > button { height: 40px !important; padding: 0 14px !important; font-size: 14px !important; white-space: nowrap; }
html.mzw-fluid :is(#jobs, #berufe) > div:nth-child(3) { padding: 0 4px !important; }

/* Job cards */
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; border-radius: 24px !important; gap: 14px !important; }
html.mzw-fluid :is(#jobs, #berufe) > div[style*="grid-template-columns"] > div > div:nth-child(2) { min-height: 0 !important; }
html.mzw-fluid :is(#jobs, #berufe) > div[style*="grid-template-columns"] > div > div:nth-child(2) > div:first-child { font-size: 20px !important; }
html.mzw-fluid :is(#jobs, #berufe) > div[style*="grid-template-columns"] > div > div:last-child > div { gap: 10px !important; }
html.mzw-fluid :is(#jobs, #berufe) > div[style*="grid-template-columns"] > div > div:last-child > div > span:first-child { width: 104px !important; }
html.mzw-fluid :is(#jobs, #berufe) > div[style*="grid-template-columns"] > div > div:last-child > div > span:last-child { min-width: 0; overflow-wrap: anywhere; }

/* Closing CTA */
html.mzw-fluid :is(#jobs, #berufe) + section { margin-top: 72px !important; padding: 56px 24px !important; border-radius: 32px !important; }
html.mzw-fluid :is(#jobs, #berufe) + section > .orb { width: 260px !important; height: 260px !important; }
html.mzw-fluid :is(#jobs, #berufe) + section > div[style*="display: flex"] { flex-wrap: wrap; justify-content: center; gap: 10px !important; }
html.mzw-fluid :is(#jobs, #berufe) + section > div[style*="display: flex"] > a { white-space: nowrap; }
html.mzw-fluid .sc-host > div > footer { margin-top: 56px !important; }
