/*
Theme Name: Solpaneler.eu Local
Author: Mahope
Version: 0.3.5
*/

:root {
  --ink: #172024;
  --muted: #5b6669;
  --paper: #f7f6f0;
  --panel: #ffffff;
  --line: #dfe2dc;
  --green: #1f6b52;
  --green-dark: #123d30;
  --sun: #f3b63b;
  --blue: #244b72;
  --clay: #b85f3a;
  --shadow: 0 18px 45px rgba(23, 32, 36, 0.12);
  /* Spacing-tokens: brug disse i stedet for loese px-vaerdier, saa afstande
     kan justeres eet sted. rum-1..4 = 8/14/18/24 px. */
  --rum-1: 8px;
  --rum-2: 14px;
  --rum-3: 18px;
  --rum-4: 24px;
  --sektion-lodret: clamp(36px, 5vw, 64px);
  --sektion-vandret: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
p { color: var(--muted); }
h1, h2, h3 { letter-spacing: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 246, 240, 0.94);
  border-bottom: 1px solid rgba(23, 32, 36, 0.08);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 900; text-decoration: none; }
.brand img { width: 150px; max-height: 46px; object-fit: contain; }
.brand-mark {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, transparent 42%, rgba(255,255,255,.45) 42% 58%, transparent 58%), var(--sun);
  border: 3px solid var(--green);
  transform: rotate(45deg);
}
.main-nav ul { display: flex; flex-wrap: wrap; gap: clamp(10px, 1.6vw, 22px); justify-content: center; margin: 0; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.main-nav a, .footer-links a { text-decoration: none; }
.clean-link { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.main-nav a:hover, .footer-links a:hover, .clean-link:hover { color: var(--green); }
.menu-toggle {
  display: none;
  position: relative;
  z-index: 40;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(31, 107, 82, 0.22);
  background: #ffffff;
  color: var(--green-dark);
  box-shadow: 0 8px 22px rgba(23, 32, 36, .10);
}
.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 28;
  background: rgba(16, 25, 23, .42);
  backdrop-filter: blur(2px);
}
.nav-open { overflow: hidden; }
.nav-open .menu-toggle {
  border-color: rgba(18, 61, 48, .22);
  background: var(--green-dark);
  color: #fff;
}
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.header-cta, .button, .wp-block-button__link, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.54);
  color: #fff;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(620px, 72svh);
  padding: clamp(94px, 12vw, 150px) clamp(20px, 5vw, 72px) clamp(36px, 7vw, 72px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 24, 20, .90) 0%, rgba(10, 24, 20, .64) 46%, rgba(10, 24, 20, .18) 100%),
    url("assets/img/hero-solar-roof-1600.webp") center / cover;
}
.hero-content { width: min(940px, 100%); }
.eyebrow { margin: 0 0 12px; color: var(--sun); font-size: .78rem; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(2.4rem, 5.2vw, 4.6rem); line-height: .98; }
.hero-copy { width: min(640px, 100%); margin: 18px 0 0; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; width: min(900px, 100%); margin: 42px 0 0; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.22); }
.hero-stats div { min-width: 0; padding: 18px; background: rgba(8, 22, 18, .58); }
.hero-stats strong { display: block; font-weight: 900; }
.hero-stats span { display: block; margin-top: 4px; color: rgba(255,255,255,.78); }

.trust-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--panel); }
.trust-item { min-width: 0; padding: 22px clamp(18px, 3vw, 42px); border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; color: var(--green-dark); }
.trust-item span { display: block; margin-top: 3px; color: var(--muted); }

.section, .contact, .page-main { padding: var(--sektion-lodret) var(--sektion-vandret); }
.section-heading, .section-copy { width: min(800px, 100%); margin-bottom: 32px; }
h2 { margin: 0; font-size: clamp(1.6rem, 2.8vw, 2.6rem); line-height: 1.08; }
h3 { margin: 0 0 10px; font-size: 1.16rem; line-height: 1.18; }

.card-grid, .package-grid, .case-grid, .article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--rum-3); }
.card, .package, .case, .article-card, .contact-form, .wp-block-group.is-style-panel {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23,32,36,.06);
}
.card, .case, .article-card { padding: var(--rum-4); }
.wp-block-group.is-style-panel { padding: clamp(18px, 3vw, 28px); margin-top: 1.2em; }
.wp-block-group.is-style-panel > :first-child { margin-top: 0; }
.wp-block-group.is-style-panel > :last-child { margin-bottom: 0; }
.page-main .wp-block-group:not(.is-style-panel):not(.card) > h2:first-child { margin-top: 1.2em; }
.package { overflow: hidden; }
.package.featured { grid-column: auto; display: block; border: 2px solid var(--sun); }
.package.featured img { height: auto; aspect-ratio: 4 / 3; }
.package img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eef0eb; }
.package .package-body { padding: 22px; }
.package-kicker { margin: 0 0 8px; color: var(--clay); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.featured { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .86fr); }
.featured img { height: 100%; aspect-ratio: auto; }

