html, body {
    overflow: hidden;
}


/* ===============================
   Allgemeines Styling
   =============================== */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 15px;
    margin: 0;
    background-color: #f5ca3d; /* Helleres Orange für freundlichen Hintergrund */
    color: #333;
}



/* ===============================
   Startscreen
   =============================== */
#startScreen {
    position: relative;
    min-height: 100vh;
    background-color: #f7cb06; /* Helleres Orange */
    display: flex;
    flex-direction: column;
}

/* Logo oben fix mit kleinem Abstand */
#logoContainer {
    display: flex;
    justify-content: center;
    padding: 20px 0 10px 0;  /* oben klein, unten minimal */
}

#logoBild {
    width: auto;
    max-width: 300px; /* größer als Buttons */
    height: auto;
}

/* Buttons absolut mittig */
#buttonContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bildButton {
    background: none;
    border: none;
    padding: 0;
    margin: 20px 0; /* Abstand zwischen Buttons */
    cursor: pointer;
    display: block;
    transition: transform 0.2s, opacity 0.2s;
}

.bildButton img {
    width: auto;
    max-width: 200px; /* kleiner als Logo */
    height: auto;
    display: block;
}

.bildButton:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}




/* ===============================
   Produktbild & Rahmen
   =============================== */
#produktContainer {
    position: relative;
    display: inline-block;
    margin: 25px 0; /* Abstand zum Fortschrittsbalken */
}

#produktBild {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border: 8px solid #ff9900;
    border-radius: 10px;
    background-color: #ffffff;
    padding: 5px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.541);
}

/* Zurück-Button über Bild, oben links mit Abstand */
#zurueckButton {
    position: absolute;
    top: 10px;
    left: -90px;
    background-color: #880707;
    color: #ffffff;
    font-size: 16px;
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
    z-index: 2;
}

#zurueckButton:hover {
    background-color: #ffcc66;
}

/* Produktname */
#produktName {
    font-size: 22px;
    margin: 10px 0;
    color: #333;
    font-weight: bold;
}

/* ===============================
   Eingabefeld
   =============================== */
#eingabe {
    font-size: 30px;
    width: 100%;
    max-width: 320px;
    height: 55px;
    text-align: center;
    margin: 10px auto;
    display: block;
    border: 2px solid #fbc02d;
    border-radius: 10px;
    background-color: #fffde7;
    color: #333;
}

/* ===============================
   Numpad
   =============================== */
#numpad {
    display: grid;
    grid-template-columns: repeat(3, auto); /* Buttons behalten eigene Größe */
    gap: 12px;
    max-width: 320px;
    margin: 15px auto;
}

/* Numpad Buttons */
#numpad button {
    font-size: 28px;
    font-weight: bold;
    background: #f1f1f1;
    color: #333;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    padding: 15px 25px; /* eigene Größe, nicht quadratisch */
}

#numpad button:hover {
    background: #ffffff;
}

#numpad .clear {
    background: #f44336;
    color: white;
}

#numpad .ok {
    background: #4caf50;
    color: white;
}
#numpad .ok:hover,
#numpad .ok:active,
#numpad .ok:focus {
    background: #4caf50; /* immer grün, auch beim Drücken */
    outline: none;
}
#numpad .clear:hover,
#numpad .clear:active,
#numpad .clear:focus {
    background: #f44336; /* immer rot, auch beim Drücken */
    outline: none;
}


/* ===============================
   Feedback Text
   =============================== */
#feedback {
    font-size: 24px;
    height: 30px;
    margin-top: 10px;
    color: #333;
}

/* ===============================
   Fortschrittsbalken
   =============================== */
#fortschrittContainer {
    position: absolute;
    top: 257px;
    left: 15%;
    
    

    width: 70%;
    height: 22px;
    border: 1px solid #000;
     /* etwas weiter unter dem Bild */
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff2cc;
}

#fortschrittBalken {
    height: 100%;
    width: 0%;
    background: #a9e06a;
    transition: width 0.3s;
}

/* ===============================
   Score Farben
   =============================== */
.score-gruen { color: #4caf50; font-weight: bold; }
.score-gelb { color: #ff9800; font-weight: bold; }
.score-rot { color: #f44336; font-weight: bold; }


#zurueckButtonErgebnis {
    background-color: #8a0909;
    color: #fff;
    font-size: 16px;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
}

#zurueckButtonErgebnis:hover {
    background-color: #ffcc66;
}

