html {
  background-color: #0c0c12;
  height: 100%;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  overflow-y: scroll;
  overflow-x: hidden;
}



body {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  width: 100vw;
  margin: 0;
  background-image: url('../static/wallpapers/Wallpaper.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  background-attachment: fixed;
  font-family: "SyneMono";
  box-sizing: border-box;
  flex-direction: column;
  overflow: hidden;
}
@media (max-width: 900px), (orientation: portrait) {
  body {
    z-index: 1;
    background: none;
    background-attachment: scroll;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../static/wallpapers/WallpaperMobile.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    z-index: -1;
  }
}



.page-wrapper {
  position: relative;
  display: flex;
  flex: 1;
  margin: 0 auto;
  min-height: 0;
  max-width: 100vw;
  box-sizing: border-box;
  text-align: center;
}



.main-wrapper-home {
  flex: 1;
  margin: 0 auto;
  min-height: 50vh;
  max-width: 100vw;
  box-sizing: border-box;
  text-align: center;
  scroll-behavior: smooth;
}
.main-wrapper-forecast {
  flex: 1;
  margin: 0 auto;
  min-height: 50vh;
  max-width: 100vw;
  padding-top: 2rem;
  box-sizing: border-box;
  text-align: center;
  scroll-behavior: smooth;
}
.main-wrapper-archive {
  flex: 1;
  margin: 0 auto;
  min-height: 50vh;
  max-width: 100vw;
  padding-top: 1.5rem;
  box-sizing: border-box;
  text-align: center;
  scroll-behavior: smooth;
}
@media (max-width: 768px) {
  .main-wrapper-home,
  .main-wrapper-forecast,
  .main-wrapper-archive {
    padding-top: 0.1rem;
    margin-bottom: 1.5rem;
  }
}



.main-wrapper-misc {
  flex: 1;
  margin: 0 auto;
  width: 60vw;
  font-style: normal;
  padding-top: 1.5rem;
  box-sizing: border-box;
  text-align: center;
  scroll-behavior: smooth;
}
@media (max-width: 768px) {
  .main-wrapper-misc {
    width: 90vw;
    padding-top: 0.1rem;
    margin-bottom: 1.5rem;
  }
}



.fade {
  animation: fadeDown 1.5s ease-in-out forwards;
}
@keyframes fadeDown {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.fade-out {
  animation: fadeOut 1.0s ease-in-out forwards;
  pointer-events: none;
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}



a, button, img {
    -webkit-tap-highlight-color: transparent;
}



#topbar {
  opacity: 1;
  transition: none;
  -webkit-tap-highlight-color: transparent;
}
#topbar.hidden {
  opacity: 0;
  pointer-events: none;
}
.topbar {
  position: fixed;
  display: block;
  height: 3.2rem;
  width: 3.2rem;
  top: 1.8rem;
  left: 2.2rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%,
      rgba(240, 240, 240, 0.9) 0%,
      rgba(210, 210, 210, 0.8) 35%,
      rgba(150, 150, 150, 0.7) 70%,
      rgba(90, 90, 90, 0.8) 100%
    ),
    radial-gradient(circle at 60% 65%,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0.0) 60%
    );
  backdrop-filter: blur(4px);
  box-shadow:
    0 0 1rem rgba(255, 255, 255, 0.25),
    inset 0.5rem 0.5rem 1rem rgba(255, 255, 255, 0.4),
    inset -0.5rem -0.5rem 1rem rgba(0, 0, 0, 0.4);
  flex-direction: column;
  z-index: 10000;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  animation: moonAura 5s ease-in-out forwards;
  transition: transform 0.15s ease;
}
@media (max-width: 768px) {
  .topbar {
    height: 2.6rem;
    width: 2.6rem;
    top: 1rem;
    left: 0.8rem;
  }
}
@keyframes moonAura {
  0% {
    box-shadow: 0 0 0.6rem rgba(248, 242, 242, 0.3);
  }
  50% {
    box-shadow: 0 0 0.75rem 0.75rem rgba(216, 212, 96, 0.3);
  }
  100% {
    box-shadow: 0 0 0.75rem 0.5rem rgba(105, 144, 218, 0.4);
  }
}
.topbar::before {
    content: "";
    position: absolute;
    inset: -1rem;
}
.topbar:hover {
  background:
    radial-gradient(circle at 30% 30%,
      rgba(240, 240, 240, 0.7) 0%,
      rgba(210, 210, 210, 0.6) 35%,
      rgba(150, 150, 150, 0.6) 70%,
      rgba(90, 90, 90, 0.7) 100%
    ),
    radial-gradient(circle at 60% 65%,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0.0) 60%
    );
}
.topbar:active {
  transform: scale(0.9);
}
.topbar ul {
  position: absolute;
  top: 3rem;
  left: 1rem;
  padding-right: 4rem;
  display: none;
  flex-direction: column;
  background: linear-gradient(
    80deg,
      rgba(228, 225, 206, 0.9),
      rgba(142, 148, 151, 0.9)
    );
  box-shadow: 0.1rem 0.25rem 0.5rem rgba(228, 231, 242, 0.2);
  border-radius: 2.5rem 0.25rem 2.5rem 0.25rem;
  z-index: 10000;
}
@media (max-width: 768px) {
  .topbar ul {
    padding-right: 2.5rem;
  }
}
.topbar ul.show {
  display: flex;
  margin-top: 0.5rem;
  padding-bottom: 0.75rem;
  z-index: 10000;
}
.topbar li {
  flex: 0;
  text-align: left;
  list-style: none;
  width: 100%;
  border-radius: 0.5rem;
  padding: 0 1rem;
  transition: background 0.2s ease;
}
.topbar li a {
  display: inline-block;
  width: 100%;
  padding: 1rem 0;
  font-size: 1.05rem;
  color: black;
  text-align: left;
  text-decoration: none;
  transition: color 0.1s ease;
}
@media (hover: hover) {
  .topbar li a:hover {
    color: rgba(86, 121, 186, 0.9);
    transition: color 0.1s ease;
  }
}
.topbar li.active a {
  border-bottom: 0.1rem solid rgba(105, 144, 218, 0.6);
  margin-bottom: 0.5rem;
  pointer-events: none;
  cursor: default;
  width: 80%;
}
.topbar li a:active {
  opacity: 0.1;
  transition: color 0.1s;
}
@media (max-width: 768px) {
  .topbar li a {
    font-size: 1.1rem;
  }
}



