/*
Theme Name: Husbatteri Viden
Description: Dansk videnssite om husbatterier til private.
Version: 1.0.1
Text Domain: husbatteri-viden
*/
:root{--ink:#17342a;--muted:#56645d;--green:#174e3b;--lime:#d8f16a;--yellow:#f7d774;--paper:#f8faf7;--line:#dce4dc;--white:#fff;--blue:#e7f0f7}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:17px;line-height:1.65;letter-spacing:0}a{color:inherit;text-underline-offset:4px}a:hover{color:var(--green)}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}img{max-width:100%;display:block}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.12;letter-spacing:0}h1{font-size:72px;font-weight:700}h2{font-size:42px}h3{font-size:23px}p+p{margin-top:16px}.wrap{width:min(1200px,calc(100% - 80px));margin:auto}.eyebrow{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:0;margin-bottom:18px;display:flex;align-items:center;gap:10px}.eyebrow:before{content:'';width:7px;height:7px;background:currentColor;display:block}.site-header{height:88px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:28px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:25px;font-weight:700}.brand-icon{width:33px;height:33px}.brand small{font-size:13px;font-weight:400;color:var(--muted);display:block;line-height:1.2;margin-top:4px}.site-nav{display:flex;align-items:center;gap:30px;font-size:14px;font-weight:700}.site-nav a{text-decoration:none;padding:12px 0;border-bottom:2px solid transparent}.site-nav a[aria-current=page]{border-color:var(--green)}.nav-button{display:none;border:0;background:transparent;padding:8px;width:44px;height:44px}.icon{width:22px;height:22px;flex-shrink:0}.skip-link{position:fixed;top:-100px;left:12px;background:#fff;padding:12px;z-index:50}.skip-link:focus{top:8px}:focus-visible{outline:3px solid #a17b00;outline-offset:5px}.hero{position:relative;min-height:590px;background:#173d31;overflow:hidden;color:white}.hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 52%}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,35,25,.93) 0%,rgba(8,35,25,.83) 30%,rgba(8,35,25,.2) 65%,rgba(8,35,25,.02) 100%)}.hero-content{position:relative;z-index:1;padding:70px 0 78px;max-width:610px}.hero h1{margin-bottom:26px}.hero .lead{font-size:21px;line-height:1.5;max-width:490px;color:#f3f7ee}.hero-label{position:absolute;bottom:16px;right:24px;font-size:11px;z-index:2;color:white;background:rgba(0,0,0,.45);padding:3px 8px}.actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:30px}.button{display:inline-flex;align-items:center;gap:18px;background:var(--lime);color:var(--ink);font-size:14px;font-weight:700;text-decoration:none;min-height:50px;padding:12px 23px;border:1px solid transparent;border-radius:4px}.button:hover{background:#e7fa9b;color:var(--ink)}.button.outline{color:white;background:transparent;border-color:#87998d}.button.outline:hover{background:#fff;color:var(--ink)}.text-link{font-size:14px;font-weight:700;display:inline-flex;align-items:center;gap:10px}.topic-strip{background:#fff;border-bottom:1px solid var(--line)}.topic-strip .wrap{display:grid;grid-template-columns:repeat(4,1fr);padding:27px 0;gap:20px}.topic-strip a{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:14px;font-weight:700}.topic-strip .icon{width:26px;height:26px}.section{padding:88px 0;border-bottom:1px solid var(--line)}.section-head{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:end;margin-bottom:42px}.section-head p{color:var(--muted);max-width:510px}.section-intro{max-width:750px;margin-bottom:34px}.section-intro p{margin-top:22px;color:var(--muted)}.definition{display:grid;grid-template-columns:1.15fr 1fr;gap:80px}.prose p{color:var(--muted);margin-top:18px}.facts{border-top:1px solid var(--line)}.fact{padding:21px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:82px 1fr;gap:20px}.fact strong{font-size:28px}.fact p{font-size:15px;color:var(--muted)}.fact h3{font-size:17px;margin-bottom:7px}.energy-section{background:#edf3eb}.energy-layout{display:grid;grid-template-columns:1fr 1fr;gap:55px}.mode-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:27px}.mode-tab{font-size:13px;padding:10px 13px;border:1px solid #becdbe;background:transparent;color:var(--ink);border-radius:4px;font-weight:700}.mode-tab[aria-selected=true]{background:var(--green);border-color:var(--green);color:white}.energy-stage{background:#fff;border:1px solid #d4ded3;border-radius:6px;padding:32px;min-height:295px}.energy-nodes{display:grid;grid-template-columns:1fr 44px 1fr;align-items:center;gap:14px}.energy-node{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:133px;background:#f1f5ed;border-radius:4px;text-align:center;padding:14px}.energy-node .icon{width:42px;height:42px}.energy-node b{font-size:15px}.flow-arrow{font-size:30px;text-align:center;color:var(--green)}.energy-stage p{font-size:14px;color:var(--muted);margin-top:23px}.mode-content h3{font-size:30px;margin-bottom:22px}.mode-content p{color:var(--muted)}.mode-content .text-link{margin-top:25px}.topic-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}.topic-card{border-top:2px solid var(--ink);padding:27px 0 0;display:flex;flex-direction:column;align-items:flex-start}.topic-card .number{font-size:12px;font-weight:700;color:var(--muted);margin-bottom:30px}.topic-card h3{margin-bottom:16px}.topic-card p{font-size:16px;color:var(--muted);margin-bottom:25px}.topic-card .text-link{margin-top:auto}.future{background:var(--green);color:#fff}.future .section-head p{color:#d6e3d7}.future-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:40px}.future-grid>div{border-top:1px solid #688d79;padding-top:24px}.future-grid p{font-size:16px;color:#d6e3d7;margin-top:15px}.future .source-link{color:#d6e3d7}.source-link{font-size:13px;display:block;margin-top:24px;color:var(--muted)}.questions{max-width:850px;margin:30px auto 0}.questions details{border-bottom:1px solid var(--line)}.questions summary{font-size:19px;font-weight:700;padding:23px 35px 23px 0;position:relative;cursor:pointer;list-style:none}.questions summary::-webkit-details-marker{display:none}.questions summary:after{content:'+';position:absolute;right:3px;top:20px;font-size:25px;font-weight:400}.questions details[open] summary:after{content:'\2212'}.questions details p{padding:0 25px 24px 0;color:var(--muted);font-size:16px}.reading-band{background:var(--yellow)}.reading-band .wrap{display:flex;justify-content:space-between;align-items:center;gap:30px;padding:42px 0}.reading-band h2{font-size:30px;max-width:560px}.reading-band .button{background:var(--ink);color:white}.site-footer{padding:42px 0 26px;background:#fff}.footer-top{display:flex;justify-content:space-between;gap:40px}.footer-top p{font-size:14px;color:var(--muted);max-width:380px;margin-top:12px}.footer-nav{display:flex;gap:25px;font-size:14px;flex-wrap:wrap}.footer-bottom{border-top:1px solid var(--line);margin-top:32px;padding-top:19px;display:flex;justify-content:space-between;gap:20px;font-size:12px;color:var(--muted)}.page-hero{background:#eaf1e7;padding:53px 0 55px;border-bottom:1px solid var(--line)}.page-hero.blue{background:var(--blue)}.breadcrumb{font-size:13px;margin-bottom:28px;color:var(--muted)}.page-hero h1{font-size:54px;max-width:900px}.page-hero .lead{font-size:21px;max-width:760px;margin-top:25px;color:var(--muted)}.article-meta{font-size:12px;margin-top:25px;color:var(--muted)}.article-layout{display:grid;grid-template-columns:235px minmax(0,1fr);gap:75px;padding-top:65px;padding-bottom:75px}.toc{align-self:start;position:sticky;top:120px;font-size:14px}.toc strong{display:block;font-size:12px;margin-bottom:16px;text-transform:uppercase}.toc a{display:block;text-decoration:none;border-left:2px solid var(--line);padding:9px 15px;color:var(--muted)}.toc a:hover{border-color:var(--green);color:var(--green)}.article{max-width:800px;min-width:0}.article section{margin-bottom:52px;scroll-margin-top:116px}.article h2{font-size:32px;margin-bottom:22px}.article h3{font-size:22px;margin:29px 0 14px}.article p,.article li{color:var(--muted)}.article p+p{margin-top:18px}.article ul,.article ol{padding-left:22px;margin:18px 0}.article li{padding-left:4px;margin:10px 0}.article .callout{background:#edf3e8;border-left:3px solid var(--green);padding:24px 28px;margin:28px 0;border-radius:0}.article .callout.yellow{background:#fff5d5;border-color:#b18a12}.callout strong{display:block;margin-bottom:8px}.callout p{font-size:16px}.table-wrap{overflow:auto;margin:25px 0}table{border-collapse:collapse;width:100%;font-size:15px;text-align:left}th{background:#edf3e8;color:var(--ink)}th,td{padding:15px 18px;border-bottom:1px solid var(--line)}td{color:var(--muted)}.calculator{background:var(--blue);border:1px solid #cadce6;border-radius:6px;padding:28px;margin:27px 0}.calculator h3{margin:0 0 13px}.calculator-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:25px}.calculator label{font-size:14px;font-weight:700;display:block}.calculator input{display:block;background:white;color:var(--ink);border:1px solid #94a7ac;border-radius:4px;padding:10px;width:100%;margin-top:7px;min-height:46px}.calculator-output{display:flex;gap:15px;align-items:baseline;margin-top:24px;padding-top:18px;border-top:1px solid #b7cdd8}.calculator-output output{font-size:37px;font-weight:700;line-height:1.2}.calculator small{display:block;font-size:13px;color:var(--muted);margin-top:14px}.article .questions{margin:0}.article .questions summary{font-size:17px}.source-list{font-size:14px}.source-list li{margin-bottom:17px}.source-list span{display:block;font-size:13px;color:var(--muted)}.related{border-top:1px solid var(--line);padding:35px 0;margin-top:35px;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.article-figure{margin:25px 0}.article-figure img{border-radius:4px;width:100%;aspect-ratio:16/9;object-fit:cover}.article-figure figcaption{font-size:12px;color:var(--muted);margin-top:8px}.empty-page{padding:100px 0;min-height:55vh}.empty-page h1{font-size:48px;margin-bottom:22px}
@media(min-width:1500px){.hero{min-height:650px}.hero-content{padding-top:90px;padding-bottom:90px}}
@media(max-width:1000px){.wrap{width:calc(100% - 48px)}.site-nav{gap:18px;font-size:12px}h1{font-size:60px}h2{font-size:36px}.hero-content{max-width:550px}.definition{gap:40px}.section-head{gap:40px}.article-layout{grid-template-columns:185px minmax(0,1fr);gap:35px}.energy-layout{gap:30px}.mode-tabs{gap:5px}.mode-tab{padding:9px}.footer-nav{gap:15px}}
@media(max-width:720px){.wrap{width:calc(100% - 36px)}.site-header{height:75px}.brand{font-size:22px}.brand small{font-size:11px}.nav-button{display:block}.site-nav{position:absolute;top:75px;left:0;right:0;background:white;padding:16px 24px 23px;display:none;box-shadow:0 10px 15px #17342a14}.site-nav.is-open{display:flex;flex-direction:column;align-items:stretch;gap:3px;font-size:15px}.hero{min-height:615px}.hero-content{padding:48px 0 65px;max-width:100%}.hero-img{object-position:64% center}.hero:after{background:linear-gradient(90deg,rgba(8,35,25,.88),rgba(8,35,25,.55))}.hero h1{font-size:50px;max-width:400px}.hero .lead{font-size:19px;max-width:370px}.hero-label{right:18px;bottom:12px}.actions{gap:10px}.button{padding:12px 17px;gap:12px}.topic-strip .wrap{grid-template-columns:1fr 1fr;gap:22px 12px;padding:25px 0}.topic-strip a{font-size:12px;gap:8px}.section{padding:56px 0}h2{font-size:32px}.section-head,.definition,.energy-layout{grid-template-columns:1fr;gap:27px}.section-head{margin-bottom:30px}.section-intro{margin-bottom:25px}.fact{grid-template-columns:80px 1fr}.energy-stage{padding:24px;min-height:280px}.topic-grid,.future-grid{grid-template-columns:1fr;gap:34px}.topic-card .number{margin-bottom:18px}.topic-card p{margin-bottom:18px}.questions summary{font-size:17px}.reading-band .wrap{flex-direction:column;align-items:flex-start;padding:35px 0;gap:23px}.reading-band h2{font-size:28px}.footer-top,.footer-bottom{flex-direction:column;gap:20px}.footer-nav{gap:12px 22px}.page-hero{padding:35px 0 42px}.page-hero h1{font-size:38px}.page-hero .lead{font-size:18px}.article-layout{grid-template-columns:1fr;gap:35px;padding-top:32px;padding-bottom:35px}.toc{position:static}.toc a{padding:6px 13px}.article h2{font-size:28px}.article section{margin-bottom:40px}.calculator{padding:21px}.calculator-fields{grid-template-columns:1fr}.calculator-output{flex-wrap:wrap;gap:8px}.table-wrap{margin-right:0}th,td{padding:12px 10px;font-size:14px}.empty-page h1{font-size:34px}}
.site-header .brand{line-height:1.05}.site-header .brand>span:last-child{display:flex;flex-direction:column;gap:2px}.site-header .brand small{margin-top:0}.site-header .brand-icon,.site-header .brand-icon .icon{width:42px;height:42px;flex-shrink:0}.reading-band .button .icon{filter:brightness(0) invert(1)}
@media(max-width:720px){.hero-img{object-position:right center}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
