/* Teslahub blok-sider (forsiden først). Farver = ACF options: primary #5b0b0b, secondary #171a20. */

.th-side {
	--th-rod: #5b0b0b;
	--th-rod-hover: #7c1515;
	--th-sort: #171a20;
	--th-sort-2: #22262e;
	--th-graa: #5c5e62;
	--th-flade: #fff;      /* arket, alt indhold ligger på */
	--th-kort: #f4f4f5;    /* kort inde på arket */
	--th-pad: clamp(16px, 3.5vw, 48px);
	--th-bleed: var(--th-pad);   /* hvor langt fuldbredde-elementer går ud over indholdet */
	--th-linje: #e3e3e6;
	--th-r: 24px;
	--th-r-s: 16px;
	--th-skygge: 0 1px 2px rgba(23, 26, 32, .04), 0 8px 24px -12px rgba(23, 26, 32, .12);
	--th-overskrift: "Archivo", system-ui, sans-serif;

	box-sizing: border-box;
	width: calc(100% - 50px);   /* flugter med header-baren: 25px indryk under 1330px (ikke 100vw: den tæller scrollbaren med) */
	max-width: 1280px;           /* Bricks begrænsede #brx-content til 1280; uden Bricks gør arket det selv */
	min-width: 0;
	margin: 28px auto 32px;
	padding: var(--th-pad);
	padding-top: clamp(2rem, 4vw, 3.5rem);
	background: var(--th-flade);
	border-radius: 10px; /* = header-baren (Bricks #navContainer) */
	box-shadow: 0 1px 2px rgba(23, 26, 32, .04), 0 30px 60px -40px rgba(23, 26, 32, .18);
	overflow: clip; /* ikke hidden: det ville slå sticky fra. Det mørke bånd går helt ud til arkets kanter */
	color: var(--th-sort);
}

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

.th-side > .wp-block-group__inner-container > * + * { margin-top: clamp(2.5rem, 5vw, 4.5rem); }

.th-side h1, .th-side h2, .th-side h3 {
	font-family: var(--th-overskrift);
	letter-spacing: -0.02em;
	color: inherit;
}

.th-side a { color: inherit; text-decoration: none; }

.th-side img.th-billede { display: block; width: 100%; height: 100%; object-fit: cover; }
.th-billede--tom { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #2a2e36, var(--th-sort)); }

@media (min-width: 1330px) { .th-side { width: 100%; } } /* #brx-content = 1280 = header-baren */

/* ---------- Toppen ---------- */

.th-top { text-align: center; max-width: 860px; margin-inline: auto; }
.th-top .th-dato {
	display: inline-flex; align-items: center; gap: .5rem;
	margin: 0 0 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--th-graa);
}
.th-top .th-dato::before { content: ""; width: 8px; height: 8px; background: var(--th-rod); border-radius: 2px; transform: translateY(-0.14em); } /* versaler sidder over linjeboksens midte */
.th-top h1 {
	margin: 0; font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.4rem); line-height: 1; font-weight: 700; letter-spacing: -0.035em;
}
.th-top .th-intro { margin: 1rem auto 0; max-width: 560px; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.55; color: var(--th-graa); }

.th-soeg {
	display: flex; align-items: center; gap: .6rem;
	max-width: 560px; margin: 1.75rem auto 0; padding: .4rem .4rem .4rem 1.1rem;
	background: var(--th-kort); border: 1px solid transparent; border-radius: 999px;
	color: var(--th-graa);
}
.th-soeg:focus-within { border-color: var(--th-sort); }
.th-soeg input {
	flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: .98rem; color: var(--th-sort); padding: .55rem 0; outline: none;
}

/* ---------- Knapper, badges, meta ---------- */

.th-knap {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .75rem 1.3rem; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--th-rod); color: #fff !important; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1;
	transition: background .2s;
}
.th-knap:hover { background: var(--th-rod-hover); }

.th-rund {
	display: inline-grid; place-items: center; width: 40px; height: 40px;
	border-radius: 29%; /* samme form som lead-knappen (22px på 76px), i alle størrelser */
	background: var(--th-kort); color: var(--th-sort); box-shadow: 0 2px 8px rgba(0,0,0,.12);
	transition: transform .25s, background .25s, color .25s;
}
.th-rund .th-pil { width: 18px; height: 18px; }
.th-rund--lys { background: rgba(255,255,255,.1); color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.18); }

.th-badge {
	display: inline-block; padding: .38rem .75rem; border-radius: 999px;
	font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
	background: var(--th-rod); color: #fff;
}
.th-badge--glas { background: rgba(23, 26, 32, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.18); }

.th-kicker { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--th-rod); }

.th-meta { display: flex; align-items: center; gap: .75rem; margin: 0; font-size: .82rem; color: var(--th-graa); }

.th-kredit {
	position: absolute; right: 10px; bottom: 10px; z-index: 2;
	padding: .25rem .5rem; border-radius: 6px; background: rgba(0,0,0,.45); color: rgba(255,255,255,.85);
	font-size: .62rem; line-height: 1.2; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Sektionshoveder ---------- */

.th-hoved { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.th-side .th-hoved h2 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1; }
.th-hoved p { margin: 0; }

/* ---------- Hero ---------- */

.th-hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; }

.th-lead {
	/* Ingen overflow:hidden her: kortets afrundede klip ville klippe det hvide hjørne, og klippekanten blander
	   kortets mørke baggrund ind som en grå hårstreg. Billede og gradient klippes hver for sig i stedet. */
	position: relative; min-height: 580px; border-radius: var(--th-r); isolation: isolate;
	color: #fff;
}
.th-lead__media { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; background: var(--th-sort); }
.th-lead__media img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.th-lead:hover .th-lead__media img { transform: scale(1.03); }
.th-lead::after {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
	background: linear-gradient(180deg, rgba(10,12,16,0) 30%, rgba(10,12,16,.55) 60%, rgba(10,12,16,.92) 100%);
}
.th-lead__body {
	position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.5rem, 3vw, 2.5rem); padding-right: 130px;
	display: flex; flex-direction: column; align-items: flex-start; gap: .85rem;
}
.th-side .th-lead__titel { margin: 0; font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); line-height: 1.08; font-weight: 700; color: #fff; }
.th-lead__uddrag { margin: 0; max-width: 560px; font-size: 1rem; line-height: 1.5; color: rgba(255,255,255,.82); }
.th-lead .th-meta { color: rgba(255,255,255,.7); }
.th-lead .th-kredit { top: 16px; right: 16px; bottom: auto; }

/* Hjørnet med pilen (udskåret som i referencen) */
.th-lead__go {
	/* 1px ud over kortets kant (klippes af kortet) + 1px overlap mellem stykkerne: ved brøk-pixels (fx 412px
	   bredde, DPR 2.625) viste sømmene ellers billedet igennem som tynde grå streger. */
	position: absolute; right: -1px; bottom: -1px; padding: 12px 1px 1px 12px;
	background: var(--th-flade); border-top-left-radius: 32px;
}
.th-lead__go::before, .th-lead__go::after {
	content: ""; position: absolute; width: 32px; height: 32px; pointer-events: none;
	background: radial-gradient(circle at 0 0, transparent 31.5px, var(--th-flade) 32px);
}
.th-lead__go::before { right: 0; bottom: calc(100% - 1px); }
.th-lead__go::after { right: calc(100% - 1px); bottom: 0; }
.th-lead__go > span {
	display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px;
	background: var(--th-rod); color: #fff; transition: background .25s;
}
.th-lead__go .th-pil { width: 30px; height: 30px; }
.th-lead__go .th-pil { transition: transform .25s; }
.th-lead__go:hover > span { background: var(--th-rod-hover); }
.th-lead__go:hover .th-pil { transform: rotate(45deg); } /* kun pilen: en roteret firkant stikker ud over kortets kant */

.th-hero__side { display: grid; grid-template-rows: repeat(4, 1fr); gap: 12px; }

