/* Styles für die Modellierungsseite */

/* Allgemeine Erweiterungen */
.intro-box {
  background-color: #f8f8f8;
  border-left: 4px solid #4285f4;
  padding: 20px;
  margin: 30px 0;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.guide-box {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Schritte für die Modellierung */
.steps {
  counter-reset: step-counter;
  list-style-type: none;
  padding-left: 0;
}

.steps li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 25px;
}

.steps li:before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  background-color: #4285f4;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
}

.steps h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
}

/* Beispielbox */
.example-box {
  background-color: #f0f7ff;
  border: 1px solid #d0e5ff;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.solution-steps {
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  border-left: 3px solid #4285f4;
  margin-top: 15px;
}

.solution-steps h4 {
  margin-top: 0;
  color: #4285f4;
}

/* Styling für Modellierungsaufgaben */
.modeling-exercises {
  padding: 0;
}

.parameter-inputs {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}

.parameter-inputs h4 {
  margin-top: 0;
}

.input-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.input-group label {
  width: 50px;
  font-weight: bold;
  font-family: monospace;
  font-size: 18px;
}

.input-group input {
  flex-grow: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  min-width: 300px; /* Erhöhte Mindestbreite */
  max-width: 350px; /* Erhöhte Maximalbreite */
}

.input-group input::placeholder {
  opacity: 1; /* Vollständige Sichtbarkeit des Platzhaltertexts */
  color: #666; /* Dunklere Farbe für bessere Lesbarkeit */
}

.input-group input:focus {
  border-color: #4285f4;
  outline: none;
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

/* Daten-Tabellen */
.data-table-container {
  overflow-x: auto;
  margin: 20px 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
}

.data-table th {
  background-color: #4285f4;
  color: white;
  padding: 10px;
  text-align: left;
  font-weight: 500;
}

.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e0e0e0;
}

.data-table tr:nth-child(even) {
  background-color: #f5f5f5;
}

.data-table tr:hover {
  background-color: #e8f0fe;
}

/* Hinweis-Box */
.hint-box {
  background-color: #fffde7;
  border-left: 4px solid #fdd835;
  padding: 15px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}

.hint-box h4 {
  margin-top: 0;
  color: #f57f17;
}

.hint-box ul {
  margin-bottom: 0;
}

/* Anwendungskarten */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.application-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.application-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.application-card h3 {
  margin: 0;
  padding: 15px 20px;
  background-color: #4285f4;
  color: white;
  font-size: 18px;
}

.application-content {
  padding: 20px;
}

.application-content ul {
  padding-left: 20px;
}

.application-content p:last-child {
  margin-bottom: 0;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .applications-grid {
    grid-template-columns: 1fr;
  }
  
  .input-group {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .input-group label {
    margin-bottom: 5px;
  }
  
  .input-group input {
    width: 100%;
    max-width: none;
  }
}

/* Ergänzungen für die mobile Ansicht - fügen Sie diese am Ende der modellierung-styles.css ein */

/* Mobile Anpassungen für die Modellierungsseite */
@media (max-width: 767px) {
  /* Allgemeine Anpassungen */
  .container {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
  }
  
  .section {
    padding: 10px;
  }
  
  /* Anpassungen für die Intro-Box */
  .intro-box {
    padding: 15px;
    margin: 15px 0;
  }
  
  /* Guide-Box für mobile Geräte */
  .guide-box {
    padding: 15px;
    margin: 15px 0;
  }
  
  /* Schritte für die Modellierung auf mobilen Geräten */
  .steps li {
    padding-left: 35px;
    margin-bottom: 20px;
  }
  
  .steps li:before {
    width: 26px;
    height: 26px;
    line-height: 26px;
    font-size: 14px;
  }
  
  /* Beispielbox für mobile Geräte */
  .example-box {
    padding: 15px;
    margin: 15px 0;
  }
  
  .solution-steps {
    padding: 12px;
  }
  
  /* Parameter-Eingaben optimieren */
  .parameter-inputs {
    padding: 15px;
  }
  
  .input-group {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 12px;
  }
  
  .input-group label {
    width: auto;
    margin-bottom: 5px;
    font-size: 16px;
  }
  
  .input-group input {
    width: 100%;
    max-width: none;
    min-width: 0;
    font-size: 16px; /* Verhindert Zoom auf iOS */
    padding: 10px;
    margin-bottom: 5px;
  }
  
  /* Daten-Tabellen für mobile Geräte */
  .data-table-container {
    margin: 15px 0;
  }
  
  .data-table {
    font-size: 14px;
  }
  
  .data-table th {
    padding: 8px 5px;
  }
  
  .data-table td {
    padding: 6px 5px;
  }
  
  /* Hinweis-Box für mobile Geräte */
  .hint-box {
    padding: 12px;
    margin: 15px 0;
  }
  
  .hint-box ul {
    padding-left: 15px;
  }
  
  /* Optimierungen für die Aufgabenauswahl */
  .exercise-selector {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }
  
  .exercise-btn {
    padding: 8px 10px;
    margin: 0 2px 5px 0;
    font-size: 14px;
  }
  
  /* Grafik-Container anpassen */
  .geogebra-container {
    height: auto !important;
    min-height: 350px !important;
    margin: 10px 0;
  }
  
  .geogebra-iframe {
    min-height: 350px !important;
  }
}

/* Anpassungen für sehr kleine Bildschirme */
@media (max-width: 480px) {
  .exercises-container h2,
  .section h2 {
    font-size: 20px;
  }
  
  .exercise-item h3,
  .intro-box h3,
  .guide-box h3,
  .example-box h3 {
    font-size: 18px;
  }
  
  .data-table {
    font-size: 12px;
  }
  
  .data-table th,
  .data-table td {
    padding: 5px 3px;
  }
  
  .exercise-btn {
    padding: 6px 8px;
    font-size: 13px;
  }
  
  /* GeoGebra für sehr kleine Bildschirme */
  .geogebra-iframe {
    min-height: 300px !important;
  }
}

/* Verbesserte Touch-Bedienbarkeit */
@media (pointer: coarse) {
  .exercise-btn, 
  .check-btn, 
  .reset-btn {
    min-height: 44px;
  }
  
  /* Mehr Abstand zwischen den Übungen */
  .exercise-item {
    padding: 15px 10px;
  }
  
  /* Verbesserte Lesbarkeit der Formeln */
  .parameter-inputs p {
    font-size: 16px;
  }
}

/* Anpassungen für die Anwendungskarten auf mobilen Geräten */
@media (max-width: 767px) {
  .applications-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 15px 0;
  }
  
  .application-card h3 {
    font-size: 16px;
    padding: 12px 15px;
  }
  
  .application-content {
    padding: 15px;
  }
  
  .application-content ul {
    padding-left: 15px;
  }
}