.banner {
  display: block;
  color: rgba(248, 248, 248, 0.9);
  font-size: clamp(7rem, 10vw, 8rem);
  margin: 3rem 0;
  max-width: 98vw;
  overflow-wrap: break-word;
  word-break: break-word;
}
@media (max-width: 768px) {
  .banner {
    margin: 3rem 0 2.5rem 0;
    font-size: clamp(3.5rem, 10vw, 5rem);
  }
}
@media (min-width: 769px) and (max-width: 1199px) {
  .banner {
    font-size: clamp(4.5rem, 10vw, 6.5rem);
  }
}
@media (orientation: landscape) and (max-height: 800px) {
  .banner {
    margin: 2rem 0 2.5rem 0;
    font-size: clamp(3.5rem, 10vw, 4.5rem);
  }
}



.home-kacheln {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  justify-items: center;
  align-items: stretch;
}
@media (max-width: 768px) {
  .home-kacheln {
    gap: 4rem;
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (min-width: 769px) and (max-width: 1199px) {
  .home-kacheln {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .home-kacheln {
    gap: 4rem;
    grid-template-columns: repeat(2, 1fr);
  }
}
.card {
  height: 100%;
  width: 33vw;
  background: linear-gradient(
    135deg,
    rgba(77, 91, 107, 0.2),
    rgba(79, 98, 112, 0.2),
    rgba(96, 132, 149, 0.2),
    rgba(111, 166, 193, 0.2)
  );
  box-shadow: 0 0.5rem 0.5rem 0.1rem rgba(194, 227, 236, 0.3);
  padding: 1rem 2rem;
  border-radius: 0.25rem;
  text-align: center;
  justify-content: center;
  transition-duration: 0.9s;
}
@media (min-width: 769px) and (max-width: 1199px) {
  .card {
    padding: 0.5rem 1rem;
    width: 66vw;
  }
}
@media (max-width: 768px) {
  .card {
    padding: 0.5rem 1rem;
    width: 66vw;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .card {
    width: 36vw;
  }
}
.card-link {
  text-decoration: none;
  display: block;
  color: white;
  text-shadow: 0 0.05rem rgba(14, 72, 130, 0.5);
  text-decoration: none;
}
.card-link:hover {
  color: #1666b5;
}
.card:hover {
  box-shadow: 0.25rem 0.75rem 1.5rem 0.5rem rgba(255, 255, 255, 0.6);
}
.card:active {
  transform: scale(0.9);
  transition: transform 1.0s ease;
  box-shadow: 0.25rem 0.5rem 1.25rem 0.25rem rgba(86, 167, 233, 0.5);
  transition-duration: 0.5s;
  background-color: rgba(191, 214, 240, 0.1);
}
.card img {
  max-width: 75%;
  max-height: 75%;
  border-radius: 0.75rem;
  padding: 0.25rem;
}
@media (max-width: 1199px) {
  .card img {
    max-width: 60%;
    max-height: 60%;
  }
}
.card h1 {
  font-size: clamp(1.5rem, 10vw, 2rem);
  color: rgb(224, 224, 224);
  letter-spacing: -0.01em;
  text-shadow: 0 0.05rem 0.05rem white;
  width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
@media (max-width: 768px) {
  .card h1 {
    font-size: clamp(1.5rem, 10vw, 1.75rem);
  }
}
.card h1:hover {
  color: white;
}
.card p {
  font-size: 1rem;
  text-align: center;
  max-width: 100%;
  color: rgb(224, 224, 224);
  text-shadow: 0.1rem 0.1rem rgba(0, 0, 0, 0.8);
}
@media (max-width: 768px) {
  .card p {
    font-size: 0.9rem;
    text-shadow: 0.1rem 0.1rem rgba(0, 0, 0, 0.4);
  }
}



/* Design für Wetterarchiv */
.banner-archiv {
  color: rgba(248, 248, 248, 0.9);
  margin-top: 4rem;
  text-shadow: 0.25rem 0.25rem 0.5rem rgba(19, 19, 19, 0.9);
  font-size: clamp(3.2rem, 5rem, 6.5rem);
}
@media (max-width: 768px) {
  .banner-archiv {
    font-size: clamp(3rem, 3.2rem, 4.5rem);
    margin-top: 5rem;
    padding-bottom: 0.2rem;
  }
}
@media (min-width: 769px) and (max-width: 1199px) {
  .banner-archiv {
    margin-top: 6rem;
  }
}
@media (orientation: landscape) and (max-height: 800px) {
  .banner-archiv {
    font-size: clamp(3rem, 3.5rem, 4.5rem);
    margin-top: 4rem;
    padding-bottom: 0.2rem;
  }
}

.abfrage-label {
  font-size: 1.5rem;
  color: black;
  text-shadow: 0 0.05rem 0 rgba(0, 0, 0, 0.9);
  padding-bottom: 0.75rem;
  margin: 0 auto;
}
.wetterarchiv-info {
  color: rgba(224, 224, 224);
  letter-spacing: -0.03em;
  margin: 2rem 0;
  text-shadow: 0.12rem 0.06rem rgba(0, 0, 0);
}
@media (max-width: 768px) {
  .wetterarchiv-info {
    margin: 1rem 0;
    font-size: 0.9rem;
  }
}

form#wetterForm {
  background-color: rgba(249, 249, 249, 0.3);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.25em 0.5rem rgba(171, 175, 185, 0.2);
  max-width: 32rem;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (max-width: 768px) {
  form#wetterForm {
    max-width: 70vw;
  }
}
form#wetterForm label {
  display: block;
  color: rgb(248, 248, 248);
  text-align: left;
  margin-bottom: 0.3rem;
}
form#wetterForm input[type="text"],
form#wetterForm select {
  padding: 0.6rem;
  font-size: 1rem;
  color: black;
  border: 1px solid rgba(125, 122, 122);
  border-radius: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  transition: border 0.2s;
  background-color: rgba(252, 252, 252);
}
form#wetterForm input:focus,
form#wetterForm select:focus {
  border-color: rgb(25, 25, 25);
  outline: none;
}
form#wetterForm button {
  letter-spacing: -0.01rem;
  background-color: rgb(25, 25, 25);
  border: 1px solid rgb(160, 160, 160);
  color: white;
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, transform 0.3s ease;
}
form#wetterForm button:hover {
  background-color: black;
}
form#wetterForm button:active {
  background-color: rgb(62, 62, 62);
  transform: scale(0.97);
  transition: none;
}

