/* ── REGISTRIERUNG ── */

/* Header */
.reg-header {
  background: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.reg-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.reg-back:hover {
  color: var(--green);
}

.reg-logo img {
  height: 40px;
  width: auto;
}

/* Hero Banner */
.reg-hero {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.reg-hero::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.reg-hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.reg-hero-content {
  position: relative;
  z-index: 1;
}

.reg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  margin-bottom: 1rem;
}

.reg-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5rem;
}

.reg-hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Main */
.reg-main {
  padding: 2.5rem 1.5rem 4rem;
  min-height: calc(100vh - 320px);
}

.reg-container {
  max-width: 680px;
  margin: 0 auto;
}

/* Form Sections */
.form-section {
  margin-bottom: 2rem;
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.form-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-section-icon.green { background: var(--green); }
.form-section-icon.blue { background: var(--blue); }
.form-section-icon.yellow { background: var(--yellow); }
.form-section-icon.yellow svg { stroke: var(--dark); }

.form-section-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
}

/* Form Card */
.form-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* Form Rows */
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group.flex-1 { flex: 1; }
.form-group.flex-3 { flex: 3; }

label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #888;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select {
  padding: 0.8rem 1rem;
  border: 2px solid #eee;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--dark);
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  width: 100%;
}

input::placeholder {
  color: #ccc;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(122, 181, 29, 0.1);
}

input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #e74c3c;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233a3a3a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Checkboxes */
.checkbox-wrapper {
  padding: 0.75rem 0;
}

.checkbox-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 0.25rem 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 2px solid #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-top: 1px;
  background: #fafafa;
}

.checkbox-label:hover .checkmark {
  border-color: var(--green);
}

.checkbox-label input:checked + .checkmark {
  background: var(--green);
  border-color: var(--green);
}

.checkbox-label input:checked + .checkmark::after {
  content: '';
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.checkbox-hint {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.5rem;
  padding-left: 2.75rem;
}

.checkbox-wrapper a {
  color: var(--green);
  text-decoration: underline;
  font-weight: 600;
}

.required-hint {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 1.5rem;
}

/* Feedback */
.form-feedback {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-feedback.error {
  background: #fef2f2;
  color: #c0392b;
  border: 2px solid #fecaca;
}

.form-feedback.success {
  background: #f0fdf4;
  color: #166534;
  border: 2px solid #bbf7d0;
}

/* Submit Button */
.btn-submit {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  box-shadow: 0 4px 15px rgba(122, 181, 29, 0.3);
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(122, 181, 29, 0.4);
}

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

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading {
  align-items: center;
  gap: 0.5rem;
}

.btn-loading[hidden] {
  display: none;
}

.btn-loading:not([hidden]) {
  display: inline-flex;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .reg-main {
    padding: 1.5rem 1rem 3rem;
  }

  .reg-header {
    padding: 0.75rem 1rem;
  }

  .reg-hero {
    padding: 2rem 1rem;
  }

  .form-card {
    padding: 1.25rem;
    border-radius: 12px;
  }
}
