/* ============================================
   AI FORKLARET — Fælles stylesheet
   Farver: #102A43 (mørk), #2CB1BC (teal), #F7FAFC (lys), #486581 (grå-blå)
   Fonte: Manrope (headings), Inter (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:    #102A43;
  --teal:    #2CB1BC;
  --teal-light: #E0F5F6;
  --bg:      #F7FAFC;
  --white:   #FFFFFF;
  --gray:    #486581;
  --gray-light: #829AB1;
  --border:  #D9E2EC;
  --border-light: #EEF2F6;
  --text:    #243B53;
  --max:     1100px;
  --radius:  16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: 'Manrope', sans-serif; color: var(--dark); line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin: 2.2rem 0 0.8rem; }
h3 { font-size: 19px; font-weight: 700; }
p  { margin-bottom: 1rem; color: var(--text); }
a  { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: 0.3rem; }

/* ---- Layout helpers ---- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section    { padding: clamp(48px, 7vw, 96px) 0; }
.section-sm { padding: clamp(32px, 4vw, 56px) 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 12px; border: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-decoration: none; line-height: 1;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); text-decoration: none; }
.btn-primary { background: var(--dark); color: var(--white); }
.btn-primary:hover { background: #1a3a56; color: var(--white); }
.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--dark); }
.btn-outline:hover { background: var(--dark); color: var(--white); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: #24979f; color: var(--white); }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 34px; height: 34px; }
.logo-text { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 18px; color: var(--dark); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 14px;
  color: var(--gray); padding: 8px 14px; border-radius: 8px;
  transition: color 0.15s, background 0.15s; text-decoration: none;
}
.nav a:hover { color: var(--dark); background: var(--bg); }
.nav a.active { color: var(--dark); border-bottom: 2px solid var(--teal); border-radius: 0; padding-bottom: 6px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); margin: 5px 0; border-radius: 2px; transition: 0.2s; }

/* ---- Footer ---- */
.site-footer { background: var(--dark); color: #9FB3C8; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { font-size: 14px; color: #9FB3C8; margin-top: 12px; line-height: 1.6; }
.footer-col h4 { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: #9FB3C8; margin-bottom: 10px; text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; color: #627D98; }

/* ---- Cards ---- */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; display: block; color: inherit;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(16,42,67,0.1); text-decoration: none; }
.card-img { background: var(--teal-light); height: 180px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.card-img svg { width: 64px; height: 64px; color: var(--teal); opacity: 0.8; }
.card-img-dots { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(44,177,188,0.15) 1px, transparent 1px); background-size: 24px 24px; }
.card-body { padding: 20px 22px 22px; }
.card-category { display: inline-block; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); background: var(--teal-light); padding: 4px 10px; border-radius: 6px; margin-bottom: 12px; }
.card-meta { font-size: 13px; color: var(--gray-light); margin-bottom: 8px; }
.card h3 { font-size: 17px; margin: 0 0 8px; color: var(--dark); line-height: 1.3; }
.card p { font-size: 14px; color: var(--gray); margin: 0 0 14px; }
.card-link { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 13px; color: var(--teal); display: inline-flex; align-items: center; gap: 5px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ---- Category badge ---- */
.eyebrow { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; display: block; }

/* ---- Newsletter strip ---- */
.newsletter { background: var(--dark); border-radius: var(--radius); padding: clamp(36px, 5vw, 56px) clamp(28px, 5vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.newsletter-text h2 { color: var(--white); margin: 0 0 10px; font-size: clamp(22px, 3vw, 28px); }
.newsletter-text p  { color: #9FB3C8; margin: 0; font-size: 15px; }
.newsletter-form { display: flex; gap: 10px; flex-shrink: 0; }
.newsletter-form input {
  font-family: 'Inter', sans-serif; font-size: 15px; color: var(--dark);
  background: var(--white); border: none; border-radius: 10px;
  padding: 13px 18px; width: 240px; outline: none;
}
.newsletter-form input:focus { box-shadow: 0 0 0 3px rgba(44,177,188,0.4); }

/* ---- Info box ---- */
.info-box { background: var(--teal-light); border-left: 3px solid var(--teal); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 1.5rem 0; }
.info-box .info-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 13px; color: var(--teal); margin-bottom: 4px; }
.info-box p { margin: 0; font-size: 15px; color: var(--text); }

/* ---- Article body ---- */
.article-body { max-width: 720px; }
.article-body h2 { font-size: clamp(20px, 2.5vw, 26px); margin-top: 2.5rem; }
.article-body p { font-size: 17px; line-height: 1.75; color: var(--text); }
.article-body ul li, .article-body ol li { font-size: 17px; line-height: 1.7; color: var(--text); }
.article-body ul { list-style: none; padding: 0; }
.article-body ul li { padding-left: 1.6rem; position: relative; margin-bottom: 0.6rem; }
.article-body ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; background: var(--teal); border-radius: 50%; }

/* ---- Hero icon illustration ---- */
.hero-illustration { background: var(--teal-light); border-radius: 20px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.hero-illustration .dots { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(44,177,188,0.2) 1.5px, transparent 1.5px); background-size: 28px 28px; }

/* ---- Feature boxes ---- */
.feature-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.feature-box .icon-wrap { width: 46px; height: 46px; background: var(--teal-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--teal); }
.feature-box h3 { font-size: 16px; margin: 0 0 8px; }
.feature-box p { font-size: 14px; color: var(--gray); margin: 0; }

/* ---- Breadcrumb ---- */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-light); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--gray-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { color: var(--border); }

/* ---- Article header ---- */
.article-hero-img { background: var(--teal-light); border-radius: var(--radius); height: clamp(180px, 30vw, 320px); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; margin: 28px 0 40px; }
.article-hero-img .dots { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(44,177,188,0.18) 1.5px, transparent 1.5px); background-size: 26px 26px; }
.article-hero-img svg { width: 80px; height: 80px; color: var(--teal); position: relative; z-index: 1; }
.article-author { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.article-author-avatar { width: 38px; height: 38px; background: var(--teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 14px; }
.article-author-info .name { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 14px; color: var(--dark); }
.article-author-info .date { font-size: 13px; color: var(--gray-light); }

/* ---- TOC ---- */
.toc { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 24px; margin: 32px 0; }
.toc h4 { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-light); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { padding: 0; margin: 0; }
.toc a { font-size: 14px; color: var(--teal); display: block; padding: 4px 0; }
.toc a:hover { text-decoration: underline; }

/* ---- Related articles ---- */
.related { background: var(--white); border-top: 1px solid var(--border-light); padding: clamp(40px, 5vw, 64px) 0; margin-top: 56px; }

/* ---- Ordbog ---- */
.term-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.term-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: transparent; border: none; cursor: pointer; text-align: left; transition: background 0.15s; }
.term-head:hover { background: var(--bg); }
.term-head h3 { font-size: 18px; margin: 0; }
.term-chevron { color: var(--teal); transition: transform 0.22s; flex-shrink: 0; }
.term-item.open .term-chevron { transform: rotate(180deg); }
.term-def { display: none; padding: 0 22px 20px; }
.term-item.open .term-def { display: block; }
.alpha-bar { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0; }
.alpha-btn { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 14px; color: var(--gray); background: var(--white); border: 1.5px solid var(--border); padding: 7px 0; width: 38px; height: 36px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.alpha-btn:hover:not(:disabled) { border-color: var(--teal); color: var(--dark); }
.alpha-btn.active { background: var(--dark); border-color: var(--dark); color: var(--white); }
.alpha-btn:disabled { opacity: 0.3; cursor: default; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gray-light); width: 20px; height: 20px; }
.search-input { width: 100%; font-family: 'Inter', sans-serif; font-size: 16px; color: var(--dark); background: var(--white); border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 18px 14px 48px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.search-input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(44,177,188,0.14); }

/* ---- Kontakt form ---- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 14px; color: var(--dark); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; font-family: 'Inter', sans-serif; font-size: 15px; color: var(--dark);
  background: var(--white); border: 1.5px solid var(--border); border-radius: 10px;
  padding: 12px 16px; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(44,177,188,0.14); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 13px; color: var(--gray-light); margin-top: 8px; }

/* ---- Filters / tabs ---- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.filter-btn { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 14px; color: var(--gray); background: var(--white); border: 1.5px solid var(--border); padding: 9px 18px; border-radius: 10px; cursor: pointer; transition: all 0.15s; }
.filter-btn:hover { border-color: var(--teal); color: var(--dark); }
.filter-btn.active { background: var(--dark); border-color: var(--dark); color: var(--white); }

/* ---- Page hero ---- */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 52px); }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lead { font-size: clamp(16px, 2vw, 19px); color: var(--gray); max-width: 600px; line-height: 1.65; }

