/* FHE Hub · gemeinsames Layout 1.0 */
body.fhe-modern{--teal:#087f83;--ink:#203645;--muted:#697d89;--line:#dfe8eb;--bg:#f3f6f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);margin:0;line-height:1.5}
.fhe-modern *, .fhe-modern *:before,.fhe-modern *:after{box-sizing:border-box}
.fhe-modern .fhe-topnav{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px max(24px,calc((100% - 1210px)/2));background:#e9f2f1;border-bottom:1px solid #dde9e7;font-size:13px;line-height:1.5}
.fhe-modern .fhe-topnav a{color:#286865;text-decoration:none;font-weight:650}.fhe-modern .fhe-disabled{color:#8b9c9e}
.fhe-modern .fhe-brandbar{background:white;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px max(24px,calc((100% - 1210px)/2));border-bottom:1px solid var(--line);position:relative;z-index:30}
.fhe-modern .fhe-identity{display:flex;align-items:center;gap:13px;text-decoration:none;color:var(--ink)}
.fhe-modern .fhe-identity>b{display:grid;place-items:center;width:55px;height:49px;background:#123a43;color:white;border-radius:12px;font-size:20px;letter-spacing:1px}
.fhe-modern .fhe-identity strong{display:block;font-size:21px;line-height:1.3;letter-spacing:-.5px}.fhe-modern .fhe-identity small{display:block;font-size:9px;letter-spacing:1.2px;color:#788a94;margin-top:4px}
.fhe-modern .fhe-account{position:relative;margin:0;border:0;padding:0;background:none}.fhe-modern .fhe-account summary{display:flex;align-items:center;gap:13px;cursor:pointer;list-style:none}.fhe-modern .fhe-account summary::-webkit-details-marker{display:none}.fhe-modern .fhe-person{font-size:13px;font-weight:650;text-align:right}.fhe-modern .fhe-person small{display:block;color:var(--muted);font-size:11px;font-weight:400}.fhe-modern .fhe-avatar{border-radius:50%;width:39px;height:39px;background:#e9f2f1;color:#216b69;display:grid;place-items:center;font-weight:700}
.fhe-modern .fhe-account-menu{position:absolute;right:0;top:calc(100% + 14px);width:220px;padding:9px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 40px #19394420;z-index:200}.fhe-modern .fhe-account-menu a,.fhe-modern .fhe-account-menu button{display:block;width:100%;padding:11px 13px;text-decoration:none;text-align:left;color:#34505b;background:none;border:0;border-radius:7px;font:inherit;font-size:13px;cursor:pointer}.fhe-modern .fhe-account-menu a:hover,.fhe-modern .fhe-account-menu button:hover{background:#edf5f4}.fhe-modern .fhe-account-menu form{margin:0}
/* Hide superseded navigation, retaining the original application's DOM and handlers. */
.fhe-auth.fhe-base>header,.fhe-auth.fhe-library>header,.fhe-auth>.portal-back,.fhe-auth>.portal-bar,.fhe-projects .shell>div>header{display:none!important}
.fhe-modern main{max-width:1258px;margin:34px auto 0;padding:0 24px 55px;min-width:0}.fhe-modern h1{font-size:clamp(27px,3.2vw,36px);letter-spacing:-1px;line-height:1.2;color:#203645}.fhe-modern h2{letter-spacing:-.3px}.fhe-modern .muted,.fhe-modern .lead,.fhe-modern .sub{color:#697d89}.fhe-modern .eyebrow{color:#087f83;letter-spacing:1.6px;font-size:10px}.fhe-modern .card,.fhe-modern .panel{border-radius:16px;border:1px solid #e0e8ec;background:white;box-shadow:0 5px 18px #24435106}.fhe-modern .card:hover{border-color:#bbd4d4}.fhe-modern .button,.fhe-modern button.primary,.fhe-modern button[type=submit]{background:#087f83;color:white;border-radius:10px;border:1px solid transparent;font-weight:650;box-shadow:none}.fhe-modern .button:hover,.fhe-modern button.primary:hover{background:#076a6e}
.fhe-modern input:not([type=checkbox]):not([type=radio]):not([type=file]),.fhe-modern select,.fhe-modern textarea{border:1px solid #d4e0e5;border-radius:10px;background:#fff;color:#203645;font-family:inherit;max-width:100%}.fhe-modern :focus-visible{outline:3px solid #71c1bd;outline-offset:3px}.fhe-modern .number{color:#188c8c}.fhe-modern .grid{gap:20px}.fhe-modern .tablewrap{border:1px solid var(--line);border-radius:13px;background:white}.fhe-modern th{background:#f8fafb}.fhe-modern .foot{color:#81929c;font-size:11px}
.fhe-projects .shell{display:block!important;min-height:0}.fhe-projects .shell>aside{display:none!important}.fhe-projects main{max-width:1258px;padding-top:0}.fhe-projects .intro{margin-bottom:25px}.fhe-projects .intro .eyebrow{margin-bottom:9px}.fhe-projects .intro h1{margin:0 0 9px}.fhe-projects .sectionactions{gap:10px}.fhe-projects button:not(.primary):not(.stat):not(.danger){border-color:#dbe5e9;border-radius:9px}.fhe-projects .stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0 0 24px}.fhe-projects .stat{position:relative;background:white;color:#69808c;text-align:left;border:1px solid #dfe8eb;border-radius:14px;padding:20px 23px;box-shadow:0 4px 18px #183d4905;font-size:12px}.fhe-projects .stat strong{display:block;color:#203645;font-size:29px;line-height:1.3;margin-bottom:4px}.fhe-projects .stat:after{content:'▦';position:absolute;right:20px;top:24px;border-radius:10px;background:#e5f2f4;color:#3892a6;padding:9px 13px;font-size:22px}.fhe-projects .stat:nth-child(2):after{content:'▤';background:#fff1df;color:#c18b36}.fhe-projects .stat:nth-child(3):after{content:'✓';background:#e7f3ec;color:#579d78}.fhe-projects .stat.active{border-color:#75b8b8;box-shadow:0 0 0 1px #75b8b840}.fhe-projects .toolbar{background:white;border:1px solid #e0e8ec;padding:13px;border-radius:13px;margin-bottom:24px}.fhe-projects #cards{grid-template-columns:repeat(3,minmax(0,1fr))}.fhe-projects .card{padding:24px;min-width:0}.fhe-projects .badge{background:#e5f1f5;color:#377c97;border-radius:7px;font-size:10px;font-weight:650}.fhe-projects .badge.offer{background:#fff0da;color:#b17a27}.fhe-projects .badge.done{background:#e6f3e9;color:#508d64}.fhe-projects .back{display:none}.fhe-projects .tabs{margin-left:0;gap:7px;border-bottom:1px solid #dfe8eb;padding-bottom:10px;overflow:auto;flex-wrap:nowrap}.fhe-projects .tabs button{white-space:nowrap;background:transparent;border:0}.fhe-projects .tabs button.active{background:#e1f0ee;color:#087f83}.fhe-projects .cols>*{min-width:0}
.fhe-library .hero{background:transparent;color:#203645;max-width:1258px;margin:30px auto 0;padding:0 24px 24px}.fhe-library .hero h1{font-size:32px;color:#203645}.fhe-library .hero h1 br{display:none}.fhe-library .hero p{color:#697d89;max-width:750px}.fhe-library .hero .stats{color:#697d89}.fhe-library .hero .stats strong{color:#087f83}.fhe-library main{margin-top:0}.fhe-library .search-panel{border:1px solid #dfe8eb;border-radius:15px;box-shadow:0 5px 18px #24435106}.fhe-library .workspace>aside{background:white;border:1px solid #e0e8ec;border-radius:14px;padding:19px;align-self:start}.fhe-library .results-head{margin-top:0}.fhe-library .upload-toolbar{border-radius:13px}
@media(max-width:850px){.fhe-projects #cards{grid-template-columns:repeat(2,minmax(0,1fr))}.fhe-projects .stat{padding:18px 14px}.fhe-projects .stat:after{right:12px;top:17px;padding:6px 9px;font-size:18px}.fhe-projects .stat strong{font-size:25px}}
@media(max-width:600px){.fhe-modern .fhe-topnav{padding:10px 16px;font-size:12px}.fhe-modern .fhe-brandbar{padding:16px;gap:10px}.fhe-modern .fhe-identity>b{width:44px;height:43px;font-size:17px}.fhe-modern .fhe-identity{gap:9px}.fhe-modern .fhe-identity strong{font-size:18px}.fhe-modern .fhe-identity small{font-size:7px;letter-spacing:.5px;max-width:180px}.fhe-modern .fhe-person{display:none}.fhe-modern .fhe-avatar{width:34px;height:34px}.fhe-modern main{padding:0 16px 35px;margin-top:25px}.fhe-modern .card{padding:20px}.fhe-projects .stats{gap:8px}.fhe-projects .stat{padding:14px 10px;font-size:10px}.fhe-projects .stat:after{display:none}.fhe-projects #cards{grid-template-columns:1fr}.fhe-projects .intro{gap:16px;align-items:flex-start}.fhe-projects .sectionactions{width:100%}.fhe-projects .cols{grid-template-columns:1fr}.fhe-projects .toolbar input{min-width:0;width:100%}.fhe-library .hero{padding:0 16px 18px}.fhe-library .hero h1{font-size:27px}.fhe-library main{margin-top:0}.fhe-library .workspace{grid-template-columns:1fr}.fhe-modern .fhe-account-menu{width:205px}}
@media(prefers-reduced-motion:reduce){.fhe-modern *{scroll-behavior:auto!important;transition:none!important}}

/* Application headers may contain working controls (e.g. the seal order list). */
.fhe-auth.fhe-standalone:not(.fhe-library)>header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;max-width:1258px;margin:28px auto 0;padding:0 24px 10px;background:transparent;color:#203645;border:0}
.fhe-auth.fhe-standalone>header .logo,.fhe-auth.fhe-standalone>header h1{color:#203645}.fhe-auth.fhe-standalone>header .logo span{color:#087f83}.fhe-auth.fhe-standalone>header p{color:#697d89}.fhe-auth.fhe-standalone>header .wrap{max-width:none;width:100%}.fhe-auth.fhe-standalone>header .brand{color:#087f83}.fhe-auth.fhe-standalone>header .cart-open{background:#087f83;color:white;border:0;border-radius:10px;padding:11px 17px}
.fhe-auth.fhe-base>main>a:first-child[href="/"]{display:none}
.fhe-modern .searchpanel{margin-top:0}
@media(max-width:600px){.fhe-auth.fhe-standalone:not(.fhe-library)>header{padding:0 16px 5px;margin-top:22px}}
@media(max-width:600px){.fhe-projects .toolbar{flex-wrap:wrap}.fhe-projects .toolbar input{flex:1 1 100%}.fhe-projects .toolbar select{width:100%}.fhe-projects .row.between>h2{font-size:20px}}
@media print{.fhe-modern .fhe-topnav,.fhe-modern .fhe-brandbar{display:none!important}}
.fhe-auth.fhe-base>main>a:first-child[href^="/bereich/"],.fhe-auth.fhe-standalone>header>a[href^="/bereich/"]{display:none}
