/* =============================================================
   FEIYUE GARANTIE — Stylesheet (Phase 1)
   CI: Orange #CD5125, Sand #F7F1EB, Brown #6B4E3D
   Aus den Mockups konsolidiert: index, success, upload-beleg.
   ============================================================= */

* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #2B2B2B;
  background: #FDFBF9;
  line-height: 1.5;
}

/* ===== TOP-BAR ===== */
.top-bar {
  background: #CD5125;
  color: #fff;
  padding: 10px 24px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
}
.top-bar strong { font-weight: 700; }

/* ===== HEADER ===== */
.header {
  border-bottom: 1px solid #E6D5C3;
  padding: 18px 24px;
  text-align: center;
  background: #fff;
}
.header-logo-img {
  height: 50px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}
.container.narrow { max-width: 700px; padding-top: 40px; }
.container.upload { max-width: 600px; }

/* ===== INTRO ===== */
.intro {
  text-align: center;
  margin-bottom: 32px;
}
.intro-eyebrow {
  font-size: 11px;
  color: #CD5125;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.intro-title {
  font-size: 28px;
  color: #6B4E3D;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
}
.intro-text {
  font-size: 14px;
  color: #8a7a6a;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== STEPPER ===== */
.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.step {
  background: #F7F1EB;
  border: 1px solid #E6D5C3;
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
}
.step-num {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #CD5125;
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.step-text {
  font-size: 12px;
  color: #6B4E3D;
  font-weight: 600;
}

/* ===== CARD (Form + Info) ===== */
.form-card,
.card {
  background: #fff;
  border: 1px solid #E6D5C3;
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 20px;
}
.card { padding: 24px; }

.section-label {
  font-size: 11px;
  color: #CD5125;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #F7F1EB;
}
.section-label.spaced { margin-top: 24px; }

/* ===== MODELL-AUSWAHL ===== */
.model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.model-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #E6D5C3;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.model-card:hover {
  border-color: #c8b8a0;
  box-shadow: 0 2px 8px rgba(107,78,61,0.06);
}
.model-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.model-card.selected,
.model-card:has(input[type="radio"]:checked) {
  border: 2px solid #CD5125;
  background: #fff8f5;
  padding: 11px 13px;
}
.model-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.model-card.selected .model-dot,
.model-card:has(input[type="radio"]:checked) .model-dot {
  box-shadow: 0 0 0 3px rgba(205,81,37,0.18);
}
.model-info { flex: 1; min-width: 0; }
.model-name {
  font-size: 13px;
  font-weight: 700;
  color: #6B4E3D;
  line-height: 1.2;
}
.model-type {
  font-size: 10px;
  color: #8a7a6a;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ===== INPUT-FELDER ===== */
.form-row {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}
.form-row.two { grid-template-columns: 1fr 1fr; }

.field { display: flex; flex-direction: column; gap: 5px; }

.label {
  font-size: 12px;
  font-weight: 600;
  color: #6B4E3D;
  letter-spacing: 0.3px;
}
.label-req::after {
  content: ' *';
  color: #CD5125;
}

.input {
  padding: 11px 14px;
  border: 1px solid #E6D5C3;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: #6B4E3D;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.input:focus {
  outline: none;
  border-color: #CD5125;
  box-shadow: 0 0 0 3px rgba(205,81,37,0.12);
}
.input::placeholder { color: #b8a892; }

.input.valid {
  border-color: #0a7d24;
  background: #f7fcf8;
}
.input.invalid {
  border-color: #a82020;
  background: #fdf6f4;
}

.help {
  font-size: 11px;
  color: #8a7a6a;
  margin-top: 2px;
}
.help-error {
  font-size: 11px;
  color: #a82020;
  margin-top: 2px;
  font-weight: 600;
}
.help-ok {
  font-size: 11px;
  color: #0a7d24;
  margin-top: 2px;
  font-weight: 600;
}

/* ===== FEHLER-BANNER (oben auf Form) ===== */
.error-banner {
  background: #fdf6f4;
  border: 1px solid #f1c2bb;
  border-left: 4px solid #a82020;
  color: #7a1818;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.5;
}
.error-banner strong { color: #5a0e0e; }
.error-banner ul { margin: 6px 0 0 18px; padding: 0; }

/* ===== BELEG-UPLOAD ===== */
.upload-input {
  display: none !important;
}
.upload-zone {
  display: block;
  border: 2px dashed #CD5125;
  background: #fff8f5;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
}
.upload-zone.large { padding: 36px 24px; }
.upload-zone:hover { background: #fdf2ec; }
.upload-zone.dragover {
  background: #fdf2ec;
  border-color: #B8441E;
}
.upload-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #E6D5C3;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: #CD5125;
}
.upload-zone.large .upload-icon { width: 60px; height: 60px; margin-bottom: 14px; }
.upload-text {
  font-size: 13px;
  color: #6B4E3D;
  font-weight: 600;
  margin-bottom: 2px;
}
.upload-zone.large .upload-text { font-size: 15px; margin-bottom: 4px; }
.upload-hint {
  font-size: 11px;
  color: #8a7a6a;
}
.upload-zone.large .upload-hint { font-size: 12px; }
.upload-cta {
  font-size: 11px;
  color: #CD5125;
  margin-top: 8px;
  font-weight: 600;
}
.upload-zone.large .upload-cta { font-size: 12px; margin-top: 10px; }
.upload-filename {
  font-size: 12px;
  color: #0a7d24;
  font-weight: 600;
  margin-top: 10px;
  word-break: break-all;
}
.upload-optional-note {
  margin-top: 10px;
  padding: 10px 14px;
  background: #F7F1EB;
  border-left: 3px solid #CD5125;
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  color: #6B4E3D;
  line-height: 1.5;
}

/* ===== CHECKBOXES ===== */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 4px;
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.checkbox-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid #c8b8a0;
  border-radius: 4px;
  flex-shrink: 0;
  background: #fff;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.checkbox-row input[type="checkbox"]:checked + .checkbox-box {
  background: #CD5125;
  border-color: #CD5125;
}
.checkbox-row input[type="checkbox"]:checked + .checkbox-box .check-icon {
  opacity: 1;
}
.check-icon { opacity: 0; }
.checkbox-label {
  font-size: 12px;
  color: #6B4E3D;
  line-height: 1.5;
}
.checkbox-label a {
  color: #CD5125;
  text-decoration: underline;
}

/* ===== SUBMIT-BUTTON ===== */
.submit {
  width: 100%;
  background: #CD5125;
  color: #fff;
  border: none;
  padding: 16px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: background 0.15s;
}
.submit.small { padding: 14px 24px; font-size: 14px; margin-top: 16px; }
.submit:hover { background: #B8441E; }
.submit:disabled { background: #d4b49f; cursor: not-allowed; }

/* ===== TRUST-BADGES ===== */
.badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.badge {
  background: #F7F1EB;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-icon {
  width: 18px;
  height: 18px;
  color: #CD5125;
  flex-shrink: 0;
}
.badge-text {
  font-size: 11px;
  color: #6B4E3D;
  font-weight: 600;
  line-height: 1.3;
}

/* ===== SUCCESS-PAGE ===== */
.success-icon {
  width: 80px;
  height: 80px;
  background: #e8f5ee;
  border: 3px solid #0a7d24;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #0a7d24;
}
.success-title {
  text-align: center;
  font-size: 28px;
  color: #6B4E3D;
  margin: 0 0 12px;
  font-weight: 700;
  line-height: 1.2;
}
.success-sub {
  text-align: center;
  font-size: 14px;
  color: #8a7a6a;
  margin: 0 auto 32px;
  max-width: 480px;
  line-height: 1.6;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
}
.summary-label {
  font-size: 11px;
  color: #8a7a6a;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.summary-value {
  font-size: 14px;
  color: #6B4E3D;
  font-weight: 600;
}

.upload-card {
  background: linear-gradient(135deg, #fff8f5 0%, #fdf2ec 100%);
  border: 2px solid #CD5125;
}
.upload-card .section-label { border-bottom-color: #fcc4a8; }
.upload-card-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  background: #fff;
  border: 1px solid #E6D5C3;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #CD5125;
}
.upload-card-title {
  font-size: 17px;
  color: #6B4E3D;
  font-weight: 700;
  margin: 0 0 6px;
}
.upload-card-text {
  font-size: 13px;
  color: #6B4E3D;
  line-height: 1.6;
  margin: 0 0 16px;
}
.upload-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #CD5125;
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.upload-cta-btn:hover { background: #B8441E; }

.info-block {
  background: #F7F1EB;
  border-left: 3px solid #CD5125;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  font-size: 13px;
  color: #6B4E3D;
  line-height: 1.6;
  margin-top: 16px;
}
.info-block.compact {
  padding: 12px 16px;
  font-size: 12px;
  margin-top: 14px;
}
.info-block strong { color: #6B4E3D; }

.next-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.next-step {
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  background: #F7F1EB;
  border-radius: 10px;
}
.next-step-num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #CD5125;
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.next-step-content { flex: 1; }
.next-step-title {
  font-size: 13px;
  font-weight: 700;
  color: #6B4E3D;
  margin-bottom: 2px;
}
.next-step-desc {
  font-size: 12px;
  color: #8a7a6a;
  line-height: 1.4;
}

/* ===== UPLOAD-PAGE (Token) ===== */
.reg-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.reg-item { padding: 6px 0; }
.reg-label {
  font-size: 11px;
  color: #8a7a6a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.reg-value {
  font-size: 14px;
  color: #6B4E3D;
  font-weight: 600;
}

.existing-beleg {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e8f5ee;
  border: 1px solid #b8d4b8;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  color: #2d5a2d;
  margin-bottom: 16px;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 24px;
  font-size: 11px;
  color: #8a7a6a;
  border-top: 1px solid #E6D5C3;
  margin-top: 32px;
}
.footer a { color: #CD5125; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ===== HONEYPOT ===== */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .container { padding: 20px 16px 32px; }
  .container.narrow,
  .container.upload { padding: 24px 16px 32px; }
  .header-logo-img { height: 40px; }
  .intro-title { font-size: 22px; }
  .success-title { font-size: 22px; }
  .form-card { padding: 20px 16px; }
  .card { padding: 18px; }
  .form-row.two { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: 1fr; }
  .badges { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr; gap: 4px; }
  .reg-info { grid-template-columns: 1fr; gap: 4px; }
}
