/* =========================================================
   iMagazine – frontend
   Mørk masthead, varm papirflade, lime accent og
   høj-kontrast serif (Playfair Display + Source Serif 4).
========================================================= */

:root {
	--im-night: #0d1215;
	--im-night-2: #161d21;
	--im-paper: #f6f3ec;
	--im-paper-2: #ece7dc;
	--im-card: #fbfaf6;
	--im-ink: #000;
	--im-ink-2: #000;
	--im-muted: #000;
	--im-line: #d9d3c6;
	--im-lime: #d4ef6b;
	--im-lime-soft: #e7f5b0;
	--im-lime-ink: #7d9a14;
	--im-display: "Playfair Display", "Didot", Georgia, serif;
	--im-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--im-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	--im-wrap: 1280px;
	--im-gutter: 40px;
}

/* ---------- Tema-nulstilling ---------- */

html, body.im-frontend { margin: 0; padding: 0; width: 100%; max-width: 100%; overflow-x: hidden; }

body.im-frontend {
	background: var(--im-paper);
	color: var(--im-ink);
	font-family: var(--im-serif);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
body.im-frontend *, body.im-frontend *::before, body.im-frontend *::after { box-sizing: border-box; }
body.im-frontend a { color: inherit; }
body.im-frontend img { max-width: 100%; height: auto; display: block; }
body.im-frontend h1, body.im-frontend h2, body.im-frontend h3, body.im-frontend h4 {
	font-family: var(--im-display);
	color: inherit;
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: 1.05;
	margin: 0;
}
body.im-frontend p { margin: 0; }
body.im-frontend :focus-visible { outline: 3px solid var(--im-lime); outline-offset: 3px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.im-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--im-lime); color: var(--im-ink) !important; padding: 10px 14px; }
.im-skip:focus { left: 8px; }

.im-wrap { width: 100%; max-width: var(--im-wrap); margin: 0 auto; padding-left: var(--im-gutter); padding-right: var(--im-gutter); }
.im-dot { color: var(--im-lime); }
.im-center { text-align: center; }

.im-kicker {
	font-family: var(--im-ui);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--im-ink-2);
}

/* ---------- Knapper og links ---------- */

.im-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 0 24px;
	border: 1.5px solid transparent; border-radius: 4px;
	font-family: var(--im-display); font-size: 17px; font-weight: 700;
	text-decoration: none !important; cursor: pointer;
	transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.im-btn:hover { transform: translateY(-1px); }
.im-btn-lime { background: var(--im-lime); color: var(--im-ink) !important; border-color: var(--im-lime); }
.im-btn-lime:hover { background: #c6e553; border-color: #c6e553; }
.im-btn-outline { background: transparent; color: var(--im-ink) !important; border-color: var(--im-ink); }
.im-btn-outline:hover { background: var(--im-ink); color: #fff !important; }
.im-btn-pill { border-radius: 999px; }
.im-btn-sm { min-height: 40px; font-size: 15px; padding: 0 16px; }

.im-arrow-link {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 14px; text-decoration: none !important;
	border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.im-arrow-link .im-icon { transition: transform .15s ease; }
.im-arrow-link:hover .im-icon { transform: translateX(3px); }

.im-pill {
	display: inline-block; margin-top: 10px; padding: 4px 11px;
	border-radius: 999px; background: var(--im-lime-soft);
	font-family: var(--im-serif); font-size: 12.5px; line-height: 1.3; color: var(--im-ink);
}
.im-adtag {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
	font-family: var(--im-ui); font-size: 11px; font-weight: 600; color: var(--im-ink-2);
}
.im-adtag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--im-lime-ink); }

.im-note { margin-top: 14px; font-style: italic; font-size: 14px; color: var(--im-muted); }

/* ---------- Masthead ---------- */

.im-mast {
	position: relative;
	color: #fff;
	background-color: var(--im-night);
	background-image:
		linear-gradient(180deg, rgba(13,18,21,.72) 0%, rgba(13,18,21,.55) 45%, rgba(13,18,21,.92) 100%),
		var(--im-mast-bg, none);
	background-size: cover;
	background-position: center;
	isolation: isolate;
}
.im-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }

.im-logo {
	font-family: var(--im-display); font-weight: 800; font-size: 34px; letter-spacing: -.02em;
	text-decoration: none !important; color: #fff !important; white-space: nowrap;
}
.im-logo-i { color: var(--im-lime); font-style: italic; margin-right: 1px; }
.im-logo-sm { font-size: 26px; }

