/* ==========================================================================
   THS Pleje & Rengøring — main.css
   Only what theme.json can't express. Tokens come from theme.json presets.
   ========================================================================== */

:root {
	--c-primary: var(--wp--preset--color--primary);
	--c-primary-dark: var(--wp--preset--color--primary-dark);
	--c-accent: var(--wp--preset--color--accent);
	--c-soft: var(--wp--preset--color--soft);
	--c-base: var(--wp--preset--color--base);
	--c-surface: var(--wp--preset--color--surface);
	--c-text: var(--wp--preset--color--text);
	--c-muted: var(--wp--preset--color--muted);
	--c-border: #E3DAE2;
	--c-error: #B42318;
	--c-error-bg: #FDECEA;
	--c-ok: #2F6B45;
	--c-ok-bg: #E7F2EA;
	--ths-gutter: clamp(1rem, 4vw, 2rem);
	--ths-radius: 12px;
	--ths-shadow: var(--wp--preset--shadow--soft);
	--ths-max: 1200px;
	--ths-header-h: 76px;
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--ths-header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; }
img, svg, picture { max-width: 100%; height: auto; }
picture { display: block; }
.ths-icon { flex: none; width: 1.25em; height: 1.25em; }
p, li { max-width: 68ch; }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--c-primary);
	outline-offset: 3px;
	border-radius: 4px;
}
.ths-section--primary :where(a, button):focus-visible,
.ths-site-footer :where(a, button):focus-visible,
.ths-topbar :where(a, button):focus-visible { outline-color: #fff; }

.screen-reader-text {
	border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
	padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip-path: none; height: auto; width: auto; margin: 0; z-index: 1000;
	top: 8px; left: 8px; padding: 12px 18px; background: var(--c-surface);
	color: var(--c-primary); font-weight: 700; border-radius: 8px; box-shadow: var(--ths-shadow);
}

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

/* Placeholder marker — remove all [UDFYLD …] before launch */
.ths-udfyld {
	background: #FFF1B8; color: #5A4300; padding: 0 0.25em; border-radius: 4px;
	outline: 1px dashed #C9A100; font-size: 0.92em;
}

/* Buttons */
.wp-element-button, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 48px; text-align: center; cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.ths-btn--outline.wp-element-button,
.ths-btn--outline {
	background: transparent; color: var(--c-primary);
	border: 2px solid var(--c-primary);
}
.ths-btn--outline:hover { background: var(--c-primary); color: #fff; }
.is-style-outline .wp-block-button__link:hover { background: var(--c-primary); color: #fff; }
.ths-btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Typography helpers */
.ths-eyebrow { font-weight: 700; color: var(--c-primary); font-size: 0.9375rem; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 0.75rem; }
.ths-lead { font-size: var(--wp--preset--font-size--large); color: var(--c-text); line-height: 1.55; }
.ths-small { font-size: var(--wp--preset--font-size--small); color: var(--c-muted); }
.ths-center { text-align: center; margin-inline: auto; }
.ths-h3 { font-size: var(--wp--preset--font-size--x-large) !important; }
.ths-h4 { font-size: var(--wp--preset--font-size--large) !important; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
:where(h1, h2, h3, h4) { margin-block: 0 0.5em; }

/* ---------- Layout ---------- */
.ths-container { max-width: var(--ths-max); margin-inline: auto; padding-inline: var(--ths-gutter); box-sizing: content-box; }
.ths-narrow { max-width: 760px; }
.wp-site-blocks > *, .ths-main > *, .ths-page-content > section { margin-block: 0; }
.ths-section { padding-block: clamp(3rem, 8vw, 6rem); }
.ths-section--surface { background: var(--c-surface); }
.ths-section--soft { background: var(--c-soft); }
.ths-section--primary { background: var(--c-primary); color: #fff; }
.ths-section--primary :where(h2, h3, a:not(.wp-element-button)) { color: #fff; }
.ths-section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3rem); }
.ths-section__head p { margin-inline: auto; color: var(--c-muted); }

.ths-grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .ths-grid--2, .ths-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ths-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ths-grid > * { margin: 0 !important; }

.ths-split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .ths-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.ths-split__media .ths-picture img,
.ths-hero__media img,
.ths-page-hero__media img {
	border-radius: var(--ths-radius); box-shadow: var(--ths-shadow); width: 100%; object-fit: cover;
}
.ths-split__media img { aspect-ratio: 4 / 5; max-height: 640px; }

/* Content pages: plain blocks get readable width + gutter; full sections stay full width */
.ths-page-content > :not(section):not(.alignfull):not(.ths-section) {
	max-width: 720px; margin-inline: auto; padding-inline: var(--ths-gutter); box-sizing: content-box;
}
.ths-page-content > :not(section):first-child { margin-top: clamp(2.5rem, 6vw, 4rem); }
.ths-page-content > :not(section):last-child { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.ths-prose > * + * { margin-top: 1rem; }
.ths-prose h2 { margin-top: 2.5rem; font-size: var(--wp--preset--font-size--x-large); }
.ths-prose h3 { margin-top: 1.75rem; font-size: var(--wp--preset--font-size--large); }

/* ---------- Cards ---------- */
.ths-card {
	background: var(--c-surface); border-radius: var(--ths-radius); box-shadow: var(--ths-shadow);
	padding: clamp(1.5rem, 3vw, 2rem); color: var(--c-text);
}
.ths-card > * { margin-block: 0; }
.ths-card > * + * { margin-top: 0.75rem; }
.ths-card h3 { font-size: var(--wp--preset--font-size--x-large); }
.ths-card__icon, .ths-benefit__icon {
	display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
	background: var(--c-soft); color: var(--c-primary);
}
.ths-card--service { display: flex; flex-direction: column; border-top: 4px solid var(--c-accent); }
.ths-card--service .ths-more { margin-top: auto; padding-top: 0.5rem; }
.ths-more a { font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- Topbar ---------- */
.ths-topbar { background: var(--c-primary-dark); color: #fff; font-size: 0.9375rem; display: none; }
@media (min-width: 1024px) { .ths-topbar { display: block; } }
.ths-topbar__inner { max-width: var(--ths-max); margin-inline: auto; padding: 0 var(--ths-gutter); display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.ths-topbar__list, .ths-social { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.5rem; }
.ths-topbar__list li, .ths-topbar__link { display: inline-flex; align-items: center; gap: 0.5rem; }
.ths-topbar a { color: #fff; text-decoration: none; }
.ths-topbar a:hover { text-decoration: underline; }
.ths-social { gap: 0.25rem; }
.ths-social a { display: inline-grid; place-items: center; width: 44px; height: 44px; color: inherit; border-radius: 50%; }
.ths-social a:hover { background: rgba(255,255,255,.12); }
.ths-social--topbar a { width: 36px; height: 36px; }
.ths-topbar .ths-udfyld { color: #5A4300; }

/* ---------- Header ---------- */
.ths-site-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .ths-site-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .ths-site-header { top: 0; } }
.ths-header { background: var(--c-surface); border-bottom: 1px solid var(--c-border); transition: box-shadow .2s ease; }
.ths-header.is-scrolled { box-shadow: 0 4px 18px rgba(43,34,48,.08); }
.ths-header__inner {
	max-width: var(--ths-max); margin-inline: auto; padding: 0 var(--ths-gutter);
	display: flex; align-items: center; gap: 1rem; min-height: var(--ths-header-h); transition: min-height .2s ease;
}
.ths-header.is-scrolled .ths-header__inner { min-height: 64px; }

.ths-logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--c-text); margin-right: auto; min-height: 44px; }
.ths-logo img { width: auto; height: 44px; transition: height .2s ease; }
.ths-header.is-scrolled .ths-logo img { height: 38px; }
.ths-logo__text { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 1.125rem; line-height: 1.1; letter-spacing: -0.01em; }
.ths-logo__amp { color: var(--c-primary); }
@media (max-width: 380px) { .ths-logo__text { font-size: 1rem; } }

.ths-header__actions { display: flex; align-items: center; gap: 0.5rem; }
.ths-header__phone {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-width: 44px; min-height: 44px; border-radius: 999px; color: var(--c-primary);
	font-weight: 700; text-decoration: none; background: var(--c-soft); padding: 0 0.75rem;
}
.ths-header__phone-text { display: none; }
.ths-header__cta { display: none; }
@media (min-width: 640px) { .ths-header__cta { display: inline-flex; min-height: 44px; padding: 0.5rem 1.15rem; font-size: 1rem; } }
@media (min-width: 1200px) {
	.ths-header__phone { background: none; }
	.ths-header__phone-text { display: inline; }
}

.ths-nav-toggle {
	display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 12px;
	background: transparent; color: var(--c-text); cursor: pointer;
}
.ths-nav-toggle:hover { background: var(--c-soft); }
.ths-nav-toggle__close, .ths-header.is-open .ths-nav-toggle__open { display: none; }
.ths-header.is-open .ths-nav-toggle__close { display: block; }

/* Menu – shared */
.ths-menu, .ths-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.ths-menu a { color: var(--c-text); text-decoration: none; font-weight: 600; }
.ths-menu a:hover, .ths-menu .current-menu-item > a, .ths-menu [aria-current="page"] { color: var(--c-primary); }
.ths-menu .current-menu-item > a, .ths-menu .current-menu-ancestor > a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
.ths-sub-toggle {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none;
	color: inherit; cursor: pointer; border-radius: 8px;
}
.ths-sub-toggle svg { transition: transform .15s ease; }
.ths-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.ths-nav__mobile-cta { display: grid; gap: 0.75rem; padding-top: 1.25rem; }

/* Menu – mobile (<1024) */
@media (max-width: 1023.98px) {
	.ths-header__inner { position: relative; }
	.ths-js .ths-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--c-surface); border-bottom: 1px solid var(--c-border); box-shadow: 0 16px 24px rgba(43,34,48,.08);
		padding: 0.5rem var(--ths-gutter) 1.5rem; max-height: calc(100dvh - var(--ths-header-h)); overflow-y: auto;
	}
	.ths-js .ths-header.is-open .ths-nav { display: block; }
	html:not(.ths-js) .ths-nav { order: 10; flex-basis: 100%; padding-bottom: 1rem; }
	html:not(.ths-js) .ths-header__inner { flex-wrap: wrap; }
	html:not(.ths-js) .ths-nav-toggle { display: none; }
	.ths-menu > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--c-border); }
	.ths-menu > li > a { flex: 1; display: flex; align-items: center; min-height: 52px; font-size: 1.0625rem; }
	.ths-menu .sub-menu { flex-basis: 100%; padding: 0 0 0.75rem 1rem; }
	.ths-js .ths-menu .sub-menu { display: none; }
	.ths-menu li.is-open > .sub-menu { display: block; }
	.ths-menu .sub-menu a { display: flex; align-items: center; min-height: 44px; font-weight: 400; }
	html.ths-nav-open { overflow: hidden; }
}

/* Menu – desktop (≥1024) */
@media (min-width: 1024px) {
	.ths-nav-toggle, .ths-nav__mobile-cta { display: none; }
	.ths-nav { margin-left: auto; }
	.ths-menu { display: flex; align-items: center; gap: 0.25rem; }
	.ths-menu > li { position: relative; display: flex; align-items: center; }
	.ths-menu > li > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.6rem; }
	.ths-menu .ths-sub-toggle { width: 28px; margin-left: -0.4rem; }
	.ths-menu .sub-menu {
		position: absolute; top: 100%; left: 0; min-width: 270px; padding: 0.5rem;
		background: var(--c-surface); border-radius: var(--ths-radius); box-shadow: var(--ths-shadow);
		border: 1px solid var(--c-border); visibility: hidden; opacity: 0; transform: translateY(4px);
		transition: opacity .15s ease, transform .15s ease, visibility .15s;
	}
	html:not(.ths-js) .ths-menu li:hover > .sub-menu,
	.ths-menu li:focus-within > .sub-menu,
	.ths-menu li.is-open > .sub-menu { visibility: visible; opacity: 1; transform: none; }
	.ths-menu .sub-menu a { display: flex; align-items: center; min-height: 44px; padding: 0.25rem 0.75rem; border-radius: 8px; font-weight: 600; }
	.ths-menu .sub-menu a:hover { background: var(--c-soft); }
	.ths-header__actions { margin-left: 0.5rem; }
}

/* ---------- Hero (front page) ---------- */
.ths-hero { background: linear-gradient(180deg, var(--c-soft) 0%, var(--c-base) 100%); padding-block: clamp(2rem, 6vw, 5rem); }
.ths-hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .ths-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.ths-hero__text > * { margin-block: 0; }
.ths-hero__text > * + * { margin-top: 1rem; }
.ths-hero h1 { margin-top: 0.25rem; }
.ths-hero__media img { aspect-ratio: 4 / 5; max-height: min(78vh, 640px); }
@media (max-width: 899.98px) { .ths-hero__media img { aspect-ratio: 4 / 3; max-height: 420px; } }

.ths-badges { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.ths-badges li { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.ths-badges .ths-icon { color: var(--c-primary); }

/* ---------- Page hero ---------- */
.ths-page-hero { background: var(--c-soft); padding-block: clamp(2rem, 5vw, 4rem); }
.ths-page-hero__inner { max-width: var(--ths-max); margin-inline: auto; padding-inline: var(--ths-gutter); display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .ths-page-hero.has-media .ths-page-hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.ths-page-hero__title { margin: 0.5rem 0 0; }
.ths-page-hero .ths-lead { margin: 1rem 0 0; }
.ths-page-hero__media img { aspect-ratio: 4 / 3; max-height: 440px; }
.ths-page-hero.is-simple .ths-page-hero__text { max-width: 760px; }

.ths-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; font-size: var(--wp--preset--font-size--small); color: var(--c-muted); }
.ths-breadcrumbs li { display: inline-flex; align-items: center; }
.ths-breadcrumbs li + li::before { content: "›"; margin-right: 0.35rem; color: var(--c-muted); }
.ths-breadcrumbs a { color: var(--c-muted); display: inline-flex; min-height: 32px; align-items: center; }

/* ---------- Steps ---------- */
.ths-step { position: relative; padding: 2rem 1.5rem 1.5rem; background: var(--c-surface); border-radius: var(--ths-radius); box-shadow: var(--ths-shadow); }
.ths-step > * { margin-block: 0; }
.ths-step > * + * { margin-top: 0.5rem; }
.ths-step__num {
	display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
	background: var(--c-primary); color: #fff; font-family: var(--wp--preset--font-family--heading); font-size: 1.375rem; font-weight: 600;
	margin-bottom: 0.75rem !important;
}

/* ---------- Benefits ---------- */
.ths-benefits { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 600px) { .ths-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ths-benefits > *, .ths-steps > *, .ths-chips > *, .ths-benefit > * { margin-block: 0 !important; }
.ths-header__cta { align-self: center; height: 44px; line-height: 1.2; white-space: nowrap; }
.ths-benefit { display: grid; grid-template-columns: 56px 1fr; column-gap: 1rem; align-items: start; }
.ths-benefit > * { margin: 0; grid-column: 2; }
.ths-benefit > .ths-benefit__icon, .ths-benefit > :first-child { grid-column: 1; grid-row: 1 / span 2; }
.ths-benefit h3 { margin-bottom: 0.25rem; }

/* ---------- Testimonials ---------- */
.ths-stars { display: inline-flex; gap: 2px; color: #B7791F; vertical-align: middle; }
.ths-rating { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; margin-inline: auto; }
.ths-quote { margin: 0; display: flex; flex-direction: column; }
.ths-quote__text { font-size: var(--wp--preset--font-size--large); line-height: 1.5; flex: 1; }
.ths-quote__name { font-weight: 700; color: var(--c-muted); font-size: var(--wp--preset--font-size--small); }

/* ---------- Areas / chips ---------- */
.ths-chips { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 1rem; }
.ths-chips li { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 999px; padding: 0.4rem 0.9rem; font-weight: 600; }

/* ---------- Map (click to load) ---------- */
.ths-map {
	position: relative; aspect-ratio: 4 / 3; border-radius: var(--ths-radius); overflow: hidden;
	background:
		radial-gradient(circle at 30% 40%, rgba(127,165,138,.25) 0 18%, transparent 19%),
		radial-gradient(circle at 72% 65%, rgba(127,165,138,.2) 0 14%, transparent 15%),
		repeating-linear-gradient(35deg, transparent 0 46px, rgba(107,45,104,.07) 46px 50px),
		repeating-linear-gradient(-55deg, transparent 0 70px, rgba(107,45,104,.07) 70px 76px),
		var(--c-soft);
	box-shadow: var(--ths-shadow);
}
.ths-map__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.75rem; text-align: center; padding: 1.5rem; }
.ths-map__placeholder > * { margin: 0; }
.ths-map__pin { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--c-primary); color: #fff; box-shadow: var(--ths-shadow); }
.ths-map__address { background: rgba(255,255,255,.92); padding: 0.5rem 1rem; border-radius: 8px; }
.ths-map__note { font-size: 0.875rem; color: var(--c-text); background: rgba(255,255,255,.92); padding: 0.5rem 0.75rem; border-radius: 8px; max-width: 46ch; }
.ths-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 520px) { .ths-map { aspect-ratio: auto; min-height: 380px; } }

/* ---------- CTA band ---------- */
.ths-cta__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 960px) { .ths-cta__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.ths-cta__text > * { margin-block: 0; }
.ths-cta__text > * + * { margin-top: 1rem; }
.ths-cta__text p { color: #F6EEF5; }
.ths-cta__contact { list-style: none; padding: 0; margin: 1.5rem 0 0 !important; display: grid; gap: 0.5rem; }
.ths-cta__contact li, .ths-cta__contact a { display: inline-flex; align-items: center; gap: 0.75rem; font-weight: 700; color: #fff; min-height: 44px; }
.ths-cta__contact .ths-icon { width: 22px; height: 22px; }
.ths-cta .ths-udfyld { color: #5A4300; }

/* ---------- Forms ---------- */
.ths-form__grid { display: grid; gap: 1.1rem 1rem; }
@media (min-width: 600px) { .ths-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ths-field { display: flex; flex-direction: column; gap: 0.35rem; }
.ths-field--wide { grid-column: 1 / -1; }
.ths-field > label { font-weight: 700; }
.ths-req { color: var(--c-error); }
.ths-field__hint { margin: 0; font-size: 0.9375rem; color: var(--c-muted); }
.ths-form :where(input[type="text"], input[type="tel"], input[type="email"], select, textarea) {
	font: inherit; color: var(--c-text); background: var(--c-surface);
	border: 1.5px solid #8F8496; border-radius: 8px; padding: 0.7rem 0.85rem; min-height: 48px; width: 100%; box-sizing: border-box;
}
.ths-form textarea { min-height: 120px; resize: vertical; }
.ths-form :where(input, select, textarea):focus-visible { outline: 3px solid var(--c-primary); outline-offset: 1px; border-color: var(--c-primary); }
.ths-form input[type="file"] { font: inherit; padding: 0.5rem 0; width: 100%; max-width: 100%; min-width: 0; }
.ths-field { min-width: 0; }
.ths-form input[type="file"]::file-selector-button {
	font: inherit; font-weight: 700; margin-right: 0.75rem; padding: 0.6rem 1rem; min-height: 44px;
	border-radius: 999px; border: 2px solid var(--c-primary); background: var(--c-surface); color: var(--c-primary); cursor: pointer;
}
.ths-field.has-error :where(input, select, textarea) { border-color: var(--c-error); border-width: 2px; }
.ths-field__error { margin: 0; color: var(--c-error); font-weight: 600; font-size: 0.9375rem; }
.ths-field--consent { flex-direction: row; align-items: flex-start; gap: 0.75rem; }
.ths-field--consent input { width: 24px; height: 24px; margin: 0.15rem 0 0; flex: none; accent-color: var(--c-primary); }
.ths-field--consent label { font-weight: 400; }
.ths-field--consent .ths-field__error { flex-basis: 100%; }
.ths-field--consent { flex-wrap: wrap; }
.ths-form__required-note { font-size: 0.9375rem; color: var(--c-muted); margin: 0 0 1rem; }
.ths-form__submit { margin-top: 1.5rem; width: 100%; }
@media (min-width: 600px) { .ths-form__submit { width: auto; } }
.ths-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ths-form { position: relative; }

.ths-notice { border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; border-left: 5px solid; }
.ths-notice p { margin: 0; }
.ths-notice p + p, .ths-notice ul { margin-top: 0.5rem; }
.ths-notice--success { background: var(--c-ok-bg); color: var(--c-ok); border-color: var(--c-ok); }
.ths-notice--error { background: var(--c-error-bg); color: var(--c-error); border-color: var(--c-error); }
.ths-notice--error a { color: var(--c-error); }
.ths-notice:focus { outline: 3px solid currentColor; outline-offset: 2px; }

/* ---------- Checklist ---------- */
.ths-checklist { list-style: none; padding-left: 0 !important; display: grid; gap: 0.6rem; }
.ths-checklist li { position: relative; padding-left: 2rem; }
.ths-checklist li::before {
	content: ""; position: absolute; left: 0; top: 0.2em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
	background: var(--c-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B2D68' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}
.ths-checklist--card { background: var(--c-surface); border-radius: var(--ths-radius); box-shadow: var(--ths-shadow); padding: 1.75rem !important; margin: 0; }
.ths-section--soft .ths-checklist li::before { background-color: var(--c-surface); }

/* ---------- Prices ---------- */
.ths-price { display: flex; flex-direction: column; }
.ths-price .wp-block-buttons { margin-top: auto !important; padding-top: 1rem; }
.ths-price__amount { font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--x-large); color: var(--c-primary); }
.ths-price.is-featured { outline: 2px solid var(--c-primary); }

/* ---------- FAQ (details) ---------- */
.ths-faq, .wp-block-details { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--ths-radius); padding: 0 1.25rem; margin-top: 0.75rem !important; }
.wp-block-details summary {
	cursor: pointer; font-weight: 700; padding: 1rem 2rem 1rem 0; min-height: 44px; list-style: none; position: relative;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	font-size: 1.5rem; line-height: 1; color: var(--c-primary);
}
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details > :not(summary) { margin-top: 0; padding-bottom: 1rem; }

/* ---------- Contact ---------- */
.ths-contact { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .ths-contact { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.ths-contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; }
.ths-contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.ths-contact-list .ths-icon { color: var(--c-primary); width: 28px; height: 28px; margin-top: 0.15rem; }
.ths-contact-list a { display: inline-flex; min-height: 32px; align-items: center; }

/* ---------- Jobs ---------- */
.ths-job-list { margin-top: 1.5rem; }
.ths-job-list .wp-block-post-template { list-style: none; padding: 0; margin: 0; }
.ths-job-card .wp-block-post-title a { text-decoration: none; color: var(--c-text); }
.ths-job-card .wp-block-post-title a:hover { color: var(--c-primary); text-decoration: underline; }
.ths-job-card .wp-block-post-excerpt__more-link { font-weight: 700; }
.ths-job-single { display: grid; gap: clamp(2rem, 5vw, 3rem); align-items: start; }
@media (min-width: 900px) { .ths-job-single { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.ths-jobfacts { margin: 1rem 0 0; display: grid; gap: 0.75rem; }
.ths-jobfacts div { display: grid; gap: 0.1rem; }
.ths-jobfacts dt { font-weight: 700; font-size: 0.9375rem; color: var(--c-muted); }
.ths-jobfacts dd { margin: 0; }

/* ---------- Footer ---------- */
.ths-footer { background: var(--c-text); color: #D9CFDC; padding-block: clamp(3rem, 7vw, 4.5rem) 1.5rem; font-size: 1rem; }
.ths-footer__inner { max-width: var(--ths-max); margin-inline: auto; padding-inline: var(--ths-gutter); }
.ths-footer a { color: #fff; }
.ths-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .ths-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ths-footer__grid { grid-template-columns: 1.3fr 1.2fr 1fr 1fr; } }
.ths-footer .ths-logo { color: #fff; margin: 0; }
.ths-footer .ths-logo img { background: #fff; border-radius: 10px; padding: 4px 6px; height: 48px; }
.ths-footer .ths-logo__amp { color: #E6C9E4; }
.ths-footer__title { color: #fff; font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 1rem; }
.ths-footer__links, .ths-footer__contact, .ths-footer__legal { list-style: none; margin: 0; padding: 0; }
.ths-footer__links a, .ths-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.ths-footer__links a:hover, .ths-footer__legal a:hover { text-decoration: underline; }
.ths-footer__contact { display: grid; gap: 0.25rem; margin-top: 1rem; }
.ths-footer__contact li, .ths-footer__contact a { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; text-decoration: none; }
.ths-footer__nap { font-style: normal; line-height: 1.6; }
.ths-footer__nap strong { color: #fff; }
.ths-footer__cvr { margin-top: 0.75rem; }
.ths-footer__jobs { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: #fff; min-height: 44px; margin-top: 0.5rem; padding: 0.4rem 1rem; border: 2px solid rgba(255,255,255,.5); border-radius: 999px; text-decoration: none; }
.ths-footer__jobs:hover { background: #fff; color: var(--c-text); }
.ths-footer__bottom { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1.5rem; font-size: 0.9375rem; }
.ths-footer__bottom p { margin: 0; }
.ths-footer__legal { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.ths-footer .ths-social { margin-top: 1rem; }
.ths-footer .ths-social a:hover { background: rgba(255,255,255,.12); }
.ths-footer .ths-udfyld { color: #5A4300; }

/* Editor: show sections roughly as on the front end */
.editor-styles-wrapper .ths-hero__media:empty,
.editor-styles-wrapper .ths-split__media:empty { min-height: 200px; background: var(--c-soft); border-radius: var(--ths-radius); }
