/* GSCHIEL MOTORS – mobile-first */
:root {
  /* Akzent: bräunlicher Rost statt Gold */
  --color-accent-rust: #b56a2e;
  --color-accent-rust-dim: #8c4a1f;
  --color-creme: #f5e6d3;
  --color-creme-muted: #e8d5be;
  --color-brown: #4a3228;
  --color-brown-dark: #2a1a12;
  --color-bg: #14100e;
  --color-rust: #a0522d;
  --color-rust-deep: #7a3d22;
  --font-headline: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Barlow Condensed", system-ui, -apple-system, "Segoe UI",
    sans-serif;
  --font-size-body: clamp(1.08rem, 1rem + 0.45vw, 1.2rem);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.45);
  --radius: 12px;
  --header-h: 4.25rem;
  --content-max: 72rem;
  --legal-max: 48rem;
  --section-blend-a: rgba(20, 16, 14, 1);
  --section-blend-b: rgba(42, 30, 24, 0.92);
  --section-blend-c: rgba(74, 50, 40, 0.42);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
  scroll-padding-top: calc(var(--header-h) + 0.35rem);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: 1.65;
  color: var(--color-creme);
  background: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
}

main {
  overflow-x: hidden;
  max-width: 100%;
  /* Platz für fixierte Menüleiste (Desktop & Mobil) */
  padding-top: var(--header-h);
}

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

a {
  color: var(--color-accent-rust);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-creme);
}

h1,
h2,
h3 {
  font-family: var(--font-headline);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-accent-rust);
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  margin: 0 0 1.25rem;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

h3 {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--color-accent-rust);
  color: var(--color-bg);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: var(--header-h);
  padding: 0.5rem max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left, 0px))
    0.5rem max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-right, 0px));
  max-width: 100%;
  box-sizing: border-box;
  /* overflow-x:hidden clippt auf Mobilgeräten das aufklappende Menü (position:fixed) */
  overflow: visible;
  background: linear-gradient(180deg, rgba(20, 16, 14, 0.98), rgba(20, 16, 14, 0.92));
  border-bottom: none;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(181, 106, 46, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  isolation: isolate;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 1;
  min-width: 0;
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.site-header__quick-link {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-accent-rust);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding: 0.35rem 0;
  max-width: 100%;
}

.site-header__quick-link:hover,
.site-header__quick-link:focus-visible {
  color: var(--color-creme);
}

@media (min-width: 900px) {
  .site-header__quick-link {
    display: none;
  }
}

.site-header__brand img {
  height: clamp(2.5rem, 6vw, 3.25rem);
  width: auto;
  max-width: min(100%, 220px);
  object-fit: contain;
}

@media (max-width: 899px) {
  .site-header__quick-link {
    white-space: normal;
    text-align: right;
    line-height: 1.25;
    max-width: 10rem;
    letter-spacing: 0.035em;
    font-size: 0.86rem;
  }

  /* Logo in der Leiste ca. 30 % kleiner als zuvor */
  .site-header__brand img {
    height: clamp(1.65rem, 3.8vw, 2.1rem);
    max-width: min(118px, 31vw);
    width: auto;
  }
}

.site-header__title {
  font-family: var(--font-headline);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 600;
  color: var(--color-creme);
  line-height: 1.2;
  max-width: 10rem;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: var(--color-brown-dark);
  color: var(--color-accent-rust);
  cursor: pointer;
  box-shadow: none;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  touch-action: manipulation;
}

.nav-toggle__bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bar::before {
  top: -6px;
}

.nav-toggle__bar::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.site-nav {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: var(--color-brown-dark);
  border-bottom: none;
  z-index: 1999;
  pointer-events: none;
}

.site-nav.is-open {
  max-height: min(80vh, 28rem);
  overflow-y: auto;
  pointer-events: auto;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

@media (max-width: 899px) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.65rem 0.75rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--color-creme);
  text-decoration: none;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(181, 106, 46, 0.12);
  color: var(--color-accent-rust);
}

