/*
Theme Name: AusbildungPartner Studio
Theme URI: https://ausbildungpartner.com/
Description: A lightweight bilingual editorial child theme for AusbildungPartner, preserving its existing native navigation, guides, slideshow and contact forms.
Author: AusbildungPartner
Template: ollie
Version: 1.0.2
Requires at least: 6.6
Requires PHP: 7.3
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: ausbildungpartner-studio
Tags: block-patterns, block-styles, custom-menu, full-site-editing, full-width-template, rtl-language-support, translation-ready
*/
/* AusbildungPartner — editorial refinement. No imports, scripts or external fonts. */
:root {
  --ap-brand:#a81025;
  --ap-brand-deep:#8d1326;
  --ap-ink:#192e46;
  --ap-muted:#4b5c6b;
  --ap-warm:#fff8ee;
  --ap-sage:#edf3ef;
  --ap-line:#dce4e6;
  --ap-radius:14px;
}
.ap-home,.ap-home *{box-sizing:border-box}
.ap-home{color:var(--ap-ink);background:#fff;overflow-wrap:break-word}
.ap-home[lang="ar"]{font-family:Tahoma,Arial,sans-serif!important;letter-spacing:0!important}
.ap-home[lang="de"]{font-family:system-ui,"Segoe UI",Arial,sans-serif!important}
.ap-home-section{margin-block:0!important}
.ap-home-shell{max-width:1240px!important;margin-inline:auto!important;padding:clamp(36px,5vw,72px) clamp(18px,3vw,32px)!important}
.ap-home h1,.ap-home h2,.ap-home h3{text-wrap:balance}
.ap-home h1{font-size:clamp(32px,4.2vw,60px)!important;line-height:1.18!important;font-weight:750!important}
.ap-home[lang="ar"] h1{line-height:1.38!important;letter-spacing:0!important}
.ap-home h2{font-size:clamp(26px,3vw,40px)!important;line-height:1.25!important;font-weight:700!important;letter-spacing:-.025em!important}
.ap-home[lang="ar"] h2{line-height:1.5!important;letter-spacing:0!important}
.ap-home h3{font-weight:650!important}
.ap-home a:focus-visible,.ap-home button:focus-visible,.ap-home summary:focus-visible,.ap-home input:focus-visible{outline:3px solid var(--ap-ink)!important;outline-offset:4px!important}
.ap-home a,.ap-home button,.ap-home summary{transition:background-color .15s ease,border-color .15s ease,color .15s ease}
.ap-home p{font-size:17px;line-height:1.8}
.ap-home[lang="ar"] p{line-height:1.95}

/* A quiet hero: real photography, a clear reading order, two visible decisions. */
.ap-hero{background:var(--ap-warm)!important;border-bottom:1px solid #f0e6d7}
.ap-hero>.ap-home-shell{padding-block:clamp(32px,4vw,60px)!important}
.ap-hero-grid{display:grid!important;grid-template-columns:minmax(0,.95fr) minmax(0,1.1fr);gap:clamp(28px,4vw,56px)!important;align-items:center!important}
.ap-hero-copy{min-width:0;max-width:570px}
.ap-hero-copy>p:first-child{display:inline-block;font-size:13px!important;line-height:1.7!important;letter-spacing:0!important;color:#80550c!important;background:#f7e8c4;padding:6px 11px;border-radius:5px;margin-bottom:20px!important}
.ap-hero-copy>p:nth-of-type(2){font-size:18px!important;line-height:1.8!important;max-width:51ch!important}
.ap-hero-copy>p:last-child{font-size:13px!important;line-height:1.8!important;margin-top:18px!important}
.ap-hero-actions{gap:10px!important;margin-top:25px}
.ap-hero-actions>a{min-height:48px!important;padding:11px 19px!important;border-radius:7px!important;white-space:normal}
.ap-hero-actions>a:first-child:hover{background:var(--ap-brand-deep)!important;border-color:var(--ap-brand-deep)!important}
.ap-hero-actions>a:nth-child(2):hover{background:#f4f1e9!important}
.ap-hero-visual{min-width:0;border:7px solid #fff!important;border-radius:18px!important;box-shadow:0 16px 36px -25px #192e4655!important;overflow:hidden!important}
.ap-hero .wp-block-jetpack-slideshow{margin:0!important}
.ap-hero .wp-block-jetpack-slideshow figcaption a{font-size:clamp(13px,1.2vw,16px)!important;line-height:1.7!important;padding-inline:16px!important}
.ap-hero>.ap-home-shell>p:last-child{font-size:12px!important;line-height:1.8!important;color:var(--ap-muted)!important;margin-top:14px!important}

/* Search has its own visual landmark and remains the real native search. */
.ap-home-search{background:#fff!important;border-bottom:1px solid var(--ap-line)!important}
.ap-home-search>.ap-home-shell{max-width:1000px!important;padding-block:26px!important}
.ap-home-search h2{font-size:clamp(22px,2.3vw,28px)!important}
.ap-home-search .wp-block-search__inside-wrapper{border:1px solid #becbd2!important;border-radius:8px!important;padding:5px!important;background:#fff!important}
.ap-home-search .wp-block-search__input{min-width:0!important;min-height:44px!important;border:0!important;font-size:16px!important;padding:9px 12px!important;color:var(--ap-ink)!important}
.ap-home-search .wp-block-search__button{min-height:44px!important;min-width:70px!important;border:0!important;border-radius:5px!important;background:var(--ap-brand)!important;color:#fff!important;font-size:15px!important;font-weight:650!important}

/* Compact entry choices and a simple five-stage overview. */
.ap-paths{background:#fff!important}
.ap-paths>.ap-home-shell{padding-block:36px 52px!important}
.ap-paths h2{font-size:clamp(25px,2.8vw,34px)!important}
.ap-path-card{background:#fff!important;border:1px solid var(--ap-line)!important;border-top:3px solid #d6b474!important;border-radius:var(--ap-radius)!important;padding:22px!important}
.ap-path-card:hover,.ap-step-card:hover{border-color:var(--ap-brand)!important;background:#fffaf3!important}
.ap-path-card h3{font-size:21px!important;line-height:1.5!important;margin-block:10px!important}
.ap-path-card p{font-size:16px!important;line-height:1.8!important}
.ap-roadmap{background:#fff!important}
.ap-step-card{border:1px solid var(--ap-line)!important;border-radius:10px!important;padding:18px!important;background:#fff!important}
.ap-step-card h3{font-size:18px!important;line-height:1.5!important}
.ap-step-card p{font-size:15px!important;line-height:1.8!important}

/* Wide editorial photo sections alternate without decorative animation. */
.ap-story-grid{max-width:1240px!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center!important;gap:clamp(24px,4vw,56px);padding:clamp(30px,4vw,54px) 20px!important;margin-inline:auto!important;box-sizing:border-box!important}
.ap-story-grid>div{min-width:0!important;min-height:0!important}
.ap-story-grid>div:first-child>div{max-width:560px!important;margin-inline:0!important;padding:0!important}
.ap-story-grid>div:last-child{display:block!important;width:100%!important;height:auto!important;max-width:640px!important;min-height:0!important;align-self:center;justify-self:center;overflow:hidden;border-radius:12px;line-height:0}
.ap-story-grid>div:last-child>img{display:block;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:8/5!important;object-fit:contain!important}
.ap-story--brand{background:var(--ap-brand-deep)!important;color:#fff!important}
.ap-story--brand h2,.ap-story--brand p{color:#fff!important}
.ap-story--brand p:first-child{color:#f7ddb0!important;font-size:13px!important}
.ap-story--brand a:focus-visible{outline-color:#fff!important}
.ap-story--prepare{background:var(--ap-sage)!important}
.ap-story--prepare>.ap-story-grid>div:first-child{order:2}
.ap-story--prepare>.ap-story-grid>div:last-child{order:1}
.ap-story p{max-width:52ch}
.ap-story a{border-radius:7px!important;min-height:46px!important}

/* Retain image-led career discovery and give each card a clear reading rhythm. */
.ap-professions{background:#f6f7f8!important}
.ap-profession-card{border-radius:var(--ap-radius)!important;background:#fff!important;box-shadow:none!important;border:1px solid #e3e8eb}
.ap-profession-card img{aspect-ratio:16/10!important;width:100%!important;object-fit:cover!important;border-radius:0!important}
.ap-profession-card:hover{border-color:#b9c7cc}
.ap-profession-card h3{font-size:22px!important;line-height:1.5!important}
.ap-life{background:#edf3ef!important}
.ap-housing{background:var(--ap-warm)!important}
.ap-mobility{background:#eef3f6!important}
.ap-life img,.ap-housing img,.ap-mobility img{border-radius:var(--ap-radius)!important;aspect-ratio:4/3!important;object-fit:cover!important}
.ap-life h2,.ap-housing h2,.ap-mobility h2{max-width:21ch}
.ap-life p,.ap-housing p,.ap-mobility p{max-width:60ch}

/* Useful articles, quiet FAQs and one honest optional-support offer. */
.ap-articles{background:#fff!important}
.ap-article-card{padding:24px!important;background:#fff!important;border:1px solid var(--ap-line)!important;border-top:3px solid var(--ap-brand)!important;border-radius:12px!important}
.ap-article-card h3{font-size:21px!important;line-height:1.55!important;letter-spacing:0!important}
.ap-article-card>p{font-size:13px!important;line-height:1.7!important}
.ap-article-card>a{display:inline-block!important;padding-block:10px!important;text-decoration:underline!important;text-underline-offset:4px}
.ap-faq{background:#f7f8f7!important;border-block:1px solid #e6ece8}
.ap-faq>.ap-home-shell{max-width:940px!important}
.ap-faq details{padding-block:12px!important;border-color:#d7e1df!important}
.ap-faq summary{font-size:17px!important;line-height:1.7!important;padding-block:10px!important;min-height:44px}
.ap-support{background:#fff!important}
.ap-support-panel{background:var(--ap-brand-deep)!important;border-radius:16px!important;padding:clamp(24px,4vw,48px)!important;gap:28px!important}
.ap-support-panel h2,.ap-support-panel h3{color:#fff!important}
.ap-support-panel a:focus-visible{outline-color:#fff!important}
.ap-support-panel h2{font-size:clamp(27px,3.1vw,40px)!important}

/* Shared embedded header stays compact on any compatible content-only block template. */
header.alignfull[lang]>div{max-width:1320px!important;padding-block:7px!important;min-height:52px!important}
header.alignfull[lang] .wp-block-navigation-item__content{padding-block:8px;line-height:1.6!important}
header.alignfull[lang] .wp-block-navigation__responsive-container.is-menu-open{padding:24px!important}
header.alignfull[lang] .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{font-size:17px!important;padding-block:10px!important;line-height:1.7!important}
header.alignfull[lang] .wp-block-navigation__responsive-container-close{min-width:44px;min-height:44px}

@media(max-width:900px){
  .ap-hero-grid{grid-template-columns:1fr;gap:28px!important}
  .ap-hero-copy{max-width:680px}
  .ap-hero-visual{width:100%;max-width:680px;justify-self:center}
  .ap-story-grid{grid-template-columns:1fr;gap:24px;padding:28px 18px!important}
  .ap-story-grid>div:first-child>div{max-width:none!important;padding:0!important}
  .ap-story--prepare>.ap-story-grid>div:first-child,.ap-story--prepare>.ap-story-grid>div:last-child{order:initial}
  .ap-story-grid>div:last-child>img{min-height:0!important;height:auto!important;max-height:none!important;aspect-ratio:8/5!important}
}
@media(max-width:600px){
  .ap-home-shell{padding:34px 18px!important}
  .ap-home h1{font-size:clamp(31px,8.3vw,42px)!important;line-height:1.18!important}
  .ap-home[lang="ar"] h1{line-height:1.4!important}
  .ap-home h2{font-size:clamp(25px,6.5vw,31px)!important}
  .ap-hero>.ap-home-shell{padding-block:30px!important}
  .ap-hero-copy>p:nth-of-type(2){font-size:16px!important;line-height:1.85!important}
  .ap-hero-copy>p:first-child{font-size:12px!important;margin-bottom:16px!important}
  .ap-hero-actions>a{flex:1 1 135px;min-height:46px!important;padding:10px 13px!important;font-size:15px!important}
  .ap-hero-visual{border-width:5px!important;border-radius:12px!important;box-shadow:none!important}
  .ap-paths>.ap-home-shell{padding-block:30px!important}
  .ap-path-card,.ap-article-card{padding:18px!important}
  .ap-path-card p,.ap-home-section>div p{font-size:16px}
  .ap-hero .wp-block-jetpack-slideshow figcaption a{font-size:13px!important;padding-inline:12px!important}
  .ap-home-search>.ap-home-shell{padding-block:24px!important}
  .ap-home-search .wp-block-search__inside-wrapper{flex-wrap:nowrap!important}
  .ap-home-search .wp-block-search__button{margin-inline-start:5px!important;padding-inline:12px!important;min-width:58px!important}
  .ap-life img,.ap-housing img,.ap-mobility img{border-radius:10px!important}
  .ap-support-panel{padding:24px 20px!important;gap:22px!important;border-radius:12px!important}
  header.alignfull[lang]>div{padding-inline:14px!important;gap:10px!important;min-height:48px!important}
}
@media(prefers-reduced-motion:reduce){.ap-home a,.ap-home button,.ap-home summary{transition:none!important}}

/* Content-only templates: page content already owns its header, main and footer. */
body{margin:0}
.wp-site-blocks{padding:0}
.wp-site-blocks>.wp-block-post-content{margin-top:0;margin-bottom:0;max-width:none}
[lang="ar"]{letter-spacing:0}
[lang="ar"] :where(input,textarea,button){font-family:Tahoma,Arial,sans-serif}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
