/*
Theme Name: Advokatindeks
Theme URI: https://advokatindeks.dk/
Author: Busekist Media
Description: Tema til Advokatindeks – find advokatfirmaer efter by og juridisk speciale. Byer og advokatfirmaer oprettes som egne indholdstyper, juridiske specialer som tags, og alle søgninger går gennem siden Find advokat (/advokater/?speciale=…).
Version: 1.1.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: advokatindeks
*/

/* ------------------------------------------------------------------
   Skrifttype (Manrope, SIL Open Font License – hostet lokalt)
------------------------------------------------------------------ */
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url("assets/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------
   Variabler
------------------------------------------------------------------ */
:root {
	--c-primary: #084c35;
	--c-primary-dark: #063b29;
	--c-tint: #eff5f2;
	--c-tint-2: #f4f8f6;
	--c-chip: #e1f2e8;
	--c-border: #d9e0dc;
	--c-text: #16261f;
	--c-muted: #656f69;
	--c-star: #d48f00;
	--c-white: #fff;
	--radius: 6px;
	--shadow: 0 1px 2px rgba(22, 38, 31, 0.05);
	--shadow-hover: 0 10px 28px -12px rgba(8, 76, 53, 0.28);
	--container: 1152px;
	--gutter: 24px;
	--font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: "ss01" off;
}

img,
svg,
iframe {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--c-primary);
	text-decoration: none;
}

a:hover {
	color: var(--c-primary-dark);
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--c-text);
}

p {
	margin: 0;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--c-primary);
	outline-offset: 2px;
}

.icon {
	flex: none;
}

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

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--c-primary);
	color: #fff;
	border-radius: var(--radius);
}

.skip-link:focus {
	top: 12px;
	color: #fff;
}

/* ------------------------------------------------------------------
   Knapper og links
------------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 22px;
	border: 1.5px solid transparent;
	border-radius: var(--radius);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn .icon {
	transition: transform 0.18s ease;
}

.btn:hover .icon-arrow-right,
.btn:hover .icon-arrow-up-right {
	transform: translateX(3px);
}

.btn-primary {
	background: var(--c-primary);
	color: #fff;
}

.btn-primary:hover {
	background: var(--c-primary-dark);
	color: #fff;
}

.btn-outline {
	border-color: var(--c-primary);
	background: #fff;
	color: var(--c-primary);
	box-shadow: 0 1px 0 rgba(8, 76, 53, 0.08);
}

.btn-outline:hover {
	background: var(--c-primary);
	color: #fff;
}

.btn-ghost {
	border-color: var(--c-border);
	background: #fff;
	color: var(--c-text);
	box-shadow: 0 1px 2px rgba(22, 38, 31, 0.08);
	min-height: 44px;
	padding: 0 18px;
	font-size: 15px;
}

.btn-ghost:hover {
	border-color: var(--c-primary);
	color: var(--c-primary);
}

.btn-block {
	display: flex;
	width: 100%;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
	font-size: 16px;
	color: var(--c-primary);
	white-space: nowrap;
}

.text-link .icon {
	transition: transform 0.18s ease;
}

.text-link:hover .icon {
	transform: translateX(3px);
}

/* ------------------------------------------------------------------
   Overlinje ("TÆT PÅ DIG")
------------------------------------------------------------------ */
.eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--c-primary);
}

.eyebrow::before {
	content: "";
	flex: none;
	width: 32px;
	height: 1.5px;
	background: currentColor;
}

.eyebrow-light {
	color: rgba(255, 255, 255, 0.92);
}

.eyebrow-pin::before {
	display: none;
}

.eyebrow-pin {
	gap: 8px;
}

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------ */
.site-header {
	position: relative;
	z-index: 20;
	background: #fff;
	border-bottom: 1px solid transparent;
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: 88px;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: var(--c-primary);
	font-size: 29px;
	line-height: 1;
	letter-spacing: -0.02em;
}

.site-logo:hover {
	color: var(--c-primary);
}

.site-logo .logo-text {
	font-weight: 400;
}

.site-logo strong {
	font-weight: 800;
}

.custom-logo-link img {
	max-height: 48px;
	width: auto;
}

