/*
 * Becker Arbeitsrecht - Responsive foundation 2.4.8
 * A single responsive layer for the entire theme. Desktop styling remains intact,
 * while tablet and phone layouts use consistent type, spacing and grid rules.
 */

html,body{max-width:100%;overflow-x:hidden}
img,svg,video,iframe,canvas{max-width:100%}
.prose,.page-lead,.hero-lead,.section-head p,.oma-launch-head p{overflow-wrap:break-word}

@media (max-width: 960px){
  :root{--wrap:min(100% - 40px,860px);--radius:18px}
  .section{padding:78px 0}
  .content-section{padding:62px 0}
  .page-hero{padding:56px 0 52px}
  .page-hero h1{font-size:clamp(46px,7.4vw,64px);max-width:100%;overflow-wrap:anywhere;hyphens:auto;-webkit-hyphens:auto}
  .page-lead{font-size:18px;margin-top:20px}
  .section-head{gap:34px;margin-bottom:40px}
  .section-head h2{font-size:clamp(38px,5.2vw,50px)}
  .prose h2{font-size:34px;margin-top:44px}
  .prose h3{font-size:25px}
  .service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .service-card{min-height:300px}
  .service-card h3{margin-top:44px}
  .contact,.locations{padding-block:78px}
  .oma-launch-card{padding:26px}
  .oma-launch-head h2{font-size:34px}
}