@media (min-width: 900px) {
  .site-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: none;
    z-index: auto;
    pointer-events: auto;
    box-shadow: none;
  }

  .site-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 0;
    gap: 0.15rem 0.35rem;
  }

  .site-nav a {
    padding: 0.5rem 0.65rem;
    font-size: 0.92rem;
  }
}

/* Sections */
main > section {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  padding-left: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-right, 0px));
}

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  min-width: 0;
  width: 100%;
}

.section-lead {
  max-width: 42rem;
  color: var(--color-creme-muted);
  margin-bottom: 2rem;
  overflow-wrap: anywhere;
}

/* Intro / Hero */
#intro {
  padding-top: 0;
  background: none;
}

.hero {
  position: relative;
  min-height: min(84vh, 708px);
  display: flex;
  align-items: flex-end;
  background: var(--color-brown-dark);
  border-radius: clamp(12px, 2.5vw, 20px);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__media-inner {
  position: absolute;
  inset: 0;
}

.hero__media-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Intro mit Freifläche links (Logo-Bereich im Bild) */
.hero__media-inner img.hero-intro-erna {
  object-position: 32% center;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(var(--content-max), 100%);
  margin: 0 auto;
  min-width: 0;
  /* Desktop: ~30 % weniger Abstand oben → Logo-Block weiter nach oben (Mobil überschreibt) */
  padding-top: clamp(2.45rem, 4.725vw, 3.675rem);
  padding-bottom: clamp(2.5rem, 5.5vw, 4rem);
  padding-left: 0;
  padding-right: 0;
}

.hero__content .logo-hero {
  display: block;
  width: auto;
  /* ca. 30 % kleiner als zuvor (0.7 × 520px) */
  max-width: min(100%, 364px);
  height: auto;
  margin-bottom: 1rem;
  object-fit: contain;
  filter: none;
  background: none;
}

.hero__tagline {
  font-family: var(--font-headline);
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 500;
  color: var(--color-creme);
  margin: 0 0 1rem;
  max-width: 42rem;
  min-width: 0;
  overflow-wrap: break-word;
}

/* Intro: Smartphone (u. a. aktuelle iPhone-Viewports: svh, Safe Areas) */
@media (max-width: 767px) {
  #intro {
    padding-left: max(clamp(1.125rem, 5vw, 1.75rem), env(safe-area-inset-left, 0px));
    padding-right: max(
      clamp(1.125rem, 5vw, 1.75rem),
      env(safe-area-inset-right, 0px)
    );
  }

  .hero {
    /* Höhe orientiert an sichtbarer Fläche (Dynamic Island / Toolbars) */
    min-height: min(78vh, 620px);
    min-height: min(82svh, 720px);
    align-items: stretch;
  }

  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(20, 16, 14, 0.96) 0%,
      rgba(20, 16, 14, 0.5) 38%,
      rgba(20, 16, 14, 0.12) 68%,
      transparent 100%
    );
    pointer-events: none;
  }

  .hero__media-inner img.hero-intro-erna {
    object-position: center center;
  }

  .hero__content {
    display: grid;
    grid-template-columns: 1fr;
    /* Vier gleich hohe Streifen: Logo oben im 1. Viertel, Text unten im 4. Viertel */
    grid-template-rows: repeat(4, minmax(0, 1fr));
    flex: 1 1 auto;
    align-self: stretch;
    min-height: 0;
    height: 100%;
    padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
    padding-left: clamp(0.25rem, 1.5vw, 0.75rem);
    padding-right: clamp(0.25rem, 1.5vw, 0.75rem);
    text-align: center;
    gap: 0;
  }

  .hero__content .logo-hero {
    grid-row: 1;
    grid-column: 1;
    justify-self: center;
    align-self: center;
    max-width: min(100%, clamp(200px, 52vw, 240px));
    /* ~30 % des oberen Viertels (≈ 7,5 vh) zusätzlich vom oberen Rand weg */
    margin: clamp(1.75rem, 7.5vh, 4rem) 0 0;
  }

  .hero__tagline {
    grid-row: 4;
    grid-column: 1;
    align-self: center;
    justify-self: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    padding-left: clamp(0.35rem, 2vw, 0.75rem);
    padding-right: clamp(0.35rem, 2vw, 0.75rem);
    font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.3rem);
    line-height: 1.45;
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.9),
      0 0 18px rgba(20, 16, 14, 0.65);
  }
}

