/*
Theme Name: Klubdøren
Theme URI: https://klubdoeren.mathiasvexoee.dk
Description: Klubdøren × Drømmeboksen. Child theme af Astra bygget efter hi-fi-prototypen i Figma (v4): design system, klubfinder, klubsider, booking-prototype og QR-videosiden.
Author: MMD 3. semester – eksamensprojekt
Template: astra
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: klubdoeren
License: GNU General Public License v2 or later
*/

/* =========================================================================
   1. TOKENS (fra prototypens variabler)
   ========================================================================= */
:root {
	--hvid: #FFFFFF; --papir: #FBFAF6; --kridt: #F3F0E8; --streg: #D9D4C7; --sten: #B5AFA3;
	--graa: #6B655C; --grafit: #3A3640; --blaek: #17151C;
	--v50: #F1EFFC; --v100: #E6E2FB; --v200: #C9C2F5; --v500: #4A3BDB; --v600: #3527B0; --v700: #281D8A;
	--g100: #FFF1C7; --g500: #FFC93D; --g600: #F2B518; --g700: #D99E00;
	--r50: #FBEDEC; --r500: #B42A20;
	--d-violet: #5B3FE0; --d-lys: #7B5CFE; --d-nat: #1E1650;
	--kant: 1.5px; --r-lille: 2px; --r: 3px; --r-d: 12px;
	--ring: 0 0 0 3px rgba(74, 59, 219, .28);
	--cond: "Archivo Condensed", "Archivo Narrow", "Arial Narrow", sans-serif;
	--sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--fredoka: "Fredoka", var(--sans);
	--gutter: 16px; --sek: 48px;
	--t: 150ms ease-out;
}
@media (min-width: 900px) { :root { --gutter: 32px; --sek: 80px; } }

/* =========================================================================
   2. GRUND
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body.kd, .editor-styles-wrapper {
	margin: 0; background: var(--kridt); color: var(--blaek);
	font: 400 16px/24px var(--sans); -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body.kd { font-size: 17px; line-height: 26px; } }
body.kd img, body.kd video, body.kd svg { max-width: 100%; }
body.kd img { height: auto; display: block; }
body.kd a { color: inherit; }
body.kd p { margin: 0; }
body.kd h1, body.kd h2, body.kd h3, body.kd h4 { margin: 0; color: var(--blaek); }
body.kd ul, body.kd ol { margin: 0; padding: 0; list-style: none; }
body.kd button { font: inherit; color: inherit; }
body.kd hr { border: 0; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kd-main { display: block; outline: none; }
.kd-wrap { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.kd-skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--v500); color: var(--hvid) !important; padding: 10px 16px; border-radius: var(--r); font: 800 16px/20px var(--cond); text-decoration: none; }
.kd-skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--v500); outline-offset: 2px; }

@media (max-width: 899px) { .kd-only-desktop { display: none !important; } }
@media (min-width: 900px) { .kd-only-mobil { display: none !important; } }
.kd-finder__valg { display: flex; }

/* =========================================================================
   3. TYPOGRAFI (tekst-styles fra prototypen)
   ========================================================================= */
.kd-h1, body.kd h1.wp-block-heading, .kd-indhold h1.wp-block-heading { font: 900 40px/42px var(--cond); letter-spacing: -.01em; }
.kd-h2, .kd-indhold h2.wp-block-heading { font: 800 28px/30px var(--cond); }
.kd-h3, .kd-indhold h3.wp-block-heading { font: 800 22px/26px var(--cond); }
@media (min-width: 900px) {
	.kd-h1, body.kd h1.wp-block-heading, .kd-indhold h1.wp-block-heading { font-size: 56px; line-height: 56px; }
	.kd-h2, .kd-indhold h2.wp-block-heading { font-size: 36px; line-height: 38px; }
	.kd-h3, .kd-indhold h3.wp-block-heading { font-size: 24px; line-height: 28px; }
}
.kd-h4, .kd-indhold h4.wp-block-heading { font: 600 18px/24px var(--sans); }
.kd-body { font: inherit; }
.kd-small { font: 400 14px/20px var(--sans); }
.kd-felt { font: 400 16px/24px var(--sans); }
.kd-label { font: 600 13px/16px var(--cond); text-transform: uppercase; letter-spacing: .08em; }
.kd-muted { color: var(--graa); }
.kd-block { display: block; }
.kd-score-s { font: 900 28px/30px var(--cond); }

.kd-kicker { display: flex; align-items: center; gap: 10px; font: 600 13px/16px var(--cond); text-transform: uppercase; letter-spacing: .08em; color: var(--graa); }
.kd-kicker::before { content: ""; width: 24px; height: 2px; background: var(--v500); flex: none; }

/* Tekstlink og nav-link */
.kd-link, .kd-prosa__tekst a, .kd-indhold p a, .kd-faq__svar a {
	font-weight: 600; color: var(--v500) !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px;
	transition: color var(--t);
}
.kd-link:hover, .kd-prosa__tekst a:hover, .kd-indhold p a:hover, .kd-faq__svar a:hover { color: var(--v700) !important; }
.kd-link { display: inline-block; padding: 10px 0; font-size: 16px; line-height: 24px; }
.kd-navlink { font: 800 16px/20px var(--cond); color: var(--blaek); text-decoration: none; padding: 10px 0; transition: color var(--t); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.kd-navlink:hover { color: var(--v500); text-decoration: underline; }

/* =========================================================================
   4. KOMPONENTER
   ========================================================================= */

/* --- Knap: Primær / Sekundær / Gul × Default / Hover / Pressed / Disabled × L / S --- */
.kd-btn, body.kd .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 14px 24px; border-radius: var(--r); border: var(--kant) solid transparent;
	background: var(--v500); color: var(--hvid) !important; text-decoration: none !important;
	font: 800 18px/20px var(--cond); cursor: pointer; text-align: center;
	transition: background-color var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
}
.kd-btn:hover, body.kd .wp-block-button__link:hover { background: var(--v600); }
.kd-btn:active, body.kd .wp-block-button__link:active { background: var(--v700); }
.kd-btn:focus-visible, body.kd .wp-block-button__link:focus-visible { outline: none; box-shadow: var(--ring); }
.kd-btn[disabled], .kd-btn.is-disabled { background: var(--streg); color: var(--graa) !important; cursor: not-allowed; }
.kd-btn--s { min-height: 40px; padding: 10px 16px; font-size: 16px; }
.kd-btn .kd-ico { flex: none; }
.kd-btn--fill { width: 100%; }
@media (max-width: 899px) { .kd-btn--mfill { width: 100%; } }

