/* Layout: fast profilkort til venstre, stort indholdspanel med faneblade øverst til højre (Nathalies eget design) */
:root{
  --page:#E8F3DC; --panel:#CFE1B9; --tab:#C2D7A6; --tab-active:#B5C99A;
  --line:#E7F1DB; --accent:#6E8250; --accent-soft:#B9CDA0;
  --ph:#C8E2D6; --ph-ink:#335C48;
  --ink:#141a10; --muted:#7C8C6A; --label:#56604a;
  --font:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0 auto;max-width:1720px;
  background:var(--page);color:var(--ink);font-family:var(--font);font-size:15px;line-height:1.45;
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));padding-block:40px;
  display:grid;grid-template-columns:336px minmax(0,1fr);gap:32px;align-items:start;
}
img{max-width:100%}
ul,ol,menu,dl,dd{margin:0;padding:0;list-style:none}
address{font-style:normal}
h1,h2,h3,h4,p,figure{margin:0}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.view{display:none}.view.on{display:block}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

/* ---------- Profilkort ---------- */
.profile{background:var(--panel);border-radius:28px;padding:48px 32px;text-align:center;position:sticky;top:24px}
.avatar{width:240px;height:240px;border-radius:50%;object-fit:cover;display:block;margin:0 auto 28px}
.profile h1{font-size:32px;font-weight:500;letter-spacing:-.01em}
.role{font-size:24px;margin-top:2px}
.profile hr{border:0;border-top:1px solid var(--line);margin:24px 0}
.facts{display:grid;gap:22px;text-align:left}
.facts li{display:grid;grid-template-columns:50px 1fr;gap:16px;align-items:center}
.ico{width:50px;height:50px;border:2px solid var(--line);border-radius:12px;display:grid;place-items:center}
.ico svg{width:30px;height:30px;stroke:var(--ink);fill:none;stroke-width:1.3}
.facts small,.contact small{display:block;font-size:14px;color:var(--label)}
.facts b{display:block;font-weight:500;font-size:14px;overflow-wrap:anywhere}
.li{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--accent);color:#fff;margin-top:40px;font-weight:600;font-size:22px;text-decoration:none}

/* ---------- Indholdspanel ---------- */
.main{background:var(--panel);border-radius:28px;position:relative;padding:28px 48px 48px;min-width:0}
.tabs{position:absolute;top:0;right:0;display:flex;border-radius:0 28px 0 22px;overflow:hidden}
.tabs button{font:inherit;font-size:24px;background:var(--tab);border:0;border-left:1px solid var(--accent-soft);color:var(--ink);width:192px;height:64px;cursor:pointer}
.tabs button:first-child{border-left:0}
.tabs button:hover{background:var(--tab-active)}
.tabs button[aria-current="page"]{background:var(--tab-active);color:var(--muted);cursor:default}

/* Sprogvalg DK/GB */
.lang{position:absolute;top:80px;right:24px;z-index:1;display:flex;gap:4px;background:var(--tab);border-radius:999px;padding:3px}
.lang button{font:inherit;font-size:12px;font-weight:600;letter-spacing:.04em;display:flex;align-items:center;gap:6px;border:0;background:none;color:var(--ink);padding:5px 10px 5px 6px;border-radius:999px;cursor:pointer}
.lang svg{width:20px;height:14px;border-radius:2px;flex:none}
.lang button[aria-pressed="false"]{color:var(--muted)}
.lang button[aria-pressed="false"] svg{opacity:.55}
.lang button[aria-pressed="true"]{background:var(--page)}
.lang button:hover svg{opacity:1}

h2.title{font-size:40px;font-weight:500;margin:20px 0 40px;display:inline-block;letter-spacing:-.01em}
h2.title::after{content:"";display:block;width:64px;height:3px;background:var(--accent);margin-top:12px}
h3{font-size:30px;font-weight:500;margin:0 0 18px}
.gap-top{margin-top:40px}
.prose{display:grid;gap:14px;font-size:14px}
.lead{margin:0 0 24px;max-width:60ch}