/* Über uns */
.about-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  min-width: 0;
}

.about-grid__text {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
}

.about-grid__figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-soft);
}

.about-grid__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.about-grid__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.65rem 0.9rem;
  background: var(--color-brown-dark);
  color: #fff;
  font-family: var(--font-headline);
  font-size: clamp(0.92rem, 0.85rem + 0.3vw, 1.05rem);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.about-mobile-fade {
  display: none;
}

.about-read-more {
  display: none;
}

@media (max-width: 767px) {
  .about-mobile-fade {
    display: block;
    height: 3.75rem;
    margin-top: -3.75rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(20, 16, 14, 0) 0%,
      rgba(20, 16, 14, 0.55) 35%,
      rgba(20, 16, 14, 0.92) 75%,
      rgba(20, 16, 14, 1) 100%
    );
  }

  .about-read-more {
    display: inline !important;
    background: none;
    border: none;
    padding: 0;
    margin: 0.35rem 0 0;
    font: inherit;
    font-size: 1rem;
    color: var(--color-accent-rust);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    cursor: pointer;
    text-align: left;
  }

  .about-rest[hidden] {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .about-mobile-fade {
    display: none !important;
  }

  .about-read-more {
    display: none !important;
  }

  .about-rest {
    display: block !important;
  }

  .about-rest[hidden] {
    display: block !important;
  }
}

.about-grid__signoff {
  margin: 1.25rem 0 0;
  font-weight: 600;
  color: var(--color-creme);
  line-height: 1.5;
}

/* Gallery */
#sortiment-grid,
#verkauft-grid {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.gallery-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  grid-template-columns: 1fr;
  min-width: 0;
  width: 100%;
}

@media (min-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  #verkauft .gallery-grid .vehicle-card.verkauft-card--deferred {
    display: none;
  }

  #verkauft-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #verkauft-grid > .gallery-grid {
    width: 100%;
    align-self: stretch;
  }
}

.verkauft-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.5rem;
  margin: 1.25rem auto 0;
  width: auto;
  min-width: min(100%, 20rem);
  max-width: 20rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--font-size-body);
  color: var(--color-bg);
  background: linear-gradient(
    180deg,
    var(--color-accent-rust),
    var(--color-accent-rust-dim)
  );
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.verkauft-load-more:hover {
  filter: brightness(1.08);
}

.verkauft-load-more:focus-visible {
  outline: 2px solid var(--color-creme);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .verkauft-load-more {
    display: none !important;
  }
}

.vehicle-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-brown-dark);
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  min-width: 0;
  max-width: 100%;
}

/* Naht Bild/Karte für SOLD-Position (75% der Kartenbreite = Bildhöhe bei 4:3) */
#verkauft .vehicle-card {
  container-type: inline-size;
}

#aktuelle-angebote .vehicle-card {
  background: #0a0a0a;
}

.vehicle-card__image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg);
}

.vehicle-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sortiment: Bild-Slider */
.vehicle-card__image-wrap--slider {
  background: var(--color-bg);
}

.vehicle-slider {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.vehicle-slider__viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.vehicle-slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
  will-change: transform;
}

.vehicle-slider__slide {
  flex-shrink: 0;
  height: 100%;
  overflow: hidden;
}

.vehicle-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vehicle-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(20, 16, 14, 0.55);
  color: var(--color-creme);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.vehicle-slider__btn:hover {
  background: rgba(181, 106, 46, 0.75);
  color: var(--color-bg);
}

.vehicle-slider__btn:focus-visible {
  outline: 2px solid var(--color-creme);
  outline-offset: 2px;
}

.vehicle-slider__btn--prev {
  left: 0.5rem;
}

