/* Modernisierte CSS für Bike & Run Anmeldeformular */

html,
body {
  margin: 0;
  padding: 0;
  font-size: 100%;
  font-family: "Open Sans", sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  line-height: 1.6;
}

h2 {
  color: #2c5aa0;
  text-align: center;
  font-weight: 600;
  margin: 2rem 0;
  font-size: 1.8rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.conditions {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #555;
}

form {
  width: 90%;
  max-width: 700px;
  margin: 2rem auto;
  background: white;
  border: none;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

form:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.form-row {
  display: flex;
  margin-bottom: 1.8rem;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row label {
  font-weight: 600;
  color: #2c5aa0;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.form-row .textfield,
.form-row select {
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  box-sizing: border-box;
}

.form-row .textfield:focus,
.form-row select:focus {
  outline: none;
  border-color: #2c5aa0;
  box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
  transform: translateY(-1px);
}

.form-row .textfield:hover,
.form-row select:hover {
  border-color: #4a6fa5;
}

.styl {
  /* Bereits durch obere Styles abgedeckt */
}

.form-add {
  text-align: center;
  margin: 2rem 0;
}

.condition-row {
  font-size: 0.9em;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  border-left: 4px solid #2c5aa0;
}

.condition-row h2 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #2c5aa0;
}

.condition-row input[type="checkbox"] {
  margin-right: 0.8rem;
  transform: scale(1.2);
  accent-color: #2c5aa0;
}

#errorBox {
  text-align: center;
  margin: 2rem auto;
  border-radius: 12px;
  padding: 1.5rem;
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  width: 90%;
  max-width: 600px;
  line-height: 1.6;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  font-weight: 500;
}

#infobox {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #51cf66, #40c057);
  margin: 2rem auto;
  border-radius: 12px;
  color: white;
  box-shadow: 0 4px 15px rgba(81, 207, 102, 0.3);
  font-weight: 500;
  width: 90%;
  max-width: 600px;
}

#button {
  background: linear-gradient(135deg, #2c5aa0, #1e3a8a);
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 2rem auto 0;
  min-width: 150px;
  box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

#button:hover {
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

#button:active {
  transform: translateY(0);
}

#template-child {
  margin: 1.5rem 0;
}

#addchild,
#removechild {
  background: none;
  border: none;
  display: inline-block;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#addchild img,
#removechild img {
  height: 35px;
  border: 2px solid #2c5aa0;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#addchild:hover img,
#removechild:hover img {
  border-color: #1e3a8a;
  transform: scale(1.05);
}

#removechild {
  display: none;
  float: right;
}

#addandremove {
  margin: 2rem auto;
  text-align: center;
}

.beschreibung {
  line-height: 1.6;
  margin: 0 1rem;
  color: #555;
}

#addchild:focus,
#removechild:focus {
  outline: 2px solid #2c5aa0;
  outline-offset: 2px;
  border-radius: 4px;
}

.abstand_text {
  margin-top: 3rem;
}

#zeugnis {
  background: #f0f4f8;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1rem 0;
  border: 1px solid #e1e8ed;
}

#zeugnis input[type="file"] {
  padding: 0.8rem;
  border: 2px dashed #2c5aa0;
  border-radius: 8px;
  background: white;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

#zeugnis input[type="file"]:hover {
  border-color: #1e3a8a;
  background: #f8f9fa;
}

#zeugnis2 {
  background: #f0f4f8;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1rem 0;
  border: 1px solid #e1e8ed;
}

#zeugnis2 input[type="file"] {
  padding: 0.8rem;
  border: 2px dashed #2c5aa0;
  border-radius: 8px;
  background: white;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

#zeugnis2 input[type="file"]:hover {
  border-color: #1e3a8a;
  background: #f8f9fa;
}

/* Responsive Design für Tablets und kleinere Screens */
@media (max-width: 768px) {
  form {
    width: 95%;
    padding: 1.5rem;
    margin: 1rem auto;
  }

  h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0;
  }

  .form-row {
    margin-bottom: 1.5rem;
  }

  .condition-row {
    padding: 1rem;
    font-size: 0.85rem;
  }

  #button {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
  }

  .conditions {
    font-size: 0.8rem;
  }
}

/* Responsive Design für Smartphones */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  form {
    width: 98%;
    padding: 1rem;
    margin: 0.5rem auto;
    border-radius: 12px;
  }

  h2 {
    font-size: 1.3rem;
    margin: 1rem 0;
  }

  .form-row .textfield,
  .form-row select {
    padding: 14px 12px;
    font-size: 16px; /* Verhindert Zoom auf iOS */
  }

  .condition-row {
    padding: 0.8rem;
    font-size: 0.8rem;
    margin: 1rem 0;
  }

  .condition-row h2 {
    font-size: 1.1rem;
  }

  .conditions {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  #errorBox,
  #infobox {
    width: 95%;
    padding: 1rem;
    margin: 1rem auto;
  }

  #zeugnis {
    padding: 1rem;
  }

  #zeugnis2 {
    padding: 1rem;
  }
}

/* Zusätzliche Animationen und moderne Effekte */
.form-row .textfield,
.form-row select {
  position: relative;
}

.form-row .textfield::placeholder {
  color: #a0a0a0;
  transition: all 0.3s ease;
}

.form-row .textfield:focus::placeholder {
  transform: translateY(-20px);
  font-size: 0.8rem;
  color: #2c5aa0;
}

/* Smooth scrolling für bessere UX */
html {
  scroll-behavior: smooth;
}

/* Fokus-Indikatoren für bessere Zugänglichkeit */
*:focus {
  outline: 2px solid #2c5aa0;
  outline-offset: 2px;
}

.form-row .textfield:focus,
.form-row select:focus {
  outline: none; /* Wird durch border und box-shadow ersetzt */
}

/* Loading Animation für Submit Button */
#button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

#button:disabled:hover {
  background: #ccc;
  transform: none;
  box-shadow: none;
}
