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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

.student-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
}

.main-nav {
  display: flex;
  gap: 25px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background 0.3s;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logout-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.logout-btn:hover {
  background: #764ba2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 30px;
}

.welcome-section {
  text-align: center;
  color: white;
  margin-bottom: 40px;
}

.welcome-section h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.welcome-section p {
  font-size: 18px;
  opacity: 0.9;
}

.progress-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
}

.progress-card h2 {
  margin-bottom: 20px;
  color: #333;
}

.progress-bar {
  width: 100%;
  height: 30px;
  background: #e9ecef;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transition: width 0.5s ease;
}

.classes-grid {
  margin-bottom: 40px;
}

.classes-grid h2 {
  color: white;
  margin-bottom: 25px;
  font-size: 28px;
}

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

.class-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s;
}

.class-card:hover {
  transform: translateY(-5px);
}

.class-icon {
  font-size: 50px;
  margin-bottom: 15px;
}

.class-card h3 {
  font-size: 24px;
  color: #667eea;
  margin-bottom: 10px;
}

.class-card p {
  color: #666;
  margin-bottom: 20px;
}

.mini-progress {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.mini-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.progress-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
  transition: transform 0.2s;
}

.btn-primary:hover {
  transform: scale(1.02);
}

.btn-secondary {
  width: 100%;
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #667eea;
  color: white;
}

.last-exam-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.last-exam-card h2 {
  margin-bottom: 20px;
}

.exam-result {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
}

.exam-result.passed {
  background: #d4edda;
}

.exam-result.failed {
  background: #f8d7da;
}

.result-icon {
  font-size: 60px;
  margin-bottom: 15px;
}

.exam-result h3 {
  font-size: 28px;
  margin-bottom: 15px;
}

.exam-result p {
  margin: 5px 0;
}

.practice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-btn {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background 0.3s;
}

.back-btn:hover {
  background: #f0f0f0;
}

.question-info {
  display: flex;
  gap: 10px;
}

.category-badge,
.difficulty-badge,
.points-badge {
  padding: 6px 15px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.category-badge {
  background: #e7e9fc;
  color: #667eea;
}

.difficulty-badge {
  color: white;
}

.difficulty-leicht {
  background: #28a745;
}

.difficulty-mittel {
  background: #ffc107;
}

.difficulty-schwer {
  background: #dc3545;
}

.points-badge {
  background: #17a2b8;
  color: white;
}

.result-feedback {
  background: white;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.result-feedback.correct {
  border-left: 6px solid #28a745;
}

.result-feedback.wrong {
  border-left: 6px solid #dc3545;
}

.feedback-icon {
  font-size: 80px;
  margin-bottom: 20px;
}

.result-feedback h3 {
  font-size: 32px;
  margin-bottom: 10px;
}

.question-card {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.question-text {
  font-size: 22px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #333;
}

.answers-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.answer-option {
  display: flex;
  align-items: center;
  padding: 20px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.answer-option:hover {
  background: #e9ecef;
  border-color: #667eea;
}

.answer-option input[type="radio"] {
  margin-right: 15px;
  width: 20px;
  height: 20px;
}

.answer-text {
  font-size: 16px;
  flex: 1;
}

.btn-large {
  padding: 18px;
  font-size: 18px;
  margin-top: 20px;
}

.answers-review .answer-option {
  cursor: default;
}

.correct-answer {
  background: #d4edda !important;
  border-color: #28a745 !important;
}

.wrong-answer {
  background: #f8d7da !important;
  border-color: #dc3545 !important;
}

.answer-icon {
  font-size: 24px;
  margin-right: 15px;
  font-weight: bold;
}

.question-stats {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
  text-align: center;
  color: #666;
}