#chartOverlay {
  position: fixed;
  height: 100%;
  width: 100%;
  opacity: 0;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10998;
  pointer-events: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.2s ease;
}

#chartOverlay.visible {
  display: flex;
  opacity: 1;
  background-image: url('../static/wallpapers/Wallpaper.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  background-attachment: fixed;
}
@media (max-width: 768px), (orientation: portrait) {
  #chartOverlay.visible {
    background-image: url('../static/wallpapers/WallpaperMobile.webp');
    background-attachment: scroll;
  }
}

#chartWrapper {
  position: relative;
  display: flex;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    60deg,
    rgba(70, 68, 68, 0.2),
    rgba(33, 115, 183, 0.2)
  );
  border-radius: 0.25rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: auto;
}

#chart {
  display: block;
  width: 100%;
  height: 60vh;
  max-height: 70vh;
  padding: 0 1rem;
}
@media (max-width: 768px) {
  #chart {
    height: auto !important;
  }
}

#chartContainer {
  display: none;
  width: 100%;
  height: 100%;
  padding: 0.5rem 0;
  opacity: 1;
  overflow: auto;
}
@media (max-width: 768px) {
  #chartContainer {
    max-height: 90%;
  }
}

#chartContainer h2 {
  text-align: center;
  width: 100%;
  color: rgba(248, 248, 248, 0.9);
}

