/* My Marketing Inventory – one stylesheet for the whole site. System fonts only: no external requests. */

:root {
  --ink: #12233f;
  --ink-2: #1f3a63;
  --text: #24324a;
  --muted: #5d6b82;
  --line: #dfe4ec;
  --paper: #f5f7fa;
  --white: #ffffff;
  --accent: #0f8a6c;
  --accent-dark: #0b6b54;
  --accent-soft: #e3f4ee;
  --warn: #9a5b00;
  --warn-soft: #fff4e0;
  --error: #b42318;
  --error-soft: #fdecea;
  --radius: 14px;
  --gutter: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: var(--font);
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--text);
  background: var(--white);
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-top: 1.8em; }
h3 { font-size: 1.12rem; margin-top: 1.5em; }
p, ul, ol { margin: 0 0 1em; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
code { font-family: var(--mono); font-size: .92em; background: var(--paper); padding: .1em .35em; border-radius: 5px; }
strong, b { color: var(--ink); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; border-radius: 8px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.logo b { color: var(--accent); }
.logo-mark { width: 28px; height: 28px; fill: var(--ink); }
.logo-mark .accent { fill: var(--accent); }
.logo:hover { color: var(--ink); }

.nav-btn { display: grid; gap: 5px; padding: 10px; margin-right: -10px; background: none; border: 0; cursor: pointer; }
.nav-btn span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
.nav-open .nav { display: grid; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; font-weight: 500; }
.nav a[aria-current] { color: var(--accent-dark); }

@media (min-width: 860px) {
  .nav-btn { display: none; }
  .nav, .nav-open .nav { display: flex; position: static; border: 0; padding: 0; gap: 26px; background: none; }
  .nav a { padding: 6px 0; font-size: .95rem; border-bottom: 2px solid transparent; }
  .nav a:hover, .nav a[aria-current] { border-bottom-color: var(--accent); color: var(--ink); }
}

/* ---------- Page blocks ---------- */

.hero { padding: 56px 0 36px; background: linear-gradient(180deg, var(--paper), var(--white)); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.section { padding: 40px 0; }
.section-alt { background: var(--paper); }
.content h2:first-child { margin-top: 0; }
.content ul, .content ol { padding-left: 1.3em; }
.content li { margin-bottom: .4em; }

.cards { display: grid; gap: 18px; margin-top: 8px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--text); text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.card:hover { border-color: var(--accent); box-shadow: 0 10px 30px -18px rgba(18, 35, 63, .45); transform: translateY(-2px); color: var(--text); }
.card h3 { margin: 4px 0 0; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.card .go { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--accent-dark); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-dark); background: var(--accent-soft); padding: 3px 8px; border-radius: 999px; }

.points { display: grid; gap: 22px; padding: 0; list-style: none; }
@media (min-width: 760px) { .points { grid-template-columns: repeat(3, 1fr); } }
.points li strong { display: block; margin-bottom: 4px; font-size: 1.02rem; }
.points li { color: var(--muted); }

/* ---------- Tool layout ---------- */

.tool {
  display: grid; gap: 0;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 50px -32px rgba(18, 35, 63, .5);
  overflow: hidden;
}
@media (min-width: 900px) { .tool { grid-template-columns: 1.05fr 1fr; } .tool.tool-wide { grid-template-columns: 1fr; } }
.tool-inputs { padding: 24px; }
.tool-results { padding: 24px; background: var(--paper); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .tool-results { border-top: 0; border-left: 1px solid var(--line); } }
.tool-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tool-head h2 { margin: 0; font-size: 1.1rem; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.field .hint { display: block; font-size: .86rem; color: var(--muted); margin-bottom: 6px; line-height: 1.45; }
.input-wrap { position: relative; display: flex; align-items: stretch; }
.input-wrap input { flex: 1; min-width: 0; }
.input-wrap .suffix {
  display: grid; place-items: center; padding: 0 12px; min-width: 46px;
  border: 1.5px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0;
  background: var(--paper); color: var(--muted); font-weight: 600; font-size: .92rem;
}
.input-wrap .suffix + input, .input-wrap input:has(+ .suffix) { border-radius: 10px 0 0 10px; }
input[type=text], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 138, 108, .18); }
input.is-invalid { border-color: var(--error); }
.echo { display: block; min-height: 1.3em; font-size: .8rem; color: var(--muted); margin-top: 3px; }
.input-wrap + .echo { padding-left: 2px; }
.tool-note { font-size: .86rem; color: var(--muted); margin: 0; }
.tool-note-below { margin-top: 14px; }
.optional { font-weight: 400; color: var(--muted); font-size: .9rem; }
select.small { width: auto; padding: 7px 10px; font-size: .92rem; }
.currency-pick { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
textarea { min-height: 260px; resize: vertical; font-family: var(--mono); font-size: .92rem; line-height: 1.55; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px; background: var(--paper); border-radius: 12px; margin-bottom: 18px; }
.tabs button {
  flex: 1 1 auto; font: inherit; font-size: .92rem; font-weight: 600;
  border: 0; border-radius: 9px; padding: 9px 12px; cursor: pointer;
  background: transparent; color: var(--muted);
}
.tabs button[aria-selected=true] { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px rgba(18, 35, 63, .15); }

.result-main { margin-bottom: 18px; }
.result-label { font-size: .86rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.result-value { font-size: clamp(2rem, 6vw, 2.6rem); font-weight: 700; color: var(--ink); line-height: 1.15; word-break: break-word; }
.result-sub { color: var(--muted); font-size: .95rem; }
.result-list { margin: 0; display: grid; gap: 0; }
.result-list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.result-list div:last-child { border-bottom: 0; }
.result-list dt { color: var(--muted); }
.result-list dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; white-space: nowrap; }
.result-list .highlight dd { color: var(--accent-dark); }
.placeholder { color: var(--muted); font-size: .95rem; }

.notice { padding: 12px 14px; border-radius: 10px; font-size: .92rem; line-height: 1.5; margin: 0 0 14px; }
.notice-warn { background: var(--warn-soft); color: var(--warn); }
.notice-error { background: var(--error-soft); color: var(--error); }
.notice-info { background: var(--accent-soft); color: var(--accent-dark); }
.notice strong { color: inherit; }

.bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--line); margin: 6px 0 8px; }
.bar span { display: block; height: 100%; }
.bar .b1 { background: var(--accent); }
.bar .b2 { background: #7fc8b3; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .84rem; color: var(--muted); margin-bottom: 16px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: 10px 18px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--white); text-decoration: none;
}
.btn:hover { background: var(--ink-2); color: var(--white); }
.btn:disabled { opacity: .7; cursor: default; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-small { padding: 7px 12px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.linkish { font: inherit; background: none; border: 0; padding: 0; color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .9rem; }

.options { display: grid; gap: 8px; margin: 14px 0 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; cursor: pointer; }
.check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.check span small { display: block; color: var(--muted); font-size: .84rem; }

.match-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .match-grid { grid-template-columns: 1fr 1fr; } }
.stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; color: var(--muted); margin: 8px 0 12px; min-height: 1.3em; }
.stats b { color: var(--ink); }

