/* =========================================
   PARTNERPROGRAMM (partnerprogramm.html)
   ========================================= */
:root {
  --b2b-primary: #1e293b;
  --b2b-accent: #00b0ff;
  --b2b-bg: #f8fafc;
  --b2b-white: #ffffff;
  --b2b-border: #e2e8f0;
}

main {
  display: block;
  padding-top: var(--header-height-desktop);
}

.b2b-wrapper-outer {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 60px 20px;
  font-family: inherit;
  box-sizing: border-box;
}

.b2b-widget {
  background: var(--b2b-white);
  width: 100%;
  max-width: 1200px;
  border-radius: 20px;
  border: 1px solid var(--b2b-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 60px 50px;
  overflow: hidden;
}

.b2b-container {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: flex-start;
}

.b2b-info {
  flex: 1 1 450px;
  padding-top: 10px;
}

.b2b-eyebrow {
  font-size: 0.85rem;
  color: var(--blue-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 10px 0;
}

.b2b-headline {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--b2b-primary);
  line-height: 1.1;
  margin: 0 0 25px 0;
}

.b2b-desc {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 40px;
}

.b2b-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.benefit-li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1rem;
  color: var(--b2b-primary);
  font-weight: 500;
}

.benefit-icon {
  color: var(--b2b-accent);
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 176, 255, 0.1);
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
}

.benefit-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}

.req-box {
  background: #f1f5f9;
  padding: 30px;
  border-radius: 16px;
  border-left: 5px solid var(--b2b-primary);
}

.req-title {
  font-weight: 700;
  color: var(--b2b-primary);
  margin-bottom: 15px;
  display: block;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.req-li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #475569;
}

.req-arrow {
  width: 16px;
  height: 16px;
  stroke: var(--b2b-accent);
  stroke-width: 2;
  margin-right: 10px;
  margin-top: 3px;
  flex-shrink: 0;
}

.b2b-form-wrapper {
  flex: 1 1 450px;
  background: #ffffff;
  border: 1px solid var(--b2b-border);
  border-radius: 20px;
  padding: 30px;
  width: 100%;
  position: relative;
}

.b2b-form-wrapper form {
  width: 100%;
}

.step-content {
  display: none;
  animation: fadeEffect 0.5s ease;
}

.step-content.active {
  display: block;
}

.step-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}

.form-headline {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--b2b-primary);
  margin: 0 0 25px 0;
}

.input-group {
  margin-bottom: 20px;
}

.input-row {
  display: flex;
  gap: 20px;
}

.label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--b2b-primary);
  margin-bottom: 8px;
}

.field {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--b2b-border);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--b2b-primary);
  background: #f8fafc;
  box-sizing: border-box;
  font-family: inherit;
}

.field:focus {
  outline: none;
  background: #fff;
  border-color: var(--b2b-accent);
}

/* Checkbox-Liste ("Leistungsspektrum") */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-label {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--b2b-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #475569;
  transition: all 0.2s;
}

/* Visuell versteckt, aber weiterhin fokussier- und bedienbar (statt display:none) */
.service-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.checkmark {
  height: 18px;
  width: 18px;
  background-color: #eee;
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
  flex-shrink: 0;
  transition: box-shadow 0.15s;
}

.service-checkbox:checked + .checkmark {
  background-color: var(--b2b-accent);
}

.service-checkbox:focus-visible + .checkmark {
  box-shadow: 0 0 0 3px rgba(0, 176, 255, 0.4);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 3px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.service-checkbox:checked + .checkmark:after {
  display: block;
}

.service-checkbox:checked ~ span {
  color: var(--b2b-primary);
  font-weight: 500;
}

/* Slider */
.slider-row {
  display: flex;
  gap: 15px;
  align-items: stretch;
}

.plz-box {
  flex: 0 0 100px;
}

.range-box {
  flex: 1;
  background: #f8fafc;
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid var(--b2b-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.range-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #475569;
}

.range-value-display {
  font-weight: 700;
  color: var(--b2b-accent);
}

.custom-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #cbd5e1;
  border-radius: 5px;
  outline: none;
  margin-top: 5px;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--b2b-accent);
  cursor: pointer;
}

.info-note {
  display: flex;
  gap: 10px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  padding: 15px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #92400e;
  margin-bottom: 20px;
  align-items: flex-start;
}

.info-note p {
  margin: 0;
}

.btn-wrap {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}

.btn-primary {
  flex: 1;
  padding: 16px;
  background: var(--blue-dark);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #003b5e;
  transform: translateY(-2px);
}

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

.btn-secondary {
  padding: 16px 25px;
  background: transparent;
  border: 2px solid var(--b2b-border);
  color: #475569;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--b2b-primary);
  border-color: var(--b2b-primary);
}

@keyframes fadeEffect {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .b2b-wrapper-outer {
    padding: 40px 15px 20px;
  }

  .b2b-widget {
    padding: 20px;
  }

  .b2b-container {
    flex-direction: column;
    gap: 40px;
  }

  .b2b-form-wrapper {
    padding: 20px;
  }

  .input-row {
    flex-direction: column;
    gap: 20px;
  }

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

  .plz-box {
    flex: auto;
    width: 100%;
  }

  .range-box {
    width: 100%;
    box-sizing: border-box;
  }

  .b2b-headline {
    font-size: 2rem;
  }
}
