/* ============================================
   ANKAUF SECTION - "Wir kaufen dein Auto"
   ============================================ */

/* Section */
.ankauf {
  background: var(--color-bg-light-grey);
  padding: var(--spacing-4xl) 0;
}

.ankauf__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Header */
.ankauf__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 32px;
}

.ankauf__header .accent-text {
  display: block;
  margin-bottom: var(--spacing-sm);
}

.ankauf__header h2 {
  margin-bottom: var(--spacing-sm);
  color: var(--color-black);
}

.ankauf__header p {
  color: var(--color-light-grey);
  font-size: var(--font-size-paragraph);
  line-height: 1.6;
}

/* Promise Badge */
.ankauf__promise {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: linear-gradient(135deg, #34C759, #009C27);
  border-radius: var(--radius-full);
  padding: 20px 40px;
  max-width: fit-content;
  margin: 0 auto 40px;
  box-shadow: 0 0px 30px rgba(52, 199, 89, 0.5);
  animation: pulse var(--duration-pulse) ease-in-out infinite;
}

.ankauf__promise-label {
  color: white;
  opacity: 0.9;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.ankauf__promise-value {
  color: white;
  font-weight: 700;
  font-size: var(--font-size-h6);
  margin: 0;
}

/* Bulletpoint Chips */
.ankauf__chips {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.ankauf__chip {
  background: rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-black);
}

.ankauf__chip svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Form Container */
.ankauf__form-container {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-light-grey);
  box-shadow: var(--shadow-sm);
  padding: 48px;
  max-width: 860px;
  margin: 0 auto;
}

/* Step Heading */
.ankauf__step-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.ankauf__step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 213, 108, 0.25);
  color: var(--color-dark-gold);
  font-size: 18px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ankauf__step-info {
  display: flex;
  flex-direction: column;
}

.ankauf__step-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--color-light-grey);
  text-transform: uppercase;
}

.ankauf__step-title {
  font-size: var(--font-size-h6);
  font-weight: 600;
  color: var(--color-black);
}

/* Step Divider */
.ankauf__divider {
  border: none;
  border-top: 1px solid var(--color-border-light-grey);
  margin: 40px 0;
}

/* Sub-Heading */
.ankauf__sub-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.ankauf__sub-heading svg {
  width: 20px;
  height: 20px;
  color: var(--color-dark-gold);
  flex-shrink: 0;
}

.ankauf__sub-heading span {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-black);
}

/* Sub-Heading small variant */
.ankauf__sub-heading--small {
  margin-bottom: 16px;
}

