/* =====================================================================
   V12rulez – Stylesheet
   ---------------------------------------------------------------------
   Farben und Schriften werden zentral hier oben festgelegt.
   Wenn Sie z. B. die Akzentfarbe ändern möchten, reicht es,
   den Wert bei --akzent anzupassen.
   ===================================================================== */

:root {
  --hintergrund: #f5f3ef;      /* Seitenhintergrund (warmes Hellgrau) */
  --flaeche: #ffffff;          /* Karten / Kästen */
  --text: #1d1e20;             /* Haupttext */
  --text-leise: #5c5f66;       /* Nebentext */
  --linie: #e2ded6;            /* Trennlinien */
  --dunkel: #141517;           /* Kopf- und Fußbereich */
  --dunkel-text: #e9e7e3;
  --akzent: #9e2a2b;           /* Akzentfarbe (dunkles Rot) */
  --akzent-hover: #7f1f20;
  --chrom: #b9bcc2;            /* Silber, passend zum Logo */

  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --schrift-titel: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  --breite: 1080px;            /* maximale Inhaltsbreite */
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--akzent); text-underline-offset: 3px; }
a:hover { color: var(--akzent-hover); }

h1, h2, h3 {
  font-family: var(--schrift-titel);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 20px;
}

.abschnitt { padding: clamp(48px, 8vw, 88px) 0; }
.abschnitt--weiss { background: var(--flaeche); }

.kicker {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--akzent);
  margin-bottom: .5em;
}

.lesetext { max-width: 72ch; }

/* ---------------- Kopfleiste ---------------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 21, 23, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.kopf .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.kopf__marke {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--schrift-titel);
  font-size: 1.3rem;
  font-weight: 600;
}
.kopf__marke:hover { color: #fff; }
.kopf__marke img { width: 40px; height: 40px; }
.kopf__aktionen { display: flex; gap: 8px; }

/* ---------------- Buttons ---------------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color .2s, color .2s, border-color .2s;
}
.knopf svg { width: 18px; height: 18px; flex: none; }
.knopf--voll { background: var(--akzent); color: #fff; }
.knopf--voll:hover { background: var(--akzent-hover); color: #fff; }
.knopf--rand { border-color: var(--linie); color: var(--text); background: var(--flaeche); }
.knopf--rand:hover { border-color: var(--text); color: var(--text); }
.knopf--hell { border-color: rgba(255, 255, 255, .25); color: #fff; }
.knopf--hell:hover { border-color: #fff; color: #fff; }

/* Auf dem Handy in der Kopfleiste nur die Symbole zeigen */
@media (max-width: 560px) {
  .kopf .knopf { padding: 10px 12px; }
  .kopf .knopf span { display: none; }
}

/* ---------------- Startbereich ---------------- */

.start {
  background:
    radial-gradient(ellipse at 50% 0%, #2b2d31 0%, var(--dunkel) 70%);
  color: var(--dunkel-text);
  text-align: center;
  padding: clamp(40px, 7vw, 80px) 0 clamp(40px, 6vw, 64px);
}
.start__logo {
  width: clamp(150px, 26vw, 230px);
  margin: 0 auto 24px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6));
}
.start h1 {
  color: #fff;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  letter-spacing: .01em;
  margin-bottom: .2em;
}
.start__slogan {
  font-family: var(--schrift-titel);
  font-style: italic;
  font-size: clamp(1.15rem, 2.8vw, 1.6rem);
  color: var(--chrom);
  margin: 0 0 32px;
}
.start__knoepfe {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: clamp(32px, 5vw, 48px);
}

/* ---------------- Bildergalerie ---------------- */

