@font-face { font-family: "Barlow"; src: url(schriften/barlow-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(schriften/barlow-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(schriften/barlow-condensed-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --signal: #F2B90F;
  --signal-hell: #FCEFC2;
  --asphalt: #23262B;
  --reifen: #4A4F57;
  --blech: #FFFFFF;
  --fahrbahn: #E4E5E2;
  --brems: #B3261E;
  --breite: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blech);
  color: var(--asphalt);
  font: 400 1.0625rem/1.5 "Barlow", system-ui, sans-serif;
}
a { color: inherit; }
h1, h2 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; line-height: 1; margin: 0; }
h2 { font-size: 2rem; }
:focus-visible { outline: 3px solid var(--asphalt); outline-offset: 2px; }

.kopf {
  background: var(--signal);
  padding: 40px 24px 0;
  display: grid;
  justify-items: center;
}
.kopf-text { width: 100%; max-width: var(--breite); }
.marke { margin: 0 0 48px; font-weight: 600; font-size: 1.25rem; }
h1 { font-size: clamp(3.5rem, 12.5vw, 9.5rem); line-height: .9; max-width: 9.5em; }
.unterzeile { font-size: 1.3rem; line-height: 1.35; max-width: 30em; margin: 24px 0 28px; }
.kopf-auto {
  width: min(100%, 980px);
  height: auto;
  margin: 40px 0 -130px;
  justify-self: end;
  position: relative;
  filter: drop-shadow(0 14px 10px rgba(35, 38, 43, .28));
}
@media (min-width: 1400px) { .kopf-auto { margin-right: calc((100vw - var(--breite)) / 2 - 100px); } }

.knopf {
  display: inline-block;
  border: 0;
  border-radius: 4px;
  background: var(--signal);
  color: var(--asphalt);
  padding: 14px 24px;
  font: 700 1.4rem/1 "Barlow Condensed", "Arial Narrow", sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.knopf:hover { background: #FFCB2E; }
.knopf-dunkel { background: var(--asphalt); color: var(--blech); }
.knopf-dunkel:hover { background: #000; }

main { max-width: var(--breite); margin: 0 auto; padding: 170px 24px 72px; scroll-margin-top: 0; }
.bestellung {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  column-gap: 56px;
  align-items: start;
}
.block { grid-column: 1; margin-bottom: 56px; }
.block h2 { margin-bottom: 24px; }
.summe {
  grid-column: 2;
  grid-row: 1 / span 4;
  position: sticky;
  top: 24px;
  background: var(--asphalt);
  color: var(--blech);
  padding: 24px;
  border-radius: 6px;
}
.summe h2 { margin-bottom: 16px; }
.summe a { color: var(--signal); }
dl { margin: 0 0 16px; }
dl div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.total { border-top: 1px solid var(--reifen); margin-top: 8px; padding-top: 12px; align-items: baseline; }
.total dt { font-weight: 600; }
.total dd { font: 700 2.25rem/1 "Barlow Condensed", "Arial Narrow", sans-serif; color: var(--signal); }
.summe .knopf { width: 100%; margin: 8px 0 12px; }
.hinweis { font-size: .9rem; line-height: 1.4; margin: 0 0 12px; color: #D4D6D8; }
.fehler { background: var(--blech); color: var(--brems); padding: 12px; border-radius: 4px; font-size: .95rem; }
.fehler a { color: var(--brems); }

.produkte { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.produkt {
  position: relative;
  display: grid;
  grid-template-rows: 170px auto auto auto;
  align-items: start;
  padding: 16px;
  border: 2px solid var(--fahrbahn);
  border-radius: 6px;
  cursor: pointer;
}
.produkt:hover { border-color: var(--reifen); }
.produkt:has(input:checked) { border-color: var(--asphalt); background: var(--signal-hell); }
.produkt:has(input:focus-visible) { outline: 3px solid var(--asphalt); outline-offset: 2px; }
.produkt input { position: absolute; opacity: 0; }
.produkt img { width: 100%; height: 160px; object-fit: contain; }
.produkt-name { font: 700 1.5rem/1.1 "Barlow Condensed", "Arial Narrow", sans-serif; }
.produkt-info { font-size: .95rem; line-height: 1.35; margin: 4px 0 8px; }
.produkt-preis { font-weight: 600; }

.preise { width: 100%; border-collapse: collapse; margin-bottom: 28px; font-variant-numeric: tabular-nums; }
.preise caption { text-align: left; font-weight: 600; margin-bottom: 8px; }
.preise th, .preise td { padding: 8px 10px; border-bottom: 1px solid var(--fahrbahn); text-align: right; }
.preise th:first-child { text-align: left; font-weight: 400; }
.preise thead th { background: var(--asphalt); color: var(--blech); font-weight: 600; }

.felder { display: grid; gap: 20px; }
.felder-zwei { grid-template-columns: 1fr 1fr; }
.feld-breit { grid-column: 1 / -1; }
.feld label { display: block; font-weight: 600; margin-bottom: 4px; }
.feld input, .feld textarea {
  width: 100%;
  border: 2px solid var(--fahrbahn);
  border-radius: 4px;
  padding: 10px 12px;
  font: inherit;
  color: inherit;
  background: var(--blech);
}
.feld input[type="file"] { padding: 8px; cursor: pointer; }
.feld input:hover, .feld textarea:hover { border-color: var(--reifen); }
.hilfe { font-size: .9rem; line-height: 1.35; margin: 6px 0 0; color: var(--reifen); }
.feld-falle { position: absolute; left: -9999px; }

.fuss {
  background: var(--fahrbahn);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  font-size: .95rem;
}
.fuss p { margin: 0; }
.fuss a { margin-right: 16px; }

.danke-seite { min-height: 100vh; display: grid; align-content: center; padding: 24px; background: var(--signal); }
.danke-seite main { padding: 0; margin: 0 auto; width: 100%; max-width: 640px; }
.danke-seite h1 { font-size: clamp(3rem, 10vw, 5.5rem); margin-bottom: 20px; }
.danke-seite p { font-size: 1.2rem; }

.recht-kopf { background: var(--signal); padding: 20px 24px; }
.recht-kopf .marke { margin: 0; font-weight: 600; font-size: 1.25rem; text-decoration: none; }
.recht { max-width: 720px; margin: 0 auto; padding: 48px 24px 72px; }
.recht h1 { font-size: clamp(2.5rem, 8vw, 4rem); margin-bottom: 8px; }
.recht h2 { font-size: 1.5rem; margin: 32px 0 8px; }
.recht p, .recht li { line-height: 1.6; }
.recht ul { padding-left: 20px; }
.entwurf { display: inline-block; background: var(--signal-hell); padding: 4px 10px; border-radius: 4px; font-weight: 600; font-size: .9rem; }

@media (max-width: 900px) {
  .bestellung { display: block; }
  .summe { position: static; }
  main { padding-top: 96px; }
  .kopf-auto { margin-bottom: -60px; }
}
@media (max-width: 560px) {
  .kopf { padding: 24px 16px 0; }
  main { padding: 80px 16px 48px; }
  .marke { margin-bottom: 28px; }
  .unterzeile { font-size: 1.15rem; }
  .produkte, .felder-zwei { grid-template-columns: 1fr; }
  .produkt { grid-template-rows: auto auto auto auto; }
  .produkt img { height: 130px; }
  .fuss { padding: 24px 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
