/* Global Styles */

/* Custom properties for colors and fonts */
:root {
  /* Darker primary colour for a more understated red */
  --primary: #b31218;
  /* Even darker shade for hover states */
  --primary-dark: #8a1014;
  --text-dark: #333;
  --bg-light: #f8f8f8;
  --font-headings: 'Poppins', 'Open Sans', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}
body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #fff;
}

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

a:hover {
  text-decoration: underline;
}

header {
  /* Restore the white header with a light divider */
  background-color: #fff;
  border-bottom: 2px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav .logo img {
  /* Noch größeres Logo für stärkere Markenpräsenz */
  height: 240px;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav li {
  font-weight: 600;
}

/* Adjust navigation link colors for a light header */
nav a {
  color: var(--text-dark);
}

nav a:hover,
nav a.active {
  color: var(--primary);
}

/* Hero section */
.hero {
  position: relative;
  height: 65vh;
  min-height: 380px;
  overflow: hidden;
  /* Add a colored border at the bottom for visual continuity */
  border-bottom: 4px solid var(--primary);
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero img.active {
  opacity: 1;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  /* Glassmorphism overlay */
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  padding: 2rem 3rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-text h1 {
  margin: 0;
  font-size: 3rem;
  text-transform: uppercase;
  font-family: var(--font-headings);
}

.hero-text p {
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

.hero-text .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: #fff;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.hero-text .btn:hover {
  background-color: var(--primary-dark);
}

/* Sections */
section {
  padding: 3rem 0;
}

section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  color: var(--primary);
  text-transform: uppercase;
  font-family: var(--font-headings);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

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

.card-body h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: var(--text-dark);
  font-family: var(--font-headings);
}

.card-body p {
  flex: 1;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.card-body .btn {
  align-self: flex-start;
  padding: 0.5rem 1rem;
  background-color: var(--primary);
  color: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
}

.card-body .btn:hover {
  background-color: var(--primary-dark);
}

/* Hover scale effect specifically for model cards */
.model-card img {
  transition: transform 0.3s ease;
}
.model-card:hover img {
  transform: scale(1.05);
}

/* Fullscreen modal for viewing images */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 200;
}
.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.image-modal .close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* Hover effect for cards */
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background-color: #111;
  color: #ccc;
  padding: 3rem 0;
  font-size: 0.9rem;
}

footer .footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

footer h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #fff;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer li {
  margin-bottom: 0.5rem;
}

footer a {
  color: #ccc;
}

footer a:hover {
  color: #fff;
  text-decoration: none;
}

/* Footer grid for pages mit flexibler Spaltenaufteilung */
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Footer bottom row für Copyright */
.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 1rem;
  margin-top: 1rem;
  text-align: center;
  color: #bbb;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .hero-text p {
    font-size: 1rem;
  }

  /* Mobile navigation adjustments */
  .nav {
    flex-direction: column;
    align-items: center;
  }
  .nav .logo img {
    height: 120px;
  }
  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
  }
}