@media (orientation: landscape) and (max-width: 768px) {
  #chartContainer,
  #chart {
    min-height: 100% !important;
    min-width: 100% !important;
    overscroll-behavior: contain;
  }
}
#chartContainer.visible {
  display: block;
  opacity: 1;
}

#chartInfo {
  border-bottom: 0.1rem solid rgba(27, 127, 193, 0.4);
  margin: 3rem 0 0 0;
  font-size: 1rem;
  color: rgba(248, 248, 248, 0.9);
  letter-spacing: -0.01em;
  text-align: center;
}
@media (max-width: 768px) {
  #chartInfo {
    margin: 1rem 0 0 0;
  }
}
@media (min-width: 769px) and (max-width: 1023px) {
  #chartInfo {
    margin: 2rem 0 0 0;
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  #chartInfo {
    margin: 3rem 0 0 0;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.archive-wrapper {
  display: block;
  max-width: 59%;
  margin: 0 auto;
  text-align: center;
}
@media (max-width: 768px) {
  .archive-wrapper {
    max-width: 90%;
  }
}

.charts-semibold {
  text-shadow: 0 0.02rem 0 rgba(248, 248, 248, 0.9);
}


/* Spinner */
#chartLoading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5em;
    height: 5em;
    border: 0.5em solid rgba(69, 159, 194, 0.9);
    border-top-color: rgba(157, 218, 243, 0.8);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 9998;
}
@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
.spinner.hidden {
    display: none;
}


/* Overlay Close Button */
#closeBtn {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  padding: 0.5rem 0.8rem;
  font-size: 1.2rem;
  font-family: "Audiowide";
  color: rgba(249, 249, 249, 0.7);
  background: rgba(225, 54, 54, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0 1.2rem 0 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  z-index: 12000;
  transition: background 0.25s ease, transform 0.15s ease;
}
@media (max-width: 768px) {
  #closeBtn {
    top: 0.4rem;
    right: 0.4rem;
  }
}
#closeBtn:hover {
  background: rgba(225, 54, 54, 0.6);
  color: rgba(249, 249, 249, 0.9);
}
#closeBtn:active {
  transform: scale(0.92);
}