.vehicle-slider__btn--next {
  right: 0.5rem;
}

.vehicle-slider__dots {
  position: absolute;
  bottom: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.vehicle-slider__dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(245, 230, 211, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.vehicle-slider__dot.is-active {
  background: var(--color-accent-rust);
  transform: scale(1.25);
}

.vehicle-slider__dot:focus-visible {
  outline: 2px solid var(--color-creme);
  outline-offset: 2px;
}

.vehicle-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4%;
  background: transparent;
  pointer-events: none;
}

/* Wasserzeichen – heller Beige-/Goldtaupe-Ton, Fahrzeug bleibt gut sichtbar */
.vehicle-card__overlay span {
  display: block;
  max-width: 75%;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 7.5vw, 2.65rem);
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  color: rgba(218, 198, 168, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-shadow: none;
  border: none;
  padding: 0;
}

.vehicle-card__body {
  padding: 1rem 1.1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vehicle-card__body h3 {
  margin-bottom: 0.35rem;
  color: var(--color-creme);
}

#verkauft .vehicle-card__title,
#aktuelle-angebote .vehicle-card__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin: 0;
  font-weight: 400;
  line-height: 1.35;
}

#verkauft .vehicle-card__brand,
#aktuelle-angebote .vehicle-card__brand {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-creme);
}

#verkauft .vehicle-card__model,
#aktuelle-angebote .vehicle-card__model {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--color-creme-muted);
  overflow-wrap: anywhere;
}

#verkauft .vehicle-card__body {
  position: relative;
  padding-bottom: 1.75rem;
}

/* SOLD: weiter unten in der braunen Fläche, nur noch wenig Rahmen im Foto */
#verkauft .vehicle-card::after {
  content: "";
  position: absolute;
  top: calc(75cqw + 1.85rem);
  right: 0.65rem;
  width: 6.375rem;
  height: 3.225rem;
  transform: translateY(-50%) rotate(-30deg);
  transform-origin: center center;
  background: url("../img/sold-stamp.svg") no-repeat center / contain;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

#aktuelle-angebote .vehicle-card__title {
  margin-bottom: 0.75rem;
}

.vehicle-card__subtitle {
  font-size: 0.9rem;
  color: var(--color-creme-muted);
  margin: 0 0 1rem;
}

.btn-willhaben {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-bg);
  background: linear-gradient(180deg, var(--color-accent-rust), var(--color-accent-rust-dim));
  border: none;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.btn-willhaben:hover {
  filter: brightness(1.08);
  color: var(--color-bg);
}

.btn-willhaben:focus-visible {
  outline: 2px solid var(--color-creme);
  outline-offset: 2px;
}

.gallery-empty {
  padding: 2rem;
  text-align: center;
  color: var(--color-creme-muted);
  border: none;
  border-radius: var(--radius);
  background: rgba(26, 18, 16, 0.45);
}

/* Aktuelle Angebote & Ankauf – gleicher warmer Verlauf (inkl. weicher Rand) */
#aktuelle-angebote,
#ankauf {
  position: relative;
  isolation: isolate;
  border: none;
  /* Negativer Rand zieht den Farbverlauf in Vor-/Nachsektion; Padding gleicht Inhalt aus */
  margin-top: clamp(-2rem, -4.5vw, -3.25rem);
  margin-bottom: clamp(-2rem, -4.5vw, -3.25rem);
  padding-top: calc(clamp(3.75rem, 10vw, 6rem) + clamp(2rem, 4.5vw, 3.25rem));
  padding-bottom: calc(clamp(3.75rem, 10vw, 6rem) + clamp(2rem, 4.5vw, 3.25rem));
  background: linear-gradient(
      180deg,
      var(--section-blend-a) 0%,
      rgba(20, 16, 14, 0.92) 3%,
      rgba(20, 16, 14, 0.78) 7%,
      var(--section-blend-b) 14%,
      var(--section-blend-c) 50%,
      var(--section-blend-b) 86%,
      rgba(20, 16, 14, 0.78) 93%,
      rgba(20, 16, 14, 0.92) 97%,
      var(--section-blend-a) 100%
    ),
    linear-gradient(
      135deg,
      rgba(74, 50, 40, 0.28) 0%,
      rgba(26, 18, 16, 0.15) 100%
    );
}

