/* Dansk Fysisk Selskab – fælles stylesheet (test) */
:root {
  --bg: #0B0710; --fg: #F3EEF9; --muted: #CFC4DD; --alt: #140E1C; --line: #2E2340;
  --card: #16101F; --shadow: none; --label: #C4A3F5; --link: #D8C2F5; --btnline: #5B4A73;
  --tg: #2A1F38; --footer: #060409;
  --purple: #42087D; --purple-2: #561A96; --accent: #7C3AED; --lav: #E9DDFB;
  color-scheme: dark;
}
[data-theme="light"], .light-zone {
  --bg: #FFFFFF; --fg: #1A1023; --muted: #4B4357; --alt: #F7F3FC; --line: #E4D9F3;
  --card: #FFFFFF; --shadow: 0 10px 28px rgba(66, 8, 125, .10); --label: #5B21B6; --link: #5B21B6;
  --btnline: #CDBEE3; --tg: #EFE8F8; --footer: #1E0839;
  color-scheme: light;
}

/* Toppen følger temaet; alt under den er altid lyst */
:root { --hero-bg: #0B0710; }
[data-theme="light"] { --hero-bg: #FFFFFF; }
.light-zone { background: var(--bg); color: var(--fg); }

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; background: var(--bg); color: var(--fg); line-height: 1.5; transition: background .4s, color .4s; }
a { color: var(--link); }
a:hover { color: var(--fg); }
h1, h2, h3, .display { font-family: 'Space Grotesk', sans-serif; }
img { max-width: 100%; }
.container { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: relative; z-index: 2; }
.site-header.bar { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--fg); }
.brand img { width: 52px; height: 52px; }
.brand span { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 21px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--fg); text-decoration: none; padding: 12px 0; }
.main-nav a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }
.header-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lang { font-size: 14px; color: var(--muted); text-decoration: none; padding: 12px 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; border-radius: 8px; padding: 12px 20px; border: 1px solid transparent; cursor: pointer; min-height: 44px; }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #6D28D9; color: #fff; }
.btn-outline { color: var(--fg); border-color: var(--btnline); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--fg); }
.btn-white { background: #fff; color: var(--purple); }
.btn-white:hover { background: var(--lav); color: var(--purple); }

/* Segmented controls (theme toggle, tabs) */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--tg); }
.seg button { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; border: 0; border-radius: 8px; padding: 10px 14px; min-height: 44px; cursor: pointer; background: transparent; color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }

/* Hero (forside) */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); }
.dfs-anim { position: absolute; top: 0; right: 0; width: 60%; height: 100%; pointer-events: none; }
.dfs-anim svg { width: 100%; height: 100%; display: block; }
.dfs-anim .ring, .dfs-anim .core { transform-box: fill-box; transform-origin: center; }
.dfs-anim .ring { animation: dfsRing 8s ease-out infinite; }
.dfs-anim .core { animation: dfsBreath 3s ease-in-out infinite; }
@keyframes dfsRing { 0% { transform: scale(.15); opacity: .9 } 100% { transform: scale(2.4); opacity: 0 } }
@keyframes dfsBreath { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.12) } }
@media (max-width: 860px) { .dfs-anim { width: 100%; opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dfs-anim * { animation: none !important; } }
.hero-body { position: relative; padding-top: 72px; padding-bottom: 112px; }
.hero-text { max-width: 600px; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { margin: 0; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--label); font-weight: 600; }
.hero h1 { margin: 0; font-size: clamp(40px, 6vw, 64px); line-height: 1.02; }
.lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 540px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Tre hovedtilbud */
/* Den mørke top fortsætter ca. 20 % ned over kortene */
.offers { background: linear-gradient(to bottom, var(--hero-bg) 0, var(--hero-bg) 72px, var(--bg) 72px); padding-bottom: 80px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.offer { display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 16px; padding: 32px; text-decoration: none; color: var(--fg); box-shadow: var(--shadow); }
.offer:hover { border-color: var(--accent); color: var(--fg); }
.offer .kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--label); }
.offer .title { font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 700; line-height: 1.1; }
.offer .text { font-size: 16px; line-height: 1.55; color: var(--muted); }
.offer .more { margin-top: auto; font-weight: 600; color: var(--link); }

/* Sektioner */
.section { padding: 72px 0; }
.section-alt { background: var(--alt); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.section-head h2, .section h2 { margin: 0; font-size: 36px; }
.section-head a { font-weight: 600; text-decoration: none; padding: 12px 0; }

.event-card { display: flex; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; text-decoration: none; color: var(--fg); }
.event-card:hover { border-color: var(--accent); color: var(--fg); }
.date { flex: 0 0 64px; height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--purple); color: #fff; border-radius: 10px; }
.date b { font-family: 'Space Grotesk', sans-serif; font-size: 26px; line-height: 1; }
.date span { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.meta { font-size: 13px; font-weight: 600; color: var(--label); }
.event-card .t { font-size: 18px; font-weight: 600; line-height: 1.3; display: block; }
.sub { font-size: 14px; color: var(--muted); }

.news-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--fg); border-top: 3px solid var(--accent); padding-top: 20px; }
.news-card .t { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 600; line-height: 1.25; }
.news-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