@media (hover: hover) {
  /* Horizontale Scrollbar*/
  .forecast-grid::-webkit-scrollbar,
  #chartContainer::-webkit-scrollbar {
    height: 1rem;
  }
  .forecast-grid::-webkit-scrollbar-track,
  #chartContainer::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
  }
  .forecast-grid::-webkit-scrollbar-thumb,
  #chartContainer::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 1rem;
  }
  .forecast-grid::-webkit-scrollbar-thumb:hover,
  #chartContainer::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.55);
  }
  .forecast-grid,
  #chartContainer {
    scrollbar-width: 1rem;
    scrollbar-color: rgba(0, 0, 0, 0.35) transparent;
  }

  /* Vertikale Scrollbar */
  #forecastOverlay .forecastWrapper::-webkit-scrollbar,
  #chartWrapper::-webkit-scrollbar {
    width: 0.5rem;
  }
  #forecastOverlay .forecastWrapper::-webkit-scrollbar-track,
  #chartWrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
  }
  #forecastOverlay .forecastWrapper::-webkit-scrollbar-thumb,
  #chartWrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 1rem;
  }
  #forecastOverlay .forecastWrapper::-webkit-scrollbar-thumb:hover,
  #chartWrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.55);
  }
  #forecastOverlay .forecastWrapper,
  #chartWrapper {
    scrollbar-width: 0.5rem;
    scrollbar-color: rgba(0, 0, 0, 0.35) transparent;
  }
  html.no-scroll {
  overflow: hidden !important;
  scrollbar-gutter: unset;
  }
}



/* Design für Wettervorhersage*/
.banner-vorhersage {
  color: rgba(248, 248, 248, 0.9);
  margin-top: 4rem;
  text-shadow: 0.25rem 0.25rem 0.5rem rgba(19, 19, 19, 0.9);
  font-size: clamp(3.2rem, 5rem, 6.5rem);
}
@media (max-width: 768px) {
  .banner-vorhersage {
    font-size: clamp(3rem, 3.2rem, 4.5rem);
    margin-top: 5rem;
    padding-bottom: 0.2rem;
  }
}
@media (min-width: 769px) and (max-width: 1199px) {
  .banner-vorhersage {
    margin-top: 6rem;
  }
}
@media (orientation: landscape) and (max-height: 800px) {
  .banner-vorhersage {
    font-size: clamp(3rem, 3.5rem, 4.5rem);
    margin-top: 4rem;
    padding-bottom: 0.2rem;
  }
}

.wettervorhersage-container {
  display: flex;
  margin-top: 0.65rem;
  margin-bottom: 4rem;
  align-items: center;
  justify-content: center;
}

.input-wettervorhersage {
  position: relative;
  font-family: "audiowide";
  letter-spacing: -1px;
  padding: 1.1rem 1.25rem;
  margin-top: 1rem;
  background: linear-gradient(
    60deg,
    rgba(249, 249, 249, 0.4),
    rgba(33, 115, 183, 0.3)
  );
  box-shadow: 0 0.2em 0.15rem rgba(171, 175, 185, 0.2);
  border-radius: 0.75rem;
  font-size: 1.75rem;
  text-align: center;
  color: rgba(249, 249, 249, 0.7);
  outline: none !important;
  border: none !important;
}
@media (max-width: 768px) {
  .input-wettervorhersage {
    width: 75%;
    padding: 0.75rem;
    margin-top: 1rem;
    font-size: 1.5rem;
  }
}
.input-wettervorhersage:hover {
  box-shadow: 0.25rem 0.6rem 0.7rem 0.2rem rgba(255, 255, 255, 0.5);
  border-color: transparent !important;  
}
.input-wettervorhersage::placeholder {
  color: rgba(10, 10, 10, 0.7);
}
.input-wettervorhersage:focus {
  outline: none !important;
  border: none !important;
  box-shadow: 0.15rem 0.3rem 0.35rem 0.1rem rgba(255, 255, 255, 0.5);
}

