/* 034Motorsport Germany – Schwarz/Gelb, Open Sans lokal (Akzent und Schrift aus design.css). Keine externen Abrufe. */

:root {
  --ink: #15171c;
  --ink-2: #2a2d35;
  --paper: #f4f3ef;
  --card: #ffffff;
  --line: #dcd9d0;
  --muted: #5b5e66;
  --accent: #e30613; /* Tij-Power-Rot aus dem Logo */
  --accent-dark: #b3050f;
  --on-accent: #fff; /* Schrift auf Akzentfläche, bei hellem Akzent dunkel (design.css) */
  --accent-text: var(--accent); /* Akzent als Schriftfarbe auf Weiß */
  --link: var(--accent-dark);
  --tij-grau: #9d9c9c;
  --ok: #166534;
  --ok-bg: #ecf7ef;
  --err: #b91c1c;
  --err-bg: #fdeeee;
  --radius: 10px;
  --max: 1200px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-wrap: break-word;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

main.schmal {
  max-width: 34rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  margin-top: 2rem;
}

h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

a {
  color: var(--link);
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: #ece9e1;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--card);
  padding: 0.5rem 1rem;
}

/* ---------- Kopf ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}

.kopf-innen {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}

.brand-logo {
  display: block;
  flex: none;
  width: 11.5rem; /* 034-Logo, Seitenverhältnis 5,6 : 1 */
  height: auto;
}

.brand-name {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  color: var(--tij-grau);
  border-left: 1px solid #3a3d45;
  padding-left: 0.75rem;
  white-space: nowrap;
}

.admin-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
}

.nav a {
  color: #e7e8eb;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: #fff;
  border-bottom-color: var(--accent);
}

.sprache {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid #4a4e58;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  white-space: nowrap;
}

.sprache:hover {
  border-color: var(--accent);
}

.demo-band {
  background: #fff1f1;
  border-bottom: 1px solid #f6c9cc;
  color: var(--ink-2);
  font-size: 0.88rem;
  padding: 0.5rem 1.25rem;
  text-align: center;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  margin-right: 0.35rem;
}

/* ---------- Startseite ---------- */

.buehne {
  margin: 0;
  border-radius: 14px;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3.5rem);
  background:
    linear-gradient(115deg, rgba(227, 6, 19, 0.2) 0 18%, transparent 18% 100%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
}

.buehne-innen {
  max-width: 50rem;
}

