/* ✅ LANGTEST CSS - NUR SEITENSPEZIFISCHE STYLES */
/* (Generische .pp-button, .pp-section sind jetzt in pp_haupt.css) */

/* 🎯 LANGTEST-CONTAINER (Langtest-spezifisch) */
#pp-langtest-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* 🎯 LANGTEST HEADER (Langtest-spezifisch) */
.lang-test-header {
  text-align: center;
  margin-bottom: 30px;
}

.lang-test-header h2 {
  color: #2c3e50;
  margin-bottom: 15px;
}

.test-info {
  background: #e8f4ff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* 🎯 TEST-OVERVIEW (Langtest-spezifisch) */
#lang-test-overview {
  margin-bottom: 30px;
}

.test-resume {
  background: #fff3cd;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
  margin-bottom: 20px;
}

.test-overview {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.test-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.test-option {
  background: #fff;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.test-option:hover {
  border-color: #007bff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.test-option.active {
  border-color: #28a745;
  background: #f8fff9;
}

.option-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  text-align: center;
}

.option-content h4 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.option-details {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #6c757d;
}

.option-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
}

.option-badge.recommended {
  background: #28a745;
  color: white;
}

.option-badge.quick {
  background: #ffc107;
  color: #212529;
}

/* 🎯 TEST-INTERFACE (Langtest-spezifisch) */
#lang-test-interface {
  margin-top: 30px;
}

.test-header h3 {
  color: #2c3e50;
  margin-bottom: 20px;
}

#pp-question-container {
  margin-top: 20px;
}

#pp-question-text {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
  font-weight: 500;
}

.question-container {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.answer-container {
  margin: 30px 0;
}

.answer-slider {
  width: 100%;
  margin: 20px 0;
  height: 6px;
  border-radius: 3px;
  background: #e9ecef;
  outline: none;
}

.answer-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #007bff;
  cursor: pointer;
}

.answer-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #007bff;
  cursor: pointer;
  border: none;
}

/* 🎯 PP-ANSWERS SYSTEM (Langtest-spezifisch) */
.pp-answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.pp-answers label {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.pp-answers label:hover {
  background: #e9ecef;
}

.pp-answers input[type="radio"] {
  margin-right: 10px;
}

.pp-answers.slider-labels {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 5px;
  margin-top: 15px;
}

.pp-answers.slider-labels label {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: 12px;
  line-height: 1.2;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
}

.pp-answers.slider-labels label:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.pp-answers.slider-labels label.selected {
  background: #3498db;
  color: white;
  border-color: #3498db;
}

/* 🎯 BUTTON-CONTAINER (Langtest-spezifisch) */
.button-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  gap: 15px;
}

.test-btn {
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-width: 120px;
}

.test-btn.secondary {
  background: #6c757d;
  color: white;
}

.test-btn.secondary:hover {
  background: #5a6268;
}

.test-btn.success {
  background: #28a745;
  color: white;
}

.test-btn.success:hover {
  background: #218838;
}

/* 🎯 PROGRESS-SYSTEM (Langtest-spezifisch) */
.pp-progress {
  margin-bottom: 30px;
}

.pp-progress-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.pp-progress-fill {
  height: 100%;
  background: #28a745;
  width: 0;
  transition: width 0.3s ease;
}

.pp-progress-text {
  text-align: center;
  color: #6c757d;
  font-size: 14px;
}

/* 🎯 LOADING-KOMPONENTEN (Langtest-spezifisch) */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: none;
  z-index: 1000;
  backdrop-filter: blur(2px);

  /* PERFEKTE VERTIKALE UND HORIZONTALE ZENTRIERUNG */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loading-content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.loading-content h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.loading-content p {
  margin-bottom: 15px;
  color: #495057;
}

.pp-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #28a745;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.pp-error {
  background: #dc3545;
  color: #fff;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease;
}

.pp-loading {
  text-align: center;
  padding: 30px;
}

/* 🎯 ACTION BUTTONS (Langtest-spezifisch) */
.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.start-test-btn,
.resume-test-btn,
.restart-test-btn {
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  flex: 1;
  min-width: 150px;
}

.start-test-btn,
.resume-test-btn {
  background: #007bff;
  color: white;
}

.start-test-btn:hover,
.resume-test-btn:hover {
  background: #0056b3;
}

.restart-test-btn {
  background: #dc3545;
  color: white;
}

.restart-test-btn:hover {
  background: #c82333;
}

/* 🎯 MOBILE RESPONSIVE (Langtest-spezifisch) */
@media (max-width: 768px) {
  #pp-langtest-container {
    padding: 15px;
  }

  .test-options {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .test-option {
    padding: 15px;
  }

  .option-details {
    flex-direction: column;
    gap: 5px;
  }

  .button-container {
    flex-direction: column;
  }

  .test-btn {
    width: 100%;
  }

  .action-buttons {
    flex-direction: column;
  }

  .pp-answers.slider-labels label {
    font-size: 10px;
    padding: 6px 2px;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