.ankauf-layout {
  display: grid;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 860px) {
  .ankauf-layout {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.ankauf-layout__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  height: 100%;
  min-height: 100%;
}

.ankauf-layout__aside {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  height: 100%;
}

.ankauf-text {
  max-width: none;
}

.ankauf-text p:last-child {
  margin-bottom: 0;
}

.ankauf-service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.ankauf-service-card {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: rgba(26, 18, 16, 0.65);
  border-radius: var(--radius);
  border: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 860px) {
  .ankauf-service-card {
    flex: 1;
    min-height: 0;
  }
}

.ankauf-service-card__title {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-accent-rust);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.ankauf-service-card__text {
  margin: 0;
  font-size: var(--font-size-body);
  color: var(--color-creme-muted);
  line-height: 1.65;
}

.ankauf-cta-wrap {
  margin: 1.5rem 0 0;
  text-align: left;
}

@media (min-width: 860px) {
  .ankauf-cta-wrap {
    margin-top: auto;
  }
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-bg);
  background: linear-gradient(
    180deg,
    var(--color-accent-rust),
    var(--color-accent-rust-dim)
  );
  border: none;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: filter 0.2s ease;
}

.btn-cta:hover {
  filter: brightness(1.08);
  color: var(--color-bg);
}

.btn-cta:focus-visible {
  outline: 2px solid var(--color-creme);
  outline-offset: 2px;
}

/* Kontakt */
#kontakt .contact-block {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  #kontakt .contact-block {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-card {
  padding: 1.25rem 1.35rem;
  background: var(--color-brown-dark);
  border-radius: var(--radius);
  border: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.contact-card dt {
  font-size: clamp(0.82rem, 0.76rem + 0.25vw, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-rust);
  margin-bottom: 0.35rem;
  flex-shrink: 0;
}

.contact-card dd {
  margin: 0;
  font-size: var(--font-size-body);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-card__note {
  margin-top: auto;
  padding-top: 1rem;
  border-top: none;
  font-size: var(--font-size-body);
  font-weight: 600;
  color: var(--color-creme);
  line-height: 1.55;
}

.contact-card a {
  word-break: break-word;
}

.contact-card__contact-lines {
  display: block;
  margin-top: 0.15rem;
}

.contact-card__contact-lines a {
  display: block;
  line-height: 1.35;
  margin: 0;
  padding: 0;
}

.contact-card__contact-lines a + a {
  margin-top: 0.1rem;
}

/* Footer */
.site-footer {
  padding-top: 2rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-right, 0px));
  border-top: none;
  max-width: 100%;
  overflow-x: hidden;
  background: linear-gradient(
    180deg,
    rgba(20, 16, 14, 0.55) 0%,
    rgba(20, 16, 14, 0.92) 28%,
    rgba(18, 14, 12, 1) 100%
  );
}

.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  min-width: 0;
  width: 100%;
}

@media (min-width: 600px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
}

.site-footer__links a {
  color: var(--color-creme-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.site-footer__links a:hover {
  color: var(--color-accent-rust);
}

.site-footer__meta {
  font-size: 0.875rem;
  color: rgba(245, 230, 211, 0.55);
  margin: 0;
}

/* Legal pages */
.page--legal .section-inner--legal {
  max-width: var(--legal-max);
  padding: clamp(2rem, 5vw, 3rem)
    max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left, 0px))
    4rem
    max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-right, 0px));
  min-width: 0;
}

.page--legal h1 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(181, 106, 46, 0.25);
}

.page--legal h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-creme);
}

.page--legal p,
.page--legal li {
  color: var(--color-creme-muted);
}

.page--legal ul {
  padding-left: 1.25rem;
}

.legal-note {
  padding: 1rem;
  border-radius: 8px;
  background: rgba(160, 82, 45, 0.12);
  border: none;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
