/*
Theme Name: Østfyns El-Teknik 2
Author: Codepilots
Author URI: https://codepilots.io
Description: 2026 redesign of the Østfyns El-Teknik theme in the style of the client's reference (odense-el.dk): flat and square, white / light grey / charcoal sections, the logo's green as the only accent, a moving hero. Same ACF "Elementer" backend as the first theme, plus Cases and a CTA band. No page builder, no jQuery.
Version: 2.0.0
Text Domain: oestfynselteknik
*/

/* Tokens, fonts and text styles (headings, buttons, lists, forms) live in editor-style.css, which header.php
   links before this file so the TinyMCE editors share them. This file is layout and components. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
html { background: var(--ink); } /* short pages: the footer's colour continues to the bottom of the window instead of a white gap above it */
body { margin: 0; display: flex; flex-direction: column; background: #fff; color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
main { width: 100%; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--charcoal); color: #fff; padding: 10px 16px; font-weight: 600; }
.skip-link:focus { left: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pagewidth { max-width: 1344px; width: 100%; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section { padding-top: 88px; padding-bottom: 88px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 48px; }
.section-head .lead-col { display: flex; flex-direction: column; max-width: 760px; }
.section-head .lead-col h2 { margin: 0; }
.section-head .lead-col .rich { margin-top: 14px; }
.section-head .lead-col .rich p { font-size: 16px; }
.section-head .side .rating.big { margin-bottom: 4px; }
.rating.big:hover { opacity: .8; }
.section-head .side { max-width: 420px; }
.section-head .side p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.section-head .side .btn { white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Scroll reveal: site.js marks the elements it observes (.fade-ready) and adds .in when they enter the viewport
   (or after 2.5 s at the latest); without JS, or until the script runs, everything is visible */
.fade-up.fade-ready { opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .4s cubic-bezier(.2,.7,.2,1); }
.fade-up.fade-ready.in { opacity: 1; transform: none; }
.fade-up.zoom.fade-ready { transform: scale(1.03); transition-duration: .55s; }
.fade-up.zoom.fade-ready.in { transform: none; }
.svc-card.fade-ready, .case-card.fade-ready { transform: translateY(16px) scale(.98); }
.svc-card.fade-ready.in, .case-card.fade-ready.in { transform: none; }
/* Hover: cards lift (after the reveal, so the lift is quick) */
.svc-card.in, .case-card.in, .svc-card:not(.fade-ready), .case-card:not(.fade-ready) { transition: transform .3s ease, box-shadow .3s ease, color .2s ease; }
.svc-card:hover, .case-card:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -22px rgba(12,17,23,.45); }
.columns .column.image { overflow: hidden; border-radius: 8px; }
.columns .column.image img, .mosaic figure { overflow: hidden; }
.columns .column.image img, .mosaic img, .case-card .thumb img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.columns .column.image:hover img, .mosaic figure:hover img { transform: scale(1.04); }

/* ---------- Section themes: cream (field value) = light grey, white, navy (field value) = charcoal ---------- */
.theme-light { background: var(--light); }
.theme-white { background: #fff; }
.theme-dark { background: var(--charcoal); color: #fff; }
.theme-dark h1, .theme-dark h2, .theme-dark h3, .theme-dark h4, .theme-dark strong { color: #fff; }
.theme-dark p, .theme-dark li, .theme-dark .rich ul:not(.checks), .theme-dark .lead { color: rgba(255,255,255,.72); }
.theme-dark a { color: #fff; }
.theme-dark a:hover { color: var(--green); }
.theme-dark .eyebrow { color: #fff; }
.theme-dark .hl { color: var(--green); }
.theme-dark .btn-outline { color: #fff; }
.theme-dark .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.theme-dark .btn-white, .theme-dark .btn-white:hover { color: var(--ink); }
.theme-dark .btn-green, .theme-dark .btn-blue, .theme-dark .btn-green:hover, .theme-dark .btn-blue:hover { color: #fff; }
.theme-dark .btn-dark, .theme-dark .btn-navy { background: #fff; color: var(--ink); }
.theme-dark .btn-dark:hover, .theme-dark .btn-navy:hover { background: var(--light); color: var(--ink); }
.theme-dark .textlink { color: var(--green); }
.theme-dark .textlink:hover { color: #fff; }
.theme-dark ul.checks { color: #fff; }
.theme-dark blockquote { background: var(--charcoal-2); color: #fff; }
.theme-dark ol.steps li::before { color: var(--green); }
.theme-dark .rich td, .theme-dark .rich th { border-color: var(--line-dark); }
.theme-dark .rich th { background: var(--charcoal-2); }
.same-as-prev { padding-top: 0; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: rgba(255,255,255,.65); font-size: 12px; font-weight: 500; }
.topbar .pagewidth { display: flex; justify-content: center; align-items: center; gap: 0; min-height: 38px; }
.topbar .left:not(:empty) { padding-right: 14px; margin-right: 14px; border-right: 1px solid var(--line-dark); } /* the rating badge, when there is one, sits left of the contact details */
.topbar a { color: rgba(255,255,255,.75); }
.topbar a:hover { color: #fff; }
.topbar .left, .topbar .right { display: flex; align-items: center; gap: 0; }
.topbar .right > * { display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border-left: 1px solid var(--line-dark); }
.topbar .right > :first-child { border-left: 0; padding-left: 0; }
.topbar .right > :last-child { padding-right: 0; }
.topbar .right svg { color: var(--green); width: 13px; height: 13px; }
.topbar b { color: #fff; font-weight: 600; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); vertical-align: middle; margin: -2px 2px 0 0; flex: none; box-shadow: 0 0 0 3px rgba(43,196,43,.22); } /* "open" dot before Døgnvagt */
/* Google rating badge (values from Opsætning) */
.rating { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.rating .stars { display: flex; gap: 2px; color: var(--green); }
.rating .stars svg { width: 12px; height: 12px; }
.rating b { color: #fff; }
.rating.big { gap: 14px; }
.rating.big .num { font-family: var(--font-head); font-size: 40px; font-weight: 700; line-height: .9; color: var(--accent-text); }
.rating.big .stars svg { width: 16px; height: 16px; }
.rating.big .stars { color: var(--accent); margin-bottom: 0; }
.rating.big > span:not(.num) { display: flex; flex-direction: column; justify-content: center; gap: 4px; line-height: 1.2; }
.rating.big .meta { font-size: 13px; color: var(--muted); }
.rating.big b { color: var(--ink); }

/* ---------- Header (sticky, white) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s ease; }
.site-header.scrolled { box-shadow: 0 8px 30px -12px rgba(12,17,23,.18); }
.site-header .pagewidth { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand { display: flex; align-items: center; color: var(--ink); min-width: 0; flex: none; }
.brand:hover { color: var(--ink); }
.brand svg, .brand img { display: block; height: 46px; width: auto; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; font-size: 14px; font-weight: 500; }
.main-nav li { position: relative; }
.main-nav li > a { display: flex; align-items: center; gap: 5px; color: var(--ink); padding: 8px 14px; }
.main-nav li > a:hover, .main-nav li:hover > a { color: var(--accent-text); }
.main-nav li > a.active { color: var(--accent-text); }
.main-nav li > a svg { transition: transform .2s ease; width: 12px; height: 12px; }
.main-nav li:hover > a svg, .main-nav li:focus-within > a svg { transform: rotate(180deg); }
/* Mega menu: the services as a card panel (icon + title + one-liner) */
.main-nav .dropdown { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); z-index: 60; width: 660px; padding: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -20px rgba(12,17,23,.3); }
.main-nav .dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* keeps hover alive across the gap */
.main-nav li:hover > .dropdown, .main-nav li:focus-within > .dropdown, .main-nav li.open > .dropdown { display: block; }
.main-nav .dropdown .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.main-nav .dropdown .svc { display: flex; align-items: flex-start; gap: 12px; padding: 12px; color: var(--ink); }
.main-nav .dropdown .svc:hover, .main-nav .dropdown .svc.active { background: var(--light); color: var(--ink); }
.main-nav .dropdown .svc .ico { width: 36px; height: 36px; background: var(--light); display: flex; align-items: center; justify-content: center; flex: none; color: var(--accent-text); transition: background .2s ease; }
.main-nav .dropdown .svc:hover .ico { background: #fff; }
.main-nav .dropdown .svc .ico svg { width: 18px; height: 18px; }
.main-nav .dropdown .svc b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.main-nav .dropdown .svc span { display: block; font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.main-nav .dropdown .all { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 0; padding: 14px 12px 4px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); }
.main-nav .dropdown .all:hover { color: var(--accent-text); }
.main-nav .dropdown .all svg { width: 14px; height: 14px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; padding: 0; }
.menu-toggle .icon-close { display: none; }
body.menu-open .menu-toggle .icon-menu { display: none; }
body.menu-open .menu-toggle .icon-close { display: block; }

/* Mobile menu */
.mobile-nav { display: none; flex-direction: column; padding: 8px 20px 20px; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav a.active { color: var(--accent-text); }
.mobile-nav .sub { display: flex; flex-direction: column; padding-left: 16px; }
.mobile-nav .sub a { font-size: 15px; font-weight: 400; padding: 11px 0; justify-content: flex-start; gap: 10px; }
.mobile-nav .sub a::before { content: ""; width: 5px; height: 5px; background: var(--accent); flex: none; }
.mobile-nav .phone { font-weight: 600; border-bottom: 0; gap: 10px; justify-content: flex-start; }
.mobile-nav .phone svg { color: var(--accent-text); }
body.menu-open .mobile-nav { display: flex; }

/* ---------- Hero: full-bleed photo slideshow (or video) under a dark shade, text left ---------- */
.type-hero { position: relative; overflow: hidden; background: var(--charcoal); color: #fff; min-height: clamp(480px, 50vh, 1000px); display: flex; align-items: center; } /* about half a screen, never below 480 or above 1000 px */
.hero-media { position: absolute; inset: 0; }
.hero-media .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-media .slide.active { opacity: 1; }
.hero-media .slide img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media .slide.active img { animation: kenburns 9s ease-out forwards; }
.hero-media .slide.leaving img { animation: kenburns 9s ease-out forwards; animation-play-state: paused; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero-media .shade { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(0,0,0,.9) 0%, rgba(23,28,35,.78) 45%, rgba(23,28,35,.35) 100%); }
.hero-media .shade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(to top, rgba(12,17,23,.55), transparent); }
.hero-content { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 64px; width: 100%; }
.hero-content .inner { max-width: 660px; display: flex; flex-direction: column; align-items: flex-start; }
.hero-content .eyebrow { color: #fff; margin-bottom: 22px; }
.hero-content h1 { color: #fff; font-size: 56px; line-height: 1.08; margin: 0 0 20px; }
.hero-content h1 .hl { color: var(--green); }
.hero-content .rich p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.75); max-width: 520px; }
.hero-content .rich { margin-bottom: 30px; }
.hero-content .actions { gap: 8px; }
.hero-content .btn-outline { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.hero-content .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
/* Optional quote card (the first design's owner quote), bottom right */
.hero-quote { position: absolute; right: 32px; bottom: 32px; z-index: 3; width: 380px; background: #fff; color: var(--ink); padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; border-left: 3px solid var(--accent); }
.hero-quote blockquote { margin: 0; padding: 0; border: 0; background: none; font-size: 16px; line-height: 1.45; }
.hero-quote .who { display: flex; align-items: center; gap: 12px; }
.hero-quote .who img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.hero-quote .who > div { display: flex; flex-direction: column; line-height: 1.25; }
.hero-quote .who b { font-size: 13px; }
.hero-quote .who span { font-size: 12px; color: var(--subtle); }
.hero-lines { position: absolute; right: 0; bottom: 0; z-index: 1; pointer-events: none; opacity: .6; }

/* ---------- Page head (subpages without a hero element): charcoal band, optional photo behind ---------- */
.page-head { position: relative; overflow: hidden; background: var(--charcoal); color: #fff; padding: 72px 0 64px; }
.page-head.has-image { padding: 120px 0 64px; min-height: clamp(320px, 33vh, 640px); display: flex; flex-direction: column; justify-content: flex-end; } /* service/case pages: a taller photo head with the text at the bottom */
.page-head .bg { position: absolute; inset: 0; }
.page-head .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.page-head .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(0,0,0,.85) 0%, rgba(23,28,35,.6) 55%, rgba(23,28,35,.3) 100%); }
.page-head .pagewidth { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.page-head .eyebrow { color: #fff; margin: 0; }
.page-head .eyebrow a { color: #fff; }
.page-head .eyebrow a:hover { color: var(--green); }
.page-head h1 { margin: 0; color: #fff; font-size: 46px; max-width: 900px; }
.page-head .lead { margin: 0; max-width: 640px; color: rgba(255,255,255,.72); }
.page-head .actions { margin-top: 10px; }
.page-head .btn-outline { color: #fff; border-color: rgba(255,255,255,.35); }
.page-head .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.page-head + .section { padding-top: 72px; }
.page-head + .section.type-std { padding-top: 72px; }

/* ---------- Nøgletal: the row of selling points (icon box + heading + line) ---------- */
.type-stats.section { padding-top: 48px; padding-bottom: 48px; }
.type-stats.theme-dark.section { padding-top: 56px; padding-bottom: 56px; } /* the dark "fordele" bar between hero and services */
.stats-grid { display: grid; grid-template-columns: repeat(var(--numstats, 4), minmax(0, 1fr)); gap: 32px 40px; }
.stat { display: flex; flex-direction: column; gap: 14px; color: inherit; }
.stat .ico { width: 42px; height: 42px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--accent-text); }
.stat .ico svg { width: 20px; height: 20px; }
.stat > span:not(.ico) { display: flex; flex-direction: column; gap: 5px; }
.theme-white .stat .ico { background: var(--light); border-color: var(--light); }
.stat .num { font-family: var(--font-head); font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.stat .label { font-size: 13px; color: var(--muted); line-height: 1.55; }
.theme-dark .stat .ico { background: var(--charcoal-2); border-color: var(--line-dark); color: var(--green); }
.theme-dark .stat .num { color: #fff; }
.theme-dark .stat .label { color: rgba(255,255,255,.65); }

/* ---------- Standard: columns of text / image / background / mosaic ---------- */
.columns { display: grid; grid-template-columns: repeat(var(--numcols, 1), minmax(0, 1fr)); gap: 48px 72px; align-items: start; }
.columns.align-middle, .columns.has-media { align-items: center; }
.columns.align-bottom { align-items: end; }
.columns[data-numcols="1"] > .column.content { max-width: 800px; }
.columns .column { min-width: 0; }
.columns .column.content h1 + p, .columns .column.content h2 + p { margin-top: 0; }
.columns .column.content .lead { max-width: 520px; }
.columns .column.content ul.checks { margin: 4px 0 1.6em; }
.columns .column.image { margin: 0; position: relative; }
.columns .column.image img { width: 100%; height: auto; max-height: 640px; object-fit: cover; }
.columns .column.background { align-self: stretch; min-height: 360px; background-size: cover; background-position: center; }
.mosaic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 6px; height: 540px; min-width: 0; }
.mosaic figure { margin: 0; min-width: 0; min-height: 0; }
.mosaic figure:first-child { grid-row: span 2; }
.mosaic[data-count="1"] figure:first-child, .mosaic[data-count="2"] figure { grid-row: span 2; }
.mosaic[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Ydelser: the services as photo cards with the text on top (3 per row) ---------- */
.services { display: flex; flex-direction: column; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.svc-card { position: relative; display: block; overflow: hidden; background: var(--charcoal-2); color: #fff; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.svc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .5s ease, transform .6s ease; }
.svc-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.05) 100%); z-index: 1; }
.svc-card:hover { color: #fff; }
.svc-card:hover img { opacity: .6; transform: scale(1.05); }
.svc-card .body { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; }
.svc-card .ico { width: 38px; height: 38px; background: rgba(43,196,43,.16); border: 1px solid rgba(43,196,43,.4); display: flex; align-items: center; justify-content: center; color: var(--green); margin-bottom: 14px; }
.svc-card .ico svg { width: 18px; height: 18px; }
.svc-card .title { font-family: var(--font-head); font-size: 19px; font-weight: 600; line-height: 1.25; margin-bottom: 8px; }
.svc-card .short { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.svc-card .more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--green); }
.svc-card .more svg { width: 13px; height: 13px; transition: transform .2s ease; }
.svc-card:hover .more svg { transform: translateX(3px); }
.svc-card.all-card { background: var(--charcoal); }
.svc-card.all-card .body { justify-content: center; align-items: center; text-align: center; }
.svc-card.all-card .big { width: 56px; height: 56px; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--green); transition: background .2s ease; }
.svc-card.all-card:hover .big { background: var(--accent); color: #fff; border-color: var(--accent); }
.svc-card.all-card .big svg { width: 24px; height: 24px; }
.svc-card.all-card .title { margin-bottom: 4px; }
.svc-card.all-card .short { margin-bottom: 0; }
/* The extra services as square outline chips under the cards */
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 4px; }
.chip { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); background: #fff; padding: 18px 22px; font-size: 15px; font-weight: 500; color: var(--ink); transition: border-color .2s ease, background .2s ease; }
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip svg { color: var(--accent-text); width: 14px; height: 14px; }
.theme-light .chip { border-color: var(--light-2); }
.theme-dark .chip { background: var(--charcoal-2); border-color: var(--line-dark); color: #fff; }
.theme-dark .chip:hover { border-color: #fff; color: #fff; }
.theme-dark .chip svg { color: var(--green); }

/* ---------- Cases: photo card with category, title and line ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case-card { display: flex; flex-direction: column; background: #fff; color: var(--ink); border: 1px solid var(--line); height: 100%; }
.theme-light .case-card { border-color: transparent; }
.theme-dark .case-card { background: var(--charcoal-2); color: #fff; border-color: var(--line-dark); }
.case-card .thumb { overflow: hidden; aspect-ratio: 16 / 10; background: var(--light-2); }
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.case-card:hover .thumb img { transform: scale(1.05); }
.case-card .body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.case-card .cat { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.case-card .cat::before { content: ""; width: 5px; height: 5px; background: var(--accent); }
.case-card .title { font-family: var(--font-head); font-size: 18px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; transition: color .2s ease; }
.case-card:hover .title { color: var(--accent-text); }
.theme-dark .case-card:hover .title { color: var(--green); }
.case-card .short { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; flex: 1; }
.theme-dark .case-card .short, .theme-dark .case-card .cat { color: rgba(255,255,255,.65); }
.case-card .more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-text); margin-top: 16px; }
.theme-dark .case-card .more { color: var(--green); }
.case-card .more svg { width: 13px; height: 13px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: rgba(255,255,255,.72); }
.case-meta b { color: #fff; font-weight: 600; }

/* ---------- Anmeldelser ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.review { background: #fff; border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.theme-light .review { border-color: transparent; }
.review .stars { display: flex; gap: 3px; color: var(--accent); }
.review .stars svg { width: 14px; height: 14px; }
.review blockquote { margin: 0; padding: 0; border: 0; background: none; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--ink); flex: 1; }
.review blockquote p { margin: 0; color: inherit; }
.review cite { font-style: normal; font-size: 13px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.review cite::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
.business { grid-column: 1 / -1; background: var(--charcoal); color: #fff; padding: 32px 36px; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
.business > div { display: flex; flex-direction: column; gap: 6px; }
.business .title { font-family: var(--font-head); font-size: 20px; font-weight: 600; line-height: 1.35; }
.business .text { font-size: 14px; color: rgba(255,255,255,.65); }
.business .btn { white-space: nowrap; }
.theme-dark .review { background: var(--charcoal-2); border-color: var(--line-dark); }
.theme-dark .review blockquote { color: #fff; }
.theme-dark .review cite { color: rgba(255,255,255,.65); }
.theme-dark .review .stars { color: var(--green); }
.theme-dark .business { background: #fff; color: var(--ink); }
.theme-dark .business .text { color: var(--muted); }
.theme-dark .business .title { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 64px; align-items: start; }
.faq.no-intro { grid-template-columns: minmax(0, 1fr); }
.faq-intro { display: flex; flex-direction: column; }
.faq-intro h2 { margin: 0 0 16px; }
.faq-intro .actions { margin-top: 20px; }
.questions { display: flex; flex-direction: column; gap: 6px; }
.question { background: #fff; border: 1px solid var(--line); }
.theme-light .question { border-color: transparent; }
.theme-dark .question { background: var(--charcoal-2); border-color: var(--line-dark); }
.question summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; }
.question summary::-webkit-details-marker { display: none; }
.question summary h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.question summary svg { flex: none; color: var(--accent-text); transition: transform .2s ease; width: 16px; height: 16px; }
.theme-dark .question summary svg { color: var(--green); }
.question[open] summary svg { transform: rotate(180deg); }
.question .answer { padding: 0 24px 22px; }
.question .answer p, .question .answer li { font-size: 15px; }

/* ---------- CTA band ---------- */
.type-cta.section { padding-top: 56px; padding-bottom: 56px; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta .text { display: flex; flex-direction: column; gap: 6px; max-width: 680px; }
.cta h2 { margin: 0; font-size: 28px; }
.cta .rich p { font-size: 15px; margin: 0; }
.cta .actions { flex: none; }
.type-cta.theme-dark + .site-footer, .type-contact + .site-footer { border-top: 1px solid var(--line-dark); }

/* ---------- Kontakt: the charcoal section with phone/e-mail/address and the quote form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 80px; align-items: center; }
.contact-grid.no-form { grid-template-columns: minmax(0, 1fr); }
.contact-text { display: flex; flex-direction: column; gap: 28px; }
.contact-text h2 { margin: 0; font-size: 42px; }
.contact-text .rich { max-width: 480px; }
.contact-text .rich p { font-size: 17px; line-height: 1.6; }
.contact-rows { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.contact-rows > div { display: flex; gap: 16px; align-items: baseline; }
.contact-rows .k { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .55; width: 90px; flex: none; }
.contact-rows .big { font-family: var(--font-head); font-size: 30px; font-weight: 600; }
.contact-rows .v { font-size: 16px; }

.form-card { position: relative; background: #fff; color: var(--ink); padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.form-card form { display: flex; flex-direction: column; gap: 12px; }
.form-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-card .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-card .field.error input, .form-card .field.error textarea { border-color: #d33; }
.form-card .field .msg { display: none; font-size: 13px; color: #c22; }
.form-card .field.error .msg { display: block; }
.form-card .btn { margin-top: 6px; width: 100%; justify-content: space-between; font-size: 15px; }
.form-card .btn[disabled] { opacity: .6; cursor: progress; }
.form-card .note { font-size: 12px; color: var(--subtle); text-align: center; }
.form-card a { color: var(--accent-text); }
.form-card .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-card .status { display: none; padding: 14px 16px; font-size: 15px; font-weight: 600; }
.form-card .status.ok { display: block; background: #e8f7e8; color: #176b17; }
.form-card .status.fail { display: block; background: #fdecec; color: #b42323; }
.form-card.sent form { display: none; }
.form-card.sent .status.ok { font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 72px 0 32px; font-size: 14px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--green); }
.site-footer .pagewidth { display: flex; flex-direction: column; gap: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 48px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.footer-grid .brand { color: #fff; display: block; width: 100%; max-width: 300px; margin-bottom: 12px; }
.footer-grid .brand svg { width: 100%; height: auto; }
.footer-grid .blurb { margin: 0; font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.55); max-width: 320px; }
.footer-grid .title { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 8px; }
.footer-grid .dim { color: rgba(255,255,255,.4); font-size: 13px; line-height: 1.6; }
.footer-grid .with-icon { display: inline-flex; align-items: center; gap: 8px; }
.footer-grid .with-icon svg { color: var(--green); flex: none; width: 14px; height: 14px; }
.footer-grid .nap { padding-left: 14px; border-left: 1px solid var(--accent); display: flex; flex-direction: column; gap: 6px; }
.footer-grid .nap .co { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.footer-grid .rating { margin-top: 6px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: rgba(255,255,255,.4); border-top: 1px solid var(--line-dark); padding-top: 24px; }
.footer-bottom .social { display: flex; gap: 14px; }
.footer-bottom .social a { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom .social svg { width: 14px; height: 14px; }

/* ---------- Subpages ---------- */
.page-body { padding-top: 72px; padding-bottom: 88px; }
.page-body .content { max-width: 760px; }
.page-media { padding-bottom: 56px; }
.page-media img { width: 100%; max-height: 560px; object-fit: cover; }
.related { padding-bottom: 88px; display: flex; flex-direction: column; gap: 28px; }
.related h2 { margin: 0; font-size: 28px; }
.related .chips { margin-top: 0; }
.related .cases-grid { margin-top: 0; }
.error-page { padding-top: 120px; padding-bottom: 120px; text-align: center; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.error-page h1 { margin: 0; }
.error-page .actions { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav ul { gap: 0; }
  .main-nav li > a { padding: 8px 10px; }
  .header-actions .btn-outline { display: none; }
}
@media (max-width: 1024px) {
  .topbar .right > .hide-md { display: none; }
  .main-nav, .header-actions .btn-outline { display: none; }
  .menu-toggle { display: flex; }
  .site-header .pagewidth { min-height: 72px; }
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  .hero-content h1 { font-size: 46px; }
  .page-head h1 { font-size: 40px; }
  .contact-text h2 { font-size: 36px; }
  .faq { grid-template-columns: 320px minmax(0, 1fr); gap: 40px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases-grid, .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-quote { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .pagewidth { padding-left: 20px; padding-right: 20px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
  .topbar .right > :not(:first-child) { display: none; }
  .topbar .pagewidth { min-height: 34px; }
  .topbar .left, .topbar .right > * { white-space: nowrap; }
  .brand svg, .brand img { height: 40px; }
  .header-actions .btn-green { font-size: 13px; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  .lead, p.lead { font-size: 17px; }
  .type-hero { min-height: clamp(420px, 50svh, 560px); }
  .hero-content { padding-top: 56px; padding-bottom: 56px; }
  .hero-content h1 { font-size: 36px; }
  .hero-content .rich p { font-size: 16px; }
  .hero-content .actions .btn { width: 100%; justify-content: space-between; }
  .page-head { padding: 48px 0 44px; }
  .page-head.has-image { padding: 72px 0 40px; min-height: clamp(360px, 48svh, 520px); }
  .page-head h1 { font-size: 32px; }
  .page-head + .section, .page-head + .section.type-std { padding-top: 48px; }
  .type-stats.section { padding-top: 40px; padding-bottom: 40px; }
  .stats-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .stat { flex-direction: row; align-items: flex-start; }
  .stat .ico { flex: none; }
  .columns { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .columns .column.background { min-height: 240px; }
  .mosaic { height: 320px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .svc-card { aspect-ratio: 16 / 10; }
  .chips { grid-template-columns: minmax(0, 1fr); }
  .cases-grid, .reviews-grid { grid-template-columns: minmax(0, 1fr); }
  .business { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .business .btn { white-space: normal; }
  .faq { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cta { flex-direction: column; align-items: flex-start; gap: 24px; }
  .cta .actions .btn { width: 100%; justify-content: space-between; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .contact-text h2 { font-size: 30px; }
  .contact-rows .big { font-size: 26px; }
  .form-card { padding: 24px 20px; }
  .form-card .row { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .page-body, .related { padding-top: 48px; padding-bottom: 56px; }
  .error-page { padding-top: 64px; padding-bottom: 64px; }
  ul.checks { grid-template-columns: 1fr; }
  .rich p:has(> .btn) { flex-direction: column; align-items: stretch; }
  .rich p:has(> .btn) .btn { justify-content: space-between; }
}
@media (max-width: 560px) {
  /* Tight header (390 px phones): the rating alone in the top bar, smaller logo, the phone button as an icon */
  .topbar .right { display: none; }
  .site-header .pagewidth { gap: 12px; min-height: 64px; }
  .brand svg, .brand img { height: 36px; }
  .header-actions .btn-phone { font-size: 0; padding: 0; }
  .header-actions .btn-phone::after { margin: 0; padding: 14px; width: 16px; height: 16px; border-left: 0; }
}

/* ---------- Rounding (2026-11-25, Martin): buttons 4 px (editor-style.css), the form box and all images 8 px ---------- */
:root { --radius: 8px; }
.form-card { border-radius: var(--radius); }
.form-card input, .form-card textarea, .form-card .status { border-radius: 4px; }
.columns .column.image img, .columns .column.background, .mosaic img, .page-media img, .rich img, .rich figure img { border-radius: var(--radius); }
.svc-card, .case-card, .case-card .thumb, .review, .question, .business, .chip, .hero-quote { border-radius: var(--radius); }
.case-card .thumb { border-radius: var(--radius) var(--radius) 0 0; }
.svc-card img { border-radius: var(--radius); }
.stat .ico, .svc-card .ico, .main-nav .dropdown .svc .ico, .svc-card.all-card .big { border-radius: 6px; }
.main-nav .dropdown { border-radius: var(--radius); }

/* ---------- "Fordele" as an overlay on the hero: a dark stats element right after the hero sits on the hero's bottom edge,
   and the photo fades into its colour (the overlap is --fordele-overlap) ---------- */
:root { --fordele-overlap: 230px; } /* the whole row sits inside the hero, so the photo shows through it */
.type-hero:has(+ .type-stats.theme-dark) .hero-content { padding-bottom: calc(64px + var(--fordele-overlap)); }
.type-hero:has(+ .type-stats.theme-dark) .hero-media .shade::after { height: calc(var(--fordele-overlap) + 200px); background: linear-gradient(to top, rgba(23,28,35,.78) 0, rgba(23,28,35,.62) var(--fordele-overlap), transparent 100%); }
/* The band itself is transparent for the part that sits inside the hero and charcoal below it, so content that grows
   taller than the overlap (two columns, long texts, a fifth point) continues on dark instead of white-on-white. */
.type-stats.theme-dark.after-hero { position: relative; z-index: 3; background: linear-gradient(to bottom, transparent var(--fordele-overlap), var(--charcoal) var(--fordele-overlap)); margin-top: calc(-1 * var(--fordele-overlap)); padding-top: 0; padding-bottom: 48px; }
.type-stats.theme-dark.after-hero .stat .ico { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); backdrop-filter: blur(4px); }
@media (max-width: 1024px) {
  :root { --fordele-overlap: 330px; } /* two columns, two rows */
}
@media (max-width: 760px) {
  :root { --fordele-overlap: 360px; } /* the four rows stacked */
  .type-hero:has(+ .type-stats.theme-dark) .hero-content { padding-bottom: calc(32px + var(--fordele-overlap)); }
  .type-stats.theme-dark.after-hero { padding-bottom: 32px; }
}
