
/* Kalorienrecher */

/* Standard-Schriftgröße */
body, button{
  font-size: 16px;
}

/* Media Query für kleinere Bildschirme */
@media screen and (max-width: 768px) {
  body, button, .form-group, #result-fats, #result-carbs, #result-protein, #small {
    font-size: 12px; /* Kleinere Schriftgröße auf mobilen Geräten */
  }
  
}

#rechner-body {
    max-width: 700px;
    margin: 2rem auto;
    background: none;
    padding: 0rem;
    border: none;
}


 /* Auf den Rechner-Container begrenzt: als reine "h1"-Regel traf font-size:2rem
    ungewollt die Seitenueberschrift "Tools" und machte sie kleiner als auf den
    anderen Seiten (dort ~2,3rem responsiv von Bootstrap). */
 #rechner-body h1 {
     text-align: center;
     color: var(--linkc);
     margin-bottom: 1.5rem;
     font-size: 2rem;
 }

 .form-group {
     margin-bottom: 1.5rem;
 }

 .form-group label {
     display: block;
     font-weight: bold;
     margin-bottom: 0.5rem;
 }

 .form-row {
   
     display: flex;
     gap: 1rem;
     margin-bottom: 1.5rem;
      
     margin: 5px;
 }

.form-row .form-group {
    flex: 1;
    /* Sorgt dafür, dass alle gleich breit sind */
}

 .form-group input {
     width: 100%;
     /* Nimmt die volle Breite innerhalb des flexiblen Containers */
 }


 .form-group input {
     width: 100%;
     padding: 0.75rem;
     border: 1px solid var(--popupborder);
     border-radius: 8px;
     font-size: 1rem;
     transition: border-color 0.3s, box-shadow 0.3s;
     background: var(--hovg);
     color: var(--linkc);
 }

 .form-group input:focus {
     border-color: #007bff;
     box-shadow: 0 0 6px rgba(0, 123, 255, 0.2);
     outline: none;
     
 }

 .radio-group {
     margin-bottom: 1.5rem;
 }

 .titel{
    align-items: start;
    text-align: start;
    color: var(--linkc);
 }

  .titel2 {
      align-items: end;
      text-align: end;
      color: var(--linkc);
  }


 .radio-label {
     display: flex;
     align-items: center;
     padding: 10px;
     margin: 5px;
     border: 1px solid var(--popupborder);
     border-radius: 5px;
     cursor: pointer;
     transition: 0.3s;
     color: var(--linkc);
     background: var(--them);
 }

 .radio-label:hover {
     background-color: var(--hovg);
 }

 .radio-label .icon {
     font-size: 20px;
     margin-right: 8px;
     color: #007BFF;
 }

 input[type="radio"] {
     display: none;
 }

 input[type="radio"]:checked+.radio-label {
     border-color: #007BFF;
     background-color: var(--hovg);
 }

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Entfernt die Spinner bei Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}


 /* Erfolgreiche Eingabe und Button-Farbe */
 .valid-button {
     background-color: #0692e32a;
 }
 .valid-button:hover {
    transform: scale(1.03);
    background-color: #06a4e32a;
    
 }
  .valid-button:active {
     transform: scale(0.97);
     transition: 0, 2s;
 }


 .invalid-button {
     background-color: #7088962a;
 }

.invalid-button:hover {
    transform: scale(1.0);
    background-color: #a4cae041;
}
 .invalid-button:active {
     transform: scale(1.0);
     transition: 0, 2s;
 }
 

 .button {
     
     width: 100%;
     padding: 0.9rem;
     font-size: 1.1rem;
     font-weight: bold;
     color: var(--linkc);
     border: none;
     border-radius: 12px;
     cursor: pointer;
     text-align: center;
     transition: background-color 0.3s;
     transition: transform 0.3s;
    
    

 }


 


 .results {
    color: var(--linkc);
     text-align: center;
     margin-top: 2rem;
     padding: 2rem;
     background: var(--them);
     border-radius: 12px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
 }

 .results hr {
    color: var(--linkc);
     border: none;
     border-top: 1px solid #ddd;
     margin: 2rem 0;
 }

 .calories-display {
     font-size: 2rem;
     font-weight: bold;
     color: var(--linkc);
     margin-bottom: 1.5rem;
 }

 .calories-display small {
     display: block;
     font-size: 1rem;
     font-weight: normal;
     color: var(--linkc);
 }

 .macros-row {
     display: flex;
     justify-content: center;
     align-items: center;
     gap: 1rem;
     margin-top: 1rem;
 }

 .macro {
     text-align: center;
     flex: 1;
 }

 .macro span {
     font-size: 1.5rem;
     font-weight: bold;
     color: var(--linkc);
 }

 .macro small {
     display: block;
     font-size: 0.9rem;
     color: var(--linkc);
     margin-top: 0.3rem;
 }

 .divider {
     width: 1px;
     height: 3rem;
     background: var(--linkc);
 }



 .error-message {
     color: red;
     font-size: 0.9rem;
     margin-top: 0.25rem;
     display: none;
     /* Versteckt die Meldung standardmäßig */
 }




 

 .activity-list {
     list-style: none;
     padding: 0;
     max-width: 600px;
     margin: 0 auto;
    background-color: var(--backg);
        /* Heller Hintergrund */
        padding: 10px;
        /* Platz innerhalb der Liste */
        border-radius: 8px;
        /* Abgerundete Ecken */
    
 }





 .activity-item {
     display: flex;
     align-items: flex-start;
     margin-bottom: 15px;
   

 }



 .popover {
     background-color: var(--backg);
     /* Hintergrundfarbe des Popovers */
     border: 1px solid var(--popupborder);
     /* Rand */
     box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
     /* Schatten */
 }

 .activity-item {
     padding: 8px 0;
     border-bottom: 0.1px solid var(--linkc);
     /* Trennlinie zwischen Elementen */
 }

 .activity-item:last-child {
     border-bottom: none;
     /* Entfernt die Linie beim letzten Element */
 }

 .activity-number {
     font-size: 1.5rem;
     font-weight: bold;
     color: var(--linkc);
     margin-right: 15px;
     min-width: 30px;
     text-align: center;
     
 }

 .activity-content {
     flex: 1;
     
 }

 .activity-title {
     font-weight: bold;
     margin-bottom: 5px;
     color: var(--linkc);
   
 }

 .activity-example {
     color: var(--linkc);
     font-size: 0.9rem;
     
 }


