/* ==========================================================================
   ev-fix.dk – hovedstylesheet
   Indhold:
   1. Variabler (farver, typografi, afstande)
   2. Grundlæggende
   3. Knapper og formularfelter
   4. Header og navigation
   5. Hero og hjælpeformular
   6. Bilmærker
   7. Problemkategorier
   8. Sådan hjælper vi + uafhængighed
   9. Værksteder
   10. Batterier og reservedele
   11. Tillidsbjælke
   12. Footer
   13. Indholdssider (artikler, sider)
   14. Responsivt
   ========================================================================== */

/* 1. Variabler ------------------------------------------------------------ */
:root {
	--navy-900: #071a2c;
	--navy-800: #0b2438;
	--navy-700: #12304a;
	--navy-100: #e7edf3;

	--teal-700: #0a7a67;
	--teal-600: #0b8f78;
	--teal-500: #10a58b;
	--teal-100: #def3ee;
	--teal-50:  #f1f9f7;

	--ink:      #0d1b2a;
	--text:     #2c3a48;
	--muted:    #5d6b78;
	--line:     #dde5ea;
	--white:    #ffffff;
	--warn-bg:  #fff6e5;
	--warn:     #8a5a00;

	--font: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--radius-sm: 6px;
	--radius:    10px;
	--radius-lg: 14px;
	--shadow-sm: 0 1px 2px rgba(7, 26, 44, .06), 0 2px 8px rgba(7, 26, 44, .05);
	--shadow:    0 10px 30px rgba(7, 26, 44, .12);
	--shadow-lg: 0 24px 60px rgba(7, 26, 44, .22);

	--container: 1320px;
	--gutter: 24px;
	--header-h: 76px;
}

