/* === Self-hosted Fonts === */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/opensans-300.ttf') format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/opensans-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/opensans-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/playfair-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/playfair-700.ttf') format('truetype');
}

/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #333;
  line-height: 1.7;
  background: #fff;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #2c1810;
  line-height: 1.3;
}

a { color: #8b4513; text-decoration: none; transition: color 0.3s; }
a:hover { color: #c0702a; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(44, 24, 16, 0.95);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.navbar.scrolled .nav-logo img { filter: brightness(0) invert(1); }
.nav-menu {
  list-style: none;
  display: flex;
  gap: 8px;
}
.nav-menu a {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-menu a:hover { background: rgba(255,255,255,0.15); color: #fff; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.nav-toggle span {
  width: 25px; height: 2px;
  background: #fff;
  transition: 0.3s;
}

/* === Hero === */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
}
.hero-slider { position: absolute; inset: 0; }
.hero-slider .slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-slider .slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(44,24,16,0.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}
.hero-content h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.hero-content p {
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 30px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}
.hero-nav {
  position: absolute;
  bottom: 40%;
  left: 0; right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}
.hero-prev, .hero-next {
  pointer-events: all;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  width: 50px; height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 0 3px 0;
}
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,0.4); }

/* === Button === */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: #8b4513;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.3s, transform 0.2s;
}
.btn:hover { background: #a0522d; color: #fff; transform: translateY(-2px); }

/* === Sections === */
.section { padding: 80px 0; }
.section-alt { background: #faf6f2; }
.section-dark { background: #2c1810; color: #e8ddd4; }
.section-dark h2 { color: #fff; }
.section-dark a { color: #d4a574; }
.section-dark a:hover { color: #e8c49a; }

.section h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 16px;
}
.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* === Intro / Features === */
.intro-text {
  max-width: 750px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 1.05rem;
}
.intro-text p { margin-bottom: 12px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature-card {
  text-align: center;
  padding: 40px 25px;
  background: #faf6f2;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.feature-icon { font-size: 2.5rem; margin-bottom: 15px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.95rem; color: #666; }

/* === Two Column === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.col-text p { margin-bottom: 14px; }
.col-text ul { margin: 10px 0 14px 20px; }
.col-text li { margin-bottom: 6px; }

/* === Vehicles === */
.vehicle {
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid #e8ddd4;
}
.vehicle:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.vehicle h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #8b4513;
}
.vehicle > p { margin-bottom: 20px; color: #666; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* === Highlight Box === */
.highlight-box {
  background: #2c1810;
  color: #fff;
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 40px;
}
.highlight-box h3 { color: #d4a574; font-size: 1.4rem; margin-bottom: 10px; }
.price { font-size: 2.2rem; font-weight: 700; color: #fff; margin-bottom: 8px; font-family: 'Playfair Display', serif; }
.price-old { font-size: 1.1rem; font-weight: 300; text-decoration: line-through; color: #999; }

/* === Pricing === */
.pricing-cols { margin-bottom: 30px; }
.pricing-card {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #e8ddd4;
}
.pricing-card h3 { font-size: 1.2rem; margin-bottom: 15px; color: #8b4513; }
.pricing-card ul { list-style: none; }
.pricing-card li {
  padding: 8px 0;
  border-bottom: 1px solid #f0ebe5;
  display: flex;
  justify-content: space-between;
}
.pricing-card li:last-child { border-bottom: none; }

.products-card { margin-bottom: 20px; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.product-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  border-bottom: 1px solid #f0ebe5;
}
.product-item:nth-child(odd) { border-right: 1px solid #f0ebe5; }

.note {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-top: 20px;
}

/* === Info Cards === */
.info-card {
  background: #fff;
  padding: 35px;
  border-radius: 8px;
  border: 1px solid #e8ddd4;
  transition: transform 0.3s, box-shadow 0.3s;
}
.info-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.info-card h3 { color: #8b4513; margin-bottom: 12px; }

/* === Buyer Grid === */
.buyer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}
.buyer-card {
  padding: 35px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e8ddd4;
  transition: transform 0.3s;
}
.buyer-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.buyer-card h3 { color: #8b4513; font-size: 1.1rem; margin-bottom: 10px; }
.buyer-card p { color: #666; font-size: 0.95rem; }

/* === Standplätze === */
.standplaetze-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.standplaetze-content .col-text p { margin-bottom: 14px; }
.standplaetze-content .btn { margin-top: 10px; }
.col-image img { border-radius: 8px; }

/* === Contact === */
.contact-grid { text-align: center; }
.contact-logo {
  max-width: 300px;
  margin: 0 auto 30px;
  filter: brightness(0) invert(1);
}
.contact-details p { font-size: 1.05rem; margin-bottom: 4px; }
.contact-details a { color: #d4a574; }

/* === Legal === */
.legal-text { max-width: 800px; margin: 0 auto; }
.legal-text p { margin-bottom: 12px; }
.legal-text h3 { font-size: 1.2rem; margin: 25px 0 10px; }

/* === Footer === */
.footer {
  background: #1a0e08;
  color: #888;
  text-align: center;
  padding: 25px 0;
  font-size: 0.85rem;
}
.footer-links { margin-top: 8px; }
.footer-links a { color: #999; transition: color 0.3s; }
.footer-links a:hover { color: #d4a574; }

/* === Subpages === */
.subpage .subpage-content { padding-top: 120px; }
.subpage .subpage-content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  color: #2c1810;
  margin-bottom: 30px;
}
.legal-text h4 { font-size: 1.05rem; margin: 20px 0 8px; }
.legal-text ul { margin: 10px 0 14px 20px; }
.legal-text li { margin-bottom: 4px; }

/* === Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  justify-content: center;
  align-items: center;
}
.lightbox.active { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 10px;
  transition: opacity 0.3s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 0.7; }
.lightbox-close { top: 20px; right: 25px; font-size: 3rem; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* === Responsive === */
@media (max-width: 900px) {
  .feature-grid, .buyer-grid { grid-template-columns: 1fr; }
  .two-col, .standplaetze-content { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-item { border-right: none !important; }
  .hero-content h1 { font-size: 2.3rem; }
  .hero-content p { font-size: 1rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(44, 24, 16, 0.97);
    flex-direction: column;
    padding: 15px 0;
  }
  .nav-menu.active { display: flex; }
  .nav-menu a { padding: 12px 25px; display: block; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 50px 0; }
  .section h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 250px; }
  .highlight-box { padding: 25px 15px; }
  .pricing-card { padding: 20px; }
}
