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

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #1a1a1a;
  background: #ffffff;
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

/* --- Back link --- */
.back-link {
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.back-link a {
  color: #1a5fa8;
  text-decoration: none;
}

.back-link a:hover {
  text-decoration: underline;
}

/* --- Sales page text --- */
.verkauf-text h2 {
  font-size: 1rem;
  font-weight: bold;
  color: #8B5E3C;
  margin: 1.5rem 0 0.5rem;
}

.verkauf-text p {
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.verkauf-text a {
  color: #1a5fa8;
}

/* --- Technical specs table --- */
.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
}

.specs th,
.specs td {
  text-align: left;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.specs th {
  color: #555;
  font-weight: normal;
  width: 42%;
  white-space: nowrap;
}

/* --- Quote --- */
.quote {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.2rem;
  line-height: 1.75;
  color: #1a1a1a;
}

.quote-attr {
  font-size: 0.78rem;
  color: #777;
  margin-top: 0.4rem;
  margin-bottom: 1.75rem;
}

/* --- Hero image --- */
.hero {
  width: 100%;
  margin-bottom: 2rem;
  background: #e8e8e8;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Vehicle title & description --- */
.vehicle-title {
  font-size: 1.05rem;
  font-weight: bold;
  color: #8B5E3C;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.desc {
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 0.3rem;
}

.mehr {
  color: #555;
  text-decoration: underline;
  font-size: 0.88rem;
}

.mehr:hover {
  color: #1a1a1a;
}

/* --- Gallery sections --- */
.gallery-section {
  margin-top: 1.75rem;
}

.gallery-header {
  margin-bottom: 0.5rem;
}

.gallery-label {
  font-weight: bold;
  font-size: 0.93rem;
}

.gallery-hint {
  font-size: 0.78rem;
  color: #888;
  margin-left: 0.4rem;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 6px;
}

.thumb {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #ccc;
  background: #f0f0f0;
  cursor: pointer;
  text-decoration: none;
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}

.thumb:hover img {
  opacity: 0.85;
}

/* Play icon overlay for video thumbs */
.thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  pointer-events: none;
}

/* --- Contact --- */
.contact {
  margin-top: 2.75rem;
  border-top: 1px solid #ddd;
  padding-top: 1.5rem;
}

.contact-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.contact p {
  font-size: 0.9rem;
  line-height: 1.85;
}

.contact a {
  color: #1a5fa8;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

.pdf-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: #1a5fa8;
  text-decoration: underline;
}

.pdf-link:hover {
  color: #0d3f72;
}

.copyright {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #999;
}

/* --- Lightbox --- */
.lb-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lb-backdrop.open {
  display: flex;
}

.lb-box {
  background: #fff;
  border-radius: 6px;
  padding: 1.25rem 1.5rem 1.5rem;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.lb-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: #555;
  line-height: 1;
  padding: 0.2rem;
}

.lb-close:hover {
  color: #1a1a1a;
}

.lb-title {
  font-weight: bold;
  font-size: 0.88rem;
  color: #8B5E3C;
  margin-bottom: 0.85rem;
  padding-right: 1.5rem;
}

.lb-media img,
.lb-media video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.lb-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.lb-arrow {
  background: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.35rem 1.1rem;
  font-size: 1.1rem;
  cursor: pointer;
  color: #555;
  transition: background 0.15s, color 0.15s;
}

.lb-arrow:hover {
  background: #f0f0f0;
  color: #1a1a1a;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .quote {
    font-size: 1rem;
  }

  .thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  .lb-box {
    padding: 1rem;
  }
}
