/* Retro-Ekspressen – racing green, chrome and number-plate white */
:root {
  --green: #1d3a2c;
  --green-deep: #132a1f;
  --chrome: #c7ccc9;
  --paper: #eef1ed;
  --white: #ffffff;
  --ink: #18201b;
  --muted: #5b675f;
  --gold: #e3a82b;
  --plate-red: #c8202f;
  --line: #d3d9d4;
  --danger: #a3261c;
  --ok: #2c7a4b;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font: 400 1.0625rem/1.6 var(--body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: .01em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.6rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(48px, 8vw, 88px); }
.narrow { max-width: 760px; }
.section-head { max-width: 62ch; margin-bottom: 28px; }
.section-head p { color: var(--muted); }
.center { text-align: center; margin-top: 32px; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .4em; padding: .8em 1.4em; border: 2px solid var(--gold); border-radius: var(--r); background: var(--gold); color: var(--ink); font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: #f0bb47; border-color: #f0bb47; color: var(--ink); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(127,127,127,.12); border-color: currentColor; color: inherit; }
.btn-small { padding: .5em .9em; font-size: .9rem; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

/* Header */
.site-header { background: var(--green-deep); color: var(--white); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.logo:hover { color: inherit; }
.logo-mark { display: grid; place-items: center; width: 44px; height: 30px; background: var(--white); color: var(--ink); border: 3px solid var(--plate-red); border-radius: 3px; font: 800 1.15rem/1 var(--display); }
.logo-text { font: 800 1.5rem/1 var(--display); }
.logo-text small { display: block; font: 400 .75rem/1.4 var(--body); color: var(--chrome); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--white); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover, .nav a.is-active:not(.btn) { color: var(--gold); }
.badge { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 99px; background: var(--gold); color: var(--ink); font-size: .8rem; text-align: center; }
@media (max-width: 640px) { .logo-text small { display: none; } .nav { gap: 14px; } .nav a:not(.btn) { font-size: .95rem; } }

/* Hero */
.hero { background: radial-gradient(120% 90% at 85% 0%, #2a5340 0%, var(--green) 45%, var(--green-deep) 100%); color: var(--white); }
.hero-inner { padding-block: clamp(64px, 12vw, 140px); }
.hero h1 { max-width: 13ch; font-size: clamp(3.2rem, 9vw, 7rem); line-height: .92; }
.lead { font-size: 1.2rem; max-width: 56ch; color: #dfe6e1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Number plate – the signature element */
.plate { display: inline-block; padding: .18em .55em .12em; background: var(--white); color: var(--ink); border: 3px solid var(--plate-red); border-radius: 4px; font: 800 1.1rem/1 var(--display); letter-spacing: .08em; box-shadow: inset 0 0 0 1px #fff, inset 0 0 0 2px #00000014; }

/* Vehicle cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; background: var(--white); color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.card:hover { color: inherit; border-color: var(--green); }
.card-img { aspect-ratio: 16/10; background: var(--chrome); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 2rem; font-weight: 800; }
.card-body p { color: var(--muted); }
.card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--muted); font-size: .95rem; }
.card-price { margin-top: auto; font-weight: 600; color: var(--green); }

/* Green band */
.band { background: var(--green); color: var(--white); }
.band a:not(.btn) { color: var(--gold); }
.band .section-head p, .band .form-note { color: #c9d4cd; }
.occasions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 40px; }
.occasions li { padding: 18px 0; border-top: 1px solid #ffffff2b; }
.occasions strong { display: block; font: 600 1.5rem/1.1 var(--display); color: var(--gold); margin-bottom: 4px; }
.occasions span { color: #d3ddd6; }

/* Prices */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.price-big { font: 800 2.4rem/1 var(--display); }
.price-big small, .calc-head small { font: 400 1rem var(--body); color: var(--muted); }
.price-sub { color: var(--muted); margin-top: 6px; }
.price-card-note { background: transparent; border-style: dashed; }
.price-card-note ul { margin: 0; padding-left: 1.1em; color: var(--muted); }

/* Steps (a real sequence) */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.steps li { counter-increment: s; position: relative; padding-left: 58px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--gold); font: 800 1.4rem/1 var(--display); }
.steps strong { display: block; font-size: 1.1rem; }
.steps span { color: var(--muted); }

/* Vehicle page */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.vehicle-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .vehicle-grid { grid-template-columns: 1fr; gap: 28px; } }
.gallery-main { aspect-ratio: 4/3; background: var(--chrome); border-radius: 6px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 8px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: var(--chrome); }
.gallery-thumbs button.is-active { border-color: var(--gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-info h1 { font-size: clamp(2.6rem, 5vw, 3.8rem); }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; margin: 0 0 24px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.specs div { background: var(--white); padding: 12px 14px; }
.specs dt { font-size: .82rem; color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.prose p { max-width: 62ch; }
.calc { background: var(--green-deep); color: var(--white); border-radius: 6px; padding: 22px; margin-top: 24px; }
.calc-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.calc-head small, .calc .price-sub, .calc .form-note { color: var(--chrome); }
.calc-field { margin: 16px 0 10px; }
.calc-result { font-size: 1.2rem; }
.calc-result strong { font: 800 1.9rem var(--display); color: var(--gold); }
.booked { margin-top: 16px; padding: 12px 14px; border-left: 4px solid var(--plate-red); background: var(--white); font-size: .95rem; }

/* Forms */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: .7em .8em; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #b9c2bc; border-radius: var(--r); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px #e3a82b55; }
.field-error { display: block; color: #ff9b8f; font-size: .9rem; margin-top: 4px; }
body:not(.admin) main > section:not(.band) .field-error, .admin .field-error { color: var(--danger); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.form-note { font-size: .9rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.check { display: flex; align-items: center; gap: 8px; margin: 8px 0 20px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }

.flash { padding: 12px 16px; border-radius: var(--r); margin-bottom: 16px; border-left: 4px solid; background: var(--white); color: var(--ink); }
.flash-ok { border-color: var(--ok); }
.flash-error { border-color: var(--danger); }

.thanks { text-align: center; padding-block: 40px; }
.thanks-mark { width: 72px; height: 72px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--gold); font-size: 2rem; }
.thanks .lead { color: var(--muted); margin-inline: auto; }

/* Footer */
.site-footer { background: var(--green-deep); color: #cfd8d2; padding-top: 48px; }
.site-footer a:not(.btn) { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.footer-grid strong { display: block; color: var(--white); margin-bottom: 8px; }
.footer-name { font: 800 1.6rem var(--display); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 20px; margin-top: 28px; border-top: 1px solid #ffffff1f; font-size: .88rem; }
.footer-bottom a { color: #9fb0a5 !important; }
.call-fab { display: none; }
@media (max-width: 640px) {
  .call-fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 1.5rem; text-decoration: none; box-shadow: 0 4px 14px #0004; z-index: 30; }
}

/* ---------- Admin ---------- */
.admin main { min-height: 70vh; }
.admin-main { padding-top: 32px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.admin-top h1 { font-size: 2.6rem; margin: 0; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 22px; margin-bottom: 20px; }
.panel-title { font-size: 1.5rem; }
.panel h3 { font-size: 1.3rem; margin-top: 8px; }
.upcoming { list-style: none; margin: 0; padding: 0; }
.upcoming li + li { border-top: 1px solid var(--line); }
.upcoming a { display: block; padding: 8px 0; text-decoration: none; color: var(--ink); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tabs a { padding: .45em .9em; border-radius: 99px; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); font-size: .92rem; }
.tabs a span { color: var(--muted); margin-left: 4px; }
.tabs a.is-active { background: var(--green); color: var(--white); border-color: var(--green); }
.tabs a.is-active span { color: var(--gold); }
.table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table th { font-weight: 600; font-size: .85rem; color: var(--muted); background: #f6f8f6; }
.table tbody tr { cursor: pointer; }
.table tbody tr:hover { background: #f4f7f4; }
.table tr.is-new td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
.table tr.is-new a { font-weight: 600; }
@media (max-width: 720px) {
  .table thead { display: none; }
  .table tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .table td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; }
  .table td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; }
  .table tr.is-new td:first-child { box-shadow: none; }
}
.status { display: inline-block; padding: .2em .7em; border-radius: 99px; font-size: .82rem; font-weight: 600; }
.status-ny { background: #fbe9c3; color: #7a5208; }
.status-besvaret { background: #dde8f7; color: #224a7a; }
.status-booket { background: #d8efe0; color: #1e5a35; }
.status-afvist { background: #ececec; color: #555; }
.empty { padding: 40px 0; }
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.detail { margin: 0 0 12px; }
.detail div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; }
.message { white-space: normal; background: #f6f8f6; padding: 14px; border-radius: var(--r); }
.danger-zone { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.admin-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.admin-card.is-hidden img { opacity: .45; }
.admin-card img { aspect-ratio: 16/9; width: 100%; object-fit: cover; background: var(--chrome); }
.admin-card-body { padding: 16px 18px; }
.admin-card h3 small { font: 400 1rem var(--body); color: var(--muted); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.row-actions form { margin: 0; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.img-item { position: relative; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.img-item img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.img-tag { position: absolute; top: 6px; left: 6px; background: var(--gold); padding: 2px 8px; border-radius: 3px; font-size: .75rem; font-weight: 600; }
.img-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; }
.form-bar { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(to top, var(--paper) 70%, transparent); }
.login-box { max-width: 420px; margin: 40px auto; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.login-box h1 { font-size: 2.4rem; }
.steps-section { padding-top: 0; }
