/* Styles für interaktive Übungen */
.interactive-exercises {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.exercise-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.exercise-btn {
  padding: 8px 15px;
  background-color: #e0e0e0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.exercise-btn:hover {
  background-color: #d0d0d0;
}

.exercise-btn.active {
  background-color: #4285f4;
  color: white;
}

.exercise-item {
  display: none;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.exercise-item.active {
  display: block;
}

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* Gemeinsame Basis-Stile für beide Buttons */
.check-btn, .reset-btn {
  flex: 1; /* Beide Buttons nehmen gleich viel Platz ein */
  padding: 8px 20px;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  min-width: 120px; /* Minimale Breite für beide Buttons */
}

/* Spezifische Farben für den Überprüfen-Button */
.check-btn {
  background-color: #4caf50;
}

.check-btn:hover {
  background-color: #388e3c;
}

/* Spezifische Farben für den Zurücksetzen-Button */
.reset-btn {
  background-color: #f44336;
}

.reset-btn:hover {
  background-color: #d32f2f;
}

.feedback {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
  display: none;
}

.feedback.success {
  display: block;
  background-color: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
}

.feedback.error {
  display: block;
  background-color: #ffebee;
  border: 1px solid #ffcdd2;
  color: #c62828;
}

/* Anpassungen für den GeoGebra-Container */
.geogebra-container {
  width: 100%;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
  padding-bottom: 20px;
}

.geogebra-iframe {
  display: block;
  width: 100% !important; /* Wichtig: Überschreibt inline-Styles des iframes */
  min-height: 600px !important; /* Größere minimale Höhe setzen */
  border: 1px solid #ddd !important;
  box-sizing: border-box;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Neue Styles für die Parameter-Grid mit 2x2 Layout */
.parameter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
  margin: 20px 0;
}

.parameter-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.parameter-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.parameter-card h3 {
  color: #4285f4;
  margin-top: 0;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

/* Für responsives Verhalten */
@media (max-width: 768px) {
  .geogebra-iframe {
    min-height: 500px !important;
  }
  
  .parameter-grid {
    grid-template-columns: 1fr; /* Auf kleineren Bildschirmen eine Spalte */
  }
}

/* Stellen Sie sicher, dass andere Elemente dem Container nicht im Weg stehen */
.section {
  width: 100%;
  box-sizing: border-box;
}

/* Falls notwendig, können wir versuchen, das iFrame durch Javascript anzupassen */
/* Dafür müssten wir ein zusätzliches JavaScript-Skript erstellen */