:root {
  --color-primary: #2563eb;
  --color-primary-light: #3b82f6;
  --color-primary-dark: #1d4ed8;
  
  --color-secondary: #64748b;
  --color-secondary-light: #94a3b8;
  
  --color-accent: #06b6d4;
  --color-accent-light: #22d3ee;
  
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;
  
  --color-background: #f8fafc;
  --color-surface: #ffffff;
  --color-card: #ffffff;
  
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-secondary: #94a3b8;
  
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  --studio-bg-dark: #0c1f3a;
  
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  font-weight: 400;
  
  color: var(--color-text);
  background-color: var(--color-background);
  
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  /*background: radial-gradient(circle at 50% 0%, rgba(30, 155, 255, .18) 0%, rgba(12, 31, 58, 1) 60%), var(--studio-bg-dark);*/
  background: radial-gradient(900px 700px at 20% -10%, #8aa2c1, transparent 60%), radial-gradient(800px 600px at 100% 0%, #6a86a2, transparent 60%), #556f92;
  font-family: var(--font-family);
}

#app {
  width: 100%;
  min-height: 100vh;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

/* Header */
header , footer{
 /* background: var(--color-surface);*/
  border-radius: var(--radius-xl);
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #183869;
  box-shadow: 0 4px 16px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(255 255 255 / .05);
  color: white;
}
.footer{
  padding: 1rem;
  color: white;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  margin-top: 3rem;
	cursor: auto !important;
}
.footer:hover{
	transform: none !important;
}
.footer a{
  color: white;
}
#sdmed-footer{
  order: 10;
  grid-column: 1 / 2;
}
#biontech-footer{
  order: 11;
  grid-column: 2 / 4;
  font-size: 0.6rem;
}


.header-logo {
		display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
  height: 70px;
  width: auto;
  object-fit: contain;
	flex-grow: 1;
  max-width: 100%;
}
#sdmed-footer .logo-image {
  height: 50px;
}
#biontech-footer .logo-image {
  height: 36px;
}
#start-screen #biontech-footer, #auth-modal #biontech-footer{
  margin-top: 2rem;
}

#start-screen .category, #auth-modal .category {
  box-shadow: unset;
  cursor: unset;
}

h1 {
  font-size: 1.875rem;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
}

.register-ort-div{
  width: 100%;
}
#register-plz{
  width: 12ch;
  flex: 0 0 auto !important;
}
.form-group-inline {
  display: flex;
  gap: 1rem; /* Abstand zwischen den Feldern */
}

.form-group-inline .form-inline-field {
  /*flex: 1;*/ /* beide Felder gleich breit */
  display: flex;
  flex-direction: column;
}

#score-container {
  display: flex;
  gap: 1rem;
  align-items: center;
}

#player-info {
  background: #10b981;
  color: white;
  border: 1px solid #10b981;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  position: relative;
  overflow: hidden;
  text-shadow: none;
}

#player-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

#player-info:hover::before {
  left: 100%;
}

#player-info:hover {
  background: #059669;
  color: white;
  border-color: #059669;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#player-info:hover .material-icons {
  transform: rotate(15deg) scale(1.1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#player-info:active {
  transform: translateY(-1px) scale(1.01);
}

.header-buttons {
  display: flex;
  gap: 0.75rem;
}

.knowledge-base-button,
.logout-button,
.team-credits-button{
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-shadow: none;
}

.knowledge-base-button {
  background: #3b82f6;
  border: 1px solid #3b82f6;
  box-shadow: none;
}

.logout-button {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.8), rgba(153, 27, 27, 0.9));
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.knowledge-base-button::before,
.logout-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.knowledge-base-button:hover::before,
.logout-button:hover::before {
  left: 100%;
}

.knowledge-base-button:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  transform: translateY(-2px) scale(1.02);
}
.team-credits-button {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border: 2px solid #7c3aed;
  border-radius: 8px;
  color: white;
  color: white;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
  text-decoration: none;
}

.team-credits-button:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border-color: #6d28d9;
  border-color: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.team-credits-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2);
}

.team-credits-button i {
  font-size: 1.1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.knowledge-base-button:hover .material-icons {
  transform: rotate(15deg) scale(1.1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.knowledge-base-button:active {
  transform: translateY(-1px) scale(1.01);
}

.team-credits-button {
  background: #3b82f6;
  border: 1px solid #3b82f6;
  box-shadow: none;
}

.team-credits-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.team-credits-button:hover::before {
  left: 100%;
}

.team-credits-button:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.team-credits-button:hover .material-icons {
  transform: rotate(15deg) scale(1.1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-credits-button:active {
  transform: translateY(-1px) scale(1.01);
}

.logout-button {
  background: #ef4444 !important;
  border: 1px solid #ef4444 !important;
  box-shadow: none !important;
}

.logout-button:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logout-button:hover .material-icons {
  transform: rotate(-15deg) scale(1.1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logout-button:active {
  transform: translateY(-1px) scale(1.01);
}

/* Game Container */
#game-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

body.question-open {
  overflow: hidden;
}

/* Category Board */
#category-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.category {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  background: #10294d;
  border-radius: var(--radius-xl);
  overflow: hidden;
 /* box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);*/
  box-shadow: 0 4px 16px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(255 255 255 / .05);
  cursor: pointer;
  transition: all 0.3s ease;
  /*opacity: 0;
  transform: translateY(20px);
  animation: categoryAppear 0.6s ease-out forwards;*/
  transition: transform 160ms ease , box-shadow 160ms ease, background 160ms ease;
}

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

.category:hover {
  transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 26px rgb(0 0 0 / .55), inset 0 0 0 1px rgb(255 255 255 / .08);
  /*
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);*/
  background: #183869;
}

.category-header {
  /*background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));*/
  color: white;
  padding: 1rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  position: relative;
  overflow: hidden;
}

.category-content {
  padding: 1rem;
  position: relative;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-progress {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.progress-bar-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-bar {
  height: 12px;
  background: var(--color-border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-fill {
  height: 100%;
  transition: width 0.6s ease;
  position: absolute;
  top: 0;
  background: linear-gradient(90deg, var(--color-success), #22c55e);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.progress-fill.correct {
  background: linear-gradient(90deg, var(--color-success), #22c55e);
  left: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.progress-fill.incorrect {
  background: linear-gradient(90deg, var(--color-error), #f87171);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.progress-fill.incorrect[style*="left: 0%"] {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.progress-fill.incorrect[style*="width: 100%"] {
  border-radius: var(--radius-sm);
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.2);
}


.progress-text {
  font-size: 0.875rem;
  color: white;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.progress-text .material-icons {
  font-size: 1rem;
  color: var(--color-success);
}
.accuracy-text {
  font-size: 0.875rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
}

.accuracy-text .material-icons {
  font-size: 1rem;
  color: var(--color-primary);
}

/* Daily Challenge Styles */
.daily-challenge, 
div[data-category-id="9"]
 {
  background: linear-gradient(135deg, #10b981, #059669);
  border: 2px solid #059669;
  position: relative;
  overflow: hidden;
}
div[data-category-id="1"]{
  order:1;
}
div[data-category-id="2"]{
  order:2;
}
div[data-category-id="3"]{
  order:3;
}
div[data-category-id="4"]{
  order:4;
}
div[data-category-id="9"]{
  order: 5;
  background: linear-gradient(135deg, #10b981, #059669);
}
div[data-category-id="9"]:hover{
  order: 5;
  background: linear-gradient(135deg, #10b981, #059669);
}
div[data-category-id="5"]{
  order: 6;
}
div[data-category-id="6"]{
  order: 7;
}
div[data-category-id="7"]{
  order: 8;
}
div[data-category-id="8"]{
  order: 9;
}

div[data-category-id="9"] .category-header{
  background: linear-gradient(135deg, #10b981, #059669);
}



.daily-challenge::before, 
div[data-category-id="9"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.1) 75%);
  background-size: 20px 20px;
  animation: shimmer 3s linear infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translateX(-20px); }
  100% { transform: translateX(20px); }
}

.daily-challenge:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
 /* background: linear-gradient(135deg, #059669, #047857);*/
}

.daily-challenge-header {
  background: linear-gradient(135deg, #10b981, #059669);
  position: relative;
  z-index: 2;
}

.challenge-date {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-top: 0.25rem;
  font-weight: 400;
}

.daily-challenge-question {
  border: 2px solid rgba(139, 92, 246, 0.3);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(124, 58, 237, 0.1));
}

.daily-challenge-question:hover {
  border-color: rgba(139, 92, 246, 0.6);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.2));
}

/* Daily Challenge Answer States */
.daily-challenge-answered {
  position: relative;
}

.daily-challenge-correct {
  border-color: var(--color-success) !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.3)) !important;
}

.daily-challenge-correct:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.4)) !important;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.daily-challenge-incorrect {
  border-color: var(--color-error) !important;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.3)) !important;
}

.daily-challenge-incorrect:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.4)) !important;
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Daily Challenge Question Cell States */
.daily-challenge .question-cell.answered.correct {
  background: rgba(16, 185, 129, 0.3) !important;
  border-color: var(--color-success) !important;
  color: white !important;
}

.daily-challenge .question-cell.answered.incorrect {
  background: rgba(239, 68, 68, 0.3) !important;
  border-color: var(--color-error) !important;
  color: white !important;
}

.challenge-question-category {
  font-size: 0.75rem;
  color: #a78bfa;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.challenge-question-text {
  color: white;
  font-weight: 500;
}

/* Question Container */
#question-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh !important;
background: radial-gradient(900px 700px at 20% -10%, #8aa2c1, transparent 60%), radial-gradient(800px 600px at 100% 0%, #6a86a2, transparent 60%), #556f92;
/*  background: radial-gradient(circle at 50% 0%, rgba(30, 155, 255, .18) 0%, rgba(12, 31, 58, 1) 60%), var(--studio-bg-dark);*/
  /* backdrop-filter: blur(8px); */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 1rem;
}

/* Question Details Modal */
#question-details-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
background: radial-gradient(900px 700px at 20% -10%, #8aa2c1, transparent 60%), radial-gradient(800px 600px at 100% 0%, #6a86a2, transparent 60%), #556f92;
/*  background: radial-gradient(circle at 50% 0%, rgba(30, 155, 255, .18) 0%, rgba(12, 31, 58, 1) 60%), var(--studio-bg-dark);*/
  /* backdrop-filter: blur(8px); */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2100;
  padding: 1rem;
}

#question-details-container .question-modal-content {
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: #10294d;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 16px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(255 255 255 / .05);
  border: none;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  opacity: 0;
  animation: questionAppear 0.3s ease-out forwards;
}

#question-details-header {
  background: #183869;
  color: white;
  padding: 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#question-details-category {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
}

#question-details-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: #10294d;
  color: white;
}

#question-details-content #question-text {
  font-size: 1.25rem;
  text-align: center;
  color: white;
  line-height: 1.6;
  font-weight: 500;
}

#question-details-content .knowledge-learning-objective {
  background: rgba(96, 165, 250, 0.1);
  border-left: 4px solid #60a5fa;
  padding: 1rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

#question-details-content .knowledge-learning-objective h4 {
  margin: 0 0 0.5rem 0;
  color: #60a5fa;
  font-size: 0.875rem;
  font-weight: 600;
}

#question-details-content .knowledge-learning-objective p {
  margin: 0;
  color: white;
  line-height: 1.5;
  font-size: 0.875rem;
}

#question-details-content .video-container {
  width: 100%;
  margin-bottom: 0;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 0;
  padding-bottom: 56.25%;
}

#question-details-content .answer-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  z-index: 2;
}

#question-details-content #answer-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  display: none;
}
#question-details-content .answer-option.incorrect::before{
  color: black !important;
  background: rgb(239, 68, 68) !important;
  border: 1px solid #6a3449;
}
#question-details-content .answer-option.correct::before{
  color: black !important;
  background: rgb(16, 185, 129) !important;
  border: 1px solid #106362;
}





#question-details-content .answer-option::before{
    content: "A";
    box-shadow: 0 4px 16px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(255 255 255 / .05);
    position: absolute;
    left: -1rem;
    border-radius: 100%;
    color: #f49c35;
    font-weight: bold;
    font-size: 1.5em;
    background: #183869;
    width: 1.3em;
    height: 1.3em;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-content: flex-start;
    justify-content: center;
    align-items: center;
    padding: 0.05em;
    transform: scale(0);
    animation: grow 1.6s ease forwards;
}

@keyframes grow {
  to {
    transform: scale(1);
  }
}

#question-details-content .answer-option:nth-of-type(2)::before{
  content: "B";
}
#question-details-content .answer-option:nth-of-type(3)::before{
  content: "C";
}

#question-details-content .answer-option:nth-of-type(4)::before{
  content: "D";
}

#question-details-content .answer-option {
  transform: translate(0);
  background: #10294d;
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 500;
  cursor: default;
  text-align: left;
  transition: none;
  margin: 0.125em 0;
  width: 100%;
  justify-content: start;
}

#question-details-content .answer-option.correct {
  background: #10b981 !important;
  color: white !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4) !important;
}

#question-details-content .answer-option:disabled {
  cursor: default;
  opacity: 1;
}

.question-modal-content {
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: #10294d;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 16px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(255 255 255 / .05);
  border: none;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  opacity: 0;
  animation: questionAppear 0.3s ease-out forwards;
}

@keyframes questionAppear {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#question-container.slide-out .question-modal-content {
  animation: questionDisappear 0.3s ease-out forwards;
}

@keyframes questionDisappear {
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

#question-container.hidden {
  display: none;
}

#question-header {
  background: #183869;
  color: white;
  padding: 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#question-category {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

/*.close-modal-button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.close-modal-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}
*/
#question-content,
#question-details-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: #10294d;
  color: white;
}

#question-text {
  font-size: 1.25rem;
  text-align: center;
  color: white;
  line-height: 1.6;
  font-weight: 500;
}

.questions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.question-cell {
  background: #10294d;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 120px;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.question-cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.question-cell:not(.answered):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgb(0 0 0 / .55), inset 0 0 0 1px rgb(255 255 255 / .08);
  border-color: rgba(255, 255, 255, 0.3);
  background: #183869;
}

.question-cell:not(.answered):hover::before {
  left: 100%;
}

.question-cell.answered {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  cursor: default;
}

.question-cell.answered.correct {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: var(--color-success) !important;
  cursor: pointer;
}

.question-cell.answered.incorrect {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: var(--color-error) !important;
}

.question-cell.answered.incorrect .lock-indicator {
  background: var(--color-error) !important;
  color: white !important;
}

.question-cell.answered:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.lock-indicator {
  position: absolute !important;
  top: 0.75rem !important;
  right: 0.75rem !important;
  background: var(--color-warning) !important;
  color: white !important;
  padding: 0.375rem 0.75rem !important;
  border-radius: var(--radius-md) !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  z-index: 10 !important;
  box-shadow: var(--shadow-md) !important;
  white-space: nowrap !important;
  max-width: calc(100% - 1.5rem) !important;
  overflow: hidden !important;
}

.question-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: white;
  text-align: center;
  font-weight: 500;
  word-wrap: break-word;
}

/* Answer Options */
#answer-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/*.answer-option {
  background: #10294d;
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
*/
.answer-option:hover:not(:disabled) {
  background: #183869;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  /*transform: translateY(-2px) !important;*/
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: #183869 !important;
}

.answer-option.selected {
  background: #183869;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.answer-option.correct {
  background: #10b981 !important;
  color: white;
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4) !important;
}

/* Ensure correct answer styling overrides everything */
.answer-option.correct,
.answer-option.correct:hover,
.answer-option.correct:focus,
.answer-option.correct:active {
  background: #10b981 !important;
  color: white !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4) !important;
}

.answer-option.incorrect {
  background: var(--color-error);
  color: white;
  border-color: var(--color-error);
}

.answer-option:disabled {
  cursor: not-allowed;
}

.close-button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem auto 0;
}

