/*
Theme Name: Findelaftale
Theme URI: https://findelaftale.dk
Author: findelaftale.dk
Description: Tema til findelaftale.dk – sammenligning af elaftaler. Bruges sammen med pluginet "Findelaftale Core".
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: findelaftale
*/

@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
	--fl-ink: #0e1b2b;
	--fl-ink-2: #1b2c40;
	--fl-muted: #5b6675;
	--fl-line: #e3e1d9;
	--fl-bg: #f6f4ee;
	--fl-soft: #efece3;
	--fl-surface: #ffffff;
	--fl-brand: #0b5d4b;
	--fl-brand-soft: #e3f1ec;
	--fl-volt: #ffd84d;
	--fl-radius: 14px;
	--fl-wrap: 1200px;
	--fl-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--fl-display: "Bricolage", "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--fl-font); font-size: 17px; line-height: 1.6; color: var(--fl-ink); background: var(--fl-bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--fl-brand); text-underline-offset: .18em; }
a:hover { color: var(--fl-ink); }
h1, h2, h3, h4 { font-family: var(--fl-display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--fl-brand); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; clip: auto; width: auto; height: auto; padding: .6rem 1rem; background: var(--fl-volt); color: var(--fl-ink); z-index: 1000; border-radius: 8px; }

.wrap { width: min(100% - 2.5rem, var(--fl-wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 780px); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: 2.5rem 0; }
.section--white { background: var(--fl-surface); }
.section--ink { background: var(--fl-ink); color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; max-width: 22ch; }
.section-head p { margin: 0; color: var(--fl-muted); max-width: 46ch; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--fl-brand); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: .55em; height: .55em; background: var(--fl-volt); border: 2px solid var(--fl-ink); transform: rotate(45deg); }

/* Knapper */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.4em; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid var(--fl-ink); line-height: 1.1; cursor: pointer; font-family: inherit; transition: transform .15s, box-shadow .15s; }
.btn--volt { background: var(--fl-volt); color: var(--fl-ink); box-shadow: 3px 3px 0 var(--fl-ink); }
.btn--volt:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--fl-ink); color: var(--fl-ink); }
.btn--ghost { background: transparent; color: var(--fl-ink); }
.btn--ghost:hover { background: var(--fl-ink); color: #fff; }
.section--ink .btn--ghost, .hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.text-link { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--fl-volt); color: var(--fl-ink); }
.text-link::after { content: " →"; }

