/*
Theme Name: Stefan Hirscher – Personal Training Meckenbeuren
Version: 2.0.0
*/
:root{--ink:#171717;--white:#fff;--grey:#f3f4f5;--line:#e5e7e9;--max:1180px;--serif:Georgia,serif;--sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--ink);font-family:var(--sans);line-height:1.65}a{color:inherit}.wrap{width:min(var(--max),calc(100% - 40px));margin:auto}.site-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line)}.header-inner{height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{text-decoration:none;font-family:var(--serif);font-weight:700}.nav{display:flex;gap:20px;align-items:center}.nav a{text-decoration:none;font-size:.93rem}.menu-toggle{display:none;border:0;background:transparent;font-size:1.6rem;padding:8px}.hero{padding:105px 0 90px}.section{padding:76px 0}.eyebrow{text-transform:uppercase;letter-spacing:.15em;font-size:.75rem;font-weight:700;color:#70757a;margin:0 0 16px}h1,h2,h3{font-family:var(--serif);line-height:1.12;margin:0 0 18px}h1{font-size:clamp(3rem,7vw,6.4rem);letter-spacing:-.04em;max-width:1050px}h2{font-size:clamp(2.2rem,4vw,3.6rem)}.lead{font-size:1.25rem;max-width:760px;color:#3d4247}.button{display:inline-block;padding:13px 21px;border:1px solid var(--ink);border-radius:8px;text-decoration:none;font-weight:650;margin:8px 8px 0 0;cursor:pointer}.primary{background:var(--ink);color:#fff}.soft-block{background:var(--grey);border-radius:24px;padding:52px}.intro-grid,.contact-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:58px;align-items:center}.portrait{width:100%;aspect-ratio:1/1;max-height:300px;border-radius:20px;overflow:hidden;background:#fff}.portrait img{width:100%;height:100%;object-fit:cover}.placeholder{height:100%;display:grid;place-items:center;font:4rem var(--serif);opacity:.18}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card,.service,.quote,.contact-box,.map-box{background:var(--grey);border-radius:20px;padding:30px}.icon{width:46px;height:46px;border-radius:14px;background:#fff;display:grid;place-items:center;font-size:1.35rem;margin-bottom:25px}.services{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.service{min-height:245px}.service-icon{font-size:2rem;margin-bottom:42px}.testimonials{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.stars{letter-spacing:3px;font-size:1.15rem;margin-bottom:15px}.quote p{font-family:var(--serif);font-size:1.16rem}.map-frame{display:block;width:100%;height:420px;border:0;border-radius:20px}.legal{padding:65px 0}.entry{max-width:900px}.entry h1{font-size:clamp(2.7rem,5vw,4.6rem)}.entry h2{font-size:1.65rem;margin-top:42px}.back{display:inline-block;text-decoration:none;margin-bottom:25px;font-weight:650}.site-footer{margin-top:20px;padding:38px 0;border-top:1px solid var(--line)}.footer-inner{display:flex;justify-content:space-between;gap:25px}.footer-links{display:flex;gap:18px;flex-wrap:wrap}.footer-links a{text-decoration:none}@media(max-width:820px){.menu-toggle{display:block}.nav{display:none;position:absolute;top:72px;left:0;right:0;padding:20px;background:#fff;border-bottom:1px solid var(--line);flex-direction:column;align-items:flex-start}.nav.open{display:flex}.hero{padding:75px 0 60px}.section{padding:55px 0}.soft-block{padding:30px;border-radius:20px}.intro-grid,.contact-grid,.cards,.services,.testimonials{grid-template-columns:1fr;gap:16px}.portrait{max-width:300px}.footer-inner{display:block}.footer-links{margin-top:15px}}
/* Version 1.5 – Rechtsseiten sicher scrollbar */
html,body{min-height:100%;overflow-x:hidden}
body.page{overflow-y:auto;height:auto}
body.page .site-header{position:relative}
body.page .legal{min-height:calc(100vh - 160px)}
.service-icon svg{width:48px;height:48px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* Version 1.6 – Desktop/Laptop navigation and legal-page scrolling fixes */
html{height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important}
body{height:auto!important;min-height:100vh!important;overflow-x:hidden!important;overflow-y:auto!important}
body.page,body.page-template,body.page-template-default{height:auto!important;min-height:100vh!important;overflow-y:auto!important;overflow-x:hidden!important}
body.page main{display:block!important;position:static!important;overflow:visible!important;height:auto!important;min-height:0!important}
body.page .legal{display:block!important;position:static!important;overflow:visible!important;height:auto!important;min-height:calc(100vh - 150px)!important;padding-bottom:80px!important}
body.page .entry,body.page .page-content{display:block!important;position:static!important;overflow:visible!important;height:auto!important;max-height:none!important}
body.page .site-header{position:relative!important;top:auto!important}
body.page .site-footer{position:static!important}

/* Menu switches to a reliable hamburger layout before laptop widths become too narrow */
@media(max-width:1100px){
  .menu-toggle{display:block!important;flex:0 0 auto}
  .nav{display:none!important;position:absolute!important;top:72px!important;left:0!important;right:0!important;z-index:1000!important;padding:18px 20px 22px!important;background:#fff!important;border-bottom:1px solid var(--line)!important;box-shadow:0 12px 25px rgba(0,0,0,.08)!important;flex-direction:column!important;align-items:stretch!important;gap:0!important}
  .nav.open{display:flex!important}
  .nav a{display:block!important;padding:12px 4px!important}
}
@media(min-width:1101px){
  .menu-toggle{display:none!important}
  .nav{display:flex!important;position:static!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;flex-direction:row!important;align-items:center!important}
}


/* Version 1.7 – robust navigation and unrestricted legal-page scrolling */
.site-header{isolation:isolate}
.header-inner{position:relative}
.menu-toggle{cursor:pointer;line-height:1;min-width:44px;min-height:44px}
.menu-toggle:focus-visible,.nav a:focus-visible{outline:2px solid currentColor;outline-offset:3px}
body.page,body.page-template-default{position:static!important;display:block!important;overscroll-behavior-y:auto!important;-webkit-overflow-scrolling:touch!important}
body.page main{width:100%!important;transform:none!important;contain:none!important}
body.page .legal,body.page .legal-article,body.page .page-content{overflow:visible!important;clip:auto!important;max-height:none!important;touch-action:pan-y!important}
@media(max-width:1180px){
  .header-inner{height:72px}
  .brand{min-width:0;max-width:calc(100% - 64px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .menu-toggle{display:inline-flex!important;align-items:center;justify-content:center}
  .nav{display:none!important;position:absolute!important;top:72px!important;left:0!important;right:0!important;width:100%!important;max-height:calc(100vh - 72px)!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;padding:14px 20px 20px!important;background:#fff!important;border-bottom:1px solid var(--line)!important;box-shadow:0 12px 25px rgba(0,0,0,.08)!important;flex-direction:column!important;align-items:stretch!important;gap:0!important}
  .nav.open{display:flex!important}
  .nav a{display:block!important;padding:13px 4px!important}
}
@media(min-width:1181px){
  .brand{flex:0 1 auto;min-width:0}
  .nav{display:flex!important;flex:0 1 auto;flex-wrap:wrap;justify-content:flex-end;gap:12px 18px!important}
}

/* Version 1.9 – services, anchor navigation and legal pages */
.site-header{scroll-margin-top:0}
.section[id]{scroll-margin-top:88px}
.service-icon{width:46px;height:46px;border-radius:14px;background:#fff;display:grid;place-items:center;margin-bottom:25px}
.service-icon svg{width:28px;height:28px}
.service p{margin:0;color:#3d4247}

/* Version 1.9 – logo slot and fixed scroll-to-top button */
.header-logo-slot{display:flex;align-items:center;justify-content:center;flex:0 0 68px;width:68px;height:52px;overflow:hidden}
.header-logo-slot img{display:block;max-width:100%;max-height:52px;width:auto;height:auto;object-fit:contain}
.header-logo-slot .custom-logo-link{display:flex;align-items:center;justify-content:center;line-height:0}
.header-logo-slot .custom-logo{max-width:68px!important;max-height:52px!important;width:auto!important;height:auto!important}
.brand{flex:1 1 auto;min-width:0}
.scroll-top{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:2000;width:48px;height:48px;border:1px solid var(--line);border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-size:1.35rem;line-height:1;cursor:pointer;box-shadow:0 8px 22px rgba(0,0,0,.18);transition:transform .2s ease,box-shadow .2s ease}
.scroll-top:hover{transform:translateX(-50%) translateY(-2px);box-shadow:0 12px 28px rgba(0,0,0,.22)}
.scroll-top:focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media(max-width:1180px){.header-logo-slot{flex-basis:58px;width:58px;height:48px}.header-logo-slot .custom-logo{max-width:58px!important;max-height:48px!important}.brand{font-size:.95rem}}
@media(max-width:560px){.header-inner{gap:8px}.header-logo-slot{flex-basis:44px;width:44px;height:44px}.header-logo-slot .custom-logo{max-width:44px!important;max-height:44px!important}.brand{font-size:.78rem;line-height:1.2}.scroll-top{bottom:14px;width:46px;height:46px}}

/* Version 2.0 – ensure scroll-to-top is always visible and clickable */
.scroll-top{display:grid!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;position:fixed!important;left:50%!important;bottom:max(18px,env(safe-area-inset-bottom))!important;transform:translateX(-50%)!important;z-index:2147483647!important}
.site-footer{padding-bottom:90px}
