/* ALTENHEIMEFINDEN Phase 8 Production polish */
:root{--p8-navy:#062f4a;--p8-blue:#0d5c88;--p8-green:#6c911f;--p8-bg:#f7fafc;--p8-border:#dbe7ef;--p8-shadow:0 14px 38px rgba(4,42,66,.10)}
body{background:var(--p8-bg)}
.master-wrap,.wrap{max-width:1320px}
.master-hero{position:relative;min-height:430px;border-radius:0 0 24px 24px;overflow:hidden;box-shadow:var(--p8-shadow);background:#183d55}
.master-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.95) contrast(1.03)}
.master-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,29,46,.80) 0%,rgba(3,29,46,.57) 45%,rgba(3,29,46,.12) 78%);pointer-events:none}
.master-hero__content{position:relative;z-index:2;max-width:650px;margin:48px 0;padding:30px;border-radius:20px;background:rgba(255,255,255,.95);box-shadow:0 18px 46px rgba(0,0,0,.14);color:#17354b}
.master-hero__content h1{font-size:clamp(2.2rem,4vw,3.8rem);line-height:1.04;margin:.25rem 0 1rem;color:#092f4b}
.master-hero__content .legacy-badge{color:var(--p8-green);font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.master-hero__content .kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.master-hero__content .kpi{border:1px solid var(--p8-border);background:#f8fbfd;border-radius:14px;padding:12px}
.profile-grid{gap:20px}.profile-card{border:1px solid var(--p8-border);border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(4,42,66,.06);transition:transform .2s ease,box-shadow .2s ease}.profile-card:hover{transform:translateY(-3px);box-shadow:var(--p8-shadow)}
.profile-card .img-wrap{aspect-ratio:16/10;background:#dfe9ef;overflow:hidden}.profile-card .img-wrap img{width:100%;height:100%;object-fit:cover}
.profile-hero{min-height:430px;position:relative;overflow:hidden;background:#183d55}.profile-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.profile-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,28,45,.66),rgba(2,28,45,.12) 70%);pointer-events:none}.profile-hero>.wrap{position:relative;z-index:2;padding-top:54px;padding-bottom:54px}.profile-box{max-width:590px;background:rgba(255,255,255,.96);border-radius:20px;padding:28px;box-shadow:0 18px 46px rgba(0,0,0,.15)}.profile-box h1{font-size:clamp(2.1rem,4vw,3.4rem);line-height:1.05;color:#092f4b}
.tabs{position:sticky;top:72px;z-index:25;box-shadow:0 5px 18px rgba(4,42,66,.06)}
.fact,.service,.panel{border-radius:14px;border-color:var(--p8-border)}
.section h2{color:#0a3452}.section h3{color:#124b6d}
.footer-logo-img{filter:none!important;background:transparent!important;mix-blend-mode:normal!important}
img[src*="fallback-pflegeheim.jpg"]{object-fit:cover}
@media(max-width:900px){.master-hero{min-height:360px}.master-hero__content{margin:22px 0;padding:22px}.master-hero__content .kpis{grid-template-columns:1fr}.profile-hero>.wrap{padding-top:30px;padding-bottom:30px}.tabs{top:0}.master-wrap,.wrap{width:min(100% - 24px,1320px)}}
/* Phase 8.1: professional responsive navigation, consent UI and production hardening */
html,body{max-width:100%;overflow-x:hidden}
img,svg,video,iframe{max-width:100%}
button,input,select,textarea{font:inherit}
.mobile-toggle{display:none;position:relative;width:46px;height:46px;border:1px solid var(--p8-border);border-radius:12px;background:#fff;align-items:center;justify-content:center;flex-direction:column;gap:5px;cursor:pointer;margin-left:auto;z-index:120}
.mobile-toggle span{width:21px;height:2px;background:#0a3452;border-radius:2px;transition:transform .2s ease,opacity .2s ease}
.mobile-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.mobile-toggle.is-open span:nth-child(2){opacity:0}
.mobile-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.contact-form-section{padding-top:18px}.contact-form-card{display:grid;grid-template-columns:.8fr 1.2fr;gap:34px;background:#fff;border:1px solid var(--p8-border);border-radius:20px;padding:30px;box-shadow:var(--p8-shadow)}.section-kicker{display:inline-block;text-transform:uppercase;letter-spacing:.05em;font-size:.82rem;font-weight:800;color:var(--p8-green);margin-bottom:6px}.afe-contact-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.afe-contact-form label{display:grid;gap:6px;font-weight:700;color:#183a51}.afe-contact-form label:nth-of-type(4),.afe-contact-form .privacy-check,.afe-contact-form button,.afe-contact-form .form-note{grid-column:1/-1}.afe-contact-form input,.afe-contact-form select,.afe-contact-form textarea{width:100%;border:1px solid #cbdbe5;border-radius:11px;padding:12px 13px;background:#fff;color:#17374d}.afe-contact-form textarea{resize:vertical}.afe-contact-form input:focus,.afe-contact-form select:focus,.afe-contact-form textarea:focus{outline:3px solid rgba(13,92,136,.12);border-color:#0d5c88}.privacy-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:flex-start!important;font-weight:400!important}.privacy-check input{width:18px!important;height:18px;margin-top:3px}.form-note{margin:0;color:#5f7383}
.table-wrap,.compare-table{max-width:100%;overflow-x:auto}
@media(max-width:980px){
  .mobile-toggle{display:flex}
  header .nav{position:relative;display:flex;align-items:center}
  header .afe-mobile-menu{display:none!important;position:absolute!important;top:calc(100% + 1px)!important;left:0!important;right:0!important;width:100%!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;background:#fff!important;padding:10px!important;border:1px solid #d8e5ed!important;border-radius:0 0 16px 16px!important;box-shadow:0 18px 38px rgba(3,32,50,.14)!important;z-index:110!important;max-height:calc(100vh - 82px);overflow:auto}
  header .afe-mobile-menu.is-open{display:flex!important}
  header .afe-mobile-menu a{display:block!important;padding:13px 14px!important;border-radius:9px!important;margin:1px 0!important;min-height:44px!important;line-height:1.35!important}
  header .afe-mobile-menu a:hover{background:#f1f6f9!important}
  header .afe-mobile-menu .navcta{margin-top:6px!important;text-align:center!important;background:#0a4c70!important;color:#fff!important}
  .contact-form-card{grid-template-columns:1fr}.afe-contact-form{grid-template-columns:1fr}.afe-contact-form label{grid-column:1/-1}
}
@media(max-width:700px){
}
@media(max-width:375px){
  .wrap,.master-wrap{width:min(100% - 16px,1320px)!important}.mobile-toggle{width:44px;height:44px}.brand img{max-width:190px!important;height:auto!important}.master-hero__content,.profile-box{padding:18px!important}.master-hero__content h1,.profile-box h1{font-size:clamp(1.85rem,10vw,2.35rem)!important}.section,.section-master{padding-left:0!important;padding-right:0!important}.btn,.navcta{min-height:44px}
}
