/* ===== CSS Custom Properties ===== */
:root {
  --navy: #0d1b2a;
  --green: #8bc53f;
  --green-dark: #6fa32e;
  --bg: #f5f5f5;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --transition: 0.25s ease;
  --header-height: 64px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  color: var(--green-dark);
}

ul {
  list-style: none;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.logo-text span {
  color: var(--green);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--transition);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--green);
}

.nav-cta {
  background: var(--green);
  color: var(--navy) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  transition: background var(--transition);
}

.nav-cta:hover {
  background: var(--green-dark);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 99;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: color var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link:last-child {
  color: var(--green);
  border-bottom: none;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2f47 60%, #0d1b2a 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238bc53f' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--green);
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(139, 197, 63, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ===== Section ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.section-divider {
  width: 48px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

/* ===== Vehicle Grid ===== */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

/* Loading / Error State */
.grid-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Vehicle Card ===== */
.vehicle-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--border);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.vehicle-card:hover .card-thumb img {
  transform: scale(1.04);
}

.card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 0.5rem;
  font-size: 0.85rem;
}

.card-thumb-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card-spec {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-spec svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--green);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.card-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.card-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green);
}

.card-type-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.15rem 0.55rem;
  letter-spacing: 0.02em;
  width: fit-content;
}

.btn-detail {
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}

.btn-detail:hover {
  background: #1e3350;
  color: var(--white);
}

/* ===== Contact Section ===== */
.contact-section {
  background: var(--navy);
  color: var(--white);
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.contact-inner .section-title {
  color: var(--white);
}

.contact-inner .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(139, 197, 63, 0.15);
  border: 1px solid rgba(139, 197, 63, 0.3);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-value {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-value a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.contact-value a:hover {
  color: var(--green);
}

/* ===== Footer ===== */
.site-footer {
  background: #070e17;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
}

.site-footer span {
  color: var(--green);
}

/* ===== Back Link ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
  padding: 0.25rem 0;
}

.back-link:hover {
  color: var(--navy);
}

.back-link svg {
  width: 18px;
  height: 18px;
}

/* ===== Detail Page ===== */
.detail-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
}

.detail-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.detail-layout {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
}

/* ===== Carousel ===== */
.carousel {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  user-select: none;
}

.carousel-track-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1a1a1a;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  gap: 0.75rem;
  font-size: 0.9rem;
}

.carousel-slide-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.3;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(13, 27, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 2;
}

.carousel-btn:hover {
  background: var(--navy);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.carousel-prev {
  left: 0.75rem;
}

.carousel-next {
  right: 0.75rem;
}

.carousel-counter {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  z-index: 2;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none;
}

.dot.active {
  background: var(--green);
  transform: scale(1.3);
}

/* ===== Sidebar ===== */
.detail-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

.sidebar-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.sidebar-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 1.5rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
}

.spec-table tr {
  border-bottom: 1px solid var(--border);
}

.spec-table tr:last-child {
  border-bottom: none;
}

.spec-table td {
  padding: 0.6rem 0;
  vertical-align: middle;
}

.spec-table td:first-child {
  color: var(--text-muted);
  width: 45%;
  font-size: 0.82rem;
}

.spec-table td:last-child {
  font-weight: 600;
  color: var(--navy);
}

.btn-call {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem;
  background: var(--green);
  color: var(--navy);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition);
  margin-bottom: 0.75rem;
}

.btn-call:hover {
  background: var(--green-dark);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(139, 197, 63, 0.35);
}

.btn-call svg {
  width: 20px;
  height: 20px;
}

.btn-email {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}

.btn-email:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-email svg {
  width: 18px;
  height: 18px;
}

/* ===== Description ===== */
.detail-desc-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin: 2.5rem 0 0.5rem;
  line-height: 1.2;
}

.detail-mobile-price {
  display: none;
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
  .detail-mobile-price {
    display: block;
  }
}

