/* Blesta Umzug — one stylesheet, system fonts only (no third-party font requests, GDPR/nDSG friendly). */
:root {
  --paper: #f4f6fa;
  --surface: #ffffff;
  --ink: #18223a;
  --muted: #59637a;
  --line: #d5dbe6;
  --line-strong: #b9c2d3;
  --board: #121b30;
  --board-row: #18233d;
  --board-text: #eef1f7;
  --signal: #ffc20e;
  --signal-ink: #3a2b00;
  --ok: #1d7a4c;
  --ok-bg: #e5f4ec;
  --warn: #9a5b00;
  --warn-bg: #fdf1dc;
  --err: #b42d23;
  --err-bg: #fbe7e5;
  --info: #35577f;
  --info-bg: #e7eef7;
  --focus: #2f6fe4;
  --radius-s: 4px;
  --radius-m: 10px;
  --font-display: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.2rem, 5vw, 3.6rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1424; --surface: #141d31; --ink: #e7ebf3; --muted: #9ca6bb; --line: #27324b; --line-strong: #3a4766;
    --board: #090f1c; --board-row: #0f182b;
    --ok: #4cc58a; --ok-bg: #12301f; --warn: #f0b04a; --warn-bg: #33270f; --err: #f07a6e; --err-bg: #3a1714;
    --info: #8fb2de; --info-bg: #17243a; --focus: #7fa8ff; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1424; --surface: #141d31; --ink: #e7ebf3; --muted: #9ca6bb; --line: #27324b; --line-strong: #3a4766;
  --board: #090f1c; --board-row: #0f182b;
  --ok: #4cc58a; --ok-bg: #12301f; --warn: #f0b04a; --warn-bg: #33270f; --err: #f07a6e; --err-bg: #3a1714;
  --info: #8fb2de; --info-bg: #17243a; --focus: #7fa8ff; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--font-body);
}
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 650; }
p { margin: 0 0 1em; max-width: 68ch; }
code, kbd { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; border-radius: 6px; background: var(--board); position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; left: 6px; right: 6px; top: 11px; height: 4px; background: var(--signal); border-radius: 2px; }
.site-nav { display: flex; gap: 20px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.lang-switch { border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 var(--step-0)/1 var(--font-body); padding: 13px 20px; border-radius: var(--radius-s);
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.15); }
.btn-signal { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-small { padding: 7px 12px; font-size: var(--step--1); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; filter: none; }
.btn-link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }

/* Hero + departure board (the one bold element) */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: var(--step-1); color: var(--muted); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.board { background: var(--board); color: var(--board-text); border-radius: var(--radius-m); padding: 18px; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 8px 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.board-route { font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; letter-spacing: .01em; }
.board-route span { color: var(--signal); padding: 0 .3em; }
.board-clock { font-variant-numeric: tabular-nums; color: rgba(238,241,247,.7); }
.board table { width: 100%; border-collapse: separate; border-spacing: 0 6px; margin-top: 8px; }
.board th { font-weight: 500; font-size: .8rem; color: rgba(238,241,247,.6); text-align: left; padding: 4px 8px; }
.board td { background: var(--board-row); padding: 9px 8px; font-variant-numeric: tabular-nums; }
.board td:first-child { border-radius: 4px 0 0 4px; width: 3.2em; text-align: center; color: var(--signal); font-weight: 700; }
.board td:last-child { border-radius: 0 4px 4px 0; text-align: right; }
.flap { display: inline-block; font-family: var(--font-display); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.board .st-ok { color: #9be0b9; }
.board .st-check { color: var(--signal); }
@media (prefers-reduced-motion: no-preference) {
  .flap { animation: flap .5s steps(4, end) both; animation-delay: calc(var(--i, 0) * 90ms + 200ms); }
  @keyframes flap { 0% { opacity: 0; transform: rotateX(80deg); } 60% { opacity: 1; transform: rotateX(-10deg); } 100% { transform: none; } }
}

/* Sections */
section.block { padding: 64px 0; border-top: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s); font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; color: var(--muted); }
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: var(--muted); }

.legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.legend div { border-left: 4px solid var(--line-strong); padding: 4px 0 4px 14px; }
.legend strong { display: block; font-family: var(--font-display); font-size: var(--step-1); }
.legend .l-new { border-color: var(--info); }
.legend .l-same { border-color: var(--ok); }
.legend .l-changed { border-color: var(--warn); }
.legend .l-unclear { border-color: var(--err); }

.price-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { font-family: var(--font-display); font-size: var(--step-1); }
.price-table thead th small { display: block; font: 400 var(--step--1)/1.4 var(--font-body); color: var(--muted); margin-top: 4px; max-width: 28ch; }
.price-table td.num { font-weight: 600; }

.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: var(--step-1); font-family: var(--font-display); }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; }
label { font-weight: 600; display: block; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=url], select, textarea {
  width: 100%; font: inherit; color: inherit; background: var(--paper); border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-s); padding: 10px 12px;
}
input[type=file] { font: inherit; max-width: 100%; }
.field { margin-bottom: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; }
pre.cmd { background: var(--board); color: var(--board-text); padding: 14px 16px; border-radius: var(--radius-s); overflow-x: auto; font-size: .85rem; line-height: 1.5; }
.start-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.start-steps > li { counter-increment: s; position: relative; padding: 0 0 32px 56px; }
.start-steps > li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 38px; height: 38px; border-radius: 50%; background: var(--board); color: var(--signal); display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }

