:root {
  --colormainlight: #7d8471;
  --colormaindark: #2d4a2b;

  --colorsecdark: #a4ac86;
  
  --colorhighlight: #faf9f6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  hyphens: auto;
}

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

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  margin: 80px 0 0 0;
  color: var(--colorhighlight);
  background-color: var(--colormaindark);
}

main {
  margin: 0 5% 0 5%;
  max-width: 90%; /* passt zu den margins */
  width: 90%; /* ← explizit setzen */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#background {
  z-index: -100;
  background-color: #f0f0f0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.infobox img {
  max-width: 100%;
  height: auto;
  border: solid 2px var(--colorhighlight);
  border-radius: 10px;
}

p {
  text-align: center;
  margin: 0 8px 16px 8px;
  color: var(--colorhighlight);
  padding: 5px;
  word-break: break-word;
  width: 100%;
}

strong {
  font-size: 1.05rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 80%;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  background: var(--colormainlight);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  padding: 8px 16px;
  border: none;
}

.infobox {
  background-color: var(--colormainlight);
  border-radius: 10px;
  padding: 16px;
  margin: 12px auto;
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  scroll-margin-top: 100px;
}



#ernaehrung-audio-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.infobox .btn {
  background-color: var(--colormaindark);
}

a {
  color: var(--colorhighlight);
  text-decoration: none;
}

.uncentered {
  text-align: left;
}

h1 {
  margin: 48px 0 0 0;
  font-size: 36px;
  scroll-margin-top: 128px;
  color: var(--colormaindark);
}

h2 {
  margin: 0 0 20px 0;
  font-size: 28px;
}

h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  text-align: left;
  width: 100%;
}

.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;
}

#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: 12px 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 {
  margin-top: 40px;
  text-decoration: underline;
}

@media (max-width: 430px) {
  body {
    padding: 0px;
  }
  .imagebox {
    grid-template-columns: repeat(2, 1fr);
  }

  main {
    max-width: 100%;
    width: 100%; /* ← explizit setzen */
    box-sizing: border-box;
    margin: 0;
  }

  .container {
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
  }
}

/* spezielles für die stationen */

.mode-container {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--colormainlight);
  border-radius: 18px;
  padding: 16px;
  margin: 18px 0;
}

.mode-title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 1rem;
}

.mode-note {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  font-size: 0.96rem;
}

@media (max-width: 430px) {
  .mode-container {
    padding: 14px;
  }
}

.imagebox {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin: 12px 0 12px 0;
  gap: 12px;
}

#ernaehrung-images svg {
  width: 100%;
  height: 150px;
  color: var(--colorhighlight);
}

#placer {
  height: 64px;
}

.getreide-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  margin-bottom: 40px;
}

.getreide-row img {
  width: 60px;
  flex-shrink: 0;
  height: auto;
}

.infobox ul,
.infobox ol {
  width: 100%;
  text-align: left;
  margin: 0 0 24px 0;
}

ul {
  list-style-type: disc;
  padding-left: 24px;
}

ul:not(ol ul) {
  padding-left: 24px;
}

ol {
  list-style-type: decimal;
  padding-left: 32px;
}

ol li::marker {
  font-weight: bold;
}
