
body {
  margin: 0;
  background-color: #fcf9ef;
  background-image: url(Hintergrund.png);
  background-size:cover;               
  background-position: center center;
}

.babylonica-regular {
  font-family: "Oooh Baby", cursive;
  font-weight: 400;
  font-style: normal;
}

.oooh-baby-regular {
  font-family: "Oooh Baby", cursive;
  font-weight: 400;
  font-style: normal;
}

.sg {
  color: rgb(22, 167, 78);
}

h1 {
  font-family: "Oooh Baby";
  font-size: 80px;
  margin-bottom: 0px;
  text-align: center;
}

h2 {
  font-family: "Oooh Baby", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 50px;
  margin-bottom: 100px;
}

h3 {
  font-family: "Oooh Baby", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 32px;
  margin-bottom: 10px;
}

p{
  font-family: "oooh baby", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
}


.container {
  display: flex;
  padding: 40px;
}

.sidebar {
  width: 220px;
  padding-right: 40px;
  text-align: left;
}


.baby-icon {
  width: 300px;
  margin-bottom: 0px;
}


.baby-icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0px;
}

fieldset {
  margin-left: 50px;
  background-color: #fcf9ef;
  padding-left: 50px;
  border-color: #ede2d2;
  border-style: solid;
  margin: 20px 0;

}

fieldset legend {
  font-family: "Oooh Baby", cursive;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 32px;
  border-color: #fcf9ef;
}

label {
  font-family: "Oooh Baby", cursive;
  font-weight: 400;
  font-size: 20px;
  display: block;
  margin: 6px 0;
  text-align: left;
}

.years {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 10px;
}

button {
  font-family: "Oooh Baby", cursive;
  font-weight: 400;
  margin-top: 20px;
  padding: 10px 20px;
  background-color:#ede2d2;
  margin-left: 50px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 20px;
}
button:hover {
  background-color: #dddbd7;
}

main {
  flex: 1;
}



.search-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 80px;
}

.search-box input[type="text"] {
  font-family: "Oooh Baby", cursive;
  font-size: 18px;
  font-weight: 400;
  width: 80%;
  margin: 0 auto 30px;
  display: block;
  padding: 12px;
  border: 2px solid #ede2d2;
  border-radius: 20px;
  background-color: #fefaf3;
}


