/* ---------------------------------------------------------
   Design tokens
   Clean black-and-white look after the 2026 layout draft:
   black buttons and type, light grey bands, small radii.
   Shared by every page.
--------------------------------------------------------- */
:root {
  --color-bg: #FFFFFF;
  --color-bg-soft: #F4F4F4;
  --color-ink: #111111;
  --color-ink-soft: #5F5F5F;
  --color-border: #E3E3E3;
  /* Edges of form controls: 3.4:1 on white (WCAG 1.4.11 needs 3:1);
     the light hairline stays for cards and dividers. */
  --color-field-border: #8C8C8C;
  --color-error: #C0392B;
  --color-error-bg: #FBEAEA;
  --color-error-text: #A93226;
  --color-success-bg: #EAF6EC;
  --color-success-text: #256029;
  --color-ink-pressed: #333333;
  --color-white: #ffffff;
  /* Only for rating stars. */
  --color-star: #F5B301;
  --color-star-empty: #D6D6D6;

  --font-display: 'Poppins', 'Arial', sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;

  --max-width: 1200px;
  --header-height: 88px;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow-soft: 0 4px 24px rgba(17, 17, 17, 0.08);

  --transition-fast: 0.18s ease;
}

/* ---------------------------------------------------------
   Reset
--------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  line-height: 1.15;
  /* German compounds ("Datenschutzerklärung") are long enough to push a
     narrow phone viewport sideways. */
  overflow-wrap: break-word;
}
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-ink);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* First stop for keyboard users: jump past the header to the content. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-white);
  background: var(--color-ink);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* hidden always wins over a component's own display value. */
[hidden] { display: none !important; }

/* Read by screen readers, not shown. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--color-ink);
  display: inline-block;
  margin-bottom: 0.9em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.btn-primary {
  background: var(--color-ink);
  color: var(--color-white);
  border-color: var(--color-ink);
}
.btn-primary:hover { background: var(--color-ink-pressed); border-color: var(--color-ink-pressed); }
.btn-secondary {
  background: var(--color-white);
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn-secondary:hover { background: var(--color-bg-soft); }

/* Small inline line icons in buttons and links (arrow, play, ...). */
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------
   Header basics (shared; nav/hamburger styling lives in
   site.css, back-link styling lives in legal.css)
--------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  box-shadow: 0 1px 0 var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-height);
}

/* Brand block: our logo, the two makes and the workshop claim.
   Used in the header and the footer. A grid, so the claim below the
   logo gets exactly the logo's column width. */
.brand {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 18px;
  row-gap: 8px;
  flex: none;
}
.brand__row { display: contents; }
.brand__logo {
  height: 30px;
  width: auto;
}
/* Renault diamond and Dacia emblem, cut from the old site's header
   logo. They span both rows, so they are as tall as logo and claim
   together: 30px logo + 8px gap + 12px claim = 50px. The Dacia emblem
   is flat, so it keeps the same visual weight relative to the diamond. */
.brand__makes {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 18px;
  border-left: 2px solid var(--color-ink);
}
.brand__mark { width: auto; }
.brand__mark--renault { height: 50px; }
.brand__mark--dacia { height: 22px; }
/* SVG text stretched to the full width (textLength), so it lines up
   with both edges of the logo. */
.brand__claim {
  grid-column: 1;
  display: block;
  /* Take the logo's column width without widening the column. */
  width: 0;
  min-width: 100%;
  height: auto;
  overflow: visible;
}
.brand__claim text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 8.4px;
  fill: currentColor;
}
.brand__mark + .brand__mark {
  padding-left: 16px;
  border-left: 1.5px solid var(--color-ink);
  /* Same height as the diamond, so the divider matches the first one. */
  box-sizing: content-box;
  height: 22px;
  padding-block: 14px;
}
/* With the makes, the header needs about 630px (brand block 457px plus
   call and menu buttons, see site.css). Below that, the header shows
   logo and claim only; the makes stay in the footer. */
@media (max-width: 680px) {
  .site-header .brand__makes { display: none; }
  /* Without the makes the column gap would only add width. */
  .site-header .brand { column-gap: 0; }
}
@media (max-width: 480px) {
  .brand__logo { height: 24px; }
  .brand__claim { display: none; }
  /* Without the claim the block is only as tall as the logo. */
  .brand { row-gap: 0; }
  .brand__mark--renault { height: 24px; }
  .brand__mark + .brand__mark { height: 11px; padding-block: 6.5px; }
  /* Logo, call button and menu button must fit a 360px screen. */
  .site-header .container { gap: 12px; }
  .site-header .header-call { margin-right: 0; }
}
@media (max-width: 400px) {
  .brand__logo { height: 20px; }
}
/* 320px screens (WCAG reflow): a little less of everything in the header. */
@media (max-width: 360px) {
  .site-header .container { padding: 0 16px; gap: 8px; }
  .site-header .brand__logo { height: 18px; }
}

/* ---------------------------------------------------------
   Footer (identical on every page)
--------------------------------------------------------- */
.site-footer {
  background: var(--color-white);
  color: var(--color-ink);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 28px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  padding-bottom: 32px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-col__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  margin: 0 0 10px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Taller tap areas; the padding replaces the old 6px list gap. */
.footer-col a {
  display: inline-block;
  padding-block: 5px;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}
.footer-col a:hover { color: var(--color-ink); text-decoration: underline; }

/* Partner logos in colour, spread evenly across the full width. */
.footer-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 20px 40px;
  margin: 0 0 24px;
  padding: 20px 28px;
  list-style: none;
  background: var(--color-bg-soft);
  border-radius: var(--radius);
}
.footer-partners img {
  width: auto;
  height: 34px;
}
/* The TÜV wordmark has no padding of its own; keep it from looking bigger. */
.footer-partners img[src$="tuev-nord.svg"] { height: 22px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 0.78rem;
  color: var(--color-ink-soft);
}
.footer-bottom p { margin: 0; }
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-legal-links li + li::before {
  content: "|";
  margin: 0 12px;
  color: var(--color-border);
}
.footer-legal-links a:hover { color: var(--color-ink); text-decoration: underline; }

@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* Keep a compound word or phrase on one line. */
.nowrap { white-space: nowrap; }
