/* Standardmäßig startet nur main und footer mit 0% Sichtbarkeit */
main, footer {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
  }
  
  /* Sobald die Seite geladen wird, wird nur main und footer eingeblendet */
  .fade-in main, 
  .fade-in footer {
    opacity: 1;
  }
  .allstar-content {
    transform: scale(0.95);
    max-width:1200px;
    margin: 0 auto; /* Zentriert den Container auf der Seite */

  }
  .tiles-container {
    display: flex; /* Flexbox aktivieren */
    justify-content: space-between; /* Abstand zwischen den Boxen */
    align-items: flex-start; /* Falls sie in der Höhe unterschiedlich sind, werden sie oben ausgerichtet */
    gap: 16px; /* Abstand zwischen input-tile und output-tile */
    margin-top: 16px;
    margin-left: 16px;
    margin-right:16px;
  }


.input-tile {
  height: 656px;
  /* width:100% */
  width: 65%;
  background-color: #E1E6F2;
  border-radius: 16px;
  margin: 0; 
  overflow:hidden;
  box-shadow: 0px 24px 64px rgba(0, 0, 0, 0.5);
}

/*  
  .output-tile {
   height: 530px;
    width: 35%;
    background-color:beige;
    border-radius: 16px;
    margin: 0; 
  } */

.info-box {
  margin-left: 14px;
  z-index:10000;
  
  background-color: #C31320;
  color: white;
  
  
  position: fixed;
  bottom: -135PX; /* Statt -135px */
  left: 16px;
  width: 825px;
  height: 135px;
  
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(0);
  border-top-left-radius: 0px;
  border-top-right-radius: 16px;
  overflow: visible; /* WICHTIG: Damit der Handle über die Box hinausragt */
}

.info-box {
  display: flex; /* Aktiviert Flexbox */
  align-items: center; /* Zentriert Inhalte vertikal */
  padding: 0px; /* Etwas Abstand nach innen */
}

.info-sign {
  display: flex; /* Flexbox aktivieren */
  align-items: center; /* Vertikale Zentrierung */
  justify-content: flex-start; /* Elemente nach links ausrichten */
  margin-left: 24px; /* Abstand zur linken Seite der info-box */
  margin-right: 12px; /* Abstand zwischen Icon und Text */
  flex-shrink: 0; /* Verhindert, dass das Icon skaliert wird */
}

.info-sign img {
  width: 55px; /* Größe des Icons anpassen */
  height: auto;
  display: block; /* Entfernt unerwünschte zusätzliche Abstände */
  margin-right: 8px; /* Abstand zwischen Bild und Text */
  order: -1; /* Stellt sicher, dass das Bild VOR dem Text steht */
}

.info-text {
  display: flex;
  flex-direction: column; /* Stapelt Inhalte vertikal */
  align-items: flex-start; /* Richtet den Text links aus */
  justify-content: flex-start; /* Richtet den Text oben aus */
  flex-grow: 1; /* Lässt den Text den restlichen Platz nutzen */
  padding-right: 55px;
}

.info-arrow {
    display: inline-block;
    font-size: 18px;
    transition: transform 0.3s ease-in-out;
    margin-left: auto; /* Pfeil rechtsbündig */
    margin-right: 24px;
    transform: rotate(180deg);
}

.info-box.expanded .info-arrow {
    transform: rotate(180deg); /* Dreht das "V" nach unten */
}
/* Der Handle sitzt mittig oben auf der info-box */
.info-box-handle {

    display:flex;
    align-items:baseline;
    justify-content: space-between;
    


  background-color:#C31320;
  height: 65px;
  width: 490px; /* Schmaler als die Info-Box */
  position: absolute;
  top: -60px; /* Hebt den Handle über die Box */
  left: 0%;
  transform: translateX(0);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  cursor: pointer;
}

/* Text im Handle */
.info-box-handle p {
  text-align: left;
  font-weight: bold;
  margin-left: 24px;
  margin-top:24px;
}




