/* Fonts */
@font-face {
  font-family: MulishLight;
  src: url(./font/mulish/Mulish-Light.ttf);
}

@font-face {
  font-family: MulishBold;
  src: url(./font/mulish/Mulish-Bold.ttf);
}

/* Global Styles */
body {
  font-family: MulishLight;
  margin: 0;
  padding: 0;
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 15px;
  padding: 2% 5%;
  height: 50px;
  box-shadow: rgba(0, 0, 0, 0.521) 0 59px 49px;
  gap: 10px;
  justify-content: space-between;
}

.left-side {
  display: flex;
  gap: 10px;
}

.flag-dropdown {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-right: 10px;
}

.flag {
  width: 50px;
  height: auto;
  margin-right: 2%;
  border-radius: 5px;
}

.arrow {
  font-size: 12px;
}

.search-input {
  border: none;
  outline: none;
  padding: 10px;
  font-size: 16.5px;
  flex-grow: 1;
}

.search-button {
  background-color: #7176ff;
  color: white;
  border: none;
  padding: 10px 40px;
  font-size: 16.5px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropbtn {
  background-color: white;
  border: 1px solid #ccc;
  padding: 10px 70px;
  font-size: 16.5px;
  border-radius: 5px;
  width: 260px;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  font-size: 17px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Header */
header {
  position: relative;
  height: 80vh;
  background: url('./img/headerbodybackground.jpg') no-repeat center center/cover;
}

header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 53, 0.5) 10%, rgba(0, 0, 0, 0) 90%);
}

.header-content {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 1;
  font-size: 30px;
}

.header-content h1 {
  font-size: 3rem;
  margin: 0;
}

.header-content p {
  font-size: 1.25rem;
}

/* Footer */
footer {
  margin-top: 1%;
  text-align: center;
  font-size: 20px;
}

/* Cards */
.raited-card {
  background-color: rgb(255, 255, 255);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.17);
  border-radius: 10px;
  width: 300px;
  margin: 0 auto;
}

.raited-card:hover {
  background-color: rgba(197, 197, 197, 0.138);
}

/* Sidebar */
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #ffffff;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
  color: rgb(0, 0, 0);
}

.sidebar a {
  padding: 10px 15px;
  text-decoration: none;
  text-align: center;
  font-size: 20px;
  color: rgb(0, 0, 0);
  display: block;
  transition: 0.3s;
}

.sidebar a:hover {
  text-decoration: underline;
}

.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
  margin-left: 10px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #7176ff;
}

input:checked + .slider:before {
  transform: translateX(14px);
}

nav {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 50px;
  position: absolute;
  width: calc(100% - 100px);
  top: 0;
  z-index: 1000;
}

nav h1 {
  margin: 0;
  font-size: 1.5rem;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 40px;
  margin: auto;
  display: flex;
  position: relative;
}

nav ul li {
  margin-left: 20px;
  position: relative;
}

nav ul li a {
  position: relative;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover {
  text-decoration: underline;
}

.logo {
  height: 40px;
  margin-top: -20%;
  margin-left: 10%;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  nav h1 {
    margin-bottom: 10px;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin-left: 0;
    margin-bottom: 10px;
  }

  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .raited-card {
    width: 100%;
  }

  .header-content h2 {
    font-size: 1.5em;
  }

  .content {
    margin-top: 70vh;
  }
}

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

  .search-button {
    width: 100%;
  }

  .header-content h2 {
    font-size: 1.2em;
  }
}

.icon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.material-icons {
  font-size: 48px;
  cursor: pointer;
  color: #ffffff;
}

.icon-text {
  margin-top: 8px;
  font-size: 14px;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
}

.icon-text:hover {
  margin-top: 8px;
  font-size: 14px;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  text-decoration: underline;
}

.icon-text1 {
  margin-top: -35%;
  margin-left: 200%;
  font-size: 14px;
  color: #ffffff;
  font-size: 18px;
  margin-right: 35%;
  cursor: pointer;
}

.icon-text1:hover {
  margin-top: -35%;
  margin-left: 200%;
  font-size: 14px;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  text-decoration: underline;
}

