/** solarrechner.css  *****
 ** Version: 1.0.8    *****
 */

.solar-title {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #007cba;
  font-weight: bold;
}

.language-switcher {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-bottom: 1em;
}

.language-switcher img {
  width: 36px;
  height: auto;
  cursor: pointer;
  *transition: transform 0.4s ease;
}

.language-switcher img:hover {
  transform: scale(1.3);
}

.solarrechner-wrapper body { margin: 0; padding: 0; }
.solarrechner-wrapper .solar-form-container { max-width: 800px; margin: auto; padding: 20px; }
.solarrechner-wrapper table.solar-input-table { width: 100%; border-collapse: separate; border-spacing: 20px 10px; }
.solarrechner-wrapper td { vertical-align: top; padding-right: 20px; }
.solarrechner-wrapper td:last-child { padding-right: 0; }
.solarrechner-wrapper label { display: block; font-weight: bold; position: relative; margin-bottom: 5px; }
.solarrechner-wrapper input,
.solarrechner-wrapper select {
  width: 100%;
  padding: 5px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px; 
}
.solarrechner-wrapper .btn-solar {
  margin-top: 20px;
  background-color: #007cba;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.solarrechner-wrapper .btn-solar:hover { background-color: #005a8d; }
.solarrechner-wrapper #error-message { color: red; margin-top: 10px; }

/* ******************* Ausgabe der Ergebnis Tabelle ********************** */

.table-wrapper {
  width: 100%;
  max-width: 500px;
  padding: 8px;
  padding-top: 0; /* Falls vorhanden */
  margin-top: 0; /* Setze das explizit */
  border: 2px solid #ddd;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 2rem; /* Abstand zum Donut */  
}

.responsive-table {
  width: 100%;
  padding-top: 0; /* Falls vorhanden */
  margin-top: 0; /* Setze das explizit */
  max-width: 100%;
  min-width: 300px; 
  overflow-x: auto;  
}

.responsive-table td {
  padding: 5px 8px; /* Hier steuern wir den Abstand in der Zelle */
  line-height: 1.0; /* Mehr Luft innerhalb der Zeile             */
}

.responsive-table tr:nth-child(even) td {
  background-color: #f5f5f5;          /* Wechselnde Hintergrundfarbe (schöner Look) */
}

.responsive-table tr:nth-child(13) td { /* hinterlegt die 12. Zeile Rendite in Blau  */
  background-color: #007cba;
  color: white;
}

.responsive-table tr:nth-child(14) td { /* hinterlegt die 13. Zeile in Blau */
  background-color: #4caf50;
  color: white;
}

.responsive-table tr:nth-child(15) td { /* hinterlegt die 14. Zeile in Gelb */
  background-color: yellow;
  color: black;
}

.responsive-table tr td:nth-child(1){   /* die Schrift in der ersten Spalte/Column Fett */
  font-weight: 600;
}

.responsive-table tr td:nth-child(2) {  /* die Zahlen in der zweiten Spalte/Column werden rechtsbündig ausgegeben */
  text-align: right;
}

.responsive-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.responsive-column {
  box-sizing: border-box;
  padding: 10px;
  flex: 1 1 100%;  
}

.chart-wrapper {  /* das ist der Rahmen um den Donut, wenn man das will */
  width: 100%;
  max-width: 600px;
  margin: 0;
  padding: 0px;
  /*
  border: 2px solid #ddd;
  border-radius: 10px;
  background: #fff;
  */
}

.backend-werte {
  background: #eef7ff;
  padding: 15px;
  margin-top: 20px;
  border-left: 5px solid #0073aa;
}
.backend-werte h3 {
  margin-top: 0;
}

#pvChart { /* Größe des Donuts im Desktop */
  max-width: 100%;
  width: 100%;
  height: auto;
  min-height: 165px;
  max-height: 330px;
  aspect-ratio: 1 / 1;
}


.full-width-canvas {
  margin-top: 10px;
  margin-bottom: 40px;    /* Abstand NACH unten für Folgechart */
  text-align: center;
  width: 100%;
  padding: 10px 0;
}

.full-width-canvas canvas {
  margin-top: 10px;       /* größerer Abstand nach oben */
  min-height: 400px;
  max-width: 100%;
  height: auto;
  display: block;
}

#vergleichLineChart {
  margin-top: 10px;
}

.vergleichstabelle {
  margin-top: 20px;       /* größerer Abstand nach oben */
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.vergleichstabelle th,
.vergleichstabelle td {
  border: 1px solid #ccc;  
  padding: 8px;
  text-align: right;
}

.vergleichstabelle td:first-child,
.vergleichstabelle th:first-child {
  text-align: left;
  font-weight: bold;
}

.vergleichstabelle td:last-child {
  padding-right: 8px; /* Oder dein gewünschter Wert */
}

.zeile-3 { background-color: #007cba; color: white; }  /* Rendite */
.zeile-4 { background-color: #4caf50; color: white; }  /* Gewinn */
.zeile-5 { background-color: yellow; color: black; }   /* Amortisation */

.solar-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.solar-toolbar select,
.solar-toolbar button {
  margin: 0;
}

.solar-version {
  font-size: 0.9em;
  color: #666;
}

.waehrung-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.waehrung-select {
  /*background: transparent; */
  max-width: 50%;
  border: none;
  font: inherit;
  padding: 2px 5px;
  cursor: pointer;
}


@media (min-width: 768px) {
  .responsive-column {
    flex: 1 1 48%;
    max-width: 48;
  }
}