.planing-input {
  background-color:white;
  width:100%;
  height:240px;
  padding:24px;
  display: flex; /* Aktiviert Flexbox */
  justify-content: space-between; /* Sorgt für Abstand zwischen den Containern */
  align-items: center; /* Zentriert die Bilder vertikal */
  /*gap: 16px; /* Abstand zwischen den Bildern */
  flex-wrap: wrap; /* Falls der Platz nicht ausreicht, brechen sie um */
}


.planing-header {
  width: 100%;
  margin-bottom: 16px;
   /*margin-bottom: 16px; Abstand zur Bilderreihe */
}
.planing-header h3 {
  color: #C2071A;
  font-weight: normal;
  font-size: 20px;
  margin: 0; /* Vermeidet extra Abstände */
}

.planing-images {
  display: flex;
  justify-content: center; /* Sorgt für gleichmäßige Verteilung */
  /*gap: 16px; /* Abstand zwischen den Bildern */
  flex-wrap: wrap; /* Bricht um, wenn der Platz nicht ausreicht */
  width: 100%; /* Damit es sich anpasst */
  max-width: 784px; /* Begrenzt die Gesamtbreite */
   column-gap: 16px;
}

.planing-image-container {
  flex: 1 1 calc(50% - 8px); /* Zwei Elemente pro Reihe */
  max-width: 360px; /* Maximal 360px breit */
  min-width: 200px; /* Nicht kleiner als 200px */
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align:left;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}

.planing-image-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* 20% transparente schwarze Fläche */
  transition: opacity 0.3s ease-in-out;
  opacity: 1; /* Standardmäßig sichtbar */
  pointer-events: none; /* Verhindert, dass das Overlay Klicks blockiert */
}

.planing-image-container.clicked::after {
  opacity: 0; /* Bei Klick wird das Overlay unsichtbar */
}


.planing-image-container.clicked {
  transform: scale(0.95);
  box-shadow: none;
}


.planing-image-text {
  flex: 1 1 calc(50% - 8px);
  margin-top: 8px; /* Abstand zwischen Bild und Text */
  font-size: 16px; /* Größe des Textes */
  color: #2E3B4E; /* Farbe des Textes */
}

.planing-image-container img {
  filter: grayscale(100%); /* Standardmäßig ausgegraut */
  transition: filter 0.3s ease-in-out, transform 1.2s ease-in-out, box-shadow 0.2s ease-in-out;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
}

.planing-image-container.clicked img {
  filter: grayscale(0%); /* Farbe zurückbringen */
}




.info-button {
  position: absolute;
  top: 8px;  /* Abstand vom oberen Rand */
  right: 8px; /* Abstand vom rechten Rand */
  width: 34px;
  height: 34px;
  background-color: white; /* Weißer Hintergrund */
  border-radius: 50%; /* Kreisform */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  font-weight: normal;
  color: #C31320; /* Info-Symbol in Rot */
  cursor: pointer;
  user-select: none;
  z-index: 10; /* Stellt sicher, dass der Button über dem Bild liegt */
}

.info-button:active {
  color:white;
  background-color:#C2071A;
}

          
.device-input{
  width:100%;
  height:240px;
  background-color:#F3F5FA;
}

          



.device-1{
  max-width:237px;
  height:118px;
  background-color:white;
}

.device-2 {
  max-width:237px;
  height:118px;
  background-color:white;
}
.device-3 {
  max-width:237px;
  height:118px;
  background-color:white;
}

.device-input {
  background-color: #F3F5FA;
  width: 100%;
  height: auto;
  padding: 24px;
}

.device-header {
  width: 100%;
  margin-bottom: 16px; /* Abstand zur Bilderreihe */
}

.device-header h3 {
  color: #1D1D1B;
  font-weight: bold;
  font-size: 20px;
  margin: 0;
}

.device-images {
  display: flex;
  justify-content: center; /* Sorgt für gleichmäßige Verteilung */
  gap: 13px;
  flex-wrap: wrap; /* Falls Platz nicht reicht, brechen die Bilder um */
  width: 100%;
  max-width: 784px; /* Gesamtbreite begrenzen */
}