/* Header */
.site-header { background: var(--fl-ink); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header__inner { display: flex; align-items: center; gap: 2rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-family: var(--fl-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; }
.brand:hover { color: #fff; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--fl-volt); display: grid; place-items: center; }
.brand__mark svg { width: 18px; height: 18px; }
.brand__tld { color: var(--fl-volt); }
.custom-logo { max-height: 44px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav a { display: block; color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5rem .85rem; border-radius: 999px; }
.nav a:hover, .nav .current-menu-item > a, .nav .current_page_item > a { color: #fff; background: rgba(255, 255, 255, .1); }
.site-header .btn--volt { padding: .65em 1.1em; font-size: .9rem; border-color: var(--fl-volt); box-shadow: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: .5rem; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }
@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-header__cta { display: none; }
	.nav { position: absolute; left: 0; right: 0; top: 72px; background: var(--fl-ink); padding: 0 1.25rem 1.25rem; display: none; border-bottom: 1px solid rgba(255, 255, 255, .1); }
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; }
	.nav a { padding: .8rem 0; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
}

/* Hero */
.hero { background: var(--fl-ink); color: #fff; position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--fl-ink); background: var(--fl-volt); padding: 0 .15em; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero__lead { font-size: 1.15rem; color: rgba(255, 255, 255, .78); max-width: 48ch; margin-bottom: 2rem; }
.hero .eyebrow { color: var(--fl-volt); }
.hero .eyebrow::before { border-color: var(--fl-volt); background: transparent; }
.quick { background: var(--fl-surface); color: var(--fl-ink); border-radius: 18px; padding: .6rem; display: grid; grid-template-columns: 1fr 1fr auto; gap: .5rem; max-width: 620px; box-shadow: 8px 8px 0 var(--fl-volt); }
.quick label { display: flex; flex-direction: column; padding: .45rem .9rem; border-radius: 12px; background: var(--fl-bg); }
.quick span { font-size: .72rem; font-weight: 700; color: var(--fl-muted); text-transform: uppercase; letter-spacing: .05em; }
.quick input { border: 0; background: transparent; font: inherit; font-size: 1.15rem; font-weight: 800; color: var(--fl-ink); padding: 0; width: 100%; outline: none; }
.quick .btn { align-self: stretch; justify-content: center; border-radius: 12px; box-shadow: none; }
.trust { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; font-size: .9rem; color: rgba(255, 255, 255, .75); }
.trust li { display: flex; align-items: center; gap: .45rem; }
.trust li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--fl-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; flex: none; }
.pulse { background: var(--fl-ink-2); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: 1.75rem; position: relative; }
.pulse__label { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; color: rgba(255, 255, 255, .7); text-transform: uppercase; letter-spacing: .08em; }
.pulse__dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
.pulse__areas { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0; }
.pulse__area { background: rgba(255, 255, 255, .05); border-radius: 14px; padding: 1rem; }
.pulse__area small { color: rgba(255, 255, 255, .6); font-weight: 600; display: block; }
.pulse__area strong { font-family: var(--fl-display); font-size: 2.4rem; line-height: 1.1; color: var(--fl-volt); letter-spacing: -.03em; display: block; }
.pulse__area span { font-size: .8rem; color: rgba(255, 255, 255, .6); }
.pulse__spark { height: 56px; width: 100%; }
.pulse__spark path { fill: none; stroke: var(--fl-volt); stroke-width: 2; }
.pulse__spark .area { fill: rgba(255, 216, 77, .12); stroke: none; }
.pulse__foot { font-size: .78rem; color: rgba(255, 255, 255, .55); margin: .5rem 0 0; display: flex; justify-content: space-between; gap: 1rem; }
.pulse__foot a { color: #fff; }
@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.quick { grid-template-columns: 1fr 1fr; }
	.quick .btn { grid-column: 1 / -1; padding: 1em; }
}

/* Trin */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step { background: var(--fl-surface); border: 1px solid var(--fl-line); border-radius: var(--fl-radius); padding: 1.75rem; position: relative; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--fl-display); font-weight: 800; font-size: 1.1rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--fl-volt); border: 2px solid var(--fl-ink); margin-bottom: 1rem; }
.step h3 { margin-bottom: .35rem; }
.step p { margin: 0; color: var(--fl-muted); font-size: .95rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Indlægskort */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card { background: var(--fl-surface); border: 1px solid var(--fl-line); border-radius: var(--fl-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -18px rgba(14, 27, 43, .35); }
.post-card__img { aspect-ratio: 16 / 9; background: var(--fl-soft); display: block; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__img--empty { background: linear-gradient(135deg, var(--fl-brand), var(--fl-ink)); display: grid; place-items: center; }
.post-card__img--empty svg { width: 48px; opacity: .9; }
.post-card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card__meta { font-size: .8rem; color: var(--fl-muted); font-weight: 600; }
.post-card h3 { margin: 0; font-size: 1.2rem; }
.post-card h3 a { color: var(--fl-ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card p { margin: 0; color: var(--fl-muted); font-size: .93rem; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }

/* Side-header */
.page-hero { background: var(--fl-ink); color: #fff; padding: 3rem 0 3.25rem; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); max-width: 22ch; margin-bottom: .4em; }
.page-hero p { color: rgba(255, 255, 255, .75); max-width: 60ch; margin: 0; font-size: 1.08rem; }
.crumbs { font-size: .82rem; margin-bottom: 1rem; color: rgba(255, 255, 255, .6); }
.crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.crumbs a:hover { color: var(--fl-volt); }
.crumbs span { margin: 0 .4em; }

/* Indhold */
.entry { font-size: 1.06rem; }
.entry > * { max-width: 72ch; }
.entry > .alignwide, .entry > .alignfull, .entry > .fa-calc, .entry > .fa-spot, .entry > .fa-top, .entry > .fa-faq, .entry > .wp-block-shortcode { max-width: none; }
.entry h2 { margin-top: 2em; }
.entry h3 { margin-top: 1.6em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .35em; }
.entry blockquote { border-left: 4px solid var(--fl-volt); margin: 1.5em 0; padding: .25em 0 .25em 1.25em; font-size: 1.15em; font-weight: 600; }
.entry table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--fl-surface); border-radius: 10px; overflow: hidden; }
.entry th, .entry td { padding: .7rem .9rem; border-bottom: 1px solid var(--fl-line); text-align: left; }
.entry th { background: var(--fl-soft); }
.entry img { border-radius: 12px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
@media (max-width: 960px) { .content-grid { grid-template-columns: 1fr; } }
.sidebar { position: sticky; top: 96px; display: grid; gap: 1.25rem; }
.box { background: var(--fl-surface); border: 1px solid var(--fl-line); border-radius: var(--fl-radius); padding: 1.5rem; }
.box h3 { font-size: 1.1rem; }
.box--ink { background: var(--fl-ink); color: #fff; border-color: var(--fl-ink); }
.box--ink h3 { color: #fff; }
.box--ink p { color: rgba(255, 255, 255, .75); }
.box--ink .fa-badge--promo { color: #7a5600; }
.cta-band { background: var(--fl-volt); border: 2px solid var(--fl-ink); border-radius: 20px; padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; box-shadow: 8px 8px 0 var(--fl-ink); margin: 3rem 0; }
.cta-band h2, .cta-band h3 { margin: 0 0 .25rem; }
.cta-band p { margin: 0; }
.cta-band .btn { background: var(--fl-ink); color: #fff; }
.cta-band .btn:hover { color: var(--fl-volt); }
.meta-line { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .88rem; color: rgba(255, 255, 255, .7); margin-top: 1rem; }

/* Selskab */
.company-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 1.75rem; align-items: center; }
.company-hero__logo { width: 120px; height: 120px; border-radius: 22px; background: #fff; display: grid; place-items: center; padding: 1rem; }
.company-hero__logo img { max-height: 80px; width: auto; }
.company-hero__logo .fa-logo-fallback { width: 100%; height: 100%; font-size: 3rem; border-radius: 14px; }
.score { text-align: center; background: var(--fl-ink-2); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 1.1rem 1.5rem; }
.score strong { font-family: var(--fl-display); font-size: 2.8rem; color: var(--fl-volt); display: block; line-height: 1; }
.score small { color: rgba(255, 255, 255, .65); }
@media (max-width: 800px) { .company-hero { grid-template-columns: auto 1fr; } .score { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; text-align: left; } .company-hero__logo { width: 84px; height: 84px; } }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 2.5rem; }
.proscons > div { background: var(--fl-surface); border: 1px solid var(--fl-line); border-radius: var(--fl-radius); padding: 1.4rem 1.5rem; }
.proscons h3 { font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.proscons ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.proscons li { padding-left: 1.6rem; position: relative; font-size: .97rem; }
.proscons li::before { position: absolute; left: 0; top: .05em; font-weight: 800; }
.pros li::before { content: "+"; color: var(--fl-brand); }
.cons li::before { content: "–"; color: #c2410c; }
@media (max-width: 700px) { .proscons { grid-template-columns: 1fr; } }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--fl-line); font-size: .93rem; }
.facts li:last-child { border-bottom: 0; }
.facts span { color: var(--fl-muted); }
.facts strong { text-align: right; }

/* Selskabsoversigt */
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.25rem; }
.company-card { background: var(--fl-surface); border: 1px solid var(--fl-line); border-radius: var(--fl-radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; position: relative; transition: border-color .15s, transform .15s; }
.company-card:hover { border-color: var(--fl-ink); transform: translateY(-2px); }
.company-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; }
.company-card__top img { max-height: 48px; max-width: 140px; width: auto; }
.company-card h2 { font-size: 1.25rem; margin: 0; }
.company-card h2 a { color: var(--fl-ink); text-decoration: none; }
.company-card h2 a::after { content: ""; position: absolute; inset: 0; }
.company-card p { margin: 0; color: var(--fl-muted); font-size: .93rem; flex: 1; }
.company-card__from { font-size: .85rem; border-top: 1px dashed var(--fl-line); padding-top: .75rem; }
.company-card__from strong { font-size: 1.15rem; }
.pill { font-size: .78rem; font-weight: 800; background: var(--fl-volt); border: 2px solid var(--fl-ink); border-radius: 999px; padding: .2em .65em; white-space: nowrap; }

/* Arkiv/paginering */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 2.6rem; height: 2.6rem; display: grid; place-items: center; padding: 0 .8rem; border-radius: 999px; background: var(--fl-surface); border: 1px solid var(--fl-line); text-decoration: none; color: var(--fl-ink); font-weight: 700; }
.pagination .current { background: var(--fl-ink); color: #fff; border-color: var(--fl-ink); }
.search-form { display: flex; gap: .5rem; max-width: 520px; }
.search-form input[type=search] { flex: 1; font: inherit; padding: .8rem 1.1rem; border-radius: 999px; border: 2px solid var(--fl-line); background: #fff; }

/* Footer */
.site-footer { background: var(--fl-ink); color: rgba(255, 255, 255, .7); padding: 4rem 0 2rem; font-size: .93rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--fl-volt); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h4 { color: #fff; font-family: var(--fl-font); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-disclosure { margin-top: 1rem; font-size: .84rem; padding: 1rem; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .82rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* WP-standard */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--fl-muted); text-align: center; }
.sticky, .bypostauthor, .gallery-caption { }
