/* style.css – Feuerwehr-Einheitenplaner */

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f5f5;
  color: #212121;
  padding: 20px;
}

h1 {
  color: #d32f2f;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

form {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: auto;
}
#filterForm {
  all: unset; /* Entfernt ALLE geerbten Styles */
  display: block; /* Notwendig, um das Formular-Layout beizubehalten */
}

label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

input[type="number"] {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

button {
  background-color: #d32f2f;
  color: white;
  border: none;
  padding: 14px;
  margin-top: 20px;
  font-size: 16px;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
}
/* Anzeige der Eingabewerte für Kids und Betreuer */
.input-values {
  background: white;
  padding: 20px;
  margin-top: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.input-values p {
  font-size: 16px;
  margin: 10px 0;
}

.result {
  background: white;
  margin-top: 5px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.lastinput {
  background: white;
  margin-top: 5px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.result h2 {
  color: #d32f2f;
}

.alternative-results {
  background: white;
  margin-top: 20px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

ul {
  list-style-type: none;
  padding-left: 0;
}

li {
  padding: 6px 0;
  font-size: 16px;
}

.button-alternatives {
  color: white;
  border: none;
  padding: 10px;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  max-width: 500px;
  border-radius: 8px;
  cursor: pointer;
  align-self: center;
  display: flex;
  justify-content: center;
}


/* Für mobile Ansichten */
*, *::before, *::after {
  box-sizing: border-box;
}



@media (max-width: 600px) {
  h1 {
      font-size: 2rem; /* vorher 1.5rem */
  }

  form {
      padding: 25px;
  }

  label {
      font-size: 1.2rem;
  }

  input[type="number"] {
      font-size: 18px;
      padding: 16px;
  }

  button {
      font-size: 18px;
      padding: 16px;
  }

  .result {
      padding: 25px;
  }

  .lastinput {
    padding: 25px;
  }

  .result h2 {
      font-size: 1.5rem;
  }
  
  .lastinput h2 {
    font-size: 1.5rem;
  }

  .alternative-results h2 {
    font-size: 1.5rem;
  }

  li {
      font-size: 17px;
  }

  p {
      font-size: 16px;
  }

  h3 {
      font-size: 1.2rem;
  }
}

/* Für größere Ansichten */
@media (min-width: 768px) {
  form {
      background: white;
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      max-width: 500px;
      margin: auto;
      box-sizing: border-box;
  }
  
  input[type="number"],
  button {
      display: block;
      width: 100%;
      box-sizing: border-box;
      margin-top: 10px;
  }
  
  .result {
      max-width: 500px;
      box-sizing: border-box;
  }

  

  .lastinput {
    max-width: 500px;
    box-sizing: border-box;
  }

  .alternative-results {
    max-width: 500px;
    box-sizing: border-box;
  }

  .input-values {
      padding: 25px;
  }

  #ergebnisse {
    overflow-x: auto;
    width: 100%;
  }

  #ergebnisse table {
    width: 100%;
    border-collapse: collapse;
  }

  #ergebnisse table thead tr {
    display: none; /* Spaltenüberschriften auf kleinen Bildschirmen ausblenden */
  }

  #ergebnisse table tbody tr {
    display: block;
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
  }

  #ergebnisse table tbody td {
    display: block;
    text-align: right;
    position: relative;
    padding-left: 50%;
    white-space: normal;
  }

  #ergebnisse table tbody td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 50%;
    padding-left: 10px;
    font-weight: bold;
    text-align: left;
  }

}