.main-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.nav-list {
	display: flex;
	align-items: center;
	gap: 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-list a {
	display: block;
	padding: 6px 0;
	font-size: 16.5px;
	font-weight: 500;
	color: var(--c-text);
	transition: color 0.15s ease;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list .current-menu-ancestor > a {
	color: var(--c-primary);
}

.nav-cta {
	display: none;
}

.header-cta {
	min-height: 50px;
	padding: 0 22px;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: #fff;
	color: var(--c-primary);
	cursor: pointer;
}

.nav-toggle-close {
	display: none;
}

.nav-open .nav-toggle-open {
	display: none;
}

.nav-open .nav-toggle-close {
	display: block;
}

/* ------------------------------------------------------------------
   Forside – hero
------------------------------------------------------------------ */
.hero {
	position: relative;
	overflow: hidden;
	padding: 72px 0 70px;
	background: radial-gradient(120% 140% at 85% 20%, #1d6b51 0%, #0b4a35 45%, #062d20 100%);
	color: #fff;
	isolation: isolate;
}

.hero-image {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(9, 24, 18, 0.78) 0%, rgba(9, 24, 18, 0.55) 38%, rgba(9, 24, 18, 0.12) 72%, rgba(9, 24, 18, 0.05) 100%);
}

.hero:not(.has-image)::after {
	background: linear-gradient(90deg, rgba(6, 30, 22, 0.45) 0%, rgba(6, 30, 22, 0) 70%);
}

.hero .eyebrow {
	margin-bottom: 30px;
}

.hero-title {
	display: flex;
	flex-direction: column;
	max-width: 760px;
	font-size: clamp(2.6rem, 5.4vw, 4rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.015em;
	color: #fff;
}

.hero-lead {
	max-width: 560px;
	margin-top: 26px;
	font-size: 18.5px;
	line-height: 1.55;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.92);
}

/* ------------------------------------------------------------------
   Søgefelt (by + speciale)
------------------------------------------------------------------ */
.search-box {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	align-items: center;
	max-width: 840px;
	margin-top: 36px;
	padding: 10px;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: 0 18px 48px -18px rgba(0, 0, 0, 0.45);
	color: var(--c-text);
}

.search-box-plain {
	max-width: none;
	margin-top: 0;
	border: 1px solid var(--c-border);
	box-shadow: var(--shadow);
}

.search-field {
	position: relative;
	display: grid;
	grid-template-columns: 24px 1fr;
	grid-template-rows: auto auto;
	column-gap: 18px;
	align-items: center;
	padding: 6px 18px 6px 22px;
}

.search-field + .search-field {
	border-left: 1px solid var(--c-border);
}

.search-field-icon {
	grid-row: 1 / 3;
	color: var(--c-muted);
}

.search-field label {
	display: block;
	font-size: 13px;
	color: var(--c-muted);
	line-height: 1.3;
	margin-left: 4px;
}

.search-field .select-wrap select {
	height: 36px;
	padding: 0 28px 0 4px;
	border: 0;
	background: transparent;
	font-size: 17px;
	font-weight: 500;
	color: var(--c-text);
	box-shadow: none;
}

.search-field .select-wrap select:focus-visible {
	outline-offset: 0;
}

.search-submit {
	min-height: 54px;
	padding: 0 32px;
	font-size: 16.5px;
}

.popular {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
	margin-top: 22px;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.8);
}

.popular a {
	color: rgba(255, 255, 255, 0.92);
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.55);
	text-underline-offset: 6px;
	text-decoration-thickness: 1px;
}

.popular a:hover {
	color: #fff;
	text-decoration-color: #fff;
}

/* Fælles: selects med eget pil-ikon */
.select-wrap {
	position: relative;
}

.select-wrap select {
	width: 100%;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.select-chevron {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: var(--c-text);
}

/* ------------------------------------------------------------------
   Fordele-bjælke
------------------------------------------------------------------ */
.trust-bar {
	background: var(--c-tint);
	border-bottom: 1px solid var(--c-border);
}

.trust-inner {
	display: flex;
	justify-content: space-between;
	gap: 16px 32px;
	padding-top: 22px;
	padding-bottom: 22px;
}

.trust-inner p {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 15px;
	font-weight: 500;
}

.trust-inner .icon {
	color: var(--c-primary);
}

/* ------------------------------------------------------------------
   Sektioner
------------------------------------------------------------------ */
.section {
	padding: 64px 0 72px;
}

.section-tint {
	background: var(--c-tint);
	border-top: 1px solid var(--c-border);
	border-bottom: 1px solid var(--c-border);
}

.section + .site-footer,
.section-tint + .site-footer {
	border-top: 0;
}

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}