.close-button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Start Screen */
#start-screen {
  position: fixed;
  top: 0;
  left: 0;
  padding-top: 1rem;
  width: 100%;
  height: 100%;
  background: radial-gradient(900px 700px at 20% -10%, #8aa2c1, transparent 60%), radial-gradient(800px 600px at 100% 0%, #6a86a2, transparent 60%), #556f92;
  /*background: radial-gradient(circle at 50% 0%, rgba(30, 155, 255, .18) 0%, rgba(12, 31, 58, 1) 60%), var(--studio-bg-dark);*/
  font-family: var(--font-family);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.start-container {
 /* background: var(--color-surface);*/
 background: #10294d;
 /*background: #0000003b;*/
  padding: 3rem;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 900px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  /*border: 1px solid var(--color-border);*/
}

.start-logo {
  margin-bottom: 2rem;
}

.start-logo-image {
  height: 280px;
  width: auto;
  object-fit: contain;
}

.start-container h1 {
  /*color: var(--color-primary);*/
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.auth-prompt {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.auth-button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0.5rem;
  box-shadow: var(--shadow-md);
}

.auth-button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Authentication Modal */
#auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
    background: radial-gradient(900px 700px at 20% -10%, #8aa2c1, transparent 60%), radial-gradient(800px 600px at 100% 0%, #6a86a2, transparent 60%), #556f92;
/*  background: radial-gradient(circle at 50% 0%, rgba(30, 155, 255, .18) 0%, rgba(12, 31, 58, 1) 60%), var(--studio-bg-dark);*/
  /* backdrop-filter: blur(8px); */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 1rem;
}

.auth-modal-content {
  background: #10294d;
  padding: 2rem;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 550px;
  box-shadow: 0 4px 16px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(255 255 255 / .05);
  border: none;
  position: relative;
  max-height: 85%;
  overflow-y: scroll;
}

.auth-modal-content h2 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: white;
  font-weight: 500;
  font-size: 0.875rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.auth-submit-button {
  width: 100%;
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.875rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
}

.auth-submit-button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.auth-switch {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.auth-switch a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-message {
  padding: 1rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.auth-message i {
  font-size: 1.125rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.auth-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.auth-message.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.forgot-password {
  text-align: center;
  margin: 10px 0;
  font-size: 14px;
}

.forgot-password a {
  color: #60a5fa;
  text-decoration: none;
}

.forgot-password a:hover {
  color: #005587;
  text-decoration: underline;
}

.form-help {
  display: block;
  font-size: 12px;
  margin-top: 5px;
  line-height: 1.4;
}

/* Password Reset Modal */
#password-reset-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
background: radial-gradient(900px 700px at 20% -10%, #8aa2c1, transparent 60%), radial-gradient(800px 600px at 100% 0%, #6a86a2, transparent 60%), #556f92;
/*  background: radial-gradient(circle at 50% 0%, rgba(30, 155, 255, .18) 0%, rgba(12, 31, 58, 1) 60%), var(--studio-bg-dark);*/
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  /* backdrop-filter: blur(5px); */
}

.password-reset-modal-content {
  background: #10294d;
  color: white;
  padding: 40px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

.password-reset-modal-content h2 {
  color: white;
  margin-bottom: 30px;
  text-align: center;
  font-size: 24px;
}

#password-reset-form .form-group {
  margin-bottom: 20px;
}

#password-reset-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

#password-reset-form input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

#password-reset-form input[type="email"]:focus {
  outline: none;
  border-color: #005587;
  box-shadow: 0 0 0 3px rgba(0, 85, 135, 0.1);
}

#password-reset-submit {
  width: 100%;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

#password-reset-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 85, 135, 0.3);
}

#password-reset-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

#password-reset-error,
#password-reset-success {
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}

#password-reset-error {
  background: #fee;
  border: 1px solid #fcc;
  color: #c33;
}

#password-reset-success {
  background: #efe;
  border: 1px solid #cfc;
  color: #363;
}

#password-reset-error .material-icons,
#password-reset-success .material-icons {
  font-size: 18px;
  margin-top: 1px;
}
.resend-button {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.resend-button:hover {
  background: var(--color-primary-dark);
}

#close-password-reset-modal, #close-auth-modal{
  position: absolute !important;
}
.auth-modal-content .close-modal-button,
#close-user-profile, .close-modal-button
{
 /* position: absolute; */
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-modal-content .close-modal-button:hover{
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Game Over */
#game-over {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.game-over-container {
  background: var(--color-surface);
  padding: 3rem;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 500px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}

.game-over-container h2 {
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

#restart-quiz {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
}

#restart-quiz:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Logout Confirmation Modal */
#logout-confirmation-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(900px 700px at 20% -10%, #8aa2c1, transparent 60%), radial-gradient(800px 600px at 100% 0%, #6a86a2, transparent 60%), #556f92;
/*background: radial-gradient(900px 700px at 20% -10%, #8aa2c1, transparent 60%), radial-gradient(800px 600px at 100% 0%, #6a86a2, transparent 60%), #556f92;*/
/*  background: radial-gradient(circle at 50% 0%, rgba(30, 155, 255, .18) 0%, rgba(12, 31, 58, 1) 60%), var(--studio-bg-dark);*/
  /* backdrop-filter: blur(8px); */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  padding: 1rem;
}

.logout-confirmation-content {
  background: #10294d;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 16px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(255 255 255 / .05);
  border: none;
  overflow: hidden;
}

.logout-confirmation-header {
  background: var(--color-error);
  color: white;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.logout-confirmation-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.logout-confirmation-body {
  padding: 1.5rem;
  text-align: center;
}

.logout-confirmation-body p {
  margin: 0;
  color: white;
  line-height: 1.6;
}

.logout-confirmation-actions {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
}

.cancel-logout-button,
.confirm-logout-button {
  flex: 1;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
}

.cancel-logout-button {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.cancel-logout-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.confirm-logout-button {
  background: var(--color-error);
  color: white;
}

.confirm-logout-button:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Knowledge Base */
#knowledge-base {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
background: radial-gradient(900px 700px at 20% -10%, #8aa2c1, transparent 60%), radial-gradient(800px 600px at 100% 0%, #6a86a2, transparent 60%), #556f92;
/*  background: radial-gradient(circle at 50% 0%, rgba(30, 155, 255, .18) 0%, rgba(12, 31, 58, 1) 60%), var(--studio-bg-dark);*/
  z-index: 1000;
  padding: 1rem;
 
}

.knowledge-modal-container {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  max-height: 90vh;
  margin: 0 auto;
  background: #10294d;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(255 255 255 / .05);
  transform: scale(0.95);
  animation: teamCreditsAppear 0.3s ease-out forwards;
}
/* Unlock Article Button Styles */

.unlock-article-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #005587, #0077b6);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 85, 135, 0.3);
  text-decoration: none;
  margin-top: 1rem;
}

.unlock-article-button:hover {
  background: linear-gradient(135deg, #003d61, #005a7a);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 85, 135, 0.4);
}

.unlock-article-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 85, 135, 0.3);
}

.unlock-article-button .material-icons {
  font-size: 18px;
}

/* Unanswered message container styling */
.knowledge-unanswered-message {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin: 1rem 0;
}

.unanswered-content h4 {
  color: #495057;
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.unanswered-content p {
  color: #6c757d;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
  border: none;
}

.knowledge-base-header {
  background: #183869;
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.knowledge-base-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.knowledge-search-container {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  flex: 1;
  max-width: 400px;
  position: relative;
}

#knowledge-search {
  background: transparent;
  border: none;
  color: white;
  padding: 0.5rem;
  font-size: 0.875rem;
  width: 100%;
  outline: none;
}

#knowledge-search::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

#knowledge-search-btn,
#knowledge-clear-search {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease;
  position: absolute;
  right: 4px;
  height: 40px;
}

