/*
Theme Name: A&Y Rengøring & Haveservice
Theme URI: https://ay-rengoering.dk/
Author: Elmaz Niksic
Author URI: https://alien-dev.com/
Co-Author: Claude Fable 5.2
Description: Skræddersyet tema til A&Y Rengøring & Haveservice: forside med interaktive ydelsesdiagrammer, prisliste og tilbudsformular med billedupload. Tekster, billeder, priser og ydelser redigeres i kontrolpanelet.
Version: 1.0.6
Requires at least: 6.5
Tested up to: 7.1
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: ay-rengoering
*/

/* ---------- Grundlag ---------- */

@font-face {
	font-family: Jost;
	src: url(assets/fonts/jost.woff2) format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Farverne fra designet. De mørkere varianter (-700) bruges til tekst, hvor den rene farve ikke er læselig nok. */
	--bg: #EAF7FC;
	--navy: #003B65;
	--navy-900: #002A49;
	--green: #65B32E;
	--green-700: #357A14;
	--green-100: #E8F4DC;
	--blue: #29A9DF;
	--blue-700: #0B74A8;
	--blue-100: #D9F0FA;
	--muted: #3E6584;
	--line: #D3E6EF;
	--red: #B42318;

	--radius: 22px;
	--shadow: 0 18px 40px -22px rgba(0, 59, 101, .38);
	--shadow-sm: 0 6px 18px -10px rgba(0, 59, 101, .32);
	--header-h: 76px;
	--font: Jost, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 1040px) {
	:root { --header-h: 92px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--navy);
	font: 400 1.0625rem/1.65 var(--font);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
	margin: 0 0 .5em;
	font-weight: 600;
	line-height: 1.14;
	letter-spacing: -.01em;
	text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.1rem + 3.3vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 1.15rem + 2vw, 2.6rem); }
p { margin: 0 0 1em; }

a { color: var(--blue-700); text-underline-offset: .18em; }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }

.ay-wrap { width: min(100% - 2.5rem, 1180px); margin-inline: auto; }
.ay-wrap--narrow { width: min(100% - 2.5rem, 820px); }

.ay-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ay-skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1.1rem; background: var(--navy); color: #fff; border-radius: 0 0 12px 12px; }
.ay-skip:focus { top: 0; color: #fff; }

.ay-icon { display: inline-block; flex: none; width: 1.5em; height: 1.5em; }

/* ---------- Knapper ---------- */

.ay-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	padding: .8em 1.5em;
	border: 2px solid transparent;
	border-radius: 999px;
	font: 600 1rem/1.2 var(--font);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform .2s, box-shadow .2s, background-color .2s, color .2s;
}

.ay-btn .ay-icon { width: 1.2em; height: 1.2em; }
.ay-btn:hover { transform: translateY(-2px); }
.ay-btn:disabled { opacity: .6; cursor: progress; transform: none; }
.ay-btn--lg { padding: 1em 1.8em; font-size: 1.0625rem; }

