/* ============================================
   BÄDERGALERIE HEIZUNGSKONFIGURATOR — WP Plugin
   All classes prefixed with bgk- to avoid conflicts
   ============================================ */

.bgk-konfigurator {
  --bgk-primary: #00A5E0;
  --bgk-primary-dark: #0089bd;
  --bgk-primary-light: #e6f6fc;
  --bgk-secondary: #40BA7B;
  --bgk-secondary-light: #e8f7ef;
  --bgk-dark: #1a2332;
  --bgk-text: #3F3F3F;
  --bgk-text-light: #6b7c8d;
  --bgk-bg: #f7f9fc;
  --bgk-white: #ffffff;
  --bgk-border: #e2e8f0;
  --bgk-radius: 12px;
  --bgk-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--bgk-text);
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

.bgk-konfigurator *, .bgk-konfigurator *::before, .bgk-konfigurator *::after {
  box-sizing: border-box;
}

/* Hero */
.bgk-hero {
  background: linear-gradient(135deg, var(--bgk-dark) 0%, #2a3a4e 60%, #1e3a5f 100%);
  padding: 48px 32px;
  border-radius: var(--bgk-radius) var(--bgk-radius) 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bgk-badge {
  display: inline-block;
  background: rgba(0,165,224,0.15);
  border: 1px solid rgba(0,165,224,0.3);
  color: var(--bgk-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bgk-hero-title {
  font-size: clamp(22px, 4vw, 34px);
  color: var(--bgk-white);
  line-height: 1.25;
  margin: 0 0 12px;
  font-weight: 700;
}

.bgk-hero-text {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  margin: 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Progress */
.bgk-progress-wrapper {
  background: var(--bgk-white);
  padding: 24px 28px 16px;
  border-left: 1px solid var(--bgk-border);
  border-right: 1px solid var(--bgk-border);
}

.bgk-progress-bar {
  height: 5px;
  background: var(--bgk-border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 14px;
}

.bgk-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bgk-primary), var(--bgk-secondary));
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.bgk-progress-steps {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bgk-progress-steps::-webkit-scrollbar { display: none; }

.bgk-progress-step {
  font-size: 11px;
  color: var(--bgk-text-light);
  white-space: nowrap;
  padding: 4px 6px;
  border-radius: 6px;
  text-align: center;
  flex-shrink: 0;
  transition: var(--bgk-transition);
}
.bgk-progress-step::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bgk-border);
  margin: 0 auto 5px;
  transition: var(--bgk-transition);
}
.bgk-progress-step.active { color: var(--bgk-primary); font-weight: 600; }
.bgk-progress-step.active::before { background: var(--bgk-primary); box-shadow: 0 0 0 4px rgba(0,165,224,0.15); }
.bgk-progress-step.completed { color: var(--bgk-secondary); }
.bgk-progress-step.completed::before { background: var(--bgk-secondary); }

/* Step Container */
.bgk-step-container {
  background: var(--bgk-white);
  padding: 36px 32px 28px;
  border-left: 1px solid var(--bgk-border);
  border-right: 1px solid var(--bgk-border);
  min-height: 300px;
}

.bgk-step { animation: bgkStepIn 0.35s ease-out; }
@keyframes bgkStepIn { from { opacity:0; transform:translateX(16px); } to { opacity:1; transform:translateX(0); } }

.bgk-step-title {
  font-size: 22px;
  color: var(--bgk-dark);
  text-align: center;
  margin: 0 0 6px;
  font-weight: 700;
}
.bgk-step-subtitle {
  font-size: 14px;
  color: var(--bgk-text-light);
  text-align: center;
  margin: 0 0 32px;
}

/* Questions */
.bgk-question { margin-bottom: 28px; }
.bgk-question:last-child { margin-bottom: 0; }

.bgk-question-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--bgk-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bgk-required { color: #e53e3e; font-weight: 700; }

.bgk-info {
  width: 17px; height: 17px;
  background: var(--bgk-primary-light);
  color: var(--bgk-primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  flex-shrink: 0;
  position: relative;
}
.bgk-info:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bgk-dark);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  white-space: normal;
  max-width: 260px;
  min-width: 160px;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  line-height: 1.4;
}

/* Option Buttons */
.bgk-options { display: flex; flex-wrap: wrap; gap: 8px; }
.bgk-opt {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 12px 18px;
  border: 2px solid var(--bgk-border);
  border-radius: 10px;
  background: var(--bgk-white);
  color: var(--bgk-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--bgk-transition);
  text-align: center;
}
.bgk-opt:hover { border-color: var(--bgk-primary); color: var(--bgk-primary); }
.bgk-opt.selected {
  border-color: var(--bgk-primary);
  background: var(--bgk-primary-light);
  color: var(--bgk-primary);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--bgk-primary);
}
.bgk-opt.multi-selected {
  border-color: var(--bgk-secondary);
  background: var(--bgk-secondary-light);
  color: #2d8a5a;
  font-weight: 600;
}

/* Input fields */
.bgk-input-group { display: flex; gap: 12px; flex-wrap: wrap; }
.bgk-field { flex: 1 1 200px; }
.bgk-field label {
  display: block; font-size: 13px; color: var(--bgk-text-light);
  margin-bottom: 5px; font-weight: 500;
}
.bgk-field input, .bgk-field textarea, .bgk-field select {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--bgk-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--bgk-text);
  background: var(--bgk-white);
  transition: var(--bgk-transition);
  outline: none;
}
.bgk-field input:focus, .bgk-field textarea:focus { border-color: var(--bgk-primary); box-shadow: 0 0 0 3px rgba(0,165,224,0.1); }
.bgk-field textarea { resize: vertical; min-height: 72px; }
.bgk-field input::placeholder, .bgk-field textarea::placeholder { color: #b0bec5; }

/* Slider */
.bgk-slider { display: flex; align-items: center; gap: 14px; }
.bgk-slider-val {
  min-width: 64px; padding: 9px 12px; border: 2px solid var(--bgk-border);
  border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--bgk-primary);
  text-align: center; background: var(--bgk-primary-light);
}
.bgk-slider-track { flex: 1; }
.bgk-slider-track input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 5px;
  background: var(--bgk-border); border-radius: 3px; outline: none; cursor: pointer;
}
.bgk-slider-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bgk-primary); border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,165,224,0.3); cursor: pointer;
}
.bgk-slider-track input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--bgk-primary);
  border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,165,224,0.3); cursor: pointer;
}
.bgk-slider-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--bgk-text-light); margin-top: 4px; }