.section-head-top {
	align-items: center;
}

.section-head .text-link {
	margin-bottom: 6px;
}

.section-title {
	font-size: clamp(1.75rem, 3vw, 2.3rem);
	letter-spacing: -0.02em;
}

.section-lead {
	margin-top: 18px;
	font-size: 17px;
	color: var(--c-muted);
}

/* ------------------------------------------------------------------
   Bykort
------------------------------------------------------------------ */
.city-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.city-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: var(--c-text);
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.city-card:hover {
	color: var(--c-text);
	border-color: #c4d3cb;
	box-shadow: var(--shadow-hover);
	transform: translateY(-2px);
}

.city-media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--c-tint);
}

.city-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.city-card:hover .city-media img {
	transform: scale(1.04);
}

.city-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--c-chip), var(--c-tint));
	color: #8fb6a5;
}

.city-badge {
	position: absolute;
	left: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 9px;
	background: rgba(255, 255, 255, 0.96);
	border-radius: 4px;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--c-text);
}

.city-body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 18px 22px 18px;
}

.city-title {
	font-size: 17.5px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.city-sub {
	margin-top: 10px;
	font-size: 13.5px;
	color: var(--c-muted);
}

.city-arrow {
	color: var(--c-primary);
	transition: transform 0.2s ease;
}

.city-card:hover .city-arrow {
	transform: translateX(3px);
}

/* ------------------------------------------------------------------
   Specialekort
------------------------------------------------------------------ */
.spec-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.spec-card {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 22px 24px 22px 22px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: var(--c-text);
	transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.spec-card:hover {
	color: var(--c-text);
	border-color: #c4d3cb;
	box-shadow: var(--shadow-hover);
	transform: translateY(-2px);
}

.spec-icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 4px;
	background: var(--c-chip);
	color: var(--c-primary);
}

.spec-text {
	flex: 1;
	min-width: 0;
}

.spec-title {
	display: block;
	font-size: 17.5px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.spec-desc {
	display: block;
	margin-top: 6px;
	font-size: 14.5px;
	line-height: 1.45;
	color: var(--c-muted);
}

.spec-arrow {
	color: var(--c-primary);
	transition: transform 0.2s ease;
}

.spec-card:hover .spec-arrow {
	transform: translateX(3px);
}

/* ------------------------------------------------------------------
   Sidehoveder (undersider)
------------------------------------------------------------------ */
.page-hero {
	padding: 52px 0 64px;
	background: var(--c-tint);
	border-bottom: 1px solid var(--c-border);
}

.page-title {
	font-size: clamp(2.1rem, 4.4vw, 3rem);
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.12;
}

.page-lead {
	max-width: 760px;
	margin-top: 28px;
	font-size: 18px;
	line-height: 1.75;
	color: var(--c-muted);
}

.page-body {
	padding-top: 56px;
	padding-bottom: 88px;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 0;
	margin: 0 0 34px;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--c-muted);
}

.breadcrumbs li {
	display: inline-flex;
	align-items: center;
}

.breadcrumbs a {
	color: var(--c-muted);
}

.breadcrumbs a:hover {
	color: var(--c-primary);
}

.crumb-sep {
	margin: 0 12px;
	color: var(--c-muted);
}

.page-hero .eyebrow {
	margin-bottom: 26px;
}

.page-hero .breadcrumbs + .eyebrow {
	margin-top: -8px;
}

/* ------------------------------------------------------------------
   Oversigt: filter, liste og sideskift
------------------------------------------------------------------ */
.city-grid-find {
	margin-bottom: 72px;
}

.filter-bar {
	display: grid;
	grid-template-columns: 1fr 190px 190px;
	align-items: end;
	gap: 18px;
}

.filter-bar.has-city {
	grid-template-columns: 1fr 170px 190px 170px;
}

.filter-search {
	position: relative;
}

.filter-search .icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--c-muted);
	pointer-events: none;
}

