.topbar .header-inner{position:relative}
.heine-site-search{position:relative;flex:0 0 auto;color:#17624d}
.heine-site-search>summary{display:grid;place-items:center;list-style:none;width:44px;height:44px;padding:0;border:1px solid #dcebe5;border-radius:50%;background:#fff;cursor:pointer}
.heine-site-search>summary::-webkit-details-marker{display:none}
.heine-site-search>summary:hover,.heine-site-search[open]>summary{background:#eef8f4;border-color:#a4cdbd}
.heine-site-search svg{display:block}
.heine-site-search-box{position:absolute;right:0;top:calc(100% + 15px);width:min(470px,calc(100vw - 32px));max-height:calc(100dvh - 150px);overflow:auto;padding:22px;background:#fff;border:1px solid #dcebe5;border-radius:20px;box-shadow:0 18px 48px #0d392330;z-index:60;text-align:left}
.heine-site-search:not([open])>.heine-site-search-box{display:none}
.heine-site-search label{display:block;font-size:18px;font-weight:650;margin-bottom:14px}
.heine-site-search-field{display:flex;gap:8px;align-items:stretch}
.heine-site-search-field input{width:100%;min-width:0;min-height:46px;padding:10px 12px;border:1px solid #a4cdbd;border-radius:10px;font:inherit;font-size:16px;color:#17624d;background:#fff}
.heine-site-search-field button{border:1px solid #17624d;border-radius:999px;min-height:44px;padding:9px 16px;background:#17624d;color:#fff;font:inherit;font-size:14px;font-weight:550;cursor:pointer}
.heine-search-status,.heine-search-hint{font-size:13px;line-height:1.55;color:#526d62;margin:14px 0 10px}
.heine-search-hint{margin:12px 0 0}
.heine-search-hits{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.heine-search-hits li{margin:0;padding:0}
.heine-search-hits a{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 10px;border-radius:10px;min-height:44px;color:#17624d;text-decoration:none}
.heine-search-hits a:hover{background:#eef8f4}
.heine-search-hits strong,.heine-search-hits small{display:block}
.heine-search-hits strong{font-size:15px;line-height:1.4;font-weight:600}
.heine-search-hits small{font-size:12px;line-height:1.5;color:#526d62;margin-top:3px}
.heine-site-search :is(summary,input,button,a):focus-visible,.heine-search-page :is(input,button,a):focus-visible{outline:3px solid #2fac81;outline-offset:3px}
.heine-search-page{padding:40px 0 64px;background:#f8fbfa}
.heine-search-page h1{font-size:clamp(38px,4.5vw,60px);line-height:1.1}
.heine-search-page form{max-width:680px;margin:24px 0 34px}
.heine-search-page label{display:block;font-size:14px;margin-bottom:8px}
.heine-search-page section{margin:30px 0}
.heine-search-page h2{font-size:28px;line-height:1.2;margin-bottom:20px}
.heine-search-page .heine-search-hits{max-width:820px;background:#fff;border:1px solid #dcebe5;border-radius:18px;padding:12px}
.heine-search-page .heine-search-hits strong{font-size:18px}
.heine-search-page .heine-search-hits small{font-size:14px}
.heine-search-article{max-width:820px;padding:20px 0;border-bottom:1px solid #dcebe5}
.heine-search-article h3{margin:0 0 8px;font-size:22px}
.heine-search-article p{margin:0}
.heine-search-article a{text-decoration:underline;text-underline-offset:4px;text-decoration-color:#bdd8cd}
main :is(#produktives-lernen,#ansprechperson,#kennlernwoche,#sol,#berufsorientierung,#ganztag,#europa-erleben,#downloads,#schulbuero,#klasse5,#ankommen-ab-klasse6,#kollegium,#schulleitung,#kooperationen){scroll-margin-top:140px}
@media (min-width:1251px) and (max-width:1599px){
 .topbar .brand{width:220px}
 .topbar .header-inner{gap:18px}
 .topbar .heine-menu{gap:14px}
}
@media (max-width:1250px){
 .topbar .primary-nav{display:none}
 .topbar .new-at-heine{display:none}
 .topbar .menu-toggle{display:block;margin-left:0}
 .topbar .heine-site-search{margin-left:auto}
}
@media (max-width:680px){
 .topbar .header-inner{gap:10px}
 .topbar .brand{width:clamp(125px,40vw,188px)}
 .heine-site-search{position:static}
 .heine-site-search-box{top:calc(100% + 6px);right:0;width:min(470px,calc(100vw - 24px));padding:18px;max-height:calc(100dvh - 115px)}
 .heine-site-search-field{flex-wrap:wrap}
 .heine-site-search-field input{flex:1 1 180px}
 .heine-site-search-field button{flex:0 0 auto}
}

/* 2.0.129: homepage portal circles share the search button's size and visual style. */
.heine-header-tools{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.heine-header-portal{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;padding:7px;border:1px solid #dcebe5;border-radius:50%;background:#fff;color:#17624d;text-decoration:none;overflow:hidden}
.heine-header-portal:hover{background:#eef8f4;border-color:#a4cdbd}
.heine-header-portal:focus-visible{outline:3px solid #2fac81;outline-offset:3px}
.heine-header-portal .heine-portal-logo{display:block;width:100%;height:100%;min-width:0;max-width:100%;object-fit:contain;object-position:center;border-radius:0}
.heine-portal-initials{font-size:13px;line-height:1;font-weight:650;letter-spacing:-.03em}
.topbar.has-home-portals .header-inner{gap:14px!important}
@media(min-width:1451px){.topbar.has-home-portals .brand{width:230px!important}.topbar.has-home-portals .heine-menu{gap:12px}}
@media(max-width:1450px){.topbar.has-home-portals .primary-nav,.topbar.has-home-portals .new-at-heine{display:none}.topbar.has-home-portals .menu-toggle{display:block;margin-left:0}.topbar.has-home-portals .heine-header-tools{margin-left:auto}}
@media(max-width:1250px){.heine-header-tools{margin-left:auto}}
@media(max-width:600px){
 .topbar.has-home-portals .header-inner{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 12px!important;padding-top:8px;padding-bottom:8px;align-items:center}
 .topbar.has-home-portals .brand{grid-column:1/-1;grid-row:1;width:160px!important;max-width:100%}
 .topbar.has-home-portals .menu-toggle{grid-column:1;grid-row:2;justify-self:start;height:44px;min-height:44px;padding:8px 16px;font-size:14px;line-height:1;margin:0}
 .topbar.has-home-portals .social-links{display:none}
 .topbar.has-home-portals .heine-header-tools{grid-column:2;grid-row:2;justify-self:start;margin-left:0;flex-wrap:nowrap}
 .topbar.has-home-portals .heine-site-search{position:static}
}
