:root {
  --papier: #f3f0e8;
  --weiss: #ffffff;
  --tinte: #1c1a17;
  --grau: #5a544b;
  --linie: #ddd6c8;
  --blau: #1c3144;
  --hinweis: #6a5d45;
  --spalte: 40rem;
  --seite: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 5.2rem;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blau);
}

a:visited {
  color: var(--blau);
}

:focus-visible {
  outline: 2px solid var(--blau);
  outline-offset: 3px;
}

::selection {
  background: #d5dde4;
}

.sprung {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  background: var(--weiss);
  color: var(--tinte);
  padding: 0.4rem 0.7rem;
  z-index: 5;
}

.sprung:focus {
  top: 0.6rem;
}

.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;
}

.kopf-leiste {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem 2rem;
  width: 100%;
  padding: 0.85rem max(1.4rem, calc((100% - var(--seite)) / 2 + 1.4rem)) 0.7rem;
  background: var(--papier);
  border-bottom: 1px solid var(--linie);
}

.marke {
  color: inherit;
  text-decoration: none;
}

.marke-name {
  display: block;
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: 1.38rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.marke-zusatz {
  display: block;
  margin-top: 0.15rem;
  color: var(--grau);
  font-size: 0.8rem;
}

.hauptnav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
  margin: 0;
  padding: 0.15rem 0;
  list-style: none;
}

.hauptnav a {
  color: var(--tinte);
  text-decoration: none;
  font-size: 0.98rem;
}

.hauptnav a:hover,
.hauptnav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.kopf {
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
}

.kopf-buehne {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  aspect-ratio: 1000 / 352;
}

.kopf-wagen {
  position: absolute;
  left: 15.5%;
  top: 15%;
  width: 69%;
  height: auto;
  z-index: 0;
}

.kopf-linien {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.kopf-linien .bezug-hof {
  fill: none;
  stroke: #fff;
  stroke-width: 3.4;
  stroke-linecap: round;
}

.kopf-linien .bezug {
  fill: none;
  stroke: #6a6358;
  stroke-width: 1.15;
  stroke-dasharray: 1.5 3.8;
  stroke-linecap: round;
}

.kopf-linien .bezug-punkt {
  fill: #fff;
  stroke: #1c3144;
  stroke-width: 1.15;
}

.kopf-linien .bezug-kern {
  fill: #1c3144;
}

.einblick {
  position: absolute;
  z-index: 2;
  width: 13.5%;
  margin: 0;
}

.einblick img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  border: 1px solid #d5cdc0;
  background: var(--weiss);
  box-shadow: 0 7px 16px rgba(28, 26, 23, 0.1);
}

.einblick-kofferraum { left: 0.2%; top: 22%; width: 12.4%; transform: rotate(-7deg); }
.einblick-vorne { left: 19%; top: 11%; width: 12.2%; transform: rotate(-3deg); }
.einblick-hinten { left: 71%; top: 0.4%; width: 11.4%; transform: rotate(2.4deg); }
.einblick-motor { right: 0.2%; top: 4%; width: 12.6%; transform: rotate(6.5deg); }
.einblick-unterboden { left: auto; right: 1.2%; top: 44%; width: 13%; transform: rotate(2.2deg); }

.einblick-kofferraum img { object-position: center 64%; }
.einblick-vorne img { object-position: 42% 48%; }
.einblick-hinten img { object-position: center 40%; }
.einblick-motor img { object-position: center 40%; }
.einblick-unterboden img { object-position: 58% center; }

main {
  max-width: var(--seite);
  margin: 0 auto;
  padding: 2.4rem 1.4rem 4.2rem;
}

.spalte {
  max-width: var(--spalte);
}

.spalte ul {
  margin: 0 0 0.9rem;
  padding-left: 1.15rem;
}

.spalte li {
  margin: 0 0 0.45rem;
}

h1,
h2,
h3 {
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-weight: 400;
  line-height: 1.22;
  text-wrap: balance;
}

h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4vw, 2.7rem);
  letter-spacing: -0.015em;
}

