:root {
  --main-green: #4f9287da;
  --main-green-solid: #4f9287;
  --main-green-light: #eaf4f2;
  --main-green-lighter: #f6fbfa;
  --main-green-dark: #397066;
  --main-green-border: #b6d3cc;
  --main-green-header: #3d6e65;

  --main-bg-color: #edf2f8;

  /* Progress stepper color variables */
  --stepper-bg: transparent;
  --stepper-label: #888;
  --stepper-label-active: var(--main-green-solid);
  --stepper-label-completed: var(--main-green-header);
  --stepper-icon-bg: var(--main-green-light);
  --stepper-icon-border: var(--main-green-solid);
  --stepper-icon-color: var(--main-green-solid);
  --stepper-icon-bg-completed: var(--main-green-solid);
  --stepper-icon-color-completed: #fff;
  --stepper-line: var(--main-green-border);
  --stepper-line-completed: var(--main-green-solid);
  --stepper-circle-bg: var(--main-green-light);
  --stepper-circle-border: var(--main-green-solid);
  --stepper-circle-border-upcoming: var(--main-green-border);
}

body {
  background-color: var(--main-bg-color);
}

#explainText {
  transform: translateX(-50%); /* actually centers pic */
  background-color: transparent;
  padding: 0px 5px;
  border-radius: 0px;
  z-index: 10; /* stacks above elements with lower z-index */
}

.background-image-wrapper {
  position: fixed;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
  background-image: url("image_about.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
}

.outer {
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  padding: 0;
}

.leaflet-popup-content {
  width: 500px !important;
}

#control {
  /* Appearance */
  background-color: white;
  padding: 0 20px 20px 20px;
}

#control1 {
  /* Appearance */
  background-color: white;
  padding: 0 20px 20px 20px;
  cursor: move;
  text-align: justify;

  /* Ensure clean text appearance */
  opacity: 1;
  zoom: 1;
  transition: none;
}

#control2 {
  /* Appearance */
  background-color: white;
  padding: 10px 10px 10px 10px;
  cursor: move;
  text-align: justify;
  /* Fade out while not hovering */
  opacity: 0.65;
  zoom: 0.9;
  transition: opacity 250ms 500ms;
}

#control2:hover {
  /* Fade in while hovering */
  opacity: 0.95;
  transition-delay: 0;
  text-align: justify;
}

.navbar-default {
  background-color: var(--main-green);
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: #fff;
  background-color: var(--main-green);
}

.results-main-stats-table {
  border-collapse: separate;
  border-spacing: 0;
  width: auto;
  margin-bottom: 24px;
  font-size: 1.08em;
  background: var(--main-green-lighter);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(79, 146, 135, 0.07);
}

.results-main-stats-table th {
  background: var(--main-green);
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 10px 18px;
  text-align: left;
  font-size: 1.08em;
}

.results-main-stats-table-label {
  color: var(--main-green-header);
  border-left: 4px solid var(--main-green);
  font-weight: 500;
}

.results-main-stats-table-value {
  color: var(--main-green-dark);
  text-align: right;
  font-family: "Fira Mono", "Menlo", "Monaco", "Consolas", monospace;
  font-weight: 600;
}

.results-main-stats-table th:first-child {
  background: transparent;
  color: transparent;
  border: none;
  width: 1px;
  padding: 0;
}

.results-main-stats-table td {
  border: none;
  padding: 10px 18px;
  font-size: 1.08em;
  vertical-align: middle;
}

.results-main-stats-table tbody tr:nth-child(even) td {
  background: var(--main-green-light);
}

.results-main-stats-table tbody tr:nth-child(odd) td {
  background: #fff;
}

.results-main-stats-table td:first-child {
  color: var(--main-green-header);
  border-left: 4px solid var(--main-green);
}

.results-main-stats-table td:last-child {
  color: var(--main-green-dark);
  text-align: right;
  font-family: "Fira Mono", "Menlo", "Monaco", "Consolas", monospace;
  font-weight: 600;
}