.button-wettervorhersage {
  margin-top: 1rem;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    rgba(236, 240, 243, 0.3),
    rgba(243, 244, 249, 0.4),
    rgba(33, 115, 183, 0.3),
    rgba(16, 86, 172, 0.1),
    rgba(243, 244, 249, 0.4),
    rgba(236, 240, 243, 0.3)
  );
  box-shadow: 0.2rem 0.25rem 0.625rem 0.25rem rgba(255, 255, 255, 0.2);
  color: rgba(249, 249, 249, 0.8);
  font-size: 1.2rem;
  font-family: "audiowide";
  letter-spacing: -0.01rem;
  border-radius: 50%;
  border-color: #282727;
  transition: transform 0.1s ease;
  touch-action: manipulation;
}
@media (max-width: 768px) {
  .button-wettervorhersage {
    margin-top: 0.25rem;
  }
}

.button-wettervorhersage:hover {
  box-shadow: none;
  border-radius: 50%;
  border-color: #282727;
}

.button-wettervorhersage:active {
  transform: translateY(0.25rem) scale(0.97);
  opacity: 0.85;
}

.autocomplete-wrapper {
  display: flex;
  position: relative;
  flex-direction: row;
  width: 100%;
  align-items: center;
  gap: 2rem;
  justify-content: center;
}
@media (max-width: 768px) {
  .autocomplete-wrapper {
    flex-direction: column;
    gap: 2.5rem;
  }
}


.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(33, 115, 183, 0.3);
  box-shadow: 0 0.2em 0.15rem rgba(171, 175, 185, 0.2);
  color: rgba(249, 249, 249, 0.7);
  border-radius: 0.5rem;
  border-top: none;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 80%;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .autocomplete-list {
    align-items: center;
    width: 100%;
  }
}
.autocomplete-list li {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  color: rgba(249, 249, 249, 0.9);
}
.autocomplete-list li:hover {
  background-color: rgba(242, 242, 242, 0.2);
}



/* Design Wettervorhersage */
#forecastOverlay {
  position: fixed;
  height: 100vh;
  width: 100%;
  opacity: 0;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  z-index: 10998;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.2s ease;
}

#forecastOverlay.visible {
  display: flex;
  opacity: 1;
  background-image: url('../static/wallpapers/Wallpaper.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  background-attachment: fixed;
}
@media (max-width: 768px), (orientation: portrait) {
  #forecastOverlay.visible {
    background-image: url('../static/wallpapers/WallpaperMobile.webp');
    background-attachment: scroll;
  }
}

#forecastOverlay .forecastWrapper {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    60deg,
    rgba(70, 68, 68, 0.2),
    rgba(33, 115, 183, 0.2)
  );
  box-shadow: 0 0.25em 0.5rem rgba(171, 175, 185, 0.2);
  border-radius: 0.25rem;
  overflow-y: auto;
}

#scroll-forecast {
  display: flex;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

}
.forecast-grid {
  display: flex;
  gap: 2rem;
  z-index: 10999;
  justify-content: space-around;
  margin: 0 auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
  padding: 0;
}

.forecast-columns {
  flex: 0 0 clamp(22rem, 30vw, 28rem);
  text-shadow: 0.2rem 0.5rem 0.5rem 0.2rem rgba(20, 20, 20, 0.6);
  font-size: 2.25rem;
  font-family: "audiowide";
  border-radius: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  align-items: stretch;
}
@media (hover: none), (max-width: 1199px) {
  .forecast-grid {
    gap: 1rem;
  }
  .forecast-columns {
    flex: 0 0 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    width: 100%;
    margin-right: 0.5rem;
    box-sizing: border-box;
  }
}
.forecast-columns canvas {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  min-width: 0;
  flex-shrink: 1; 
}
@supports (-webkit-tap-highlight-color: transparent) {
  .forecast-columns canvas {
    max-width: 98vw;
  }
}

