/* ENERGY HUB, utkast. Farger og skrift er ENERGY sine egne fra energyfitness.no;
   marineblått er fra skissen kunden sendte. */

@font-face{font-family:Figtree;src:url(/assets/fonts/figtree-latin.woff2) format("woff2");font-weight:300 900;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Figtree;src:url(/assets/fonts/figtree-latin-ext.woff2) format("woff2");font-weight:300 900;font-style:normal;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
  --navy:#0E1A2C;
  --oransje:#E86826;          /* ENERGY-oransje, til store flater og overskrift */
  --oransje-fyll:#C15620;     /* knapper: hvit tekst holder 4,5:1 */
  --oransje-mork:#A4491B;
  --oransje-tekst:#B04F1D;    /* liten oransje tekst på lys bunn */
  --oransje-lys:#FDEFE6;
  --oransje-flate:#FFF7F1;
  --blekk:#111827;
  --blekk-2:#4B5563;
  --blekk-3:#6B7280;
  --grunn:#F4F5F7;
  --kort:#FFFFFF;
  --linje:#E5E7EB;
  --linje-2:#EEF0F3;
  --r:14px;
  --r-sm:10px;
  --skygge:0 1px 2px rgba(16,24,40,.04),0 1px 3px rgba(16,24,40,.06);
  --fokus:0 0 0 3px rgba(232,104,38,.45);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:Figtree,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:1.5;color:var(--blekk);background:var(--grunn);-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
h1,h2,h3,p,ul,ol{margin:0}
ul,ol{padding:0}
a{color:inherit}
svg{flex:none}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hopp{position:absolute;left:12px;top:-60px;background:#fff;color:var(--blekk);padding:8px 12px;border-radius:8px;z-index:50;font-weight:600}
.hopp:focus{top:12px}
:focus-visible{outline:none;box-shadow:var(--fokus);border-radius:8px}

/* ── toppen ──────────────────────────────────────────────────────────────── */
.topp{background:var(--navy);color:#fff;position:sticky;top:0;z-index:30}
.topp__inn{max-width:1200px;margin:0 auto;padding:12px 24px;display:grid;grid-template-columns:auto minmax(0,560px) auto;align-items:center;justify-content:space-between;gap:24px}
.topp__logo{display:block;border-radius:6px}
.topp__logo img{height:38px;width:auto}
.sok{position:relative;width:100%}
.sok__ikon{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#9AA7B8;pointer-events:none}
.sok input{width:100%;height:42px;border-radius:10px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.07);color:#fff;font:inherit;font-size:15px;padding:0 14px 0 42px;appearance:none;-webkit-appearance:none}
.sok input::placeholder{color:#A9B4C3}
.sok input:focus{outline:none;border-color:var(--oransje);box-shadow:var(--fokus)}
.sok__treff{position:absolute;left:0;right:0;top:calc(100% + 6px);background:#fff;color:var(--blekk);border-radius:12px;box-shadow:0 12px 32px rgba(15,23,42,.18);list-style:none;padding:6px;max-height:60vh;overflow:auto}
.sok__treff a{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border-radius:8px;text-decoration:none}
.sok__treff a:hover,.sok__treff a:focus-visible{background:var(--grunn)}
.sok__t{font-weight:600;font-size:15px}
.sok__type{font-size:12.5px;color:var(--blekk-3);white-space:nowrap}
.sok__tom{padding:10px 12px;color:var(--blekk-3);font-size:14px}

.profil{position:relative;justify-self:end}
.profil__knapp{display:flex;align-items:center;gap:10px;background:none;border:0;color:#fff;font:inherit;cursor:pointer;padding:6px 8px;border-radius:10px}
.profil__knapp:hover{background:rgba(255,255,255,.07)}
.profil__avatar{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.12);display:grid;place-items:center}
.profil__avatar svg{width:18px;height:18px}
.profil__tekst{display:grid;text-align:left;line-height:1.15}
.profil__navn{font-weight:600;font-size:15px}
.profil__rolle{font-size:12.5px;color:#A9B4C3}
.profil__pil{width:16px;height:16px;color:#A9B4C3}
.profil__meny{position:absolute;right:0;top:calc(100% + 8px);width:280px;background:#fff;color:var(--blekk);border-radius:12px;box-shadow:0 12px 32px rgba(15,23,42,.18);padding:14px}
.profil__over{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--blekk-3);font-weight:700;margin-bottom:6px}
.profil__valg{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;cursor:pointer;font-weight:500}
.profil__valg:hover{background:var(--grunn)}
.profil__valg input{accent-color:var(--oransje-fyll);width:16px;height:16px;margin:0}
.profil__valg input:focus-visible{border-radius:50%}
.profil__merk{font-size:13px;color:var(--blekk-3);margin-top:10px;padding-top:10px;border-top:1px solid var(--linje-2);line-height:1.45}

/* ── utkast-bandet ───────────────────────────────────────────────────────── */
.utkast{background:var(--oransje-flate);border-bottom:1px solid #F6D9C6}
.utkast__inn{max-width:1200px;margin:0 auto;padding:9px 24px;display:flex;gap:10px;align-items:flex-start;font-size:14px;color:#6B3413}
.utkast__inn svg{width:16px;height:16px;margin-top:3px;color:var(--oransje-tekst)}
.utkast a{color:var(--oransje-tekst);font-weight:600;white-space:nowrap}

.hoved{max-width:1200px;margin:0 auto;padding:24px 24px 56px}

/* ── helten ──────────────────────────────────────────────────────────────── */
.helt{display:grid;grid-template-columns:1.05fr 1fr;background:linear-gradient(90deg,#fff 0%,var(--oransje-flate) 100%);border:1px solid var(--linje);border-radius:18px;overflow:hidden;min-height:320px;box-shadow:var(--skygge)}
.helt__tekst{padding:40px 44px;align-self:center}
.helt__over{color:var(--oransje-tekst);font-size:12.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;margin-bottom:14px}
.helt__h1{font-size:clamp(2.25rem, 1.2rem + 3.4vw, 3.75rem);line-height:1.02;letter-spacing:-.025em;font-weight:800;color:var(--navy)}
.helt__h1 span{color:var(--oransje)}
.helt__lede{font-size:clamp(1rem, .9rem + .4vw, 1.2rem);color:#1F2937;margin-top:16px;max-width:36ch}
.helt__strek{display:block;width:44px;height:3px;background:var(--oransje);border-radius:2px;margin:22px 0 14px}
.helt__slagord{font-size:11.5px;letter-spacing:.3em;text-transform:uppercase;color:var(--blekk-2);font-weight:600;line-height:1.9}
.helt__bilde{position:relative;min-height:260px;overflow:hidden}
.helt__bilde picture,.helt__bilde img{position:absolute;inset:0;width:100%;height:100%}
.helt__bilde img{object-fit:cover;object-position:55% 40%}
.helt__bilde::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,var(--oransje-flate) 0%,rgba(255,247,241,.6) 14%,rgba(255,247,241,0) 36%)}
.helt__bilde::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(14,26,44,0) 58%,rgba(14,26,44,.9) 100%)}
.helt__buer{position:absolute;right:-24px;top:-24px;width:210px;height:210px;z-index:2;color:var(--oransje);opacity:.5;pointer-events:none}
.helt__ord{position:absolute;right:26px;bottom:34px;z-index:2;color:#F59A62;font-size:11.5px;letter-spacing:.28em;text-transform:uppercase;font-weight:700;line-height:1.9}
.helt__ord::after{content:"";display:block;width:28px;height:2px;background:var(--oransje);margin-top:8px}

/* ── de fire kortene ─────────────────────────────────────────────────────── */
/* auto-fit og ikke fire faste spalter: en rolle som ser tre kort skal få en
   hel rad, ikke et tomt hull der det fjerde kortet ville stått. */
.kort{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px;margin-top:20px}
.kort__k{background:var(--kort);border:1px solid var(--linje);border-radius:var(--r);padding:24px;display:flex;flex-direction:column;box-shadow:var(--skygge)}
.kort__ikon{width:64px;height:64px;border-radius:50%;background:var(--oransje-lys);display:grid;place-items:center;color:var(--oransje);flex:none}
.kort__ikon svg{width:30px;height:30px}
.kort__t{font-size:1.4rem;line-height:1.15;letter-spacing:-.01em;color:var(--navy);margin-top:16px;font-weight:700}
.kort__d{color:var(--blekk-2);font-size:15px;margin-top:8px;flex:1}
.knapp{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;margin-top:18px;background:var(--oransje-fyll);color:#fff;text-decoration:none;font-weight:600;font-size:15px;padding:10px 18px;border-radius:9px;transition:background .15s}
.knapp:hover{background:var(--oransje-mork)}
.knapp svg{width:17px;height:17px}

.skjult{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:14px;color:var(--blekk-3)}
.skjult svg{width:15px;height:15px}
.skjult a{color:var(--oransje-tekst);font-weight:600}

/* ── panelene ────────────────────────────────────────────────────────────── */
.paneler{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px;align-items:start}
.panel{background:var(--kort);border:1px solid var(--linje);border-radius:var(--r);padding:22px;box-shadow:var(--skygge)}
.panel__topp{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.panel__t{display:flex;align-items:center;gap:12px;font-size:1.2rem;font-weight:700;color:var(--navy)}
.panel__t svg{width:22px;height:22px;color:var(--oransje)}
.panel__lenke{display:inline-flex;align-items:center;gap:6px;color:var(--oransje-tekst);font-weight:600;font-size:14px;text-decoration:none;white-space:nowrap}
.panel__lenke svg{width:15px;height:15px}
.panel__lenke:hover{text-decoration:underline}
.panel h2{font-size:1.1rem;font-weight:700;color:var(--navy);margin-bottom:12px}
.panel .panel__t{margin-bottom:0}
.panel p{color:#374151}
.rader{list-style:none;display:grid;gap:8px}
.rad{display:flex;align-items:center;gap:12px;padding:11px 14px;border:1px solid var(--linje-2);border-radius:var(--r-sm);text-decoration:none;background:#fff;transition:border-color .15s,background .15s}
a.rad:hover{border-color:#F3C7AC;background:#FFFBF8}
.rad--stille{cursor:default}
.rad__ikon{width:18px;height:18px;color:var(--blekk-3)}
.rad__t{flex:1;min-width:0;font-size:15px;font-weight:500}
.rad__d{display:block;font-size:13.5px;color:var(--blekk-3);font-weight:400;margin-top:2px}
.rad__pil{width:17px;height:17px;color:var(--blekk-3)}
.rad__merke{width:34px;height:34px;border-radius:9px;background:var(--oransje-lys);color:var(--oransje-fyll);display:grid;place-items:center;flex:none}
.rad__merke svg{width:18px;height:18px}
.rad__merke b{font-size:18px;font-weight:800;color:var(--oransje)}
.brikker{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.brikke{display:inline-block;font-size:12px;font-weight:600;padding:3px 9px;border-radius:999px;background:var(--grunn);color:var(--blekk-2);white-space:nowrap}
.brikke--eks{background:#FEF3C7;color:#92400E}
.tom{color:var(--blekk-3);font-size:14px;padding:6px 2px}

/* ── undersidene ─────────────────────────────────────────────────────────── */
.stakk{display:grid;gap:18px}
.sti{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--blekk-3);margin-bottom:18px;flex-wrap:wrap}
.sti a{color:var(--blekk-2);text-decoration:none;font-weight:500}
.sti a:hover{text-decoration:underline}
.sti svg{width:14px;height:14px}
.sidetopp{display:flex;gap:20px;align-items:flex-start;background:var(--kort);border:1px solid var(--linje);border-radius:var(--r);padding:26px;box-shadow:var(--skygge)}
.sidetopp h1{font-size:clamp(1.75rem, 1.2rem + 1.6vw, 2.4rem);line-height:1.1;color:var(--navy);letter-spacing:-.02em;font-weight:800}
.sidetopp p{color:var(--blekk-2);margin-top:6px}
.gjelder{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px!important;font-size:14px;color:var(--blekk-3)!important}
.stopp{background:var(--kort);border:1px solid var(--linje);border-radius:var(--r);padding:40px 32px;text-align:center;max-width:620px;margin:32px auto;box-shadow:var(--skygge);display:flex;flex-direction:column;align-items:center}
.stopp__ikon{width:64px;height:64px;border-radius:50%;background:var(--grunn);display:grid;place-items:center;margin-bottom:16px;color:var(--blekk-2)}
.stopp__ikon svg{width:28px;height:28px}
.stopp h1{font-size:1.6rem;color:var(--navy);font-weight:800;line-height:1.2}
.stopp p{color:var(--blekk-2);margin-top:10px}
.stopp__merk{font-size:14px;background:var(--grunn);border-radius:10px;padding:12px 14px;margin-top:16px!important;text-align:left}
.stopp .knapp{align-self:center;margin-top:20px}
.rutine{max-width:760px}
.rutine__tag a{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--oransje-tekst);text-decoration:none}
.rutine h1{font-size:clamp(1.9rem, 1.3rem + 1.8vw, 2.6rem);line-height:1.08;color:var(--navy);letter-spacing:-.02em;font-weight:800;margin-top:6px}
.merk{display:flex;gap:10px;align-items:flex-start;background:#FFFBEB;border:1px solid #FDE68A;color:#78350F;border-radius:10px;padding:12px 14px;font-size:14.5px;margin:16px 0 18px}
.merk svg{width:17px;height:17px;margin-top:3px}
.stakk>.merk{margin:0}
.steg{list-style:none;counter-reset:steg;display:grid;gap:12px}
.steg li{counter-increment:steg;display:grid;grid-template-columns:30px 1fr;gap:12px;align-items:start;color:#374151}
.steg li::before{content:counter(steg);width:30px;height:30px;border-radius:50%;background:var(--oransje-lys);color:var(--oransje-tekst);font-weight:700;font-size:14px;display:grid;place-items:center}
.rutine__meta{font-size:14px;color:var(--blekk-3);margin-top:14px}
.rull{overflow-x:auto}
.tabell{width:100%;border-collapse:collapse;font-size:15px;min-width:460px}
.tabell th,.tabell td{text-align:left;padding:11px 12px;border-bottom:1px solid var(--linje-2)}
.tabell th{font-size:13px;color:var(--blekk-3);font-weight:600}
.tabell td:not(:first-child),.tabell th:not(:first-child){text-align:center}
.ja{color:#047857;font-weight:700}
.nei{color:#9CA3AF}

.bunn{border-top:1px solid var(--linje);background:#fff}
.bunn__inn{max-width:1200px;margin:0 auto;padding:18px 24px;font-size:13.5px;color:var(--blekk-3)}

/* ── smalere skjermer ────────────────────────────────────────────────────── */
@media (max-width:860px){
  .topp__inn{grid-template-columns:auto auto;grid-template-areas:"logo profil" "sok sok";gap:10px 16px;padding:10px 16px}
  .topp__logo{grid-area:logo}
  .topp__logo img{height:30px}
  .profil{grid-area:profil}
  .sok{grid-area:sok}
  .profil__tekst{display:none}
  .utkast__inn,.hoved,.bunn__inn{padding-left:16px;padding-right:16px}
  .helt{grid-template-columns:1fr;background:#fff}
  .helt__bilde{order:-1;min-height:220px}
  .helt__bilde::before{background:linear-gradient(0deg,#fff 0%,rgba(255,255,255,0) 38%)}
  .helt__tekst{padding:4px 22px 28px}
  .paneler{grid-template-columns:1fr}
  .sidetopp{flex-direction:column;gap:14px;padding:20px}
}
@media (max-width:560px){
  .kort{grid-template-columns:1fr}
  .helt__ord,.helt__buer{display:none}
  .panel__topp{flex-wrap:wrap}
  .rad--stille{flex-wrap:wrap}
  .brikker{justify-content:flex-start;width:100%;padding-left:30px}
}