.galerie {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .45);
}
.galerie__spur {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.galerie__spur::-webkit-scrollbar { display: none; }
.galerie__spur img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 960 / 360;
  object-fit: cover;
  scroll-snap-align: center;
}
.galerie__pfeil {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(20, 21, 23, .55);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color .2s;
}
.galerie__pfeil:hover { background: rgba(20, 21, 23, .85); }
.galerie__pfeil svg { width: 20px; height: 20px; }
.galerie__pfeil--zurueck { left: 10px; }
.galerie__pfeil--weiter { right: 10px; }
.galerie__punkte {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.galerie__punkte button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.galerie__punkte button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25);
  transition: background-color .2s, transform .2s;
}
.galerie__punkte button[aria-current="true"]::before {
  background: #fff;
  transform: scale(1.3);
}
@media (max-width: 560px) {
  .galerie__pfeil { width: 36px; height: 36px; }
  .galerie__pfeil--zurueck { left: 6px; }
  .galerie__pfeil--weiter { right: 6px; }
}

/* ---------------- Händler-Links ---------------- */

.portale {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-left: 4px solid var(--akzent);
  border-radius: var(--radius);
}
.portale p { margin: 0; font-weight: 600; flex: 1 1 260px; }
.portale__knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------- Drei Modelle ---------------- */

.modelle {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.modell {
  background: var(--hintergrund);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 28px 24px 12px;
}
.modell__nr {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dunkel);
  color: #fff;
  font-family: var(--schrift-titel);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.modell p { font-size: 1rem; }

/* ---------------- Fahrzeugtabelle ---------------- */

.hinweis {
  color: var(--text-leise);
  font-size: .95rem;
}

.fahrzeuge {
  width: 100%;
  border-collapse: collapse;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 20px;
}
.fahrzeuge th,
.fahrzeuge td {
  text-align: left;
  vertical-align: top;
  padding: 14px 18px;
  border-bottom: 1px solid var(--linie);
}
.fahrzeuge thead th {
  background: var(--dunkel);
  color: #fff;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
}
.fahrzeuge tbody tr:last-child td { border-bottom: 0; }
.fahrzeuge tbody tr:hover { background: #faf9f6; }
.fahrzeuge td:first-child { font-weight: 600; white-space: nowrap; }
.fahrzeuge .preis {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Auf dem Handy wird jede Zeile zu einer eigenen Karte */
@media (max-width: 700px) {
  .fahrzeuge,
  .fahrzeuge tbody,
  .fahrzeuge tr,
  .fahrzeuge td { display: block; width: 100%; }
  .fahrzeuge { border: 0; background: transparent; }
  .fahrzeuge thead { display: none; }
  .fahrzeuge tr {
    background: var(--flaeche);
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
  }
  .fahrzeuge td { padding: 0; border: 0; }
  .fahrzeuge td:first-child { white-space: normal; }
  .fahrzeuge td:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    color: var(--text-leise);
    font-size: .95rem;
  }
  .fahrzeuge .preis { grid-column: 2; grid-row: 1; color: var(--akzent); }
}

/* ---------------- Kontakt ---------------- */

.kontakt {
  background: var(--dunkel);
  color: var(--dunkel-text);
  text-align: center;
}
.kontakt h2 { color: #fff; }
.kontakt .kicker { color: var(--chrom); }
.kontakt p { color: var(--chrom); max-width: 56ch; margin-left: auto; margin-right: auto; }
.kontakt__karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 640px;
  margin: 32px auto;
}
.kontakt__karte {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.kontakt__karte:hover {
  color: #fff;
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .3);
}
.kontakt__karte svg { width: 26px; height: 26px; color: var(--chrom); }
.kontakt__karte small {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--chrom);
}
.kontakt__karte strong { font-size: 1.15rem; word-break: break-word; }

.sozial {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

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

.fuss {
  background: #0d0e0f;
  color: #8c9097;
  font-size: .9rem;
  padding: 24px 0;
}
.fuss .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.fuss a { color: #c9ccd1; }
.fuss a:hover { color: #fff; }
.fuss nav { display: flex; gap: 20px; }

/* ---------------- Impressum ---------------- */

.rechtstext { max-width: 70ch; }
.rechtstext address { font-style: normal; margin-bottom: 1.4em; }
.rechtstext .klein { font-size: .9rem; color: var(--text-leise); }

/* ---------------- Barrierefreiheit ---------------- */

:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html, .galerie__spur { scroll-behavior: auto; }
}