.forecast-columns h3 {
  display: flex;
  margin-top: clamp(5rem, 6rem, 8rem);
  color: rgba(248, 248, 248, 0.9);
  text-shadow: 0.1rem 0.1rem 0.25rem rgba(20, 20, 20, 0.9);
  font-size: clamp(2rem, 3rem, 4rem);
  flex-wrap: wrap;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 0.5rem;
}
@media (max-width: 768px) {
  .forecast-columns h3 {
    margin-top: 4.5rem;
    font-size: clamp(2rem, 2.5rem, 3rem);
  }
}
.trennstrich {
  border-top: 0.1rem solid rgba(242, 242, 242, 0.5);
  margin: auto;
  width: 60%;
}
.output p {
  margin: 1rem 0;
  text-shadow: 0 0.05rem 0.05rem rgba(200, 200, 200, 0.7);
}
.output p:last-of-type {
  margin-bottom: 5rem;
}
@media (max-width: 768px) {
  .output p {
    font-size: 2rem;
  }
  .output p:last-of-type {
    margin-bottom: 3rem;
  }
}

.weather-timeline {
  display: flex;
  width: 94%;
  max-width: 100%;
  justify-content: center;
  text-align: center;
  margin: 2rem auto 0 auto;
  gap: 0.5rem;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .weather-timeline {
    margin-top: 1rem;
  }
}
.weather-tooltip {
  position: fixed;
  background: rgba(8, 43, 71, 0.8);
  color: rgba(248, 248, 248, 0.95);
  padding: 0.5rem;
  border-radius: 0.1rem;
  font-size: 0.9rem;
  pointer-events: none;
  white-space: nowrap;
  z-index: 11002;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.weather-symbol {
  display: flex;
  flex: 0 1 auto;
  color: rgba(248, 248, 248, 0.8);
  letter-spacing: -1px;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  max-width: 5rem;
  margin: 0.25rem 0;
  text-align: center;
  word-wrap: break-word;
  bottom: 0;
}
@media (max-width: 768px) {
  .weather-symbol {
    margin: 0.2rem 0;
  }
}
.weather-symbol img {
  height: clamp(2.5rem, 3rem, 3.5rem);
  width: 100%;
  object-fit: contain;
}
@media (max-width: 768px) {
  .weather-symbol img {
    height: clamp(2.5rem, 2.75rem, 3rem);
  }
}

.temp-very-cold {
  color: #40a4e3;
}
.temp-cold {
  color: #2699e0;
}
.temp-cool {
  color: #1393e3;
}
.temp-moderate {
  color: #dbd393;
}
.temp-mild {
  color: #d27326;
}
.temp-warm {
  color: #cf3131;
}
.temp-very-warm {
  color: #a31c10;
}
.temp-hot {
  color: #a8163f;
}
.temp-very-hot {
  color: #9a184e;
}

.current-weather-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.8rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: "Audiowide";
  color: rgba(249, 249, 249, 0.7);
  letter-spacing: -1px;
  font-size: 1.3rem;
  z-index: 11999;
}
@media (max-width: 768px) {
  .current-weather-badge {
    top: 0.5rem;
    left: 0.1rem;
    font-size: 1.2rem;
  }
}
.current-weather-badge .live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 0.5rem rgba(255, 60, 60, 0.8);
  animation: pulse 1.4s infinite ease-in-out;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}
.current-weather-badge img {
  width: 1.6rem;
  height: 1.6rem;
  opacity: 0.8;
  transform: scale(1.25);
}