@media (max-width: 760px){
  :root{--wrap:calc(100% - 32px);--shadow:0 18px 48px rgba(90,16,28,.12);--shadow-soft:0 12px 34px rgba(90,16,28,.07)}

  /* Header */
  .topbar{display:none}
  .site-header{top:0!important;background:rgba(252,250,249,.98);backdrop-filter:blur(12px)}
  .admin-bar .site-header{top:46px!important}
  .nav-wrap{min-height:70px;gap:14px}
  .legacy-brand{min-width:0;grid-template-columns:82px auto;column-gap:6px;max-width:calc(100% - 58px)}
  .legacy-kicker{font-size:7.5px}
  .legacy-name{font-size:24px;letter-spacing:-.03em}
  .legacy-accent{width:82px;height:2px}
  .legacy-sub{font-size:6.4px;letter-spacing:.05em}
  .menu-button{display:block;width:42px;height:42px;flex:0 0 42px;padding:5px}
  .menu-button span{margin:6px 0}
  .main-nav{inset:70px 0 auto 0;max-height:calc(100vh - 70px);overflow:auto;padding:18px 20px 26px;box-shadow:0 14px 28px rgba(90,16,28,.08)}
  .admin-bar .main-nav{inset:116px 0 auto 0;max-height:calc(100vh - 116px)}
  .main-nav a{padding:13px 0;font-size:15px}
  .nav-cta{margin-top:10px;padding-inline:18px}

  /* Global mobile type and rhythm */
  h1{font-size:clamp(40px,11vw,50px);line-height:1.0;letter-spacing:-.035em;overflow-wrap:break-word}
  h2{font-size:clamp(32px,8.7vw,40px);line-height:1.04}
  h3{font-size:24px}
  .eyebrow{font-size:9px;letter-spacing:.16em;margin-bottom:12px}
  .breadcrumbs{font-size:12px;margin-bottom:14px;line-height:1.4}
  .button{min-height:48px;padding-inline:19px;font-size:14px}

  /* Generic page hero */
  .page-hero{padding:38px 0 40px}
  .page-hero:after{width:300px;height:300px;right:-150px;top:-150px}
  .page-hero h1{font-size:clamp(38px,10.3vw,46px);line-height:.98;max-width:100%;text-wrap:balance;overflow-wrap:anywhere;hyphens:auto;-webkit-hyphens:auto}
  .page-lead{font-size:17px;line-height:1.5;margin-top:17px;max-width:100%}
  .content-section{padding:46px 0}
  .prose{font-size:16px;line-height:1.62}
  .prose h2{font-size:31px;line-height:1.08;margin:38px 0 16px}
  .prose h3{font-size:23px;margin:30px 0 12px}
  .prose p{margin-bottom:18px}
  .prose ul{padding-left:18px}

  /* Homepage */
  .hero{padding:40px 0 48px}
  .hero-grid{grid-template-columns:1fr;gap:36px}
  .hero h1{font-size:clamp(42px,11.5vw,54px);line-height:.98}
  .hero-lead{font-size:17px;line-height:1.55;margin-top:20px}
  .hero-actions{margin-top:24px;gap:10px;align-items:stretch;flex-direction:column}
  .hero-actions .button{width:100%}
  .hero-proof{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:30px;padding-top:18px}
  .hero-proof strong{font-size:16px}
  .hero-proof span{font-size:10px;line-height:1.35}
  .portrait-shell{min-height:440px;border-radius:120px 120px 20px 20px}
  .floating-card{position:relative;left:auto;top:auto;width:calc(100% - 24px);margin:-18px auto 0}
  .urgent-inner{grid-template-columns:1fr;gap:8px;padding:22px 0}
  .urgent-inner strong{font-size:21px}
  .urgent-inner p{font-size:14px}

  /* Sections and cards */
  .section{padding:62px 0}
  .section-head{grid-template-columns:1fr;gap:16px;margin-bottom:30px}
  .section-head h2{font-size:34px}
  .section-head p{font-size:15px}
  .service-grid{grid-template-columns:1fr;gap:14px}
  .service-card{min-height:0;padding:22px}
  .service-card h3{font-size:25px;margin:34px 0 14px}
  .method-grid,.about-grid,.contact-grid,.content-grid,.person-layout{grid-template-columns:1fr;gap:34px}
  .method-copy,.sidebar,.person-photo{position:static}
  .step{grid-template-columns:46px 1fr;gap:14px;padding:24px 0}
  .step h3{font-size:26px}
  .about-photo{max-height:520px}
  .large-copy{font-size:17px;margin:20px 0 26px}
  .facts,.facts.facts-four{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .location-grid{grid-template-columns:1fr;gap:14px}
  .location-card{padding:24px;min-height:230px}
  .location-card h3{font-size:24px;margin:42px 0 24px}
  .contact{padding:62px 0}
  .contact-copy p{font-size:16px;margin:18px 0 28px}
  .direct-contact a{font-size:21px}
  .contact-form{padding:20px}
  .field-row{grid-template-columns:1fr;gap:0}
  .footer-grid{grid-template-columns:1fr;gap:26px}

  /* OMA */
  .oma-intro-grid{grid-template-columns:1fr;gap:22px}
  .oma-intro-grid .prose h2{font-size:30px;margin-bottom:15px}
  .oma-checks{gap:9px;margin-top:18px}
  .oma-side-note{padding:20px}
  .oma-side-note strong{font-size:20px}
  .oma-launch{padding-bottom:52px}
  .oma-launch-card{padding:18px;border-radius:16px}
  .oma-launch-head{display:block;margin-bottom:18px}
  .oma-launch-head h2{font-size:28px;line-height:1.08}
  .oma-launch-head p{font-size:14px;line-height:1.55}
  .oma-security-gate{margin-top:18px;padding:15px;border-radius:14px}
  .oma-security-copy{margin-bottom:12px}
  .oma-security-copy strong{font-size:18px}
  .oma-security-copy p{font-size:12.5px}
  .oma-acceptance-form{gap:15px;margin:16px 0 20px;padding:14px}
  .oma-name-grid{grid-template-columns:1fr;gap:12px}
  .oma-name-grid input{min-height:44px}
  .oma-terms-consent{grid-template-columns:20px 1fr;padding:12px;font-size:12.5px}
  .oma-signature-head{align-items:flex-start;flex-direction:column;gap:5px}
  .oma-signature-canvas{height:135px}
  .oma-proof-note{font-size:10.5px}
  .oma-security-copy-secondary{padding-top:14px}
  .oma-actions{margin-top:14px}
  .oma-actions .button,.oma-contact-cta .button,.oma-signed-pdf-box .button{width:100%}
  .oma-gate-status{font-size:12px}
  .oma-signed-pdf-box{padding:14px 15px}
  .oma-signed-pdf-box strong{font-size:18px}
  .oma-frame-wrap{margin:20px -18px 0;border-left:0;border-right:0;border-radius:0}
  .oma-frame{height:820px}
  .oma-privacy{font-size:11px;line-height:1.55}

  /* Legal / lexicon */
  .legal-layout h2{font-size:29px}
  .legal-layout h3{font-size:21px}
  .legal-terms-list{padding-left:1.35em}
  .lexicon-hero h1{font-size:clamp(36px,9.8vw,44px);overflow-wrap:anywhere;hyphens:auto;-webkit-hyphens:auto}
}

@media (max-width: 430px){
  :root{--wrap:calc(100% - 26px)}
  .nav-wrap{min-height:66px}
  .legacy-brand{grid-template-columns:74px auto;max-width:calc(100% - 52px)}
  .legacy-kicker{font-size:6.8px}
  .legacy-name{font-size:21px}
  .legacy-accent{width:74px}
  .legacy-sub{font-size:5.8px}
  .main-nav{inset:66px 0 auto 0;max-height:calc(100vh - 66px)}
  .admin-bar .main-nav{inset:112px 0 auto 0;max-height:calc(100vh - 112px)}

  .page-hero{padding:32px 0 34px}
  .page-hero h1{font-size:clamp(34px,9.2vw,38px);line-height:1.0}
  .page-lead{font-size:16.5px;line-height:1.48;margin-top:15px}
  .content-section{padding:38px 0}
  .prose{font-size:15.5px}
  .prose h2{font-size:28px}
  .prose h3{font-size:21px}

  .hero{padding:34px 0 42px}
  .hero h1{font-size:clamp(39px,11vw,48px)}
  .hero-lead{font-size:16.5px}
  .hero-proof{grid-template-columns:1fr;gap:11px}
  .portrait-shell{min-height:390px}

  .section{padding:54px 0}
  .section-head h2{font-size:31px}
  .facts,.facts.facts-four{grid-template-columns:1fr}
  .location-card{padding:20px;min-height:210px}
  .contact-form{padding:17px}

  .oma-intro-grid .prose h2{font-size:27px}
  .oma-launch-card{padding:14px}
  .oma-launch-head h2{font-size:25px}
  .oma-security-gate{padding:12px}
  .oma-acceptance-form{padding:11px}
  .oma-terms-consent{padding:10px}
  .oma-signature-canvas{height:120px}
  .oma-frame-wrap{margin-inline:-14px}
  .oma-frame{height:760px}
}

@media (max-width: 360px){
  :root{--wrap:calc(100% - 22px)}
  .legacy-brand{grid-template-columns:68px auto}
  .legacy-name{font-size:19px}
  .legacy-accent{width:68px}
  .legacy-sub{font-size:5.4px}
  .page-hero h1{font-size:34px}
  .hero h1{font-size:38px}
  .button{font-size:13px}
}