.filter-search input,
.filter-select select {
	width: 100%;
	height: 50px;
	border: 1px solid var(--c-border);
	border-radius: 4px;
	background: #fff;
	font-size: 15.5px;
	color: var(--c-text);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-search input {
	padding: 0 16px 0 52px;
	-webkit-appearance: none;
	appearance: none;
}

.filter-search input::placeholder {
	color: #8a938e;
}

.filter-select select {
	padding: 0 38px 0 18px;
}

.filter-search input:focus,
.filter-select select:focus {
	outline: none;
	border-color: var(--c-primary);
	box-shadow: 0 0 0 3px rgba(8, 76, 53, 0.12);
}

.filter-select label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	color: var(--c-muted);
}

.results {
	transition: opacity 0.15s ease;
}

.results[aria-busy="true"] {
	opacity: 0.55;
}

.results-count {
	margin: 34px 0 20px;
	font-size: 15.5px;
	color: var(--c-muted);
}

.firm-list {
	display: grid;
	gap: 20px;
}

.firm-card {
	display: grid;
	grid-template-columns: 72px 1fr auto;
	align-items: center;
	gap: 28px;
	padding: 30px 32px 30px 32px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.firm-card:hover {
	border-color: #c4d3cb;
	box-shadow: var(--shadow-hover);
}

.firm-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border-radius: 4px;
	background: var(--c-tint);
	color: var(--c-primary);
}

.firm-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 8px;
	background: #fff;
}

.firm-loc {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	color: var(--c-muted);
}

.firm-name {
	margin-top: 8px;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.015em;
}

.firm-name a {
	color: var(--c-text);
}

.firm-name a:hover {
	color: var(--c-primary);
}

.firm-desc {
	margin-top: 12px;
	font-size: 15.5px;
	color: var(--c-muted);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border: 1px solid transparent;
	border-radius: 3px;
	background: var(--c-chip);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--c-primary);
}

a.chip:hover {
	border-color: rgba(8, 76, 53, 0.35);
	color: var(--c-primary);
}

.chip-protected {
	border-color: #b9d6c6;
	font-weight: 700;
}

.firm-cta {
	align-self: center;
}

.empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 56px 24px;
	background: var(--c-tint-2);
	border-radius: var(--radius);
	text-align: center;
	color: var(--c-muted);
}

.empty-state .icon {
	margin-bottom: 6px;
	color: var(--c-muted);
}

.empty-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--c-text);
}

.empty-state a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.disclaimer {
	margin-top: 40px;
	font-size: 14px;
	color: var(--c-muted);
}

.pagination ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}

.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 500;
	color: var(--c-text);
}

.pagination a {
	border: 1px solid var(--c-border);
	background: #fff;
}

.pagination a:hover {
	border-color: var(--c-primary);
	color: var(--c-primary);
}

.pagination .is-current {
	background: var(--c-primary);
	color: #fff;
}

/* Tekst nederst på forsiden */
.front-text .prose {
	max-width: 820px;
}

.front-text .prose > h2:first-child {
	margin-bottom: 0.9em;
	font-size: clamp(1.75rem, 3vw, 2.3rem);
	letter-spacing: -0.02em;
}

.front-text .prose > p {
	font-size: 17px;
}

.city-content,
.page-intro,
.page-outro {
	max-width: 820px;
}

.city-content {
	margin-top: 72px;
	padding-top: 56px;
	border-top: 1px solid var(--c-border);
}

.page-intro {
	margin-bottom: 48px;
}

.page-outro {
	margin-top: 56px;
}

/* ------------------------------------------------------------------
   Tekstindhold
------------------------------------------------------------------ */
.prose {
	font-size: 16px;
	line-height: 1.85;
	color: var(--c-muted);
}

.prose > * + * {
	margin-top: 1.4em;
}

.prose h2,
.prose h3,
.prose h4 {
	color: var(--c-text);
}

.prose h2 {
	margin-top: 1.8em;
	font-size: 26px;
}

.prose h3 {
	margin-top: 1.6em;
	font-size: 20px;
}

.prose > :first-child {
	margin-top: 0;
}

