:root {
  --header-h: 72px;
  --container-width: 90%;

  --colormainlight: rgba(179, 218, 186, 0.3);
  --colormaindark: rgba(43, 64, 54, 0.75);

  --colorseclight: rgba(166, 219, 75, 0.2);
  --colorsecdark: rgba(57, 120, 56, 0.5);

  --colorhightlight: rgb(254, 250, 224);
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  word-break: break-word;
  box-sizing: border-box;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
  color: var(--colorhightlight);
  box-sizing: border-box;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  padding-top: var(--header-h);
  padding-bottom: var(--header-h);
}

body {
  overflow-y: auto;
  min-height: 100%;
  background-color: var(--colormaindark);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--colormainlight) no-repeat center center;
  background-size: cover;
  z-index: -10;
}

main {
  margin-left: 5%;
  margin-right: 5%;
  max-width: 90%; /* passt zu den margins */
  width: 90%; /* ← explizit setzen */
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.text {
  max-width: 500px;
  text-align: center;
  margin: 0 auto;
  color: var(--colorhightlight);
  padding: 5px;
}

h1 {
  margin: 48px 0 0 0;
}

h3 {
  margin: 5px 0 5px 0; /* top right bottom left */
}

/* buttons as links */
.btn {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  background: var(--colormainlight);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  min-height: 16px;
}

.btn.secondary {
  max-width: 90%;
  height: 32px;
}

.points {
  font-weight: 600;
  font-size: 18px;
  text-align: center;
  min-width: 120px;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  margin-top: auto;
}

.get_to-quiz-btn {
  width: 100%;
  height: 100px;
  max-width: 250px;
  min-width: 200px;
  display: flex;
  font-size: 20px;
  border-radius: 10px;
  margin: 16px 16px;
  padding: 0 16px;
  background-color: transparent;
  backdrop-filter: blur(10px);
  color: var(--colorhightlight);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-align: center; /* falls Text umbrechen darf */
  cursor: pointer;
}

.stationcontainer {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  width: 100%;
  padding: 4px;
  align-items: stretch;
  justify-content: space-around;
}

#unlockcontainer {
  background-color: var(--colorseclight);
}

#resetQuizzes {
  margin-bottom: 10px;
}

.container {
  width: 100%;
  padding-left: 5%;
  padding-right: 5%;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 10px;
  margin: 36px auto;
  padding: 36px;
  background-color: var(--colormaindark);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 4px 8px 32px rgba(0, 0, 0, 0.6);
  scroll-margin-top: 100px;
}

/*hidden class*/

.forcehidden {
  display: none !important;
}

#AELF {
  max-width: 500px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
  color: var(--colorhightlight);
  padding: 5px;
  font-size: 20px;
  font-weight: 600;
}

@media (max-width: 400px) {
  .button_container {
    grid-template-columns: 1fr; /* Buttons immer noch nebeneinander */
  }

  main {
    margin-left: 2%;
    margin-right: 2%;
    max-width: 96%; /* passt zu den margins */
    width: 96%; /* ← explizit setzen */
    box-sizing: border-box;
  }

  .container {
    width: 100%;
    padding-left: 5%;
    padding-right: 5%;
    box-sizing: border-box;
  }

  .get_to-quiz-btn {
    padding: 0 8px;
  }
}