.kd-btn--sek, body.kd .kd-sek .wp-block-button__link, body.kd .is-style-outline .wp-block-button__link { background: transparent; border-color: var(--blaek); color: var(--blaek) !important; }
.kd-btn--sek:hover, body.kd .kd-sek .wp-block-button__link:hover, body.kd .is-style-outline .wp-block-button__link:hover { background: var(--v50); border-color: var(--v500); color: var(--v500) !important; }
.kd-btn--sek:active, body.kd .kd-sek .wp-block-button__link:active, body.kd .is-style-outline .wp-block-button__link:active { background: var(--v100); border-color: var(--v600); color: var(--v600) !important; }
.kd-btn--sek[disabled], .kd-btn--sek.is-disabled { background: transparent; border-color: var(--streg); color: var(--sten) !important; }

.kd-btn--gul, body.kd .kd-gul .wp-block-button__link { background: var(--g500); color: var(--blaek) !important; }
.kd-btn--gul:hover, body.kd .kd-gul .wp-block-button__link:hover { background: var(--g600); }
.kd-btn--gul:active, body.kd .kd-gul .wp-block-button__link:active { background: var(--g700); }
.kd-btn--gul[disabled] { background: var(--g100); color: var(--sten) !important; }

/* Ikon på knapper fra editoren (klasse på knap-blokken) */
.wp-block-button.kd-ico-pil .wp-block-button__link::after,
.wp-block-button.kd-ico-ned .wp-block-button__link::after {
	content: ""; width: 24px; height: 24px; flex: none; background: currentColor;
	-webkit-mask: var(--ikon) center / contain no-repeat; mask: var(--ikon) center / contain no-repeat;
}
.wp-block-button.kd-ico-pil { --ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.wp-block-button.kd-ico-ned { --ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4v15M6 13l6 6 6-6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
body.kd .wp-block-button.kd-btn-s .wp-block-button__link { min-height: 40px; padding: 10px 16px; font-size: 16px; }
body.kd .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
@media (max-width: 899px) { body.kd .wp-block-buttons.kd-mfill, body.kd .wp-block-buttons.kd-mfill .wp-block-button { width: 100%; } body.kd .wp-block-buttons.kd-mfill .wp-block-button__link { width: 100%; } }

.kd-ikonknap { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--r); cursor: pointer; color: var(--blaek); transition: background-color var(--t), color var(--t); }
.kd-ikonknap:hover { background: var(--v50); color: var(--v500); }

/* --- Badge --- */
.kd-badge { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: var(--r-lille); font: 600 13px/16px var(--cond); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; flex: none; }
.kd-badge--ledige { background: var(--g500); color: var(--blaek); }
.kd-badge--gratis { background: var(--g100); color: var(--blaek); }
.kd-badge--venteliste { background: var(--streg); color: var(--blaek); }
.kd-badge--info { background: var(--v100); color: var(--v700); }
.kd-badge--fejl { background: var(--r50); color: var(--r500); }
.kd-badges { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- Filterchip: Default / Hover / Valgt --- */
.kd-chip { position: relative; display: inline-flex; cursor: pointer; flex: none; }
.kd-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kd-chip__flade {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-lille);
	border: var(--kant) solid var(--blaek); background: var(--papir); color: var(--blaek); font: 500 15px/20px var(--sans); white-space: nowrap;
	transition: background-color var(--t), border-color var(--t), color var(--t);
}
.kd-chip__flueben { display: none; color: var(--hvid); }
.kd-chip:hover .kd-chip__flade { background: var(--v50); border-color: var(--v500); color: var(--v500); }
.kd-chip input:checked + .kd-chip__flade { background: var(--v500); border-color: var(--v500); color: var(--hvid); }
.kd-chip input:checked + .kd-chip__flade .kd-chip__flueben { display: block; }
.kd-chip input:focus-visible + .kd-chip__flade { box-shadow: var(--ring); }
.kd-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- Inputfelt: Default / Fokus / Udfyldt / Fejl --- */
.kd-input { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.kd-input__felt {
	width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r); border: var(--kant) solid var(--blaek); background: var(--papir);
	font: 400 16px/24px var(--sans); color: var(--blaek); transition: border-color var(--t), box-shadow var(--t); appearance: none;
}
textarea.kd-input__felt { min-height: 112px; resize: vertical; }
.kd-input__felt::placeholder { color: var(--graa); opacity: 1; }
.kd-input__felt:hover { border-color: var(--v500); }
.kd-input__felt:focus { outline: none; border-color: var(--v500); box-shadow: inset 0 0 0 .5px var(--v500), var(--ring); }
.kd-input.is-fejl .kd-input__felt { border-color: var(--r500); box-shadow: inset 0 0 0 .5px var(--r500); }
.kd-input__fejl, .kd-fejltekst { color: var(--r500); }

/* --- Checkbox --- */
.kd-checkbox { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; position: relative; }
.kd-checkbox input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.kd-checkbox__boks { flex: none; width: 24px; height: 24px; border-radius: var(--r-lille); border: var(--kant) solid var(--blaek); background: var(--papir); display: grid; place-items: center; color: var(--hvid); transition: background-color var(--t), border-color var(--t); }
.kd-checkbox__boks .kd-ico { opacity: 0; }
.kd-checkbox:hover .kd-checkbox__boks { border-color: var(--v500); background: var(--v50); }
.kd-checkbox input:checked + .kd-checkbox__boks { background: var(--v500); border-color: var(--v500); }
.kd-checkbox input:checked + .kd-checkbox__boks .kd-ico { opacity: 1; }
.kd-checkbox input:focus-visible + .kd-checkbox__boks { box-shadow: var(--ring); }
.kd-checkbox > span:last-child { padding-top: 2px; }

/* --- Toggle --- */
.kd-toggle { appearance: none; flex: none; width: 48px; height: 28px; border-radius: 14px; background: var(--sten); position: relative; cursor: pointer; margin: 0; transition: background-color var(--t); }
.kd-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--hvid); transition: transform 150ms ease-out; }
.kd-toggle:checked { background: var(--v500); }
.kd-toggle:checked::after { transform: translateX(20px); }
.kd-toggle:hover { filter: brightness(.95); }
.kd-toggle:focus-visible { outline: none; box-shadow: var(--ring); }

/* --- Prisskyder --- */
.kd-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; margin: 0; cursor: pointer; --p: 100%; }
.kd-slider::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(var(--v500), var(--v500)) 0 / var(--p) 100% no-repeat, var(--streg); }
.kd-slider::-moz-range-track { height: 4px; border-radius: 2px; background: var(--streg); }
.kd-slider::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--v500); }
.kd-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--papir); border: 2px solid var(--v500); transition: box-shadow var(--t); }
.kd-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--papir); border: 2px solid var(--v500); }
.kd-slider:hover::-webkit-slider-thumb, .kd-slider:focus-visible::-webkit-slider-thumb { box-shadow: var(--ring); }
.kd-slider:focus-visible { outline: none; }

/* --- Liste/Kort-skifter --- */
.kd-skifter { display: inline-flex; border: var(--kant) solid var(--blaek); border-radius: var(--r); overflow: hidden; flex: none; }
.kd-skifter button { border: 0; background: transparent; padding: 8px 16px; font: 800 16px/20px var(--cond); cursor: pointer; color: var(--blaek); transition: background-color var(--t), color var(--t); }
.kd-skifter button:hover:not(.is-valgt) { background: var(--v50); color: var(--v500); }
.kd-skifter button.is-valgt { background: var(--v500); color: var(--hvid); }
.kd-skifter button:focus-visible { outline: none; box-shadow: inset var(--ring); }

/* --- FAQ: Lukket / Hover / Åben (bruger <details>, også fra editorens Detaljer-blok) --- */
.kd-faq, body.kd .wp-block-details { border-bottom: var(--kant) solid var(--streg); }
.kd-faq summary, body.kd .wp-block-details summary {
	display: flex; align-items: center; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none;
	font: 600 18px/24px var(--sans); color: var(--blaek); transition: color var(--t);
}
.kd-faq summary::-webkit-details-marker, body.kd .wp-block-details summary::-webkit-details-marker { display: none; }
.kd-faq summary > span { flex: 1; }
body.kd .wp-block-details summary::after {
	content: ""; flex: none; width: 24px; height: 24px; margin-left: auto; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.kd .wp-block-details[open] summary::after {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.kd-faq summary:hover, body.kd .wp-block-details summary:hover { color: var(--v500); }
.kd-faq summary:focus-visible, body.kd .wp-block-details summary:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r); }
.kd-faq__minus, .kd-faq[open] .kd-faq__plus { display: none; }
.kd-faq[open] .kd-faq__minus { display: block; }
.kd-faq__svar, body.kd .wp-block-details > :not(summary) { padding: 0 40px 20px 0; color: var(--graa); font: 400 16px/24px var(--sans); margin: 0; }

/* --- Sportskort --- */
.kd-sporter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 8px; }
@media (min-width: 900px) { .kd-sporter { grid-template-columns: repeat(9, 1fr); gap: 16px; } }
.kd-sportskort {
	display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 14px; height: 100%;
	border-radius: var(--r); border: var(--kant) solid var(--blaek); background: var(--papir); text-decoration: none; color: var(--blaek);
	font: 800 16px/20px var(--cond); text-align: center; transition: background-color var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
}
.kd-sportskort:hover { background: var(--v50); border-color: var(--v500); box-shadow: inset 0 0 0 .5px var(--v500); color: var(--v500); }
.kd-sportskort:active { background: var(--v100); }
.kd-sportskort:focus-visible { outline: none; box-shadow: inset 0 0 0 .5px var(--v500), var(--ring); }
.kd-sportskort .kd-illu { color: var(--blaek); }

/* Streg-illustrationer: én tuschstreg (2,2 px) uanset størrelse */
.kd-illu { flex: none; display: block; }
.kd-illu path, .kd-illu circle, .kd-illu rect, .kd-illu line, .kd-illu polyline, .kd-illu ellipse { vector-effect: non-scaling-stroke; }
.kd-illu g[fill="none"] *, .kd-illu [fill="none"] { stroke-width: 2.2px; }
.kd-circle { width: var(--s, 120px); height: var(--s, 120px); border-radius: 50%; background: var(--papir); border: var(--kant) solid var(--blaek); display: inline-grid; place-items: center; flex: none; }

/* --- Klubkort (hele kortet er klikbart) --- */
.kd-klubkort {
	position: relative; display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: var(--r);
	border: var(--kant) solid var(--blaek); background: var(--papir); text-decoration: none; color: var(--blaek);
	transition: background-color var(--t), border-color var(--t), box-shadow var(--t);
}
.kd-klubkort__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.kd-klubkort__info { display: flex; flex-direction: column; gap: 6px; }
.kd-klubkort__navn { transition: color var(--t); }
.kd-klubkort__link::after { content: ""; position: absolute; inset: 0; }
.kd-klubkort__link { text-decoration: none; color: inherit; }
.kd-klubkort .kd-kortknap { position: relative; z-index: 1; }
.kd-klubkort:hover { border-color: var(--v500); box-shadow: inset 0 0 0 .5px var(--v500); background: var(--v50); }
.kd-klubkort:hover .kd-klubkort__navn { color: var(--v500); }
.kd-klubkort:focus-within { box-shadow: inset 0 0 0 .5px var(--v500), var(--ring); border-color: var(--v500); }
.kd-klubkort__link:focus-visible { outline: none; }
/* Kortknap: sort outline → violet outline når kortet hoveres → fyldt når selve knappen hoveres */
.kd-kortknap { width: 100%; }
.kd-klubkort:hover .kd-kortknap { border-color: var(--v500); color: var(--v500) !important; background: transparent; }
.kd-klubkort .kd-kortknap:hover { background: var(--v500); border-color: var(--v500); color: var(--hvid) !important; }
.kd-klubkort .kd-kortknap:active { background: var(--v700); border-color: var(--v700); }

/* --- Vælgerfelt + dropdown (klubfinder, desktop) --- */
.kd-dd { position: relative; flex: 1 1 0; min-width: 0; }
.kd-vaelger {
	width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-align: left; cursor: pointer;
	border-radius: var(--r); border: var(--kant) solid var(--blaek); background: var(--hvid); color: var(--blaek);
	transition: background-color var(--t), border-color var(--t), color var(--t);
}
.kd-vaelger__tekst { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.kd-vaelger__vaerdi { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kd-vaelger__vaerdi.is-tom { color: var(--graa); }
.kd-vaelger .kd-ico { flex: none; transition: transform var(--t); }
.kd-vaelger:hover, .kd-vaelger[aria-expanded="true"] { background: var(--v50); border-color: var(--v500); }
.kd-vaelger:hover .kd-ico, .kd-vaelger[aria-expanded="true"] .kd-ico { color: var(--v500); }
.kd-vaelger[aria-expanded="true"] .kd-ico { transform: rotate(180deg); }
.kd-vaelger:focus-visible { outline: none; box-shadow: var(--ring); }
.kd-dd__menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; padding: 6px; background: var(--papir); border: var(--kant) solid var(--blaek); border-radius: var(--r); max-height: 320px; overflow: auto; }
.kd-valg { padding: 10px 12px; border-radius: var(--r-lille); cursor: pointer; font: 400 16px/24px var(--sans); transition: background-color var(--t), color var(--t); }
.kd-valg:hover, .kd-valg:focus, .kd-valg.is-aktiv { background: var(--v50); color: var(--v500); outline: none; }
.kd-valg[aria-selected="true"] { font-weight: 600; }
.kd-valg[aria-selected="true"]::after { content: " ✓"; color: var(--v500); }

/* --- Holdrække (klubside) --- */
.kd-holdraekke {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px; border-radius: var(--r);
	border: var(--kant) solid var(--blaek); background: var(--papir); transition: background-color var(--t), border-color var(--t), box-shadow var(--t);
}
.kd-holdraekke__info { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.kd-holdraekke__navn { transition: color var(--t); }
.kd-holdraekke .kd-btn { width: 100%; }
@media (min-width: 900px) { .kd-holdraekke { flex-wrap: nowrap; padding: 16px 20px; } .kd-holdraekke .kd-btn { width: auto; flex: none; } }
.kd-holdraekke:hover { background: var(--v50); border-color: var(--v500); box-shadow: inset 0 0 0 .5px var(--v500); }
.kd-holdraekke:hover .kd-holdraekke__navn { color: var(--v500); }

/* --- Klubrække (videoside) --- */
.kd-klubraekker { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.kd-klubraekke {
	display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); text-decoration: none; color: var(--blaek);
	border: var(--kant) solid var(--blaek); background: var(--papir); transition: background-color var(--t), border-color var(--t), box-shadow var(--t);
}
.kd-klubraekke img { width: 48px; height: 48px; border-radius: var(--r-lille); object-fit: cover; flex: none; }
.kd-klubraekke__info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kd-klubraekke__navn { transition: color var(--t); }
.kd-klubraekke:hover { background: var(--v50); border-color: var(--v500); box-shadow: inset 0 0 0 .5px var(--v500); }
.kd-klubraekke:hover .kd-klubraekke__navn { color: var(--v500); }
.kd-klubraekke:focus-visible { outline: none; box-shadow: var(--ring); }

/* --- Kort-flade, tjekliste, info --- */
.kd-kort { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--r); border: var(--kant) solid var(--blaek); background: var(--papir); }
.kd-checks { display: flex; flex-direction: column; gap: 12px; }
.kd-check { display: flex; align-items: center; gap: 12px; }
.kd-check__ikon { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--v500); color: var(--hvid); display: grid; place-items: center; }
.kd-info, .kd-proto { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r); background: var(--g100); font: 400 14px/20px var(--sans); }
.kd-info .kd-ico, .kd-proto .kd-ico { flex: none; }
.kd-ikonlinje { display: flex; align-items: center; gap: 8px; }
.kd-ikonlinje .kd-ico { flex: none; }
.kd-kontakt .kd-ikonlinje .kd-ico { color: var(--v500); }
.kd-kontakt a:not(.kd-btn) { text-decoration: none; transition: color var(--t); }
.kd-kontakt a:not(.kd-btn):hover { color: var(--v500); text-decoration: underline; }
.kd-stack { display: flex; flex-direction: column; gap: 16px; }
.kd-blok { margin-top: 24px; }
@media (min-width: 900px) { .kd-blok { margin-top: 32px; } }
.kd-skille { height: 1.5px; background: var(--streg); margin: 8px 0; }

/* --- Scoreboard --- */
.kd-score { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 168px; padding: 24px; border-radius: var(--r); border: var(--kant) solid var(--blaek); background: var(--papir); }
@media (min-width: 900px) { .kd-score { min-height: 200px; } }
.kd-score .kd-bane { position: absolute; left: 52%; top: 50%; width: 110%; transform: translateY(-50%); color: var(--v200); max-width: none; }
.kd-score__tal { position: relative; display: flex; flex-direction: column; gap: 4px; }
.kd-score__num { font: 900 96px/88px var(--cond); letter-spacing: -.02em; }

