/* Styles for the savings calculator */
.calculator-section {
  padding: 3rem 0;
}

.calculator-wrapper {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  box-sizing: border-box;
}


/* Hero style for the calculator heading */
.calculator-hero {
  background: linear-gradient(135deg, rgba(var(--primary-color-rgb),0.07), rgba(var(--secondary-color-rgb),0.07));
  padding: 4rem 0;
  margin: 0 auto 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  width: min(90%, 1200px);
}

.calculator-hero .container {
  width: 100%;
}

.calculator-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--primary-color);
}

.title-text {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.calculator-title .akis-logo {
  height: 48px;
  display: inline-block;
  margin: 0;
  vertical-align: middle;
}

.calculator-title .separator {
  margin: 0 0.25rem;
  font-size: inherit;
  font-weight: 700;
  color: var(--primary-color);
}

.calculator-subtitle {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  color: var(--text-color);
  text-align: center;
}

.form-step {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}

.form-step .form-label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.form-step input,
.form-step textarea,
.form-step select {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: var(--background-color);
  color: var(--text-color);
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.form-step textarea {
  resize: vertical;
}

.form-step .w-button,
.form-step button {
  margin-top: 0.5rem;
}

.license-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem; /* mehr Abstand zur naechsten Ueberschrift */
}

/* Ueberschriften innerhalb des Rechners */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem; /* Abstand nach oben */
  margin-bottom: 0.75rem;
}

.license-card {
  flex: 1 1 220px;
  max-width: 300px;
  background: var(--card-bg);
  border-top: 4px solid var(--primary-color);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

  .license-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb),0.15), transparent);
    pointer-events: none;
  }

  .license-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

  .license-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 8px 28px rgba(0,102,255,0.3);
  }

.license-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.license-heading {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.license-price {
  font-weight: 700;
  color: var(--primary-color);
}

.table-container {
  overflow-x: auto;
}

.table-common {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.table-common tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.03);
}

.table-common th,
.table-common td {
  padding: 0.5rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.table-common th {
  background: var(--primary-color);
  color: #fff;
}

.table-common td:last-child,
.table-common th:last-child {
  text-align: right;
}

.cost-summary-container {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

.summary-container {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  margin-top: 1rem;
}

.summary-table td {
  padding: 0.5rem 0.25rem;
}

.summary-table .amount-column {
  font-weight: 700;
  color: var(--primary-color);
  text-align: right;
}

.summary-table tbody tr:last-child td {
  border-bottom: none;
}

.button-container {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

body.dark-theme .cost-summary-container {
  background: #1e1e1e;
}

body.dark-theme .summary-container {
  background: #1e1e1e;
}

/* Info icon tooltip styles */
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3A8DFF, #60C3FF);
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateX(5px);
  transition: transform 0.3s ease;
}

.info-icon:hover {
  transform: scale(1.1) translateX(5px);
}

.info-symbol {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

.tooltip-text,
.tooltip-table {
  display: none;
  position: absolute;
  bottom: 130%;
  background-color: #f9f9f9;
  color: #333;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  z-index: 100;
  width: 400px;
  max-width: 500px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.5;
  text-align: left;
}

.info-icon:hover .tooltip-text,
.info-icon:hover .tooltip-table {
  display: block;
}

/* Error message styling */
.error-message {
  color: #d9534f;
  font-size: 0.9rem;
  margin-top: -10px;
  margin-bottom: 10px;
  display: none;
}

.error-message.active {
  display: block;
}

/* Aktionsbuttons in der Prozessliste */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.action-buttons i {
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.action-buttons .edit-icon {
  color: #007bff;
}

.action-buttons .delete-icon {
  color: #dc3545;
}

.action-buttons .edit-icon:hover {
  color: #0056b3;
  transform: scale(1.2);
}

.action-buttons .delete-icon:hover {
  color: #a30000;
  transform: scale(1.2);
}
