/* Importing Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,600;0,700;1,500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  /* Light Theme Colors */
  --sidebar-bg: #F5F5F5;
  --primary-color: #4F46E5;
  --secondary-color: #3B82F6;
  --background-color: #FFFFFF;
  --border-color: #E5E7EB;
  --text-color: #111827;
  --text-secondary: #6B7280;
}

body.dark-theme {
  /* Dark theme colors */
  --sidebar-bg: #1F2937;
  --primary-color: #8B5CF6;
  --secondary-color: #60A5FA;
  --background-color: #111827;
  --border-color: #374151;
  --text-color: #F9FAFB;
  --text-secondary: #9CA3AF;
}

/* Jonas */
.main-view {
  display: flex;
  flex-direction: column;
}

section.headline {
  padding: .8rem 15%;
  margin-bottom: 0;
  text-align: center;
  color: var(--text-color);
}

.headline h2 {
  margin-bottom: 1.6rem;
}


    .carousel-container {
      position: relative;
      overflow: hidden;
      max-width: 1200px;
      margin: 0 auto;
    }

    .carousel-track {
      display: flex;
      transition: transform 0.5s ease-in-out;
    }

    .card {
      flex: 0 0 100%;
      max-width: 100%;
      padding: 10px;
    }

@media (max-width: 820px) {
    section.headline {
    padding: .8rem 12px;
    margin-bottom: 0;
    text-align: justify;
  }
  .headline h2 {
    text-align: center;
  }
    }
@media (min-width: 600px) and (max-width: 1199px) {
  .card {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 1200px) {
  .card {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
}


    .card-inner {
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      cursor: pointer;
      position: relative;
      user-select: none;
      height: 368px; /* Höhe für Bild + Text + Steckbrief */
      display: flex;
      flex-direction: column;
    }

    .card img {
      width: 100%;
      height: 320px;
      object-fit: cover;
      display: block;
      object-position: top;
      flex-shrink: 0;
    }

.name {
  height: 48px;
  backdrop-filter: blur(4px);
  background-color: rgba(0, 0, 0, 0.4); /* optional: für Kontrast */
  color: white;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

    .steckbrief {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
        background: rgba(0,0,0, 0.5);
        color: #fff;
      padding: 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
      overflow-y: auto;
      box-sizing: border-box;
      border-radius: 10px;
      font-size: 0.9rem;
      line-height: 1.1;
    }

    .card:hover .steckbrief,
    .card.show-info .steckbrief {
      opacity: 1;
      pointer-events: auto;
    }

    .steckbrief h3 {
      margin-top: 0;
      color: #7aa4db;
      margin-bottom: 10px;
      font-size: 1.2rem;
    }

    .steckbrief ul {
      list-style: none;
      padding: 0;
      margin: 0;
      text-align: left;
      width: 100%;
      max-height: 280px;
      overflow-y: auto;
    }

    .steckbrief ul li {
      margin: 5px 0;
      padding-bottom: 4px;
    }

    /* Pfeile */

    .arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(44, 123, 229, 0.8);
      border: none;
      color: white;
      font-size: 2.5rem;
      padding: 0 12px;
      border-radius: 50%;
      cursor: pointer;
      user-select: none;
      z-index: 10;
      transition: background 0.3s ease;
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .arrow:hover {
      background: rgba(44, 123, 229, 1);
    }

    .left-arrow {
      left: 10px;
    }

    .right-arrow {
      right: 10px;
    }


 /* Quiz */ 
  .betreuer-quiz {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
    background: #f0f4f8;
    color: #2c3e50;
  }
  .betreuer-quiz h2 {
    text-align: center;
  }
  #progress-bar {
    height: 12px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
  }
  #progress {
    height: 100%;
    width: 0%;
    background: #3498db;
    transition: width 0.4s ease;
  }
  #quiz {
    background: white;
    padding: 1.5rem 1rem 2rem 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgb(0 0 0 / 0.1);
    min-height: 320px;
  }
  .question {
    display: none;
  }
  .question.active {
    display: block;
  }
  .question h2 {
    margin-bottom: 1rem;
    font-weight: 600;
  }
  .answers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .answer {
    background: var(--border-color);
    border: 2px solid #ccc;
    border-radius: 10px;
    cursor: pointer;
    padding: auto;
    text-align: center;
    transition: border-color 0.3s, background 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
  }
  .answer img {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.6rem;
    user-select: none;
  }
  .answer:hover {
    border-color: #3498db;
    background: #eaf4fc;
  }
  .answer.selected {
    border-color: #2980b9;
    background: #d6e9fc;
  }
  #quiz img {
    max-width: 150px;
    border-radius: 12px;
    margin-top: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }




