/* ============================================ */
/* GEZEITENBERECHNUNGEN MASTER TEMPLATE        */
/* CSS Styles                                  */
/* ============================================ */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

/* ============================================ */
/* HEADER & NAVIGATION                         */
/* ============================================ */
.header {
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  color: #333;
  text-decoration: none;
  font-size: 1.1rem;
}

.header-title {
  font-weight: bold;
  color: #1e3a5f;
  font-size: 1.3rem;
  text-align: center;
}

.nav {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 1.25rem;
  text-decoration: none;
  color: #333;
  border-radius: 0.5rem;
  transition: all 0.2s;
  border: none;
}

.nav-link:hover {
  background: #f0f0f0;
  color: #000;
  border-radius: 0.5rem;
}

.nav-link.active {
  background: #3d3d3d;
  color: white;
  border: none;
  border-radius: 0.5rem;
}

/* ============================================ */
/* HERO SECTION                                */
/* ============================================ */
.hero {
  height: 14rem;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(70, 80, 90, 0.5);
}

.hero-title {
  position: relative;
  z-index: 10;
  color: white;
  font-size: 3.5rem;
  font-weight: bold;
  letter-spacing: 0.1em;
}

/* ============================================ */
/* CONTAINER & CONTENT BOX                     */
/* ============================================ */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.content-box {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.content-box h2 {
  color: #1e3a5f;
  margin-bottom: 1rem;
  text-decoration: underline;
}

.content-box h3 {
  color: #1e3a5f;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: bold;
}

.content-box h3:first-child {
  margin-top: 0;
}

.content-box h4 {
  color: #333;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.content-box p {
  margin-bottom: 1rem;
}

.content-box ul, .content-box ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-box li {
  margin-bottom: 0.5rem;
}

/* ============================================ */
/* SOLUTION IMAGES                             */
/* ============================================ */
.solution-image {
  margin: 1.5rem 0;
  text-align: center;
}

.solution-image img {
  max-width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.solution-image.small img {
  max-width: 200px;
}

/* ============================================ */
/* RESULT BOX (Grün)                           */
/* ============================================ */
.result-box {
  background: #dcfce7;
  padding: 1rem 1.5rem;
  border-radius: 2rem;
  margin-top: 1.5rem;
  border: 2px solid #22c55e;
  text-align: center;
}

.result-box p {
  margin: 0;
}

/* ============================================ */
/* WARNING BOX (Gelb - Fehlerquelle)           */
/* ============================================ */
.warning-box {
  background: #fef9c3;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.warning-box h3 {
  color: #854d0e;
  margin: 0 0 0.5rem 0;
}

.warning-box p {
  color: #713f12;
  margin: 0;
}

/* ============================================ */
/* AUDIO SECTION                               */
/* ============================================ */
.audio-section {
  background: white;
}

.audio-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.audio-player {
  width: 100%;
  height: 2.5rem;
}

/* ============================================ */
/* BUTTONS                                     */
/* ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: #22c55e;
  color: white;
}

.btn-primary:hover {
  background: #16a34a;
}

.btn-outline {
  background: white;
  color: #333;
  border: 2px solid #e5e7eb;
}

.btn-outline:hover {
  background: #f9fafb;
}

.btn-success {
  background: #22c55e;
  color: white;
}

.btn-success:hover {
  background: #16a34a;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================ */
/* DOWNLOAD SECTION                            */
/* ============================================ */
.download-section {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.download-card {
  flex: 1;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.download-card .download-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.download-card h4 {
  margin: 0.5rem 0;
  color: #1e3a5f;
}

.download-card p {
  color: #666;
  margin: 0;
  font-size: 0.9rem;
}

.download-card .btn {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}

@media (max-width: 768px) {
  .download-section {
    flex-direction: column;
  }
}

/* ============================================ */
/* EXERCISE / MULTIPLE CHOICE                  */
/* ============================================ */
.exercise-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 0.5rem;
}

.exercise-item h4 {
  margin-bottom: 1rem;
  color: #1e3a5f;
}

.exercise-item p {
  margin-bottom: 1rem;
}

.exercise-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exercise-option {
  padding: 0.75rem 1rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.exercise-option:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.exercise-option.correct {
  background: #dcfce7;
  border-color: #22c55e;
  color: #166534;
}

.exercise-option.incorrect {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

.exercise-option.disabled {
  pointer-events: none;
}

/* ============================================ */
/* QUIZ BUTTONS                                */
/* ============================================ */
.quiz-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ============================================ */
/* FOOTER                                      */
/* ============================================ */
.footer {
  background: white;
  color: #333;
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
}

/* ============================================ */
/* UTILITY CLASSES                             */
/* ============================================ */
.hidden {
  display: none !important;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

/* ============================================ */
/* RESPONSIVE                                  */
/* ============================================ */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .quiz-buttons {
    flex-direction: column;
  }
}

/* SYA Logo Header */
.aufgabe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.aufgabe-header h2 {
  margin: 0;
}