/* Hvad jeg laver */
.services{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
.svc{border:2px solid var(--line);border-radius:22px;padding:30px 28px;display:grid;grid-template-columns:72px 1fr;column-gap:24px;row-gap:8px;align-content:center}
.svc svg{grid-row:span 2;align-self:center;width:66px;height:66px;stroke:var(--ink);fill:none;stroke-width:1.4}
.svc h4{font-size:20px;font-weight:500;align-self:end}
.svc p{font-size:14px}

/* CV-tidslinje */
#v-cv section{margin-bottom:44px}
.timeline{padding-left:40px;position:relative}
.timeline::before{content:"";position:absolute;left:6px;top:10px;bottom:16px;width:2px;background:var(--accent)}
.timeline li{position:relative;margin-bottom:30px}
.timeline li::before{content:"";position:absolute;left:-40px;top:6px;width:14px;height:14px;border-radius:50%;background:var(--accent)}
.timeline h4,.timeline .pos,.timeline .yr{font-size:18px;font-weight:400}
.timeline h4{font-weight:500}
.timeline .yr{color:var(--muted);font-variant-numeric:tabular-nums}
.timeline .desc{margin-top:4px;font-size:13px}
.skills{border:2px solid var(--line);border-radius:22px;padding:24px 40px 30px 26px;display:grid;gap:6px}
.skills dt{font-size:18px}
.skills dd{display:grid;grid-template-columns:repeat(13,1fr);gap:4px;margin-bottom:8px}
.skills dd span{height:6px;border-radius:3px;background:var(--accent-soft)}
.skills dd span.on{background:var(--accent)}

/* Portfolie */
.filters{display:flex;flex-wrap:wrap;gap:8px 48px;margin-bottom:30px}
.filters button{font:inherit;font-size:24px;background:none;border:0;padding:0;color:var(--ink);cursor:pointer}
.filters button[aria-pressed="true"]{color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}
.card{text-decoration:none;color:inherit;display:block;border-radius:22px}
.thumb{aspect-ratio:268/198;max-width:100%;background:var(--ph);border-radius:22px;display:grid;place-items:center;transition:transform .2s}
.card:hover .thumb{transform:translateY(-3px)}
.thumb svg{width:46%;height:auto}
.card h4{font-size:24px;font-weight:500;margin:20px 8px 2px}
.card p{margin:0 8px;font-size:14px}
.tag{display:inline-block;font-size:12px;color:var(--muted);margin:4px 8px 0}

/* Projektside */
.back{position:absolute;left:12px;top:14px;background:none;border:0;cursor:pointer;padding:4px}
.back svg{width:28px;height:28px;stroke:var(--ink);fill:none;stroke-width:1.6}
.proj-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,350px);grid-template-rows:auto auto 1fr;column-gap:40px;margin-bottom:48px}
.proj-head h2.title{margin-top:0;justify-self:start}
.proj-head .intro{font-size:13px}
.proj-head figure{grid-column:2;grid-row:1 / span 3}
.links{font-size:12px;display:grid;gap:12px;margin-top:26px;align-content:start}
.links a{color:var(--ink)}
.ph-big{background:var(--ph);display:grid;place-items:center;aspect-ratio:350/234;max-width:100%}
.ph-big svg{width:46%}
.ph-wide{width:min(468px,100%);margin:28px auto;aspect-ratio:468/312}
.body-text{display:grid;gap:14px;font-size:13px}

/* Kontakt */
.contact{display:grid;gap:18px;max-width:560px}
.contact li{border:2px solid var(--line);border-radius:18px;padding:18px 22px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.contact p{flex:1;min-width:0}
.contact b{font-weight:500;font-size:18px;overflow-wrap:anywhere}
.copy{font:inherit;font-size:14px;background:var(--accent);color:#fff;border:0;border-radius:10px;padding:8px 16px;cursor:pointer}

/* ---------- Responsivt ---------- */
@media (max-width:1300px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tabs button{width:150px;font-size:20px}}
@media (max-width:1050px){
  body{grid-template-columns:minmax(0,1fr)}
  .profile{position:relative;top:auto}
  .services{grid-template-columns:1fr}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  body{padding-block:16px}
  .main{padding:0 20px 32px}
  .tabs{position:static;margin:0 -20px 8px;border-radius:28px 28px 0 0;overflow-x:auto}
  .tabs button{flex:1;width:auto;min-width:0;font-size:15px;height:52px;padding:0 6px;white-space:nowrap}
  .lang{position:static;width:max-content;margin:12px 0 0 auto}
  h2.title{font-size:32px;margin-bottom:28px}
  .proj-head{grid-template-columns:1fr}
  .proj-head figure{grid-column:1;grid-row:auto;margin-top:24px}
  .grid{gap:20px}.card h4{font-size:19px}
  .filters button{font-size:18px}.filters{gap:8px 24px}
  .svc{grid-template-columns:1fr}.svc svg{grid-row:auto}
  .skills{padding:20px}
  .profile h1{font-size:28px}
  .back{top:62px}
}
@media (max-width:460px){.grid{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.thumb{transition:none}}
