* {
  margin: 0;
  padding: 0;
  font-family: Calibri, sans-serif;
  line-height: 1.5;
}

a {
 text-decoration: none;
}

.content {
  width: 80%;
  max-width: 1200px;
  margin: auto;
}


.logo1 {
  width: 23%;
  margin-left: 5%;
}


/*Navbar */

.navbar {
  background-color: #2C354E;
  box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.2);
  margin-top: 15px;
  
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 5%;
}

.navbar li {
  display: inline;
  margin-right: auto;
  position: relative;
  height: 48px;
}

.navbar li.active,
.navbar .submenu1 li.active,
.navbar .submenu2 li.active {
  background-color: #A2BF52;
}

.navbar a {
  text-decoration: none;
  color: #ffff;
  display: block;
  padding: 13px 20px;
  font-size: 20px;
  font-weight: thin;
  text-align: center;
  font-family: Calibri;
  margin-top: -2px;
  white-space: nowrap;
}

.navbar .submenu1,
.navbar .submenu2 {
  position: absolute;
  top: 100%;
  left: 0%; /* Anpassen des Wertes für die linke Position */
  display: none;
  background-color: #2C354E;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  margin-top: 3px;
  z-index: 9999;
  height: 120px;
}

.navbar .submenu1 a,
.navbar .submenu2 a {
  font-size: 18px; /* Anpassen der Schriftgröße nach Bedarf */
  margin-bottom: -15px;
}

.dropdown input[type="checkbox"] {
  display: none;
}

.dropdown label {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  background-color: #ededed;
  padding: 10px;
}

.dropdown li {
  list-style-type : none;
}

.dropdown input[type="checkbox"]:checked ~ .dropdown-menu {
  display: block;
}

/*Dropdown2 */
.dropdown2 input[type="checkbox"] {
  display: none;
}


.dropdown2 label {
  cursor: pointer;
}

.dropdown-menu2 {
  display: none;
  background-color: #ededed;
  padding: 10px;
}

.dropdown2 li {
  list-style-type : none;
  white-space: nowrap;
}

.dropdown2 input[type="checkbox"]:checked ~ .dropdown-menu2 {
  display: block;
}




.navbar ul li:nth-child(2):hover .submenu1,
.navbar ul li:nth-child(3):hover .submenu2 {
  display: block;
}

.navbar .submenu2 {
  /* ... */
  white-space: nowrap; /* Verhindert Zeilenumbruch für alle Links in submenu2 */
}

.navbar .submenu2 li:nth-child(2) a {
  /* CSS für den Link "Parentale Ernährung" */
  white-space: normal; /* Erlaubt Zeilenumbruch nur für diesen Link */
}





@media screen and (max-width: 767px) {
  /* Anpassungen für Bildschirmgrößen bis 767px */
  .navbar .submenu1,
  .navbar .submenu2 {
    top: initial;
    left: initial;
    width: 100%;
  }
}

.navbar ul li a {
  color: #fff; /* Standardfarbe für Menüpunkte */
}

.navbar  li:hover a {
  color: #A2BF52;
}

.navbar .submenu1 li:hover a,
.navbar .submenu2 li:hover a {
  color: #A2BF52; /* Textfarbe im Submenu1 und Submenu2 beim Hovern auf Grün ändern */
}

.navbar .submenu1 li a:not(:hover),
.navbar .submenu2 li a:not(:hover) {
  color: #fff; /* Textfarbe im Submenu1 und Submenu2 auf Weiß setzen */
}




/*Media query Tablets */ 


@media screen and (max-width: 5000px) {
    nav {
        display: none;
    }
}

@media screen and (max-width: 767px) {
  .navbar { /* Ersetze ".navbar" durch den tatsächlichen Selektor deiner Navbar */
    display: none;
  }

  .logo1 {
    width: 60%;
    margin-left: 20%;
  }

  nav {
    display: block;
  }
  
}


@media screen and (min-width: 768px) and (max-width: 1024px) {
    /* Stile für Tablets hier definieren */
    nav {
      display: inline;
      margin: auto;
    }

    .navbar {
        display: none;
    }

    .logo1 {
        margin-left: 30%;
        width: 40%;
    }

  }

 



/*------------------------------------------------------
-----------------------------------------------
------------------------------------------------------ */
#menuToggle
{
  display: block;
  position: relative;
  top: 50px;
  left: 50px;
  z-index: 1;
  -webkit-user-select: none;
  user-select: none;
}

#menuToggle a
{
  text-decoration: none;
  color: #2C354E;
  
  transition: color 0.3s ease;
}

#menuToggle a:hover
{
  color: tomato;
}


#menuToggle input
{
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: 24vh;
  left: 60%; /*Verschieben Input Burger Menu */
  cursor: pointer;
  
  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */
  
  -webkit-touch-callout: none;
}

/*
 * Just a quick hamburger
 */
#menuToggle span
{
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  left: 60%;   /* Verschieben Burger Menu */
  top: 24vh;
  background: #2C354E;
  border-radius: 3px;
  
  z-index: 1;
  
  transform-origin: 4px 0px;
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}


#menuToggle span:first-child
{
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2)
{
  transform-origin: 0% 100%;
}

/* 
 * Transform all the slices of hamburger
 * into a crossmark.
 */
#menuToggle input:checked ~ span
{
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: #232323;
}

/*
 * But let's hide the middle one.
 */
#menuToggle input:checked ~ span:nth-last-child(3)
{
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

/*
 * Ohyeah and the last one should go the other direction
 */
#menuToggle input:checked ~ span:nth-last-child(2)
{
  transform: rotate(-45deg) translate(0, -1px);
}

/*
 * Make this absolute positioned
 * at the top left of the screen
 */
#menu
{
  position: absolute;
  width: 183px;
  margin: -100px 0 0 -50px;
  padding: 50px;
  padding-top: 125px;
  
  background: #ededed;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */
  transform-origin: 0% 0%;
  transform: translate(-100%, 0);
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menu li
{
  padding: 10px 0;
  font-size: 22px;
  color: #2C354E;
}

/*
 * And let's slide it in from the left
 */
#menuToggle input:checked ~ ul
{
  transform: none;
}