.results-main-stats-table tr:last-child td {
  border-bottom: none;
}

/* Scenario builder styling */
.scenario-section {
  border-bottom: 1px solid var(--main-green-border);
  margin-bottom: 2.2em;
  padding-bottom: 1.2em;
}

.scenario-checkbox-group {
  margin-bottom: 1.2em;
}

.scenario-checkbox-label {
  color: var(--main-green-dark);
  font-weight: 600;
  margin-bottom: 0.1em;
  display: block;
}

.scenario-checkbox-expl {
  color: #3d6e65;
  background: var(--main-green-light);
  border-left: 3px solid var(--main-green);
  margin-top: 0.1em;
  margin-bottom: 0.2em;
  margin-left: 2.2em;
  font-size: 0.8em;
  padding: 0.3em 0.8em 0.3em 0.8em;
  border-radius: 0 6px 6px 0;
  display: block;
}

/* Generic explanation text below form fields */
.form-field-expl {
  color: #3d6e65;
  background: var(--main-green-light);
  border-left: 3px solid var(--main-green);
  margin-top: 0.1em;
  margin-bottom: 1em;
  margin-left: 0;
  font-size: 0.8em;
  padding: 0.35em 0.9em 0.35em 0.9em;
  border-radius: 0 6px 6px 0;
}

.scenario-section-title {
  color: var(--main-green);
  font-size: 1.13em;
  font-weight: 700;
  margin-bottom: 0.5em;
  margin-top: 1.2em;
  letter-spacing: 0.01em;
}

.scenario-divider {
  border-top: 2px solid var(--main-green-border);
  margin: 1.5em 0 1.2em 0;
}

.scenario-action-row {
  margin-top: 1.5em;
}

.scenario-action-row .btn-primary {
  background: var(--main-green);
  border: none;
  font-weight: 600;
}

.scenario-action-row .btn-primary:disabled {
  background: var(--main-green-border);
  color: #fff;
}

.global-header {
  margin-bottom: 18px;
  margin-top: 18px;
  text-align: center;
}

.global-header h1 {
  color: var(--main-green-header);
  font-weight: 700;
  font-size: 2.2em;
  margin-bottom: 0.2em;
}

.global-caption {
  font-size: 1.13em;
  color: #6a7b7a;
  margin-bottom: 0.5em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.results-main-block {
  background: #fff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
}

.results-scenario-block {
  background: #fff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
}

.results-block-bg {
  background: #fff !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(79, 146, 135, 0.07);
  padding: 32px 32px 24px 32px !important;
  margin-bottom: 24px;
  /* Ensure content inside has padding as well */
  box-sizing: border-box;
}

.results-main-block > *:not(.results-header-flex),
.results-scenario-block > * {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.results-main-block.results-block-bg,
.results-scenario-block.results-block-bg {
  padding: 32px 32px 24px 32px !important;
}

/* If you want to ensure all direct children have spacing, you can add: */
.results-main-block.results-block-bg > *,
.results-scenario-block.results-block-bg > * {
  margin-bottom: 18px;
}

.results-header-flex {
  margin-bottom: 24px;
}

.results-header-block-item {
  font-weight: bold;
  font-size: 1.1em;
}

/* Progress Stepper Styles */
.progress-stepper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--stepper-bg);
  border-radius: 0;
  padding: 38px 0 8px 0;
  margin-bottom: 18px;
  gap: 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.progress-stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  position: relative;
  min-width: 0;
  width: 100%;
}

.progress-stepper-label {
  margin-top: 4px;
  font-size: 1.09em;
  color: var(--stepper-label);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
}

.progress-stepper-completed .progress-stepper-label {
  color: var(--stepper-label-completed);
}

.progress-stepper-current .progress-stepper-label {
  color: var(--stepper-label-active);
}

.progress-stepper-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--stepper-icon-bg);
  border-radius: 50%;
  border: 2px solid var(--stepper-icon-border);
  font-size: 1.1em;
  color: var(--stepper-icon-color);
  z-index: 2;
}