/* Teilen / Drucken Buttons */
.sidebar-util-btns {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.btn-util {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn-util:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-util svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Print-Flyer: im Browser unsichtbar */
#print-flyer {
  display: none;
}

.detail-description {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-top: 2rem;
}

.detail-description h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}

.detail-description h2:first-child {
  margin-top: 0;
}

.detail-description p {
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.detail-description ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.detail-description ul li {
  padding: 0.35rem 0.6rem;
  background: var(--bg);
  border-radius: 4px;
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.detail-description ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== Filter Bar ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.75rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 150px;
}

.filter-group label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.filter-group select {
  appearance: none;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 2.25rem 0.5rem 0.75rem;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition);
}

.filter-group select:hover,
.filter-group select:focus {
  border-color: var(--green);
  outline: none;
}

.filter-results {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  padding-left: 0.5rem;
}

/* ===== Status Badges (Card) ===== */
.card-thumb {
  position: relative;
}

.status-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.type-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.type-badge.tages { background: var(--navy); color: #fff; }
.type-badge.neu   { background: var(--green); color: var(--navy); }

.status-badge.sold {
  background: #dc2626;
  color: #fff;
}

.status-badge.reserved {
  background: #d97706;
  color: #fff;
}

.vehicle-card--sold {
  opacity: 0.65;
}

.vehicle-card--sold .card-thumb img {
  filter: grayscale(60%);
}

.vehicle-card--sold:hover {
  transform: none;
  box-shadow: var(--shadow);
}

.btn-detail--sold {
  background: var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: default;
}

.card-thumb-link {
  display: block;
  text-decoration: none;
}

/* ===== Status Badge (Sidebar) ===== */
.sidebar-status {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.sidebar-status.sold     { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }
.sidebar-status.reserved { background: #fffbeb; color: #d97706; border: 1px solid #fcd34d; }

.sold-notice {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

/* ===== WhatsApp Button ===== */
.btn-whatsapp {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition);
  margin-bottom: 0.75rem;
}

.btn-whatsapp:hover {
  background: #1da851;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
}

/* ===== Scroll-to-Top ===== */
.scroll-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 50;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--green);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

/* ===== Footer Links ===== */
.site-footer a {
  color: var(--green);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ===== Emissions Block ===== */
.emissions-block {
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}

.energy-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.energy-scale {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 1rem;
}

/* Jede Zeile: Arrow-Div + optionaler Badge nebeneinander */
.energy-row {
  display: flex;
  align-items: center;
  height: 22px;
}

.energy-row.active {
  height: 22px;
}

.energy-arrow {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 16px 0 8px;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%);
}

.energy-letter {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  line-height: 1;
}

.energy-arrow--dark .energy-letter {
  color: #222;
  text-shadow: none;
}

/* Badge: Pfeilform nach links, zeigt auf aktive Zeile */
.energy-badge {
  margin-left: auto;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px 3px 17px;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  clip-path: polygon(11px 0%, 100% 0%, 100% 100%, 11px 100%, 0% 50%);
}

/* 3-spaltige WLTP-Tabelle */
.wltp-table {
  margin-bottom: 0.75rem;
}

.wltp-table thead tr {
  border-bottom: 2px solid var(--border);
}

.wltp-table th {
  padding: 0.35rem 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: right;
}

.wltp-table th:first-child {
  text-align: left;
  width: 42%;
}

.wltp-table th small {
  font-weight: 400;
  display: block;
}

.wltp-table td {
  text-align: right;
  font-size: 0.82rem;
}

.wltp-table td:first-child {
  text-align: left;
  color: var(--text-muted);
  width: 42%;
}

.wltp-table td:nth-child(2),
.wltp-table td:nth-child(3) {
  font-weight: 600;
  color: var(--navy);
  padding-left: 0.5rem;
}

.emissions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}

.emissions-table tr {
  border-bottom: 1px solid var(--border);
}

.emissions-table tr:last-child {
  border-bottom: none;
}

.emissions-table td {
  padding: 0.45rem 0;
  vertical-align: middle;
}

.emissions-table td:first-child {
  color: var(--text-muted);
  width: 65%;
}

.emissions-table td:first-child small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.75;
}