#knowledge-clear-search {
  right: 48px;
}

#knowledge-search-btn:hover,
#knowledge-clear-search:hover {
  background: rgba(255, 255, 255, 0.2);
}

.knowledge-base-header .close-modal-button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.knowledge-base-header .close-modal-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

#knowledge-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  scrollbar-gutter: stable;
  background: #10294d;
  color: white;
}

/* Knowledge Categories */
.knowledge-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.knowledge-category-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.knowledge-category-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.knowledge-category-header {
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  user-select: none;
}

.knowledge-category-item.expanded .knowledge-category-header {
  background: #2563eb;
  color: white;
}

.knowledge-category-title {
  font-size: 1rem;
  font-weight: 600;
  flex: 1;
  color: white;
}

.knowledge-category-count {
  background: var(--color-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
}

.knowledge-category-toggle {
  font-size: 1.125rem;
  transition: transform 0.3s ease;
}

.knowledge-category-item.expanded .knowledge-category-toggle {
  transform: rotate(180deg);
}

.knowledge-questions-container {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.knowledge-questions {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.knowledge-question {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.knowledge-question-locked {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0.7;
}

.knowledge-question-locked .knowledge-question-header {
  background: rgba(255, 255, 255, 0.02);
  cursor: default;
}

.knowledge-question-locked:hover {
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.05);
}

.knowledge-question:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.knowledge-question-header {
  padding: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
}

.knowledge-question-text {
  font-weight: 500;
  color: white;
  flex: 1;
  margin-right: 1rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.knowledge-question-locked .knowledge-question-text {
  color: rgba(255, 255, 255, 0.6);
}

.knowledge-lock-icon {
  font-size: 1rem !important;
  color: rgba(255, 255, 255, 0.4);
}

.knowledge-question-toggle {
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.3s ease;
}

.knowledge-question-locked .knowledge-question-toggle {
  color: rgba(255, 255, 255, 0.4);
}

.knowledge-question.expanded .knowledge-question-toggle {
  transform: rotate(180deg);
}

.knowledge-question-content {
  display: none;
  padding: 1.5rem;
}

.knowledge-question.expanded .knowledge-question-content {
  display: block;
}

.knowledge-learning-objective {
  background: rgba(96, 165, 250, 0.1);
  border-left: 4px solid #60a5fa;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.knowledge-learning-objective h4 {
  margin: 0 0 0.5rem 0;
  color: #60a5fa;
  font-size: 0.875rem;
  font-weight: 600;
}
.knowledge-source {
  background: #fefce8;
  border-left: 4px solid #eab308;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 4px 4px 0;
}

.knowledge-disclaimer {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 4px 4px 0;
}

.knowledge-disclaimer h5 {
  color: #e65100;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.knowledge-disclaimer p {
  margin: 0;
  color: #bf360c;
  font-size: 0.9rem;
  line-height: 1.4;
}

.knowledge-source h5 {
  color: black;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.knowledge-source h5 .material-icons {
  font-size: 1rem;
}

.knowledge-source p {
  margin: 0;
  color: black;
  font-size: 0.9rem;
  line-height: 1.4;
}

.knowledge-source-link {
  color: #ca8a04 !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  word-break: break-all;
}

.knowledge-source-link:hover {
  color: #92400e !important;
  text-decoration: underline;
}

.knowledge-source-link .material-icons {
  font-size: 1rem;
  flex-shrink: 0;
}


.knowledge-learning-objective p {
  margin: 0;
  color: white;
  line-height: 1.5;
  font-size: 0.875rem;
}

.knowledge-video-container {
  margin: 1rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.knowledge-video {
  width: 100%;
  height: auto;
}

.knowledge-answers {
  margin-top: 1rem;
}

.knowledge-answer {
  display: none;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

.knowledge-answer.correct {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--color-success);
  color: #10b981;
  font-weight: 500;
}

.knowledge-answer.correct::before {
  content: "✓ ";
  color: var(--color-success);
  font-weight: 600;
}

.knowledge-answer.incorrect {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
}

.knowledge-unanswered-message {
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin: 1rem 0;
}

.unanswered-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.unanswered-content i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.4);
}

.knowledge-locked-icon {
  font-size: 2.5rem !important;
  color: rgba(255, 255, 255, 0.3) !important;
}

.unanswered-content h4 {
  margin: 0;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.unanswered-content h4 i {
  font-size: 1rem !important;
  color: rgba(255, 255, 255, 0.4) !important;
}

.unanswered-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 400px;
}

.answer-question-shortcut {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-md);
}

.answer-question-shortcut:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.answer-question-shortcut i {
  font-size: 1rem;
}

/* Question highlighting effect */
.question-cell.highlighted-question {
  animation: questionHighlight 3s ease-out;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3) !important;
}

@keyframes questionHighlight {
  0% {
    background: var(--color-primary);
    transform: scale(1.05);
  }
  50% {
    background: rgba(37, 99, 235, 0.3);
    transform: scale(1.02);
  }
  100% {
    background: #10294d;
    transform: scale(1);
  }
}

/* Knowledge base question highlighting */
.knowledge-question.highlighted-question {
  animation: knowledgeQuestionHighlight 3s ease-out;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3) !important;
}

@keyframes knowledgeQuestionHighlight {
  0% {
    background: rgba(37, 99, 235, 0.2);
    transform: scale(1.02);
  }
  50% {
    background: rgba(37, 99, 235, 0.1);
    transform: scale(1.01);
  }
  100% {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1);
  }
}
/* Search Results */
#knowledge-search-results {
  padding: 1rem 0;
}

.knowledge-search-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.knowledge-search-header h3 {
  margin: 0;
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
}