/* --- Trin (booking) --- */
.kd-steps { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kd-steps__trin { display: flex; align-items: center; gap: 8px; color: var(--sten); }
.kd-steps__trin.is-on { color: var(--blaek); }
.kd-steps__num { font: 900 28px/30px var(--cond); }
.kd-steps__trin.is-on .kd-steps__num { color: var(--v500); }
.kd-steps__streg { width: 20px; height: 2px; background: var(--streg); }
.kd-steps__streg.is-on { background: var(--v500); }
@media (min-width: 900px) { .kd-steps__streg { width: 48px; } }

/* --- Brødkrumme --- */
.kd-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 400 16px/24px var(--sans); }
.kd-crumbs .kd-link { padding: 4px 0; }
.kd-crumbs__tilbage { color: var(--v500); display: inline-grid; place-items: center; width: 32px; height: 32px; margin-left: -6px; border-radius: var(--r); transition: background-color var(--t), color var(--t); }
.kd-crumbs__tilbage:hover { background: var(--v50); color: var(--v700); }

/* --- Logoer --- */
.kd-logo { display: inline-flex; align-items: center; gap: 8px; }
.kd-logo__ikon { color: var(--v500); width: 28px; height: auto; }
.kd-logo__ord { font: 900 23px/26px var(--cond); color: var(--blaek); }
@media (min-width: 900px) { .kd-logo { gap: 10px; } .kd-logo__ikon { width: 34px; } .kd-logo__ord { font-size: 28px; line-height: 32px; } }
.kd-logo--blaek .kd-logo__ikon { color: var(--g500); }
.kd-logo--blaek .kd-logo__ord { color: var(--hvid); font-size: 28px; line-height: 32px; }
.kd-dlogo { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px 10px 12px; }
.kd-dlogo__ord { font: 600 32px/36px var(--fredoka); color: var(--g500); }

/* =========================================================================
   5. HEADER OG FOOTER
   ========================================================================= */
.kd-header { background: var(--kridt); border-bottom: var(--kant) solid var(--blaek); position: relative; z-index: 20; }
.kd-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
@media (min-width: 900px) { .kd-header__inner { min-height: 80px; } }
.kd-header__logo { display: inline-flex; padding: 6px 0; text-decoration: none; border-radius: var(--r); }
.kd-header__logo:hover .kd-logo__ord { color: var(--v500); }
.kd-logo__ord { transition: color var(--t); }
.kd-header__nav { display: flex; align-items: center; gap: 14px; }
@media (min-width: 900px) { .kd-header__nav { gap: 32px; } }

.kd-footer { background: var(--blaek); color: var(--kridt); padding: 40px 0 32px; }
@media (min-width: 900px) { .kd-footer { padding: 56px 0 40px; } }
.kd-footer__top { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 900px) { .kd-footer__top { flex-direction: row; justify-content: space-between; } }
.kd-footer__brand { display: flex; flex-direction: column; gap: 12px; max-width: 300px; }
.kd-footer__brand a { text-decoration: none; align-self: flex-start; }
.kd-footer__brand a:hover .kd-logo__ord { color: var(--g500); }
.kd-footer__brand p { color: var(--sten); font: 400 16px/24px var(--sans); }
.kd-footer__cols { display: flex; gap: 48px; }
@media (min-width: 900px) { .kd-footer__cols { gap: 64px; } }
.kd-footer__cols ul { display: flex; flex-direction: column; gap: 10px; margin-top: 10px !important; }
.kd-footer__cols .kd-label { color: var(--sten); }
.kd-footer__cols a { color: var(--kridt); text-decoration: none; font: 400 16px/24px var(--sans); transition: color var(--t); text-underline-offset: 3px; }
.kd-footer__cols a:hover { color: var(--g500); text-decoration: underline; }
.kd-footer__linje { height: 1px; background: var(--grafit); margin: 32px 0 !important; }
@media (min-width: 900px) { .kd-footer__linje { margin: 40px 0 !important; } }
.kd-footer__copy { color: var(--sten); font: 400 14px/20px var(--sans); }
.kd-footer :focus-visible { outline-color: var(--g500); }

/* =========================================================================
   6. SEKTIONER (forside og sider bygget i editoren)
   Struktur: gruppe .kd-section > gruppe .kd-wrap > blokke
   ========================================================================= */
.kd-indhold .wp-block-group__inner-container { display: contents; }
.kd-indhold > *, .kd-indhold .wp-block-group { margin: 0; }
.kd-indhold .wp-block-group.kd-wrap { margin-inline: auto; }
.kd-indhold .kd-wrap > *, .kd-indhold .kd-wrap > * > * { margin-block: 0; }
.kd-section { padding-block: var(--sek); position: relative; }
.kd-section > .kd-wrap { display: flex; flex-direction: column; gap: 16px; }
.kd-papir { background: var(--papir); }
.kd-lead { color: var(--graa); }