.info-box {
  background-color: #ede2d2;
  padding: 30px;
  border-radius: 24px;
  margin: 0 auto 30px;
  width: 80%;
  margin-top: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.info-box.boy {
  background-color: #89CFF0;
}

.info-box.girl {
  background-color: #f4c2c2;
}

.podest {
  list-style: none;
  padding: 0;
  margin: 2rem auto;
  max-width: 600px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  counter-reset: ranking;
  font-family: "Oooh Baby", cursive, sans-serif;
  color: #333;
}

.podest li {
  counter-increment: ranking;
  position: relative;
  text-align: center;
  cursor: default;
  transition: transform 0.2s;
}

/* Plätze 1-3: Boxen mit Nummer oben */
.podest li:nth-child(-n+3) {
  background: #fffbe9;
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  width: 140px;
}


/*Zahlen auf Podest*/
.podest li:nth-child(-n+3)::before {
  content: counter(ranking) ".";
  font-weight: bold;
  position: fixed;
  top: -1.2em;
  left: 50%;
}

/* Spezielle Farben, Größen und Positionierung für Podestplätze */
.podest li:nth-child(1) {
  background: gold;
  font-size: 24px;
  text-align: center;
  font-weight: bold;
  color: #3b3b3b;
  order: 2;
  transform: translateY(-30px);
}

.podest li:nth-child(2) {
  background: silver;
  color: #3b3b3b;
  text-align: center;
  font-weight: bold;
  order: 1;
  font-size: 24px;
  transform: translateY(-15px);
}

.podest li:nth-child(3) {
  background: #cd7f32;
  color: #3b3b3b;
  font-size: 24px;
  text-align: center;
  font-weight: bold;
  order: 3;
  transform: translateY(-10px);
}

/* Ab Platz 4: block Layout ohne Box */
.podest li:nth-child(n+4) {
  order: 10 !important; /* Plätze 4+ unten */
  all: unset;
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: center;
  font-family: "Oooh Baby", cursive, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  margin-top: 0.6em;
  position: relative;
  cursor: default;
  counter-increment: ranking;
  counter-reset: none;
  transform: none !important;
}

/* Nummerierung ab Platz 4 */
.podest li:nth-child(n+4)::before {
  content: counter(ranking) ". ";
  position: static;
  transform: none;
  font-weight: normal;
  font-size: 18px;
  margin-right: 0.4em;
  display: inline;
}

@media (max-width: 1090px) {
  .container {
    flex-direction: row; /* Sidebar und Main untereinander */
    padding: 20px;
  }
  .sidebar {
    width: 100%;
    max-width: 160px;
    text-align: center;
  }
  .baby-icon {
    width: 225px;
    margin-top: 20px;
    margin-bottom: 0px;
  }
  .baby-icon-container {
    margin-bottom: 0px;
  }

fieldset {
  margin-left: 0px;
  background-color: #fcf9ef;
  padding-left: 20px;
  border-color: #ede2d2;
  border-style: solid;
  margin: 20px 0;

}

fieldset legend {
  font-family: "Babylonica", cursive;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 32px;
  border-color: #fcf9ef;
}

 h1 {
  font-family: "Babylonica";
  font-size: 50px;
  margin-bottom: 0px;
  text-align: center;
}

h2 {
  font-family: "Oooh Baby", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  margin-bottom: 50px;
}

h3 {
  font-family: "Oooh Baby", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  margin-bottom: 10px;
}

p{
  font-family: "oooh baby", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
}
 .podest {
    flex-direction: column;
    align-items: center;
  }

  .podest li:nth-child(-n+3) {
    width: 75%;
    padding: 12px 16px;
    font-size: 18px;
    transform: none !important;
    order: initial;
    margin-bottom: 16px;
  }

  .podest li:nth-child(-n+3)::before {
    content: counter(ranking) ".";
    position: absolute;
    top: -1.2em;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    font-size: 1.2em;
    font-weight: bold;
  }

  .podest li:nth-child(n+4) {
    font-size: 16px;
    padding: 0 1rem;
    text-align:center;
  }

  .podest li:nth-child(n+4)::before {
    font-size: 16px;
  }
  .info-box {
    text-align: center;
  }
}
@media (max-width: 600px) {
  .container {
    flex-direction: row; /* bleibt nebeneinander */
    padding: 8px;
  }
  .sidebar {
    width: 100px;
    min-width: 60px;
    padding-right: 4px;
    text-align: center;
  }
  .baby-icon {
    width: 150px;
    margin-top: 25px;
    margin-bottom: 0px;
  }
  .baby-icon-container {
    margin-bottom: 0;
  }
  /* Verstecke die alten Radiobutton-Gruppen */
  .sidebar fieldset,
  .sidebar .years {
    display: none;
  }
  /* Dropdown-Menüs anzeigen */
  .sidebar .mobile-dropdown {
    display: block;
    margin: 8px 0;
    margin-top: 20px;
    width: 90%;
    font-family: "oooh baby", cursive;
    border-color: #ede2d2;
    font-size: 14px;
  }
  main {
    padding: 0 4px;
  }
  h1 {
    font-size: 48px;
  }
  h2 {
    font-size: 24px;
  }
  h3 {
    font-size: 24px;
  }
  p {
    font-size: 16px;
  }
  .info-box {
    width: 90%;
    padding: 6px;
    font-size: 14px;
  }
  .podest {
    flex-direction: column;
    align-items: center;
  }

  .podest li:nth-child(-n+3) {
    width: 75%;
    padding: 12px 12px;
    font-size: 18px;
    transform: none !important;
    order: initial;
    margin-bottom: 16px;
  }

  .podest li:nth-child(-n+3)::before {
    content: counter(ranking) ".";
    position: absolute;
    top: -1.2em;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    font-size: 1.2em;
    font-weight: bold;
  }

  .podest li:nth-child(n+4) {
    font-size: 16px;
    padding: 0 1rem;
    text-align: center;
  }

  .podest li:nth-child(n+4)::before {
    font-size: 16px;
  }
}
  

  #genderdropdown,
  #yeardropdown {
    display: block;
    width: 90%;
    margin-left: 50px;
    font-size: 14px;
    padding: 6px;
    border-radius: 12px;
    background-color: #fefaf3;
    border: 2px solid #ede2d2;
  }
  .search-box {
    margin-top: 30px;
  }
  .search-box input[type="text"] {
    width: 90%;
    padding: 6px;
    margin-bottom: 10px;
  }
.sidebar button,
  #filterForm button {
    width: 90%;
    margin: 12px auto 0 auto;
    display: block;
    font-size: 18px;
    padding: 10px 0;
    border-radius: 16px;

}