.knowledge-search-count {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.knowledge-search-result {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.knowledge-search-result-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
}

.knowledge-search-result-category {
  color: #60a5fa;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.knowledge-search-result-question {
  font-weight: 600;
  color: white;
  margin: 0;
  font-size: 0.875rem;
}

.knowledge-no-results {
  text-align: center;
  padding: 3rem;
  color: rgba(255, 255, 255, 0.7);
}

.knowledge-no-results i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.4);
}

.knowledge-no-results h3 {
  margin: 0 0 0.5rem 0;
  color: white;
  font-weight: 600;
}

.knowledge-no-results p {
  margin: 0;
  font-size: 0.875rem;
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: rgba(255, 255, 255, 0.7);
}

.loading-spinner::before {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border);
  border-top: 3px solid #60a5fa;
  border-radius: 50%;
  margin-bottom: 1rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner-text {
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
  color: white;
}

/* Video Container */
.video-container {
  width: 100%;
  margin-bottom: 1.5rem;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease-out;
}

.video-container.slide-in {
  opacity: 1;
  transform: translateY(0);
}

.question-video,
.answer-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  z-index: 2;
}

.knowledge-video-container {
  margin: 1rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  position: relative;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.knowledge-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 2;
}

/* Video loading placeholder */
.video-container::before,
.knowledge-video-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #1a1a1a 25%, transparent 25%), 
              linear-gradient(-45deg, #1a1a1a 25%, transparent 25%), 
              linear-gradient(45deg, transparent 75%, #1a1a1a 75%), 
              linear-gradient(-45deg, transparent 75%, #1a1a1a 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  z-index: 1;
  pointer-events: none;
}

/* Responsive video containers */
@media (max-width: 768px) {
  .video-container,
  .knowledge-video-container {
    padding-bottom: 56.25%; /* Maintain 16:9 on tablet */
  }
}
/* Was soll der quatsch, das video ist ja trotzdem noch 16:9....
@media (max-width: 480px) {
  .video-container,
  .knowledge-video-container {
    padding-bottom: 75%;  4:3 aspect ratio on mobile 
  }
}
*/
.skip-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  z-index: 10 !important;
}

.skip-button:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-1px);
}

/* Danger Zone Styling */
.danger-zone {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 8px;
  background: rgb(239 68 68 / 25%);
}

.danger-zone h4 {
  color: #ef4444;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.danger-zone p {

  margin: 0 0 1rem 0;
  font-size: 0.9rem;
}

.delete-account-button {
  background: #ef4444;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.delete-account-button:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* Delete Account Warning (inline) */
.delete-account-warning {
  margin-top: 1rem;
  padding: 1.5rem;
  border-radius: 8px;
  animation: slideDown 0.3s ease-out;
}

.delete-account-warning.hidden {
  display: none;
}

.delete-warning {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: black;
}

.delete-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cancel-delete-button {
  background: #6b7280;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.cancel-delete-button:hover {
  background: #4b5563;
}

.confirm-delete-button {
  background: #ef4444;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.confirm-delete-button:hover:not(:disabled) {
  background: #dc2626;
  transform: translateY(-2px);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cool video hide animation */
@keyframes videoHideAnimation {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.95) translateY(-10px);
    filter: blur(2px);
  }
  100% {
    opacity: 0;
    transform: scale(0.8) translateY(-30px);
    filter: blur(5px);
  }
}

.video-container.hiding {
  animation: videoHideAnimation 0.6s ease-out forwards !important;
  pointer-events: none !important;
  transition: none !important;
}

.video-container.hiding * {
  transition: none !important;
}

/* Cool video show animation (counterclockwise) */
@keyframes videoShowAnimation {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(30px) rotate(-10deg);
    filter: blur(5px);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.95) translateY(10px) rotate(-5deg);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0deg);
    filter: blur(0px);
  }
}

.video-container.showing {
  animation: videoShowAnimation 0.6s ease-out forwards !important;
  transition: none !important;
}

.video-container.showing * {
  transition: none !important;
}

/* Smooth slide up after animation */
.video-container.slide-out {
  transition: all 0.4s ease-out !important;
  max-height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
}

/* Solution video slide in animation */

/* Final Answer Result */
.final-answer-result {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 10001;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  border: 3px solid;
  text-align: center;
  max-width: 400px;
  width: 90%;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  user-select: none;
}