.band { background: var(--purple); color: #fff; padding: 72px 0; }
.band p { color: var(--lav); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 32px 0; }
.price { background: var(--purple-2); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.price b { font-size: 16px; }
.price .amount { font-family: 'Space Grotesk', sans-serif; font-size: 36px; font-weight: 700; }
.price span { font-size: 14px; color: var(--lav); }

.support { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; text-decoration: none; color: var(--fg); }
.support:hover { border-color: var(--accent); color: var(--fg); }
.support .t { font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700; }
.support p { margin: 0; color: var(--muted); }
.support .more { font-weight: 600; color: var(--link); }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.link-list { display: flex; flex-direction: column; gap: 10px; }
.link-list h2 { font-size: 28px; margin: 0 0 4px; }
.field { display: flex; gap: 8px; }
input[type="email"], input[type="text"], input[type="search"] { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--btnline); background: var(--card); color: var(--fg); min-width: 0; flex: 1; }
label { font-size: 15px; }

/* Footer */
.site-footer { background: var(--footer); color: var(--lav); font-size: 14px; border-top: 1px solid var(--line); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; line-height: 1.7; }
.site-footer a { color: #D8C2F5; }
.site-footer strong { color: #fff; }
.foot-brand { display: flex; gap: 16px; align-items: flex-start; }
.foot-brand img { width: 48px; height: 48px; }

/* Undersider */
.page-hero { background: var(--purple); color: #fff; padding: 56px 0; }
.page-hero h1 { margin: 0; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; }
.page-hero p { color: var(--lav); font-size: 18px; line-height: 1.6; max-width: 720px; }
.page-hero .eyebrow { color: #D8C2F5; }
.badge { display: inline-block; font-size: 13px; font-weight: 600; color: var(--purple); background: var(--lav); padding: 6px 10px; border-radius: 999px; }
.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.split > .grow { flex: 1 1 520px; min-width: 0; }
.split > .side { flex: 1 1 340px; min-width: 0; }
.info-box { background: var(--purple-2); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 10px; line-height: 1.55; }
.info-box span { color: var(--lav); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.chip { font: inherit; font-size: 14px; font-weight: 500; border-radius: 999px; padding: 11px 16px; cursor: pointer; background: var(--card); color: var(--fg); border: 1px solid var(--btnline); min-height: 44px; }
.chip[aria-pressed="true"] { background: var(--purple); color: #fff; border-color: var(--purple); }
.rows { border-top: 1px solid var(--line); }
.row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.row:hover { color: var(--fg); }
.row .body { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.row .t { font-size: 20px; font-weight: 600; }
.row .go { font-weight: 600; color: var(--link); }
.empty { padding: 32px 0; color: var(--muted); }

.filters { flex: 1 1 240px; display: flex; flex-direction: column; gap: 24px; }
.filters h2 { margin: 0; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-family: Inter, sans-serif; }
.filter-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.filter { font: inherit; font-size: 15px; text-align: left; border-radius: 8px; padding: 11px 14px; cursor: pointer; background: var(--card); color: var(--fg); border: 1px solid var(--line); min-height: 44px; }
.filter[aria-pressed="true"] { background: var(--purple); color: #fff; border-color: var(--purple); font-weight: 600; }
.results { flex: 999 1 560px; min-width: 0; }
.article { display: flex; flex-direction: column; gap: 8px; padding: 20px 0; border-top: 1px solid var(--line); }
.article .t { font-size: 20px; font-weight: 600; color: var(--fg); text-decoration: none; line-height: 1.3; }
.article .doi { font-family: ui-monospace, monospace; color: var(--muted); font-size: 14px; }
.article .links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.search-big { font-size: 17px !important; padding: 16px 18px !important; background: #fff !important; color: #1A1023 !important; border-color: #A99BBC !important; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow); }
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.type { font: inherit; text-align: left; color: var(--fg); border-radius: 10px; padding: 16px; cursor: pointer; background: var(--card); border: 2px solid var(--line); }
.type[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.type b { display: block; }
.type span { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700; margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form-grid > div { display: flex; flex-direction: column; gap: 6px; }
.form-grid label { font-size: 14px; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.check input { width: 20px; height: 20px; }
.ok { margin: 0; padding: 14px 16px; background: #ECFDF5; color: #065F46; border-radius: 8px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.stat .k { font-size: 14px; color: var(--muted); }
.stat .v { font-size: 22px; font-weight: 600; }
.stat.dark { background: var(--purple); color: #fff; border-color: var(--purple); }
.stat.dark .k, .stat.dark .sub { color: var(--lav); }
.stat.dark a { color: #D8C2F5; }
.status { align-self: flex-start; font-size: 13px; font-weight: 600; color: #065F46; background: #D1FAE5; padding: 6px 10px; border-radius: 999px; }
.menu-list { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 24px; }
.menu-list a { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg); font-weight: 500; }
.menu-list a:last-child { border-bottom: 0; }
[hidden] { display: none !important; }
.test-banner { background: #FDE68A; color: #3B2600; text-align: center; font-size: 13px; padding: 6px 12px; }