/* ---- Nyheder featured ---- */
.featured-article { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 1fr 1.2fr; }
.featured-article .feat-img { background: var(--teal-light); min-height: 260px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.featured-article .feat-img .dots { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(44,177,188,0.18) 1.5px, transparent 1.5px); background-size: 26px 26px; }
.featured-article .feat-img svg { width: 80px; height: 80px; color: var(--teal); position: relative; z-index: 1; }
.featured-article .feat-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.featured-article .feat-body h2 { font-size: clamp(22px, 3vw, 32px); margin: 12px 0 16px; }

/* ---- Om page ---- */
.om-values { background: var(--dark); border-radius: var(--radius); padding: clamp(32px, 4vw, 48px); color: var(--white); }
.om-values h3 { color: var(--white); font-size: 20px; margin-bottom: 12px; }
.om-values p { color: #9FB3C8; font-size: 16px; }
.om-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.om-tag { background: var(--white); border: 1px solid var(--border); color: var(--dark); font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 8px; }

/* ---- Privatliv ---- */
.toc-sidebar { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; position: sticky; top: 90px; }
.toc-sidebar h4 { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--gray-light); margin-bottom: 12px; }
.toc-sidebar a { display: block; font-size: 14px; color: var(--teal); padding: 4px 0; }
.toc-sidebar a:hover { text-decoration: underline; }
.two-col-layout { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 12px 16px; gap: 2px; }
  .hamburger { display: block; }
  .site-header { position: relative; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .newsletter { flex-direction: column; gap: 24px; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input { width: 100%; }
  .featured-article { grid-template-columns: 1fr; }
  .two-col-layout { grid-template-columns: 1fr; }
  .toc-sidebar { position: static; }
}
@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---- Focus ---- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
