/* Wärmepumpen-Konfigurator (leistungen/waermepumpe.html)
   Wird nach style.css geladen und überschreibt dort gleichnamige Regeln bewusst nur auf dieser Seite. */
/* Grund-Layout & Reset */
#wp-konfigurator-form { text-align: left; position: relative; font-family: Gudea-lokal, sans-serif; box-sizing: border-box; }
#wp-konfigurator-form * { box-sizing: border-box; }
.sq-step { display: none; animation: fadeIn 0.4s ease forwards; }
.sq-step.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Titel & Texte */
.step-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; color: #ffffff; }
.question-group { margin-bottom: 30px; }
.text-formular { margin-bottom: 5px; font-size: 16px; color: #d1d5db; font-weight: 400; line-height: 23px; font-family: Gudea-lokal, sans-serif; }
p.text-formular { margin-bottom: 12px; }
.label-conditional { display: block; margin-bottom: 8px; font-size: 16px; color: #d1d5db; }
/* Grid Layouts für Karten */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 15px; }
.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; }
/* --- DIE KARTEN --- */
.selection-card, .pill-card { 
  position: relative; 
  background-color: #1d1d1b; 
  border: 2px solid #333; 
  cursor: pointer; 
  transition: all 0.2s ease; 
  color: #fff;
  user-select: none; 
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 1; /* Basis-Z-Index */
}
/* WICHTIG: Die Karte, die gehovert wird, muss über allen anderen stehen */
.selection-card:hover {
  z-index: 100 !important;
}
.selection-card {
  border-radius: 16px; padding: 25px 20px; text-align: center; 
  display: flex; flex-direction: column; align-items: center; justify-content: center; 
  min-height: 150px;
}
.pill-card {
  border-radius: 200px; padding: 12px 28px; font-weight: 600; font-size: 16px; 
}
/* Hover & Selected States */
.selection-card:hover, .pill-card:hover { border-color: #c61f21; }
.selection-card:hover { background-color: rgba(198, 31, 33, 0.05); }
.selection-card.selected, .pill-card.selected { 
  border-color: #c61f21; background-color: rgba(198, 31, 33, 0.1); 
}
.selection-card.selected { box-shadow: 0 4px 15px rgba(198, 31, 33, 0.3); }
.pill-card.selected { background-color: #c61f21; }
/* SVGs in den großen Karten */
.card-icon { margin-bottom: 15px; display: flex; align-items: center; justify-content: center; color: #ffffff; }
.card-icon svg { width: 42px; height: 42px; stroke-width: 1.5px; transition: stroke 0.2s ease; }
.selection-card:hover .card-icon svg { stroke: #c61f21; }
.selection-card.selected .card-icon svg { stroke: #c61f21; }
.card-label { font-weight: 600; font-size: 16px; line-height: 1.3; }
/* Inputs absolut robust verstecken */
.selection-card input, .pill-card input { 
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
/* Aktions-Buttons */
.form-actions { display: flex; gap: 12px; margin-top: 30px; }
.btn-prev, .btn-next { 
  min-width: 110px; padding: 10px 24px; font-size: 14px; font-weight: 400;
  border-radius: 200px; cursor: pointer; text-align: center;
  /* Same hover as all buttons of the site (style.css): glow + one sheen sweep, no size change */
  background-image: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.24) 50%, transparent 60%);
  background-size: 200% 100%;
  background-position: 125% 0;
  background-repeat: no-repeat;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-position 0s;
}
.btn-prev { background-color: transparent; border: 2px solid #fff; color: #fff; background-image: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.14) 50%, transparent 60%); }
.btn-next { background-color: #c61f21; border: 2px solid #c61f21; color: #fff; }
.btn-prev:hover, .btn-next:hover, .btn-prev:focus-visible, .btn-next:focus-visible {
  background-position: -25% 0; outline: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-position 0.8s ease-in-out;
}
.btn-prev:hover, .btn-prev:focus-visible { background-color: rgba(255, 255, 255, 0.15); box-shadow: 0 0 15px rgba(255, 255, 255, 0.3); }
.btn-next:hover, .btn-next:focus-visible { background-color: #d52225; border-color: #d52225; box-shadow: 0 0 15px rgba(230, 35, 38, 0.6), 0 0 30px rgba(230, 35, 38, 0.3); }
.btn-next:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-prev:active { background-color: rgba(255, 255, 255, 0.05); box-shadow: none; }
.btn-next:active { background-color: #b51c1f; box-shadow: 0 0 8px rgba(230, 35, 38, 0.4); }
/* Kontaktformular & Textfelder */
.form-grid-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.text-form-platzhalter { 
  font-size: 16px; padding: 16px 24px; width: 100%; box-sizing: border-box; 
  font-family: Gudea-lokal, sans-serif; background-color: #232323; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 35px; 
  color: #fff;
  margin-bottom: 5px;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
textarea.text-form-platzhalter {
  min-height: 180px;
  resize: vertical;
  border-radius: 28px;
}
.text-form-platzhalter::placeholder {
  color: #7e7e7a;
}
.text-form-platzhalter:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background-color: #282828;
}
.text-form-platzhalter:focus { 
  background-color: #2a2a2a;
  border-color: #c61f21;
  box-shadow: 0 0 12px rgba(198, 31, 33, 0.25);
  outline: none;
}
@media (max-width: 767px) {
  .form-grid-custom { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column-reverse; }
  .btn-prev, .btn-next { width: 100%; }
}
/* Logik- & Status-Elemente */
.error-message { 
  color: #ff4d4d; 
  font-size: 14px; 
  margin-top: 15px; 
  padding: 10px 15px;
  border-left: 3px solid #ff4d4d;
  background-color: rgba(255, 77, 77, 0.05);
  border-radius: 4px;
  display: none; 
  border-top: none;
  border-right: none;
  border-bottom: none;
}
.conditional-content { 
  display: none; margin-top: 20px; padding: 20px; 
  background-color: rgba(255, 255, 255, 0.03); border-radius: 12px; border-left: 3px solid #c61f21; 
}
.conditional-content.active { display: block; animation: fadeIn 0.3s ease; }
/* Info-Icon Tooltip Fix */
.info-icon-wrapper {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.2);
  color: #fff; font-family: 'Georgia', serif; font-style: italic; font-weight: bold; font-size: 14px;
  margin-left: 8px; position: relative; cursor: help; pointer-events: auto !important;
  transition: background-color 0.2s, box-shadow 0.2s; vertical-align: middle; user-select: none;
}
.info-icon-wrapper:hover { background-color: #c61f21; box-shadow: 0 0 10px rgba(230, 35, 38, 0.6), 0 0 20px rgba(230, 35, 38, 0.3); }
/* Die Tooltips */
.info-icon-wrapper::after, .info-icon-wrapper::before {
  position: absolute; opacity: 0; visibility: hidden; transition: all 0.2s ease; 
  z-index: 10000; /* Extrem hoch innerhalb des gehovertes Elements */
  pointer-events: none;
}
.info-icon-wrapper::after {
  content: attr(data-tooltip); bottom: 140%; left: 50%; transform: translateX(-50%);
  background-color: #2b2b2b; color: #fff; padding: 10px 14px; border-radius: 8px; font-size: 13px;
  width: max-content; max-width: 220px; box-shadow: 0 4px 20px rgba(0,0,0,0.6); border: 1px solid #444;
  font-family: sans-serif; font-style: normal; font-weight: 400; line-height: 1.4; text-align: center;
}
.info-icon-wrapper::before {
  content: ''; bottom: 110%; left: 50%; transform: translateX(-50%);
  border-width: 8px; border-style: solid; border-color: #2b2b2b transparent transparent transparent;
}
.info-icon-wrapper:hover::after, .info-icon-wrapper:hover::before { opacity: 1; visibility: visible; }
/* Statusmeldungen beim Absenden */
.status-message { display: none; text-align: center; padding: 40px 20px; border-radius: 16px; animation: fadeIn 0.5s ease; }
.success-message { background-color: rgba(46, 204, 113, 0.1); border: 2px solid #2ecc71; }
.success-message h3 { color: #2ecc71; font-size: 28px; margin-bottom: 15px; }
.success-message p { color: #fff; font-size: 16px; margin: 0; }
.error-submit-message { background-color: rgba(255, 77, 77, 0.1); border: 2px solid #ff4d4d; margin-top: 20px; padding: 15px; border-radius: 8px; display: none; }
.error-submit-message p { color: #ff4d4d; margin: 0; font-size: 15px; }