.compare { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.compare table { width: 100%; border-collapse: collapse; min-width: 760px; }
.compare th, .compare td { padding: 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { color: var(--green-dark); font-size: .9rem; }
.compare tr:last-child td { border-bottom: 0; }

.calculator { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, .72fr); gap: 28px; align-items: start; padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 64px); background: var(--green-dark); color: #fff; }
.calculator p { color: rgba(255,255,255,.78); }
.calc-panel { display: grid; gap: 16px; padding: var(--rum-4); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; }
.calc-panel input[type="range"] { width: 100%; accent-color: var(--sun); }
.calc-result { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px; background: rgba(255,255,255,.12); border-radius: 6px; }

.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--rum-3); }
.quote { margin: 0; padding: var(--rum-4); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 14px; align-content: start; }
.quote p { margin: 0; font-size: 1rem; line-height: 1.55; }
.quote footer { color: var(--muted); font-size: .9rem; font-weight: 700; }
.quote footer::before { content: '— '; }
@media (max-width: 920px) { .quote-grid { grid-template-columns: 1fr; } }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
.steps li { min-width: 0; padding: var(--rum-4); background: var(--panel); }
.steps span { display: inline-flex; margin-bottom: 18px; color: var(--clay); font-weight: 900; }

.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(320px, .72fr); gap: 34px; background: #eceee6; }
.contact-form { display: grid; gap: var(--rum-2); padding: var(--rum-4); }
.contact-form label { display: grid; gap: 7px; color: var(--green-dark); font-size: .92rem; font-weight: 800; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cad0c5;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.faq-list { display: grid; gap: 10px; width: min(940px, 100%); }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
summary { cursor: pointer; font-weight: 850; color: var(--green-dark); }

/* Sidehovedets indhold flugter med .page-main (1180 px centreret + samme padding). */
.page-hero { padding: clamp(40px, 6vw, 72px) max(clamp(20px, 5vw, 64px), calc((100% - 1180px) / 2 + clamp(20px, 5vw, 64px))) 32px; background: var(--green-dark); color: #fff; }
.page-hero h1 { margin: 0; max-width: 900px; font-size: clamp(1.9rem, 4vw, 3.4rem); line-height: 1.02; }
.page-hero p { width: min(700px, 100%); color: rgba(255,255,255,.78); font-size: 1.02rem; }
.page-main { max-width: 1180px; margin: 0 auto; }
.page-main > *:first-child { margin-top: 0; }
.page-main .wp-block-columns { gap: 22px; }
.page-main .wp-block-column { min-width: 0; }
.page-main .wp-block-image img { border-radius: 8px; }
/* Loebende tekst i page-main holdes paa laesbar linjelaengde; sektioner/kort er undtaget. */
.page-main > p, .page-main > ul, .page-main > ol, .page-main > h2, .page-main > h3, .page-main > .wp-block-details, .page-main > figure.wp-block-image { max-width: 820px; }
.page-main > .wp-block-buttons { margin-bottom: 2.2em; }
/* Sidehoved-modulet oeverst paa en side gaar til kanten (som temaets eget sidehoved) og flugter med containeren. */
.page-main > .sp-sidehoved { width: 100vw; margin-left: calc(50% - 50vw); margin-top: calc(-1 * clamp(36px, 5vw, 64px)); margin-bottom: clamp(28px, 4vw, 48px); border-radius: 0; padding-left: max(clamp(20px, 5vw, 64px), calc((100vw - 1180px) / 2 + clamp(20px, 5vw, 64px))); padding-right: max(clamp(20px, 5vw, 64px), calc((100vw - 1180px) / 2 + clamp(20px, 5vw, 64px))); }
/* Sektioner inde i en side faar ikke ekstra sidepadding - page-main har allerede. */
.page-main > .section, .page-main > .wp-block-group.section, .page-main > .contact { padding-left: 0; padding-right: 0; }
.page-main .has-large-font-size, .page-main .has-indledning-font-size { font-size: clamp(1.1rem, 1rem + .7vw, 1.35rem); line-height: 1.5; }
.page-main .wp-block-image.aligncenter { text-align: center; }
/* Fritlagte produktbilleder fylder ellers 1000 px i hoejden paa desktop. */
.page-main > .wp-block-image img { max-height: min(70vh, 640px); width: auto; max-width: 100%; display: block; }
.page-main .wp-block-image.aligncenter img { margin-inline: auto; }
.page-main .faq-list > details, .page-main .faq-list .wp-block-details { width: 100%; max-width: none; margin-inline: 0; }
.page-main .is-layout-constrained > .section-heading, .page-main .is-layout-constrained > .section-copy { margin-inline: 0; }
.page-hero h1 { overflow-wrap: anywhere; }
.header-cta .kort { display: none; }
.page-main .search-form, .page-hero .search-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-top: 18px; }
.page-main .search-form label { display: grid; gap: 6px; font-weight: 700; }
.page-main .search-form input, .page-hero .search-form input { min-width: 240px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.page-hero .search-form label { display: grid; gap: 6px; color: rgba(255,255,255,.85); font-weight: 700; }
.page-hero .search-form input { min-width: 260px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.article-card h2 { font-size: 1.25rem; line-height: 1.25; }
.article-card time { display: block; margin-bottom: 8px; color: var(--clay); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.single-pakke .page-main h2, .single-post .page-main h2 { margin: 32px 0 12px; font-size: 1.5rem; }
.single-post .page-main > * { max-width: 820px; }
.single-post .post-meta { color: var(--muted); font-size: .92rem; margin: 0 0 24px; }
.single-post .wp-post-image { width: 100%; max-width: 820px; height: auto; border-radius: 8px; margin: 0 0 24px; }
.page-main > h2, .page-main > h3 { margin-top: 1.6em; }
.page-main > .wp-block-group.is-style-panel, .page-main > .wp-block-group.card { margin-bottom: 2em; }
.page-main .contact, .page-main > .sp-cta-stribe { margin-top: clamp(40px, 6vw, 72px); }
/* Produktbilleder i kolonner: samme format og hvid baggrund, saa fritlagte og indrammede billeder staar ens. */
.page-main .wp-block-column > .wp-block-image img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 16px; background: var(--panel); border: 1px solid var(--line); box-sizing: border-box; }
.page-main .wp-block-column > .wp-block-image { margin-bottom: 16px; }

.site-footer { padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 64px) 0; background: var(--green-dark); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); max-width: 1180px; margin: 0 auto; }
.site-footer p, .site-footer li { color: rgba(255,255,255,.72); }
.footer-logo { padding: 6px 10px; background: var(--paper); border-radius: 8px; }
.footer-tagline { margin: 14px 0 0; max-width: 320px; }
.footer-kontakt { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.footer-overskrift { margin: 0 0 14px; color: var(--sun); font-size: .78rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }
.footer-kolonne ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
/* SoMe-ikoner under kontaktinfo i footeren; links styres fra kontrolpanelet. */
.footer-some { list-style: none; display: flex; gap: 14px; margin: 18px 0 0; padding: 0; }
.footer-some a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px; color: rgba(255, 255, 255, .85); }
.footer-some a:hover { color: var(--sun); border-color: var(--sun); text-decoration: none; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bund { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; max-width: 1180px; margin: clamp(28px, 4vw, 44px) auto 0; padding: 18px 0 26px; border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; }
.footer-bund p { margin: 0; }
.footer-bund .footer-cta { color: var(--sun); font-weight: 700; }

/* 9 menupunkter (inkl. Theas AI-styring) skal staa paa EN linje paa almindelige
   laptops (1280/1366 px): lidt taettere gap/font og mindre sidepadding i headeren.
   Store skaerme (>=1440) og mobilmenuen beholder deres egne maal. */
@media (min-width: 921px) and (max-width: 1439px) {
  .main-nav ul { gap: 12px; font-size: .86rem; }
  .site-header { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    min-height: 66px;
    padding: 10px clamp(14px, 4vw, 24px);
  }
  .brand { min-width: 0; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 32;
    width: min(86vw, 360px);
    padding: 86px 24px 28px;
    background: #ffffff;
    border-left: 1px solid rgba(31, 107, 82, .18);
    box-shadow: -24px 0 56px rgba(16, 25, 23, .24);
    transform: translateX(105%);
    transition: transform .2s ease;
  }
  .main-nav::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 66px;
    background: var(--green-dark);
    border-bottom: 4px solid var(--sun);
  }
  .main-nav:not(.is-open) { visibility: hidden; }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .main-nav ul {
    position: relative;
    display: grid;
    gap: 2px;
    justify-content: stretch;
    overflow: visible;
    padding-bottom: 0;
    font-size: 1.05rem;
  }
  .main-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-weight: 850;
  }
  /* backdrop-filter paa headeren goer den til containing block for den fixed
     mobilmenu, saa top:0/bottom:0 maales mod headeren (114px) i stedet for
     viewporten. Menupunkterne loeb ud under panelet og laa paa heroen uden
     baggrund. Uden filter er panelet fuld hoejde igen. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(247, 246, 240, .98); }
  .main-nav { height: 100dvh; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta {
    justify-self: end;
    min-width: 104px;
  }
  .trust-band, .card-grid, .package-grid, .case-grid, .article-grid, .steps, .calculator, .contact { grid-template-columns: 1fr; }
  .featured { grid-column: auto; grid-template-columns: 1fr; }
  /* Mobil: heroen skal kunne overskues paa en skaerm - de tre bokse skjules, trust-baandet bliver 2x2.
     :has()-varianten er noedvendig: blok-heroens "display:block"-regel laengere nede har ellers
     hoejere specificitet (":has(.wp-block-columns)" taeller med) og viste boksene igen paa mobil. */
  .hero .hero-stats, .hero .hero-content .hero-stats,
  .hero .hero-content .hero-stats:has(.wp-block-columns) { display: none; }
  .trust-band { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 14px 16px; }
  .hero-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .firma { grid-column: 1 / -1; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { background-image: linear-gradient(180deg, rgba(10,24,20,.72), rgba(10,24,20,.45)), url("assets/img/hero-solar-roof-800.webp"); background-position: center; background-size: cover; }
  .page-main .wp-block-column > .wp-block-image img { aspect-ratio: 4 / 3; }
  .brand img { width: 126px; }
  .header-cta { padding: 0 12px; min-height: 40px; font-size: .85rem; white-space: nowrap; }
  .header-cta .lang { display: none; }
  .header-cta .kort { display: inline; }
  .page-hero h1 { hyphens: auto; }
  .site-header { grid-template-columns: minmax(0, 1fr) auto auto; }
  .hero { min-height: 600px; }
  .hero h1 { font-size: 2.3rem; }
}


/* =========================================================================
 * 0.2.0 – konvertering: telefon, mobilbjælke, formular-tilstande
 * ====================================================================== */

/* Telefon i headeren: synlig på desktop, kan ringes op med ét tryk */
.tel-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--green-dark);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.tel-link:hover { background: rgba(31, 107, 82, .08); }
.site-header { grid-template-columns: auto 1fr auto auto; }