.th-kompakt {
	display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center;
	padding: 10px; background: var(--th-kort); border-radius: 20px;
	transition: transform .25s, box-shadow .25s;
}
.th-kompakt:hover { background: #ececee; }
.th-kompakt__media { position: relative; display: block; height: 100%; min-height: 118px; border-radius: 14px; overflow: hidden; }
.th-kompakt__media .th-rund { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; }
.th-kompakt__media .th-rund .th-pil { width: 15px; height: 15px; }
.th-kompakt:hover .th-rund { background: var(--th-rod); color: #fff; }
.th-kompakt__body { display: flex; flex-direction: column; gap: .4rem; padding-right: .5rem; }
.th-side .th-kompakt__titel {
	margin: 0; font-size: 1.02rem; line-height: 1.25; font-weight: 600;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.th-kompakt__titel a:hover, .th-liste__titel a:hover { color: var(--th-rod); }

/* ---------- Annoncefelter ---------- */

.th-ad {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
	margin-inline: auto; padding: 26px 12px 12px;
	background: repeating-linear-gradient(135deg, #eeeef0 0 1px, transparent 1px 12px), #f9f9fa;
	border: 1px solid var(--th-linje); border-radius: var(--th-r-s);
	overflow: hidden;
}
.th-ad__label {
	position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
	font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #9a9ca1;
}
.th-ad > div { display: flex; justify-content: center; width: 100%; }
.th-ad [id^="mboost-"] { max-width: 100%; }

/* Billboard: dp2 930x180 på desktop, mr3 320x320 på mobil. Reserve = slot + label, så intet hopper. */
.th-ad--billboard { max-width: 970px; min-height: calc(180px + 38px); }
.th-ad--rektangel { width: 100%; max-width: 324px; min-height: calc(300px + 38px); }
.th-ad--mobil { display: none; }

@media (max-width: 767px) {
	.th-ad--kun-desktop { display: none; }
	.th-ad--billboard, .th-ad--mobil { display: flex; width: calc(100% + 2 * var(--th-bleed)); max-width: none; margin-inline: calc(-1 * var(--th-bleed)); min-height: calc(320px + 38px); border-radius: 0; border-inline: 0; }
}

/* ---------- Alle nyheder + sidekolonne ---------- */

.th-nyheder-omr { display: grid; grid-template-columns: minmax(0, 1fr) 324px; gap: 32px; align-items: start; }

.th-nyheder__liste { display: grid; gap: 16px; }
.th-liste {
	display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: center;
	padding: 12px; background: var(--th-kort); border-radius: var(--th-r);
}
.th-liste__media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--th-r-s); overflow: hidden; }
.th-liste__media .th-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.th-liste__media img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.th-liste:hover .th-liste__media img { transform: scale(1.04); }
.th-liste__body { display: flex; flex-direction: column; gap: .6rem; padding-right: .75rem; }
.th-side .th-liste__titel { margin: 0; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.2; font-weight: 700; }
.th-liste__uddrag { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--th-graa);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.th-laes { display: inline-flex; align-items: center; gap: .3rem; margin-left: auto; font-weight: 600; color: var(--th-rod) !important; }
.th-laes .th-pil { width: 16px; height: 16px; }

.th-nyheder .th-ad--mobil { margin-block: 0; }
.th-knap--hent { display: flex; margin: 1.5rem auto 0; background: var(--th-sort); padding: .9rem 1.6rem; }
.th-knap--hent:hover { background: #000; }
.th-knap--hent[disabled] { opacity: .5; cursor: default; }
.th-knap--hent[hidden] { display: none; }

.th-sidekolonne { position: sticky; top: 100px; display: grid; gap: 20px; }
.th-emner { padding: 22px; background: var(--th-kort); border-radius: var(--th-r); }
.th-side .th-emner__titel { margin: 0 0 .75rem; font-size: 1.1rem; }
.th-emner ul { list-style: none; margin: 0; padding: 0; }
.th-emner li + li { border-top: 1px solid var(--th-linje); }
.th-emner a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; font-size: .93rem; font-weight: 500; }
.th-emner a:hover { color: var(--th-rod); }
.th-emner__antal { flex: none; min-width: 2.2rem; padding: .15rem .45rem; border-radius: 999px; background: var(--th-flade); text-align: center; font-size: .75rem; color: var(--th-graa); }

/* ---------- Nyhedsbrev ---------- */

.th-nyhedsbrev {
	position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center;
	padding: clamp(1.75rem, 4vw, 3.5rem); border-radius: var(--th-r);
	background: radial-gradient(120% 140% at 100% 0%, #7a1818 0%, var(--th-rod) 45%, #3d0606 100%); color: #fff;
}
.th-nyhedsbrev > .wp-block-group__inner-container { display: contents; }
.th-side .th-nyhedsbrev h2 { margin: 0 0 .75rem; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); line-height: 1.05; color: #fff; }
.th-nyhedsbrev p { margin: 0; color: rgba(255,255,255,.8); line-height: 1.55; }
.th-nyhedsbrev .gform_wrapper.gform-theme--orbital {
	--gf-color-primary: #fff; --gf-color-primary-rgb: 255,255,255; --gf-color-primary-contrast: var(--th-rod);
	--gf-color-in-ctrl-primary: #fff; --gf-color-in-ctrl-primary-rgb: 255,255,255; --gf-color-in-ctrl-primary-contrast: var(--th-rod);
	--gf-ctrl-label-color-primary: #fff; --gf-ctrl-label-color-secondary: rgba(255,255,255,.8); --gf-ctrl-desc-color: rgba(255,255,255,.7);
	--gf-ctrl-border-color: transparent; --gf-ctrl-radius: 999px; --gf-ctrl-size-md: 50px;
	--gf-ctrl-btn-bg-color-primary: #fff; --gf-ctrl-btn-color-primary: var(--th-rod); --gf-ctrl-btn-radius: 999px;
	margin: 0 !important;
}
.th-nyhedsbrev .gform_wrapper input[type="email"], .th-nyhedsbrev .gform_wrapper input[type="text"] { border-radius: 999px !important; padding-inline: 1.2rem !important; }
.th-nyhedsbrev .gform_wrapper .gfield_checkbox label, .th-nyhedsbrev .gform_wrapper .gfield_consent_label,
.th-nyhedsbrev .gform_wrapper label { color: rgba(255,255,255,.9) !important; }
.th-nyhedsbrev .gform_wrapper .gfield_required { color: #ffb4b4 !important; }
.th-nyhedsbrev .gform_wrapper legend, .th-nyhedsbrev .gform_wrapper .gfield_label { color: #fff !important; }
.th-nyhedsbrev .th-nyhedsbrev__tekst p { font-size: 1.05rem; }
.th-nyhedsbrev .gform_wrapper .gform_button { background: #fff !important; color: var(--th-rod) !important; border-radius: 999px !important; font-weight: 700 !important; padding-inline: 1.8rem !important; }

/* ---------- Modeloversigt (mørkt bånd) ---------- */

.th-mork {
	margin-inline: calc(-1 * var(--th-bleed)); padding: clamp(2.5rem, 5vw, 4.5rem) var(--th-bleed);
	background: var(--th-sort); color: #fff;
}
.th-mork .th-hoved p { color: rgba(255,255,255,.65); max-width: 460px; }

.th-modeller { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.th-model {
	position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .35rem; min-height: 200px;
	padding: 22px; border-radius: 20px; background: var(--th-sort-2); border: 1px solid rgba(255,255,255,.07);
	color: #fff !important; transition: background .25s, transform .25s;
}
.th-model:hover { background: #2b3039; transform: translateY(-3px); }
.th-model__glyf {
	position: absolute; right: -8px; bottom: -34px; font-family: var(--th-overskrift); font-weight: 800; font-size: 150px; line-height: 1;
	color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.1); letter-spacing: -0.06em; pointer-events: none;
}
.th-model__navn { font-family: var(--th-overskrift); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.th-model__antal { font-size: .8rem; color: rgba(255,255,255,.55); }
.th-model__seneste { margin-top: auto; padding-right: 48px; font-size: .85rem; line-height: 1.4; color: rgba(255,255,255,.8);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.th-model .th-rund { position: absolute; right: 18px; bottom: 18px; }
.th-model:hover .th-rund { background: var(--th-rod); border-color: var(--th-rod); }
.th-model:last-child { grid-column: span 2; } /* 7 modeller i 4 kolonner: ingen hul */
@media (max-width: 1100px) and (min-width: 768px) { .th-model:last-child { grid-column: span 3; } }

/* ---------- Om Teslahub (SEO-tekst) ---------- */

.th-om { display: grid; grid-template-columns: minmax(0, 1fr) 324px; gap: 32px; align-items: start; }
.th-om > .wp-block-group__inner-container { display: contents; }
.th-om__tekst { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.th-om__tekst > .wp-block-group__inner-container { display: contents; }
.th-om__kort { padding: clamp(1.25rem, 2.5vw, 2rem); background: var(--th-kort); border-radius: var(--th-r); }
.th-om__kort:first-child { grid-column: 1 / -1; }
.th-side .th-om__kort h2 { margin: 0 0 .75rem; font-size: clamp(1.3rem, 1.1rem + .7vw, 1.65rem); line-height: 1.15; }
.th-om__kort p { margin: 0 0 .9rem; font-size: .97rem; line-height: 1.7; color: #3a3d44; }
.th-om__kort p:last-child { margin-bottom: 0; }
.th-om .th-ad--rektangel { position: sticky; top: 100px; }

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
	.th-hero { grid-template-columns: minmax(0, 1fr); }
	.th-lead { min-height: 500px; }
	.th-hero__side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
	.th-modeller { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
	.th-nyheder-omr, .th-om { grid-template-columns: minmax(0, 1fr); }
	.th-sidekolonne { position: static; grid-template-columns: 324px minmax(0, 1fr); align-items: start; }
	.th-om .th-ad--rektangel { position: relative; } /* ikke static: labelen er absolut placeret i feltet */
	/* 930 px billboard i en smallere kolonne: klip hellere end at give hele siden vandret scroll. */
	.th-ad--billboard { overflow: hidden; }
}

@media (max-width: 767px) {
	/* Mobil: hele siden er hvid (intet svævende ark), og indholdet står 20px fra kanten = header-barens indryk
	   (margin, ingen padding). Fuldbredde-elementer går de 20px ud til skærmkanten. */
	body { background: var(--th-flade, #fff); }
	.th-side { --th-bleed: 20px; width: calc(100% - 40px); margin: 12px auto 32px; padding: 1.25rem 0 0; border-radius: 0; box-shadow: none; overflow: visible; }
	.th-soeg .th-knap { padding-inline: 1rem; }
	.th-lead { min-height: 440px; border-radius: 20px; }
	.th-lead__body { padding: 1.25rem 1.25rem 1.4rem; padding-right: 1.25rem; padding-bottom: 5.5rem; }
	.th-lead__uddrag { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .95rem; }
	.th-lead__go > span { width: 60px; height: 60px; border-radius: 18px; }
	.th-hero__side { grid-template-columns: minmax(0, 1fr); }
	.th-kompakt { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 8px; border-radius: 18px; }
	.th-kompakt__media { min-height: 100px; }
	.th-side .th-kompakt__titel { font-size: .98rem; }
	.th-liste { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 10px 10px 16px; border-radius: 20px; }
	.th-liste__body { padding: 0 .5rem; }
	.th-sidekolonne { grid-template-columns: minmax(0, 1fr); }
	.th-emner { padding: 0; background: none; }
	.th-emner ul { display: flex; flex-wrap: wrap; gap: 8px; } /* stables i rækker, ingen vandret scroll */
	.th-emner li + li { border: 0; }
	.th-emner a { white-space: nowrap; gap: .5rem; padding: .55rem .9rem; border-radius: 999px; background: var(--th-kort); font-size: .88rem; }
	.th-emner__antal { background: var(--th-flade); }
	.th-nyhedsbrev { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; border-radius: 20px; }
	.th-modeller { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.th-model { min-height: 130px; padding: 16px; }
	.th-model__navn { font-size: 1.2rem; }
	.th-model__glyf { font-size: 110px; bottom: -24px; }
	.th-model__seneste { display: none; }
	.th-om__tekst { grid-template-columns: minmax(0, 1fr); }
	.th-hoved { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

/* Top-annoncen (dp1, 930x180 over headeren på forsiden) får samme ro som felterne. */
@media (min-width: 768px) {
	#teslahub-top-ad-reserve.is-front { display: flex; justify-content: center; overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
	.th-side * { transition: none !important; }
}

/* Klassisk tema (ingen theme.json): grupper får en __inner-container. I grid-grupperne skal børnene være grid-elementer. */
.th-side .wp-block-group:not(.th-side) > .wp-block-group__inner-container { display: contents; }

/* ---------- Hele kortet er klikbart (pointer overalt, ingen døde områder) ---------- */

/* Kompakte kort og listekort: titel-linket strækkes over hele kortet. */
.th-kompakt, .th-liste { position: relative; }
.th-kompakt__titel a::after, .th-liste__titel a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.th-laes { position: relative; z-index: 2; }

/* Lead-kortet: billed-linket dækker allerede hele kortet (bagerst); lagene ovenpå lader klik gå igennem. */
.th-lead::after, .th-lead__body { pointer-events: none; }
.th-lead__body a { pointer-events: auto; }
.th-lead__go { z-index: 2; }

/* Pynt oven på billederne må ikke blokere klikket. */
.th-kredit, .th-badge, .th-kicker, .th-rund { pointer-events: none; }

.th-lead, .th-kompakt, .th-liste, .th-model { cursor: pointer; }

/* =========================================================================
   Undersider (Om, Kontakt, Samarbejde, Få rabat) – bygget af pages/sider.php
   ========================================================================= */

.th-top--venstre { max-width: 860px; margin-inline: 0; text-align: left; }
.th-top--venstre .th-dato { justify-content: flex-start; }
.th-top--venstre .th-intro { margin-inline: 0; }
.th-om__tekst--side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.th-om__tekst--side .th-om__kort:first-child { grid-column: auto; }
.th-om__kort h3 { margin: 0 0 .6rem; font-size: 1.2rem; line-height: 1.25; }
.th-om__kort ul, .th-om__kort ol { margin: 0; padding-left: 1.2em; font-size: .97rem; line-height: 1.7; color: #3a3d44; }
.th-om__kort li + li { margin-top: .3em; }
.th-om__kort--smal { max-width: 640px; }
.th-om__kort--fremhaevet { background: var(--th-sort); color: #fff; }
.th-side .th-om__kort--fremhaevet h2 { color: #fff; }
.th-om__kort--fremhaevet p { color: rgba(255, 255, 255, .78); }

.th-om__kort .wp-block-buttons, .th-kontakt .wp-block-buttons { margin: 0; }
.th-side .wp-block-button__link {
	display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 1.5rem; border-radius: 8px;
	background: var(--th-rod); color: #fff !important; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
	transition: background .2s;
}
.th-side .wp-block-button__link:hover { background: var(--th-rod-hover); }
.th-kontakt { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.25rem; }
.th-kontakt__label { margin: 0 !important; font-weight: 600; }
.th-om__kort--fremhaevet .th-kontakt__label { color: #fff !important; }
.th-om__kort--fremhaevet .wp-block-button__link { background: #fff; color: var(--th-sort) !important; }
.th-underside > .wp-block-group__inner-container > .th-kontakt { justify-content: center; padding: 1.5rem; border-radius: var(--th-r); background: var(--th-kort); }

.th-underside__tekst { max-width: 780px; }
.th-underside__tekst h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); }
.th-faq .wp-block-yoast-faq-block { display: grid; gap: 10px; }
.th-faq .schema-faq-section { padding: 16px 20px; border-radius: 14px; background: var(--th-kort); }
.th-faq .schema-faq-question { display: block; font-size: 1.05rem; cursor: pointer; }
.th-faq .schema-faq-answer { margin: .5rem 0 0; font-size: .97rem; color: #3a3d44; }

@media (max-width: 767px) {
	.th-om__tekst--side { grid-template-columns: minmax(0, 1fr); }
}

/* Kreditering på de små kort i forsidens hero (28 sep): øverst til venstre, pileknappen sidder nederst til højre. */
.th-kompakt__media .th-kredit { top: 6px; left: 6px; right: auto; bottom: auto; max-width: calc(100% - 12px); padding: .15rem .4rem; font-size: .55rem; }

/* Undersider med billeder (28 sep): billede + kort side om side, og mørkt bånd med billede bag teksten. */
.th-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; border-radius: var(--th-r); background: var(--th-kort); }
.th-split__billede { position: relative; min-height: 380px; margin: 0 !important; }
.th-split__billede img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.th-split .th-om__kort { align-self: center; padding: clamp(1.75rem, 4vw, 3.25rem); border-radius: 0; background: none; }

.th-billedbaand { position: relative; overflow: hidden; isolation: isolate; padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem); border-radius: var(--th-r); background: var(--th-sort); color: #fff; }
.th-billedbaand__billede { position: absolute !important; inset: 0; z-index: -2; margin: 0 !important; }
.th-billedbaand__billede img { width: 100%; height: 100%; object-fit: cover; }
.th-billedbaand::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23, 26, 32, .55), rgba(23, 26, 32, .88)); }
.th-billedbaand__tekst { max-width: 760px; margin-inline: auto; text-align: center; }
.th-side .th-billedbaand h2 { margin: 0 0 1rem; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.1; color: #fff; }
.th-billedbaand p { margin: 0 0 .9rem; font-size: 1.02rem; line-height: 1.7; color: rgba(255, 255, 255, .85); }
.th-billedbaand .th-kontakt { justify-content: center; }
.th-billedbaand .th-kontakt__label { color: #fff !important; }
.th-billedbaand .wp-block-button__link { background: #fff; color: var(--th-sort) !important; }
.th-om__kort--centreret { margin-inline: auto; text-align: center; }

@media (max-width: 767px) {
	.th-split { grid-template-columns: minmax(0, 1fr); }
	.th-split__billede { min-height: 240px; }
}

/* Lead-billedets <picture> (mobil-udsnit): billedet fylder stadig hele kortet. */
.th-lead__billede { display: contents; }
