*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body{
    background: #ffffff;
    color: #333;

}

.Elements{
    width: 350px;
    background: #c4c4c4;
    margin: 200px auto 0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    position: relative; bottom: 210px;
    z-index: 10px;
}

.suchen{
    width: 350px;
    background: #c4c4c4;
    margin: 130px auto 0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    z-index: 10px;
}

.suchen input{
    flex: 1;
    height: 50px;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 18px;
    color: #333;
}

.suchen button{
background: transparent;
border: 0;
outline: 0;
}

.suchen button .fa-solid{
    position: relative; left: 40px;
    width: 25px;
    color: #555;
    font-size: 22px;
    cursor: pointer;
}

::placeholder{
    color: #555;
}

.result-box ul{
border-top: 1px solid #999;
padding: 15px 10px;
z-index: 10px;
}

.result-box ul li{
    list-style: none;
    border-radius: 3px;
    padding: 15px 10px;
    cursor: pointer;
}

.result-box ul li:hover{
    background: #c4c4c4;
}

.food {
    color: black;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    padding-right: 40px;
    text-align: center;
    
}

.Apfel,
.Banane,
.Aprikose,
.Pasta,
.Brot,
.Milch,
.Reis,
.Kartoffeln,
.Trauben,
.Erdbeere, 
.Himbeere, 
.Heidelbeere,
.Honigmelone, 
.Wassermelone, 
.Haferflocken, 
.Pizza, 
.Lasagne, 
.Tortellini, 
.Pflaumen, 
.Birne, 
.Nutella,
.Pommesfrites, 
.Kaki, 
.Kirschen, 
.Orange, 
.Mandarine, 
.Käsekuchen, 
.Berliner, 
.Erdnüsse,
.Walnüsse, 
.Cashewkerne, 
.Kastanien, 
.Maronen, 
.Linsen,
.Erbsen,
.Kichererbsen, 
.Kidneybohnen, 
.Avocado, 
.Quinoa, 
.Granatapfel, 
.Grapefruit, 
.ChiaSamen, 
.Leinsamen, 
.Mango, 
.Ananas,
.Erdnussbutter,
.Vanillestange,
.Donut,
.Apfelkuchen {
  display: none;
}

hr{
    visibility: hidden;
}

.KH100 {
    width: 150px;
    height: 30px;
    position: relative; left: 120px; bottom: 120px;
    margin-top: 120px;
}

.KHClass {
    position: relative; right: 75px; top: 25px;
}

.Gramm {
    width: 150px;
    height: 30px;
    position: relative; left: 120px; bottom: 120px;
    margin-top: 75px;
}

.GrammClass {
    position: relative; right: 75px; bottom: 18px;
}

.Ges {
    width: 150px;
    height: 30px;
    position: relative; left: 120px; bottom: 120px;
    margin-top: 75px;
}

.GesClass {
    position: relative; right: 75px; bottom: 18px;
    
    
}

h3{
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    font-size: 2rem;
    text-align: center;
    padding: 15px 0px;
    z-index: 10px;
   
}


.back {
    position: fixed;
    bottom: 150px; /* etwas höher als .delete */
    left: 80px;    /* mittig verschoben, aber linksbündig */
    color: red;
    display: none;
    background-color: #f1f1f1;
    font-size: 1.9rem;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    z-index: 10;
}

.go {
    position: fixed;
    bottom: 150px; /* gleiche Höhe wie .back */
    right: 80px;   /* mittig verschoben, aber rechtsbündig */
    color: green;
    display: none;
    font-size: 1.9rem;
    width: 40px;
    height: 40px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 10px;
    z-index: 10;
}

.delete {
    position: fixed;
    bottom: 80px; /* etwas höher als ganz unten */
    left: 20px;   /* Abstand von der linken Seite */
    background: #a3a3a3bb;
    display: block;
    font-size: 2rem;
    width: 35px;
    height: 35px;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 10px;
    z-index: 10;
}

.Total {
    position: fixed;
    bottom: 80px; /* ebenfalls etwas höher */
    right: 20px;  /* Abstand von der rechten Seite */
    color: black;
    display: flex;
    font-size: 1.3rem;
    z-index: 10;
    font-weight: bold;
}


.delete:hover {
    background-color: #8e8f8f;
}


.list {
    position: fixed; /* bleibt immer sichtbar */
    bottom: 0;
    left: 50%; /* zentriert horizontal */
    transform: translateX(-50%); /* perfekter Mittelpunkt */
    font-size: 1.5rem;
    width: 360px;
    height: 45px;
    color: rgb(0, 0, 0);
    border: none;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-color: #919191; /* Optional für Sichtbarkeit */
    z-index: 10; /* falls über etwas drüber soll */
}


.listTitel {
    float: top;
    display: none;
    background-color: rgb(151, 151, 151);
    font-size: 1.9rem;
    width: 360px;
    height: 70px;
    color: rgb(0, 0, 0);
    border: none;
}

