/*--------------------------------------------------------------
# Fahrzeugdesign-Konfigurator
--------------------------------------------------------------*/
.kf-page {
  background: #f6f6f6;
}

.kf-intro {
  margin-top: 74px;
  padding: 50px 0 20px;
  background: #fff;
}

.kf-lead {
  max-width: 820px;
  font-size: 16px;
  line-height: 1.7;
}

.kf-process {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 25px 0 0;
  counter-reset: kfstep;
}

.kf-process li {
  flex: 1 1 140px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #151515;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.3;
  counter-increment: kfstep;
}

.kf-process li i {
  font-size: 26px;
  color: #ff0000;
  flex-shrink: 0;
}

.kf-process li::before {
  content: counter(kfstep);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: #777;
}

.kf-konfigurator {
  padding-top: 30px;
}

/* Stepper */
.kf-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.kf-step-btn {
  flex: 1 1 120px;
  border: 0;
  background: #fff;
  color: #444;
  padding: 10px 12px;
  border-radius: 6px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  text-align: left;
  border-bottom: 3px solid #ddd;
  cursor: pointer;
}

.kf-step-btn span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ddd;
  color: #151515;
  font-weight: 600;
  margin-right: 6px;
}

.kf-step-btn.done {
  border-bottom-color: #151515;
}

.kf-step-btn.done span {
  background: #151515;
  color: #fff;
}

.kf-step-btn.active {
  border-bottom-color: #ff0000;
  color: #151515;
  font-weight: 600;
}

.kf-step-btn.active span {
  background: #ff0000;
  color: #fff;
}

.kf-step-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* Vorschau */
.kf-preview-col {
  margin-bottom: 20px;
}

.kf-preview {
  position: sticky;
  top: 90px;
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, .06);
}

.kf-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
}

.kf-toggle {
  font-size: 13px;
  margin: 0;
  white-space: nowrap;
  cursor: pointer;
}

.kf-stage {
  position: relative;
  background: linear-gradient(180deg, #fafafa 0%, #eef0f2 100%);
  border-radius: 6px;
  overflow: hidden;
}

#kf-svg {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  user-select: none;
}

#kf-svg [data-el] {
  cursor: grab;
}

#kf-svg.dragging [data-el] {
  cursor: grabbing;
}

#kf-svg .kf-handle {
  cursor: nwse-resize;
}

.kf-stage-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #888;
  text-align: center;
  padding: 20px;
  background: rgba(250, 250, 250, .85);
}

.kf-stage-empty i {
  font-size: 48px;
}

.kf-stage-empty[hidden] {
  display: none;
}

.kf-elements {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.kf-chip {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kf-chip.active {
  border-color: #ff0000;
  color: #ff0000;
}

.kf-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 10px;
  padding: 10px 12px;
  background: #f4f4f4;
  border-radius: 6px;
  font-size: 13px;
}

.kf-tools[hidden] {
  display: none;
}

.kf-tools label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.kf-tools input[type="range"] {
  width: 110px;
}

.kf-tools-title {
  flex-basis: 100%;
}

.kf-hint {
  font-size: 13px;
  color: #777;
  margin: 10px 0 0;
}

/* Panels */
.kf-panel {
  display: none;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, .06);
  min-width: 0;
}

.kf-panel.active {
  display: block;
}

.kf-panel legend {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #151515;
  margin-bottom: 15px;
  /* Legende sonst auf der Rahmenlinie des Fieldsets statt im Kasten */
  float: left;
  width: 100%;
  padding: 0;
}

.kf-panel legend + * {
  clear: both;
}

.kf-panel label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.kf-panel .form-check-label,
.kf-zones label {
  font-weight: 400;
}

.kf-panel .form-control:focus {
  border-color: #ff0000;
  box-shadow: 0 0 0 .15rem rgba(255, 0, 0, .15);
}

.kf-panel .is-invalid {
  border-color: #dc3545;
}

.kf-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.kf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid #ff0000;
  background: #ff0000;
  color: #fff;
  padding: 9px 22px;
  border-radius: 4px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: .3s;
}

.kf-btn:hover {
  background: #151515;
  border-color: #151515;
  color: #fff;
}

.kf-btn:disabled {
  opacity: .6;
  cursor: wait;
}

.kf-btn-ghost {
  background: transparent;
  color: #151515;
  border-color: #ccc;
}

.kf-btn-small {
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 13px;
  cursor: pointer;
}

/* Farbfelder */
.kf-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.kf-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #bbb;
  cursor: pointer;
  padding: 0;
}

.kf-swatch.active {
  box-shadow: 0 0 0 2px #ff0000;
}

.kf-swatch-custom {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px #bbb;
  background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
  margin: 0;
}

.kf-swatch-custom.active {
  box-shadow: 0 0 0 2px #ff0000;
}

.kf-swatch-custom input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.kf-swatch-name {
  font-size: 12px;
  color: #777;
  margin-left: 4px;
}

/* Designs */
.kf-styles {
  margin-bottom: 18px;
}