.progress-stepper-completed .progress-stepper-icon {
  background: var(--stepper-icon-bg-completed);
  color: var(--stepper-icon-color-completed);
  border-color: var(--stepper-icon-bg-completed);
}

.progress-stepper-current .progress-stepper-icon {
  background: #fff;
  color: var(--stepper-icon-border);
  border-color: var(--stepper-icon-border);
}

.progress-stepper-upcoming .progress-stepper-icon {
  background: var(--stepper-icon-bg);
  color: var(--main-green-border);
  border-color: var(--main-green-border);
}

.progress-stepper-line {
  position: absolute;
  top: 13px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--stepper-line);
  z-index: 1;
  margin-left: 0;
  margin-right: 0;
}

.progress-stepper-line-completed {
  background: var(--stepper-line-completed) !important;
}

.progress-stepper-line-upcoming {
  background: var(--stepper-line);
}

.progress-stepper-item:not(:last-child) .progress-stepper-line {
  left: calc(50% + 13px);
  width: calc(100% - 26px);
}

.progress-stepper-circle {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--stepper-circle-bg);
  border: 2px solid var(--stepper-circle-border);
}

.progress-stepper-upcoming .progress-stepper-circle {
  border: 2px solid var(--stepper-circle-border-upcoming);
}

/* Clickable stepper items */
.progress-stepper-link {
  cursor: pointer;
  text-decoration: none;
  flex: 1 1 0;
  display: flex;
  justify-content: center;
}

/* Change text color on hover instead of underline */
.progress-stepper-link:hover .progress-stepper-label {
  color: var(--stepper-label-active);
  text-decoration: none !important;
}

/* Festival input form container */
.form-main-block.form-block-bg {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(79, 146, 135, 0.07);
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  margin-bottom: 2rem;
  box-sizing: border-box;
  width: 100%;
  display: block;
}

/* Gradient buttons for about page */
.gradient-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
  color: white !important;
  padding: 15px 40px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
}

.gradient-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6) !important;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
  color: white !important;
}

.gradient-btn:active {
  transform: translateY(0) !important;
}

.gradient-btn:focus {
  outline: none !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4), 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
}

/* Checkbox distinction for initial vs newly selected scenarios */
/* Initial checkboxes: same green as section titles "Energie & Infrastruktur" */

/* Style the form-group wrapper with subtle green background */
.form-group.scenario-checkbox-initial {
  background-color: var(--main-green-lighter) !important;
  border-left: 3px solid var(--main-green) !important;
  padding: 10px 12px !important;
  border-radius: 6px !important;
  margin-bottom: 12px !important;
  transition: background-color 0.2s ease;
}

/* Target the checkbox input itself for green color */
.form-group.scenario-checkbox-initial input[type="checkbox"] {
  accent-color: var(--main-green-solid) !important;
  width: 18px !important;
  height: 18px !important;
  cursor: pointer;
}

/* Add subtle label text after the checkbox */
.form-group.scenario-checkbox-initial .scenario-checkbox-label::after {
  font-size: 0.85em;
  color: var(--main-green);
  font-weight: 600;
  margin-left: 0.4em;
}

/* Newly selected checkboxes: Bootstrap primary blue */

/* Style the form-group wrapper with subtle blue background */
.form-group.scenario-checkbox-new {
  background-color: #e7f3ff !important;
  border-left: 3px solid #007bff !important;
  padding: 10px 12px !important;
  border-radius: 6px !important;
  margin-bottom: 12px !important;
  transition: background-color 0.2s ease;
}

/* Target the checkbox input itself for blue color */
.form-group.scenario-checkbox-new input[type="checkbox"] {
  accent-color: #007bff !important;
  width: 18px !important;
  height: 18px !important;
  cursor: pointer;
}

/* Add subtle label text after the checkbox */
.form-group.scenario-checkbox-new .scenario-checkbox-label::after {
  content: " (neu ausgewählt)";
  font-size: 0.85em;
  color: #0056b3;
  font-weight: 600;
  margin-left: 0.4em;
}
