@font-face {
  font-family: 'Inter';
  src: url('Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #F1EBD2, #D9E2C8, #FAF8EF);
  background-size: 300% 300%;
  color: #000000;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 600px;
  margin: 30px auto;
  background: linear-gradient(135deg, #FAF8EF, #f0ebd6);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;

  transform: translateY(10px);
  opacity: 0;
}

.fade {
  animation: fadeIn 0.4s ease forwards;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #333;
  text-align: center;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #333;
  text-align: center;
}

hr {
  border: none;
  border-top: 2px solid #333;
  margin: 10px 0 10px 0;
  width: 40%;
  margin-left: auto;
  margin-right: auto;
}

#start h1, #start .beschreibung {
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeSlideIn 0.6s forwards;
}

#start .beschreibung {
  animation-delay: 0.3s;
}

button {
  background-color: #788AA3;
  color: #E8DDB5;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin: 20px auto 0 auto;
  transition: background-color 0.3s ease, color 0.3s ease;
}

button:hover {
  background-color: #666A86;
}

button:disabled {
  background-color: #ccc !important;
  cursor: default;
  color: #666;
}

.footer {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  padding: 20px 0;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-logo img {
  width: 300px;   /* Größe anpassen */
  height: auto;
  margin-top: 35px;
}

#startBtn {
  background-color: #788AA3;
  color: #E8DDB5;
  padding: 16px 32px;
  font-size: 18px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(120, 138, 163, 0.5);
  animation: pulse 2.5s infinite;
}

#startBtn:hover {
  background-color: #5a6a82;
  transform: scale(1.05);
  animation: none;
}

.beschreibung {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
  text-align: center;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.answer {
  background: #B2C9AB;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.antworten-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.answer:hover {
  background: #e2e6ea;
}

.answer.selected {
  background: #788AA3;
  border-color: #666A86;
}

#fragebereich > h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #444;
  padding-bottom: 10px;
  border-bottom: 2px solid #ddd; /* Trennlinie */
}

#fragebereich .answer {
  margin: 10px 0;
  padding: 12px 16px;
  border-radius: 8px;
  background-color: #f9f9f9;
  border: 2px solid #e8e8e8;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

#fragebereich .answer:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -8px; /* Abstand nach unten */
  height: 2px;
  background-color: #b3b3b3; /* Trennlinie */
}

#fragebereich .answer:last-child {
  border-bottom: none;
}

#fragebereich .answer:hover {
  background-color: #eee;
}

#fragebereich .answer.selected {
  border-color: #008cba;
  background-color: #d0ecf9;
}

#progress-container {
  position: relative;
  width: 100%;
  background-color: #ddd;
  border-radius: 10px;
  height: 12px;
  margin: 20px 0;
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background-color: #788AA3;
  border-radius: 10px 0 0 10px;
  transition: width 0.3s ease;
}

#progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 600;
  font-size: 12px;
  color: #333;
  user-select: none; /* Verhindert das Markieren des Textes */
}

.frageBox .pfeil {
  transition: transform 0.3s ease;
}

.antwort-hinweis {
  font-size: 0.9rem;
  color: #555;
  margin: 10px 0 15px 0;
  font-style: italic;
  text-align: center;
}

.kandidat-box {
  border: 1px solid #E8DDB5;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.kandidat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background-color: #FAF8EF;
  cursor: pointer;
  font-weight: bold;
}

.pfeil {
  display: inline-block;
  transition: transform 0.3s ease;
}

.kandidat-details {
  max-height: 0;
  overflow: hidden;
  padding: 0 10px;
  background-color: #FAF8EF;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.kandidat-details.show {
  padding: 10px;
  max-height: 10000px; /* groß genug, damit alles reinpasst */
}

.kandidat-profil {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}

.kandidat-bild {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.kandidat-text {
  font-size: 0.95rem;
  color: #444;
}

.profil-box {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  padding: 0 10px;
}

.profil-box.show {
  max-height: 1000px; /* groß genug für Profiltext + Bild */
  padding: 10px;
}

.profil-header {
  cursor: pointer;
  background-color: #f5f5f5;
  padding: 8px;
  border-radius: 6px;
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profil-header:hover {
  background-color: #eee;
}

.frage-antwort,
.profil-details {
  max-height: 0;
  overflow: hidden;
  padding: 0 10px;
  background-color: #FAF8EF;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.frage-antwort.show,
.profil-details.show {
  padding: 10px;
}

.frage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 8px;
  background-color: #f5f5f5;
  margin-top: 5px;
  border-radius: 6px;
}

.frage-header:hover {
  background-color: #eee;
}

.start-button-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

@media (min-width: 768px) {
  #start {
    text-align: center;
  }

  #startBtn {
    text-align: center;
    width: 30%;
  }

  .start-button-wrapper {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 15px;
  }

  button {
    width: 100%;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(120, 138, 163, 0.5);
  }
  50% {
    box-shadow: 0 8px 30px rgba(120, 138, 163, 0.8);
  }
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}