/* ============================================================
   VW California Ocean – Verkaufsanzeige
   Stylesheet
   ============================================================ */

:root {
  --color-bg: #f7f2e7;
  --color-bg-alt: #fffdf8;
  --color-primary: #1f4b43;
  --color-primary-dark: #163933;
  --color-secondary: #2f6f6a;
  --color-accent: #d97a3f;
  --color-accent-dark: #b8632f;
  --color-text: #24302c;
  --color-text-soft: #55625c;
  --color-border: #e2d9c4;
  --shadow-soft: 0 10px 30px rgba(31, 75, 67, 0.12);
  --shadow-hover: 0 16px 40px rgba(31, 75, 67, 0.18);
  --radius: 16px;
  --font-heading: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 700;
}

p { margin: 0 0 1em; }

a { color: inherit; }

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-intro {
  max-width: 700px;
  color: var(--color-text-soft);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 231, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--color-accent); }

.main-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.main-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.main-nav a:hover {
  color: var(--color-accent-dark);
  border-color: var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-switch button.active,
.lang-switch button:hover {
  background: var(--color-primary);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-primary-dark);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 24px 70px;
  text-align: center;
  color: #fdf9f0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(217, 122, 63, 0.35), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(47, 111, 106, 0.5), transparent 50%),
    linear-gradient(135deg, var(--color-primary-dark), var(--color-primary) 60%, var(--color-secondary));
  z-index: -1;
}
.hero-content {
  max-width: 780px;
  margin: 0 auto;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.badge-accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin-bottom: 0.4em;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2em;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
  margin-bottom: 2.4em;
}
.hero-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
}
.hero-stats strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #fff;
}
.hero-stats span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(217, 122, 63, 0.4);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ---------- Price strip ---------- */
.price-strip {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}
.price-box {
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  text-align: center;
}
.price-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.price-label {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  font-weight: 600;
}
.price-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent-dark);
}
.price-detail {
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

/* ---------- Highlights ---------- */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.highlight-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.highlight-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.highlight-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4em;
}
.highlight-card p {
  font-size: 0.92rem;
  color: var(--color-text-soft);
  margin: 0;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin: 34px 0 18px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-hover);
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-note {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  font-style: italic;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 26, 23, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  padding: 40px;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-figure {
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(253, 249, 240, 0.12);
  border: 1px solid rgba(253, 249, 240, 0.35);
  color: #fdf9f0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(253, 249, 240, 0.25);
}
.lightbox-close {
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 640px) {
  .lightbox { padding: 16px; }
  .lightbox-nav { width: 40px; height: 40px; }
}

/* ---------- Tables ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.data-table th,
.data-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
.data-table th {
  width: 40%;
  color: var(--color-text-soft);
  font-weight: 600;
  background: rgba(31, 75, 67, 0.04);
}
.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: none;
}

.table-wrap {
  margin-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.options-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-alt);
}
.options-table th,
.options-table td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}
.options-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.options-table tbody tr:hover { background: rgba(217, 122, 63, 0.06); }
.code-cell {
  font-family: "Courier New", monospace;
  font-weight: 700;
  color: var(--color-accent-dark);
  white-space: nowrap;
}

/* ---------- Accessories ---------- */
.accessories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.accessory-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.92rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.accessory-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.accessory-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ---------- Contact ---------- */
.contact-section { text-align: center; }
.contact-card {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 30px 0 14px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, background 0.2s ease;
}
.contact-link:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}
.contact-icon { font-size: 1.1rem; }
.contact-note {
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 30px 24px 50px;
  color: var(--color-text-soft);
  font-size: 0.82rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-alt);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px;
    border-bottom: 1px solid var(--color-border);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--color-border); }
  .nav-toggle { display: flex; }
}

@media (max-width: 520px) {
  .section { padding: 56px 18px; }
  .hero { padding: 70px 18px 50px; }
  .hero-stats { gap: 20px; }
  .price-box { flex-direction: column; gap: 6px; }
}
