/* Gemeinsame Link-Zustände und der schwebende Seitenanfang. */
/* Angeheftete Hauptnavigation mit Platz für Adminleiste und Sprungziele. */
@media screen{
 body.hfv-body{--hfr-nav-height:96px;--hfr-nav-top:0px;--hfr-nav-clearance:calc(var(--hfr-nav-height) + var(--hfr-nav-top) + 16px);}
 body.hfv-body.admin-bar{--hfr-nav-top:32px;}
 .hfv-body .hfv-header{position:sticky;top:var(--hfr-nav-top);z-index:1000;background:#fff;box-shadow:0 3px 14px #183c5912;}
 body.hfv-body main [id],body.hfv-body .hfr-prose [id],body.hfv-body #hfv-main{scroll-margin-top:var(--hfr-nav-clearance);}
 .hfv-body .hfv-mobile nav{max-height:min(70vh,calc(100dvh - var(--hfr-nav-height) - var(--hfr-nav-top) - 16px));overflow-y:auto;overscroll-behavior:contain;}
}
@media screen and (min-width:851px){.hfv-body .hfr-toc>div{top:var(--hfr-nav-clearance);max-height:calc(100dvh - var(--hfr-nav-clearance) - 16px);}}
@media screen and (max-width:782px){body.hfv-body.admin-bar{--hfr-nav-top:46px;}}
/* Die WordPress-Adminleiste scrollt auf kleinen Displays aus dem Bild. */
@media screen and (max-width:600px){body.hfv-body{--hfr-nav-height:80px;}body.hfv-body.admin-bar{--hfr-nav-top:0px;}}
@media print{.hfv-body .hfv-header{position:static;box-shadow:none;}.hfv-body main [id],.hfv-body #hfv-main{scroll-margin-top:0;}}

body a[href]{text-underline-offset:.22em;text-decoration-thickness:1.5px;transition:color .16s ease,text-decoration-color .16s ease,background-color .16s ease;}
body a[href]:not(:where([class*="button"],[class*="btn"],.hfv-logo,.hfv-brand,.hfv-card-image,.hfd-feature-image)):hover{color:#a6342a;text-decoration-line:underline;}
body a[href]:focus-visible,body button:focus-visible,body summary:focus-visible{outline:3px solid #1c526f;outline-offset:4px;}
/* Im Fließtext sind Links bereits unterstrichen: Hover muss sich deutlich abheben. */
body .hfr-prose a[href]:not(.hfv-link):hover,body .hfr-prose a[href]:not(.hfv-link):focus-visible{color:#173f60;background-color:#e8f3fb;text-decoration-color:#173f60;text-decoration-thickness:2px;border-radius:2px;}
.hfv-body .hfr-faq>summary:hover,.hfv-body .hfr-faq>summary:focus-visible,.hfv-body .hfe-sources>summary:hover,.hfv-body .hfe-sources>summary:focus-visible{background-color:#e8f3fb;color:#173f60;}
body .hfv-button:hover,body .hfr-button:hover{filter:brightness(.92);}
body .hfv-card-image:hover img,body .hfd-feature-image:hover img{filter:brightness(.95);}
.hfr-back-to-top{position:fixed;right:24px;bottom:calc(96px + env(safe-area-inset-bottom,0px));z-index:800;width:48px;height:48px;display:grid;place-items:center;padding:0;border:2px solid #fff;border-radius:50%;background:#bc4437;color:#fff;box-shadow:0 3px 12px #183c5926;cursor:pointer;}
.hfr-back-to-top[hidden]{display:none!important;}
.hfr-back-to-top svg{width:23px;height:23px;pointer-events:none;}
.hfr-back-to-top:hover{background:#983328;}
.hfr-back-to-top:focus-visible{outline:3px solid #183c59;outline-offset:4px;}
@media(max-width:600px){.hfr-back-to-top{right:16px;width:46px;height:46px;}}
@media(prefers-reduced-motion:reduce){body a[href]{transition:none;}html{scroll-behavior:auto!important;}}