.prose h2 + *,
.prose h3 + * {
	margin-top: 0.7em;
}

.prose a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

.prose li + li {
	margin-top: 0.35em;
}

.prose strong {
	color: var(--c-text);
}

.prose blockquote {
	margin-left: 0;
	padding-left: 20px;
	border-left: 3px solid var(--c-chip);
}

.prose-page {
	max-width: 760px;
}

.page-search {
	margin-top: 64px;
}

/* ------------------------------------------------------------------
   Firmaprofil
------------------------------------------------------------------ */
.firm-hero {
	padding-bottom: 44px;
}

.firm-hero .breadcrumbs ol {
	margin-bottom: 28px;
}

.firm-hero-inner {
	display: flex;
	align-items: center;
	gap: 32px;
}

.firm-hero-logo {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 120px;
	height: 120px;
	overflow: hidden;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: #fff;
	color: var(--c-primary);
}

.firm-hero-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 14px;
}

.firm-hero .eyebrow {
	margin-bottom: 14px;
}

.firm-hero .chips {
	margin-top: 22px;
}

.firm-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 0;
	padding-top: 56px;
	padding-bottom: 88px;
}

.firm-main {
	padding-right: 64px;
}

.firm-aside {
	align-self: start;
	padding-left: 40px;
	border-left: 1px solid var(--c-border);
}

.block-title {
	font-size: clamp(1.6rem, 2.6vw, 2rem);
	letter-spacing: -0.02em;
}

.firm-about .block-title {
	margin-bottom: 30px;
}

.source-link {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 28px;
	font-size: 13.5px;
	color: var(--c-muted);
}

.source-link a {
	color: var(--c-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.source-link a:hover {
	color: var(--c-primary);
}

.aside-title {
	margin-bottom: 30px;
	font-size: 24px;
	font-weight: 600;
}

.facts {
	display: grid;
	gap: 24px;
	margin: 0;
}

.facts dt {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--c-muted);
}

.facts dt .icon {
	color: var(--c-muted);
}

.facts dd {
	margin: 8px 0 0;
	font-size: 16.5px;
	font-weight: 500;
	color: var(--c-text);
	overflow-wrap: anywhere;
}

.facts dd a {
	color: var(--c-text);
}

.facts dd a:hover {
	color: var(--c-primary);
}

.badge-protected {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 26px;
	padding: 6px 12px;
	border: 1px solid var(--c-border);
	border-radius: 3px;
	background: #fff;
	font-size: 13px;
	font-weight: 700;
	color: var(--c-primary);
}

.firm-aside .btn-block {
	margin-top: 28px;
	min-height: 48px;
}

.map {
	overflow: hidden;
	margin-top: 30px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-tint-2);
	aspect-ratio: 360 / 320;
}

.map iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.map-consent {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 100%;
	padding: 24px;
	border: 0;
	background: linear-gradient(135deg, var(--c-tint-2), var(--c-chip));
	color: var(--c-primary);
	text-align: center;
	cursor: pointer;
}

.map-consent-title {
	font-weight: 700;
	font-size: 16px;
}

.map-consent-text {
	max-width: 240px;
	font-size: 13px;
	color: var(--c-muted);
}

.map-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 14px;
	font-size: 14px;
	color: var(--c-primary);
}

/* ------------------------------------------------------------------
   Anmeldelser
------------------------------------------------------------------ */
.reviews {
	margin-top: 56px;
	padding-top: 56px;
	border-top: 1px solid var(--c-border);
}

.reviews-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 34px;
}

.reviews-summary {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	color: var(--c-muted);
}

.reviews-summary strong {
	color: var(--c-text);
	font-size: 17px;
}

.stars {
	display: inline-flex;
	gap: 2px;
}

.star {
	color: var(--c-star);
	display: inline-flex;
}

.star.is-full svg {
	fill: var(--c-star);
}

.star.is-half svg {
	fill: rgba(212, 143, 0, 0.45);
}

.star.is-empty {
	color: #d7c8a6;
}

.reviews-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 44px 24px 46px;
	background: var(--c-tint-2);
	text-align: center;
	color: var(--c-muted);
}

.reviews-empty .icon {
	margin-bottom: 14px;
	color: var(--c-muted);
}