/* Notes */
.bgk-notes { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--bgk-border); }
.bgk-notes > label {
  font-size: 12px; color: var(--bgk-text-light); text-transform: uppercase;
  letter-spacing: 0.06em; display: block; margin-bottom: 6px; font-weight: 600;
}

/* Hint */
.bgk-hint {
  background: #fff8f0; border: 1px solid #ffd4a8; border-radius: 10px;
  padding: 12px 16px; margin-top: 10px; display: flex; align-items: flex-start;
  gap: 8px; font-size: 13px; color: #8a5a1e;
}
.bgk-hint svg { flex-shrink: 0; margin-top: 1px; }

/* Contact */
.bgk-contact-heading { font-size: 20px; color: var(--bgk-dark); text-align: center; margin: 0 0 6px; font-weight: 700; }
.bgk-contact-sub { font-size: 13px; color: var(--bgk-text-light); text-align: center; margin: 0 0 24px; }
.bgk-privacy { font-size: 11px; color: var(--bgk-text-light); text-align: center; margin-top: 18px; line-height: 1.5; }
.bgk-privacy a { color: var(--bgk-primary); text-decoration: underline; }

/* Validation */
.bgk-question--error { animation: bgkShake 0.4s ease-in-out; }
.bgk-question--error .bgk-options .bgk-opt { border-color: #fed7d7; background: #fff5f5; }
.bgk-question--error .bgk-question-label { color: #e53e3e; }

.bgk-validation-msg {
  background: #fff5f5; border: 1px solid #fed7d7; color: #c53030;
  padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 500;
  margin-bottom: 16px; text-align: center; display: none;
  animation: bgkFadeIn 0.3s ease-out;
}

@keyframes bgkShake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
@keyframes bgkFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Navigation */
.bgk-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bgk-white);
  padding: 20px 32px;
  border: 1px solid var(--bgk-border);
  border-top: none;
  border-radius: 0 0 var(--bgk-radius) var(--bgk-radius);
}

.bgk-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 24px; border: none; border-radius: 50px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--bgk-transition); text-decoration: none;
  line-height: 1.4;
}
.bgk-btn--primary {
  background: var(--bgk-primary); color: #fff;
  box-shadow: 0 4px 12px rgba(0,165,224,0.25);
}
.bgk-btn--primary:hover { background: var(--bgk-primary-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,165,224,0.35); }
.bgk-btn--outline {
  background: var(--bgk-white); color: var(--bgk-text-light); border: 2px solid var(--bgk-border);
}
.bgk-btn--outline:hover { border-color: var(--bgk-primary); color: var(--bgk-primary); }
.bgk-btn--submit {
  background: var(--bgk-secondary); color: #fff;
  box-shadow: 0 4px 12px rgba(64,186,123,0.25);
  padding: 14px 30px; font-size: 15px;
}
.bgk-btn--submit:hover { background: #36a56c; transform: translateY(-1px); }

/* Success */
.bgk-success { text-align: center; padding: 48px 32px; }
.bgk-success-icon {
  width: 72px; height: 72px; background: var(--bgk-secondary-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
  color: var(--bgk-secondary); animation: bgkScaleIn 0.5s ease-out;
}
@keyframes bgkScaleIn { from { opacity:0; transform:scale(0.5); } to { opacity:1; transform:scale(1); } }
.bgk-success h3 { font-size: 22px; color: var(--bgk-dark); margin: 0 0 10px; font-weight: 700; }
.bgk-success p { color: var(--bgk-text-light); font-size: 14px; margin: 0 0 28px; line-height: 1.7; max-width: 480px; margin-left: auto; margin-right: auto; }

/* Loading */
.bgk-loading {
  position: absolute; inset: 0; background: rgba(255,255,255,0.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 50; border-radius: var(--bgk-radius);
}
.bgk-spinner {
  width: 36px; height: 36px; border: 3px solid var(--bgk-border);
  border-top-color: var(--bgk-primary); border-radius: 50%;
  animation: bgkSpin 0.7s linear infinite; margin-bottom: 12px;
}
@keyframes bgkSpin { to { transform: rotate(360deg); } }
.bgk-loading p { font-size: 14px; color: var(--bgk-text-light); margin: 0; }

/* Responsive */
@media (max-width: 640px) {
  .bgk-hero { padding: 32px 20px; }
  .bgk-step-container { padding: 24px 18px 20px; }
  .bgk-progress-wrapper { padding: 18px 14px 12px; }
  .bgk-nav { padding: 16px 18px; }
  .bgk-opt { min-width: 90px; padding: 10px 12px; font-size: 13px; }
  .bgk-input-group { flex-direction: column; }
  .bgk-slider { flex-wrap: wrap; }
  .bgk-progress-step { font-size: 9px; }
  .bgk-btn { padding: 10px 18px; font-size: 13px; }
}