.buehne h1 {
  font-size: clamp(1.45rem, 0.9rem + 3.2vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: inherit;
  opacity: 0.92;
  max-width: 46rem;
}

.marken {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.marken span {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.block {
  margin-top: 2.5rem;
}

.karten {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.karten.drei {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
}

.karte {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  min-width: 0;
}

.karte + .karte,
.zwei + .karte,
.karte + .zwei {
  margin-top: 1rem;
}

.karten > .karte + .karte {
  margin-top: 0;
}

.karte h1 {
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
}

.karte h2:first-child,
.karte h3:first-of-type {
  margin-top: 0;
}

.karte .nr {
  display: block;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent-text);
  margin-bottom: 0.4rem;
}

.hinweis {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.hinweis h2 {
  margin-top: 0;
}

.hinweis > :last-child {
  margin-bottom: 0;
}

/* ---------- Textseiten ---------- */

.text {
  max-width: 46rem;
}

.text .lead {
  color: var(--muted);
}

.inhalt {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding: 0.75rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

/* ---------- Knöpfe, Formulare ---------- */

.knopf {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
}

.knopf:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.knopf.zweit {
  background: transparent;
  color: var(--ink);
  border-color: #b9b5aa;
}

.knopf.zweit:hover {
  border-color: var(--ink);
  background: #f0eee8;
}

.knopf.breit {
  width: 100%;
}

.klein-knopf {
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
}

.knopf:disabled {
  opacity: 0.6;
  cursor: wait;
}

button.link {
  font: inherit;
  background: none;
  border: none;
  color: var(--link);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.knopfreihe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.formular {
  display: grid;
  gap: 0.9rem;
  margin: 1rem 0;
}

.formular.reihe {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  align-items: end;
}

label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 0;
}

input,
select {
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid #b9b5aa;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
.knopf:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(227, 6, 19, 0.35);
  outline-offset: 1px;
}

input[readonly] {
  background: #f0eee8;
}

.meldung {
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}

.meldung.ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.meldung.fehler {
  background: var(--err-bg);
  color: var(--err);
}

.klein {
  font-size: 0.88rem;
  color: var(--muted);
}

.aufklapp {
  margin: 1rem 0;
}

.aufklapp summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--link);
}

/* ---------- Admin ---------- */

.wer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.25rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin: -1rem 0 1rem;
}

.wer form {
  margin: 0;
}

.zwei {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
}

.zwei > .karte + .karte {
  margin-top: 0;
}

.feld-block {
  min-width: 0;
}

.feld-block h2 {
  margin-top: 1rem;
}

.qr {
  width: 11rem;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.25rem;
}

.qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.geheim {
  display: inline-block;
  letter-spacing: 0.05em;
}

.codes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.5rem 1.5rem;
  padding-left: 1.5rem;
  font-size: 1.05rem;
}

.kennzahlen {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1rem;
}

.kennzahlen li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kz-wert {
  font-size: 1.35rem;
  font-weight: 800;
  overflow-wrap: normal;
}

.kz-name {
  color: var(--muted);
  font-size: 0.88rem;
}

.liste {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.benutzer .formular {
  margin-top: 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.umbruch {
  word-break: break-all;
}

/* ---------- Tabellen: breit als Tabelle, schmal als Karten ---------- */

.tabelle {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 1rem 0;
  font-size: 0.93rem;
}

.tabelle th,
.tabelle td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.tabelle th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.tabelle tr:last-child td {
  border-bottom: none;
}

.tabelle .detail {
  font-family: var(--mono);
  font-size: 0.82rem;
  max-width: 28rem;
}

/* Lange technische Werte (Sicherungsnamen, JSON-Details) dürfen überall umbrechen, statt die Tabelle zu sprengen. */
.tabelle .detail,
.tabelle .ziel {
  word-break: break-all;
}

.tabelle .aktion {
  text-align: right;
  white-space: nowrap;
}

.tabelle .aktion form {
  margin: 0;
}

@media (max-width: 760px) {
  .tabelle thead {
    position: absolute;
    left: -9999px;
  }

  .tabelle,
  .tabelle tbody,
  .tabelle tr,
  .tabelle td {
    display: block;
    width: 100%;
  }

  .tabelle {
    border: none;
    background: none;
  }

  .tabelle tr {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.5rem 0.9rem;
    margin-bottom: 0.75rem;
  }

  .tabelle td {
    border: none;
    padding: 0.3rem 0;
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: 0.75rem;
  }

  .tabelle td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted);
    font-size: 0.85rem;
  }

  .tabelle td.aktion {
    display: block;
    text-align: left;
  }

  .tabelle td.aktion::before {
    content: none;
  }

  .tabelle .detail {
    max-width: none;
  }
}

/* ---------- Fuß ---------- */

.fuss {
  background: var(--ink);
  color: #b9bcc4;
  font-size: 0.88rem;
}

.fuss-innen {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.fuss a {
  color: #e7e8eb;
}

/* ---------- Schmale Fenster ---------- */

@media (max-width: 560px) {
  .kopf-innen {
    gap: 0.5rem 0.75rem;
  }

  .brand-logo {
    width: 5.5rem;
  }

  .brand-name {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    padding-left: 0.6rem;
  }

  .admin .brand-name {
    display: none;
  }

  .admin .kopf-innen {
    gap: 0.5rem;
  }

  .admin-badge {
    font-size: 0.68rem;
    padding: 0.15rem 0.4rem;
  }

  .sprache {
    padding: 0.25rem 0.6rem;
  }

  .sprache-lang {
    display: none;
  }

  .nav {
    order: 3;
    width: 100%;
    gap: 0.25rem 1rem;
  }

  .tabelle td {
    grid-template-columns: 7rem 1fr;
  }
}

/* ---------- Sehr breite Monitore (Board-Monitor 3335 px): alles proportional größer ---------- */

/* ---------- Katalog (M4) ---------- */

.filter {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1.25rem 0 0.75rem;
}

.filter .feld {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.filter input,
.filter select {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.fahrzeug-chip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: center;
  background: var(--ok-bg);
  color: var(--ok);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
}

.fahrzeug-chip span {
  overflow-wrap: anywhere;
}

.treffer {
  color: var(--muted);
  font-size: 0.92rem;
}

.artikel-raster {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  /* 16,5rem: Platz für lange deutsche Wörter wie „Zylinderkopfstehbolzen“ ohne Umbruch im Wort */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  gap: 1rem;
}

.artikel-karte a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.artikel-karte a:hover {
  border-color: var(--accent);
}

.artikel-bild {
  aspect-ratio: 1;
  background: #fff;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}

.artikel-bild img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ohne-bild {
  color: var(--muted);
  font-size: 0.88rem;
}

.artikel-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.8rem 0.9rem 0.9rem;
  flex: 1;
  min-width: 0;
}

.artikel-name {
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.artikel-sku {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.artikel-fuss {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  padding-top: 0.4rem;
}

.preis {
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}

.preis-ab {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
}

.artikel-var {
  font-size: 0.82rem;
  color: var(--muted);
}

.blaettern {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 1.5rem;
}

.blaettern a:last-child {
  justify-self: end;
}

/* Fahrzeugfinder */

.schritte {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.schritte li {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  background: var(--card);
}

.schritte li[aria-current='step'] {
  border-color: var(--accent);
  font-weight: 600;
}

.wahl-raster {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: 0.75rem;
}

.wahl-liste,
.wahl-liste ul {
  list-style: none;
  padding: 0;
}

.wahl-liste ul {
  display: grid;
  gap: 0.5rem;
}

.wahl-liste h2 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.6rem;
}

.wahl {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  min-width: 0;
  overflow-wrap: anywhere;
}

.wahl.zeile {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

.wahl span {
  color: var(--muted);
  font-size: 0.88rem;
}

.wahl:hover {
  border-color: var(--accent);
}

/* Artikelseite */

.zurueck {
  margin: 0 0 1rem;
}

.artikel-kopf {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.galerie-gross {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.galerie-klein {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
  gap: 0.5rem;
}

.galerie-klein li,
.galerie-klein a {
  display: block;
  min-width: 0;
}

.galerie-klein img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.kaufbox h1 {
  margin-top: 0;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem);
  overflow-wrap: break-word;
}

.kaufbox .badge {
  margin-left: 0.5rem;
}

.preis-gross {
  font-size: 1.7rem;
  margin: 1rem 0 0.2rem;
}

.preis-gross .preis {
  font-size: inherit;
}

.preis-hinweis,
.lieferzeit {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.2rem 0;
}

.passt {
  display: inline-block;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.passt.ja {
  background: var(--ok-bg);
  color: var(--ok);
}

.passt.nein {
  background: var(--err-bg);
  color: var(--err);
}

.kurz {
  margin-top: 1rem;
}

.varianten {
  margin-top: 1.25rem;
}

.varianten caption {
  text-align: left;
  font-weight: 600;
  padding-bottom: 0.4rem;
}

.zahl {
  text-align: right;
  white-space: nowrap;
}

.artikel-inhalt {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.artikel-beschreibung {
  overflow-wrap: break-word;
  min-width: 0;
}

.artikel-beschreibung table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  max-width: 100%;
}

.artikel-beschreibung td,
.artikel-beschreibung th {
  border: 1px solid var(--line);
  padding: 0.35rem 0.6rem;
  vertical-align: top;
}

.artikel-daten {
  min-width: 0;
  overflow-wrap: anywhere;
}

.artikel-daten h2,
.artikel-beschreibung h2 {
  font-size: 1.15rem;
}

.artikel-daten h2:first-child,
.artikel-beschreibung h2:first-child {
  margin-top: 0;
}

.daten {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.35rem 1rem;
  margin: 0;
}

.daten dt {
  color: var(--muted);
}

.daten dd {
  margin: 0;
}

.fahrzeuge {
  margin: 0.5rem 0;
}

.fahrzeuge summary {
  cursor: pointer;
  font-weight: 600;
}

.fahrzeuge ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

@media (max-width: 900px) {
  .filter {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .filter .feld-suche {
    grid-column: 1 / -1;
  }

  .artikel-kopf,
  .artikel-inhalt {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  /* Herstellertabellen in der Beschreibung (Fitment Guides) zeilenweise statt seitlich überlaufend */
  .artikel-beschreibung table,
  .artikel-beschreibung tbody,
  .artikel-beschreibung tr,
  .artikel-beschreibung th,
  .artikel-beschreibung td {
    display: block;
    width: auto;
  }

  .artikel-beschreibung tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
  }

  .artikel-beschreibung td,
  .artikel-beschreibung th {
    border: none;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .artikel-beschreibung {
    font-size: 0.95rem;
  }

  /* Verschachtelte Listen: weniger Einzug, damit Wörter wie „Höchstgeschwindigkeitsbegrenzung“ in eine Zeile passen */
  .artikel-beschreibung ul,
  .artikel-beschreibung ol {
    padding-left: 1.1rem;
  }

  .filter {
    grid-template-columns: minmax(0, 1fr);
  }

  .daten {
    grid-template-columns: minmax(0, 1fr);
  }

  .daten dd {
    margin-bottom: 0.4rem;
  }
}

/* Warenkorb, Kasse, Bestätigung (M4) */

.kaufen {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.kaufen .feld {
  display: grid;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  min-width: 0;
  flex: 1 1 14rem;
}

.kaufen .feld.menge {
  flex: 0 0 6rem;
}

.kaufen select,
.kaufen input,
.korb-menge input,
.kasse input,
.kasse textarea {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.kasse input[readonly] {
  background: var(--paper);
}

.korb {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.75rem;
}

.korb-zeile {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto auto auto;
  gap: 0.5rem 1rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.korb-bild img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  display: block;
}

.korb-text {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  overflow-wrap: break-word;
}

.korb-menge {
  display: flex;
  align-items: end;
  gap: 0.5rem;
}

.korb-menge label {
  display: grid;
  gap: 0.2rem;
  width: 5rem;
}

.korb-summe {
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}

.link-knopf {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--link);
  text-decoration: underline;
  cursor: pointer;
}

.korb-fuss {
  display: grid;
  justify-items: end;
  gap: 1rem;
}

.summen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.3rem 1.5rem;
  margin: 0.5rem 0 1rem;
  min-width: min(100%, 22rem);
}

.summen dd {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.summen .gesamt {
  font-weight: 700;
  font-size: 1.15rem;
  border-top: 1px solid var(--line);
  padding-top: 0.4rem;
}

.kasse {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.kasse fieldset,
.formular fieldset.gruppe {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1rem 1.1rem 1.1rem;
  margin: 0 0 1rem;
  min-width: 0;
}

.kasse legend,
.formular fieldset.gruppe legend {
  font-weight: 700;
  padding: 0 0.3rem;
}

.kasse .feld {
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 0;
}

.adress-felder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.adress-felder .feld:first-child,
.adress-felder .feld:nth-child(4) {
  grid-column: 1 / -1;
}

.fieldset-auf {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0.9rem 1.1rem;
  margin: 0 0 1rem;
}

.fieldset-auf summary {
  cursor: pointer;
  font-weight: 700;
}

.fieldset-auf[open] summary {
  margin-bottom: 0.75rem;
}

.haken {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  margin: 0.75rem 0;
  font-weight: 400;
  overflow-wrap: break-word;
}

.haken input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
}

.fehlerhaft input,
.fehlerhaft textarea {
  border-color: var(--err);
  background: var(--err-bg);
}

.haken.fehlerhaft {
  color: var(--err);
}

.feld-fehler {
  color: var(--err);
  font-size: 0.85rem;
  font-weight: 400;
}

.kasse-uebersicht {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  position: sticky;
  top: 1rem;
  min-width: 0;
}

.kasse-uebersicht h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.kasse-pos {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  display: grid;
  gap: 0.4rem;
}

.kasse-pos li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  overflow-wrap: break-word;
  min-width: 0;
}

.kasse-pos li > span:first-child {
  min-width: 0;
}

.bestaetigung .hinweis .daten {
  max-width: 34rem;
}

.mono {
  font-family: var(--mono);
}

@media (max-width: 900px) {
  .kasse {
    grid-template-columns: minmax(0, 1fr);
  }

  .kasse-uebersicht {
    position: static;
  }
}

@media (max-width: 760px) {
  .korb-zeile {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .korb-bild img {
    width: 72px;
    height: 72px;
  }

  .korb-menge,
  .korb-zeile > form:not(.korb-menge),
  .korb-summe {
    grid-column: 2;
  }

  .korb-summe {
    text-align: left;
  }

  .korb-fuss {
    justify-items: stretch;
  }
}

@media (max-width: 560px) {
  .adress-felder {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Kundenkonto (M4) */

.konto-form {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.konto-form h2 {
  margin: 0;
}

.konto-form .feld {
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 0;
}

.konto-form input {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.konto-form .knopf {
  justify-self: start;
}

.konto-kopf {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
}

.konto-kopf p {
  margin: 0;
  min-width: 0;
}

.konto-kopf .detail,
.konto-hinweis strong {
  overflow-wrap: anywhere;
}

/* Texteditor im Admin (Artikelbeschreibung) */

.editor {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.editor-titel {
  font-weight: 600;
  font-size: 0.9rem;
}

.editor-leiste {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.editor-leiste button {
  font: inherit;
  font-size: 0.88rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

.editor-leiste button:hover {
  border-color: var(--accent);
}

.editor-flaeche {
  min-height: 14rem;
  max-height: 34rem;
  overflow-y: auto;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.editor-flaeche:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Admin Design */

.auswahl {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.auswahl legend {
  font-weight: 600;
  padding: 0;
  margin-bottom: 0.35rem;
}

.logo-vorschau {
  background: var(--ink);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: inline-block;
}

.logo-vorschau img {
  display: block;
  max-width: 100%;
  height: auto;
}

input[type='color'] {
  width: 4rem;
  height: 2.5rem;
  padding: 0.15rem;
}

@media (min-width: 2200px) {
  html {
    font-size: 135%;
  }

  :root {
    --max: 2000px;
  }
}

@media (min-width: 3000px) {
  html {
    font-size: 160%;
  }

  :root {
    --max: 2500px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .knopf,
  .nav a,
  .sprache {
    transition:
      background-color 0.15s ease,
      border-color 0.15s ease,
      color 0.15s ease;
  }
}

/* Artikelbilder im Admin */
.bilder {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.bilder img {
  width: 10rem;
  height: 10rem;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

textarea {
  font: inherit;
  font-size: 0.95rem;
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid #b9b5aa;
  border-radius: 8px;
}

/* CMS: Startseite mit Bild, Inhaltsseiten, Admin-Formulare */

.buehne.mit-bild .buehne-innen {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: 2rem;
  align-items: center;
}

@media (max-width: 760px) {
  .buehne.mit-bild .buehne-innen {
    grid-template-columns: minmax(0, 1fr);
  }
}

.buehne-bild,
.bild-vorschau img {
  display: block;
  width: 100%;
  max-width: 26rem;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
}

.text-seite {
  max-width: 50rem;
}

.haken-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 0 1rem;
}

input.zahl {
  width: 6rem;
}

.badge.grau {
  background: var(--ink-2);
  vertical-align: middle;
}

.knopf.gefahr {
  background: var(--err);
  border-color: var(--err);
  color: #fff;
}

.wahl-raster.breit {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
}

.tabelle input[type='checkbox'] {
  width: auto;
  justify-self: start;
}

/* M5: Zahlung, Postausgang */

.fehler-text {
  color: var(--err);
  font-weight: 600;
}

.mail-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  font: inherit;
  max-width: 50rem;
}

form.inline {
  display: inline;
  margin-left: 0.5rem;
}

.protokoll-liste {
  padding-left: 1.1rem;
  overflow-wrap: anywhere;
}

.protokoll-liste li {
  margin: 0.3rem 0;
}

.sim .knopfreihe {
  margin-bottom: 1rem;
}

/* ---------- Tij-Power-Auftritt (Board 14.11.2026: „sieht bescheiden aus verglichen mit tij-power.com“) ----------
   Kräftiger dunkler Kopf, Überschriften in Roboto Condensed (lokal), rote Schrägbalken, Bildkacheln wie auf tij-power.com. */

@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/roboto-condensed-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/roboto-condensed-latin-700-normal.woff2') format('woff2');
}

:root {
  --ink: #0f161d;
  --ink-2: #1e2933;
  --paper: #f1f2f4;
  --line: #d9dce1;
  --display: 'Roboto Condensed', 'Arial Narrow', system-ui, sans-serif;
}

h1,
h2,
.nav a,
.knopf,
.kachel-titel,
.marken-band,
.hotline {
  font-family: var(--display);
}

h1 {
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* Kopf: obere Zeile (Logo, Suche, Hotline, Sprache) und Navigationsband */
.kopf {
  background: var(--ink);
  border-bottom: 0;
}

.kopf-oben {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.kopf-oben .brand {
  margin-right: 0;
}

.kopf-suche {
  flex: 1 1 18rem;
  display: flex;
  min-width: 0;
  max-width: 34rem;
  margin-left: auto;
}

.kopf-suche input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #2c3742;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  background: #fff;
  color: var(--ink);
}

.kopf-suche button {
  font: inherit;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 1rem;
  border: 0;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
}

.kopf-suche button:hover {
  background: var(--accent-dark);
}

.hotline {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}

.hotline-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.whatsapp {
  color: var(--tij-grau);
  font-size: 0.85rem;
  text-decoration: none;
}

.whatsapp:hover,
.whatsapp:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.hotline span {
  color: var(--tij-grau);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-right: 0.25rem;
}

.nav-band {
  background: var(--ink-2);
  border-bottom: 3px solid var(--accent);
}

.nav-band .nav {
  padding-top: 0;
  padding-bottom: 0;
  gap: 0 1.6rem;
}

.nav-band .nav a {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.02rem;
  padding: 0.6rem 0 0.5rem;
  border-bottom-width: 3px;
}

/* Bühne: helles Band, Produktbild rechts, Überschrift im roten Schrägbalken */
.buehne {
  background: linear-gradient(115deg, #ffffff 0%, #eef0f3 55%, #dfe3e8 100%);
  color: var(--ink);
  border-radius: 6px;
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem);
  overflow: hidden;
}

.buehne .buehne-innen {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.buehne:not(:has(.buehne-bild)) .buehne-innen {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 760px) {
  .buehne .buehne-innen {
    grid-template-columns: minmax(0, 1fr);
  }
}

.buehne h1.schraeg {
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.9rem);
  margin-bottom: 1.1rem;
}

.schraeg span {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.2em 0.9em 0.2em 0.7em;
  clip-path: polygon(0.45em 0, 100% 0, calc(100% - 0.45em) 100%, 0 100%);
  line-height: 1.15;
}

.buehne .lead {
  color: var(--ink-2);
  opacity: 1;
}

.buehne .buehne-bild {
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  mix-blend-mode: multiply; /* weißer Produktfoto-Hintergrund verschmilzt mit dem Verlauf */
  border-radius: 0;
}

.knopf {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
}

.knopf.hell {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.knopf.hell:hover {
  background: var(--ink);
  color: #fff;
}

/* Band „Passend für“ */
.marken-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.4rem;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  padding: 0.85rem 1.25rem;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.marken-titel {
  color: var(--tij-grau);
  font-size: 0.9rem;
}

.marken-band a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.marken-band a:hover {
  color: var(--accent-text);
}

/* Abschnittsüberschrift mit rotem Strich */
.abschnitt {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.abschnitt::after {
  content: '';
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0 4rem, var(--line) 4rem);
}

/* Warengruppen als Bildkacheln mit dunklem Titelbalken */
.kacheln {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}

@media (min-width: 900px) {
  .kachel.gross {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.kachel a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}

.kachel img {
  position: absolute;
  inset: 0 0 3.2rem;
  width: 100%;
  height: calc(100% - 3.2rem);
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 0.25s ease;
}

.kachel a:hover img {
  transform: scale(1.04);
}

.kachel-titel {
  position: relative;
  background: rgba(15, 22, 29, 0.92);
  padding: 0.65rem 0.9rem;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.1rem;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
}

.kachel.gross .kachel-titel {
  font-size: 1.5rem;
}

.kachel-titel small {
  font-style: normal;
  font-weight: 400;
  text-transform: none;
  font-size: 0.85rem;
  color: var(--tij-grau);
}

.kachel a:hover .kachel-titel {
  background: var(--accent);
}

.kachel a:hover .kachel-titel small {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .kachel img {
    transition: none;
  }
}

/* Artikelkarten etwas kräftiger */
.artikel-karte a {
  border-radius: 6px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.artikel-karte a:hover {
  box-shadow: 0 6px 18px rgba(15, 22, 29, 0.12);
}

/* Auf dem Handy wäre der zweizeilige Kopf als festes Band zu hoch */
@media (max-width: 760px) {
  .kopf {
    position: static;
  }
}

/* Admin: Bilder eines Artikels bearbeiten */
.bild-liste {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}
.bild-liste li {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.bild-liste img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

.preis-statt {
  color: var(--muted, #6b7280);
  font-weight: 400;
  font-size: 0.85em;
}

/* ---------- Admin: Menü links (Board 15.11.2026) ---------- */
.admin-rahmen {
  flex: 1;
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  width: 100%;
  max-width: calc(var(--max) + 16rem);
  margin: 0 auto;
}
.admin-rahmen > main {
  max-width: none;
  margin: 0;
}
.admin-rahmen > main.schmal {
  max-width: 34rem;
}
.admin-seite {
  border-right: 1px solid #dcdee3;
  padding: 1.5rem 0.75rem 2rem 1.25rem;
}
.seitenmenue {
  list-style: none;
  margin: 0;
  padding: 0;
  position: sticky;
  top: 5rem;
}
.seitenmenue-gruppe {
  margin: 1.1rem 0 0.3rem;
  padding: 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b6f78;
}
.seitenmenue a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border-left: 3px solid transparent;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.zahl-bubble {
  margin-left: auto;
  min-width: 1.4rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3rem;
  text-align: center;
}
.admin-menue-mobil summary .zahl-bubble {
  margin-left: 0.5rem;
  display: inline-block;
}
.seitenmenue a:hover {
  background: #e9eaed;
}
.seitenmenue a[aria-current='page'] {
  background: #fff;
  border-left-color: var(--accent);
  color: var(--accent-text);
}
.admin-menue-mobil {
  display: none;
}
@media (max-width: 900px) {
  .admin-rahmen {
    display: block;
  }
  .admin-seite {
    display: none;
  }
  .admin-menue-mobil {
    display: block;
    margin: 1rem 1.25rem 0;
    border: 1px solid #dcdee3;
    border-radius: 8px;
    background: #fff;
  }
  .admin-menue-mobil summary {
    padding: 0.75rem 1rem;
    font-weight: 700;
    cursor: pointer;
  }
  .admin-menue-mobil .seitenmenue {
    position: static;
    padding: 0 0.5rem 0.75rem;
  }
}
body.admin .kopf-innen {
  max-width: calc(var(--max) + 16rem);
}
@media (min-width: 901px) {
  .seitenmenue {
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
  }
}

/* ---------- Liste Thorsten Meier 15.11.2026 ---------- */

/* Passendes Zubehör halb so groß wie die normalen Karten */
.artikel-raster.klein {
  /* etwa halbe Kartenfläche; 12,5rem bei 0,7rem Namen reicht für „Leistungssteigerungspakete,“ ohne Wortbruch */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr));
  gap: 0.6rem;
  font-size: 0.8rem;
}
.artikel-raster.klein .artikel-text {
  padding: 0.5rem;
}
.artikel-raster.klein .artikel-name {
  font-size: 0.7rem;
}

.artikel > .artikel-beschreibung {
  margin-top: 2.5rem;
  max-width: 60rem;
}

.motorsport-hinweis {
  font-size: 0.85rem;
  border-left: 4px solid var(--accent);
  background: #fffbe0;
  padding: 0.5rem 0.75rem;
  margin: 1rem 0;
}

/* Reiter ohne JavaScript: Auswahlknopf versteckt, Beschriftung als Reiter, Inhalt per :checked */
.reiter {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  margin-top: 2rem;
  border-bottom: 1px solid var(--line);
}
.reiter-wahl {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.reiter > label {
  padding: 0.6rem 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  margin-bottom: -1px;
}
.reiter-wahl:checked + label {
  background: var(--card);
  border-color: var(--line);
  border-top: 3px solid var(--accent);
}
.reiter-wahl:focus-visible + label {
  outline: 2px solid var(--ink);
}
.reiter-inhalt {
  display: none;
  order: 1;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 0;
  padding: 1rem 1.25rem;
  overflow-wrap: anywhere;
}
.reiter-wahl:nth-of-type(1):checked ~ .reiter-inhalt:nth-of-type(1),
.reiter-wahl:nth-of-type(2):checked ~ .reiter-inhalt:nth-of-type(2),
.reiter-wahl:nth-of-type(3):checked ~ .reiter-inhalt:nth-of-type(3),
.reiter-wahl:nth-of-type(4):checked ~ .reiter-inhalt:nth-of-type(4),
.reiter-wahl:nth-of-type(5):checked ~ .reiter-inhalt:nth-of-type(5),
.reiter-wahl:nth-of-type(6):checked ~ .reiter-inhalt:nth-of-type(6) {
  display: block;
}
.oe-liste {
  columns: 12rem;
  font-family: var(--mono);
}

/* Fuß in Spalten wie tij-power.com */
.fuss-spalten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1.5rem 2rem;
  width: 100%;
}
.fuss-spalten > * {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.fuss-spalten h2 {
  font-size: 0.95rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent);
}
.fuss-spalten p {
  margin: 0;
  line-height: 1.7;
}
.fuss-unten {
  border-top: 1px solid #2c2f36;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 0.8rem;
}

/* Startbanner: 5 Bilder überblendet, je 6 s (Animation nur ohne „Bewegung reduzieren“) */
.banner {
  position: relative;
  max-width: var(--max);
  margin: 1rem auto 0;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #000;
}
.banner-bild {
  position: absolute;
  inset: 0;
  opacity: 0;
  color: #fff;
  text-decoration: none;
}
.banner-bild:first-child {
  opacity: 1;
}
.banner-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.78);
  font-weight: 700;
  font-size: clamp(0.85rem, 0.7rem + 0.6vw, 1.15rem);
}
@media (prefers-reduced-motion: no-preference) {
  .banner-bild {
    animation: banner 30s infinite;
  }
  .banner-bild:nth-child(2) { animation-delay: 6s; }
  .banner-bild:nth-child(3) { animation-delay: 12s; }
  .banner-bild:nth-child(4) { animation-delay: 18s; }
  .banner-bild:nth-child(5) { animation-delay: 24s; }
  .banner-bild:first-child { animation-delay: -1s; }
  @keyframes banner {
    0% { opacity: 0; z-index: 1; }
    3%, 20% { opacity: 1; z-index: 2; }
    23%, 100% { opacity: 0; z-index: 1; }
  }
}

.artikel-mehr {
  margin-top: 2.5rem;
}

/* Sprachwahl mit Flaggen */
.flaggen {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.flaggen a {
  display: block;
  line-height: 0;
  border: 2px solid transparent;
  border-radius: 3px;
  opacity: 0.65;
}
.flaggen a[aria-current='true'],
.flaggen a:hover {
  opacity: 1;
  border-color: var(--accent);
}
.flaggen img {
  display: block;
  width: 30px;
  height: 18px;
}

/* Bündel-Auswahl */
.auswahl {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 100%;
  min-width: 0;
}
.auswahl .feld {
  flex: none;
}
.auswahl-fest {
  margin: 0;
}
.kaufen .auswahl-zusatz input[type='checkbox'] {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  margin-top: 0.2rem;
}
.auswahl-fest span {
  font-weight: 700;
}
.auswahl-zusatz {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-weight: 600;
  cursor: pointer;
}

.versand-wahl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}

/* nur für Bildschirmleser (Überschrift der Startseite) */
.nur-vorleser{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.admin-link{color:var(--on-accent,#000);background:var(--accent,#fff200);padding:.3rem .7rem;border-radius:4px;font-weight:700;text-decoration:none;white-space:nowrap}

/* Tij-Links rechts im Navigationsband, gleiche Schrift wie die übrigen Menüpunkte; „Tij-Power“ ohne Großbuchstaben */
.nav-tij { margin-left: auto; display: flex; flex-wrap: wrap; gap: 0 1.6rem; }
.nav-band .nav .nav-tij .marke { text-transform: none; letter-spacing: 0.02em; }

/* Mobil: Hamburger-Menü (Axel Weichert 16.11.2026). Kästchen #menu-schalter steuert per :checked, kein JavaScript.
   Zu: Logo, Warenkorb, Burger, Suche. Offen: Navigation untereinander, Tij-Links, Hotline/WhatsApp, Flaggen. */
.mobil-korb, .burger { display: none; }
@media (max-width: 960px) {
  .kopf { position: sticky; top: 0; }
  .kopf-oben { gap: 0.6rem 0.9rem; padding: 0.6rem 1rem; }
  .brand-logo { width: 9rem; }
  .kopf-oben .brand { margin-right: auto; }
  .mobil-korb { display: block; color: #fff; line-height: 0; padding: 0.35rem; }
  .burger { display: block; position: relative; width: 2.75rem; height: 2.75rem; cursor: pointer; border-radius: 4px; }
  .burger span, .burger span::before, .burger span::after {
    position: absolute; left: 0.55rem; width: 1.65rem; height: 3px; background: #fff; border-radius: 2px; content: ''; transition: transform 0.2s, opacity 0.2s;
  }
  .burger span { top: calc(50% - 1.5px); }
  .burger span::before { left: 0; top: -8px; }
  .burger span::after { left: 0; top: 8px; }
  .menu-schalter:focus-visible + .kopf-oben .burger { outline: 2px solid var(--accent); }
  .menu-schalter:checked + .kopf-oben .burger span { background: transparent; }
  .menu-schalter:checked + .kopf-oben .burger span::before { transform: translateY(8px) rotate(45deg); }
  .menu-schalter:checked + .kopf-oben .burger span::after { transform: translateY(-8px) rotate(-45deg); }
  .kopf-suche { flex: 1 1 100%; max-width: none; margin-left: 0; order: 5; }
  .kopf-oben .hotline-block, .kopf-oben .admin-link, .kopf-oben .flaggen { display: none; order: 6; }
  .menu-schalter:checked + .kopf-oben .hotline-block,
  .menu-schalter:checked + .kopf-oben .admin-link,
  .menu-schalter:checked + .kopf-oben .flaggen { display: flex; }
  .nav-band { display: none; max-height: calc(100vh - 8rem); overflow-y: auto; }
  .menu-schalter:checked ~ .nav-band { display: block; }
  .nav-band .nav, .nav-tij { flex-direction: column; align-items: stretch; gap: 0; flex-wrap: nowrap; }
  .nav-band .nav a { padding: 0.85rem 0; border-bottom: 1px solid #2c3742; }
  .nav-band .nav a[aria-current='page'] { color: var(--accent); }
  .nav-tij { margin: 0; width: 100%; }
}
