/* Layout refinement 0.1.1: toolbar, portrait framing and breathing room. */
body{--fg-toolbar:0px}
body.admin-bar{--fg-toolbar:32px}
body>header{top:calc(var(--fg-toolbar) + 24px + env(safe-area-inset-top,0px))}
.hero{min-height:calc(100svh - var(--fg-toolbar));padding-bottom:170px}
.hero-photo{object-position:center top}
.hero-bottom{bottom:56px;padding:22px 0 12px}
.trust-strip{padding-top:64px}
@media(max-width:782px){body.admin-bar{--fg-toolbar:46px}}
@media(max-width:760px){
 body>header{top:calc(var(--fg-toolbar) + 16px + env(safe-area-inset-top,0px))}
 body.admin-bar #wpadminbar{position:fixed}
 .hero{height:calc(100svh - var(--fg-toolbar));min-height:0;padding:0}
 .hero-photo{top:94px;bottom:auto;height:calc(66% - 70px);object-position:85% top}
 .hero-noise{background:linear-gradient(180deg,#092b40 0%,#092b4000 19%,#092b4000 33%,#092b4050 47%,#092b40 65%)}
 .hero-copy{bottom:115px}
 .hero-bottom{bottom:38px;padding:17px 0 8px}
 .trust-strip{padding-top:44px}
}
@media(max-width:760px) and (max-height:690px){
 .hero-copy{bottom:96px}
 .hero-bottom{bottom:28px}
 .hero-copy .eyebrow{margin-bottom:10px}
 .hero-photo{top:88px;height:calc(65% - 60px)}
}
@media(max-width:760px) and (max-height:520px){
 .hero{height:auto;min-height:520px}
}

/* 0.2.0: original portrait, no extracted-page crop. */
.portrait-crop img{position:absolute;inset:0;width:100%;height:100%;max-width:100%;object-fit:cover;object-position:52% center}
.profile-avatar img{position:absolute;inset:0;width:100%;height:100%;max-width:100%;object-fit:cover;object-position:50% 25%}
@media(max-width:760px){
 /* Extend the existing sky behind the navigation; blend into the foreground photo. */
 .hero::before{content:"";position:absolute;inset:0 0 auto;height:180px;z-index:-3;background:url('assets/freiheit.png') left top / auto 760px no-repeat}
 .hero-photo{top:70px;height:calc(66% - 50px);mask-image:linear-gradient(to bottom,transparent,#000 34px);-webkit-mask-image:linear-gradient(to bottom,transparent,#000 34px)}
 .hero-noise{background:linear-gradient(180deg,#092b4008 0%,#092b4000 30%,#092b4050 47%,#092b40 65%)}
}

/* Legal dialog: only content scrolls; close remains reachable. */
#modal{padding:0;width:min(800px,calc(100% - 32px));max-height:85dvh;overflow:hidden;border-radius:14px}#modal[open]{display:flex;flex-direction:column}#modal>.close{position:static;align-self:flex-end;flex-shrink:0;margin:8px 12px 0;padding:8px;width:40px;height:40px;background:white;color:#123e50;border:0;font-size:26px;z-index:2}#modal-content{overflow:auto;padding:12px 32px 32px;overscroll-behavior:contain}#modal-content,#modal-content p,#modal-content li,#modal-content a,#modal-content span{font-family:Figtree,Arial,sans-serif!important;font-size:15px!important;line-height:1.75!important}#modal-content h1{font:600 30px/1.25 Figtree,Arial,sans-serif!important;overflow-wrap:anywhere;margin:0 0 24px}#modal-content h2{font:600 23px/1.35 Figtree,Arial,sans-serif!important;margin:28px 0 12px}#modal-content h3,#modal-content h4{font:600 18px/1.4 Figtree,Arial,sans-serif!important;margin:22px 0 10px}@media(max-width:500px){#modal-content{padding:8px 20px 25px}#modal-content h1{font-size:25px!important}#modal-content h2{font-size:21px!important}}