.device-image-container {
  flex: 1 1 calc(33.333% - 10px); /* Drei Elemente pro Reihe */
  max-width: 237px; /* Maximale Breite */
  min-width: 150px; /* Mindestbreite */
  height: 118px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: inline-block;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}

.device-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Bild füllt Container */
  border-radius: 16px;
  filter: grayscale(100%);
  transition: filter 0.1s ease-in-out;
}

.device-image-container .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* 50% schwarze Überlagerung */
  transition: opacity 0.1s ease-in-out;
  opacity: 1;
}

/* Wenn aktiv, dann Farbe zurückbringen */
.device-image-container.active img {
  filter: grayscale(0%);
}

/* Overlay ausblenden */
.device-image-container.active .overlay {
  opacity: 0;
}

/* Box Shadow entfernen */
.device-image-container.active {
  transform: scale(0.95);
  box-shadow: none;
}




.device-text-container {
  display: flex;
  justify-content: space-between; /* Hält die Texte nebeneinander */
  gap: 16px; /* Abstand zwischen den Texten */
  text-align: left;
  width: 100%; /* Gleiche Breite wie die Bilder */
  margin-top: 8px; /* Abstand zu den Bildern */
}

.device-text {
  flex: 1 1 calc(50% - 8px);
  margin-top: 8px; /* Abstand zwischen Bild und Text */
  font-size:  16px; /* Größe des Textes */
  color: #2E3B4E; /* Farbe des Textes */
  max-width: 237px; /* Breite an die Bilder anpassen */
  min-width: 200px;
}







/*Cost Input Felder*/


.cost-input {
  
  padding: 24px;
}

.cost-input h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #1D1D1B;
}

.cost-fields {
  display: flex;
  gap: 16px; /* Abstand zwischen den Eingabefeldern */
  justify-content: space-between;
}

.cost-input-field {
  width: 100%;
  padding: 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: right;
  padding-right: 50px; /* Platz für EUR */
  flex: 1;
}
.cost-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: calc(50% - 8px);
  gap: 8px; /* Abstand zwischen Info-Button und Input-Feld */
  justify-content: flex-end;

}

.currency-label {
  position: absolute;
  right: 50px;
  font-size: 16px;
  color: #555;
}


/* Entfernt die Pfeile bei number-Feldern für Chrome, Safari, Edge, Opera */
.cost-input-field::-webkit-outer-spin-button,
.cost-input-field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Entfernt die Pfeile bei number-Feldern für Firefox */
.cost-input-field {
  -moz-appearance: textfield;
}


.cost-fields input::after {
  content: " EUR";
  position: absolute;
  right: 8px;
  color: #555;
}

.cost-text-container {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 8px;
}

.cost-text {
  width: calc(50% - 8px);
  font-size: 16px;
  color: #555;
  text-align: left;
}

/*Output Fläche------------------*/

.output-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px; /* Abstand zwischen den beiden Divs */
  row-gap: 30px;
  width: 100%;
  max-width:360px;
}

.output-tile-content {
  width: 100%;

}

.output-section {
  width: 100%; /* Nimmt die volle Breite von output-tile ein */
  border-radius: 16px;
  padding: 32px 40px; /* Oben 32px, links/rechts 40px */
}

.output-top {
  height: 380px;
  background-color: #243453; /* Setze eine Hintergrundfarbe für Sichtbarkeit */
  margin-bottom:16px;
  box-shadow: 0px 24px 64px rgba(0, 0, 0, 0.5);

}



.output-bottom {
  height: 230px;
  box-shadow: 0px 24px 64px rgba(0, 0, 0, 0.5);
  background-color: #E1E6F2 ;

  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 Spalten */
  
  padding: 16px;
  box-shadow: 0px 24px 64px rgba(0, 0, 0, 0.5);
  background-color: #E1E6F2;
}