.emissions-table td:last-child {
  font-weight: 600;
  color: var(--navy);
  text-align: right;
}

.emissions-notice {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.5rem;
}

.emissions-notice a {
  color: var(--text-muted);
  text-decoration: underline;
}

.emissions-notice a:hover {
  color: var(--navy);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 3.5rem 1.25rem;
  }

  .vehicles-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  /* WLTP 3-spaltig: kompakter auf Mobil */
  .wltp-table th,
  .wltp-table td {
    font-size: 0.72rem;
    padding-left: 0.25rem;
  }

  .wltp-table th:first-child,
  .wltp-table td:first-child {
    width: 38%;
  }

  .wltp-table th small {
    display: inline;
    font-size: 0.65rem;
  }

  /* Emissions block – stacked table layout on narrow screens (nicht für WLTP) */
  .emissions-table:not(.wltp-table) tr {
    display: block;
    padding: 0.35rem 0;
  }

  .emissions-table:not(.wltp-table) td {
    display: block;
    padding: 0;
    width: 100%;
    text-align: left;
  }

  .emissions-table:not(.wltp-table) td:first-child {
    width: 100%;
    font-size: 0.72rem;
    margin-bottom: 1px;
  }

  .emissions-table:not(.wltp-table) td:last-child {
    text-align: left;
  }

  /* Energy scale: shrink badge on narrow screens */
  .energy-badge {
    font-size: 0.7rem;
    padding: 2px 8px 2px 14px;
    clip-path: polygon(9px 0%, 100% 0%, 100% 100%, 9px 100%, 0% 50%);
  }

  .energy-letter {
    font-size: 0.65rem;
  }

  .energy-row.active {
    height: 22px;
  }
}

/* ===== Print / Flyer ===== */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Alles verstecken außer dem Flyer */
  body > *:not(#print-flyer) { display: none !important; }
  #print-flyer {
    display: block !important;
    font-family: sans-serif;
    color: #000;
    padding: 1.5cm 2cm;
    box-sizing: border-box;
  }

  /* Flyer-Layout */
  .pf-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #0d1b2a;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
  }
  .pf-dealer-name { font-size: 1.2rem; font-weight: 800; color: #0d1b2a; }
  .pf-dealer-contact { font-size: 0.8rem; color: #555; }

  .pf-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
  }
  .pf-title { font-size: 1.5rem; font-weight: 800; color: #0d1b2a; margin: 0; }
  .pf-price { font-size: 1.4rem; font-weight: 800; color: #8bc53f; }

  .pf-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
  }
  .pf-img { width: 100%; border-radius: 6px; object-fit: cover; aspect-ratio: 16/10; }

  .pf-specs { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
  .pf-spec-label { color: #555; padding: 0.3rem 0.5rem 0.3rem 0; width: 45%; }
  .pf-spec-val { font-weight: 700; color: #0d1b2a; padding: 0.3rem 0; }
  .pf-specs tr { border-bottom: 1px solid #e5e7eb; }
  .pf-specs tr:last-child { border-bottom: none; }

  .pf-desc { font-size: 0.82rem; line-height: 1.6; color: #333; margin-bottom: 0.75rem; }
  .pf-desc h2 { font-size: 0.95rem; color: #0d1b2a; margin: 0.75rem 0 0.3rem; }
  .pf-desc ul { padding-left: 1.2rem; margin: 0.3rem 0; }

  .pf-notice { font-size: 0.65rem; color: #888; border-top: 1px solid #e5e7eb; padding-top: 0.4rem; margin-top: 0.5rem; }

  .pf-footer {
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #0d1b2a;
    font-size: 0.75rem;
    color: #555;
    text-align: center;
  }
}