.misc-text1 {
  text-align: center;
  margin-top: 4rem;
  color: rgba(248, 248, 248, 0.9);
  text-shadow: 0.25rem 0.25rem 0.5rem rgba(19, 19, 19, 0.9);
  font-size: clamp(3.2rem, 5rem, 6.5rem);
}
@media (max-width: 768px) {
  .misc-text1 {
    font-size: clamp(2.5rem, 3.2rem, 4.5rem);
    margin-top: 5rem;
    padding-bottom: 0.2rem;
  }
}
@media (min-width: 769px) and (max-width: 1199px) {
  .misc-text1 {
    margin-top: 6rem;
  }
}
@media (orientation: landscape) and (max-height: 800px) {
  .misc-text1 {
    font-size: clamp(3rem, 3.5rem, 4.5rem);
    margin-top: 4rem;
  }
}
.misc-text2 {
  margin: 2rem 0;
  text-align: center;
  color: rgba(248, 248, 248, 0.7);
  text-shadow: 0.25rem 0.25rem 0.5rem rgba(19, 19, 19, 0.9);
}
.misc-text3 {
  margin-bottom: 3rem;
  text-align: center;
  color: rgba(248, 248, 248, 0.9);
  line-height: 1.4rem;
  font-weight: 600;
  font-style: italic;
  font-size: 1rem;
  text-shadow: 0.25rem 0.25rem 0.5rem rgba(19, 19, 19, 0.9);
}
.misc-text4 {
  margin-bottom: 3rem;
  text-align: center;
  color: rgba(248, 248, 248, 0.7);
  font-size: 1.2rem;
}
.misc-text4-sub {
  text-shadow: 0.25rem 0.25rem 0.5rem rgba(19, 19, 19, 0.9);
}
.misc-textMain {
  text-align: center;
  color: rgba(248, 248, 248, 0.9);
  font-size: 1rem;
}
@media (max-width: 768px) {
  .misc-textMain {
    font-size: 0.9rem;
  }
}
.misc-textHeader {
  color: rgba(248, 248, 248, 0.7);
  letter-spacing: -1px;
}


.notfound-text {
  text-align: center;
  color: rgba(227, 226, 226);
  margin-top: 10rem;
  font-size: clamp(3.5rem, 4rem, 4.5rem);
  text-shadow: 0.12rem 0.12rem rgba(4, 2, 39, 0.9);
}
@media (max-width: 768px) {
  .notfound-text {
    font-size: clamp(3rem, 3.5rem, 4rem);
    width: 100%;
    object-fit: contain;
  }
}
.homeButton404 {
  background-color: rgba(40, 117, 195);
  color: white;
  font-size: 1.2rem;
  margin: 4rem 0 0 0;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
}
.homeButton404:hover {
  background-color: rgb(18, 76, 135);
}



#footer {
  opacity: 1;
  transition: none;
  padding-top: 3.5rem;
}
#footer.hidden {
  opacity: 0;
  pointer-events: none;
}
.footer {
  padding: 0.5rem 0;
  text-align: center;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  row-gap: 0.25rem;
  flex-wrap: wrap;
}
.flag-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  column-gap: 1.5rem;
  margin-bottom: 0.1rem;
}
.flag-row img {
  height: 0.9rem;
  line-height: 1rem;
  cursor: pointer;
  transition: transform 0.5s ease;
}
@media (hover: hover) {
  .flag-row img:hover {
    transform: scale(1.1);
    transition: transform 0.5s ease;
  }
}
.flag-row img:active {
  transform: scale(1.2);
  transition: transform 0.15s ease;
}
.lang-option.active {
  pointer-events: none;
  cursor: default;
}



.footer-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  column-gap: 1.5rem;
  padding: 0;
  list-style: none;
}
.footer-row a {
  text-align: center;
}
.footer a {
  color: white;
  font-size: 0.85rem;
  text-decoration: none;
}
.footer a:hover {
  color: rgb(210, 210, 210);
}
.footer a:active {
  color: rgb(152, 152, 152);
}
.footer-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.footer-row .footer-copy {
  white-space: nowrap;
  color: white;
  font-size: 0.85rem;
}
.footer-copy {
  margin-right: -1rem;
}



.portrait {
    width: 100%;
    max-width: 25em;
    height: auto;
}
.icon {
    width: 100%;
    max-width: 3.75em;
    height: auto;
    padding-left: 0.625em;
    padding-top: 0.625em;
}
.symbol {
    height: 0.9em;
    width: auto;
    vertical-align: middle;
    margin-right: 0.1em;
}



@font-face {
  font-family: 'Audiowide';
  src: url('fonts/Audiowide.woff2') format('woff2');
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'SyneMono';
  src: url('fonts/SyneMono.woff2') format('woff2');
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}