/* Kalorienrecher ende*/


/* Progress Recher Anfang */

.progress-body.progress-body{
    max-width: 700px;
    margin: 2rem auto;
    background: none;
    padding: 0rem;
    border: none;
}


h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.input-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 20px;
}

.input-column {
    width: 100%;
    box-sizing: border-box;
}

.input-group {
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}


label {

    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
    color: #fff;
}

.input1 {
    
    padding: 12px;
    margin-top: 5px;
    border: 1px solid var(--popupborder);
    border-radius: 8px;
    width: 100%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background-color: var(--them);
    color: var(--linkc);
    box-sizing: border-box;
}

.input1:focus {
    outline: none;
    border-color: #007bff;
    background-color: var(--hovg);
    
}

.error {
    color: #ff4d4d;
    font-size: 0.9em;
    height: 18px;
}



 .buttonq {

     width: 100%;
     padding: 0.9rem;
     font-size: 1.1rem;
     font-weight: bold;
     color: var(--linkc);
     border: none;
     border-radius: 12px;
     cursor: pointer;
     text-align: center;
     transition: background-color 0.3s;
     transition: transform 0.3s;
     background-color: #0692e32a;


 }

 .buttonq:hover{
    transform: scale(1.03);
        background-color: #06a4e32a;
 }

 .buttonq:active{
    transform: scale(0.97);
        transition: 0, 2s;
 }

#result {
        color: var(--linkc);
        text-align: center;
        margin-top: 2rem;
        padding: 2rem;
        background: var(--them);
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        display:none;
    }

.result-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.result-item {
    width: 48%;
    text-align: center;
    font-size: 1.1rem;
}

.result-item strong {
    display: block;
    font-size: 1.4rem;
    color: var(--linkc);
}

.progression-positive {
    color: var(--linkc);
    font-size: 1.1rem;
}

.progression-negative {
    color: var(--linkc);
    font-size: 1.1rem;
}



/* Progress Recher Ende */




/* Quiz Anfang */





 .quiz-container {
     background: #ffffff;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
     border-radius: 12px;
     padding: 2rem;
     max-width: 600px;
     width: 100%;
     position: relative;
 }

 .progress-bar-container {
     width: 100%;
     height: 10px;
     background: var(--hovg);
     border-radius: 5px;
     overflow: hidden;
     margin-bottom: 1rem;
 }

 .progress-bar {
     height: 100%;
     width: 0%;
     background: #007bff;
     transition: width 0.3s ease-in-out;
 }

 .quiz-header {
     text-align: center;
     margin-bottom: 1.5rem;
 }

 .quiz-header h1 {
     font-size: 1.8rem;
     color: #007bff;
 }

 .quiz-body {
     margin-bottom: 1.5rem;
     color: var(--linkc);
   
 }

 .question {
     font-size: 1.2rem;
     font-weight: bold;
     margin-bottom: 1rem;
 }

 .options {
     display: flex;
     flex-direction: column;
     gap: 1rem;
   
 }

 .option {
    background-color: var(--them);
     border: 1px solid  var(--popupborder);
     border-radius: 8px;
     padding: 0.75rem;
     cursor: pointer;
     transition: background-color 0.3s, border-color 0.3s;
 }

 .option:hover {
     background-color: var(--hovg);
     border-color: #007bff;
 }

 .option.correct {
    background-color: var(--hovg);
    border: 2px solid #28a745;
 }

 .option.wrong {
    background-color: var(--hovg);
    border: 2px solid #dc3545;
 }

 .quiz-footer {
     display: flex;
     justify-content: flex-end;
     margin-top: 1rem;
 }




 .resultsquiz {
     font-size: 1.2rem;
     font-weight: bold;
     margin-top: 1.5rem;
     color: var(--linkc);
     text-align: center;
 }

 .progress-container {
     width: 100%;
     background: var(--them);
     height: 10px;
     border-radius: 5px;
     overflow: hidden;
     margin-bottom: 1rem;
 }

 .progress-bar {
     height: 100%;
     width: 0%;
     background: #0692e338;
     transition: width 0.3s ease-in-out;
 }





 





/* Quiz Ende */