/* Grundlayout */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #fff8e7;
  color: #1C1C4A;
}

header {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.logo {
  font-family: 'Chewy', 'regular';
  font-size: 3rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.sonnencreme {
  width: 35px;
  transform: rotate(40deg);
  margin-left: 12px;
  margin-top: 0;
}

.erklärseite_button {
  font-size: 1.2rem;
  color: #1C1C4A;
  text-decoration: none;
  padding: 1.5rem;
}


a.Logo-Link {
  color: #1C1C4A;
  text-decoration: none;
}

/* Hauptlayout */
main {
  display: grid;
  grid-template-columns: repeat(19, 1fr);
  gap: 2rem;
  padding: 2rem;
  margin-top: 4rem;
}

/* UV-Anzeige */
.uv-display {
  grid-column: 2 / 6;
  background-color: #FFF4D2;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.uv-header #uv-index {
  font-size: clamp(3rem, 10vw, 10rem);
  font-weight: bolder;
  margin: 0;
}

.uv-label {
  font-size: 1.5rem;
  color: #1C1C4A;
  font-weight: bolder;
}

#uv-spruch {
  font-size: 1.2rem;
  font-style: normal;
}

/* SPF-Rechner */
.SPF_Rechner {
  grid-column: 6 / 15;
  background-color: #FFF4D2;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.SPF_Rechner h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.inputs label {
  display: block;
  margin-top: 3rem;
  font-size: 1.2rem;
}

.hauttyp_options,
.Sonnenzeit_options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0.8rem;
}

.sonnenzeit {
  font-size: 1.2rem;
}

.hauttyp_options span,
.Sonnenzeit_options span {
  background-color: #1C1C4A;
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.hauttyp_options span.selected,
.Sonnenzeit_options span.selected {
  background-color: #FDB543;
  color: #1C1C4A;
}

.hauttyp_info_text {
  margin: 0.5rem 0 5rem;
  font-size: 0.9rem;
  color: #1C1C4A;
  min-height: 1.2rem;
  font-style: normal;
}

/* Buttons */
button {
  background-color: #1C1C4A;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  margin-top: 3rem;
  cursor: pointer;
}

button.selected {
  background-color: #FDB543;
  color: white;
}

#spf-ergebnis {
  font-size: 1.2rem;
}

/* UV-Vorhersage */
.forecast {
  grid-column: 15 / 19;
  background-color: #FFF4D2;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.forecast h2 {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

#uv-forecast {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.uv-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: #1C1C4A1A;
  color: #1C1C4A;
  font-size: 1.2rem;
  padding: 1rem;
  border-radius: 16px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  width: 100px;
}

.uv-wert {
  font-weight: bold;
  font-size: 1.1em;
  color: #1C1C4A;
  margin-bottom: 4px;
}

.uv-zeit {
  font-size: 0.9em;
  color: #1C1C4A;
}

/* UV-Stufenfarben */
.uv-low {
  color: #B3E5FC !important;
}

.uv-moderate {
  color: #FFE082 !important;
}

.uv-high {
  color: #FFB74D !important;
}

.uv-veryhigh {
  color: #CE93D8 !important;
}

.uv-extreme {
  color: darkred !important;
}

/* Responsive Layout für mobile Geräte */
@media (max-width: 992px) {
  /* Header anpassen */
   header {
    flex-direction: row;  
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #fff8e7; 
  }

  .logo {
    font-size: 2rem;
    display: flex;
    align-items: center;
  }

  .sonnencreme {
    width: 26px;
    transform: rotate(40deg);
    margin-left: 10px;
    margin-top: 0;
  }

  .erklärseite_button {
    margin: inherit;
    font-size: 1rem;
    padding: 0;
  }

  /* UV-Display oberhalb schmiär o meter */
  .uv-display {
    position: static; 
    order: 2;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    background-color: transparent;
    width: auto;
    max-width: 150px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #FFF4D2;
  }

  /* UV-Index und Spruch kleiner */
  .uv-header #uv-index {
    font-size: 8rem;
    font-weight: bold;
    margin: 0;
  }

  .uv-spruch-container p {
    margin: 0;
    font-size: 1.2rem;
    color: #1b1b6e;
  }

.advice {
  text-align: center;
}
  /* Hauptbereich anpassen */
  main {
    display: flex !important;
    flex-direction: column;
    padding: 1rem;
    gap: 2rem;
    margin-top: 2rem;
  }

  /* UV-Display im Main verstecken */
  main > .uv-display {
    display: flex;
  }

  /* Grid Column Überschreibungen */
  .uv-display,
  .SPF_Rechner,
  .forecast,
  .erklärseite {
    width: 100%;
    max-width: 100%;
    padding: 1.2rem;
    box-sizing: border-box;
    grid-column: unset !important;
  }

  .inputs label {
    margin-top: 2rem;
    font-size: 1.2rem;
  }

  .hauttyp_options span,
  .Sonnenzeit_options span {
    font-size: 1.2rem;
    padding: 1rem 2rem;
  }

  button {
    width: 100%;
    font-size: 1.5rem;
    padding: 2rem;
  }

  #spf-ergebnis {
    text-align: center;
    margin-top: 1rem;
  }

  #uv-forecast {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .uv-box {
    width: 80px;
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  .forecast {
    order: 4;
  }

  .uv-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: #1C1C4A1A;
    color: #1C1C4A;
    font-size: 1.2rem;
    padding: 1rem;
    border-radius: 16px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    width: 100px;
  }

  .erklärseite {
    order: 3;
    text-align: left;
    font-size: 1rem;
    background-color: #FFF4D2;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
  }

  .uv-display {
    order: 1;
  }
  .SPF_Rechner {
    order: 2;
  }
}
