@charset "utf-8";
/* CSS Document */
body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(to top, #ff9a76, #ffb347, #ffe29f, #ffffff);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.navbar {
  font-family: "Gill Sans", "Gill Sans MT", Helvetica, Arial, sans-serif;
  font-size: 30px;
  font-weight: bold;
  margin: 30px 30px 0;
}

.flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-fluid {
  margin-top: 20px;
  width: auto;
}

main {
  max-width: 1200px;
  margin: 0 auto 40px auto;
  background-color: transparent;
}

.grid-container {
  display: grid;
  grid-template-columns: auto;
  padding: 0 20px;
  color: #1F175C;
}

.item1 {
  padding: 20px;
  margin-top: 30px;
  text-align: center;
  font-size: 2.5em;
  font-weight: 700;
  color: rgba(4,3,156,1);
}

.item-switch {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 50px;
}

.switch-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 2.1em;
  color: rgba(4,3,156,1);
  font-weight: normal;
}

.switch-label span {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 600;
}

.highlight-letter {
  font-size: 1.1em;
}

.kleinkind-letter {
    color: #3399FF;
    font-size: 1.3em;
    font-weight: 700;
}

.saeugling-letter {
    color: #1FC15C;
    font-size: 1.3em;
    font-weight: 700;
}

.label-subtext {
    font-size: 0.7em;
    color: rgba(4,3,156,1);
    font-weight: 600;
    text-align: left;
    margin-left: 4px;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

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

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

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

.switch-toggle input:checked + .round-slider {
  background-color: #1FC15C;
}

.switch-toggle input:checked + .round-slider:before {
  transform: translateX(26px);
}

.item1 {
  padding: 20px;
  margin-top: 30px;
  text-align: center;
  font-size: 2.5em;
  font-weight: 700;
  color: rgba(4,3,156,1);
}


.item2 {
  margin: 0 auto;
  width: auto;
  max-width: 950px;
  padding: 20px;
  background-color: #fdfdfd;
  border-radius: 30px;
  border: thicksolid #DDF721;
  box-shadow: -10px 0 13px -7px #000, 10px 0 13px -7px #000, 5px 5px 15px 5px rgba(0,0,0,0);
  margin-bottom: 30px;
  text-align: center;
}

.item3  {
 margin-left: auto;
 margin-right: auto;
  max-width: 550px;
  padding: 30px 20px 0px 20px;
  background-color: #fdfdfd;
  border-radius: 30px;
  border: thin solid #DDF721;
  box-shadow: -10px 0 13px -7px #000, 10px 0 13px -7px #000, 5px 5px 15px 5px rgba(0,0,0,0);
  margin-bottom: 10px;
  text-align: center;
}

.item4 {
  padding: 20px;
  text-align: center;
  font-size: 1.2em;
  color: rgba(4,3,156,1);
}

form {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
}

button {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: darkgray;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

h2 {
  margin-top: 0;
  color: rgba(4,3,156,1);
}

.kleinkind {
  color: #3399FF;
  font-weight: bold;
}

.saeugling {
  color: #1FC15C;
  font-weight: bold;
}

/* Kind-Figur animiert & unten rechts positioniert */
.kindFigur {
  position: fixed;
  bottom: 80px;
  right: 170px;
  width: 150px;
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  animation: none;
}

/* Wenn sichtbar → Animation abspielen */
.kindFigur.visible {
  animation: erscheinen 10s ease forwards;
}


@keyframes erscheinen {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  85% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(40px);
  }
}


    


    
@media only screen and (max-width: 600px) {
    
  .grid-container {
    padding: 0; /* Kein Seiten-Padding mehr! */
  }

  .item2 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
    
  .switch-wrapper {
    font-size: 1em;       /* kleiner als Desktop */
    gap: 12px;            /* statt 40px */
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
  }

  .switch-label span {
    font-size: 1.2em;
    gap: 1px;
  }

  .kleinkind-letter,
  .saeugling-letter {
    font-size: 1em;       /* kleiner als Standard */
  }
     .switch-toggle {
    width: 36px;
    height: 20px;
  }

  .round-slider:before {
    width: 14px;
    height: 14px;
    left: 3px;
    bottom: 3px;
  }

  .switch-toggle input:checked + .round-slider:before {
    transform: translateX(16px); /* passend zur neuen Größe */
  }

  .round-slider {
    border-radius: 20px;
  }
    
      .kindFigur {
    display: none !important;
  }
}




