/* Shared public layouts. Desktop above 1199px retains its existing design. */
@media (max-width:1199px){
  body main,body main :where(section,article,aside,nav,div,ul,ol){min-width:0}
  body main :where(img,video,canvas){max-width:100%}
  body main :where(img,video){height:auto}
  body main :where(input,select,textarea,button){box-sizing:border-box;max-width:100%;font:inherit;font-size:16px!important;min-height:44px}
  body main :where(input[type=checkbox],input[type=radio]){min-height:20px;min-width:20px;vertical-align:middle}
  body main :where(textarea){width:100%;min-height:130px}
  body main :where(h1,h2,h3,p,li,td,th,a){overflow-wrap:break-word}
  body main :where(pre,.wp-block-table){max-width:100%;overflow-x:auto}
  body main table{max-width:100%}
  body main :where(a,button,summary,input,select,textarea):focus-visible{outline:3px solid #168876;outline-offset:3px}
  body .wm-shell .wm-wrap,body .ap-shell .ap-wrap,body .wg-layout-wrap,body main.wg-wrap,.wg-ch .wg-ch-wrap,.wg-rf .wg-rf-wrap{width:calc(100% - 48px)!important;max-width:1240px;box-sizing:border-box;margin-inline:auto;padding-inline:0}
  body .wm-wrap .wm-wrap,body .ap-wrap .ap-wrap,body .wg-layout-wrap .wg-layout-wrap{width:100%!important}
  body .wg-legacy-content{padding-inline:0;max-width:100%}
  .wg-ch .wg-ch-wrap{min-height:72px;gap:16px}
  .wg-ch .wg-ch-logo{font-size:34px}
  .wg-ch .wg-ch-mobile{position:static;font-size:17px}
  .wg-ch .wg-ch-mobile summary{display:flex;align-items:center;min-height:44px;padding:10px 8px;gap:8px;line-height:1.4}
  .wg-ch .wg-ch-mobile:not([open])>nav{display:none!important}
  .wg-ch .wg-ch-mobile[open]>nav{display:grid;left:0;right:0;width:auto;max-height:calc(100dvh - 90px);overflow-y:auto;padding:12px 24px 20px;overscroll-behavior:contain}
  .wg-ch .wg-ch-mobile nav a{font-size:17px;min-height:46px;padding:12px 4px;white-space:normal;box-sizing:border-box}
  .wg-ch .wg-ch-cta{font-size:16px;min-height:46px;padding:11px 16px}
  body main h1{font-size:clamp(32px,4.6vw,42px)!important;line-height:1.16!important;letter-spacing:-.025em!important}
  body main h2{font-size:clamp(26px,3.8vw,34px)!important;line-height:1.22!important;letter-spacing:-.02em!important}
  body main h3{font-size:22px!important;line-height:1.3!important}
  body main p:not([class*=eyebrow]):not([class*=label]):not([class*=category]):not([class*=note]):not([class*=small]):not([class*=meta]){font-size:17px!important;line-height:1.65!important}
  body main :where(.wm-btn,.wg-ratgeber__button,.wg-layout-button,.wg-rs-button,.wg-svc-final-button),body main a[class*=primary],body main a[class*=secondary],body main a[class*=contact-btn],body main .wm-profileway-cta a,body main .wm-startplan-cta{font-size:16px!important;line-height:1.45!important;min-height:46px;max-width:100%;padding:12px 18px!important;box-sizing:border-box;white-space:normal;text-align:center}
  body main .wm-homehero-actions a{font-size:17px!important;line-height:1.4;min-height:48px;padding:12px 16px!important}
  body main .wm-homehero-actions a span{font-size:20px}
  body .wm-shell .wm-homevalues h2{font-size:18px!important;line-height:1.35!important}
  body .ws-guide-card-body h2{font-size:22px!important;line-height:1.3!important}
  body .wm-homevalues .wm-wrap{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .wm-homevalues article:last-child:nth-child(3){grid-column:1/-1}
  body main .ws-text-link,body main .wg-ratgeber-card__link{display:inline-flex;align-items:center;min-height:44px;font-size:16px!important;line-height:1.5}
  body main .ws-table{font-size:14px}
  body main .ws-table thead th{font-size:13px}
  body .ws-plan-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:18px}
  body .ws-plan .wm-btn{font-size:16px!important}
  body .ws-plan li{font-size:16px;line-height:1.6}
  body .wg-ratgeber__layout{grid-template-columns:minmax(0,1fr);gap:28px}
  body .wg-ratgeber__sidebar{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  body .wg-ratgeber__topics{margin-top:0}
  body .wg-ratgeber__hero{margin-block:28px}
  body .wg-ratgeber__hero h1{max-width:100%;text-align:left}
  body .wg-ratgeber__lead{text-align:left}
  body .wg-ratgeber__meta{justify-content:flex-start}
  body .wg-ratgeber__main> * + *{margin-top:28px}
  body .wg-ratgeber__kurzantwort,body .wg-ratgeber__kernaussagen{padding:20px}
  .wg-rf .wg-rf-card{padding:20px}
  .wg-rf .wg-rf-card strong{font-size:23px}
  .wg-rf .wg-rf-intro .wg-rf-claim{font-size:23px}
}
@media(max-width:767px){
  body .wm-shell .wm-wrap,body .ap-shell .ap-wrap,body .wg-layout-wrap,body main.wg-wrap,.wg-ch .wg-ch-wrap,.wg-rf .wg-rf-wrap{width:calc(100% - 32px)!important}
  body .wm-wrap .wm-wrap,body .ap-wrap .ap-wrap,body .wg-layout-wrap .wg-layout-wrap{width:100%!important}
  .wg-ch .wg-ch-wrap{min-height:64px}
  .wg-ch .wg-ch-logo{font-size:32px;letter-spacing:-1px}
  body main h1{font-size:clamp(28px,7.4vw,34px)!important;line-height:1.16!important;hyphens:auto}
  body main h2{font-size:clamp(23px,6.2vw,28px)!important;line-height:1.24!important}
  body main h3{font-size:20px!important}
  body main p:not([class*=eyebrow]):not([class*=label]):not([class*=category]):not([class*=note]):not([class*=small]):not([class*=meta]){font-size:16px!important;line-height:1.65!important}
  body main :where(ul,ol){max-width:100%}
  body main :where(li){font-size:16px;line-height:1.6}
  body main .wm-regional-title{white-space:normal!important;font-size:inherit!important}
  body .wm-shell .wm-homehero h1:has(.wm-regional-title){font-size:clamp(28px,7.4vw,34px)!important}
  body .wm-shell .wm-homehero-inner{padding-top:24px!important;padding-bottom:250px!important;min-height:0}
  body .wm-homehero .wm-homehero-photo{height:240px}
  body .wm-shell .wm-homehero-lead{margin-top:20px}
  body .wm-homehero-actions{gap:10px;margin-top:22px;max-width:none}
  body .wm-homehero-actions a{width:100%}
  body .wm-homehero-shade{background:linear-gradient(180deg,#eff8f5 0%,#eff8f5 60%,#eff8f500 85%)}
  body .wm-homevalues .wm-wrap{grid-template-columns:1fr}
  body .wm-homevalues article:last-child:nth-child(3){grid-column:auto}
  body .wm-shell .wm-homevalues article{padding:16px;gap:12px;align-items:flex-start}
  body .wm-shell .wm-homevalues h2{font-size:18px!important;line-height:1.35!important}
  body .wm-homevalues-icon{width:32px;height:32px;flex:0 0 32px}
  body .wm-profileway-panel{padding:12px 0 0!important}
  body .wm-profileway-copy{grid-template-columns:32px minmax(0,1fr);gap:10px}
  body .wm-profileway-number{width:32px;height:32px;font-size:16px}
  body .wm-profileway-cta{padding:20px;gap:16px}
  body .wm-profileway-cta a{width:100%}
  body .wm-startplan-base,body .wm-startplan-upgrade,body .ws-plan,body .ws-plan-plus,body .ws-guide-card-body,body .ws-guide-single .ws-guide-card-body,body .ws-hero-aside,body .wm-contact-aside{padding:20px!important}
  body .wg-svc-scope-grid article,body .wg-svc-process-grid li,body .wg-svc-final-panel,body .wg-gt-finalcta-panel,body .wg-gt-guide-panel{padding:20px!important}
  body .wm-homefinalcta-panel{padding:24px 20px!important}
  body .wm-shell .wm-homefinalcta-primary,body .wm-shell .wm-homefinalcta-secondary{font-size:16px!important;min-height:46px}
  body main :where(.wm-actions,.wm-homefinalcta-actions,.wg-gt-finalcta-actions){gap:12px}
  body main summary{font-size:17px!important;line-height:1.5!important;min-height:48px;box-sizing:border-box}
  body .wm-homefaq summary,body .wg-gt-faq-list summary,body .ws-faq summary{padding:16px!important;gap:12px}
  body .wg-ratgeber__faq summary{padding:16px 36px 16px 0}
  body .wg-ratgeber__faq details>div{padding-right:0}
  body .wg-ratgeber__sidebar{grid-template-columns:1fr}
  body .wg-ratgeber__kurzantwort,body .wg-ratgeber__kernaussagen,body .wg-ratgeber__cta{padding:18px}
  body .wg-ratgeber__hero{margin-block:24px}
  body .wg-ratgeber__intro{font-size:16px}
  body .wg-ratgeber__content :where(ul,ol){padding-left:22px}
  body .wg-rs-main{padding:24px 16px 40px}
  body .wg-rs-hero,body .wg-rs-content{padding:20px}
  body .wm-contact{padding-block:32px}
  body .wm-contact-layout{gap:24px}
  body .ws-hero{padding-top:28px;padding-bottom:32px}
  body .ws-section{padding-block:36px}
  body .ws-guide-grid,body .ws-feature-grid,body .ws-portal-grid,body .wg-svc-scope-grid,body .wg-svc-process-grid,body .wg-svc-related nav{grid-template-columns:1fr}
  body .ws-plan-grid{grid-template-columns:1fr}
  body .ws-plan li{font-size:16px}
  .wg-rf .wg-rf-top{gap:18px;margin-bottom:24px}
  .wg-rf .wg-rf-logo{font-size:34px}
  .wg-rf .wg-rf-intro .wg-rf-claim{font-size:21px}
  .wg-rf .wg-rf-intro p{font-size:15px}
  .wg-rf .wg-rf-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .wg-rf .wg-rf-card{padding:16px 14px}
  .wg-rf .wg-rf-card strong{font-size:clamp(18px,5vw,22px);overflow-wrap:normal}
  .wg-rf .wg-rf-card svg{width:32px;height:32px;margin-bottom:14px}
  .wg-rf .wg-rf-card-arrow{font-size:22px;right:12px;top:15px}
  .wg-rf .wg-rf-card-category{font-size:14px;line-height:1.45}
  .wg-rf .wg-rf-state-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
  .wg-rf .wg-rf-state-columns a,.wg-rf .wg-rf-services>a{font-size:15px;min-height:44px;line-height:1.5}
  .wg-rf .wg-rf-main{gap:24px;padding-block:28px}
  .wg-rf h3{font-size:20px}
  .wg-rf a.wg-rf-start{font-size:16px;padding:12px 18px;min-height:46px}
  .wg-rf .wg-rf-bottom{gap:12px;padding-block:18px}
  .wg-rf .wg-rf-bottom nav{gap:18px}
  .wg-rf .wg-rf-bottom a{display:inline-flex;align-items:center;min-height:44px}
}
@media(max-width:359px){
  body .wm-shell .wm-wrap,body .ap-shell .ap-wrap,body .wg-layout-wrap,body main.wg-wrap,.wg-ch .wg-ch-wrap,.wg-rf .wg-rf-wrap{width:calc(100% - 24px)!important}
  body .wm-wrap .wm-wrap,body .ap-wrap .ap-wrap,body .wg-layout-wrap .wg-layout-wrap{width:100%!important}
  body main h1{font-size:28px!important}
  body main h2{font-size:23px!important}
  .wg-ch .wg-ch-logo{font-size:30px}
  body .wm-homehero-actions a{font-size:16px!important}
}
@media(prefers-reduced-motion:reduce){main{scroll-behavior:auto}main :where(a,button,summary){transition:none}}