/* Form Rows */
.ankauf__row {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.ankauf__row--2 {
  grid-template-columns: 1fr 1fr;
}

.ankauf__row--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.ankauf__row--1 {
  grid-template-columns: 1fr;
}

/* Form Group */
.ankauf__group {
  display: flex;
  flex-direction: column;
}

/* Labels */
.ankauf__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ankauf__label svg {
  width: 16px;
  height: 16px;
  color: var(--color-dark-gold);
}

/* Inputs & Textareas */
.ankauf__input,
.ankauf__textarea {
  background: var(--color-bg-light-grey);
  border: 1px solid var(--color-border-light-grey);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-size: 16px;
  font-family: var(--font-primary);
  width: 100%;
  color: var(--color-black);
  transition: border-color var(--duration-fast) var(--ease-smooth),
              box-shadow var(--duration-fast) var(--ease-smooth);
  box-sizing: border-box;
}

.ankauf__input::placeholder,
.ankauf__textarea::placeholder {
  color: var(--color-light-grey);
}

.ankauf__input:focus,
.ankauf__textarea:focus {
  border-color: var(--color-light-gold);
  outline: none;
}

.ankauf__textarea {
  resize: vertical;
  min-height: 100px;
}

/* Hint text */
.ankauf__hint {
  font-size: 12px;
  color: var(--color-light-grey);
  margin-top: 6px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}

.ankauf__hint svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Error State */
.ankauf__input--error,
.ankauf__textarea--error,
.custom-select-trigger--error {
  border-color: #FF3B30 !important;
}

.ankauf__error {
  font-size: 12px;
  color: #FF3B30;
  margin-top: 4px;
  display: none;
}

.ankauf__error--visible {
  display: block;
}

/* Conditional input slide */
.ankauf__conditional {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin 0.3s ease;
  margin-top: 0;
}

.ankauf__conditional--visible {
  max-height: 120px;
  margin-top: 12px;
}

/* ============================================
   CUSTOM SELECT DROPDOWN
   ============================================ */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  background: var(--color-bg-light-grey);
  border: 1px solid var(--color-border-light-grey);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-size: 16px;
  font-family: var(--font-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  color: var(--color-black);
  transition: border-color var(--duration-fast) var(--ease-smooth),
              box-shadow var(--duration-fast) var(--ease-smooth);
  width: 100%;
  box-sizing: border-box;
}

.custom-select-trigger:hover {
  border-color: var(--color-light-gold);
}

.custom-select.open .custom-select-trigger {
  border-color: var(--color-light-gold);
}

.select-placeholder {
  color: var(--color-light-grey);
}

.select-value {
  color: var(--color-black);
}

.select-chevron {
  transition: transform 0.2s ease;
  color: var(--color-light-grey);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.custom-select.open .select-chevron {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--color-border-light-grey);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 260px;
  overflow-y: auto;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

.custom-select.open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option {
  padding: 11px 16px;
  font-size: 15px;
  cursor: pointer;
  color: var(--color-black);
  transition: background 0.15s;
}

.custom-select-option:hover {
  background: var(--color-bg-light-grey);
}

.custom-select-option.selected {
  background: rgba(255, 213, 108, 0.15);
  color: var(--color-dark-gold);
  font-weight: 500;
}

/* Dropdown thin scrollbar */
.custom-select-menu::-webkit-scrollbar {
  width: 6px;
}

.custom-select-menu::-webkit-scrollbar-track {
  background: transparent;
}

.custom-select-menu::-webkit-scrollbar-thumb {
  background: var(--color-light-gold);
  border-radius: 3px;
}

/* ============================================
   TOGGLE CHIPS (Multi-Select)
   ============================================ */
.ankauf__toggle-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.ankauf__toggle-chip {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light-grey);
  background: white;
  font-size: 14px;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  color: var(--color-black);
  display: inline-flex;
  align-items: center;
}

.ankauf__toggle-chip:hover {
  border-color: var(--color-light-gold);
}

.ankauf__toggle-chip.active {
  background: rgba(255, 213, 108, 0.3);
  border-color: var(--color-light-gold);
  color: var(--color-black);
  font-weight: 500;
}

/* Toggle Chip Checkbox Circle */
.toggle-chip-checkbox {
  width: 20px;
  height: 20px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  transition: all 0.2s ease;
  background: transparent;
  flex-shrink: 0;
}

.ankauf__toggle-chip.active .toggle-chip-checkbox {
  background: var(--color-light-gold);
  border-color: transparent;
}

.toggle-chip-check {
  width: 12px;
  height: 12px;
  color: var(--color-black);
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ankauf__toggle-chip.active .toggle-chip-check {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   FILE UPLOAD
   ============================================ */
.ankauf__upload-zone {
  border: 2px dashed var(--color-border-light-grey);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.ankauf__upload-zone:hover {
  border-color: var(--color-light-gold);
  background: rgba(255, 213, 108, 0.03);
}

.ankauf__upload-zone svg {
  width: 36px;
  height: 36px;
  color: var(--color-light-grey);
  margin-bottom: 12px;
}

.ankauf__upload-text {
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: 4px;
}

.ankauf__upload-subtext {
  font-size: 13px;
  color: var(--color-light-grey);
}

.ankauf__upload-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ankauf__upload-label svg {
  width: 16px;
  height: 16px;
  color: var(--color-dark-gold);
}

.ankauf__upload-sublabel {
  font-size: 13px;
  color: var(--color-light-grey);
  margin-bottom: 12px;
}

/* File Preview */
.ankauf__preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ankauf__preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.ankauf__preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ankauf__preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  padding: 0;
}

.ankauf__preview-remove:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* ============================================
   TOGGLE BOX (Radio Style)
   ============================================ */
.ankauf__toggle-box {
  width: 100%;
  border: 1.5px solid var(--color-border-light-grey);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  user-select: none;
}

.ankauf__toggle-box:hover {
  border-color: var(--color-light-gold);
}

.ankauf__toggle-box.active {
  border-color: var(--color-light-gold);
  background: rgba(255, 213, 108, 0.04);
}

.ankauf__radio-circle {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-border-light-grey);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ankauf__toggle-box.active .ankauf__radio-circle {
  border-color: var(--color-light-gold);
  background: var(--color-light-gold);
}

.ankauf__radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ankauf__toggle-box.active .ankauf__radio-dot {
  opacity: 1;
}

.ankauf__toggle-box-icon {
  width: 20px;
  height: 20px;
  color: var(--color-dark-gold);
  flex-shrink: 0;
}

.ankauf__toggle-box-content {
  flex: 1;
}

.ankauf__toggle-box-title {
  font-weight: 500;
  color: var(--color-black);
  font-size: 15px;
}

.ankauf__toggle-box-sub {
  font-size: 13px;
  color: var(--color-light-grey);
  margin-top: 2px;
}

/* ============================================
   CUSTOM CHECKBOXES
   ============================================ */
.ankauf__checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  cursor: pointer;
  user-select: none;
}

.ankauf__checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border-light-grey);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-top: 1px;
}