/* ---------- Content pieces ---------- */

.formula {
  font-family: var(--mono); font-size: .95rem; color: var(--ink);
  background: var(--paper); border-left: 4px solid var(--accent);
  padding: 14px 16px; border-radius: 0 10px 10px 0; margin: 0 0 1.2em; overflow-x: auto;
}
.formula div + div { margin-top: 6px; }
.table-wrap { overflow-x: auto; margin-bottom: 1.2em; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-weight: 600; background: var(--paper); }
td.num, th.num { text-align: right; white-space: nowrap; }
.callout { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 1.2em 0; background: var(--white); }
.callout-warn { border-color: #f1d3a1; background: var(--warn-soft); }
.callout-warn strong { color: var(--warn); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 12px 28px 12px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 9px; font-size: 1.3rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 12px; color: var(--text); }

.related { display: grid; gap: 14px; }
@media (min-width: 640px) { .related { grid-template-columns: repeat(2, 1fr); } }

.toc { background: var(--paper); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 1.5em; font-size: .95rem; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.2em; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #c4cedd; margin-top: 56px; font-size: .94rem; }
.site-footer a { color: #e6ecf5; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-inner { display: grid; gap: 28px; padding-top: 44px; padding-bottom: 28px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand p { margin-top: 12px; max-width: 360px; color: #a9b5c8; }
.site-footer .logo { color: var(--white); }
.site-footer .logo-mark { fill: #e6ecf5; }
.site-footer .logo b { color: #5fd3b0; }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col h2 { color: var(--white); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .12); color: #a9b5c8; font-size: .88rem; }

/* ---------- Cookie banner (same component as sortiedigital.eu) ---------- */

.cc-banner {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 90;
  display: grid;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(12, 22, 38, 0.45);
  font-size: 0.93rem;
  line-height: 1.5;
}
.cc-banner[hidden] { display: none; }
.cc-text strong { font-family: var(--font-head); font-size: 1.05rem; }
.cc-text p { margin: 6px 0 0; color: var(--muted); }
.cc-text a { color: var(--ink); font-weight: 600; }

.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cc-btn {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 20px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  flex: 1 1 auto;
}
.cc-btn:hover { background: var(--ink-2); }
.cc-btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.cc-btn-outline:hover { background: var(--paper); }
.cc-link {
  font: inherit; font-weight: 600; color: var(--ink);
  background: none; border: 0; padding: 8px 6px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}

.cc-modal {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 26px;
  border: 0;
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(12, 22, 38, 0.6);
}
.cc-modal::backdrop { background: rgba(12, 22, 38, 0.55); }
.cc-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cc-modal h2 { font-size: 1.4rem; margin: 0; }
.cc-x {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--line); background: none;
  font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.cc-row {
  display: flex; gap: 18px; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.cc-row strong { font-family: var(--font-head); }
.cc-row p { color: var(--muted); font-size: 0.9rem; margin: 2px 0 0; }
.cc-modal .cc-actions { margin-top: 20px; }
.cc-always { font-size: 0.82rem; font-weight: 600; color: var(--muted); white-space: nowrap; }

.cc-switch { position: relative; flex: none; width: 48px; height: 28px; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch span[aria-hidden] {
  position: absolute; inset: 0; border-radius: 999px; background: #cfd5df; transition: background-color 0.15s ease;
}
.cc-switch span[aria-hidden]::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--white); transition: transform 0.15s ease;
}
.cc-switch input:checked + span { background: var(--accent); }
.cc-switch input:checked + span::after { transform: translateX(20px); }
.cc-switch input:focus-visible + span { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
.cc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (min-width: 760px) {
  .cc-banner { grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: 22px 26px; }
  .cc-banner .cc-btn { flex: none; }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .tool-inputs, .tool-results { padding: 30px; }
}