/* 2. Grundlæggende -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.55;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); }
a:hover { color: var(--teal-600); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	background: var(--white); padding: 10px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow);
}

:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; }

.icon { width: 1em; height: 1em; flex: none; }

.section { padding: 72px 0; }
.section--tint { background: var(--teal-50); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 1.05rem; }
.link-arrow {
	display: inline-flex; align-items: center; gap: 6px;
	font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--teal-700);
}
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

.placeholder {
	display: inline-block; background: var(--warn-bg); color: var(--warn);
	border: 1px dashed #e0b85c; border-radius: 4px; padding: 0 6px; font-size: .85em;
}

/* 3. Knapper og formularfelter -------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border-radius: var(--radius-sm); border: 0;
	font: 600 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer;
	transition: background .2s, transform .1s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal-600); color: var(--white); }
.btn--primary:hover { background: var(--teal-700); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--teal-600); color: var(--teal-700); }
.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }

.btn--lg { padding: 15px 22px; font-size: 1rem; }

.field { position: relative; margin-bottom: 12px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.field label .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
	width: 100%; font: 400 .9rem/1.3 var(--font); color: var(--ink);
	background: var(--white); border: 1px solid #cfd8df; border-radius: var(--radius-sm);
	padding: 11px 12px; min-height: 44px;
	transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 76px; resize: vertical; }
.field select {
	appearance: none; -webkit-appearance: none; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230d1b2a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.field select:invalid { color: var(--muted); }
.field input::placeholder, .field textarea::placeholder { color: #8a96a1; }
.field input:focus, .field select:focus, .field textarea:focus {
	outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(16, 165, 139, .18);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.upload {
	position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer;
	background: #f6f8fa; border: 1px dashed #c6d1d9; border-radius: var(--radius-sm);
	padding: 12px 14px; margin-bottom: 12px; font-size: .85rem; color: var(--ink); font-weight: 600;
	transition: border-color .2s, background .2s;
}
.upload:hover, .upload:focus-within { border-color: var(--teal-500); background: var(--teal-50); }
.upload .icon { width: 26px; height: 26px; color: var(--teal-600); }
.upload small { display: block; color: var(--muted); font-weight: 400; }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload__files { display: block; color: var(--teal-700); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--muted); margin: 4px 0 14px; }
.check input { margin-top: 3px; accent-color: var(--teal-600); width: 16px; height: 16px; flex: none; }

.form-info { background: var(--teal-50); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .82rem; color: var(--ink); margin: 4px 0 12px; }
.form-info p { margin: 0; }
.form-info p + p { margin-top: 8px; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* 4. Header og navigation ------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 50; background: var(--navy-900);
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }

.logo { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; color: var(--navy-900); }
.logo__word { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; color: var(--navy-900); }
.logo__word .fix { color: var(--teal-500); }
.logo__word .tld { font-size: .62em; font-weight: 700; letter-spacing: -.01em; }
.logo__tag { font-size: .72rem; font-weight: 500; color: var(--text); margin-top: 4px; letter-spacing: .01em; }
.logo--light .logo__word, .logo--light .logo__tag { color: var(--white); }
.logo--light .logo__word .fix { color: #34d1b2; }
.site-header .logo__word { font-size: 2.15rem; color: var(--white); white-space: nowrap; }
.site-header .logo__word .fix { color: #22c3a3; }
.site-header .logo__word .tld { font-size: 1em; font-weight: 800; letter-spacing: -.04em; }
.site-header .logo__tag { display: none; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
	display: block; padding: 10px 12px; white-space: nowrap; text-decoration: none; color: rgba(255, 255, 255, .9);
	font-size: .92rem; font-weight: 500; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: #34d1b2; }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav a[aria-current="page"] {
	color: var(--white); font-weight: 600; border-bottom-color: var(--teal-500);
}

.header-contact { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: rgba(255, 255, 255, .7); line-height: 1.25; }
.header-contact .icon { width: 24px; height: 24px; color: #34d1b2; }
.header-contact strong { display: block; color: var(--white); font-size: .92rem; }
.header-contact a { color: inherit; text-decoration: none; }
.site-header__cta { padding: 13px 22px; white-space: nowrap; }
.header-contact { white-space: nowrap; }

.nav-toggle {
	display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--white);
}
.nav-toggle .icon { width: 28px; height: 28px; }

/* 5. Hero og hjælpeformular ----------------------------------------------- */
.hero { position: relative; color: var(--white); background-color: var(--navy-900); isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
@media (min-width: 961px) {
	/* Skub billedet mod venstre, så bilen står mellem overskrift og formular */
	.hero__bg img { width: 116%; max-width: none; margin-left: -16%; }
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(7, 26, 44, .94) 0%, rgba(7, 26, 44, .82) 22%, rgba(7, 26, 44, .45) 40%, rgba(7, 26, 44, .08) 56%, rgba(7, 26, 44, .08) 66%, rgba(7, 26, 44, .4) 100%),
		linear-gradient(0deg, rgba(7, 26, 44, .55) 0%, rgba(7, 26, 44, 0) 30%),
		linear-gradient(180deg, rgba(7, 26, 44, .35) 0%, rgba(7, 26, 44, 0) 25%);
}
.hero__inner {
	display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px;
	align-items: center; padding-top: 28px; padding-bottom: 28px; min-height: 540px;
}
.hero__content { padding: 12px 0; }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; margin-bottom: 18px; max-width: 12ch; }
.hero h1 .hl, .hl { color: #22c3a3; }
.hero__lead { font-size: clamp(1.05rem, 1.7vw, 1.4rem); line-height: 1.4; max-width: 30ch; color: rgba(255, 255, 255, .95); margin-bottom: 32px; }
.hero__usp { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.hero__usp li { display: flex; align-items: center; gap: 16px; font-size: .95rem; color: rgba(255, 255, 255, .85); }
.hero__usp strong { display: block; color: var(--white); font-size: 1.08rem; font-weight: 700; margin-bottom: 2px; }
.usp-icon {
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; flex: none;
	border: 1.5px solid rgba(34, 195, 163, .7); background: rgba(7, 26, 44, .35); color: #22c3a3;
}
.usp-icon .icon { width: 26px; height: 26px; stroke-width: 2; }
.check-dot {
	display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
	background: var(--teal-500); color: var(--white); flex: none;
}
.check-dot .icon { width: 13px; height: 13px; }

.help-card {
	position: relative; z-index: 5; background: var(--white); color: var(--text);
	border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
	padding: 26px 26px 18px;
}
.help-card h2 { font-size: 1.55rem; margin-bottom: 6px; }
.help-card__intro { font-size: .92rem; color: var(--muted); margin-bottom: 18px; line-height: 1.45; }
.help-card__privacy { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .76rem; color: var(--muted); margin: 12px 0 0; }
.help-card__privacy .icon { width: 15px; height: 15px; color: var(--teal-600); }

.form-steps { list-style: none; display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 0; font-size: .85rem; color: var(--muted); }
.form-steps li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.form-steps li + li::before { content: ""; width: 36px; height: 1px; background: var(--line); margin-right: 4px; }
.form-steps span {
	display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
	background: #eef2f5; color: var(--muted); font-weight: 700; font-size: .8rem;
}
.form-steps li.is-active { color: var(--ink); font-weight: 600; }
.form-steps li.is-active span, .form-steps li.is-done span { background: var(--teal-600); color: var(--white); }
.form-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-step[hidden] { display: none; }
.form-nav { display: flex; gap: 10px; margin-top: 4px; }
.form-nav .btn--ghost { flex: 0 0 auto; }
.form-nav .btn--primary { flex: 1; }

.safety-note {
	display: flex; gap: 10px; background: var(--warn-bg); color: #5c3d00; border-radius: var(--radius-sm);
	padding: 10px 12px; font-size: .78rem; line-height: 1.4; margin: 0 0 12px;
}
.safety-note .icon { width: 18px; height: 18px; color: var(--warn); margin-top: 1px; }

.form-message { border-radius: var(--radius-sm); padding: 12px 14px; font-size: .88rem; margin-bottom: 12px; }
.form-message--info { background: var(--teal-100); color: var(--teal-700); font-weight: 600; border: 1px solid var(--teal-500); }
.form-message--error { background: #fdecec; color: #8b1e1e; }

/* 6. Bilmærker ------------------------------------------------------------ */
.brands { background: var(--white); padding: 36px 0 28px; }
.brands__title { text-align: center; font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-bottom: 26px; }
.brands__list {
	list-style: none; margin: 0; padding: 0; display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
}
.brands__list li + li { border-left: 1px solid var(--line); }
.brands__list a {
	display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; height: 100%;
	text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 500;
	padding: 6px 8px 8px; border-radius: var(--radius-sm); transition: background .2s, color .2s;
}
.brands__list a:hover { background: var(--teal-50); color: var(--teal-700); }
.brand-logo { display: flex; align-items: center; justify-content: center; height: 58px; width: 100%; }
.brand-logo img { max-height: 54px; max-width: 100%; width: auto; height: auto; object-fit: contain; transition: transform .2s; }
.brands__list a:hover .brand-logo img { transform: scale(1.06); }
/* Bredformede logoer skal ikke fylde mere end de runde */
.brand-logo--audi img { max-height: 34px; max-width: 92px; }
.brand-logo--polestar img { max-height: 22px; max-width: 110px; }
.brand-logo--porsche img { max-height: 14px; max-width: 120px; }
.brand-mark {
	display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
	border: 1.5px solid var(--navy-800); color: var(--navy-800);
	font-size: .8rem; font-weight: 800; letter-spacing: -.02em;
}
.brands__note { text-align: center; font-size: .74rem; color: var(--muted); margin: 18px auto 0; max-width: 70ch; }

/* 7. Problemkategorier ---------------------------------------------------- */
.categories { padding-top: 56px; }
.section-head--center { display: block; text-align: center; }
.cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cat-card {
	display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto 1fr auto; column-gap: 10px;
	grid-template-areas: "icon title" ". text" ". arrow";
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 22px 14px 18px; text-decoration: none; color: var(--text);
	box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal-500); color: var(--text); }
.cat-card__icon { grid-area: icon; width: 34px; height: 34px; color: var(--teal-600); stroke-width: 2.2; }
.cat-card h3 { grid-area: title; font-size: .95rem; hyphens: auto; -webkit-hyphens: auto; margin: 2px 0 10px; align-self: center; }
.cat-card p { grid-area: text; font-size: .8rem; color: var(--muted); margin-bottom: 16px; }
.cat-card .icon--arrow { grid-area: arrow; width: 18px; height: 18px; color: var(--teal-600); transition: transform .2s; }
.cat-card:hover .icon--arrow { transform: translateX(4px); }
.categories__more { text-align: center; margin: 24px 0 0; }

/* 8. Sådan hjælper vi + uafhængighed -------------------------------------- */
.how__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.how h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 4px; }
.how__lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; margin-bottom: 20px; }
.steps li::before {
	counter-increment: step; content: counter(step);
	display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
	background: var(--teal-600); color: var(--white); font-weight: 700;
}
.steps h3 { font-size: 1.02rem; margin: 4px 0 2px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

.indie {
	background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: var(--radius-lg);
	padding: 30px 30px 26px;
}
.indie__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.indie__head .icon { width: 34px; height: 34px; color: var(--teal-600); }
.indie__head h3 { margin: 0; font-size: 1.15rem; }
.indie p { font-size: .93rem; }
.indie hr { border: 0; border-top: 1px solid var(--teal-100); margin: 20px 0; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: .93rem; color: var(--ink); }
.disclosure {
	margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm);
	background: var(--white); border-left: 3px solid var(--teal-500); font-size: .84rem; color: var(--text);
}
.disclosure strong { color: var(--ink); }