.reviews-empty .empty-title {
	font-size: 19px;
}

.review-list {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.review {
	padding: 24px 26px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: #fff;
}

.review-top {
	display: flex;
	align-items: center;
	gap: 14px;
}

.review-top .stars {
	margin-left: auto;
}

.review-avatar {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--c-chip);
	color: var(--c-primary);
	font-weight: 700;
}

.review-author {
	font-weight: 600;
	color: var(--c-text);
}

.review-date {
	font-size: 13px;
	color: var(--c-muted);
}

.review-text {
	margin-top: 14px;
	color: var(--c-muted);
	line-height: 1.75;
}

.review-text p + p {
	margin-top: 0.9em;
}

.review-reply {
	margin-top: 16px;
	padding: 14px 18px;
	border-left: 3px solid var(--c-chip);
	background: var(--c-tint-2);
	font-size: 15px;
	color: var(--c-muted);
}

.review-reply .review-author {
	margin-bottom: 4px;
	font-size: 14px;
}

.notice-box {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
	padding: 14px 18px;
	border-radius: var(--radius);
	background: var(--c-chip);
	color: var(--c-primary);
	font-weight: 500;
}

.review-form {
	margin-top: 48px;
}

.form-title {
	margin-bottom: 26px;
	font-size: 22px;
	font-weight: 600;
}

.form-note {
	margin-bottom: 18px;
	color: var(--c-muted);
}

.field {
	margin: 0 0 22px;
	padding: 0;
	border: 0;
}

.field label,
.field legend {
	display: block;
	margin-bottom: 10px;
	padding: 0;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--c-text);
}

.field input,
.field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: 0 1px 2px rgba(22, 38, 31, 0.05);
	font-size: 16px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input {
	height: 48px;
}

.field textarea {
	min-height: 140px;
	resize: vertical;
}

.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--c-primary);
	box-shadow: 0 0 0 3px rgba(8, 76, 53, 0.12);
}

.field textarea::placeholder {
	color: #8a938e;
}

.field-note {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--c-muted);
}

.rating-input {
	display: flex;
	align-items: center;
	gap: 18px;
}

.rating-stars {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 4px;
	margin-left: 4px;
}

.rating-stars input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.rating-stars label {
	margin: 0;
	padding: 4px;
	color: var(--c-star);
	cursor: pointer;
	transition: transform 0.12s ease;
}

.rating-stars label:hover {
	transform: scale(1.1);
}

.rating-stars label svg {
	transition: fill 0.12s ease;
}

.rating-stars input:checked ~ label svg,
.rating-stars label:hover svg,
.rating-stars label:hover ~ label svg {
	fill: var(--c-star);
}

.rating-stars:hover input:checked ~ label svg {
	fill: none;
}

.rating-stars:hover label:hover svg,
.rating-stars:hover label:hover ~ label svg {
	fill: var(--c-star);
}

.rating-stars input:focus-visible + label {
	outline: 2px solid var(--c-primary);
	outline-offset: 1px;
	border-radius: 4px;
}

.rating-label {
	font-size: 14.5px;
	color: var(--c-muted);
}

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

.review-form .btn-primary {
	min-height: 48px;
	padding: 0 20px;
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.site-footer {
	border-top: 1px solid var(--c-border);
	background: #fff;
}

.footer-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	min-height: 104px;
	padding-top: 24px;
	padding-bottom: 24px;
}

.footer-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	justify-self: start;
	font-size: 23px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--c-primary);
}

.footer-tagline {
	font-size: 14.5px;
	color: var(--c-muted);
	text-align: center;
}

.footer-link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	justify-self: end;
	font-size: 14.5px;
	color: var(--c-muted);
}

.footer-link:hover {
	color: var(--c-primary);
}

/* Diverse */
.post-list {
	display: grid;
	gap: 40px;
	max-width: 760px;
}

.alignwide,
.alignfull {
	max-width: 100%;
}

.wp-block-image img {
	border-radius: var(--radius);
}