.ay-btn--green { background: var(--green); color: var(--navy-900); box-shadow: 0 12px 24px -12px rgba(58, 130, 23, .75); }
.ay-btn--green:hover { background: #74C83A; color: var(--navy-900); }

.ay-btn--navy { background: var(--navy); color: #fff; }
.ay-btn--navy:hover { background: var(--navy-900); color: #fff; }

.ay-btn--white { background: #fff; color: var(--navy); border-color: rgba(0, 59, 101, .14); box-shadow: var(--shadow-sm); }

.ay-btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.ay-btn--outline:hover { background: var(--navy); color: #fff; }

.ay-actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 1.6rem; }

.ay-linkbtn { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Sidehoved ---------- */

.ay-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--header-h);
	background: rgba(255, 255, 255, .95);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid rgba(0, 59, 101, .08);
	transition: box-shadow .25s;
}

.ay-header.is-scrolled { box-shadow: 0 12px 30px -20px rgba(0, 59, 101, .5); }

.ay-header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* Logoet står på en hvid plade, der hænger lidt ud under sidehovedet – og trækker sig op, når man ruller. */
.ay-header__logo {
	position: relative;
	z-index: 2;
	align-self: flex-start;
	margin-left: -12px;
	padding: 8px 14px 12px;
	background: #fff;
	border-radius: 0 0 26px 26px;
	box-shadow: 0 16px 28px -18px rgba(0, 59, 101, .5);
}

.ay-header__logo img { width: auto; height: calc(var(--header-h) + 6px); transition: height .25s; }
.is-scrolled .ay-header__logo img { height: calc(var(--header-h) - 22px); }

.ay-nav { display: flex; align-items: center; gap: .75rem; }
.ay-nav__list { display: flex; align-items: center; gap: .1rem; margin: 0; padding: 0; list-style: none; }

.ay-nav__list a {
	display: block;
	padding: .5rem .8rem;
	border-radius: 999px;
	color: var(--navy);
	font-weight: 500;
	text-decoration: none;
	transition: background-color .2s;
}

.ay-nav__list a:hover { background: var(--blue-100); }
.ay-nav__list a.is-active { background: var(--bg); box-shadow: inset 0 -3px 0 var(--green); }
.ay-nav__cta { margin-left: .5rem; white-space: nowrap; }
.ay-burger { display: none; }

@media (max-width: 1039px) {
	.ay-burger {
		display: grid;
		place-items: center;
		width: 48px;
		height: 48px;
		border: 0;
		border-radius: 14px;
		background: var(--bg);
		color: var(--navy);
		cursor: pointer;
	}

	.ay-burger__close, .ay-burger[aria-expanded="true"] .ay-burger__open { display: none; }
	.ay-burger[aria-expanded="true"] .ay-burger__close { display: block; }

	.ay-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		max-height: calc(100dvh - var(--header-h));
		overflow: auto;
		padding: 2.4rem 1.25rem 1.5rem;
		background: #fff;
		border-radius: 0 0 26px 26px;
		box-shadow: 0 30px 40px -22px rgba(0, 59, 101, .45);
	}

	.ay-header.is-open .ay-nav { display: flex; }
	.ay-nav__list { flex-direction: column; align-items: stretch; gap: .15rem; }
	.ay-nav__list a { padding: .85rem 1rem; border-radius: 14px; font-size: 1.125rem; }
	.ay-nav__cta { margin: 0; }
}

/* ---------- Velkomst ---------- */

.ay-hero { position: relative; isolation: isolate; overflow: hidden; }
.ay-hero__media { position: absolute; inset: 0; z-index: -2; }
.ay-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }

/* Lyst slør i venstre side, så den mørkeblå tekst altid kan læses oven på billedet. */
.ay-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(95deg, rgba(234, 247, 252, .98) 0%, rgba(234, 247, 252, .94) 36%, rgba(234, 247, 252, .6) 58%, rgba(234, 247, 252, 0) 80%);
}

.ay-hero__in {
	display: grid;
	align-items: center;
	min-height: min(86vh, 820px);
	padding-block: clamp(3.5rem, 7vw, 6rem) clamp(5.5rem, 11vw, 9.5rem);
}

.ay-hero__text { max-width: 39rem; }
.ay-hero__lead { margin-bottom: .6em; font-size: 1.25rem; font-weight: 600; }
.ay-hero__closing { display: flex; align-items: center; gap: .5em; color: var(--green-700); font-size: 1.125rem; font-weight: 600; }
.ay-hero .ay-wave { position: absolute; left: 0; bottom: -1px; }

.ay-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	margin: 0 0 1rem;
	padding: .4em .95em;
	border-radius: 999px;
	background: var(--blue-100);
	color: var(--navy);
	font-size: .875rem;
	font-weight: 600;
	letter-spacing: .03em;
}