.kf-colls {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.kf-coll {
  flex: 1;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 20px;
  padding: 5px 8px;
  font-size: 13px;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
}

.kf-coll.active {
  background: #151515;
  border-color: #151515;
  color: #fff;
}

.kf-coll-desc,
.kf-coll-hint {
  font-size: 12px;
  color: #777;
  margin: 0 0 10px;
}

.kf-coll-hint {
  margin: 8px 0 0;
}

.kf-style-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.kf-style {
  border: 2px solid #e3e3e3;
  border-radius: 6px;
  padding: 0 0 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  margin: 0;
  overflow: hidden;
  transition: border-color .2s;
}

.kf-style:hover {
  border-color: #bbb;
}

.kf-style.active {
  border-color: #ff0000;
}

.kf-style img {
  display: block;
  width: 100%;
  aspect-ratio: 480 / 160;
  object-fit: cover;
  background: #111;
  margin-bottom: 6px;
}

.kf-style strong {
  display: block;
  font-size: 14px;
  color: #151515;
  padding: 0 8px;
}

.kf-style strong span {
  color: #ff0000;
}

.kf-style small {
  display: block;
  color: #777;
  font-weight: 400;
  line-height: 1.3;
  padding: 0 8px;
}

.kf-style-none {
  display: block;
  margin-top: 10px;
  padding: 8px 10px;
  border: 2px solid #e3e3e3;
  border-radius: 6px;
  cursor: pointer;
}

.kf-style-none.active {
  border-color: #ff0000;
}

.kf-style-none small {
  color: #777;
  font-weight: 400;
}

/* Upload */
.kf-upload {
  border-top: 1px solid #eee;
  padding-top: 15px;
  margin-top: 5px;
}

.kf-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 2px dashed #ccc;
  border-radius: 6px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  font-weight: 400 !important;
  transition: .2s;
}

.kf-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.kf-dropzone i {
  font-size: 32px;
  color: #ff0000;
}

.kf-dropzone small {
  color: #888;
}

.kf-dropzone[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .55;
}

.kf-dropzone[aria-disabled="true"] i {
  color: #999;
}

.kf-dropzone.over {
  border-color: #ff0000;
  background: #fff5f5;
}

.kf-dropzone:focus-within {
  border-color: #ff0000;
}

.kf-filelist {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.kf-filelist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid #eee;
  border-radius: 4px;
  margin-bottom: 6px;
  font-size: 13px;
}

.kf-filelist img,
.kf-filelist .kf-file-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #f4f4f4;
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #666;
}

.kf-filelist .kf-file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kf-filelist button {
  border: 0;
  background: none;
  color: #c00;
  font-size: 18px;
  cursor: pointer;
}

/* Zonen */
.kf-zones {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 12px;
}

.kf-zones label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.kf-zones .kf-zone-hidden {
  color: #888;
}

/* Zusammenfassung */
.kf-summary {
  background: #f6f6f6;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 15px;
  font-size: 14px;
}

.kf-summary dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2px 12px;
  margin: 0;
}

.kf-summary dt {
  font-weight: 600;
  color: #555;
}

.kf-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.kf-legal {
  font-size: 13px;
  color: #666;
}

.kf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.kf-message {
  font-size: 14px;
}

.kf-message.error {
  color: #fff;
  background: #ed3c0d;
  padding: 10px 14px;
  border-radius: 4px;
}

.kf-success {
  text-align: center;
}

.kf-success i {
  font-size: 64px;
  color: #18a54a;
}

@media (max-width: 991px) {
  .kf-preview {
    position: static;
  }
}

@media (max-width: 575px) {
  .kf-zones {
    grid-template-columns: 1fr;
  }

  .kf-step-btn {
    flex: 1 1 calc(33% - 6px);
    font-size: 12px;
    padding: 8px;
  }

  .kf-panel {
    padding: 16px;
  }
}

/*--------------------------------------------------------------
# Shop-Bereiche (Kacheln als Umschalter)
--------------------------------------------------------------*/
.shop {
  margin-top: 74px;
}

.shop-tabs {
  margin-bottom: 30px;
}

.shop .shop-tab {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: .3s;
}

.shop .shop-tab:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

.shop .shop-tab:focus {
  outline: none;
}

.shop .shop-tab:focus-visible {
  border-color: #151515;
}

.shop .shop-tab.active {
  border-color: #ff0000;
}

.shop .shop-tab h3 {
  transition: .3s;
}

/* Nur der ausgewählte Bereich wird rot hervorgehoben */
.shop .shop-tab.active h3 {
  color: #fff;
  background: #ff0000;
}

.shop-tab-text {
  flex: 1;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.shop-tab-cta {
  margin-top: 15px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  color: #ff0000;
}

.shop-tab-cta i {
  transition: transform .3s;
  vertical-align: middle;
}

.shop-tab.active .shop-tab-cta i {
  transform: rotate(180deg);
}

.shop-panel {
  animation: shop-fade .35s ease;
}

.shop-panel-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #151515;
  margin-bottom: 12px;
}

.shop-panel .kf-intro {
  margin: 0 0 25px;
  padding: 0;
  background: none;
}

@keyframes shop-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
