* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-family: Roboto;
}

body {
  /* padding: 20px; */
  /* background-color: var(--lightBlue); */
  background-image: url("icons/background.jpg");
  background-size: auto;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  /* min-height: 100vh; */
}

:root {
  --blue: rgb(49, 112, 143);
  --pink: #8b3a62;
  --lightPink: #cd6090;
  --red: #e46464;
  --lightRed: #ffdddd;
  --green: #33a333;
  --gray: #aaaaaa;
  --lightBlue: rgb(217, 237, 247);
}

#hamburger-menu {
  display: block;
  font-size: 30px;
  cursor: pointer;
}

#close-menu {
  display: block;
  font-size: 30px;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
}

#nav-menu {
  position: fixed;
  left: -250px;
  top: 0;
  width: 250px;
  height: 100%;
  background-color: var(--blue);
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
  z-index: 102;
  background: linear-gradient(
    135deg,
    rgba(137, 137, 137, 1) 0%,
    rgba(230, 236, 245, 0.85) 100%
  );
}
#nav-menu h2 {
  padding: 10px 15px;
  color: black;
  text-align: left;
  font-size: xx-large;
  font-weight: bold;
  text-decoration: underline;
  margin-bottom: 20px;
}
#nav-menu a {
  padding: 10px 15px;
  text-decoration: none;
  font-size: x-large;
  font-weight: bold;
  color: black;
  display: block;
  transition: 0.3s;
}

#nav-menu a:hover {
  background-color: var(--lightBlue);
}

#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgba(128, 128, 128, 0.7); /* Grau und leicht transparent */
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000;
  display: none; /* Standardmäßig ausgeblendet */
  width: 40px; /* Feste Breite */
  height: 40px; /* Feste Höhe */
}

#progress-bar {
  left: 0;
  width: 0;
  height: 5px;
  background-color: blue;
  z-index: 100;
  margin-bottom: 5px;
}
#header {
  display: flex;
  flex-direction: column;
  background-color: white;
  position: fixed;
  width: 100%; /* Volle Breite */
  z-index: 100;
  top: 0;
  border-bottom: 2px solid black;
  padding: 10px;
  margin-top: auto;
  margin-bottom: auto;
}

#main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  margin: auto;
  margin-top: calc(var(--header-height) - 0px);
  padding: 20px;
}

#menu {
  display: flex;
  justify-content: center;
  align-items: center;
}

#menu > img {
  cursor: pointer;
}

#menu h1 {
  margin: 0 auto; /* Zentriert das h1 horizontal */
}

/* Overlay für das Blockieren von Klicks außerhalb des Menüs */
#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0); /* Unsichtbar */
  z-index: 100; /* Unter dem Menü, aber über allem anderen */
  display: none; /* Standardmäßig ausgeblendet */
}

.footer {
  font-size: 0.9rem;
  /* padding-top: 10px; */
  text-align: center;
  padding-bottom: 10px;
}

.footer a {
  color: var(--blue);
  text-decoration: none;
  margin: 0 10px;
}

.footer a:hover {
  text-decoration: underline;
}

#spenden-link {
  font-weight: bold;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

ul {
  list-style-type: none;
}

select {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
}

/* Quiz-Styles */
.dropdown-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.quiz-nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  gap: 10px;
}
button {
  background: linear-gradient(90deg, #4f8cff 0%, #235390 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.7em 1.5em;
  font-size: 1.1em;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(79, 140, 255, 0.08);
  cursor: pointer;
  /* transition: background 0.2s, transform 0.1s; */
}
button:disabled {
  background: #b3c6e0;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.7;
}
.quiz-frage {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8fbff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(79, 140, 255, 0.07);
  /* padding: 0em 1.5em 1.5em 1.5em; */
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  gap: 18px;
}

.quiz-frage h2,
.quiz-frage p,
.quiz-frage strong,
.dropdown-wrapper,
.immediate-result,
.quiz-nav {
  width: 100%;
  text-align: center;
}
.quiz-frage h2 {
  color: #235390;
}
.quiz-frage strong {
  font-size: 1.15em;
  color: #235390;
  display: block;
}
.immediate-result {
  font-size: 1.1em;
  padding: 0.8em 1em;
  border-radius: 7px;
  background: #eaf6ff;
  border-left: 5px solid #4f8cff;
  box-shadow: 0 1px 4px rgba(79, 140, 255, 0.06);
  min-height: 2.2em;
}
.immediate-result .richtig {
  color: #1a9c4b !important;
  font-weight: bold;
}
.immediate-result .falsch {
  color: #e03c3c !important;
  font-weight: bold;
}
select[name="oberkat"] {
  font-size: 1em;
  padding: 0.5em 1em;
  border-radius: 6px;
  border: 1px solid #b3c6e0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 1px 4px rgba(79, 140, 255, 0.04);
  transition: border 0.2s;
}
select[name="oberkat"]:focus {
  border: 1.5px solid #4f8cff;
  outline: none;
}
