/* Autowerkstatt Kolbe — hall floor grey, overalls navy, lift orange. The inspection sticker supplies the only other colour. */
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk-latin-vf.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --floor: #ECEEF0;
  --white: #FFFFFF;
  --navy: #14213D;
  --orange: #F25C05;
  --orange-dark: #D94F00;
  --muted: #535C6B;
  --line: rgba(20, 33, 61, .18);
  --ok: #1E7A3C;
  --late: #B3261E;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--floor); color: var(--navy); font: 400 1.0625rem/1.55 var(--font); }
h1, h2, h3, p, ul, fieldset, legend { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-underline-offset: .2em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 30; }
.skip:focus { left: .5rem; }

h1, h2 { font-weight: 800; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.section-lede { max-width: 40em; margin-top: .9rem; color: var(--muted); }
.fineprint { font-size: .875rem; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .5rem 1.4rem; border: 2px solid transparent; border-radius: 6px; font: 700 1rem/1.2 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s; }
.btn-accent { background: var(--orange); color: var(--navy); }
.btn-accent:hover { background: var(--navy); color: #fff; }
.btn-line { border-color: var(--navy); background: none; color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1.8rem; padding: .7rem var(--pad); background: rgba(236, 238, 240, .94); backdrop-filter: blur(10px); border-bottom: 2px solid var(--navy); }
.brand { display: inline-flex; align-items: center; gap: .6rem; margin-right: auto; font-weight: 900; font-size: 1.5rem; letter-spacing: -.03em; text-decoration: none; }
.top nav { display: flex; gap: 1.6rem; }
.top nav a { font-weight: 600; text-decoration: none; }
.top nav a:hover, .tel:hover { color: var(--orange-dark); }
.tel { font-weight: 800; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }

/* ---------- hero + HU calculator ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; max-width: calc(var(--wrap) + 4rem); margin-inline: auto; padding: clamp(2.2rem, 6vw, 4.5rem) var(--pad) clamp(2.5rem, 6vw, 4.5rem); }
.lede { max-width: 32em; margin-top: 1.3rem; font-size: 1.1875rem; color: var(--muted); }
.season { max-width: 34em; margin-top: 1.6rem; padding: .8rem 1rem; border-left: 6px solid var(--orange); background: var(--white); font-weight: 600; }

.hu { display: grid; gap: 1.1rem; padding: clamp(1.2rem, 3vw, 1.8rem); background: var(--white); border: 2px solid var(--navy); border-radius: 10px; box-shadow: 8px 8px 0 var(--navy); }
.hu h2 { font-size: 1.5rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--navy); border-radius: 6px; overflow: hidden; }
.seg label { position: relative; display: grid; place-items: center; min-height: 2.75rem; font-weight: 700; cursor: pointer; }
.seg label + label { border-left: 2px solid var(--navy); }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { background: var(--navy); color: #fff; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: -5px; }
.hu-row, .field-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: .8rem; }
.field { display: grid; gap: .3rem; align-content: start; }
.field label { font-weight: 700; font-size: .9375rem; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], select { width: 100%; min-height: 3rem; padding: .5rem .8rem; border: 2px solid #76808F; border-radius: 6px; background: #fff; color: var(--navy); font: 400 1.0625rem/1.3 var(--font); }
input[type="text"]:hover, input[type="tel"]:hover, select:hover { border-color: var(--navy); }
[aria-invalid="true"] { border-color: var(--late) !important; background: #FDF1F0 !important; }
.err { font-size: .875rem; font-weight: 600; color: var(--late); }
.err:empty { display: none; }

.hu-result { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.2rem; align-items: center; padding: 1rem; background: var(--floor); border-radius: 8px; }
#plakette { display: block; width: 100%; height: auto; }
#plakette.is-empty { opacity: .25; }
.sticker-month { font: 700 15px var(--font); fill: #111; }
.sticker-due { font: 900 21px var(--font); fill: #111; }
.sticker-year { font: 900 52px var(--font); fill: #111; letter-spacing: -.04em; }
.hu-label { font-size: .875rem; color: var(--muted); }
.hu-date { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.hu-status { display: inline-block; margin: .35rem 0 .4rem; padding: .15rem .7rem; border-radius: 999px; font-weight: 700; font-size: .9375rem; }
.hu-status.is-ok { background: #DDF0E3; color: #14532A; }
.hu-status.is-soon { background: #FFE6C7; color: #7A3A00; }
.hu-status.is-late { background: #FBDAD7; color: #8C1A14; }

/* Tyre tread as a rule between the hero and the calculator. */
.tread { height: 22px; background: repeating-linear-gradient(115deg, var(--navy) 0 12px, transparent 12px 26px), repeating-linear-gradient(65deg, var(--navy) 0 4px, transparent 4px 26px); }

/* ---------- price calculator ---------- */
.calc, .shop, .contact { padding-block: clamp(3.2rem, 7vw, 5.5rem); }
.calc { background: var(--white); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2.2rem; align-items: start; }
#calc { display: grid; gap: 1.8rem; }
#calc legend { margin-bottom: .7rem; font-weight: 800; font-size: 1.125rem; }
.classes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.classes legend { grid-column: 1 / -1; }
.classes label { position: relative; display: block; padding: .7rem .8rem; border: 2px solid var(--line); border-radius: 8px; cursor: pointer; }
.classes label:hover { border-color: var(--navy); }
.classes input { position: absolute; opacity: 0; }
.classes label:has(input:checked) { border-color: var(--navy); background: var(--navy); color: #fff; }
.classes label:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 3px; }
.classes b, .classes small { display: block; }
.classes small { font-size: .8438rem; opacity: .8; }
.services ul { border-top: 2px solid var(--navy); }
.services label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .85rem .2rem; border-bottom: 1px solid var(--line); cursor: pointer; }
.services label:hover { background: var(--floor); }
.services input { width: 1.4rem; height: 1.4rem; margin: 0; accent-color: var(--navy); }
.services b, .services small { display: block; }
.services small { font-size: .9063rem; color: var(--muted); }
.services strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.services label:has(input:disabled) { cursor: default; }
.services label:has(input:disabled) strong { color: var(--ok); }

.total { position: sticky; top: 5.5rem; display: grid; gap: .6rem; padding: 1.5rem; background: var(--navy); color: #fff; border-radius: 10px; }
.total-label { font-size: .9375rem; color: #B8C2D6; }
.total-sum { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 900; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--orange); }
.total-time { color: #D8DEEA; }
.total-time.is-error { color: #FFD0B0; font-weight: 700; }
.total-lines { margin: .4rem 0; border-top: 1px solid rgba(255, 255, 255, .25); }
.total-lines:empty { display: none; }
.total-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid rgba(255, 255, 255, .15); font-size: .9375rem; }
.total-lines b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.total .btn { margin-top: .4rem; }
.total .btn-accent:hover { background: #fff; color: var(--navy); }
.total .fineprint { color: #B8C2D6; }
.total :focus-visible { outline-color: #fff; }

/* ---------- workshop & contact ---------- */
.shop-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.shop-grid > div p { margin-top: 1.2rem; max-width: 28em; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.facts li { padding-top: .9rem; border-top: 2px solid var(--navy); }
.facts p { margin-top: .35rem; font-size: .9688rem; color: var(--muted); }

.contact { background: var(--navy); color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.address { margin-top: 1.3rem; font-size: 1.1875rem; }
.phone { display: inline-block; margin-top: .8rem; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 900; letter-spacing: -.02em; color: var(--orange); text-decoration: none; font-variant-numeric: tabular-nums; }
.phone:hover { text-decoration: underline; }
.open-now { display: inline-flex; align-items: center; gap: .5rem; margin-top: .8rem; font-weight: 600; }
.open-now::before { content: ""; width: .65rem; height: .65rem; border-radius: 50%; background: #8E99AD; }
.open-now.is-open::before { background: #5ADB85; }
.hours { width: 100%; border-collapse: collapse; }
.hours caption { text-align: left; font-weight: 800; font-size: 1.25rem; padding-bottom: .7rem; }
.hours th, .hours td { padding: .65rem 0; border-top: 1px solid rgba(255, 255, 255, .22); text-align: left; font-weight: 400; vertical-align: top; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 800; color: var(--orange); }
.contact :focus-visible { outline-color: #fff; }

/* ---------- footer & dialogs ---------- */
.foot { padding-block: 2rem; background: var(--navy); color: #C3CBDB; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .9688rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; }
.foot-row a { margin-left: 1.2rem; }
.foot strong { color: #fff; }
.linklike { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.linklike:hover, .foot a:hover { color: #fff; }
.foot :focus-visible { outline-color: #fff; }
.demo-note { margin-top: 1.4rem; font-size: .8438rem; color: #98A3B8; }

dialog { width: min(34rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: clamp(1.25rem, 4vw, 2rem); border: 2px solid var(--navy); border-radius: 10px; background: var(--white); color: var(--navy); overflow: auto; }
dialog::backdrop { background: rgba(20, 33, 61, .7); }
dialog h2 { font-size: 1.8rem; }
dialog p { margin-top: 1rem; }
dialog .field, dialog .field-row { margin-top: 1.1rem; }
dialog .field-row .field { margin-top: 0; }
dialog .err { margin-top: 0; }
.summary { padding: .9rem 1rem; background: var(--floor); border-left: 6px solid var(--orange); font-weight: 600; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
dialog > .btn, #request-done .btn { margin-top: 1.5rem; }
#request-done:focus { outline: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero, .calc-grid, .shop-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hu { max-width: 34rem; }
  .total { position: static; }
  .classes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .top nav { display: none; }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .hu-result { grid-template-columns: 5.5rem minmax(0, 1fr); gap: .9rem; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .services label { grid-template-columns: auto minmax(0, 1fr); }
  .services strong { grid-column: 2; }
  .foot-row a { display: block; margin: .4rem 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
