/* Grundlegende Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  padding: 20px 0 0 0;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Header */
.form-header {
  background: linear-gradient(135deg, #cf1b15, #e53e3e);
  color: white;
  padding: 30px;
  text-align: center;
}

.logo-placeholder {
  margin-bottom: 20px;
}

.logo-circle {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-header h1 {
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 600;
}

.form-header h2 {
  font-size: 18px;
  font-weight: 300;
  opacity: 0.9;
}

/* Formular */
.membership-form {
  padding: 40px;
}

.intro-text {
  font-size: 16px;
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-left: 4px solid #cf1b15;
  border-radius: 4px;
}

.form-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
  border-bottom: none;
}

.form-section h3 {
  color: #cf1b15;
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

.section-description {
  font-style: italic;
  color: #666;
  margin-bottom: 15px;
}

/* Form Groups */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #cf1b15;
  box-shadow: 0 0 0 3px rgba(207, 27, 21, 0.1);
}

.required {
  color: #dc3545;
  font-weight: bold;
}

/* Radio Buttons */
.membership-options {
  margin-bottom: 20px;
}

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

.form-group-radio input[type="radio"] {
  margin-right: 10px;
  transform: scale(1.2);
  accent-color: #cf1b15;
}

.form-group-radio label {
  font-size: 16px;
  cursor: pointer;
  font-weight: 500;
}

/* Checkboxes */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 3px;
  transform: scale(1.2);
  accent-color: #cf1b15;
}

.checkbox-group label {
  cursor: pointer;
  font-size: 15px;
  line-height: 1.5;
}

/* Alerts */
.alert {
  padding: 15px;
  margin: 20px 40px;
  border-radius: 4px;
  font-weight: 500;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Submit Button */
.form-actions {
  text-align: center;
  margin: 40px 0 30px 0;
  padding-top: 30px;
  border-top: 2px solid #e9ecef;
}

.submit-btn {
  background: linear-gradient(135deg, #cf1b15, #e53e3e);
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover {
  background: linear-gradient(135deg, #b71c1c, #cf1b15);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Privacy Note */
.privacy-note {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 4px;
  font-style: italic;
}

.note {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
  font-style: italic;
}

/* Add Button */
.add-btn {
  background: linear-gradient(135deg, #cf1b15, #e53e3e);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 15px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.add-btn:hover {
  background: linear-gradient(135deg, #b71c1c, #cf1b15);
  transform: translateY(-1px);
}

/* Familienmitglied Container */
.familienmitglied-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #e9ecef;
  align-items: end;
}

.familienmitglied-row .form-group {
  flex: 1;
}

.remove-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  height: fit-content;
  transition: background 0.3s ease;
}

.remove-btn:hover {
  background: #c82333;
}

.membership-options h4 {
  color: #cf1b15;
  font-size: 16px;
  margin-bottom: 15px;
  margin-top: 20px;
  font-weight: 600;
}

/* Payment Options */
.payment-options {
  margin-bottom: 20px;
}

/* Footer */
.site-footer {
  background-color: #2c2c2c;
  color: #fff;
  padding: 30px 0;
  margin-top: 40px;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #cf1b15;
  text-decoration: underline;
}

.footer-links .separator {
  margin: 0 15px;
  color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    margin: 0 10px;
    border-radius: 0;
  }

  .form-header {
    padding: 20px;
  }

  .form-header h1 {
    font-size: 24px;
  }

  .membership-form {
    padding: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .alert {
    margin: 20px;
  }

  .footer-links .separator {
    display: none;
  }

  .footer-links a {
    display: block;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px 0;
  }

  .form-header h1 {
    font-size: 20px;
  }

  .form-header h2 {
    font-size: 16px;
  }

  .membership-form {
    padding: 15px;
  }

  .submit-btn {
    width: 100%;
    padding: 15px;
  }

  .familienmitglied-row {
    flex-direction: column;
    gap: 10px;
  }

  .familienmitglied-row .form-group {
    flex: none;
  }
}