/* Ring-knap i heroen */
.button.ring { background: var(--sun); color: var(--ink); }

/* Kontaktboksens direkte nummer */
.contact-direct { margin-top: 18px; color: var(--muted); }
.contact-direct a { color: var(--green-dark); font-weight: 850; text-decoration: none; }

/* Beregneren peger nu videre til formularen */
.calc-panel .button { justify-self: start; }

/* Formular: tilbagemelding efter afsendelse */
.form-notice {
  padding: 16px 18px;
  border-radius: 8px;
  border: 1px solid;
  margin-bottom: 14px;
}
.form-notice.ok   { background: #e6f2ec; border-color: #9fcdb6; color: var(--green-dark); }
.form-notice.fejl { background: #fbeae4; border-color: #e5b09a; color: #7a3a1f; }
.form-notice a { color: inherit; font-weight: 850; }
.form-fine { margin: 0; font-size: .82rem; color: var(--muted); }

/* Postnummer og ringetid deler én raekke, saa formularen foles kort */
.form-raekke { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .felt-primaer input { border-width: 2px; border-color: var(--green); font-size: 1.05rem; }
.contact-form .form-intro { margin: 0 0 4px; color: var(--muted); font-weight: 500; }
.contact-form .valgfri { font-weight: 500; color: var(--muted); }
.contact-form .afkryds { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.contact-form .afkryds input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); }

/* Honeypot: usynlig for mennesker, udfyldes kun af bots */
.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form { position: relative; }
.contact-form button:disabled { opacity: .7; cursor: wait; }

/* =========================================================================
 * Hero bygget som blokken solpaneler/hero - samme udseende som hardcodet.
 * ====================================================================== */
.wp-block-button.is-style-solpaneler-ring .wp-block-button__link {
  background: var(--sun);
  color: var(--ink);
}
.hero-content .hero-stats:has(.wp-block-columns) { display: block; }
.hero-content .hero-stats .wp-block-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: rgba(255, 255, 255, .22);
}
.hero-content .hero-stats .wp-block-column { min-width: 0; padding: 18px; background: rgba(8, 22, 18, .58); }
.hero-content .hero-stats .wp-block-column p:first-child { margin: 0; color: #fff; font-weight: 900; }
.hero-content .hero-stats .wp-block-column p:last-child { margin: 4px 0 0; color: rgba(255, 255, 255, .78); }

/* Pakker/forloeb bygget som monstre (core-blokke i samme klasser). */
.package .wp-block-image { margin: 0; }
.package-body a { text-decoration: none; }
.package-body a:hover { color: var(--green); }
.wp-block-group.steps { background: var(--line); border: 1px solid var(--line); }
.wp-block-group.steps .step { min-width: 0; padding: var(--rum-4); background: var(--panel); }
.wp-block-group.steps .step-num { display: inline-flex; margin: 0 0 18px; color: var(--clay); font-weight: 900; }

/* Projektkort: billede foerst, fakta som kicker, byen som overskrift */
.case-projekt img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 14px; border-radius: 8px; background: #eef0eb; }

/* Medarbejderkort: portraetformat, navn og rolle */
.case-medarbejder img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; margin-bottom: 14px; border-radius: 8px; background: #eef0eb; }
.case-medarbejder a { color: var(--green-dark); font-weight: 850; text-decoration: none; }

/* Kundeudtalelser (moenster) */
.citat-tekst { color: var(--ink); font-size: 1.08rem; font-weight: 600; }
.citat-navn { margin: 10px 0 0; color: var(--muted); }

/* Fast bjælke i bunden på mobil */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 26;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(247, 246, 240, .96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.mobile-cta a { white-space: nowrap; font-size: .92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
}
.mobile-cta .ring { background: #fff; border: 1px solid rgba(31, 107, 82, .28); color: var(--green-dark); }
.mobile-cta .book { background: var(--green); color: #fff; }

@media (max-width: 920px) {
  .tel-link { display: none; }
  .site-header { grid-template-columns: auto 1fr auto; }
  .mobile-cta { display: grid; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 76px; }
  .nav-open .mobile-cta { display: none; }
  .hero-content .hero-stats .wp-block-columns { grid-template-columns: 1fr; }
}
/* Kampagnesektion paa forsiden (Theas oenske 8/9): man maa ikke vaere i
   tvivl om at det er et godt tilbud - moerk boks, gul kant, priser i gult
   og een tydelig knap til kampagnesiden. Bygget af core-blokke, saa Thea
   selv kan rette tekster og priser. */
.sp-kampagne {
  max-width: 1180px;
  margin: clamp(28px, 4vw, 48px) auto;
  padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 48px);
  background: var(--green-dark);
  border: 2px solid var(--sun);
  border-radius: 10px;
  color: #fff;
  box-shadow: var(--shadow);
}
.sp-kampagne .eyebrow { color: var(--sun); }
.sp-kampagne h2 { margin: 0 0 6px; color: #fff; }
.sp-kampagne p { color: rgba(255, 255, 255, .82); }
.sp-kampagne h3 { margin: 0 0 4px; color: #fff; font-size: 1.05rem; }
.sp-kampagne .sp-kampagne-pris { margin: 0; color: var(--sun); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 900; }
.sp-kampagne .sp-kampagne-pris small { display: block; color: rgba(255,255,255,.72); font-size: .82rem; font-weight: 600; }
.sp-kampagne .wp-block-columns { gap: var(--rum-3); margin: var(--rum-3) 0; }
.sp-kampagne .wp-block-column { min-width: 0; padding: var(--rum-3); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; }
.sp-kampagne .wp-block-button__link { background: var(--sun); color: var(--ink); }
.sp-kampagne .wp-block-button__link:hover { background: #e2a832; }
@media (max-width: 920px) {
  .sp-kampagne .wp-block-columns { display: grid; grid-template-columns: 1fr; }
}

/* F2: Synlig tastatur-fokus overalt - dobbelt ring (lys adskillelse +
   moerk kant), saa den laeses paa BAADE lyse og moerke baggrunde. */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--papir, #f7f6f0), 0 0 0 5px var(--green-dark, #123d30);
  border-radius: 2px;
}

/* Tilgaengelighed: spring-link og synligt fokus (kun ved tastatur). */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--green-dark); color: #fff; border-radius: 6px; font-weight: 700; transition: top .15s; }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.article-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; margin-bottom: 14px; }
/* Print: kunden printer sider - uden header, footer, bjaelke og formular. */
@media print {
  .site-header, .site-footer, .mobile-cta, .contact, .sp-samtykke, .skip-link, .hero-actions, .wp-block-buttons { display: none !important; }
  body { background: #fff; color: #000; }
  .page-hero { background: none; color: #000; padding: 0 0 12px; }
  .page-main { padding: 0; max-width: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
