.pv-rechner-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  background-color: #f0f2f5;
  margin: 0;
  padding: 15px;
  box-sizing: border-box;
}
.pv-rechner-wrapper {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.pv-rechner-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}
.pv-rechner-panel {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex: 1;
  min-width: 320px;
  max-width: 48%;
}
.pv-rechner-results-panel {
  background: linear-gradient(to bottom right, #FAB214, #e5980a);
  color: white;
}
.pv-rechner-h2 {
  margin-top: 0;
  font-size: 1.5em;
  color: #333;
}
.pv-rechner-results-panel .pv-rechner-h2 { color: white; }
.pv-rechner-results-panel .pv-rechner-label { color: white; }
.pv-rechner-input-group { margin-bottom: 20px; }
.pv-rechner-label {
  display: block;
  margin-bottom: 8px;
  font-weight: normal;
  color: #555;
}
.pv-rechner-input, .pv-rechner-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 1em;
}
.pv-rechner-range { width: 100%; }
.pv-rechner-input-row { display: flex; gap: 15px; }
.pv-rechner-input-row > div { flex: 1; }
.pv-rechner-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pv-rechner-result-item {
  background-color: rgba(255,255,255,0.15);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}
.pv-rechner-result-item .pv-rechner-label { font-size: 0.9em; margin-bottom: 5px; }
.pv-rechner-result-item .pv-rechner-value { font-size: 1.4em; font-weight: bold; }
.pv-rechner-main-result { grid-column: 1 / -1; padding: 20px; }
.pv-rechner-main-result .pv-rechner-value { font-size: 1.8em; }
.pv-rechner-main-result .pv-rechner-value.pv-rechner-blurred { filter: blur(5px); transition: filter 0.3s ease; }
.pv-rechner-toggle-switch { display: flex; align-items: center; }
.pv-rechner-toggle-switch .pv-rechner-label { margin: 0 10px 0 0; }
.pv-rechner-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}
.pv-rechner-switch input { opacity: 0; width: 0; height: 0; }
.pv-rechner-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}
.pv-rechner-slider:before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 4px; bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .pv-rechner-slider { background-color: #4CAF50; }
input:checked + .pv-rechner-slider:before { transform: translateX(22px); }
.pv-rechner-error {
  color: #d32f2f;
  font-size: 0.9em;
  margin-top: 5px;
  display: none;
}
.pv-rechner-consultation-button {
  display: block;
  margin: 20px auto 20px;
  padding: 12px 24px;
  background-color: #f98e2b;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.pv-rechner-consultation-button:hover {
  background-color: #e07b24;
}
.pv-rechner-chart-panel {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 1200px;
}
@media (max-width: 768px) {
  .pv-rechner-panel {
    max-width: 100%;
  }
  .pv-rechner-chart-panel canvas {
    height: 300px !important;
  }
}

/* Modal Styles */
.pv-rechner-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}
.pv-rechner-modal-content {
  background-color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 10px;
}
.pv-rechner-close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
.pv-rechner-close:hover {
  color: black;
}
#pv-rechner-consultation-form {
  display: flex;
  flex-direction: column;
}
#pv-rechner-consultation-form .pv-rechner-label {
  margin-top: 10px;
}
#pv-rechner-consultation-form .pv-rechner-input, #pv-rechner-consultation-form textarea {
  padding: 8px;
  margin-top: 5px;
}
#pv-rechner-consultation-form button {
  margin-top: 20px;
  padding: 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  position: relative;
}
#pv-rechner-consultation-form button.pv-rechner-success {
  background-color: #28a745;
}
.pv-rechner-button-loading {
  color: transparent;
}
.pv-rechner-button-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: pv-rechner-button-loading-spinner 1s ease infinite;
}
@keyframes pv-rechner-button-loading-spinner {
  from { transform: rotate(0turn); }
  to { transform: rotate(1turn); }
}

/* Success Modal */
.success-message {
  text-align: center;
  padding: 20px;
}
.checkmark {
  font-size: 4em;
  color: #4CAF50;
  margin-bottom: 20px;
}
.success-message h2 {
  color: #333;
  margin-bottom: 10px;
}
.success-message p {
  color: #666;
}

/* Confetti Animation */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 1001;
  animation: confetti-fall 4s ease-out forwards;
}

@keyframes confetti-fall {
  0% {
    top: -10px;
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    top: 100vh;
    opacity: 0;
  }
}