h2 {
  margin: 0 0 0.9rem;
  font-size: 1.62rem;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

h3 a {
  color: inherit;
  text-decoration: none;
}

h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

p {
  margin: 0 0 0.9rem;
  text-wrap: pretty;
}

.spalte h2 {
  margin-top: 1.8rem;
}

.lead {
  font-size: 1.18rem;
  line-height: 1.5;
}

.kicker {
  margin: 0 0 0.45rem;
  color: var(--grau);
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

section {
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--linie);
}

.verzeichnis {
  max-width: var(--spalte);
  margin-top: 1.6rem;
}

.verzeichnis p {
  margin-bottom: 0.35rem;
  color: var(--grau);
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.verzeichnis ol {
  margin: 0;
  padding-left: 1.15rem;
}

.verzeichnis ol ol {
  margin: 0.15rem 0 0.45rem;
  padding-left: 1.15rem;
}

.verzeichnis a {
  color: var(--tinte);
  text-underline-offset: 0.16em;
}

.modul + .modul,
.beispiel + .beispiel {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--linie);
}

.modul-art {
  margin: 0 0 0.25rem;
  color: var(--grau);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hinweis {
  margin: 1rem 0 0.35rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--hinweis);
}

.signatur {
  margin: 0.25rem 0 0;
  color: var(--grau);
  font-size: 0.95rem;
}

.tabelle-bereich {
  overflow-x: auto;
  margin-top: 1rem;
  border-top: 1px solid var(--linie);
}

table {
  width: 100%;
  min-width: 52rem;
  border-collapse: collapse;
  font-size: 0.94rem;
  line-height: 1.45;
}

caption {
  caption-side: bottom;
  padding-top: 0.7rem;
  color: var(--grau);
  font-size: 0.9rem;
  text-align: left;
}

th,
td {
  padding: 0.72rem 0.75rem;
  border-bottom: 1px solid var(--linie);
  vertical-align: top;
  text-align: left;
  hyphens: auto;
}

thead th {
  font-size: 0.84rem;
  font-weight: 600;
}

tbody th,
thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 11.5rem;
  background: var(--papier);
  font-weight: 600;
}

thead th:first-child {
  z-index: 2;
}

.tabellenkopf-halt {
  display: none;
  position: fixed;
  z-index: 3;
  overflow: hidden;
  background: var(--papier);
  border-bottom: 1px solid var(--linie);
  pointer-events: none;
}

.tabellenkopf-halt.ist-sichtbar {
  display: block;
}

.tabellenkopf-halt table {
  min-width: 0;
  margin: 0;
}

.tabellenkopf-halt thead th {
  background: var(--papier);
}

.tabellenkopf-halt thead th:first-child {
  position: relative;
  left: auto;
  z-index: 1;
  background: var(--papier);
}

.tabelle-hinweis {
  display: none;
  margin: 0.7rem 0 0;
  color: var(--grau);
  font-size: 0.9rem;
}

.anmerkung {
  margin-top: 0.8rem;
  color: var(--grau);
  font-size: 0.95rem;
}

.brotkrumen {
  margin: 0 0 0.8rem;
  color: var(--grau);
  font-size: 0.92rem;
}

.brotkrumen a {
  color: var(--grau);
}

.brotkrumen ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.standorte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem 2.5rem;
  max-width: 44rem;
}

address {
  font-style: normal;
}

.kontaktliste {
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.kontaktliste li {
  margin: 0 0 0.35rem;
}

.fuss {
  max-width: var(--seite);
  margin: 0 auto;
  padding: 1.3rem 1.4rem 2.4rem;
  border-top: 1px solid var(--linie);
  color: var(--grau);
  font-size: 0.92rem;
}

.fuss p {
  margin: 0 0 0.45rem;
}

.fuss a {
  color: var(--grau);
}

#fuss-module a {
  white-space: nowrap;
}

.beispiele-leer {
  max-width: var(--spalte);
}

@media (max-width: 720px) {
  .kopf-leiste {
    align-items: flex-start;
  }

  .kopf-buehne {
    aspect-ratio: 1000 / 400;
  }

  .einblick {
    width: 18%;
  }

  .einblick-vorne,
  .einblick-hinten {
    width: 17%;
  }

  .einblick-kofferraum { left: 0; top: 18%; }
  .einblick-motor { right: 0; top: 1%; }
  .einblick-vorne { left: 14%; top: 8%; }
  .einblick-hinten { left: 58%; top: 0; }
  .einblick-unterboden { left: auto; right: 0; top: 38%; bottom: auto; width: 20%; }

  html {
    scroll-padding-top: 8.5rem;
  }

  tbody th,
  thead th:first-child {
    width: 8.4rem;
    min-width: 8.4rem;
  }

  .tabelle-hinweis {
    display: block;
  }

  main {
    padding-top: 1.7rem;
  }
}

@media print {
  body {
    background: #fff;
  }

  .kopf-leiste {
    position: static;
  }

  .sprung,
  .hauptnav,
  .verzeichnis,
  .tabelle-hinweis,
  .tabellenkopf-halt {
    display: none;
  }

  .einblick,
  .kopf-linien {
    display: none;
  }

  .kopf-buehne {
    aspect-ratio: 3 / 1;
  }

  .kopf-wagen {
    top: 8%;
    width: 84%;
    left: 8%;
  }

  a {
    text-decoration: none;
  }
}
