/* 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;
  }
  
  .tiles-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-top: 16px;
    margin-left: 16px;
    margin-right: 16px;
  }
  
  .input-tile {    
    height: auto;
    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);
  }
  
  .info-box {
    margin-left: 14px;
    z-index: 10000;
    background-color: #C31320;
    color: white;

   /*  background-color:white ;
    color: #C31320 ;
    border-color: #C31320;
    border-width:2px; */

    position: fixed;
    bottom: -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;
  }
  
  .info-box {
    display: flex;
    align-items: center;
    padding: 0px;
  }
  
  .info-sign {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 24px;
    margin-right: 12px;
    flex-shrink: 0;
  }
  
  .info-sign img {
    width: 55px;
    height: auto;
    display: block;
    margin-right: 8px;
    order: -1;
  }
  
  .info-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex-grow: 1;
    padding-right: 55px;
  }
  
  .info-arrow {
    display: inline-block;
    font-size: 18px;
    transition: transform 0.3s ease-in-out;
    margin-left: auto;
    margin-right: 24px;
    transform: rotate(180deg);
  }
  
  .info-box.expanded .info-arrow {
    transform: rotate(180deg);
  }
  
  .info-box-handle {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    background-color: #C31320;
    height: 65px;
    width: 490px;
    position: absolute;
    top: -60px;
    left: 0%;
    transform: translateX(0);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    cursor: pointer;
  }
  
  .info-box-handle p {
    text-align: left;
    font-weight: bold;
    margin-left: 24px;
    margin-top: 24px;
  }
  
  .planing-input {
    background-color: white;
    width: 100%;
    height: auto;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .planing-header {
    width: 100%;
    margin-bottom: 16px;
  }
  
  .planing-header h3 {
    color: #C2071A;
    font-weight: normal;
    font-size: 20px;
    margin: 0;
  }
  
  .planing-images {
    display: flex;
        justify-content: flex-start;
        flex-wrap: nowrap;
        width: 100%;
        /* max-width: 784px; */
        column-gap: 20px;
        flex-direction: row;


  }
  
  .planing-image-container {
    flex: 1 1 calc(50% - 8px);
    /* max-width: 168px;
    min-width: 168px; 


    height: 118px;*/

    width:100%;
    height:auto;
    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);
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
    pointer-events: none;
  }   
                                                                                                                                                                              
   .planing-image-container.clicked::after {
    opacity: 0;
  }
  
  .planing-image-container.clicked {
    transform: scale(0.95);
    box-shadow: none;
  }
  
  .planing-image-text-container{
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 16px;
    text-align: left;
    width: 100%;
    margin-top: 8px
  }


  .planing-image-text {
    flex: 1 1 calc(50% - 8px);
    margin-top: 8px;
    font-size: 16px;
    color: #2E3B4E;
  }
  
  .planing-image-container img {
    filter: grayscale(100%);
    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%);
  }
  
  .info-button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: normal;
    color: #C31320;
    cursor: pointer;
    user-select: none;
    z-index: 10;
  }
  
  .info-button:active {
    color: white;
    background-color: #C2071A;
  }
  
  .device-input {
    width: 100%;
    height: 240px;
    background-color: #F3F5FA;
  }
  
  .device-input {
    background-color: #F3F5FA;
    width: 100%;
    height: auto;
    padding: 24px;
  }
  
  .device-header {
    width: 100%;
    margin-bottom: 16px;
  }
  
  .device-header h3 {
    color: #1D1D1B;
    font-weight: bold;
    font-size: 20px;
    margin: 0;
  }
  
  .device-images {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: nowrap;
    width: 100%;
    /* max-width: 784px; */
  }
  
  .device-image-container {
    flex: 1 1 calc(33.333% - 10px);
    /* max-width: 134px;
    min-width: 134px; */
    width:100%;
    height: auto;
    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;
    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);
    transition: opacity 0.1s ease-in-out;
    opacity: 1;
  }
  
  .device-image-container.active img {
    filter: grayscale(0%);
  }
  
  .device-image-container.active .overlay {
    opacity: 0;
  }
  
  .device-image-container.active {
    transform: scale(0.95);
    box-shadow: none;
  }
  
  .device-text-container {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    text-align: left;
    width: 100%;
    margin-top: 8px;
    /* max-width: 714px; */
    flex-wrap:nowrap;
    flex-direction: nowrap;;
  }
  
  .device-text {
    flex: 1 1 calc(50% - 8px);
    margin-top: 8px;
    font-size: 16px;
    color: #2E3B4E;
    /* max-width: 134px;
    min-width: 134px; */
    width:100%;
  }
  
  .cost-input {
    padding: 24px;
  }
  
  .cost-input h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #1D1D1B;
  }
  
  .cost-fields {
    display: flex;
    gap: 16px;
    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;
    flex: 1;
  }
  
  .cost-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: calc(50% - 8px);
    gap: 8px;
    justify-content: flex-end;
  }
  
  .currency-label {
    position: absolute;
    right: 50px;
    font-size: 16px;
    color: #555;
  }
  
  .cost-input-field::-webkit-outer-spin-button,
  .cost-input-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  
  .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-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    row-gap: 30px;
    width: 100%;
    max-width: 360px;
  }
  
  .output-tile-content {
    width: 100%;
  }
  
  .output-section {
    width: 100%;
    border-radius: 16px;
    padding: 32px 40px;
  }
  
  .output-top {
    height: 380px;
    background-color: #243453;
    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);
    padding: 16px;
  }
  
  .output-field {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 16px;
  }
  
  .output-label {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .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;
    width: calc(100% - 28px);
  }
  
  .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;
    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;
    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;
  }
  
  .output-bottom .info-button2 {
    position: absolute;
    top: 8px;
    right: 8px;
    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;
  }
  
  .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;
    color: white;
  }
  
  .info-button-angaben {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: normal;
    color: #C31320;
    cursor: pointer;
    user-select: none;
    z-index: 10;
  }
  
  .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;
    pointer-events: auto;
  }
  
  .device-image-container img {
    -webkit-user-drag: none;
    user-drag: none;
  }
  
  .device-image-container {
    touch-action: none;
    pointer-events: auto;
  }
  
  img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
  }