.alert { border-radius: var(--radius-s); padding: 12px 16px; margin: 16px 0; border-left: 4px solid; }
.alert-ok { background: var(--ok-bg); border-color: var(--ok); }
.alert-err { background: var(--err-bg); border-color: var(--err); }
.alert-info { background: var(--info-bg); border-color: var(--info); }

/* Report */
.report-head { padding: 40px 0 8px; }
.report-head h1 { font-size: var(--step-3); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 12px; font-size: var(--step--1); background: var(--surface); }
.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-bottom: 64px; }
.report-main > section { margin-top: 36px; }
.report-main h2 { font-size: var(--step-2); }
.aside { position: sticky; top: 16px; }

.tally { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.tally div { background: var(--surface); padding: 14px 16px; }
.tally strong { display: block; font-family: var(--font-display); font-size: var(--step-3); line-height: 1; font-variant-numeric: tabular-nums; }
.tally .t-ok strong { color: var(--ok); } .tally .t-warn strong { color: var(--warn); } .tally .t-error strong { color: var(--err); }

.counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.counts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.counts strong { font-variant-numeric: tabular-nums; font-size: var(--step-1); font-family: var(--font-display); display: block; }

.items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.item.is-open { background: linear-gradient(90deg, var(--warn-bg), transparent 70%); margin-inline: -12px; padding-inline: 12px; }
.dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 5px; }
.sev-ok .dot { background: var(--ok); } .sev-warn .dot { background: var(--warn); } .sev-error .dot { background: var(--err); } .sev-info .dot { background: transparent; border: 2px solid var(--info); }
.item h3 { font-size: var(--step-0); font-family: var(--font-body); font-weight: 650; margin: 0; letter-spacing: 0; }
.item .meta { font-size: var(--step--1); color: var(--muted); margin: 2px 0 6px; display: flex; gap: 12px; flex-wrap: wrap; }
.item p { margin: 0 0 6px; color: var(--muted); font-size: .95rem; }
.item .note { color: var(--ink); }
.item code { word-break: break-word; }
.item-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; justify-content: flex-end; max-width: 280px; }
.item-actions form { margin: 0; }
.decision { font-size: var(--step--1); font-weight: 600; text-align: right; }
.decision .btn-link { font-weight: 400; display: block; margin-left: auto; }
.inst-yes { color: var(--ok); } .inst-no { color: var(--warn); }

.cmp { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cmp th, .cmp td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.cmp th:first-child, .cmp td:first-child { text-align: left; }
.cmp thead th { font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.cmp td.c-new { color: var(--info); font-weight: 700; } .cmp td.c-changed { color: var(--warn); font-weight: 700; } .cmp td.c-unclear { color: var(--err); font-weight: 700; }
.cmp .modes { text-align: left; }
.cmp select { padding: 6px 8px; font-size: var(--step--1); min-width: 220px; }
.table-scroll { overflow-x: auto; }

.pkg { display: block; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); padding: 12px 14px; margin-bottom: 10px; cursor: pointer; font-weight: 400; }
.pkg:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.pkg:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.pkg-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.pkg-top strong { font-family: var(--font-display); font-size: var(--step-1); }
.pkg-top span { font-variant-numeric: tabular-nums; font-weight: 700; }
.pkg p { margin: 4px 0 0 26px; font-size: var(--step--1); color: var(--muted); }
.pkg input { margin-right: 8px; }
.totals { border-top: 1px solid var(--line); margin: 14px 0; padding-top: 10px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .grand { font-weight: 700; font-size: var(--step-1); }

.status-line { display: flex; gap: 0; list-style: none; padding: 0; margin: 12px 0 0; font-size: var(--step--1); flex-wrap: wrap; }
.status-line li { padding: 4px 10px; border: 1px solid var(--line); margin: 0 -1px -1px 0; color: var(--muted); }
.status-line li.done { color: var(--ink); background: var(--surface); }
.status-line li.now { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); font-weight: 700; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: var(--step--1); }
.site-foot .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.site-foot nav { display: flex; gap: 16px; }

/* Admin */
.admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.admin-table th, .admin-table td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { color: var(--muted); font-weight: 600; font-size: var(--step--1); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--info-bg); color: var(--info); }
.tag-ok { background: var(--ok-bg); color: var(--ok); } .tag-warn { background: var(--warn-bg); color: var(--warn); } .tag-err { background: var(--err-bg); color: var(--err); }

@media (max-width: 900px) {
  .hero-grid, .report-grid, .grid-2 { grid-template-columns: 1fr; }
  .aside { position: static; }
  .legend, .tally, .counts { grid-template-columns: repeat(2, 1fr); }
  .item { grid-template-columns: 22px minmax(0, 1fr); }
  .item-actions { grid-column: 2; justify-content: flex-start; max-width: none; }
  .decision { text-align: left; } .decision .btn-link { margin-left: 0; }
  .hero { padding-top: 40px; }
}
@media print {
  .site-head, .site-foot, .aside, .item-actions, .no-print { display: none !important; }
  .report-grid { display: block; }
  body { background: #fff; color: #000; }
}
.visually-hidden:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; padding: 8px 14px; background: var(--surface); z-index: 10; border-radius: 4px; }
h4.sub { font: 650 var(--step-1)/1.3 var(--font-display); margin: 0 0 10px; }
.substeps { margin: 0; padding-left: 22px; }
.substeps > li { margin-bottom: 12px; }
.substeps > li::marker { font-weight: 700; }
details.card summary { cursor: pointer; }
.start-steps pre.cmd { white-space: pre-wrap; word-break: break-all; }
