* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, Arial, sans-serif;
}

body {
  background: #fcfcfc;
}

/* ===== HEADER ===== */
header {
  position: relative;
  width: 100%;
  z-index: 1000;
  background: #fcfcfc; /* optional, aber meist sinnvoll */
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  position: relative;
  z-index: 1000;
  color: white;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.logo img {
  
  /* Falsch: Das Minimum ist größer als das Maximum. Das ergibt ein widersprüchliches Layout.
  height: clamp(100px, 4vw, 48px); */
  
  height: clamp(48px, 4vw, 100px); /* passt sich automatisch an */
  width: auto;
  max-width: 210px; /* Größe Logo */
  object-fit: contain;
}

/* ===== MENU ===== */
.menu {
  display: flex;
  list-style: none;
  margin-left: auto; /* schiebt Menü nach rechts */
  gap: 5px;
  border-radius: 16px;
}

.menu li {
  position: relative;
}

.menu a {
  color: #000000; /*  Textfarbe Menü  */
  text-decoration: none;
  padding: 10px 15px;
  display: block;
}

.menu a:hover {
  color: #ff0000;
}

/* ===== DESKTOP SUBMENU ===== */
.menu li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ededed;
  min-width: 180px;
  display: none;
  padding-left: 30px; /* Einrückung nach rechts */
  border-radius: 16px;
}

@media (min-width: 1025px) {
  .menu li:hover > ul {
    display: block;
  }
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  font-size: 40px; /* Größe Hambuer Button */
  cursor: pointer;
  color: #000000; /* Farbe Hambuer Button */
}

/* ===== SLIDESHOW 3:2 ===== */
.hero {
  width: calc(100% - 40px);
  aspect-ratio: 3 / 2;   /* exakt 3:2 */
  position: relative;
  overflow: hidden;
  margin: 20px auto;
  max-width: 1100px;
  /* max-height: 90vh;      /* optional: verhindert zu hohe Darstellung auf großen Screens */
  border-radius: 10px; 
}
  
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* wichtig für sauberes Cropping */
  /* Desktop: kein Zoom */
}

.caption {
  position: absolute;
  bottom: 15%;
  left: 8%;
  color: white;
}

/* ===== MOBILE ===== */
@media (max-width: 1024px) {

  .hamburger {
    display: block;
  }

  .menu {
    position: absolute;
    top: 60px;
    right: 15px;
    background: #f2f2f2;
    flex-direction: column;
    width: 200px;  /* Breite Submenü, Hamburger  */
    display: none;
    border-radius: 16px;
  }

  .menu.active {
    display: flex;
  }

  /* SUBMENU MOBILE FIX */
  .menu li ul {
    position: static;
    display: none;
    padding-left: 10px; /* Einrückung nach rechts */
    background: #e5e5e5; /* Hintergrund Submenü */
    border: 1px solid #999; /* Rahmen */
    box-sizing: border-box;
  }

  .menu li.open > ul {
    display: block;
  }
}