.im-nav { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.im-nav a { text-decoration: none; color: #fff; opacity: 1; padding: 6px 0; border-bottom: 1px solid transparent; }
.im-nav a:hover, .im-nav a.is-active { opacity: 1; border-bottom-color: var(--im-lime); }
.im-nav-news::after { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--im-lime); margin-left: 12px; vertical-align: middle; }

.im-burger { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.im-burger span:not(.screen-reader-text) { display: block; height: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.im-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.im-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.im-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Forside-hero */
.im-hero { text-align: center; padding-top: 10px; padding-bottom: 34px; }
.im-hero-title { font-size: clamp(46px, 7.4vw, 104px) !important; font-weight: 900 !important; letter-spacing: -.035em !important; line-height: .98 !important; }
.im-hero-intro { margin-top: 14px; font-size: clamp(18px, 2vw, 26px); color: #fff; }

.im-fan {
	display: flex; justify-content: center; align-items: flex-end;
	margin: 38px auto 0; max-width: 1180px; perspective: 1400px;
}
.im-fan-item {
	position: relative; flex: 0 1 212px; margin: 0 -8px;
	transition: transform .25s ease;
}
.im-fan-item:nth-child(1) { transform: rotateY(12deg) translateY(12px); z-index: 1; }
.im-fan-item:nth-child(2) { transform: rotateY(6deg) translateY(4px); z-index: 2; }
.im-fan-item:nth-child(3) { z-index: 3; }
.im-fan-item:nth-child(4) { transform: rotateY(-6deg) translateY(4px); z-index: 2; }
.im-fan-item:nth-child(5) { transform: rotateY(-12deg) translateY(12px); z-index: 1; }
.im-fan-item:hover { transform: translateY(-10px); z-index: 20; }
.im-fan .im-cover { box-shadow: 0 30px 60px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.06); }

.im-hero-strip {
	display: flex; align-items: center; justify-content: center; gap: 22px;
	margin-top: 46px; font-size: 15px; letter-spacing: .08em; color: #fff;
}
.im-hero-strip::before, .im-hero-strip::after { content: ""; flex: 0 1 90px; height: 1px; background: rgba(255,255,255,.45); }

/* Side-hoved (forside 2, tilmelding) */
.im-pagehead { text-align: center; padding-top: 4px; padding-bottom: 30px; }
.im-pagehead h1 { font-size: clamp(38px, 5vw, 64px) !important; font-weight: 900 !important; }
.im-pagehead p { margin-top: 8px; font-size: 19px; font-weight: 600; }

/* Magasinvælger */
.im-picker { padding-bottom: 20px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; }
.im-picker-title { font-size: 26px !important; margin-bottom: 14px !important; }
.im-picker-list { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(84px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: thin; }
.im-picker-list a { display: block; text-decoration: none; text-align: center; color: #fff; }
.im-picker-cover { position: relative; display: block; border: 2px solid transparent; transition: border-color .15s ease; }
.im-picker-cover .im-cover { aspect-ratio: 4 / 5; box-shadow: none; }
.im-picker-cover .im-cover-title { font-size: 11px; }
.im-picker-cover .im-cover-brand, .im-picker-cover .im-cover-tag { display: none; }
.im-picker-list a:hover .im-picker-cover { border-color: rgba(212,239,107,.6); }
.im-picker-list .is-current .im-picker-cover { border-color: var(--im-lime); }
.im-picker-cover em { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); background: var(--im-lime); color: var(--im-ink); font-style: normal; font-family: var(--im-ui); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; }
.im-picker-name { display: block; margin-top: 7px; font-size: 12px; line-height: 1.2; opacity: 1; }

/* ---------- Omslag ---------- */

.im-cover { position: relative; aspect-ratio: 5 / 7; overflow: hidden; background: var(--im-paper-2); box-shadow: 0 14px 30px -14px rgba(20, 15, 5, .45); }
.im-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.im-cover-type {
	display: flex; flex-direction: column; height: 100%; padding: 9% 9% 10%;
	background: linear-gradient(160deg, rgba(255,255,255,.14), transparent 55%), var(--im-cover);
	color: var(--im-cover-ink);
}
.im-cover-brand { font-family: var(--im-display); font-size: 12px; font-weight: 700; }
.im-cover-brand .im-logo-i { color: inherit; }
.im-cover-title { margin-top: 12%; font-family: var(--im-display); font-weight: 900; font-size: clamp(20px, 2.6vw, 38px); line-height: .92; letter-spacing: -.02em; text-transform: uppercase; overflow-wrap: anywhere; }
.im-cover-tag { margin-top: auto; font-size: 13px; line-height: 1.25; opacity: 1; }
.im-stamp {
	position: absolute; right: 8%; bottom: 22%;
	padding: 4px 12px; border: 3px solid #fff; color: #fff; background: rgba(200, 20, 30, .9);
	font-family: var(--im-ui); font-weight: 900; font-size: clamp(11px, 1.6vw, 20px); letter-spacing: .08em; text-transform: uppercase;
	transform: rotate(-12deg); box-shadow: 0 4px 12px rgba(0,0,0,.35);
}

/* ---------- Forside: kort ---------- */

.im-section { padding: 70px 0; }
.im-section-tight { padding: 40px 0 56px; }
.im-section-title { text-align: center; font-size: clamp(36px, 4.6vw, 58px) !important; font-weight: 900 !important; margin-bottom: 36px !important; }

.im-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 44px 28px; }
.im-card { display: flex; flex-direction: column; align-items: flex-start; }
.im-card-cover { display: block; width: 100%; }
.im-card-cover .im-cover { transition: transform .2s ease, box-shadow .2s ease; }
.im-card-cover:hover .im-cover { transform: translateY(-5px); box-shadow: 0 26px 44px -20px rgba(20,15,5,.6); }
.im-card h3 { margin-top: 18px !important; font-size: 17px !important; font-weight: 700 !important; letter-spacing: .01em !important; }
.im-card h3 a { text-decoration: none; }
.im-card p { margin-top: 5px; font-size: 14px; color: var(--im-ink-2); line-height: 1.4; }
.im-card.is-concept p { margin-top: 18px; }
.im-card .im-arrow-link { margin-top: auto; padding-top: 14px; border-bottom: 0; }
.im-card .im-arrow-link span, .im-card .im-arrow-link { text-decoration: underline !important; text-underline-offset: 4px; }

/* ---------- Footer og tilmeldingsbånd ---------- */

.im-foot {
	position: relative; color: #fff;
	background-color: var(--im-night);
	background-image: linear-gradient(90deg, rgba(13,18,21,.94) 0%, rgba(13,18,21,.75) 45%, rgba(13,18,21,.35) 100%), var(--im-foot-bg, none);
	background-size: cover; background-position: center right;
}
.im-band { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding: 64px 0 46px; border-bottom: 1px solid rgba(255,255,255,.14); scroll-margin-top: 30px; }
.im-band h2 { font-size: clamp(32px, 4vw, 52px) !important; font-weight: 800 !important; }
.im-band-copy p { margin-top: 10px; font-size: 18px; color: #fff; }
.im-band-row { display: flex; gap: 0; align-items: stretch; }
.im-band-row input {
	flex: 1; min-width: 0; min-height: 54px; padding: 0 16px;
	background: rgba(13,18,21,.65); border: 1px solid rgba(255,255,255,.55); border-right: 0; border-radius: 0;
	color: #fff; font: inherit; font-size: 16px;
}
.im-band-row input::placeholder { color: #fff; }
.im-band-row .im-btn { margin-left: -26px; position: relative; white-space: nowrap; }
.im-band-fine { margin-top: 10px; font-size: 12.5px; color: #fff; }
.im-band-fine a { color: #fff; }
.im-interests { border: 0; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.im-interest { cursor: pointer; }
.im-interest input { position: absolute; opacity: 0; pointer-events: none; }
.im-interest span { display: inline-block; padding: 7px 13px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; font-size: 13.5px; transition: background .15s ease, color .15s ease; }
.im-interest input:checked + span { background: var(--im-lime); border-color: var(--im-lime); color: var(--im-ink); }
.im-interest input:focus-visible + span { outline: 3px solid var(--im-lime); outline-offset: 2px; }

.im-foot-bar { display: grid; grid-template-columns: auto 1fr auto auto; gap: 34px; align-items: center; padding-top: 26px; padding-bottom: 30px; }
.im-foot-nav { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; font-size: 14px; }
.im-foot-nav a { text-decoration: none; }
.im-foot-nav a:hover { text-decoration: underline; }
.im-socials { display: flex; gap: 16px; }
.im-socials a { color: #fff; opacity: 1; }
.im-socials a:hover { opacity: 1; color: var(--im-lime); }
.im-foot-note { padding-left: 16px; border-left: 1px solid var(--im-lime); max-width: 230px; font-size: 12px; line-height: 1.35; }
.im-foot-note strong { display: block; font-family: var(--im-ui); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 3px; }
.im-foot-note span { font-style: italic; color: #fff; }

.im-notice { padding: 12px 15px; font-size: 14px; font-weight: 600; margin-bottom: 14px; border-radius: 4px; }
.im-notice-ok { background: var(--im-lime-soft); color: #253006; }
.im-notice-error { background: #fbe0e0; color: #6b1515; }
.im-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Forside 2: liste ---------- */

.im-list-wrap { padding-top: 26px; padding-bottom: 40px; max-width: 1040px; }
.im-filter-note { margin-bottom: 14px; font-size: 14px; }
.im-list { list-style: none; margin: 0; padding: 0; }
.im-row { display: grid; grid-template-columns: 170px 54px minmax(0, 1fr); gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--im-line); }
.im-row:first-child { border-top: 1px solid var(--im-line); }
.im-row-cover .im-cover { aspect-ratio: 9 / 10; }
.im-row-no { font-family: var(--im-display); font-size: 22px; font-weight: 700; color: var(--im-lime-ink); padding-top: 2px; }
.im-row-body .im-kicker { margin-top: 3px; }
.im-row-body h2 { margin-top: 6px !important; font-size: clamp(26px, 2.7vw, 34px) !important; font-weight: 900 !important; }
.im-row-body h2 a { text-decoration: none; }
.im-row-tagline { margin-top: 2px !important; font-family: var(--im-display); font-size: 19px; font-weight: 700; }
.im-row-text { margin-top: 6px !important; font-size: 15.5px; color: var(--im-ink-2); max-width: 680px; }
.im-facts-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14.5px; }
.im-facts-list li { display: flex; gap: 10px; align-items: center; }
.im-facts-list .im-icon { flex: none; color: var(--im-ink); }
.im-row-links { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; margin-top: 14px; }
.im-row-links .im-adtag { margin-top: 0; }

/* ---------- Magasinside ---------- */

.im-preview-bar { background: #fff3cd; color: #6b4e00; text-align: center; padding: 10px 20px; font-family: var(--im-ui); font-size: 13px; font-weight: 600; }

.im-adhero { padding: 34px 0 0; }
.im-adhero-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.im-adhero-cover { margin: 0; position: relative; }
.im-adhero-cover a { display: block; position: relative; }
.im-adhero-cover .im-cover { aspect-ratio: 1 / 1; box-shadow: 0 30px 50px -26px rgba(20,15,5,.6); }
.im-adhero-cover .im-cover-title { font-size: clamp(36px, 5vw, 72px); }
.im-flip-badge {
	position: absolute; right: 22px; bottom: 22px; width: 62px; height: 62px; border-radius: 50%;
	border: 2px solid #fff; color: #fff; display: flex; align-items: center; justify-content: center;
	background: rgba(0,0,0,.3); backdrop-filter: blur(4px); transition: transform .2s ease;
}
.im-adhero-cover a:hover .im-flip-badge { transform: scale(1.08); }
.im-adhero-cover figcaption { margin-top: 10px; text-align: center; font-style: italic; font-size: 14px; color: var(--im-muted); }

.im-adhero-copy { padding-top: 8px; }
.im-adhero-copy h1 { margin-top: 10px !important; font-size: clamp(34px, 4.2vw, 56px) !important; font-weight: 900 !important; }
.im-adhero-intro { margin-top: 12px !important; font-size: 21px; line-height: 1.45; }

.im-stats { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 26px 34px; }
.im-stats li { display: flex; gap: 12px; align-items: center; font-size: 14px; line-height: 1.25; }
.im-stats strong { display: block; font-family: var(--im-display); font-size: 20px; }
.im-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.im-factrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 40px 0 0; padding: 22px 0; border-top: 1px solid var(--im-line); border-bottom: 1px solid var(--im-line); }
.im-factrow > div { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; padding: 0 22px; align-items: start; }
.im-factrow > div + div { border-left: 1px solid var(--im-line); }
.im-factrow .im-icon { grid-row: span 2; margin-top: 2px; }
.im-factrow dt { font-family: var(--im-display); font-size: 17px; font-weight: 700; }
.im-factrow dd { margin: 2px 0 0; font-size: 15px; color: var(--im-ink-2); line-height: 1.35; }

/* Præsentation */
.im-pres { max-width: 900px; padding-top: 50px; }
.im-toc { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 30px; }
.im-toc a { font-family: var(--im-ui); font-size: 12px; font-weight: 600; text-decoration: none; padding: 6px 12px; border: 1px solid var(--im-line); border-radius: 999px; background: var(--im-card); }
.im-toc a:hover { border-color: var(--im-ink); }
.im-pres-section { padding: 0 0 38px; margin-bottom: 38px; border-bottom: 1px solid var(--im-line); scroll-margin-top: 30px; }
.im-pres-section:last-child { border-bottom: 0; }
.im-pres-section h2, .im-h2 { font-size: clamp(30px, 3.4vw, 42px) !important; font-weight: 900 !important; margin-bottom: 16px !important; }
.im-h3 { font-size: clamp(24px, 2.6vw, 32px) !important; font-weight: 800 !important; margin: 34px 0 18px !important; }
.im-pres-lead { font-family: var(--im-display); font-size: 22px; font-weight: 600; line-height: 1.35; margin-bottom: 14px !important; }
.im-prose { font-size: 17.5px; line-height: 1.7; color: var(--im-ink-2); max-width: 760px; }
.im-prose p + p, .im-prose ul + p, .im-prose p + ul { margin-top: 1em; }
.im-prose ul { margin: 0; padding-left: 1.2em; }
.im-prose li { margin: .25em 0; }
.im-prose li::marker { color: var(--im-lime-ink); }
.im-pres-sub { margin-top: 26px; }
.im-pres-sub h3 { font-size: 21px !important; font-weight: 700 !important; margin-bottom: 8px !important; }
.im-pres-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 18px; }
.im-pres-facts div { padding: 14px 16px; background: var(--im-card); border: 1px solid var(--im-line); }
.im-pres-facts dt { font-family: var(--im-ui); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--im-muted); }
.im-pres-facts dd { margin: 4px 0 0; font-family: var(--im-display); font-size: 17px; font-weight: 700; line-height: 1.25; }
.im-pres-products { padding-left: 1.2em; }

.im-faq details { border-top: 1px solid var(--im-line); }
.im-faq details:last-child { border-bottom: 1px solid var(--im-line); }
.im-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; font-family: var(--im-display); font-size: 19px; font-weight: 700; }
.im-faq summary::-webkit-details-marker { display: none; }
.im-faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--im-lime-ink); }
.im-faq details[open] summary::after { content: "–"; }
.im-faq .im-prose { padding-bottom: 16px; }

/* Hvem vil du nå? */
.im-band-light { background: var(--im-paper-2); padding: 56px 0; scroll-margin-top: 30px; }
.im-reach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.im-reach-card { display: flex; flex-direction: column; background: var(--im-card); padding: 22px 22px 0; overflow: hidden; }
.im-reach-card h4 { display: flex; gap: 12px; align-items: center; font-size: 21px !important; font-weight: 700 !important; }
.im-reach-card p { margin: 10px 0 14px 38px; font-size: 15.5px; line-height: 1.4; color: var(--im-ink-2); }
.im-reach-card img { height: auto; margin: auto -22px 0; width: calc(100% + 44px); max-width: none; aspect-ratio: 16 / 7; object-fit: cover; }
.im-reach-card .im-select, .im-reach-card .im-arrow-link { margin: 0 0 18px 38px; }
.im-reach-card.is-lime { background: var(--im-lime-soft); }
.im-select { width: calc(100% - 38px); min-height: 44px; padding: 0 12px; border: 1px solid var(--im-line); border-radius: 4px; background: #fff; font: inherit; font-size: 15px; }

/* Vælg din annonce */
.im-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.im-product { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 28px; }
.im-product + .im-product { border-left: 1px solid var(--im-line); }
.im-product h4 { font-size: 26px !important; font-weight: 800 !important; }
.im-product > p { margin-top: 4px !important; font-size: 15.5px; color: var(--im-ink-2); }
.im-product img { height: auto; margin: 16px auto 14px; width: 100%; max-width: 330px; aspect-ratio: 4 / 3; object-fit: contain; }
.im-product-price { margin-bottom: 12px !important; font-family: var(--im-display); font-weight: 700; font-size: 19px; }
.im-product-price small { font-family: var(--im-serif); font-weight: 400; font-size: 13px; color: var(--im-muted); }
.im-product .im-btn { margin-top: auto; }

/* Tabeller */
.im-know { width: 100%; max-width: 1060px; margin: 0 0 0 auto; border-collapse: collapse; font-size: 15px; background: var(--im-card); border: 1px solid var(--im-line); }
.im-know th, .im-know td { padding: 7px 14px; border-bottom: 1px solid var(--im-line); text-align: left; vertical-align: top; }
.im-know th { width: 38%; font-family: var(--im-display); font-weight: 700; border-right: 1px solid var(--im-line); }
.im-know td { color: var(--im-ink-2); }

.im-table-wrap { overflow-x: auto; }
.im-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--im-card); }
.im-table th, .im-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--im-line); vertical-align: top; }
.im-table thead th { font-family: var(--im-ui); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--im-muted); border-bottom: 2px solid var(--im-ink); background: var(--im-paper); }
.im-table tbody th { font-family: var(--im-display); font-weight: 700; }
.im-table small { display: block; font-family: var(--im-serif); font-weight: 400; font-size: 12.5px; color: var(--im-muted); }
.im-version { margin-top: 10px !important; font-size: 13px; font-style: italic; color: var(--im-muted); }
.im-issue-status { display: inline-block; padding: 3px 9px; border-radius: 999px; font-family: var(--im-ui); font-size: 11px; font-weight: 700; background: var(--im-paper-2); white-space: nowrap; }
.im-issue-open { background: var(--im-lime-soft); }
.im-issue-published { background: var(--im-ink); color: #fff; }

/* Se magasinet */
.im-preview { background: var(--im-night); color: #fff; padding: 46px 0; }
.im-preview-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 46px; align-items: center; }
.im-preview h2 { font-size: clamp(30px, 3.4vw, 44px) !important; }
.im-preview p { margin: 14px 0 22px !important; font-size: 18px; color: #fff; max-width: 440px; }
.im-preview-link { display: block; margin-top: 16px; font-size: 14px; color: #fff !important; }
.im-preview figure { margin: 0; }
.im-preview figure img { width: 100%; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.im-preview figcaption { margin-top: 10px; text-align: center; font-style: italic; font-size: 14px; color: #fff; }

/* Fra interesse til annonce */
.im-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.im-steps li { position: relative; display: flex; gap: 14px; align-items: flex-start; }
.im-steps li + li::before { content: "→"; position: absolute; left: -22px; top: 10px; font-size: 22px; color: var(--im-ink-2); }
.im-steps li > span { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--im-lime); display: flex; align-items: center; justify-content: center; font-family: var(--im-display); font-size: 21px; font-weight: 800; }
.im-steps h4 { font-size: 19px !important; font-weight: 700 !important; }
.im-steps p { margin-top: 5px; font-size: 14.5px; color: var(--im-ink-2); line-height: 1.4; }

/* Tilbudsformular */
.im-quote { background: var(--im-paper-2); padding: 46px 0; scroll-margin-top: 20px; }
.im-quote-grid { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: 46px; }
.im-quote-copy h2 { font-size: clamp(30px, 3.2vw, 40px) !important; font-weight: 900 !important; }
.im-quote-copy p { margin-top: 12px !important; font-size: 17px; }
.im-quote-copy .im-quote-note { margin-top: 30px !important; font-style: italic; font-size: 14.5px; color: var(--im-ink-2); }
.im-quote-form { display: grid; gap: 12px; }
.im-q-row { display: grid; gap: 14px; }
.im-q-row-2 { grid-template-columns: 1fr 1fr; }
.im-q-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.im-q-row-msg { grid-template-columns: 1fr auto; align-items: end; }
.im-quote-form label span { display: block; font-family: var(--im-display); font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.im-quote-form input, .im-quote-form select, .im-quote-form textarea {
	width: 100%; min-height: 44px; padding: 8px 12px;
	border: 1px solid #cdc6b7; border-radius: 4px; background: #fff;
	font: inherit; font-size: 15px; color: var(--im-ink);
}
.im-quote-form textarea { min-height: 76px; resize: vertical; }
.im-quote-form input:focus, .im-quote-form select:focus, .im-quote-form textarea:focus { outline: 2px solid var(--im-lime-ink); outline-offset: 0; border-color: var(--im-lime-ink); }
.im-q-privacy { font-size: 12.5px; color: var(--im-muted); }

/* Tilmeldingsresultat */
.im-signup-result { display: flex; gap: 14px; justify-content: center; padding-top: 60px; padding-bottom: 80px; }

/* Præsentation som dokument */
.im-doc { max-width: 900px; margin: 0 auto; padding: 30px var(--im-gutter) 60px; }
.im-doc-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; font-size: 15px; }
.im-doc-head { display: grid; grid-template-columns: 200px 1fr; gap: 34px; align-items: end; padding-bottom: 34px; margin-bottom: 38px; border-bottom: 2px solid var(--im-ink); }
.im-doc-head h1 { margin-top: 10px !important; font-size: clamp(38px, 5vw, 60px) !important; font-weight: 900 !important; }
.im-doc-head .im-kicker .im-logo-i { color: var(--im-lime-ink); }
.im-doc-tagline { margin-top: 6px !important; font-family: var(--im-display); font-size: 22px; font-weight: 700; }
.im-doc-head p + p { margin-top: 10px; color: var(--im-ink-2); }
.im-doc-foot { margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--im-line); font-size: 12.5px; color: var(--im-muted); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media print {
	.im-doc-bar, .im-skip { display: none !important; }
	body.im-frontend { background: #fff; font-size: 11pt; }
	.im-doc { padding: 0; max-width: none; }
	.im-pres-section { break-inside: avoid-page; }
	.im-faq details { display: block; }
	.im-faq details > * { display: block; }
}

/* ---------- Responsivt ---------- */

@media (max-width: 1150px) {
	.im-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.im-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
	.im-steps li:nth-child(3)::before { display: none; }
}

@media (max-width: 900px) {
	:root { --im-gutter: 20px; }
	body.im-frontend { font-size: 16px; }

	.im-burger { display: flex; }
	.im-nav {
		position: absolute; top: 84px; left: 0; right: 0; z-index: 50;
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 8px var(--im-gutter) 18px; background: var(--im-night);
		border-bottom: 1px solid rgba(255,255,255,.14);
		opacity: 0; visibility: hidden; transform: translateY(-6px);
		transition: opacity .18s ease, transform .18s ease, visibility .18s;
	}
	.im-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.im-nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.1); }
	.im-logo { font-size: 28px; }

	.im-fan { flex-wrap: nowrap; overflow: hidden; }
	.im-fan-item { flex-basis: 30%; margin: 0 -10px; }
	.im-hero-strip { font-size: 12px; gap: 12px; letter-spacing: .04em; }
	.im-hero-strip::before, .im-hero-strip::after { flex-basis: 24px; }

	.im-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 18px; }

	.im-band { grid-template-columns: 1fr; gap: 22px; padding-top: 46px; }
	.im-foot-bar { grid-template-columns: 1fr; gap: 18px; justify-items: start; }
	.im-foot-nav { justify-content: flex-start; }

	.im-row { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; }
	.im-row-no { display: none; }
	.im-row-links { gap: 18px; }

	.im-adhero-grid { grid-template-columns: 1fr; gap: 28px; }
	.im-adhero-cover { max-width: 460px; }
	.im-factrow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
	.im-factrow > div:nth-child(3) { border-left: 0; }
	.im-factrow > div { padding: 0 14px; }

	.im-reach { grid-template-columns: 1fr; }
	.im-products { grid-template-columns: 1fr; gap: 34px; }
	.im-product + .im-product { border-left: 0; border-top: 1px solid var(--im-line); padding-top: 30px; }
	.im-know th { width: 45%; }

	.im-preview-grid, .im-quote-grid { grid-template-columns: 1fr; gap: 26px; }
	.im-q-row-2, .im-q-row-3, .im-q-row-msg { grid-template-columns: 1fr; }
	.im-steps { grid-template-columns: 1fr; }
	.im-steps li::before { display: none; }

	.im-doc-head { grid-template-columns: 120px 1fr; gap: 18px; }
}

@media (max-width: 560px) {
	.im-band-row { flex-direction: column; gap: 10px; }
	.im-band-row input { border-right: 1px solid rgba(255,255,255,.55); }
	.im-band-row .im-btn { margin-left: 0; }
	.im-row { grid-template-columns: 88px minmax(0, 1fr); }
	.im-actions .im-btn { flex: 1 1 100%; }
	.im-know th, .im-know td { display: block; width: 100%; border-right: 0; }
	.im-know th { border-bottom: 0; padding-bottom: 0; }

	.im-table thead { display: none; }
	.im-table, .im-table tbody, .im-table tr, .im-table th, .im-table td { display: block; width: 100%; }
	.im-table tr { padding: 10px 0; border-bottom: 1px solid var(--im-line); }
	.im-table th, .im-table td { border: 0; padding: 3px 12px; }
	.im-table td::before { content: attr(data-label) ": "; color: var(--im-muted); font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
	body.im-frontend * { transition: none !important; scroll-behavior: auto !important; }
}

/* Mindre UDKAST-markering på små forsider */
.im-row-cover .im-stamp, .im-doc-cover .im-stamp { font-size: 11px; border-width: 2px; padding: 2px 7px; right: 6%; bottom: 8%; }

/* Redigér-knap til redaktører */
.im-edit-fab { position: fixed; left: 18px; bottom: 18px; z-index: 60; padding: 10px 16px; border-radius: 999px; background: var(--im-lime); color: var(--im-ink) !important; font-family: var(--im-ui); font-size: 13px; font-weight: 700; text-decoration: none !important; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.im-edit-fab::before { content: "✎ "; }
@media print { .im-edit-fab { display: none; } }

/* Billeder i deres egen form – aldrig forstørret ud over originalen */
.im-cover.is-natural { aspect-ratio: auto !important; background: none; margin: 0 auto; }
.im-cover.is-natural img { width: 100%; height: auto; object-fit: contain; }
.im-adhero-cover { text-align: center; }
.im-adhero-cover .im-cover.is-natural { max-height: none; }
.im-reach-card img, .im-product img, .im-preview figure img { image-rendering: auto; }
.im-preview figure img { height: auto; }

/* =========================================================
   Redaktion (/redaktion/)
========================================================= */

.im-mast-editor .im-topbar-inner { min-height: 72px; }
.im-ed-main { padding: 34px 0 90px; }
.im-ed h1 { font-size: clamp(32px, 4vw, 48px) !important; font-weight: 900 !important; margin-top: 6px !important; }
.im-ed-narrow { max-width: 820px; }
.im-ed-lead { margin-top: 8px !important; color: var(--im-ink-2); font-size: 16.5px; max-width: 720px; }
.im-ed-small { font-size: 13px; color: var(--im-muted); }
.im-ed-back { display: inline-block; margin-bottom: 14px; font-size: 14px; text-decoration: none; color: var(--im-ink-2) !important; }
.im-ed-back:hover { text-decoration: underline; }
.im-ed-notice { margin-bottom: 20px; }

.im-ed-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 26px; }
.im-ed-head p { margin-top: 8px; color: var(--im-ink-2); max-width: 620px; }
.im-ed-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px 0; margin-bottom: 26px; border-top: 1px solid var(--im-line); border-bottom: 1px solid var(--im-line); }
.im-ed-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.im-ed-filter a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--im-line); text-decoration: none; font-size: 14px; background: var(--im-card); }
.im-ed-filter a.is-active { background: var(--im-ink); border-color: var(--im-ink); color: #fff; }
.im-ed-requests { font-family: var(--im-ui); font-size: 13px; font-weight: 700; text-decoration: none; background: var(--im-lime-soft); padding: 8px 14px; border-radius: 999px; }

.im-ed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.im-ed-card { display: grid; grid-template-columns: 96px 1fr; gap: 16px; background: var(--im-card); border: 1px solid var(--im-line); padding: 14px; border-radius: 6px; transition: box-shadow .15s ease, border-color .15s ease; }
.im-ed-card:hover { border-color: #c9c1b1; box-shadow: 0 10px 26px -18px rgba(0,0,0,.4); }
.im-ed-card-cover .im-cover { box-shadow: none; }
.im-ed-card-cover .im-cover-title { font-size: 14px; }
.im-ed-card-cover .im-cover-tag { display: none; }
.im-ed-card h2 { font-size: 20px !important; font-weight: 800 !important; margin: 8px 0 10px !important; }
.im-ed-card h2 a { text-decoration: none; }
.im-ed-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.im-ed-tag { font-family: var(--im-ui); font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--im-paper-2); color: var(--im-ink-2); }
.im-ed-tag.is-published { background: var(--im-lime-soft); color: #2c3a05; }
.im-ed-tag.is-draft { background: #fff1c7; color: #6b4e00; }
.im-ed-meter { height: 7px; border-radius: 4px; background: var(--im-paper-2); overflow: hidden; }
.im-ed-meter span { display: block; height: 100%; background: var(--im-lime-ink); }
.im-ed-card .im-ed-small { margin-top: 5px; }
.im-ed-card-actions { display: flex; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.im-ed-empty { padding: 50px 0; text-align: center; color: var(--im-muted); }

/* Redigering */
.im-ed-titlebar { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 54px 1fr auto; gap: 18px; align-items: center; padding: 14px 0; margin-bottom: 22px; background: var(--im-paper); border-bottom: 1px solid var(--im-line); }
.admin-bar .im-ed-titlebar { top: 32px; }
.im-ed-titlebar-cover .im-cover { box-shadow: none; }
.im-ed-titlebar-cover .im-cover-title, .im-ed-titlebar-cover .im-cover-brand, .im-ed-titlebar-cover .im-cover-tag { display: none; }
.im-ed-titlebar h1 { font-size: clamp(24px, 3vw, 34px) !important; margin-top: 2px !important; }
.im-ed-titlebar-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }

.im-ed-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; align-items: start; }
.im-ed-tabs { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 4px; }
.admin-bar .im-ed-tabs { top: 142px; }
.im-ed-tabs a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 6px; text-decoration: none; font-size: 15px; color: var(--im-ink-2); }
.im-ed-tabs a:hover { background: var(--im-paper-2); }
.im-ed-tabs a.is-active { background: var(--im-ink); color: #fff; }
.im-ed-tab-no { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--im-ui); font-size: 12px; font-weight: 800; background: var(--im-paper-2); color: var(--im-ink); }
.im-ed-tabs a.is-done .im-ed-tab-no { background: var(--im-lime); }
.im-ed-tabs a.is-missing .im-ed-tab-no { background: #f6d9d9; color: #7a1d1d; }
.im-ed-progress { margin-top: 16px; padding: 14px 12px 0; border-top: 1px solid var(--im-line); }
.im-ed-progress .im-ed-small { margin-top: 6px; }

.im-ed-panel { background: var(--im-card); border: 1px solid var(--im-line); border-radius: 8px; padding: 28px 30px 12px; }
.im-ed-panel h2 { font-size: 28px !important; font-weight: 800 !important; }
.im-ed-panel > .im-ed-lead { margin-bottom: 18px !important; }
.im-ed-missing { margin: -6px 0 18px !important; padding: 9px 12px; border-radius: 5px; background: #fbeaea; color: #7a1d1d; font-size: 14px; }
.im-ed-panels { display: grid; gap: 18px; }
.im-ed-panels .im-ed-panel[hidden] { display: none; }

.im-ed-f { display: block; margin-bottom: 18px; }
.im-ed-f > span { display: block; font-family: var(--im-display); font-size: 16px; font-weight: 700; }
.im-ed-f > small { display: block; margin: 2px 0 6px; font-size: 13.5px; color: var(--im-muted); line-height: 1.4; }
.im-ed-f input, .im-ed-f select, .im-ed-f textarea, .im-ed-edition-head input, .im-ed-prices input {
	display: block; width: 100%; min-height: 46px; margin-top: 6px; padding: 9px 12px;
	border: 1px solid #cdc6b7; border-radius: 5px; background: #fff;
	font-family: var(--im-serif); font-size: 16px; color: var(--im-ink);
}
.im-ed-f small + input, .im-ed-f small + textarea, .im-ed-f small + select { margin-top: 0; }
.im-ed-f textarea { line-height: 1.55; resize: vertical; }
.im-ed-f input:focus, .im-ed-f select:focus, .im-ed-f textarea:focus, .im-ed-prices input:focus, .im-ed-edition-head input:focus { outline: 2px solid var(--im-lime-ink); outline-offset: 0; border-color: var(--im-lime-ink); }
.im-ed-f-color input { width: 70px; padding: 4px; }
.im-ed-words { display: block; margin-top: 4px; font-size: 13px; color: #9a3412; }
.im-ed-words.is-ok { color: #3f6212; }

.im-ed-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.im-ed-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
.im-ed-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 16px; }

.im-ed-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 16px; cursor: pointer; }
.im-ed-check input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--im-lime-ink); flex: none; }
.im-ed-check-sm { font-size: 14px; margin-top: 8px; }
.im-ed-fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.im-ed-fieldset legend { font-family: var(--im-display); font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.im-ed-munis { margin-top: 6px; border: 1px solid var(--im-line); border-radius: 6px; }
.im-ed-munis[hidden] { display: none; }
.im-ed-munis details + details { border-top: 1px solid var(--im-line); }
.im-ed-munis summary { cursor: pointer; padding: 10px 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.im-ed-munis summary button { font: inherit; font-size: 13px; background: none; border: 0; text-decoration: underline; cursor: pointer; color: var(--im-ink-2); }
.im-ed-muni-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; padding: 4px 14px 14px; font-size: 15px; }

/* Billed-upload */
.im-ed-upload { margin-bottom: 20px; }
.im-ed-upload-label { display: block; font-family: var(--im-display); font-size: 16px; font-weight: 700; }
.im-ed-upload small { display: block; margin: 2px 0 8px; font-size: 13.5px; color: var(--im-muted); }
.im-ed-upload-preview { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; max-height: 280px; border: 1px dashed #cdc6b7; border-radius: 6px; background: var(--im-paper); overflow: hidden; color: var(--im-muted); font-size: 14px; }
.im-ed-upload-preview img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.im-ed-upload-q .im-imgq { display: block; margin-top: 6px; font-size: 13px; }
.im-imgq.is-ok { color: #3f6212; }
.im-imgq.is-low { color: #9a1b1b; font-weight: 600; }
.im-ed-upload-btn { display: inline-flex; margin-top: 8px; position: relative; cursor: pointer; }
.im-ed-upload-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.im-ed-upload-btn span { padding: 9px 16px; border: 1.5px solid var(--im-ink); border-radius: 5px; font-family: var(--im-display); font-weight: 700; font-size: 15px; }
.im-ed-upload-btn:hover span, .im-ed-upload-btn input:focus-visible + span { background: var(--im-ink); color: #fff; }

/* Udgaver */
.im-ed-editions { display: grid; gap: 16px; margin-bottom: 16px; }
.im-ed-edition { border: 1px solid var(--im-line); border-radius: 6px; padding: 16px 16px 2px; background: var(--im-paper); }
.im-ed-edition-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.im-ed-edition-head input { margin: 0; font-family: var(--im-display); font-weight: 700; font-size: 17px; }
.im-ed-edition-head .im-ed-small { white-space: nowrap; }
.im-ed-remove { background: none; border: 0; color: #9a1b1b; text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }
.im-ed-edition [hidden] { display: none !important; }
.im-ed-prices { margin: 0 0 16px; display: grid; gap: 8px; }
.im-ed-prices-row { display: grid; grid-template-columns: 170px repeat(3, 1fr); gap: 10px; align-items: center; font-size: 14px; }
.im-ed-prices-row input { margin: 0; min-height: 40px; }
.im-ed-prices-head span { font-family: var(--im-display); font-weight: 700; }

.im-ed-savebar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 18px; padding: 14px 0; background: linear-gradient(transparent, var(--im-paper) 30%); }
.im-ed-dirty { font-size: 14px; color: #9a3412; font-weight: 600; }
.im-ed-dirty[hidden] { display: none; }
.im-ed-actions { display: flex; align-items: center; gap: 20px; margin: 10px 0 18px; }
.im-ed-form.im-ed-panel { padding-bottom: 20px; }

/* Login */
.im-ed-login { display: grid; grid-template-columns: 1fr 380px; gap: 50px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.im-ed-login h1 { font-size: clamp(32px, 4vw, 48px) !important; font-weight: 900 !important; margin: 8px 0 10px !important; }
.im-ed-login-form { background: var(--im-card); border: 1px solid var(--im-line); border-top: 4px solid var(--im-lime); border-radius: 6px; padding: 26px; }
.im-ed-login-form label { display: block; font-family: var(--im-display); font-weight: 700; margin-bottom: 4px; }
.im-ed-login-form input[type=text], .im-ed-login-form input[type=password] { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid #cdc6b7; border-radius: 5px; font: inherit; }
.im-ed-login-form p { margin-bottom: 14px; }
.im-ed-login-form .login-remember label { font-family: var(--im-serif); font-weight: 400; }
.im-ed-login-form input[type=submit] { width: 100%; min-height: 48px; border: 0; border-radius: 4px; background: var(--im-lime); font-family: var(--im-display); font-weight: 700; font-size: 17px; cursor: pointer; }
.im-ed-login-form > a { font-size: 14px; }

@media (max-width: 1000px) {
	.im-ed-layout { grid-template-columns: 1fr; }
	.im-ed-tabs { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
	.im-ed-tabs a { white-space: nowrap; }
	.im-ed-progress { display: none; }
	.im-ed-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
	.im-ed-head, .im-ed-bar { flex-direction: column; align-items: flex-start; }
	.im-ed-titlebar { grid-template-columns: 40px 1fr; }
	.im-ed-titlebar-actions { grid-column: 1 / -1; justify-content: flex-start; }
	.im-ed-grid-2, .im-ed-grid-3, .im-ed-grid-4 { grid-template-columns: 1fr; }
	.im-ed-panel { padding: 20px 16px 6px; }
	.im-ed-prices-row { grid-template-columns: 1fr 1fr 1fr; }
	.im-ed-prices-row > span:first-child { grid-column: 1 / -1; }
	.im-ed-prices-head > span:first-child { display: none; }
	.im-ed-login { grid-template-columns: 1fr; }
}

.im-ed-card-body { min-width: 0; }
.im-ed-card h2 { overflow-wrap: anywhere; hyphens: auto; }

/* Låst magasinside */
.im-locked { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 50px; align-items: center; padding-top: 56px; padding-bottom: 70px; max-width: 980px; }
.im-locked-copy h2 { font-size: clamp(28px, 3.4vw, 40px) !important; font-weight: 900 !important; margin: 10px 0 12px !important; }
.im-locked-copy p { font-size: 18px; color: var(--im-ink-2); max-width: 520px; }
.im-locked-login { margin-top: 26px; max-width: 380px; }
.im-locked-login summary { cursor: pointer; font-family: var(--im-display); font-weight: 700; text-decoration: underline; }
.im-locked-login form { margin-top: 14px; }
.im-locked-login label { display: block; font-family: var(--im-display); font-weight: 700; margin-bottom: 4px; }
.im-locked-login input[type=text], .im-locked-login input[type=password] { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #cdc6b7; border-radius: 5px; font: inherit; }
.im-locked-login p { margin-bottom: 12px; }
.im-locked-login .login-remember label { font-family: var(--im-serif); font-weight: 400; }
.im-locked-login input[type=submit] { min-height: 46px; padding: 0 22px; border: 0; border-radius: 4px; background: var(--im-ink); color: #fff; font-family: var(--im-display); font-weight: 700; font-size: 16px; cursor: pointer; }
.im-row { scroll-margin-top: 24px; }
.im-row:target { background: linear-gradient(90deg, var(--im-lime-soft), transparent 70%); }
@media (max-width: 760px) { .im-locked { grid-template-columns: 1fr; gap: 26px; } .im-locked-cover { max-width: 200px; } }


/* Farveregel: mørk tekst på lys baggrund er sort, lys tekst på mørk baggrund er hvid.
   Kun accent (lime) og markeringer (status, advarsler) afviger. */
body.im-frontend ::placeholder { color: #000; opacity: 1; font-style: italic; }
.im-mast ::placeholder, .im-foot ::placeholder, .im-preview ::placeholder { color: #fff; }
.im-mast, .im-foot, .im-preview { color: #fff; }
.im-mast a, .im-foot a, .im-preview a:not(.im-btn) { color: #fff; }
