/* PKVService Widgets – Gemeinsames Styling */
.pkv-widget {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 720px;
  margin: 2rem auto;
  padding: 0;
  box-sizing: border-box;
}

/* Banner-Variante: volle Breite, kein Außenabstand */
.pkv-widget-banner {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Direkt aufeinanderfolgende Banner ohne Lücke */
.pkv-widget-banner + .pkv-widget-banner {
  margin-top: 1rem;
}

.pkv-widget * { box-sizing: border-box; }

/* Card Container */
.pkv-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.pkv-card h2 {
  color: #1B4F72;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.pkv-card h3 {
  color: #2E86C1;
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
}

.pkv-card p {
  color: #4a5568;
  line-height: 1.6;
  margin: 0.5rem 0;
}

/* Form Elements */
.pkv-form-group {
  margin-bottom: 1.25rem;
}

.pkv-form-group label {
  display: block;
  font-weight: 500;
  color: #2d3748;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.pkv-form-group input,
.pkv-form-group select,
.pkv-form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-size: 1rem;
  color: #2d3748;
  transition: border-color 0.2s;
  background: #fff;
}

.pkv-form-group input:focus,
.pkv-form-group select:focus,
.pkv-form-group textarea:focus {
  outline: none;
  border-color: #2E86C1;
  box-shadow: 0 0 0 3px rgba(46,134,193,0.15);
}

.pkv-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .pkv-form-row { grid-template-columns: 1fr; }
}

/* Buttons */
.pkv-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.pkv-btn-primary {
  background: #1B4F72;
  color: #fff;
}

.pkv-btn-primary:hover {
  background: #154360;
  transform: translateY(-1px);
}

.pkv-btn-secondary {
  background: #e2e8f0;
  color: #2d3748;
}

.pkv-btn-secondary:hover {
  background: #cbd5e0;
}

.pkv-btn-success {
  background: #27ae60;
  color: #fff;
}

.pkv-btn-success:hover {
  background: #219a52;
}

.pkv-btn-full {
  width: 100%;
}

/* Result Display */
.pkv-result {
  background: #EBF5FB;
  border: 1px solid #2E86C1;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
}

.pkv-result-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1B4F72;
  line-height: 1.2;
}

.pkv-result-label {
  font-size: 0.9rem;
  color: #5D6D7E;
  margin-top: 0.3rem;
}

/* Comparison Table */
.pkv-compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1rem 0;
}

.pkv-compare-table th {
  background: #1B4F72;
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}

.pkv-compare-table th:first-child { border-radius: 8px 0 0 0; }
.pkv-compare-table th:last-child { border-radius: 0 8px 0 0; }

.pkv-compare-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #4a5568;
}

.pkv-compare-table tr:nth-child(even) td {
  background: #f7fafc;
}

.pkv-compare-table .pkv-highlight {
  background: #EBF5FB !important;
  font-weight: 600;
  color: #1B4F72;
}

/* Decision Tree – Banner Stil */
.pkv-tree-block {
  background: linear-gradient(135deg, #154360 0%, #1B4F72 50%, #2471a3 100%);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(27,79,114,0.25);
}

.pkv-tree-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
}

.pkv-tree-progress {
  height: 5px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.pkv-tree-progress-bar {
  height: 100%;
  background: #6abf4b;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.pkv-tree-heading {
  color: #fff !important;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 1.25rem !important;
  line-height: 1.3;
}

.pkv-tree-question {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  margin-bottom: 1.25rem;
}

.pkv-tree-options {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pkv-tree-option {
  padding: 0.7rem 1.4rem;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 120px;
}

.pkv-tree-option:hover {
  background: rgba(255,255,255,0.25);
  border-color: #fff;
}

.pkv-tree-text {
  color: rgba(255,255,255,0.88) !important;
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 1.25rem !important;
}

.pkv-tree-result-badge {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pkv-tree-badge-green { background: #6abf4b; color: #fff; }
.pkv-tree-badge-amber { background: #f0a500; color: #fff; }
.pkv-tree-badge-red   { background: #e74c3c; color: #fff; }

.pkv-tree-restart {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.7);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.2s;
}

.pkv-tree-restart:hover {
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}

@media (max-width: 600px) {
  .pkv-tree-heading { font-size: 1.3rem; }
  .pkv-tree-options { flex-direction: column; align-items: center; }
  .pkv-tree-option  { width: 100%; max-width: 280px; }
}

/* Progress Bar */
.pkv-progress {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.pkv-progress-bar {
  height: 100%;
  background: #2E86C1;
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* Success Message */
.pkv-success {
  background: #f0fff4;
  border: 1px solid #27ae60;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  color: #27ae60;
}

/* Range Slider */
.pkv-range {
  width: 100%;
  margin: 0.5rem 0;
  -webkit-appearance: none;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  outline: none;
}

.pkv-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2E86C1;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.pkv-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #a0aec0;
  margin-top: 0.25rem;
}

/* CTA Block (Lead-Formular Ersatz) */
.pkv-cta-block {
  background: linear-gradient(135deg, #1a3d2b 0%, #245f3c 55%, #2e7a4f 100%);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(26,61,43,0.3);
}

.pkv-cta-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.75rem;
}

.pkv-cta-heading {
  color: #fff !important;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.75rem !important;
  line-height: 1.3;
}

.pkv-cta-text {
  color: rgba(255,255,255,0.88) !important;
  font-size: 1rem;
  margin: 0 0 1.25rem !important;
  max-width: 520px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.pkv-cta-checks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin-bottom: 1.75rem;
}

.pkv-cta-check {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.pkv-cta-btn {
  display: inline-block;
  background: #fff;
  color: #1a5c2e !important;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 0;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

.pkv-cta-btn:hover {
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  text-decoration: none !important;
}

/* Im Entscheidungsbaum (blau) bleibt der Button grün */
.pkv-tree-block .pkv-cta-btn {
  background: #6abf4b;
  color: #fff !important;
}

.pkv-tree-block .pkv-cta-btn:hover {
  background: #5aad3c;
  color: #fff !important;
}

@media (max-width: 600px) {
  .pkv-cta-heading { font-size: 1.3rem; }
  .pkv-cta-checks { flex-direction: column; align-items: center; }
}

/* Badge */
.pkv-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pkv-badge-green {
  background: #d4edda;
  color: #155724;
}

.pkv-badge-amber {
  background: #fff3cd;
  color: #856404;
}

.pkv-badge-red {
  background: #f8d7da;
  color: #721c24;
}