.final-answer-result.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.final-answer-result:hover {
  transform: translate(-50%, -50%) scale(1.02);
  box-shadow: var(--shadow-xl), 0 0 0 2px rgba(255, 255, 255, 0.1);
}
.final-answer-result.correct {
  border-color: var(--color-success);
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.final-answer-result.correct:hover {
  box-shadow: var(--shadow-xl), 0 0 0 2px rgba(16, 185, 129, 0.3);
}
.final-answer-result.incorrect {
  border-color: var(--color-error);
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.final-answer-result.incorrect:hover {
  box-shadow: var(--shadow-xl), 0 0 0 2px rgba(239, 68, 68, 0.3);
}
.final-answer-result .result-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.final-answer-result .result-content i {
  font-size: 3rem;
}

.final-answer-result.correct .result-content i {
  color: var(--color-success);
}

.final-answer-result.incorrect .result-content i {
  color: var(--color-error);
}

.final-answer-result h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.final-answer-result.correct h3 {
  color: var(--color-success);
}

.final-answer-result.incorrect h3 {
  color: var(--color-error);
}

.final-answer-result p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Certificate Section Styles */
.certificate-section {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #e9ecef;
  margin-bottom: 1rem;
}

.certificate-section p {
  margin-bottom: 1.5rem;
  color: #666;
  font-size: 1.1rem;
}

.certificate-button {
  background: linear-gradient(135deg, #005587, #0077b6);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 85, 135, 0.3);
}

.certificate-button:hover {
  background: linear-gradient(135deg, #003d61, #005587);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 85, 135, 0.4);
}

.certificate-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.certificate-button i {
  font-size: 1.2rem;
}

/* Team Credits Modal */
#team-credits-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(900px 700px at 20% -10%, #8aa2c1, transparent 60%), radial-gradient(800px 600px at 100% 0%, #6a86a2, transparent 60%), #556f92;
  /*background: radial-gradient(circle at 50% 0%, rgba(30, 155, 255, .18) 0%, rgba(12, 31, 58, 1) 60%), var(--studio-bg-dark);*/
  /* backdrop-filter: blur(8px); */
  z-index: 1000;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.team-credits-content {
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  background: #10294d;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(255 255 255 / .05);
  border: none;
  transform: scale(0.95);
  opacity: 0;
  animation: teamCreditsAppear 0.3s ease-out forwards;
}

@keyframes teamCreditsAppear {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.team-credits-header {
  background: #183869;
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.team-credits-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

#knowledge-header {
  text-align: center;
  margin-bottom: 2rem;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 16px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(255 255 255 / .05);
  transition: all 0.3s ease;
  color: white;
  background: url('../public/images/buecher.jpg');
  background-color: #10294d78;
  background-blend-mode: multiply;
  background-size: contain;
}

#knowledge-header h2 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

#knowledge-header p {
  font-size: 1.1rem;
}


.team-credits-body {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  color: white;
  background: #10294d;
  max-height: 80vh; /* damit Overflow sichtbar wird */
  overflow-y: auto; /* Scroll aktivieren */
}


/* Team Members Styling */
.team-members-container {
  padding: 2rem;
}

.team-header {
  text-align: center;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 16px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(255 255 255 / .05);
  transition: all 0.3s ease;
  color: white;
}

.team-header h2 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.team-header p {
  font-size: 1.1rem;
}

.team-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.team-member-card {
  /*background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);*/
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 16px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(255 255 255 / .05);
  transition: all 0.3s ease;
}

.team-member-card:hover {
  /*transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 8px 15px rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(59, 130, 246, 0.02) 100%);
  */
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 26px rgb(0 0 0 / .55), inset 0 0 0 1px rgb(255 255 255 / .08);
  background: #183869;
}

.team-member-image {
  margin-bottom: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-member-avatar{
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.team-member-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/*.team-member-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  border-radius: 50%;
}
*/
.team-member-initials {
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

}

.team-member-info h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.team-member-quote {
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: bold;
}

.team-member-cv {
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.team-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
  color: #666;
  display: none;
}

.team-footer p {
  margin: 0.5rem 0;
}

.team-footer p:first-child {
  font-weight: 600;
  color: var(--color-primary);
}

.team-error {
  text-align: center;
  padding: 3rem 2rem;
  color: #666;
}

.team-error i {
  font-size: 3rem;
  color: #ef4444;
  margin-bottom: 1rem;
}

.team-error h3 {
  color: #333;
  margin-bottom: 1rem;
}

.retry-button {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
}

.retry-button:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.team-empty {
  text-align: center;
  padding: 3rem 2rem;
  color: #666;
}

.team-empty i {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.team-empty h3 {
  color: #333;
  margin-bottom: 1rem;
}

}

.credits-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.credits-section:last-of-type {
  border-bottom: none;
}

.credits-section h3 {
  color: #60a5fa;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.credits-section h3 .material-icons {
  font-size: 1.25rem;
}

.team-member {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.member-info h4 {
  margin: 0 0 0.5rem 0;
  color: white;
  font-size: 1rem;
  font-weight: 600;
}

.member-info p {
  margin: 0.25rem 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.4;
}

.credits-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.credits-footer p {
  margin: 0.5rem 0;
  color: rgba(255, 255, 255, 0.9);
}

.credits-footer p:first-child {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
}

.tech-stack {
  margin-top: 1.5rem;
}

.tech-stack h4 {
  margin: 0 0 1rem 0;
  color: #60a5fa;
  font-size: 1rem;
  font-weight: 600;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tech-badge {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

/* User Profile Modal Styles */
#user-profile-modal {
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(900px 700px at 20% -10%, #8aa2c1, transparent 60%), radial-gradient(800px 600px at 100% 0%, #6a86a2, transparent 60%), #556f92;
  /*background: radial-gradient(circle at 50% 0%, rgba(30, 155, 255, .18) 0%, rgba(12, 31, 58, 1) 60%), var(--studio-bg-dark);*/
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1002;

}

.user-profile-content {
  background: #10294d;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  animation: teamCreditsAppear 0.3s ease-out forwards;
}

.user-profile-header {
 background: #183869;
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.user-profile-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

/* Profile Container */
.profile-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Profile Header */
.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 16px;
  border: 1px solid #dee2e6;
}

.profile-avatar {
  flex-shrink: 0;
}

.profile-avatar-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #005587, #0077b6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 85, 135, 0.3);
}

.profile-avatar-initials {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  letter-spacing: 2px;
}

.profile-info h2 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  color: #2c3e50;
}

.profile-email {
  color: #6c757d;
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
}

.profile-member-since {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0;
}

/* Profile Stats */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.profile-stat-card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Password Change Section */
.profile-password-section {
  border-radius: 8px;
  
}

.profile-password-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  width: 100%;
}

.profile-password-header h4 {
  margin: 0 0 15px 0;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-password-header h4 i {
  font-size: 20px;
}

/* Password Change Section */
.password-change-section, .pw-change-section {
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
}
.password-change-section.expanded .password-expand-icon {
  transform: rotate(180deg);
}

.password-change-header {
  transition: background-color 0.2s ease;
  padding: 0.5rem;
  border-radius: 4px;
}

.password-change-header:hover {
  background-color: rgba(0, 0, 0, 0.05);
}


  .password-expand-icon {
  transition: transform 0.3s ease;
}

.profile-password-section{
  width: 100%;
  
}
/* Password section expandable header */
.password-section-header {
  transition: background-color 0.2s ease;
  padding: 0.5rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.password-section-header:hover {
  background-color: #f3f4f6;
}

.expand-icon {
  transition: transform 0.3s ease;
}

/* Password form card */
.password-form-card {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.password-form-content {
  margin-top: 15px;
}

.profile-password-section .form-group {
  margin-bottom: 15px;
}

.profile-password-section label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.profile-password-section input {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.profile-password-section input:focus {
  outline: none;
  border-color: #005587;
  box-shadow: 0 0 0 3px rgba(0, 85, 135, 0.1);
}

.profile-password-section .password-change-button {
  background: linear-gradient(135deg, #005587, #0077b6);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-top: 15px;
}

.profile-password-section .password-change-button:hover {
  background: linear-gradient(135deg, #003d61, #005a7a);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 85, 135, 0.3);
}

.profile-password-section .password-change-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.profile-password-section .auth-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.profile-password-section .auth-message.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.profile-password-section .auth-message.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.profile-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #005587, #0077b6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-stat-icon i {
  color: white;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #005587, #0077b6);
  color: white;
  padding: 0.5rem;
  border-radius: 8px;
  
}

.profile-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1;
}

.profile-stat-label {
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* Profile Sections */
.profile-section {
  margin-bottom: 2rem;
  border-radius: 12px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 16px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(255 255 255 / .05);
}

.profile-section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem 0;
  font-size: 1.4rem;
  
}

.profile-section h3 i {
  color: #005587;
}

/* Category Cards */
.profile-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.profile-category-card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-category-header {
  margin-bottom: 1rem;
}

.profile-category-header h4 {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  color: #2c3e50;
}

.profile-category-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-progress-bar {
  flex: 1;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.profile-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #005587, #0077b6);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.profile-progress-text {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 600;
  border: 2px solid #10294d;
  width: 100%;
  border-radius: 0.5rem;
  padding: 0.25rem;
  text-align: center;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
  background: #10294d;
  color: white;
  box-shadow: 0 4px 16px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(255 255 255 / .05);
}

.profile-category-stats {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
}

.profile-category-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-stat-number {
  font-size: 1rem;
  font-weight: 700;
  color: #005587;
}

.profile-stat-text {
  font-size: 0.8rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Recent Activity */
.profile-recent-activity {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  overflow: hidden;
}

.profile-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid #f8f9fa;
}

.profile-activity-item:last-child {
  border-bottom: none;
}

.profile-activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-activity-icon.correct {
  background: #d4edda;
  color: #155724;
}

.profile-activity-icon.incorrect {
  background: #f8d7da;
  color: #721c24;
}

.profile-activity-icon i {
  font-size: 1.2rem;
}

.profile-activity-info {
  flex: 1;
}

.profile-activity-question {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.profile-activity-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #6c757d;
}

.profile-activity-category {
  font-weight: 600;
  color: #005587;
}

.profile-no-activity {
  text-align: center;
  padding: 3rem;
  color: #6c757d;
}

.profile-no-activity i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.profile-error {
  text-align: center;
  padding: 3rem;
  color: #6c757d;
}

.profile-error i {
  font-size: 3rem;
  color: #dc3545;
  margin-bottom: 1rem;
}

.retry-button {
  background: #005587;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  transition: background-color 0.2s ease;
}

.retry-button:hover {
  background: #003d61;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .profile-categories {
    grid-template-columns: 1fr;
  }
  
  .profile-activity-meta {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .user-profile-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .user-profile-body {
    padding: 1rem;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  #category-board {
    /*grid-template-columns: repeat(2, 1fr);*/
    max-width: 988px;
  }
}

@media (max-width: 768px) {
  #app {
    padding: 1rem;
  }
  
  header {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
  }
  
  h1 {
    font-size: 1.5rem;
    text-align: center;
  }
  
  #score-container {
    justify-content: center;
  }
  
  .header-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  #category-board {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: none;
    margin-left: 1rem;
    margin-right: 1rem;
  }
  
  .question-modal-content {
    margin: 0.5rem;
  }
  
  #question-content {
    padding: 1.5rem;
  }
  
  #question-text {
    font-size: 1.125rem;
  }
  
  .questions-grid {
    grid-template-columns: 1fr;
  }
  
  .question-cell {
    min-height: 100px;
  }
  
  .question-text {
    font-size: 0.8rem;
  }
  
  .knowledge-modal-container {
    margin: 0.5rem;
    max-height: 95vh;
  }
  
  .knowledge-base-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
  }
  
  .knowledge-search-container {
    max-width: none;
  }
  
  #knowledge-content {
    padding: 1.5rem;
  }
  
  .start-container,
  .game-over-container {
    padding: 2rem;
    margin: 1rem;
  }
  
  .auth-modal-content {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .logout-confirmation-content {
    margin: 1rem;
  }
  
  .logout-confirmation-actions {
    flex-direction: column;
  }
  
  .cancel-logout-button,
  .confirm-logout-button {
    flex: none;
  }
}

@media (max-width: 480px) {
  .start-container h1 {
    font-size: 1.75rem;
  }
  
  .auth-button {
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .question-cell {
    padding: 1rem;
    min-height: 80px;
  }
  
  .question-text {
    font-size: 0.75rem;
  }
  
  #question-header {
    padding: 1.5rem;
  }
  
  #question-category {
    font-size: 1.25rem;
  }
}

/* Erstmalig Modal Styles für mehr als nur ein Modal 
 * - Impressum
 * - Datenschutz
 */
.modal {
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(900px 700px at 20% -10%, #8aa2c1, transparent 60%), radial-gradient(800px 600px at 100% 0%, #6a86a2, transparent 60%), #556f92;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1002;
}

.modal-content {
  background: #10294d;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  animation: teamCreditsAppear 0.3s ease-out forwards;
}

.modal-header {
 background: #183869;
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}
.modal-body h1,
.modal-body h2,
.modal-body h3,
.modal-body h4,
.modal-body h5,
.modal-body p,
.modal-body ul,
.modal-body li,
.modal-body a{
	margin: revert;
  padding: revert;
	color: white;
}
#datenschutz-modal table{
	text-align: left;
}
