html {
  scroll-behavior: smooth;
}

body {
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #000;
  background: #fff;
}

p {
  color: #1a1a1ac2;
}

h1, h2 {
  font-family: "Raleway", sans-serif;
}

h1 {
  font-weight: 700;
}

h2 {
  font-weight: 400;
  font-style: sans-serif;
}

header {
  text-align: center;
  padding: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease-in-out;
  color: #fff;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Schatten für die Navbar */
}

/* Abstand für den Seiteninhalt schaffen */
section {
  margin-top: 100px; /* Platz für die fixierte Navbar */
  padding: 2rem 0;
  text-align: center;
}
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
/* Allgemeiner Stil für Links */
nav a {
  color: #000000;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease-in-out;
  font-size: 1.3em;
  display: inline-block; /* Sorgt dafür, dass der Bereich klar definiert ist */
}

/* Hover-Effekt für Links */
nav a:hover {
  background: #bdbdbd;
  color: #000000;
  border-radius: 5px;
}

/* Spezieller Stil für Bilder */
nav a img {
  height: 100px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Spezieller Hover-Effekt für das Bild */
nav a img:hover {
  transform: scale(1.1); /* Vergrößerung beim Hover */
  background: none;
}

nav a:hover img {
  background: none; /* Entfernt Hover-Hintergrund bei Bildern */
}
@media (max-width: 768px) {
  nav a {
    font-size: 1em;
    padding: 0.5rem;
  }
}
@media (max-width: 480px) {
  nav a {
    font-size: 0.8em;
    padding: 0.3rem;
  }
}
/* Hero-Bereich */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-top: 4rem;
  overflow: hidden;
}

#hero h1, #hero h2 {
  margin: 0;
  color: #fff;
}

#hero h1 {
  font-size: 4rem;
  opacity: 0;
}

#hero img {
  height: 10%;
  width: 10%;
}

#hero h1.fade-in,
#hero h2.fade-in {
  animation: fadeIn 2s ease-in-out forwards;
}

#hero h1.fade-in {
  animation-delay: 0.5s;
}

/* Sektionen-Styling */
#Vita-Tabellarisch, #Unterricht, #Gear, #Projekte {
  height: auto;
}

#Vita-Tabellarisch, #Unterricht, #Projekte, #Gear {
  position: relative;
  margin-top: 20%;
  width: 50%;
  margin: auto;
  text-align: left;
}

/* Footer */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

/* Medienabfragen */
@media screen and (max-width: 768px) {
  .Leistungen-grid img {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media screen and (max-width: 480px) {
  .Leistungen-grid img {
    flex: 0 0 calc(100% - 200px);
    max-width: calc(100% - 400px);
  }
}

/* Fade-in Animation */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
  /* Dropdown-Styling */
.dropdown {
  position: relative;
  display: inline-block;
  }
  
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
  }
  
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  }
  
.dropdown-content a:hover {
  background-color: #f1f1f1;
  }
  
.dropdown:hover .dropdown-content {
  display: block;
  }
[id] {
  scroll-margin-top: 150px; /* Höhe des Headers */
  }
:any-link{
  color: #000;
}  
#popupbutton button{
  padding: 2em 5em;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 500;
  color: #ffffff;
  background-color: #00aa33;
  border: none;
  border-radius: 45px;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease 0s;
  cursor: pointer;
  outline: none;
  position: fixed;
  right: 5%;
  bottom: 5%;
  z-index: 10;
}

#popupbutton button:hover {
  background-color: #00440b;
  box-shadow: 0px 15px 20px rgba(202, 229, 46, 0.062);
  color: #fff;
  transform: translateY(-7px);
}

#popupbutton button:active {
  transform: translateY(-1px);
}
/* Popup-Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none; /* Versteckt standardmäßig */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Popup-Inhalt */
.popup-content {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  text-align: center;
}

/* Schließen-Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

/* Popup-Formular */
.popup-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popup-content input, 
.popup-content textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.popup-content button {
  padding: 0.75rem;
  background-color: #00aa33;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.popup-content button:hover {
  background-color: #008022;
}
@media (max-width: 768px) {
  nav a {
    font-size: 1em;
    padding: 0.5rem;
  }
}
#Projekte img {
  overflow-clip-margin: content-box;
  overflow: clip;
}
/* Standardgröße für Bilder */
#Projekte img {
  width: auto;
  height: auto;
}

/* Anpassung der Bildgröße für kleinere Bildschirme */
@media (max-width: 1100px) {
  #Projekte img {
    width: 80%;
  }
}

@media (max-width: 480px) {
  #Projekte img {
    width: 60%;
  }
}
nav .hamburger-menu {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  position: fixed; /* Change to fixed */
  top: 0px; /* Adjust the top position as needed */
  left: 10px; /* Adjust the left position as needed */
  padding: 10px;
  z-index: 1000; /* Ensure it stays on top of other elements */
}

nav .hamburger-menu span {
  width: 25px;
  height: 3px;
  background-color: #000000;
}
nav .hamburger-menu.scrolled span {
  background-color: #252525; /* Change to grey when scrolled */
}
nav .navbar.show {
  display: flex;
  flex-direction: column;
}
nav .navbar.show img{
  display: none; /* Hide the logo when the navbar is expanded */
  color : #000000;
}
nav .logo{
  display: none;
}
@media (max-width: 450px) {
  nav .logo{
    display: block;
  }
  nav .navbar {
    display: none;
  }
  nav .hamburger-menu {
    display: flex;
  }
  nav .navbar a[href="#hero"] {
    display: none;
  }
  .reference-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .reference-item {
    font-size: 0.5em;
  }

  #hero h1 {
    bottom: 30%;
    font-size: 3em;
  }
  #hero h2 {
    bottom: 25%;
    font-size: 1.5em;
  }
  header{
    text-align: left;
    padding: 20px;
  }
}
@media  (min-width: 450px) {
  nav .logo {
    display: none !important;
  }
}