a {
  text-decoration: none;
}

.sidebarlogo {
  height: 40px;
  margin-top: -20%;
  margin-left: 10%;
}

.closebutton {
  position: relative;
  margin-top: -25%;
  margin-left: 50%;
  font-size: 100px;
}

.content {
  margin-left: 20px;
  color: black;
}

.greybodycard {
  margin-top: -1%;
  background-color: rgb(240, 240, 240);
  height: 100px;
}

.greybodycard-content {
  color: black;
}

.info {
  font-weight: 1;
  text-align: center;
  font-style: normal;
}

.whiteheadercard {
  height: 90px;
  margin: auto 0;
}

.contact {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.email {
  font-size: 20px;
  margin-top: 2%;
  margin-left: 10%;
}

.mail {
  color: black;
  margin-left: 8%;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  text-align: center;
}

.contact-info,
.contact-form,
.social-media {
  margin-bottom: 1%;
}

.no{
  color: transparent;
}

.social-media a {
  display: inline-block;
  margin-right: 1%;
  color: #555;
  text-decoration: none;
}

.social-media a:hover {
  text-decoration: underline;
}

.scrolllink {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #ccc;
  animation: fadeIn 2s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.raited {
  font-family: MulishLight;
  text-align: center;
}

.raitedtext {
  color: rgb(49, 49, 49);
  font-family: MulishBold;
  font-size: 18px;
}

.cardicon {
  height: 100px;
}

.info-field {
  background-color: #f0f0f0;
  color: #333333;
  padding: 20px;
  margin-bottom: 20px;
  font-family: Arial, sans-serif;
  display: flex;
  flex-wrap: wrap;
  height: 210px;
  gap: 20px;
  border: 1px solid #e0e0e0;
  position: relative;
}

.info-section {
  flex: 1;
  margin-top: 0.5%;
  min-width: 200px;
  position: relative;
}

.info-section h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  border-bottom: 1px solid #f0f0f0;
}

textarea {
  width: 100%;
  height: 150px;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #e0e0e0;
  font-size: 16px;
  resize: none;
  outline: none;
}

.form-heading {
  font-size: 1.5rem;
  color: #4a4a4a;
  margin-top: 1%;
  margin-left: 10%;
}

.form-subheading {
  font-size: 1.25rem;
  margin-top: 1%;
  margin-left: 10%;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Adjust header for smaller screens */
  header {
    height: 60vh; /* Reduce header height for mobile */
  }

  .header-content {
    font-size: 24px; /* Reduce font size for smaller screens */
  }

  .header-content h1 {
    font-size: 2rem; /* Smaller heading for mobile */
  }

  .header-content p {
    font-size: 1rem; /* Smaller paragraph for mobile */
  }

  /* Adjust search bar for smaller screens */
  .search-bar {
    flex-direction: column; /* Stack elements vertically */
    height: auto;
    padding: 15px;
    gap: 15px;
  }

  .left-side {
    flex-direction: column; /* Stack left-side elements vertically */
    gap: 15px;
  }

  .search-input {
    width: 100%; /* Full width for input */
  }

  .search-button {
    width: 100%; /* Full width for button */
  }

  /* Adjust dropdown for smaller screens */
  .dropdown {
    width: 100%; /* Full width for dropdown */
  }

  .dropbtn {
    width: 100%; /* Full width for dropdown button */
  }

  /* Adjust navigation for smaller screens */
  nav {
    padding: 10px 20px; /* Reduce padding */
  }

  nav ul {
    flex-direction: column; /* Stack navigation links vertically */
    padding: 0;
  }

  nav ul li {
    margin: 10px 0; /* Add spacing between links */
  }

  nav ul li a {
    padding: 10px; /* Reduce padding for links */
  }

  /* Adjust cards for smaller screens */
  .raited-card {
    width: 90%; /* Make cards wider on smaller screens */
    margin: 10px auto; /* Add spacing around cards */
  }
  /* Footer Fix */
  footer {
    padding: 20px 15px;
    font-size: 16px;
  }

    /* Footer-Anpassungen */
    footer {
      font-size: 16px; /* Kleinere Schriftgröße für den Footer */
      padding: 10px; /* Weniger Padding */
    }

      /* Center footer */
  footer {
    font-size: 16px; /* Reduce footer font size */
    text-align: center; /* Center footer text */
  }

    /* Info-Feld-Anpassungen */
    .info-field {
      flex-direction: column; /* Elemente vertikal stapeln */
      height: auto; /* Höhe automatisch anpassen */
      padding: 10px; /* Weniger Padding */
    }
  
    .info-section {
      min-width: 100%; /* Volle Breite für Info-Sektionen */
      margin-top: 10px; /* Abstand anpassen */
    }

    .info-section {
      min-width: 100%;
      margin: 10px 0;
    }

    .info-field {
      flex-direction: column;
      height: auto;
      padding: 15px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Center header content */
  .header-content {
    text-align: center; /* Center text */
    width: 90%; /* Limit width for better readability */
    margin: 0 auto; /* Center horizontally */
  }

  .header-content h1 {
    font-size: 2rem; /* Smaller heading for mobile */
    margin: 0 auto; /* Center heading */
  }

  .header-content p {
    font-size: 1rem; /* Smaller paragraph for mobile */
    margin: 10px auto; /* Center paragraph */
  }

  /* Center search bar content */
  .search-bar {
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center items horizontally */
    text-align: center; /* Center text */
    padding: 15px;
    gap: 15px;
  }

  .left-side {
    flex-direction: column; /* Stack left-side elements vertically */
    align-items: center; /* Center items horizontally */
    gap: 15px;
  }

  .search-input {
    width: 100%; /* Full width for input */
    text-align: center; /* Center placeholder text */
  }

  .search-button {
    width: 100%; /* Full width for button */
    text-align: center; /* Center button text */
  }

  /* Center dropdown content */
  .dropdown {
    width: 100%; /* Full width for dropdown */
    text-align: center; /* Center dropdown text */
  }

  .dropbtn {
    width: 100%; /* Full width for dropdown button */
    text-align: center; /* Center button text */
  }

  /* Center navigation links */
  nav ul {
    flex-direction: column; /* Stack navigation links vertically */
    align-items: center; /* Center links horizontally */
    padding: 0;
  }

  nav ul li {
    margin: 10px 0; /* Add spacing between links */
    text-align: center; /* Center link text */
  }

  nav ul li a {
    padding: 10px; /* Reduce padding for links */
    text-align: center; /* Center link text */
  }

  /* Center cards */
  .raited-card {
    width: 90%; /* Make cards wider on smaller screens */
    margin: 10px auto; /* Center cards horizontally */
    text-align: center; /* Center card content */
  }
}

/* Responsive Design für Mobile Geräte */
@media (max-width: 768px) {
  /* Header Anpassungen */
  header {
    height: 60vh; /* Reduziere die Höhe des Headers für mobile Geräte */
  }

  .header-content {
    font-size: 24px; /* Kleinere Schriftgröße für mobile Geräte */
    top: 50%; /* Zentriere den Inhalt vertikal */
    left: 50%; /* Zentriere den Inhalt horizontal */
    transform: translate(-50%, -50%); /* Zentriere den Inhalt */
    width: 90%; /* Begrenze die Breite für bessere Lesbarkeit */
  }

  .header-content h1 {
    font-size: 2rem; /* Kleinere Überschrift für mobile Geräte */
  }

  .header-content p {
    font-size: 1rem; /* Kleinere Absatzschrift für mobile Geräte */
  }

  /* Suchleiste Anpassungen */
  .search-bar {
    flex-direction: column; /* Elemente vertikal stapeln */
    align-items: stretch; /* Elemente die volle Breite nutzen lassen */
    padding: 15px; /* Mehr Padding für bessere Bedienbarkeit */
    gap: 15px; /* Abstand zwischen den Elementen */
    height: auto; /* Höhe automatisch anpassen */
  }

  .left-side {
    flex-direction: column; /* Elemente vertikal stapeln */
    gap: 15px; /* Abstand zwischen den Elementen */
  }

  .search-input {
    width: 100%; /* Volle Breite für das Eingabefeld */
    text-align: center; /* Text zentrieren */
  }

  .search-button {
    width: 100%; /* Volle Breite für den Button */
    text-align: center; /* Text zentrieren */
  }

  /* Dropdown-Anpassungen */
  .dropdown {
    width: 100%; /* Volle Breite für das Dropdown */
  }

  .dropbtn {
    width: 100%; /* Volle Breite für den Dropdown-Button */
    text-align: center; /* Text zentrieren */
  }

  /* Navigations-Anpassungen */
  nav {
    padding: 10px 20px; /* Weniger Padding für mobile Geräte */
    flex-direction: column; /* Elemente vertikal stapeln */
    align-items: center; /* Elemente zentrieren */
  }

  nav h1 {
    margin-bottom: 10px; /* Abstand unter dem Logo/Text */
  }

  nav ul {
    flex-direction: column; /* Navigationslinks vertikal stapeln */
    align-items: center; /* Links zentrieren */
    gap: 10px; /* Abstand zwischen den Links */
    padding: 0; /* Padding zurücksetzen */
  }

  nav ul li {
    margin: 0; /* Margin zurücksetzen */
    width: 100%; /* Volle Breite für Listenelemente */
    text-align: center; /* Text zentrieren */
  }

  nav ul li a {
    font-size: 16px; /* Kleinere Schriftgröße für Links */
    padding: 10px; /* Mehr Padding für bessere Bedienbarkeit */
    display: block; /* Links blockweise anzeigen */
    width: 100%; /* Volle Breite für Links */
  }

  /* Karten-Anpassungen */
  .raited-card {
    width: 100%; /* Volle Breite für Karten */
    margin: 10px auto; /* Karten zentrieren */
  }


  /* Sidebar-Anpassungen */
  .sidebar {
    width: 100%; /* Volle Breite für die Sidebar */
  }

  .sidebar a {
    font-size: 18px; /* Kleinere Schriftgröße für Sidebar-Links */
  }

  /* Icon-Container-Anpassungen */
  .icon-container {
    flex-direction: column; /* Icons vertikal stapeln */
    align-items: center; /* Icons zentrieren */
  }

  .icon-text,
  .icon-text1 {
    font-size: 14px; /* Kleinere Schriftgröße für Icon-Text */
    margin: 5px 0; /* Abstand anpassen */
  }

  /* Kontaktbereich-Anpassungen */
  .contact-container {
    padding: 10px; /* Weniger Padding */
  }

  .contact-info,
  .contact-form,
  .social-media {
    margin-bottom: 10px; /* Abstand anpassen */
  }

  .social-media a {
    margin-right: 5px; /* Abstand zwischen Social-Media-Links anpassen */
  }

  textarea {
    height: 100px; /* Höhe des Textbereichs anpassen */
  }
}
/* Responsive Design (Keine Duplikate, Alle Anpassungen zentral) */
@media (max-width: 768px) {
  /* Header Fix */
  header {
    height: 100vh;
    position: relative; /* Overflow verhindern */
  }

  .header-content {
    font-size: 24px;
    width: 95%; /* Mehr Platz für Text */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .header-content h1 {
    font-size: 2rem;
    line-height: 1.2; /* Zeilenabstand für mobile Lesbarkeit */
  }

  .header-content p {
    font-size: 1rem;
    margin-top: 10px;
  }

  /* Search Bar Fix */
  .search-bar {
    flex-direction: column;
    height: auto;
    padding: 15px;
    gap: 15px;
    box-shadow: rgba(0, 0, 0, 0.3) 0 10px 20px; /* Leichtere Schatten */
  }

  .left-side {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .flag-dropdown {
    justify-content: center; /* Flagge zentrieren */
    margin-right: 0;
  }

  .search-input {
    font-size: 16px;
    text-align: center;
    padding: 12px;
  }

  .search-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }

  /* Dropdown Fix */
  .dropdown {
    width: 100%;
  }

  .dropbtn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    box-sizing: border-box; /* Padding inkludieren */
  }

  .dropdown-content {
    width: 100%; /* Kein Überlauf über Bildschirmrand */
    left: 0;
  }



  .logo {
    margin: 0 auto 15px; /* Logo zentrieren */
    display: block;
    max-width: 120px;
    height: auto;
  }

  /* Cards Fix */
  .raited-card {
    width: 100%;
    max-width: 300px; /* Maximalbreite beibehalten */
    margin: 15px auto;
  }

  /* Icon Fix */
  .icon-container {
    position: static !important; /* Absolute Positionierung aufheben */
    flex-direction: column;
    margin: 15px 0;
  }

  .icon-text1 {
    margin: 5px 0 !important; /* Negative Margins entfernen */
    position: static !important;
    font-size: 14px;
  }

  /* Contact Form Fix */
  .contact-container {
    padding: 20px 15px;
  }


  textarea {
    height: 120px; /* Kleinere Höhe für Mobile */
  }

}

@media (max-width: 480px) {
  /* Feinabstimmung für sehr kleine Geräte */
  .header-content {
    font-size: 20px;
  }

  .header-content h1 {
    font-size: 1.75rem;
  }

  .search-input,
  .search-button,
  .dropbtn {
    font-size: 14px;
  }

  .raited-card {
    max-width: none; /* Volle Breite unter 480px */
  }
}

@media (max-width: 768px) {
  /* Sidebar sollte standardmäßig geschlossen bleiben */
  .sidebar {
    width: 0 !important; /* Überschreibt eventuelle andere Regeln */
  }
  
  /* Wenn die Sidebar aktiv ist */
  .sidebar.active {
    width: 100% !important;
  }

  /* Menü-Button zum Öffnen der Sidebar */
  .menu-toggle {
    display: block !important; /* Zeige den Menü-Button auf Mobilgeräten */
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
  }
}

/* Responsive Navigation (NUR Mobile-Styles) */
@media (max-width: 768px) {
  nav {
    position:absolute;
    top: -100px;
    left: 15px;
    right: 0;
    z-index: 1000; /* Sicherstellen, dass sie über allem liegt */
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0); /* Dunkler Hintergrund für bessere Lesbarkeit */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  nav .logo {
    margin-left: 22%;
    width: 600px;
    height: 30px;
    margin-bottom: 1px;
  }

  nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    text-align: center;
  }

  nav ul li {
    margin: 0;
  }

  nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 10px;
    display: block;
    transition: background 0.3s;
  }

  nav ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  /* Header-Content nach unten verschieben, um Überlappung zu vermeiden */
  header {
    padding-top: 70%; /* Höhe der Navigation + Abstand */
  }
  .header-content {
  margin-top: 29%; /* Höhe der Navigation + Abstand */
  height: 60%;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 10px 15px;
  }

  nav .logo {
    height: 30px;
  }

  nav ul li a {
    font-size: 15px;
  }

  /* Kleinere Anpassung für sehr kleine Bildschirme */
  header {
    padding-top: 100px;
  }
}

footer {
  margin-top: 1%;
  height: 50px;
  text-align: center;
  font-size: 20px;
}

.info-field {
  background-color: #f0f0f0;
  color: #333333;
  padding: 20px;
  margin-bottom: 20px;
  font-family: Arial, sans-serif;
  display: flex;
  flex-wrap: wrap;
  height: 210px;
  gap: 20px;
  border: 1px solid #e0e0e0;
  position: relative;
}

.info-section {
  flex: 1;
  margin-top: 0.5%;
  min-width: 200px;
  position: relative;
}

.info-section h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

.info-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-section ul li {
  margin: 5px 0;
}

.logocard {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 140px;
  max-height: 100px;
}

.logocardtext {
  position: absolute;
  bottom: -11px;
  left: 55%;
  transform: translateX(-50%);
  max-width: 500px;
  max-height: 100px;
  font-size: 18px;
  color: rgb(0, 0, 0);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .info-field {
    text-align: center;
    flex-direction: column;
    height: auto;
    padding: 10px;
  }

  .info-section {
    min-width: 100%;
    margin-top: 10px;
  }

  footer {
    font-size: 16px;
    padding: 10px;
  }
}