/* Østfyns El-Teknik (2026 redesign): tokens, fonts and text styles. Linked on the frontend (header.php, before
   style.css) and loaded in the TinyMCE editors (add_editor_style), so editor content looks like the site.
   Direction: the client's reference is odense-el.dk: flat, square corners, white / light grey / charcoal sections,
   one accent colour (the logo's green), serif headings matching the logo, a clean sans for text. */

/* ---------- Fonts (self-hosted, no Google Fonts requests) ----------
   Noto Serif = the logo's wordmark face (headings). Lora (the logo's two small lines) is also shipped in _fonts/
   in case the headings should switch: change --font-head and the @font-face below. Inter = body text. */
@font-face { font-family: 'Noto Serif'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('_fonts/noto-serif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Serif'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('_fonts/noto-serif-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('_fonts/lora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('_fonts/lora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url('_fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url('_fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --ink: #0c1117;          /* text, footer */
  --charcoal: #171c23;     /* dark sections, hero */
  --charcoal-2: #222933;   /* cards on dark */
  --green: #2bc42b;        /* accent on dark backgrounds: the logo's green (#00d300 in the mark itself) toned down a notch */
  --accent: #1eb41e;       /* buttons, highlights on light backgrounds */
  --accent-hover: #189f18;
  --accent-text: #148a14;  /* green text on white: small labels, links */
  --muted: #5c6670;
  --subtle: #7a838c;
  --light: #f3f4f6;        /* light grey sections and boxes */
  --light-2: #e9ebee;
  --white: #ffffff;
  --line: #e5e7eb;
  --line-dark: rgba(255,255,255,.12);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Noto Serif', Georgia, 'Times New Roman', serif;
}

/* ---------- Text ---------- */
html, body { font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink); }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-text); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; margin: 0 0 .5em; text-wrap: pretty; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: 52px; line-height: 1.1; }
h2 { font-size: 38px; line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.3; }
h4 { font-size: 18px; line-height: 1.35; }
h1 .hl, h2 .hl, h3 .hl { color: var(--accent-text); }
p { margin: 0 0 1.2em; color: var(--muted); }
.lead, p.lead { font-size: 19px; line-height: 1.55; color: var(--muted); }
small, .small { font-size: 14px; }
/* Eyebrow: small uppercase label with a green square in front (Formats → Overlinje) */
.eyebrow, p.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex: none; }
strong, b { font-weight: 600; color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
blockquote { margin: 0 0 1.2em; padding: 20px 24px; border-left: 3px solid var(--accent); background: var(--light); color: var(--ink); font-family: var(--font-head); font-size: 19px; line-height: 1.45; }
blockquote p { margin: 0; color: inherit; }
/* Checklist (Formats → Tjekliste): green check marks, two columns */
ul.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: 15px; font-weight: 500; margin: 0 0 1.4em; padding: 0; list-style: none; color: var(--ink); }
ul.checks li { position: relative; padding-left: 30px; line-height: 1.45; }
ul.checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / 14px no-repeat, linear-gradient(#000 0 0); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / 14px no-repeat, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
/* Numbered steps (Formats → Trin): big serif numbers */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.4em; }
ol.steps li { counter-increment: step; position: relative; padding-left: 52px; margin: 0 0 16px; }
ol.steps li::before { content: "0" counter(step); position: absolute; left: 0; top: 0; font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--accent-text); line-height: 1.5; }
.rich ul:not(.checks) { padding-left: 20px; margin: 0 0 1.2em; color: var(--muted); }
.rich ul:not(.checks) li { margin: 0 0 .4em; }
.rich ol:not(.steps) { padding-left: 22px; margin: 0 0 1.2em; color: var(--muted); }
.rich > :last-child { margin-bottom: 0; }
.rich img { max-width: 100%; height: auto; }
.rich table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: 15px; }
.rich td, .rich th { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.rich th { background: var(--light); font-weight: 600; }
.rich figure { margin: 0 0 1.2em; }

/* ---------- Buttons (Formats → Knap …): square, label + divider + arrow, as on the reference site ---------- */
.btn { display: inline-flex; align-items: center; font-family: var(--font); font-size: 14px; font-weight: 600; line-height: 1; padding: 15px 0 15px 24px; border: 1px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; white-space: nowrap; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.btn::after { content: ""; display: block; width: 14px; height: 14px; margin: -15px 0; padding: 15px 16px 15px 16px; box-sizing: content-box; margin-left: 20px; border-left: 1px solid color-mix(in srgb, currentColor 25%, transparent); background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat; }
.btn.btn-phone::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
.btn.btn-mail::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='0'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='0'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.btn.btn-plain { padding-right: 24px; }
.btn.btn-plain::after { display: none; }
.btn-green, .btn-blue { background: var(--accent); color: #fff; }
.btn-green:hover, .btn-blue:hover { background: var(--accent-hover); color: #fff; }
.btn-dark, .btn-navy { background: var(--charcoal); color: #fff; }
.btn-dark:hover, .btn-navy:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--light); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: color-mix(in srgb, currentColor 35%, transparent); }
.btn-outline:hover { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-small { font-size: 13px; padding: 11px 0 11px 18px; }
.btn-small::after { margin: -11px 0 -11px 14px; padding: 11px 12px; width: 13px; height: 13px; }
.btn-small.btn-plain { padding-right: 18px; }
/* Text link with arrow (Formats → Tekstlink) */
.textlink { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent-text); padding: 14px 0; }
.textlink::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s ease; }
.textlink:hover { color: var(--ink); }
.textlink:hover::after { transform: translateX(3px); }
/* Several buttons in one paragraph sit in a row */
.rich p:has(> .btn), .rich p:has(> .textlink) { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 8px; }

/* ---------- Forms ---------- */
label { font-size: 13px; font-weight: 600; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 13px 14px; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
input::placeholder, textarea::placeholder { color: var(--subtle); }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30,180,30,.2); }
textarea { resize: vertical; min-height: 120px; }

/* ---------- Editor only (TinyMCE) ---------- */
body.mce-content-body { padding: 16px 20px; background: #fff; max-width: 900px; }
body.mce-content-body h1 { font-size: 40px; }
body.mce-content-body h2 { font-size: 30px; }