/* 9. Værksteder ----------------------------------------------------------- */
.workshops { padding-top: 56px; }
.ws-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ws-card {
	display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.ws-card__img { aspect-ratio: 16 / 9; background: var(--navy-100); overflow: hidden; }
.ws-card__img img { width: 100%; height: 100%; object-fit: cover; }
.ws-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.ws-card h3 { font-size: 1rem; margin-bottom: 4px; }
.ws-card__loc { display: flex; align-items: center; gap: 5px; font-size: .82rem; color: var(--ink); margin-bottom: 6px; }
.ws-card__loc .icon { width: 14px; height: 14px; color: var(--teal-600); }
.ws-card__spec { font-size: .82rem; color: var(--muted); margin-bottom: 12px; flex: 1; }
.ws-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag { font-size: .72rem; padding: 3px 8px; border-radius: 20px; background: var(--teal-50); color: var(--teal-700); }
.ws-card--placeholder { border-style: dashed; box-shadow: none; }
.ws-card--placeholder .skeleton { display: block; height: 10px; border-radius: 6px; background: var(--navy-100); margin-bottom: 8px; }
.ws-card--placeholder .skeleton--short { width: 55%; }
.ws-card--cta { background: var(--navy-800); border-color: var(--navy-800); color: rgba(255, 255, 255, .85); justify-content: center; padding: 24px 22px; }
.ws-card--cta h3 { color: var(--white); font-size: 1.1rem; }
.ws-card--cta p { font-size: .88rem; }
.ws-card--cta .btn { align-self: flex-start; }
.ws-note { font-size: .85rem; color: var(--muted); margin: 16px 0 0; }

/* 10. Batterier og reservedele -------------------------------------------- */
.parts {
	position: relative; overflow: hidden; color: var(--white);
	background: linear-gradient(100deg, var(--navy-900) 0%, var(--navy-800) 45%, #0e2c45 100%);
}
.parts__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; min-height: 220px; }
.parts__content { padding: 44px 0; position: relative; z-index: 2; }
.parts h2 { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 12px; max-width: 18ch; }
.parts p { color: rgba(255, 255, 255, .86); max-width: 48ch; margin-bottom: 22px; }
.parts__media { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; }
.parts__media img, .parts__media svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.parts__media::before {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(90deg, var(--navy-800) 0%, rgba(11, 36, 56, 0) 45%);
}

/* 11. Tillidsbjælke ------------------------------------------------------- */
.trust { border-bottom: 1px solid var(--line); }
.trust__list { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust__list li { display: flex; gap: 12px; align-items: center; }
.trust__list .icon { width: 32px; height: 32px; color: var(--teal-600); }
.trust__list strong { display: block; color: var(--ink); font-size: .86rem; }
.trust__list span { display: block; font-size: .76rem; color: var(--muted); }

/* 12. Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .78); font-size: .9rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #34d1b2; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer__about p { margin-top: 16px; max-width: 34ch; }
.site-footer h2 { color: var(--white); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer__contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer__contact .icon { width: 16px; height: 16px; margin-top: 3px; color: #34d1b2; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; padding-bottom: 18px; font-size: .8rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer .placeholder { color: #ffd88a; background: rgba(255, 216, 138, .1); border-color: rgba(255, 216, 138, .4); }

/* 13. Indholdssider ------------------------------------------------------- */
.page-hero { background: var(--teal-50); padding: 48px 0 36px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0; }
.page-hero__meta { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.breadcrumbs { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs a { color: var(--muted); }

.content-wrap { padding: 48px 0 72px; }
.entry { max-width: 760px; }
.entry > * + * { margin-top: 1em; }
.entry h2 { font-size: 1.6rem; margin-top: 1.6em; }
.entry h3 { font-size: 1.25rem; margin-top: 1.4em; }
.entry img { border-radius: var(--radius); }
.entry blockquote { margin: 1.5em 0; padding: 4px 20px; border-left: 4px solid var(--teal-500); color: var(--ink); }
.entry .wp-block-button__link { background: var(--teal-600); border-radius: var(--radius-sm); }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
.alignwide { max-width: 1000px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

.sources {
	margin-top: 40px; padding: 18px 20px; background: #f6f8fa; border-radius: var(--radius);
	font-size: .88rem;
}
.sources h2 { font-size: 1rem; margin: 0 0 8px; }

.article-cta {
	margin-top: 40px; padding: 26px; border-radius: var(--radius-lg); background: var(--navy-800); color: rgba(255, 255, 255, .88);
}
.article-cta h2 { color: var(--white); font-size: 1.3rem; margin: 0 0 6px; }

.content-wrap .help-card { margin-bottom: 0; transform: none; border: 1px solid var(--line); box-shadow: var(--shadow); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.post-card__img { aspect-ratio: 16 / 9; background: var(--navy-100); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 16px 18px 20px; }
.post-card h2 { font-size: 1.1rem; margin-bottom: 8px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card p { font-size: .9rem; color: var(--muted); margin: 0; }
.pagination { margin-top: 32px; display: flex; gap: 8px; }
.pagination .page-numbers { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; }
.pagination .current { background: var(--teal-600); color: var(--white); border-color: var(--teal-600); }

/* 14. Responsivt ---------------------------------------------------------- */
@media (max-width: 1200px) {
	.header-contact { display: none; }
	.hero__inner { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; }
	.main-nav a { padding: 10px 8px; font-size: .88rem; }
}

@media (max-width: 1120px) {
	.cat-grid { gap: 12px; }
	.cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.brands__list a { font-size: .82rem; }
}

@media (max-width: 960px) {
	:root { --header-h: 64px; }
	.site-header .logo__word { font-size: 1.8rem; }

	.nav-toggle { display: block; }
	.site-header__cta { display: none; }
	.main-nav {
		position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-900);
		border-top: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow-lg); display: none;
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; gap: 0; }
	.main-nav a { padding: 13px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1rem; }
	.main-nav .current-menu-item > a, .main-nav a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, .08); color: #34d1b2; }
	.main-nav__cta { display: block; margin-top: 14px; }
	.main-nav__cta a.btn { border: 0; color: var(--white); padding: 14px; }

	/* Mobil: billedet vises som et bånd øverst og toner over i mørkeblå */
	.hero__bg { bottom: auto; height: 460px; }
	.hero__bg img { object-position: 55% 60%; }
	.hero::before { background: linear-gradient(180deg, rgba(7, 26, 44, .35) 0, rgba(7, 26, 44, .55) 150px, rgba(7, 26, 44, .85) 300px, var(--navy-900) 460px); }
	.hero__inner { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 32px; min-height: 0; }
	.hero__content { padding: 0; }
	.hero h1 { max-width: 14ch; }

	.brands__list { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; }
	.brands__list li:nth-child(4n+1) { border-left: 0; }

	.how__grid { grid-template-columns: 1fr; gap: 32px; }
	.ws-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.parts__inner { grid-template-columns: 1fr; }
	.parts__media { position: relative; width: auto; min-height: 200px; margin: 0 calc(-1 * var(--gutter)); order: -1; }
	.parts__media::before { background: linear-gradient(0deg, var(--navy-800) 0%, rgba(11, 36, 56, 0) 50%); }
	.parts__content { padding-top: 8px; }
	.trust__list { grid-template-columns: repeat(2, 1fr); }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 961px) {
	.main-nav__cta { display: none; }
}

@media (max-width: 600px) {
	:root { --gutter: 16px; }
	.section { padding: 52px 0; }
	.hero h1 { max-width: none; }
	.hero__lead { margin-bottom: 24px; }
	.hero__usp { gap: 12px; }
	.hero__usp li { font-size: .88rem; gap: 12px; }
	.hero__usp strong { font-size: 1rem; }
	.usp-icon { width: 46px; height: 46px; }
	.usp-icon .icon { width: 22px; height: 22px; }
	.help-card { padding: 22px 16px 16px; }
	.help-card h2 { font-size: 1.35rem; }
	.form-steps { gap: 8px; font-size: .8rem; }
	.form-steps li + li::before { width: 16px; }
	.field input, .field select, .field textarea { font-size: 16px; } /* undgår auto-zoom på iPhone */

	.brands { padding: 32px 0 24px; }
	.brands__title { margin-bottom: 20px; }
	.brands__list a { font-size: .72rem; gap: 8px; padding: 4px 2px; text-align: center; }
	.brand-logo { height: 42px; }
	.brand-logo img { max-height: 40px; }
	.brand-logo--audi img { max-height: 24px; max-width: 64px; }
	.brand-logo--polestar img { max-height: 22px; max-width: 72px; }
	.brand-logo--porsche img { max-height: 10px; max-width: 72px; }

	.cat-grid { grid-template-columns: 1fr; gap: 10px; }
	.cat-card { padding: 16px 14px; grid-template-columns: 36px 1fr 18px; grid-template-areas: "icon title arrow" "icon text arrow"; grid-template-rows: auto auto; }
	.cat-card__icon { width: 32px; height: 32px; align-self: start; }
	.cat-card h3 { margin: 0 0 4px; }
	.cat-card p { margin: 0; }
	.cat-card .icon--arrow { align-self: center; }
	.ws-grid { grid-template-columns: 1fr; }
	.trust__list { grid-template-columns: 1fr; }
	.footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.post-grid { grid-template-columns: 1fr; }
	.indie { padding: 22px 18px; }
}

/* Mobiloptimering ---------------------------------------------------------- */
@media (max-width: 960px) {
	html { scroll-padding-top: 88px; } /* Den faste header skjuler ikke felter og overskrifter ved scroll til anker */
	.help-card, .form-step, .form-message { scroll-margin-top: 88px; }
	.site-header .logo { min-height: 44px; justify-content: center; }
	.site-footer li { margin-bottom: 0; }
	.site-footer li a, .site-footer .footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; }
	.link-arrow { display: inline-flex; align-items: center; min-height: 44px; }
	.btn { min-height: 44px; }
}
@media (max-width: 600px) {
	.cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.cat-card { padding: 14px 12px; grid-template-columns: 1fr 18px; grid-template-areas: "icon arrow" "title title" "text text"; grid-template-rows: auto auto 1fr; column-gap: 0; }
	.cat-card__icon { align-self: start; margin-bottom: 8px; }
	.cat-card .icon--arrow { align-self: start; justify-self: end; }
	.cat-card h3 { font-size: .92rem; margin: 0 0 4px; align-self: start; overflow-wrap: anywhere; }
	.cat-card p { font-size: .78rem; margin: 0; }
	.ws-grid > .ws-card--placeholder ~ .ws-card--placeholder { display: none; } /* Kun ét pladsholderkort på mobil */
}

@media (max-width: 420px) {
	.field-row { grid-template-columns: 1fr; gap: 0; }
	.brand-logo--polestar img { max-width: 64px; }
}
