
:root {
  --primary: #003348;
  --secondary: #ffffff;
  --text: #1e1e1e;
  --light-gray: #f0f0f0;
  --font: 'Inter', sans-serif;
}

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

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

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

.header {
  background-color: var(--primary);
  color: white;
  padding: 0.3rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.shrink {
  padding: 0.2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background-color: var(--primary); /* kann auch etwas dunkler oder heller sein */
}

.header.shrink .logo img {
  max-width: 120px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 1.6rem;
  font-weight: bold;
}

.logo img {
  max-width: 180px;
  transition: all 0.3s ease;
}

.nav {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.nav.active {
  max-height: 350px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav.closing {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

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

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.nav a:hover {
  opacity: 0.7;
}

.hero {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 0.5rem 0.5rem;
}

.hero h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.btn-primary {
  background-color: white;
  color: var(--primary);
  padding: 0.8rem 1.5rem;
  border: 2px solid white;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 2rem;
  display: inline-block;
  transition: all 0.3s;
}

.btn-primary:hover {
  background-color: var(--light-gray);
  border-color: var(--light-gray);
}

section {
  padding: 4rem 0;
}

.services-section,
.about-section,
.contact-section {
  background-color: var(--secondary);
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
  font-weight: 500;
}

.card:hover {
  transform: translateY(-5px);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin-top: 2rem;
  width: 100%;
}

form input,
form textarea {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  width: 100%;
}

form button {
  background-color: var(--primary);
  color: white;
  padding: 1rem;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

form button:hover {
  background-color: #003d80;
}

.footer {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 1rem;
}

.slideshow-container {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.caption {
  position: absolute;
  bottom: 30px;
  left: 40px;
  background-color: #00334895;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: bold;
}

.hamburger {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  width: 30px;
  height: 24px;
  justify-content: center;
  align-items: center;
  z-index: 1100;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav ul {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background-color: var(--primary);
  }
  
  .nav {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    display: block;  /* Menü in der mobilen Ansicht standardmäßig blockieren */
  }

  .nav.active {
    max-height: 350px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    display: block;  /* Sichtbar, wenn aktiv */
  }

  .hero {
    padding: 1rem 1rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .slideshow-container {
    height: 300px;
  }

  .caption {
    font-size: 0.9rem;
    left: 20px;
    bottom: 20px;
    padding: 0.4rem 0.8rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .btn-primary {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .hamburger {
    display: flex;
  }
  
  .piktogramme img {
	max-width: 300px;
  }

}

@media (min-width: 768px) {
  .nav {
	display: flex;
    max-height: none;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}