.ay-eyebrow .ay-icon { width: 1.15em; height: 1.15em; color: var(--blue-700); }
.ay-eyebrow--green { background: var(--green-100); }
.ay-eyebrow--green .ay-icon { color: var(--green-700); }
.ay-hero .ay-eyebrow { background: #fff; box-shadow: var(--shadow-sm); }

@media (max-width: 820px) {
	.ay-hero .ay-eyebrow { align-items: flex-start; padding: 0; background: none; box-shadow: none; line-height: 1.35; }
	.ay-hero .ay-eyebrow .ay-icon { margin-top: .1em; }
	/* På telefoner ligger billedet øverst og teksten nedenunder – ikke oven på hinanden. */
	.ay-hero::before { display: none; }
	.ay-hero__media { position: relative; inset: auto; height: clamp(200px, 54vw, 340px); }
	.ay-hero__media::after { content: ""; position: absolute; inset: auto 0 -1px; height: 45%; background: linear-gradient(180deg, rgba(234, 247, 252, 0), var(--bg)); }
	.ay-hero__in { min-height: 0; padding-block: .75rem 4.5rem; }
}

/* ---------- Sektioner ---------- */

.ay-section { position: relative; padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.ay-section--white { background: #fff; }

.ay-wave { display: block; width: 100%; height: clamp(28px, 5vw, 80px); }
.ay-wave--bg path { fill: var(--bg); }
.ay-wave--top, .ay-wave--bottom, .ay-wave--footer { position: absolute; left: 0; }
.ay-wave--top, .ay-wave--footer { bottom: calc(100% - 1px); }
.ay-wave--bottom { top: calc(100% - 1px); }
.ay-wave--top path, .ay-wave--bottom path { fill: #fff; }
.ay-wave--footer path { fill: var(--navy); }
.ay-wave--flip { transform: scale(-1, -1); }

.ay-head { max-width: 44rem; margin: 0 auto clamp(2rem, 4vw, 3.25rem); text-align: center; }
.ay-head h2::after { content: ""; display: block; width: 84px; height: 5px; margin: .55em auto 0; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--green)); }
.ay-head p { margin: 0; color: var(--muted); font-size: 1.125rem; }

.ay-card { padding: clamp(1.25rem, 3.5vw, 2.5rem); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Ydelsesdiagrammer ---------- */

.ay-ydelser { background: radial-gradient(55% 45% at 22% 45%, rgba(41, 169, 223, .12), transparent 70%), radial-gradient(55% 45% at 78% 60%, rgba(101, 179, 46, .12), transparent 70%); }
.ay-ydelser__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.ay-ydelser__col { display: grid; justify-items: center; }

@media (min-width: 1120px) {
	.ay-ydelser__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Blå = rengøring, grøn = have. Positioner og mål kommer fra inc/diagram.php som variabler. */
.ay-dia, .ay-pop { --c: var(--blue); --c-dark: var(--navy); --c-soft: var(--blue-100); --c-hub: #0A4F82; }
.ay-dia--haveservice, .ay-pop--haveservice { --c: var(--green); --c-dark: #2C6A10; --c-soft: var(--green-100); --c-hub: #3B8418; }

.ay-dia {
	position: relative;
	width: 100%;
	max-width: 400px;
	aspect-ratio: var(--ar-m);
	container-type: inline-size;
	scroll-margin-top: calc(var(--header-h) + 1rem);
}

.ay-dia__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ay-dia__lines line { stroke: var(--c); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .6; transition: opacity .6s ease; transition-delay: calc(.1s + var(--i) * 60ms); }
.ay-dia__d { display: none; }

.ay-dia__hub {
	position: absolute;
	left: 50%;
	top: var(--cy-m);
	z-index: 1;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: .3em;
	width: 35cqw;
	aspect-ratio: 1;
	margin: 0;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 26%, var(--c-hub), var(--c-dark));
	box-shadow: 0 0 0 .7cqw #fff, 0 0 0 1.5cqw color-mix(in srgb, var(--c) 45%, transparent), 0 20px 40px -18px rgba(0, 42, 73, .6);
	color: #fff;
	font-size: clamp(.72rem, 3.3cqw, 1.15rem);
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	transform: translate(-50%, -50%);
	transition: opacity .5s ease, scale .5s ease;
}

.ay-dia__hub .ay-icon { width: 11cqw; height: 11cqw; stroke-width: 1.5; }

/* På de smalleste telefoner får diagrammerne lidt mere af skærmens bredde. */
@media (max-width: 379px) {
	.ay-ydelser .ay-wrap { width: calc(100% - 1.25rem); }
	.ay-dia__hub { width: 33cqw; font-size: .66rem; }
}

.ay-dia__nodes { margin: 0; padding: 0; list-style: none; }

.ay-dia__node {
	position: absolute;
	left: var(--xm);
	top: var(--ym);
	z-index: 2;
	width: var(--node-m);
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	transition: opacity .5s ease, scale .5s cubic-bezier(.2, .8, .2, 1);
	transition-delay: calc(.25s + var(--i) * 60ms);
}

.ay-dia__btn {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.ay-dia__circle {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	border: 2px solid color-mix(in srgb, var(--c) 55%, #fff);
	border-radius: 50%;
	background: linear-gradient(160deg, #fff 30%, var(--c-soft));
	box-shadow: 0 10px 22px -12px rgba(0, 59, 101, .5);
	color: var(--c-dark);
	transition: transform .25s, box-shadow .25s, border-color .25s;
}

.ay-dia__circle .ay-icon { width: 44%; height: 44%; margin-bottom: 12%; }

.ay-dia__label {
	position: absolute;
	left: 50%;
	top: calc(100% - 1.3em);
	padding: .28em .7em;
	border: 1px solid color-mix(in srgb, var(--c) 35%, #fff);
	border-radius: 1em;
	background: #fff;
	box-shadow: 0 5px 12px -7px rgba(0, 59, 101, .45);
	color: var(--navy);
	font-size: clamp(.75rem, 3.5cqw, .8125rem);
	font-weight: 600;
	line-height: 1.15;
	text-align: center;
	white-space: nowrap;
	transform: translateX(-50%);
}

/* Linjeskift i etiketterne (sat af ay_label_html): korte navne deles kun på telefoner, lange altid. */
.ay-brk { display: none; }
.ay-brk--all { display: inline; }

@media (max-width: 639px) {
	.ay-brk { display: inline; }
}

.ay-dia__btn:hover .ay-dia__circle, .ay-dia__btn:focus-visible .ay-dia__circle { border-color: var(--c); box-shadow: 0 16px 28px -12px rgba(0, 59, 101, .55); transform: translateY(-3px) scale(1.05); }
.ay-dia__btn:focus-visible { outline-offset: 5px; border-radius: 50%; }

@media (min-width: 640px) {
	.ay-dia { max-width: 560px; aspect-ratio: var(--ar-d); }
	.ay-dia__m { display: none; }
	.ay-dia__d { display: inline; }
	.ay-dia__hub { top: var(--cy-d); }
	.ay-dia__node { left: var(--xd); top: var(--yd); width: var(--node-d); }
	.ay-dia__label { font-size: clamp(.78rem, 2.5cqw, .9rem); }
}

/* Før diagrammet rulles ind: nav, linjer og cirkler tones blødt frem efter tur. */
.ay-dia.ay-pre .ay-dia__hub { opacity: 0; scale: .85; }
.ay-dia.ay-pre .ay-dia__lines line { opacity: 0; }
.ay-dia.ay-pre .ay-dia__node { opacity: 0; scale: .6; }

/* Beskrivelsen, der åbner, når man trykker på en ydelse. */
.ay-pop {
	width: min(92vw, 420px);
	padding: 2.25rem 1.75rem 1.75rem;
	border: 0;
	border-top: 6px solid var(--c);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 30px 80px -20px rgba(0, 42, 73, .6);
	color: var(--navy);
	text-align: center;
}

.ay-pop::backdrop { background: rgba(0, 42, 73, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.ay-pop:popover-open { animation: ay-pop .25s ease; }

@keyframes ay-pop {
	from { opacity: 0; transform: translateY(12px) scale(.97); }
}

.ay-pop__close { position: absolute; right: .6rem; top: .6rem; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.ay-pop__close:hover { background: var(--bg); color: var(--navy); }
.ay-pop__icon { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; margin: 0 auto .9rem; border-radius: 50%; background: var(--c-soft); color: var(--c-dark); }
.ay-pop__icon .ay-icon { width: 2.2rem; height: 2.2rem; }
.ay-pop__group { margin: 0 0 .2rem; color: var(--muted); font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.ay-pop__title { margin-bottom: .5rem; font-size: 1.5rem; }
.ay-pop__text { margin-bottom: 1.4rem; font-size: 1.0625rem; }

/* Ældre browsere uden popover: main.js åbner og lukker med klassen .is-open. */
@supports not selector(:popover-open) {
	.ay-pop { display: none; position: fixed; inset: 0; z-index: 100; height: fit-content; margin: auto; }
	.ay-pop.is-open { display: block; }
}

/* ---------- Priser ---------- */

.ay-pris { max-width: 720px; margin-inline: auto; }
.ay-pris__note { margin: 0 0 1rem; text-align: center; }
.ay-pris__note span { display: inline-block; padding: .35em 1.1em; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); font-size: .95rem; font-weight: 600; }
.ay-pris__card { overflow: hidden; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.ay-pris__table { width: 100%; border-collapse: collapse; }

.ay-pris__table thead th { padding: 1.1rem clamp(1rem, 4vw, 2rem); background: var(--navy); color: #fff; font-size: .95rem; font-weight: 600; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.ay-pris__table thead th:last-child { text-align: right; }
.ay-pris__table tbody tr + tr { border-top: 1px solid var(--line); }
.ay-pris__table tbody th { padding: 1.15rem clamp(1rem, 4vw, 2rem); font-size: clamp(1.1rem, 3.4vw, 1.3rem); font-weight: 500; text-align: left; }
.ay-pris__table tbody th span { display: flex; align-items: center; gap: .75rem; }
.ay-pris__table tbody th .ay-icon { width: 1.5em; height: 1.5em; color: var(--blue); }
.ay-pris__table tbody td { padding: 1.15rem clamp(1rem, 4vw, 2rem); color: var(--green-700); font-size: clamp(1.6rem, 6vw, 2.2rem); font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1.1; text-align: right; white-space: nowrap; }

.ay-pris__small { max-width: 38rem; margin: 1rem auto 0; color: var(--muted); font-size: .95rem; text-align: center; }
.ay-pris__more { max-width: 40rem; margin: clamp(2rem, 4vw, 2.75rem) auto 0; font-size: 1.125rem; text-align: center; }
.ay-pris__more p { margin-bottom: 1.25rem; }

/* ---------- Tekst + billede (erhverv, om os) ---------- */

.ay-split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

@media (min-width: 900px) {
	.ay-split { grid-template-columns: 1fr 1fr; }
}

.ay-split__media { position: relative; }
.ay-split__media img { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 28px; box-shadow: var(--shadow); object-fit: cover; }
.ay-split__media--blue::before { content: ""; position: absolute; left: -16px; bottom: -16px; width: 55%; height: 55%; border-radius: 28px; background: linear-gradient(135deg, var(--blue), var(--blue-100)); }

.ay-contactlist { display: grid; gap: .65rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.ay-contactlist li { display: flex; align-items: center; gap: .8rem; font-weight: 500; }
.ay-contactlist .ay-icon { width: 2.6rem; height: 2.6rem; padding: .62rem; border-radius: 50%; background: var(--blue-100); color: var(--navy); }
.ay-contactlist a { color: var(--navy); font-weight: 600; }
.ay-contactlist--lg { gap: 1rem; }
.ay-contactlist--lg span { display: grid; color: var(--muted); font-size: .9rem; line-height: 1.3; }
.ay-contactlist--lg a, .ay-contactlist--lg b { color: var(--navy); font-size: 1.2rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.ay-contactlist--lg a:hover { text-decoration: underline; }

.ay-collage { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 2vw, 1.25rem); padding-bottom: 14px; }
.ay-collage img { width: 100%; aspect-ratio: 1; border-radius: 24px; box-shadow: var(--shadow-sm); object-fit: cover; }
.ay-collage img:nth-child(odd) { translate: 0 14px; }
.ay-collage img:first-child { border-top-left-radius: 84px; }
.ay-collage img:last-child { border-bottom-right-radius: 84px; }

/* ---------- Hvorfor vælge os ---------- */

.ay-why { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }

@media (min-width: 600px) {
	.ay-why { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 940px) {
	.ay-why { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.ay-why__item { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; border: 1px solid rgba(0, 59, 101, .06); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.ay-why__icon { display: grid; flex: none; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--blue-100); color: var(--navy); }
.ay-why__item:nth-child(even) .ay-why__icon { background: var(--green-100); color: var(--green-700); }
.ay-why__icon .ay-icon { width: 1.6rem; height: 1.6rem; }
@media (max-width: 599px) {
	.ay-why { gap: .7rem; }
	.ay-why__item { padding: .85rem 1.1rem; font-size: 1.0625rem; }
	.ay-why__icon { width: 2.75rem; height: 2.75rem; }
}

.ay-why__closing { max-width: 44rem; margin: clamp(1.75rem, 3vw, 2.5rem) auto 0; font-size: 1.2rem; font-weight: 500; text-align: center; }

/* ---------- Kontakt og formular ---------- */

.ay-kontakt { background: linear-gradient(180deg, rgba(41, 169, 223, 0), rgba(41, 169, 223, .12)); }
.ay-kontakt__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }

@media (min-width: 980px) {
	.ay-kontakt__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
	.ay-kontakt__info { position: sticky; top: calc(var(--header-h) + 2.5rem); }
}

.ay-form__grid { display: grid; gap: 1.1rem 1.25rem; }

@media (min-width: 600px) {
	.ay-form__grid { grid-template-columns: 1fr 1fr; }
	.ay-field--email, .ay-field--beskrivelse, .ay-field--billeder, .ay-field--samtykke { grid-column: 1 / -1; }
}

.ay-field { display: grid; align-content: start; gap: .35rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.ay-field > label, .ay-field > legend { padding: 0; font-size: .975rem; font-weight: 600; }
.ay-field > legend { margin-bottom: .35rem; }
.ay-req { color: var(--red); }
.ay-valgfri, .ay-hint { color: var(--muted); font-size: .9rem; font-weight: 400; }

.ay-field input[type="text"], .ay-field input[type="tel"], .ay-field input[type="email"], .ay-field input[type="number"], .ay-field input[type="date"], .ay-field select, .ay-field textarea {
	width: 100%;
	min-height: 52px;
	padding: .7rem .95rem;
	border: 1.5px solid #B9D3E0;
	border-radius: 12px;
	background: #fff;
	color: var(--navy);
	font: inherit;
	transition: border-color .2s, box-shadow .2s;
}

.ay-field textarea { min-height: 8.5rem; resize: vertical; }
.ay-field input:focus, .ay-field select:focus, .ay-field textarea:focus { outline: 0; border-color: var(--blue-700); box-shadow: 0 0 0 4px rgba(41, 169, 223, .25); }
.ay-field.has-error input, .ay-field.has-error select, .ay-field.has-error textarea { border-color: var(--red); }

.ay-fejl { color: var(--red); font-size: .9rem; font-weight: 500; }
.ay-fejl:empty { display: none; }

/* Privat / Erhverv som to store knapper. */
.ay-choice { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.ay-choice label { position: relative; cursor: pointer; }
.ay-choice input { position: absolute; opacity: 0; }
.ay-choice span { display: grid; place-items: center; min-height: 52px; border: 1.5px solid #B9D3E0; border-radius: 12px; background: #fff; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.ay-choice input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.ay-choice input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 3px; }

.ay-field input[type="file"] { width: 100%; padding: .6rem; border: 1.5px dashed #9CC3D6; border-radius: 12px; background: var(--bg); color: var(--muted); font: inherit; font-size: .95rem; }
.ay-field input[type="file"]::file-selector-button { margin-right: .9rem; padding: .6rem 1.1rem; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: 600 .95rem var(--font); cursor: pointer; }

.ay-files { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.ay-files:empty { display: none; }
.ay-files li { display: flex; align-items: center; gap: .75rem; padding: .4rem .5rem; border-radius: 12px; background: var(--bg); font-size: .95rem; }
.ay-files img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.ay-files span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ay-files button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; color: var(--navy); font-size: 1.3rem; line-height: 1; cursor: pointer; }

.ay-check { display: flex; align-items: flex-start; gap: .7rem; font-weight: 400; cursor: pointer; }
.ay-check input { flex: none; width: 1.35rem; height: 1.35rem; margin: .15rem 0 0; accent-color: var(--navy); }

/* Skjult felt, som kun robotter udfylder. */
.ay-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ay-form__status:empty { display: none; }
.ay-form__status { margin-top: 1.1rem; padding: .85rem 1rem; border-radius: 12px; font-weight: 500; }
.ay-form__status.is-error { background: #FDECEA; color: var(--red); }
.ay-form .ay-btn--lg { width: 100%; margin-top: 1.25rem; }
.ay-form.is-sending { opacity: .7; pointer-events: none; }
.cf-turnstile { margin-top: 1.1rem; }

.ay-tak { display: grid; justify-items: center; gap: .5rem; padding-block: 1.5rem; text-align: center; }
.ay-tak:focus { outline: 0; }
.ay-tak__icon { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; margin-bottom: .5rem; border-radius: 50%; background: var(--green-100); color: var(--green-700); }
.ay-tak__icon .ay-icon { width: 2.2rem; height: 2.2rem; stroke-width: 2.5; }
.ay-tak p { max-width: 34rem; margin: 0; font-size: 1.15rem; }
.ay-tak .ay-actions { justify-content: center; }
.ay-kvittering { display: grid; align-items: center; min-height: 62vh; }

/* ---------- Sidefod ---------- */

.ay-footer { position: relative; padding-top: clamp(1.5rem, 3vw, 2.5rem); background: var(--navy); color: #fff; }
.ay-footer a { color: #fff; }
.ay-footer a:hover { color: #BCE59A; }
.ay-footer__grid { display: grid; gap: 2.25rem; padding-bottom: 2.5rem; }

@media (min-width: 760px) {
	.ay-footer__grid { grid-template-columns: 1.25fr 1fr .8fr; }
}

.ay-footer__logo { display: inline-block; margin-bottom: 1rem; padding: 12px 16px; border-radius: 22px; background: #fff; }
.ay-footer__logo img { width: 170px; }
.ay-footer__name { margin: 0; font-size: 1.25rem; font-weight: 600; }
.ay-footer__slogan { margin: 0; color: #A5DB7F; font-weight: 500; }
.ay-footer__title { margin-bottom: 1rem; color: #A5DB7F; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.ay-footer__list, .ay-footer__links { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.ay-footer__list li { display: flex; align-items: flex-start; gap: .7rem; overflow-wrap: anywhere; }
.ay-footer__list .ay-icon { width: 1.2rem; height: 1.2rem; margin-top: .25em; color: var(--green); }
.ay-footer__links a { text-decoration: none; }
.ay-footer__links a:hover { text-decoration: underline; }
.ay-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .16); color: #C9DDEA; font-size: .9rem; }
.ay-footer__bottom p { margin: 0; }
.ay-footer__sep { margin-inline: .35em; color: var(--green); }

/* Fast kontaktbjælke nederst på telefoner. */
.ay-sticky { display: none; }

@media (max-width: 767px) {
	body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
	.ay-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--navy); box-shadow: 0 -10px 30px -12px rgba(0, 42, 73, .55); }
	.ay-sticky a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 60px; font-size: 1.0625rem; font-weight: 600; text-decoration: none; }
	.ay-sticky__call { color: #fff; }
	.ay-sticky__offer { background: var(--green); color: var(--navy-900); }
	.ay-sticky .ay-icon { width: 1.25rem; height: 1.25rem; }
}

.ay-cookie { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 70; max-width: 560px; margin-inline: auto; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 20px 60px -15px rgba(0, 42, 73, .55); }
.ay-cookie[hidden] { display: none; }
.ay-cookie__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; }

@media (max-width: 767px) {
	.ay-cookie { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Almindelige sider ---------- */

.ay-page { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.ay-page__head { padding-block: clamp(3.25rem, 6vw, 4.75rem) clamp(1.25rem, 3vw, 2rem); }
.ay-page__head h1 { margin: 0; }
.ay-page .ay-card + .ay-card { margin-top: 1.5rem; }
.ay-prose > :last-child { margin-bottom: 0; }
.ay-prose h2 { margin-top: 1.7em; font-size: 1.45rem; }
.ay-prose h3 { margin-top: 1.4em; font-size: 1.2rem; }
.ay-prose ul, .ay-prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.ay-prose li { margin-bottom: .35em; }
.ay-prose a { overflow-wrap: anywhere; }

/* ---------- Pynt og bevægelse ---------- */

/* Små vanddråber og blade i baggrunden. */
.ay-deco { position: absolute; background: center / contain no-repeat; opacity: .5; pointer-events: none; animation: ay-float 8s ease-in-out infinite alternate; }
.ay-deco--drop { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath fill='%2329A9DF' d='M12 1c4 7 9 11.5 9 18a9 9 0 1 1-18 0C3 12.500 8 8 12 1z'/%3E%3C/svg%3E"); }
.ay-deco--leaf { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%2365B32E' d='M28 4C14 4 5 11 5 21c0 2 .5 4 1.5 5.5C10 18 16 13 23 10 16 14 11 20 8.500 28c1.500.6 3.500 1 5.500 1 10 0 15-10 14-25z'/%3E%3C/svg%3E"); }
.ay-deco--1 { left: 4%; top: 8%; width: 26px; height: 34px; }
.ay-deco--2 { left: 8.5%; top: 17%; width: 14px; height: 19px; opacity: .35; animation-delay: -3s; }
.ay-deco--3 { right: 5%; top: 9%; width: 34px; height: 34px; rotate: 14deg; animation-delay: -1.5s; }
.ay-deco--4 { right: 9.5%; bottom: 7%; width: 22px; height: 22px; opacity: .35; rotate: -20deg; animation-delay: -5s; }
.ay-deco--5 { left: 3%; bottom: 16%; width: 22px; height: 29px; animation-delay: -2s; }
.ay-deco--6 { right: 4%; top: 7%; width: 30px; height: 30px; rotate: 10deg; animation-delay: -4s; }

@keyframes ay-float {
	to { translate: 0 -14px; }
}

@media (max-width: 760px) {
	.ay-deco--2, .ay-deco--4, .ay-deco--5 { display: none; }
	.ay-deco { opacity: .35; scale: .8; }
}

/* Blød indtoning ved rul (klassen sættes og fjernes af main.js). */
[data-ay-inview]:not(.ay-dia) { transition: opacity .6s ease, translate .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.ay-pre:not(.ay-dia) { opacity: 0; translate: 0 22px; }

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