.fillList {
    position: absolute; bottom: 0px; right: 0px;
    display: none;
    background-color: rgb(151, 151, 151);
    width: 420px;
    height: 70px;
    border: none;
    z-index: 0;
}

.listBack {
    position:relative; bottom: 50px; left: 15px;
    float: top;
    background-color: rgba(255, 0, 0, 0.788);
    color: rgb(253, 253, 253);
    display: none;
    font-size: 1.6rem;
    width: 30px;
    height: 30px;
    border: none;
    z-index: 2;
}

.listHeader {
    display: flex;
    gap: 3px;
    margin-bottom: 3px;
    margin-top: -29px;
  }
  
  .name, .listKH {
    font-weight: bold;
    font-size: 1.2rem;
    height: 40px;
    line-height: 40px;
    background: #e7e7e7;
    border: 1px solid black;
    padding: 0 10px;
  }
  
  .name {
    width: 244px;
    display: none;
  }
  
  .listKH {
    width: 110px;
    display: none;
  }

#listContainer {
    display: flex;
    flex-direction: column;
    gap: 0px;
    width: fit-content;
    margin: 0px auto;
  }
  
  .listRow {
    display: flex;
    gap: 3px;
  }
  
  .essen,
  .kh {
    display: none;
    height: 40px;
    font-size: 1.2rem;
    padding: 5px 10px;
    border: 1px solid black;
  background: #e7e7e7;
  }
  
  .essen {
    width: 244px;
  }
  
  .kh {
    width: 110px;
  }

  .apple {
    font-size: 16rem;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    display: block;
    color: rgba(13, 226, 13, 0.664);
    border: none;
    border-radius: 10px;
    z-index: 0px;
  }

  .settings {
    font-size: 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    background: rgb(184, 183, 183);
    display: block;
    color: rgb(56, 56, 56);
    width: 30px;
    height: 30px;
    border: none;
    z-index: 21;
    top: 10px;
    left: 10px;

  }
.settingsBackground {
    position: fixed;
    width: 170px;
    height: 800px;
    display: none;
    z-index: 20;
    top: 0;
    left: 0;
    color: rgb(56, 56, 56);
    background-color: rgb(133, 132, 132);;
}

.hideSettings {
    position: fixed;
    background-color: rgba(255, 255, 255, 0);
    width: 8000px;
    height: 20000px;
    z-index: 19;
    top: 0;
    left: 0;
    display: none;
}
.Aufstriche {
    font-size: 1.0rem;
    position: fixed;
    top: 0;
    left: 0;
    background: rgb(184, 183, 183);
    display: none;
    color: rgb(0, 0, 0);
    width: 85px;
    height: 30px;
    border: none;
    z-index: 21;
    top: 80px;
    left: 10px;
}
.Erdbeermarmelade {
    font-size: 1.0rem;
    position: fixed;
    background: rgb(184, 183, 183);
    display: none;
    color: rgb(0, 0, 0);
    width: 150px;
    height: 30px;
    border: none;
    z-index: 21;
    top: 80px;
    left: 10px;
}
.Quittengelee {
    font-size: 1.0rem;
    position: fixed;
    background: rgb(184, 183, 183);
    display: none;
    color: rgb(0, 0, 0);
    width: 150px;
    height: 30px;
    border: none;
    z-index: 21;
    top: 120px;
    left: 10px;
}
.NettoGewicht {
    width: 120px;
    height: 30px;
    position: fixed; left: 220px; top: 160px;
    display: none;
}
.GrammOhneAufstrich {
    display: none;
    height: 30px;
    position: fixed; left: 30px; top: 165px;
    display: none;
}
.BruttoGewicht {
    width: 120px;
    height: 30px;
    position: fixed; left: 220px; top: 260px;
    display: none;
}
.GrammMitAufstrich {
    display: none;
    height: 30px;
    position: fixed; left: 30px; top: 265px;
    display: none;
}
.KHIn {
    width: 120px;
    height: 30px;
    position: fixed; left: 220px; top: 360px;
    display: none;
}
.KHText {
    display: none;
    height: 30px;
    position: fixed; left: 90px; top: 365px;
    display: none;
}
.Erdbeermarmeladenaufstrich {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    font-size: 2rem;
    text-align: center;
    padding: 15px 0px;
    z-index: 10px;
    display: none;
}
.Faktor {
    width: 100px;
    height: 30px;
    position: fixed; left: 50px; top: 440px;
    font-size: 1.05rem;
    color: white;
    background-color: #747474;
    border: none;
    border-radius: 20px;
    display: none;
}
.Faktorinput {
    width: 120px;
    height: 30px;
    position: fixed; left: 220px; top: 440px;
    background-color: #ffffff;
    border-top: none;
    border-right: none;
    border-left: none;
    border-width: 3px;
    border-color: rgb(31, 30, 30);
    display: none;
}