/* ------------------------------------------------------------------
   Responsivt
------------------------------------------------------------------ */
@media (max-width: 1100px) {
	.city-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.firm-layout {
		grid-template-columns: minmax(0, 1fr) 320px;
	}

	.firm-main {
		padding-right: 40px;
	}

	.firm-aside {
		padding-left: 32px;
	}

	.filter-bar.has-city {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.filter-bar.has-city .filter-search {
		grid-column: 1 / -1;
	}
}

@media (max-width: 960px) {
	.header-inner {
		gap: 16px;
		min-height: 72px;
	}

	.site-logo {
		font-size: 25px;
	}

	.site-logo .icon {
		width: 26px;
		height: 26px;
	}

	.header-cta {
		display: none;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.main-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		gap: 16px;
		padding: 12px var(--gutter) 24px;
		background: #fff;
		border-top: 1px solid var(--c-border);
		border-bottom: 1px solid var(--c-border);
		box-shadow: 0 18px 30px -20px rgba(22, 38, 31, 0.35);
	}

	.nav-open .main-nav {
		display: flex;
	}

	.nav-list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav-list li + li {
		border-top: 1px solid var(--c-border);
	}

	.nav-list a {
		padding: 14px 0;
		font-size: 17px;
	}

	.nav-cta {
		display: inline-flex;
	}

	.spec-grid {
		grid-template-columns: 1fr;
	}

	.firm-layout {
		grid-template-columns: 1fr;
	}

	.firm-main {
		padding-right: 0;
	}

	.firm-aside {
		order: -1;
		margin-bottom: 56px;
		padding: 28px 24px;
		border: 1px solid var(--c-border);
		border-radius: var(--radius);
	}

	.trust-inner {
		flex-direction: column;
	}
}

@media (max-width: 760px) {
	:root {
		--gutter: 18px;
	}

	.hero {
		padding: 52px 0 48px;
	}

	.hero-lead {
		font-size: 17px;
	}

	.search-box {
		grid-template-columns: 1fr;
		padding: 8px;
	}

	.search-field {
		padding: 10px 12px 10px 14px;
	}

	.search-field + .search-field {
		border-left: 0;
		border-top: 1px solid var(--c-border);
	}

	.search-submit {
		width: 100%;
		margin-top: 8px;
	}

	.section {
		padding: 52px 0 56px;
	}

	.section-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.page-hero {
		padding: 36px 0 44px;
	}

	.page-lead {
		margin-top: 18px;
		font-size: 16.5px;
	}

	.page-body {
		padding-top: 40px;
		padding-bottom: 64px;
	}

	.city-grid-find {
		margin-bottom: 48px;
	}

	.filter-bar,
	.filter-bar.has-city {
		grid-template-columns: 1fr 1fr;
		gap: 14px;
	}

	.filter-bar .filter-search {
		grid-column: 1 / -1;
	}

	.firm-card {
		grid-template-columns: 56px 1fr;
		gap: 18px;
		padding: 22px 20px;
	}

	.firm-logo {
		width: 56px;
		height: 56px;
		align-self: start;
	}

	.firm-name {
		font-size: 20px;
	}

	.firm-cta {
		grid-column: 1 / -1;
		justify-self: stretch;
	}

	.firm-hero-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.firm-hero-logo {
		width: 84px;
		height: 84px;
	}

	.firm-hero-logo .icon {
		width: 30px;
		height: 30px;
	}

	.review-top {
		flex-wrap: wrap;
	}

	.footer-inner {
		grid-template-columns: 1fr;
		justify-items: start;
		gap: 10px;
		padding-top: 32px;
		padding-bottom: 32px;
	}

	.footer-tagline {
		text-align: left;
	}

	.footer-link {
		justify-self: start;
	}
}

@media (max-width: 760px) {
	.city-grid-find {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(240px, 72%);
		gap: 14px;
		margin-right: calc(var(--gutter) * -1);
		margin-left: calc(var(--gutter) * -1);
		padding: 2px var(--gutter) 10px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-left: var(--gutter);
		-webkit-overflow-scrolling: touch;
	}

	.city-grid-find .city-card {
		scroll-snap-align: start;
	}

	.map {
		aspect-ratio: 16 / 10;
	}
}

@media (max-width: 520px) {
	.city-grid:not(.city-grid-find) {
		grid-template-columns: 1fr;
	}

	.filter-bar,
	.filter-bar.has-city {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}
