* {
  margin: 0;
  padding: 0;
  font-family: "Calibri";
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  border-bottom: 2px solid #C4CC46;
  padding: 10px -10px;
  position: relative;
  z-index: 1000; /* Ensures navbar stays above other elements */
}

/* Logo Styling */
.logo-container {
  flex-grow: 1;
}

.logo {
  width: 120px;
  height: auto;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Menu Items */
.topnav a {
  color: black;
  text-decoration: none;
  font-size: 18px;
  padding: 10px 14px;
  transition: all 0.3s;
}

.topnav a:hover {
  color: #C4CC46;
}

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

.dropdown .dropbtn {
  font-size: 18px;
  border: none;
  background-color: inherit;
  color: black;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.3s;
}

/* Dropdown Content */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  padding: 8px 0; /* Slightly reduced padding */
}

/* Dropdown Links */
.dropdown-content a {
  display: block;
  color: black;
  padding: 12px 18px; /* Reduced padding slightly */
  text-decoration: none;
  text-align: left;
  font-size: 16px;
  line-height: 1.6; /* Adjusted line height */
}

/* Hover Effect */
.dropdown-content a:hover {
  color: #C4CC46;
}

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

/* Flag styling */
.flagge {
  padding: 6px 12px;
}

.flagge img {
  width: 24px;
  height: auto;
  border-radius: 2px;
  cursor: pointer;
}

/* Burger Menu (Mobile) */
.topnav .icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.container {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  max-width: 1200px;
  margin: auto;
  margin-top: 30px;
  padding: 20px;
  width: 100%;
}

.image-container {
  flex: 1.5;
}

.image-container img {
width: 400px; /* Make the image fill the width of the card */
height: auto;
overflow: hidden; /* Ensure image fits within the card */
border-radius: 20px;
margin-left: 40px;
}

.extra-image {
margin-top: 50px;
max-width: 400px; /* Maximale Breite des zweiten Bildes */
width: auto;
max-height: auto; /* Höhe des zweiten Bildes */
border-radius: 8px;
}

/* Container Design */
.text-container, .legal-notice {
background-color: #f9f9f9;
padding: 20px;
/*margin: 40px 40px;*/
/*max-width: 800px;*/
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
font-family: Arial, sans-serif;

}

/* Überschriften */
.text-container h2, .legal-notice h2 {
font-size: 24px;
color: #2a4d69;
margin-bottom: 10px;
border-bottom: 2px solid #87bdd8;
padding-bottom: 5px;
}

/* Text-Absätze */
.text-container p, .legal-notice p {
font-size: 16px;
line-height: 1.6;
text-align: justify;
padding-right: 30px;
color: #333;
margin: 15px 0;
}

/* Links */
.text-container a, .legal-notice a {
color: #2a4d69;
text-decoration: none;
font-weight: bold;
}

.text-container a:hover, .legal-notice a:hover {
color: #87bdd8;
text-decoration: underline;
}

/* Kontaktinformationen */
.text-container p:first-of-type {
padding-top: 10px;
font-weight: bold;
color: #2a4d69;
}

/* Bessere Lesbarkeit bei Listeninformationen */
.text-container p br {
line-height: 1.2;
}

html, body {
  overflow-x: hidden;  /* Prevent horizontal scrolling */
  width: 100%;          /* Ensure full width */
  height: 100%;         /* Ensure full height */
}


/* Responsive Design */

@media only screen and (max-width: 1080px) {
  body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    overflow-y: auto;   /* Allow vertical scrolling */
    
  }

  .container {
    flex-direction: column;
    gap: 30px;
    padding: 10px;
    /*text-align: center;*/
    margin: auto; /* remove margins */
    /*min-width: 280px;*/
    max-width: 100%;
    /*overflow: auto;*/
    content: center;
    /*width: 100%;  Make sure content fills the screen */
    box-sizing: border-box; /* Ensure padding is included in the width */
  }

  .image-container img {
    width: 350px;
    display: block;
  }

  .text-container, .legal-notice {
    flex-direction: column; /* Stack content and image vertically */
    max-width: 100%;
  }
  
  .text-container h2, .legal-notice h2 {
    padding-left: 5%; /* Add padding to the left */
    padding-right: 5%; /* Add padding to the right */
  }
  
  .text-container p, .legal-notice p {
    padding-left: 5%; /* Add padding to the left */
    padding-right: 5%; /* Add padding to the right */
  }
  
}





@media (max-width: 768px) {
  .topnav {
    flex-direction: row;
    position: relative;
  }

  /* Adjusts menu for mobile to avoid overlapping logo */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 70px; /* Moves the menu below the logo */
    right: 0;
    background-color: white;
    border-top: 2px solid #C4CC46;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding-top: 10px; /* Ensures logo is not covered */
  }

  /* Show menu when burger is tapped */
  .topnav.responsive .nav-links {
    display: flex;
  }

  .topnav .icon {
    display: block;
  }

 .text-container, .legal-notice {
    padding: 40px;
    margin: 15px auto;
  }

  .image-container img {
    width: 300px;
  }

  .extra-image {
    max-width: 90%;
    margin: auto;
  }
}

@media (max-width: 576px) {
  body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    overflow-y: auto;   /* Allow vertical scrolling */
  }

  .container {
    gap: 10px;
    padding: 0px;
    margin-left: -10px;
  }

  .image-container img,
  .extra-image {
    width: 80%;
    max-width: 100%;
    margin-left: 0px;
    display: block;
    border-radius: 10px;
  }

  .text-container, .legal-notice {
    max-width: 95%;
    font-size: 14px;
    padding: 10px;
    margin: 10px auto;
  }

  .flagge img {
    width: 20px;
  }
}

@media (max-width: 360px) {
  .text-container, .legal-notice {
    font-size: 12px;
    padding: 5px;
  }

  .image-container img {
    width: 100%;
    margin: 0 auto;
    border-radius: 10px;
  }

  .flagge img {
    width: 15px;
  }
}
 

/* Small Devices and Phones */
@media (max-width: 576px) {
  body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    overflow-y: auto;   /* Allow vertical scrolling */
  }
  .container {
    gap: 20px;
  }

  .text-container, .legal-notice {
    font-size: 14px;
  }

  .image-container img,
  .extra-image {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .flagge img {
    width: 20px;
  }
}

/* Very Small Phones */
@media (max-width: 360px) {
  body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    overflow-y: auto;   /* Allow vertical scrolling */
  }

  .text-container, .legal-notice {
    font-size: 12px;
    padding: 5px;
  }

  .image-container img {
    width: 80%;
    border-radius: 10px;
    margin: 0;
  }

  .flagge img {
    width: 15px;
  }
}

@media (max-width: 992px) {
  .menu_bar ul {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    overflow-y: auto;   /* Allow vertical scrolling */
  }

  .slogan {
    transform: scale(1.5);
    margin-top: 50px;
    width: 80%;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo,
  .footer-links,
  .footer-contact {
    width: 100%;
    margin-bottom: 20px;
  }
}