.ankauf__checkbox.checked {
  background: var(--color-light-gold);
  border-color: var(--color-light-gold);
}

.ankauf__checkbox svg {
  width: 12px;
  height: 12px;
  color: white;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ankauf__checkbox.checked svg {
  opacity: 1;
}

.ankauf__checkbox-wrapper--error .ankauf__checkbox {
  border-color: #FF3B30;
}

.ankauf__checkbox-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-black);
}

.ankauf__checkbox-text a {
  color: var(--color-dark-gold);
  text-decoration: none;
}

.ankauf__checkbox-text a:hover {
  text-decoration: underline;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.ankauf__submit-btn {
  width: 100%;
  margin-top: 28px;
  background: var(--gradient-button);
  border: none;
  border-radius: var(--radius-md);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-black);
  font-family: var(--font-primary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.ankauf__submit-btn:hover {
  transform: translateY(-2px);
}

.ankauf__submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.ankauf__submit-btn:hover::before {
  left: 100%;
}

.ankauf__submit-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.ankauf__submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Submit spinner */
.ankauf__spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: var(--color-black);
  border-radius: 50%;
  animation: ankauf-spin 0.6s linear infinite;
}

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

/* Submit hint text */
.ankauf__submit-hint {
  font-size: 12px;
  color: var(--color-light-grey);
  text-align: center;
  margin-top: 12px;
}

/* Submit error message */
.ankauf__submit-error {
  font-size: 14px;
  color: #FF3B30;
  text-align: center;
  margin-top: 12px;
  display: none;
}

.ankauf__submit-error--visible {
  display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .ankauf {
    padding: var(--spacing-3xl) 0;
  }

  .ankauf__form-container {
    padding: 32px 24px;
  }

  .ankauf__row--3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .ankauf {
    padding: var(--spacing-2xl) 0;
  }

  .ankauf__form-container {
    padding: 24px;
  }

  .ankauf__row--2,
  .ankauf__row--3 {
    grid-template-columns: 1fr;
  }

  .ankauf__promise {
    flex-direction: column;
    gap: 4px;
    padding: 12px 24px;
  }

  .ankauf__step-heading {
    gap: 12px;
    margin-bottom: 24px;
  }

  .ankauf__divider {
    margin: 28px 0;
  }

  .ankauf__toggle-box {
    padding: 14px 16px;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .ankauf__form-container {
    padding: 20px 16px;
  }

  .ankauf__chips {
    gap: 8px;
  }
}

/* ============================================
   DANKE PAGE STYLES
   ============================================ */
.danke {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.danke__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.danke__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.danke__content {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 56px;
  text-align: center;
  max-width: 680px;
  width: 100%;
  margin: 0 var(--container-padding);
}

.danke__check {
  width: 72px;
  height: 72px;
  background: #34C759;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.danke__check svg {
  width: 32px;
  height: 32px;
  color: white;
}

.danke__content h1 {
  color: white;
  margin-bottom: var(--spacing-sm);
}

.danke__text {
  color: var(--color-light-grey);
  font-size: var(--font-size-paragraph-large);
  line-height: 1.6;
  margin-bottom: 32px;
}

.danke__badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.danke__badge {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: white;
}

.danke__badge svg {
  width: 16px;
  height: 16px;
}

.danke__btn {
  animation: pulse var(--duration-pulse) ease-in-out infinite;
}

@media (max-width: 768px) {
  .danke__content {
    padding: 32px 24px;
  }

  .danke__badges {
    flex-direction: column;
    align-items: center;
  }
}
