/* EMPCO — clean, institutional. Navy band + EU blue on white, hairline-ruled sections. */
:root {
  --ink: #0F1E38;          /* navy: hero band, headings */
  --eu: #1A46B8;           /* EU blue: links, primary actions */
  --eu-deep: #123285;
  --paper: #FFFFFF;
  --panel: #F3F5F9;
  --rule: #CFD5E0;
  --text: #1C2A44;
  --muted: #5B6A85;
  --on-ink-muted: #B7C3DA;
  --ok: #1F6B3F;  --ok-bg: #E7F3EC;
  --warn: #7A5200; --warn-bg: #FFF4D6;
  --err: #A32116; --err-bg: #FBE9E7;
  --accent: #FFD400;       /* EU-flag yellow: the progress bar, nothing else */
  /* the report's own risk colours, so the site and the Excel file agree */
  --r5: #C00000; --r4: #E8743B; --r3: #F2C14E; --r2: #A9D18E; --r1: #C6E0B4; --r0: #808080;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1100px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--paper); }
a { color: var(--eu); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: 40px; }
h2 { font-size: 26px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.inline { display: inline; }
:focus-visible { outline: 2px solid var(--eu); outline-offset: 2px; }

/* ---- header */
.top { border-bottom: 1px solid var(--rule); background: var(--paper); }
.top-row { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { font-weight: 600; font-size: 22px; letter-spacing: 0.02em; color: var(--ink); }
.brand-tag { font-size: 13px; color: var(--muted); }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a[aria-current="page"] { border-bottom-color: var(--eu); color: var(--eu); }
.nav a:hover { text-decoration: none; border-bottom-color: var(--rule); }
.account { margin-left: auto; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
/* the language: a short code at the far right, set apart by a hairline */
.lang-form { display: inline-flex; align-items: center; margin: 0 0 0 4px; padding-left: 14px; border-left: 1px solid var(--rule); }
.lang-select { width: auto; padding: 4px 6px; font-size: 13px; font-weight: 500; letter-spacing: .04em; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); color: var(--ink); cursor: pointer; }

/* ---- buttons & forms */
.btn { display: inline-block; font: inherit; font-weight: 500; padding: 10px 18px; border-radius: 3px;
       border: 1px solid var(--eu); background: var(--eu); color: #fff; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--eu-deep); border-color: var(--eu-deep); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--eu); }
.btn-ghost:hover { background: var(--panel); color: var(--eu-deep); }
.btn-lg { padding: 14px 24px; font-size: 17px; }
.btn-sm { padding: 6px 12px; font-size: 14px; }     /* the header's account buttons */
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { font: inherit; color: var(--eu); background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { text-decoration: underline; }
.link-sm { font-size: 14px; }
label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=url], select, textarea {
  font: inherit; width: 100%; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 3px;
  background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: var(--eu); outline: 2px solid rgba(26,70,184,.18); }
textarea { min-height: 140px; resize: vertical; }
.field { margin-bottom: 14px; }
.row { display: grid; gap: 14px; }
.row-3 { grid-template-columns: 1fr 1fr 1fr; }
.row-2 { grid-template-columns: 1fr 1fr; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.errors { border-left: 3px solid var(--err); background: var(--err-bg); color: var(--err); padding: 10px 14px; margin-bottom: 16px; border-radius: 0 3px 3px 0; }
.errors ul { margin: 0; padding-left: 18px; }
.flash { padding: 10px 14px; margin: 16px 0 0; border-radius: 3px; border: 1px solid var(--rule); background: var(--panel); }
.flash-ok { background: var(--ok-bg); color: var(--ok); border-color: #BFE0CC; }
.flash-warn { background: var(--warn-bg); color: var(--warn); border-color: #F1D98F; }
.flash-error { background: var(--err-bg); color: var(--err); border-color: #F0C2BC; }

/* ---- hero band: the URL bar is the hero element (Statista's search bar, with the
   jurisdiction attached because the law differs per country) */
.hero { background: var(--ink); color: #fff; padding: 48px 0 44px; }
.hero h1 { color: #fff; max-width: 15em; font-size: 44px; letter-spacing: -0.015em; }
.hero .lede { font-size: 18px; color: var(--on-ink-muted); max-width: 40em; margin-bottom: 30px; }
.hero-form { max-width: 860px; }
.hero .errors { background: #fff; margin-bottom: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.url-bar { display: grid; grid-template-columns: 1fr 260px auto; background: #fff; border-radius: 3px; overflow: hidden; }
.url-bar input, .url-bar select, .url-bar .btn { height: 58px; border: 0; border-radius: 0; font-size: 18px; }
.url-bar input { padding: 0 18px; }
.url-bar input::placeholder { color: #8A96AB; }
.url-bar select { font-size: 16px; padding: 0 14px; border-left: 1px solid var(--rule); background: var(--panel); color: var(--text); }
.url-bar .btn { padding: 0 28px; font-size: 17px; }
.url-bar input:focus, .url-bar select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--eu); }
.url-bar-light { border: 1px solid var(--rule); }
.hero-ident { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 8px; margin-top: 8px; }
.hero-ident input { height: 44px; border: 0; }
.hero-ident input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--eu); }
.hero-ident input::placeholder { color: #8A96AB; }
.hero-note { font-size: 13px; color: var(--on-ink-muted); margin: 12px 0 0; max-width: 60em; }
.hero .hero-consent { color: #fff; margin: 14px 0 0; max-width: 60em; }
.hero a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ---- sections */
.section { padding: 48px 0; }
.section-alt { background: var(--panel); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ruled { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.ruled::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { border-top: 3px solid var(--eu); padding-top: 14px; }
.step .n { font-size: 14px; color: var(--eu); font-weight: 600; }
.step h3 { margin: 4px 0 6px; }
.step p { color: var(--muted); margin: 0; }
.cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
.law { width: 100%; border-collapse: collapse; font-size: 15px; }
.law th, .law td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); }
.law th { font-weight: 600; color: var(--ink); white-space: nowrap; width: 9em; }
/* long compounds (Verbraucherschutzgesetz, Identifikationsnummer) must not push a phone's
   screen sideways: hyphenate where the browser knows the language, else break anywhere */
.law th, .law td { hyphens: auto; overflow-wrap: anywhere; }
.law tr:last-child td, .law tr:last-child th { border-bottom: 0; }

/* ---- report excerpt / findings table */
.report { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid var(--rule); }
.report th { background: #1F4E78; color: #fff; text-align: left; padding: 8px 10px; font-weight: 600; font-size: 13px; }
.report td { padding: 8px 10px; border-top: 1px solid var(--rule); vertical-align: top; }
.report td.c { text-align: center; white-space: nowrap; }
.report .risk { display: inline-block; min-width: 26px; padding: 2px 8px; border-radius: 2px; font-weight: 600; text-align: center; }
.risk-5 { background: var(--r5); color: #fff; } .risk-4 { background: var(--r4); color: #fff; }
.risk-3 { background: var(--r3); color: #000; } .risk-2 { background: var(--r2); color: #000; }
.risk-1 { background: var(--r1); color: #000; } .risk-0 { background: var(--r0); color: #fff; }
/* the three lights (rubric 2.1): the word is always shown with the colour */
.light-3 { background: #C00000; color: #fff; } .light-2 { background: #FFC000; color: #000; }
.light-1 { background: #2E7D32; color: #fff; } .light-0 { background: var(--r0); color: #fff; }
.report .light { display: inline-block; padding: 2px 8px; border-radius: 2px; font-weight: 600; font-size: 12px;
                 letter-spacing: .02em; text-align: center; white-space: nowrap; }
.stats.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat.stat-red .v { color: #C00000; } .stat.stat-amber .v { color: #9A6B00; } .stat.stat-green .v { color: #2E7D32; }
.report .url { color: var(--muted); font-size: 12px; word-break: break-all; }
.report-wrap { overflow-x: auto; }
.caption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---- check page */
.check-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.check-head h1 { font-size: 30px; margin: 0; }
.pill { display: inline-block; font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 2px; border: 1px solid var(--rule); background: var(--panel); color: var(--ink); }
.pill-active { border-color: #9FB4E8; background: #E8EEFB; color: var(--eu-deep); }
.pill-done { border-color: #BFE0CC; background: var(--ok-bg); color: var(--ok); }
.pill-failed { border-color: #F0C2BC; background: var(--err-bg); color: var(--err); }
.panel { border: 1px solid var(--rule); border-radius: 4px; padding: 22px; background: #fff; margin-bottom: 20px; }
.panel-quote { border-color: var(--ink); }
.progress { height: 10px; background: var(--panel); border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; margin: 12px 0 8px; }
.progress > div { height: 100%; background: var(--accent); width: 0; transition: width .6s ease; }
@media (prefers-reduced-motion: reduce) { .progress > div { transition: none; } }
.progress-msg { font-size: 15px; color: var(--muted); }
.price { font-size: 40px; font-weight: 600; color: var(--ink); line-height: 1; margin: 6px 0 4px; }
/* the fee on a quote: the amount, and beside it the currency of payment as a small dropdown
   like the header's language one (fx.py); under it one muted line, kept to a readable width */
.price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 6px 0 4px; }
.price-row .price { margin: 0; }
.price-row form { margin: 0; }
.cur-select { width: auto; padding: 5px 8px; font-size: 15px; font-weight: 500; letter-spacing: .02em;
              color: var(--ink); cursor: pointer; }
.fee-note { margin: 6px 0 0; }
.panel-quote p { max-width: 44em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 14px 0 6px; }
.stat { border: 1px solid var(--rule); padding: 12px 14px; border-radius: 3px; }
.stat .v { font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.stat .l { font-size: 13px; color: var(--muted); }
.stat-high .v { color: var(--r5); }

/* ---- lists (portal, admin) */
.list { width: 100%; border-collapse: collapse; font-size: 15px; }
.list th, .list td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.list th { font-size: 13px; color: var(--muted); font-weight: 500; }
.list td.num { text-align: right; white-space: nowrap; }
.empty { border: 1px dashed var(--rule); padding: 28px; text-align: center; color: var(--muted); border-radius: 4px; }

/* ---- auth pages */
.narrow { max-width: 460px; margin: 48px auto; }
.narrow h1 { font-size: 28px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; color: var(--ink); border-color: var(--rule); }
.btn-google:hover { background: var(--panel); color: var(--ink); border-color: var(--rule); }

/* ---- order consent */
.consent { margin-top: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; color: var(--text); margin-bottom: 4px; max-width: 70ch; }
.check input { margin: 4px 0 0; flex: none; width: 16px; height: 16px; }

/* ---- legal documents and notices */
.legal { max-width: 760px; }
.legal h2 { font-size: 20px; margin: 30px 0 8px; }
.legal p { max-width: 70ch; }
.notice { border-left: 3px solid var(--ink); background: var(--panel); padding: 10px 14px; margin: 18px 0 0; font-size: 14px; }

/* ---- footer */
.foot { border-top: 1px solid var(--rule); background: var(--panel); padding: 32px 0; margin-top: 48px; font-size: 14px; }
.foot-row { display: grid; grid-template-columns: 1fr auto; gap: 32px; }
.foot-note { color: var(--muted); max-width: 60em; margin: 6px 0 0; }
.foot-links { display: flex; flex-direction: column; gap: 6px; }

/* ---- smaller laptops and tablets: the menu and the account need the tagline's room
   (the tagline stays on one line, so below this width it would crowd the header) */
.brand-tag { white-space: nowrap; }
@media (max-width: 1240px) {
  .brand-tag { display: none; }
}

/* ---- below this width the header no longer fits on one line (Czech, logged in as the
   operator): the menu moves to a row of its own. The widths differ by language, so a script
   in base.html measures the header and applies the same two steps whenever it does not fit:
   .no-tag drops the tagline, .stacked moves the menu down. These rules are the fallback. */
@media (max-width: 920px) {
  .top-row { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 10px 18px; }
  .nav { margin-left: 0; order: 3; width: 100%; gap: 6px 16px; flex-wrap: wrap; }
  .account { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }
}
.top.no-tag .brand-tag { display: none; }
.top.stacked .top-row { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 10px 18px; }
.top.stacked .nav { margin-left: 0; order: 3; width: 100%; gap: 6px 16px; flex-wrap: wrap; }
.top.stacked .account { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }

/* ---- phone */
@media (max-width: 820px) {
  h1 { font-size: 30px; }
  /* a long compound (Geschäftsbedingungen) in a heading breaks, hyphenated where possible */
  h1, h2, h3 { hyphens: auto; overflow-wrap: break-word; }
  /* minmax(0, 1fr): a long table or word may not widen the one column beyond the screen */
  .row-3, .row-2, .url-row, .steps, .cols, .stats, .foot-row { grid-template-columns: minmax(0, 1fr); }
  .stats.stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* the three lights + pages */
  /* phone: one column, and the button goes last so people fill in every field first */
  .hero-form { display: flex; flex-direction: column; gap: 8px; }
  .hero .url-bar, .hero .hero-ident { display: contents; }
  .hero .url-bar input, .hero .url-bar select, .hero .hero-ident input { border-radius: 3px; height: 50px; }
  .hero .url-bar select { border-left: 0; }
  .hero .hero-consent { order: 9; margin-top: 6px; }
  .hero .url-bar .btn { order: 10; border-radius: 3px; height: 52px; margin-top: 4px; }
  .hero .hero-note { order: 11; margin-top: 4px; }
  .hero .errors { order: -1; }
  .url-bar-light { grid-template-columns: 1fr; }
  .url-bar-light select { border-left: 0; border-top: 1px solid var(--rule); }
  .hero h1 { font-size: 32px; }
  .hero { padding: 36px 0 40px; }
  .section { padding: 36px 0; }
  .price { font-size: 32px; }
  .narrow { margin: 24px auto; }
  .law th { white-space: normal; width: 8em; }
  .list td { hyphens: auto; overflow-wrap: anywhere; }
  .list td.num { white-space: normal; }
}
