:root {
  --primary-color: #2a6f97;
  --primary-dark-color: #014f86;
  --primary-dark-hover-color: #003257;
  --header-text-size: 2em;
  --footer-height: 2em;
  --bg-color: #a9d6e5;
}
@font-face {
  font-family: "Text";
  src: url("Quicksand-Medium.ttf") format("truetype");
}
html,
body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: sans-serif;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
}
* {
  font-family: "Text";
}

.quiz-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  flex-grow: 1;
  min-height: calc(100vh - 144px - 2.4em - 40px - 40px);
}

.quiz-container {
  padding: 20px;
  width: 100%;
  text-align: center;
}

.ergebnis-anzeige {
  margin-bottom: 25px;
  font-size: 2.5em;
  font-weight: bold;
  align-items: flex-end;
  display: flex;
  gap: 20px;
  justify-content: center;
  position: relative;
}

.ergebnis-buchstabe {
  display: inline-block;
  width: 1em;
  text-align: center;
  border-bottom: 3px solid var(--primary-dark-color);
  color: var(--primary-dark-color);
  margin: 0;
  transform-style: preserve-3d;
  transform-origin: center;
  transition: 0.2s;
}
.ergebnis-buchstabe.flipping {
  animation: flipgreen 0.3s ease-in-out forwards;
  margin-bottom: 0px;
}
@keyframes flipgreen {
  0% {
    transform: scaleX(1) rotateY(0deg);
  }
  49.9% {
    transform: scaleX(1) rotateY(90deg);
  }
  50.1% {
    transform: scaleX(-1) rotateY(90deg);
    color: #06d6a0;
    border-bottom-color: #06d6a0;
  }
  100% {
    transform: scaleX(-1) rotateY(180deg);
    color: #06d6a0;
    border-bottom-color: #06d6a0;
  }
}
.quiz-card {
  margin-bottom: 20px;
}

.frage-card {
  background-color: var(--primary-dark-color);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.frage-card h2 {
  margin: 0;
  font-size: 1.4em;
  color: #fff;
}

.antworten-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.antwort-card {
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.antwort-card:hover {
  background-color: #e2e6ea;
  border-color: #adb5bd;
}

.antwort-card.selected {
  background-color: var(--primary-dark-color);
  color: white;
  border-color: var(--primary-dark-color);
}

.navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.navigation-buttons button {
  background-color: var(--primary-dark-color);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s;
}

.navigation-buttons button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.navigation-buttons button:not(:disabled):hover {
  background-color: var(--primary-color);
}

.fortschritt-anzeige {
  margin-top: 15px;
  font-size: 0.9em;
  color: #272727;
}

.circle {
  background-color: var(--primary-dark-color);
  border-radius: 100%;
  height: calc(var(--header-text-size) * 1.2);
  width: calc(var(--header-text-size) * 1.2);
  color: #fff;
  font-size: var(--header-text-size);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}
header {
  padding: 20px;
  background-color: var(--primary-color);
  text-align: center;
}
.headerleft {
  display: flex;
  align-items: center;
}
header h1 {
  margin: 0;
  margin-left: 20px;
  padding: 0;
  color: #fff;
  font-size: var(--header-text-size);
}
footer {
  margin: 0;
  color: #fff;
  margin-top: auto;
}
footer a img {
  height: var(--footer-height);
  width: var(--footer-height);
}
.footermenu {
  margin: 0;
  padding: 0;
  display: inline;
}

.flex {
  display: flex;
  justify-content: center;
  align-items: center;
}
.foerdererimg {
  margin-left: 40px;
  height: 100px;
}
.instawrapper > a > img {
  width: 100px;
  height: 100px;
}
.footerwrapper {
  background-color: var(--primary-color);
  padding: 20px;
  width: calc(100% - 40px);
}
@media (min-width: 768px) {
  .antworten-container {
    grid-template-columns: 1fr 1fr; /* Zwei Spalten auf größeren Bildschirmen */
  }

  .frage-card h2 {
    font-size: 1.6em;
  }
  .quiz-container {
    max-width: 600px;
  }
}
@media (max-width: 768px) {
  .antworten-container {
    grid-template-columns: 1fr 1fr; /* Zwei Spalten auf größeren Bildschirmen */
  }

  .frage-card h2 {
    font-size: 1.6em;
  }
  .flex {
    display: block;
  }
  .foerdererimg {
    width: 100%;
    height: auto;
    margin-left: 0;
  }
  header h1 {
    display: inline;
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: var(--header-text-size);
  }
  header {
    padding-left: 0;
    padding-right: 0;
  }
  .headerleft {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
  }
  .ergebnis-anzeige {
    margin-bottom: 50px;
  }
  body {
    min-height: 100vh;
  }
  .quiz-wrapper {
    min-height: unset;
  }
  .quiz-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  .quiz-card {
    flex-grow: 1;
  }
  .instawrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0;
  }
  .instawrapper > a > img {
    margin-bottom: 20px;
  }
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.shake-animation {
  animation: shake 0.5s ease-in-out;
}
.shake-animation p {
  color: #ef476f;
  border-bottom-color: #ef476f;
}