.output-field {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 16px;
}

.output-label {
  display: flex;
  align-items: center;
  gap: 8px; /* Abstand zwischen Info-Button und Text */
}

.output-text {
  font-size: 16px;
  color:white;
  font-weight:lighter;
}

.output-value {
  font-size: 18px;
  font-weight: bold;
  text-align: right;
  color:white;
}


#mehreinnahmen{
  color:greenyellow;
}
#rechnetsich {
  font-size:24px;
}
#mehr-line {
  
  height: 3px;
}


.output-line {
  height: 1px;
  background-color: #ccc;
  margin-top: 4px;
  margin-left: 28px; /* Sorgt dafür, dass die Linie erst nach dem Info-Button beginnt */
  width: calc(100% - 28px); /* Berechnet die Breite ab dem Info-Button bis zum Ende */
}


.output-bottom .output-line {

    height: 2px;
    background-color: #1D1D1B;
    margin-top: 5px;
    margin-left:0px;
    width:100%;

  
  
  
}



.output-bottom .output-field {
  
  display: flex;
  justify-content: space-between;
  position: relative; /* Referenz für absolute Positionierung des Info-Buttons */
  align-items: flex-start;
  padding: 8px 8px;
  font-size: 14px!important;
  color: #2E3B4E!important;
  
}

.output-bottom .output-value {
  font-size: 14px;
  font-weight: normal;
  text-align: left;
  color: #243453;
  margin-top: 5px;
}


.output-bottom .output-text {
  display: flex;
  justify-content: space-between; /* Platzierung: Label links, Info-Button rechts */
  align-items: center;
  font-size: 14px !important;
  font-weight: normal !important;
  margin-bottom: 4px;
  color:#1D1D1B!important;
}

.output-bottom .output-label {
  align-items: flex-start;
  color:#1D1D1B!important;
}

/* Info-Button rechts platzieren */
.output-bottom .info-button2 {
  position: absolute;
  top: 8px; /* Abstand vom oberen Rand */
  right: 8px; /* Abstand vom rechten Rand */
  width: 24px;
  height: 24px;


  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: #C31320;
  cursor: pointer;
  margin-left: 8px; /* Abstand zwischen Label und Button */
}

.output-bottom .info-button2:active {
  background-color: #C2071A;
  color: white;
}






.info-button2 {
  width: 24px;
  height: 24px;

  
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: white;
  cursor: pointer;
}

.info-button2:active {
  background-color:#C2071A;
  color:white;


}

.info-button2.active {
  background-color:#C2071A;
  color:white;
}

.info-button.active,
.info-button2.active,
.info-button-angaben.active {
  background-color:#C2071A; /* Hintergrundfarbe für aktiven Zustand */
  color:white;
    
}



.info-button-angaben {

  top: 8px;  /* Abstand vom oberen Rand */
  right: 8px; /* Abstand vom rechten Rand */
  width: 34px;
  height: 34px;
  background-color: white; /* Weißer Hintergrund */
  border-radius: 50%; /* Kreisform */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  font-weight: normal;
  color: #C31320; /* Info-Symbol in Rot */
  cursor: pointer;
  user-select: none;
  z-index: 10; /* Stellt sicher, dass der Button über dem Bild liegt */
}
.info-button-angaben:active {
  background-color:#C2071A;
  color:white;

}


.planing-image-container img {
  -webkit-user-drag: none;
  user-drag: none;
}
.planing-image-container {
  touch-action: none;
}
.planing-image-container {
  pointer-events: auto;
}

.device-image-container img {
  -webkit-user-drag: none; /* Safari & ältere iOS-Versionen */
  user-drag: none; /* Standard */
}

.device-image-container {
  touch-action: none; /* Deaktiviert Kontextmenü auf Touch-Geräten */
  pointer-events: auto;
}

img {
  -webkit-user-drag: none; /* Safari & ältere iOS-Versionen */
  user-drag: none; /* Standard */
  pointer-events: none; /* Blockiert alle Interaktionen */
}