/* Hero */
.kd-hero { position: relative; height: 400px; overflow: hidden; background: var(--blaek); }
@media (min-width: 900px) { .kd-hero { height: 520px; } }
.kd-hero__video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Intro med QR-boks */
.kd-intro { padding-block: 32px 40px; }
@media (min-width: 900px) { .kd-intro { padding-block: 48px 72px; } }
.kd-intro__wrap { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 900px) { .kd-intro__wrap { gap: 48px; } }
.kd-intro__top { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 900px) { .kd-intro__top { flex-direction: row; justify-content: space-between; align-items: center; gap: 96px; } }
.kd-intro__tekst { display: flex; flex-direction: column; gap: 20px; max-width: 560px; }
.kd-intro__tekst > * { margin: 0 !important; }
.kd-billeder { display: flex; gap: 12px; margin: 0 !important; }
@media (min-width: 900px) { .kd-billeder { gap: 24px; flex: none; } }
.kd-billeder figure, .kd-billeder .wp-block-image { margin: 0 !important; flex: 1; }
.kd-billeder img { width: 100%; height: 220px !important; object-fit: cover; border-radius: var(--r); }
@media (min-width: 900px) { .kd-billeder figure, .kd-billeder .wp-block-image { width: 248px; flex: none; } .kd-billeder img { height: 340px !important; } }
.kd-qrboks { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: var(--r); background: var(--papir); border: var(--kant) solid var(--streg); }
@media (min-width: 900px) { .kd-qrboks { flex-direction: row; align-items: center; gap: 48px; padding: 24px 32px; } }
.kd-qrboks__tekst { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.kd-qrboks__tekst > * { margin: 0 !important; }
.kd-qrboks h2, .kd-qrboks h3 { font: 600 18px/24px var(--sans) !important; }
.kd-qrboks p { color: var(--graa); font: 400 14px/20px var(--sans); }
.kd-qrboks .wp-block-buttons { flex: none; }
@media (max-width: 899px) { .kd-qrboks .wp-block-buttons, .kd-qrboks .wp-block-button, .kd-qrboks .wp-block-button__link { width: 100%; } }

/* Tre trin */
.kd-trin { overflow: hidden; }
.kd-trin::before {
	content: ""; position: absolute; width: 360px; height: 240px; right: -160px; top: -40px; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400'%3E%3Cg fill='none' stroke='%23C9C2F5' stroke-width='2'%3E%3Crect x='20' y='20' width='560' height='360' rx='2'/%3E%3Cpath d='M300 20V380'/%3E%3Ccircle cx='300' cy='200' r='62'/%3E%3Cpath d='M20 110H100V290H20'/%3E%3Cpath d='M580 110H500V290H580'/%3E%3Cpath d='M100 160A48 48 0 0 1 100 240'/%3E%3Cpath d='M500 160A48 48 0 0 0 500 240'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 900px) { .kd-trin::before { width: 620px; height: 413px; right: -180px; top: -60px; } }
.kd-trin > * { position: relative; }
.kd-trinliste { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; margin: 0 !important; counter-reset: trin; }
@media (min-width: 900px) { .kd-trinliste { flex-direction: row; gap: 48px; padding-top: 16px; } }
.kd-trinliste > * { flex: 1; display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; align-content: start; margin: 0 !important; counter-increment: trin; }
@media (min-width: 900px) { .kd-trinliste > * { grid-template-columns: 1fr; gap: 4px; } }
.kd-trinliste > *::before {
	content: counter(trin); grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--v500); background: var(--papir);
	display: grid; place-items: center; font: 900 28px/30px var(--cond); color: var(--v500); margin-bottom: 12px;
}
.kd-trinliste h3 { font: 600 18px/24px var(--sans) !important; margin: 0 !important; align-self: end; }
.kd-trinliste p { color: var(--graa); margin: 0 !important; }
@media (max-width: 899px) { .kd-trinliste > *::before { margin-bottom: 0; } }

#sporter { scroll-margin-top: 24px; }

/* FAQ-sektion */
.kd-faqsek { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .kd-section > .kd-wrap.kd-faqsek { flex-direction: row; gap: 96px; } }
.kd-faqsek__intro { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .kd-faqsek__intro { width: 384px; flex: none; } }
.kd-faqsek__intro > *, .kd-faqliste > * { margin: 0 !important; }
.kd-faqliste { flex: 1; display: flex; flex-direction: column; }

/* Almindelige sider */
.kd-prosa { padding-block: var(--sek); }
.kd-prosa > h1 { margin-bottom: 24px !important; max-width: 760px; }
.kd-prosa__tekst { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.kd-prosa__tekst > * { margin: 0 !important; }
.kd-prosa__tekst h2 { font: 800 28px/30px var(--cond); margin-top: 16px !important; }
@media (min-width: 900px) { .kd-prosa__tekst h2 { font-size: 36px; line-height: 38px; } }
.kd-prosa__tekst h3 { font: 800 22px/26px var(--cond); margin-top: 8px !important; }
.kd-prosa__tekst ul { list-style: disc; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.kd-prosa__tekst > p:first-child { font-size: 1.1em; }

/* Centreret tilstand (slettet, 404, ingen QR) */
.kd-midt { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding-block: 64px 96px; max-width: calc(520px + 2 * var(--gutter)); }
@media (min-width: 900px) { .kd-midt { padding-block: 120px 160px; } }
@media (max-width: 899px) { .kd-midt > .kd-btn { width: 100%; } }

/* =========================================================================
   7. KLUBFINDER
   ========================================================================= */
.kd-finder__band { padding-block: 24px 0; }
@media (min-width: 900px) { .kd-finder__band { padding-block: 48px 40px; background: var(--papir); border-bottom: var(--kant) solid var(--streg); } }
.kd-finder__band .kd-wrap { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .kd-finder__band .kd-wrap { gap: 24px; } }
.kd-finder__chips { display: flex; gap: 8px; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
.kd-finder__chips::-webkit-scrollbar { display: none; }
.kd-finder__soeg { display: flex; gap: 8px; }
.kd-soegefelt { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: var(--r); border: var(--kant) solid var(--blaek); background: var(--papir); color: var(--graa); transition: border-color var(--t), box-shadow var(--t); min-width: 0; }
.kd-soegefelt:hover { border-color: var(--v500); }
.kd-soegefelt:focus-within { border-color: var(--v500); box-shadow: inset 0 0 0 .5px var(--v500), var(--ring); }
.kd-soegefelt input { flex: 1; border: 0; background: transparent; font: 400 16px/24px var(--sans); color: var(--blaek); outline: none; min-width: 0; padding: 0; }
.kd-soegefelt input::placeholder { color: var(--graa); }
.kd-finder__valg { gap: 16px; align-items: stretch; }
.kd-finder__valg > .kd-btn { flex: none; min-height: auto; }
.kd-finder__besked { color: var(--graa); }
.kd-finder__resultater { padding-block: 16px var(--sek); }
@media (min-width: 900px) { .kd-finder__resultater { padding-top: 40px; } }
.kd-finder__resultater .kd-wrap { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .kd-finder__resultater .kd-wrap { gap: 24px; } }
.kd-finder__linje { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.kd-finder__grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .kd-finder__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .kd-finder__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.kd-finder__mere { display: flex; justify-content: center; }
.kd-finder__kort, .kd-minikort { position: relative; z-index: 0; isolation: isolate; }
.kd-finder__kort { height: 480px; border-radius: var(--r); border: var(--kant) solid var(--blaek); overflow: hidden; background: var(--papir); }
@media (min-width: 900px) { .kd-finder__kort { height: 600px; } }
.kd-tom { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 32px 0; }
@media (min-width: 900px) { .kd-tom { padding-top: 48px; } }
@media (max-width: 899px) { .kd-tom .kd-btn { width: 100%; } }

/* Filterpanel */
.kd-scrim { position: fixed; inset: 0; background: rgba(23, 21, 28, .5); z-index: 90; animation: kd-fade 150ms ease-out; }
.kd-filtre {
	position: fixed; z-index: 91; background: var(--papir); display: flex; flex-direction: column; gap: 16px;
	left: 0; right: 0; bottom: 0; max-height: 88vh; padding: 10px 16px 24px; border-radius: var(--r-d) var(--r-d) 0 0;
	animation: kd-op 200ms ease-out;
}
@media (min-width: 900px) {
	.kd-filtre { left: auto; top: 0; width: 440px; max-height: none; padding: 16px 24px 24px; border-radius: 0; border-left: var(--kant) solid var(--blaek); gap: 8px; animation-name: kd-ind; }
}
.kd-filtre__greb { width: 40px; height: 4px; border-radius: 2px; background: var(--streg); margin: 0 auto; flex: none; }
.kd-filtre__top { display: flex; justify-content: space-between; align-items: center; }
.kd-filtre__liste { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; padding-block: 4px; }
.kd-fgruppe { border: 0; margin: 0; padding-inline: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (min-width: 900px) { .kd-filtre__liste { gap: 0; } .kd-fgruppe { padding: 16px 0; border-bottom: var(--kant) solid var(--streg); } }
.kd-fgruppe legend { padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.kd-fgruppe legend + .kd-chips { clear: both; }
.kd-fgruppe__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-direction: row; }
.kd-toggle-row { cursor: pointer; }
.kd-filtre__handlinger { display: flex; gap: 12px; }
.kd-filtre__handlinger .kd-btn--fill { flex: 1; }
body.kd-laast { overflow: hidden; }
@keyframes kd-fade { from { opacity: 0; } }
@keyframes kd-op { from { transform: translateY(40px); opacity: 0; } }
@keyframes kd-ind { from { transform: translateX(40px); opacity: 0; } }

/* Leaflet i prototypens stil */
.kd-pin { width: 24px; height: 24px; border-radius: 50%; background: var(--v500); border: 1.5px solid var(--blaek); display: grid; place-items: center; transition: transform var(--t), background-color var(--t); }
.kd-pin::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hvid); }
.kd-pin:hover, .kd-pin.is-aktiv { background: var(--g500); transform: scale(1.15); }
.kd-pin:hover::after, .kd-pin.is-aktiv::after { background: var(--blaek); }
.kd-pin--mig { background: var(--g500); }
.kd-pin--mig::after { background: var(--blaek); }
.leaflet-container { font: 400 14px/20px var(--sans) !important; background: var(--papir) !important; }
.leaflet-popup-content-wrapper { border-radius: var(--r) !important; border: var(--kant) solid var(--blaek); box-shadow: none !important; background: var(--papir) !important; }
.leaflet-popup-tip { background: var(--papir) !important; border: var(--kant) solid var(--blaek); box-shadow: none !important; }
.leaflet-popup-content { margin: 14px 16px !important; display: flex; flex-direction: column; gap: 4px; }
.leaflet-popup-content .kd-h4 { color: var(--blaek); }
.leaflet-popup-content .kd-link { padding: 4px 0 0; }
.leaflet-tile-pane { filter: saturate(.35) sepia(.12) brightness(1.03); }
.leaflet-bar a { color: var(--blaek) !important; }

/* =========================================================================
   8. KLUBSIDE
   ========================================================================= */
.kd-klubside__crumbs { padding-block: 8px; }
.kd-klubside__hero { width: 100%; height: 240px !important; object-fit: cover; }
@media (min-width: 900px) { .kd-klubside__hero { height: 400px !important; } }
.kd-klubside__grid { display: flex; flex-direction: column; gap: 32px; padding-block: 24px var(--sek); }
@media (min-width: 900px) { .kd-klubside__grid { flex-direction: row; align-items: flex-start; gap: 48px; padding-top: 56px; } }
.kd-klubside__indhold { flex: 1; min-width: 0; }
.kd-klubside__side { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .kd-klubside__side { width: 392px; flex: none; position: sticky; top: 24px; } }
@media (max-width: 899px) { .kd-klubside__grid { display: grid; } .kd-klubside__side { order: 0; } }
.kd-klubside__tekst > * + * { margin-top: 12px; }
.kd-traener { display: flex; align-items: center; gap: 12px; padding-top: 8px; }
.kd-traener__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--v100); color: var(--v700); display: grid; place-items: center; font: 800 16px/20px var(--cond); flex: none; }
.kd-vurdering { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kd-citater { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 900px) { .kd-citater { flex-direction: row; } }
.kd-citat { flex: 1; margin: 0; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r); border: var(--kant) solid var(--streg); background: var(--papir); }
.kd-citat blockquote { margin: 0; }
.kd-minikort { height: 180px; border-radius: var(--r); border: var(--kant) solid var(--blaek); overflow: hidden; background: var(--papir); z-index: 0; }
@media (min-width: 900px) { .kd-minikort { height: 240px; } }
.kd-adresse .kd-btn { margin-top: 8px; }

/* =========================================================================
   9. BOOKING OG KVITTERING
   ========================================================================= */
.kd-booking { display: flex; flex-direction: column; gap: 16px; padding-block: 24px var(--sek); }
@media (min-width: 900px) { .kd-booking { padding-top: 48px; } }
.kd-booking__grid { display: flex; flex-direction: column-reverse; gap: 24px; padding-top: 8px; }
@media (min-width: 900px) { .kd-booking__grid { flex-direction: row; gap: 64px; padding-top: 16px; } .kd-booking__form { flex: 1; max-width: 680px; } .kd-booking__side { width: 392px; flex: none; } }
.kd-booking__om-dig { margin-top: 8px; }
.kd-par { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .kd-par { flex-direction: row; } }
.kd-opsummering img { width: 100%; height: 160px !important; object-fit: cover; border-radius: var(--r); margin-bottom: 4px; }
.kd-opsummering__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.kd-adresse-fremhaevet { display: flex; gap: 10px; padding-top: 8px; }
.kd-adresse-fremhaevet .kd-ico { color: var(--v500); flex: none; }
.kd-godt { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r); background: var(--g100); }
.kd-proto { align-self: flex-start; }

.kd-kvittering { display: flex; flex-direction: column; align-items: center; gap: 32px; padding-block: 32px 64px; }
@media (min-width: 900px) { .kd-kvittering { padding-block: 64px 120px; } }
.kd-kvittering__kol { width: 100%; max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.kd-kvittering__flueben { width: 72px; height: 72px; border-radius: 50%; background: var(--v500); color: var(--hvid); display: grid; place-items: center; }
.kd-kvittering .kd-score, .kd-kvittering .kd-husk { width: 100%; text-align: left; }
.kd-kvittering .kd-proto { align-self: center; text-align: left; }
.kd-husk { display: flex; flex-direction: column; gap: 12px; padding-block: 8px; }

/* =========================================================================
   10. VIDEOSIDEN (Drømmeboksen)
   ========================================================================= */
.kd-video__grid { display: flex; flex-direction: column; padding-inline: 0; }
@media (min-width: 900px) { .kd-video__grid { flex-direction: row; align-items: flex-start; gap: 80px; padding: 64px var(--gutter) 96px; } }
.kd-video__tekst { padding: 32px var(--gutter) var(--sek); flex: 1; }
@media (min-width: 900px) { .kd-video__tekst { padding: 0; max-width: 560px; } }
.kd-dmodul { background: var(--d-violet); display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 24px 16px 32px; color: var(--hvid); text-align: center; }
@media (min-width: 900px) { .kd-dmodul { width: 440px; flex: none; padding: 32px; border-radius: var(--r-d); } }
.kd-dmodul__mobil { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.kd-dmodul__mobil .kd-h1, .kd-dmodul__mobil .kd-body { color: var(--hvid); }

.kd-player { position: relative; width: 220px; aspect-ratio: 9 / 16; border-radius: var(--r-d); overflow: hidden; background: var(--d-nat); flex: none; }
@media (min-width: 900px) { .kd-player { width: 300px; } }
.kd-video[data-state="vist"] .kd-player { width: 260px; }
@media (min-width: 900px) { .kd-video[data-state="vist"] .kd-player { width: 320px; } }
.kd-player__still, .kd-player__video { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.kd-player__still { filter: blur(18px); transform: scale(1.15); }
.kd-player__sloer { position: absolute; inset: 0; background: rgba(23, 21, 28, .35); }
.kd-player__laas { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--hvid); }
.kd-player__laasikon { width: 64px; height: 64px; border-radius: 50%; background: var(--papir); color: var(--blaek); display: grid; place-items: center; }
.kd-video[data-state="vent"] .kd-player__laasikon .kd-ico { animation: kd-puls 1.4s ease-in-out infinite; }
@keyframes kd-puls { 50% { opacity: .35; } }
.kd-player.is-klar .kd-player__still, .kd-player.is-klar .kd-player__sloer, .kd-player.is-klar .kd-player__laas { display: none; }
.kd-player__video { background: var(--blaek); cursor: pointer; }
.kd-player__afspil, .kd-player__pause { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--papir); color: var(--blaek); display: grid; place-items: center; cursor: pointer; transition: background-color var(--t), color var(--t); }
.kd-player__afspil:hover, .kd-player__pause:hover { background: var(--v50); color: var(--v500); }
.kd-player__afspil .kd-ico { margin-left: 2px; }
.kd-player__afspil:active, .kd-player__pause:active { background: var(--v100, #E4DDFB); }
.kd-player__afspil:focus-visible, .kd-player__pause:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--g500); }
.kd-player__tid { position: absolute; left: 12px; bottom: 12px; padding: 4px 8px; border-radius: var(--r-lille); background: var(--blaek); color: var(--hvid); }

/* Tilstande: kun den aktive vises */
.kd-video [data-vis] { display: none; }
.kd-video[data-state="vent"] [data-vis="vent"],
.kd-video[data-state="samtykke"] [data-vis="samtykke"],
.kd-video[data-state="vist"] [data-vis="vist"],
.kd-video[data-state="slettet"] [data-vis="slettet"] { display: flex; }
.kd-video[data-state="slettet"] .kd-dmodul { display: none; }
.kd-video[data-state="slettet"] .kd-video__grid { justify-content: center; }
.kd-video__slettet { align-items: center; text-align: center; max-width: 520px; margin-inline: auto; padding-block: 32px 48px; }
@media (min-width: 900px) { .kd-video__slettet { padding-block: 56px 64px; } }
@media (max-width: 899px) { .kd-video__slettet .kd-btn { width: 100%; } .kd-video__slettet > div { width: 100%; } }
.kd-knapper { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 900px) { .kd-knapper { flex-direction: row; } }
@media (max-width: 899px) { .kd-knapper .kd-btn { width: 100%; } }
.kd-vent { display: flex; align-items: center; gap: 6px; color: var(--graa); }
.kd-vent__prik { width: 8px; height: 8px; border-radius: 50%; background: var(--v500); animation: kd-puls 1.2s ease-in-out infinite; }
.kd-vent__prik:nth-child(2) { animation-delay: .2s; }
.kd-vent__prik:nth-child(3) { animation-delay: .4s; margin-right: 6px; }

/* Smalle telefoner: header på én linje */
.kd-btn, .kd-navlink { white-space: nowrap; }
@media (max-width: 419px) {
	.kd-header__inner { gap: 10px; }
	.kd-header__nav { gap: 12px; }
	.kd-header .kd-logo__ord { font-size: 20px; line-height: 24px; }
	.kd-header .kd-logo__ikon { width: 24px; }
	.kd-header .kd-navlink { font-size: 15px; }
	.kd-header .kd-btn--s { padding: 10px 12px; font-size: 15px; }
}
