* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    
}

html, body {
    width: 100vw !important;
    max-width: 100% !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


body {
    font-family: Verdana, Tahoma, sans-serif;
    background-color: whitesmoke;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100svh;
}

.container {
    background: red;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    text-align: center;
    width: 92vw !important;
    max-width: 550px !important;
    min-height: 50svh ;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.step {
    display: none;
}

/* Nur den Schritt mit der Klasse 'active' anzeigen */
.step.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.start-btn {
    font-size: 28px p !important;
    padding: 16px 32px !important;
    width: 85%;
    max-width: 400px;
}

button {
    background-color:white;
    color: red;
    border: none;
    padding: 12px 24px;
    font-size:30px;
    font-weight: 550;
    font-family: Geneva, Tahoma;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;

}

.button-wrapper {
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

/*button:hover {
    background-image: url('grr.png');
    background-repeat: no-repeat;
    background-size: 50px;
    background-position: center;
    transition: 0.02s;
}
*/

.container:hover {
    background-image: url("grr.png");
    background-color: red;
    background-size: 500px;
    background-repeat: no-repeat;
    background-position: center;
    transition: 0.02s;
    

}
input {
    padding: 10px;
    width: 80%;
    font-size: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 20px;
    margin-top: 40px;
    box-sizing: border-box;
    box-shadow: rgba(0, 0, 0, 0.031) 0px 19px 38px, rgba(0, 0, 0, 0.031) 0px 15px 12px;
    
}

.texte {
    color: white;
    font-size: 40px;
    padding-bottom: 15px;
    font-weight: 500;
    box-shadow: rgba(38, 11, 190, 0.116) 0px 48px 100px 0px;

}

.text2 {
    color: white;
    font-size: 25px;
    height: 40px;
    font-weight: 500;
    box-shadow: rgba(38, 11, 190, .122) 0px 48px 100px 0px;

}


.container2 {
    background: greenyellow;
    padding: 30px;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    text-align: center;
    width: 420px;
    height: 320px;
    position: relative;
    box-sizing: border-box;
}

.container2:hover {
    background-image: url("grr.png");
    background-color: green;
    background-size: 300px;
    background-repeat: no-repeat;
    background-position: center;
    transition: 0.02s;
    

}

.speichern {
    box-shadow: rgba(0, 0, 0, 0.032) 0px 19px 38px, rgba(0, 0, 0, 0.031) 0px 15px 12px;
    letter-spacing: 0.3px;
    margin-top: 45px;
    margin-bottom: 20px;
    font-size: 26px;
    border-radius: 10px;
}

.ausfall-btn {
    background-color: rgba(248, 231, 238, 0.88);
    color: rgba(107, 107, 107, 0.791);
    border: none;
    padding: 15px 25px;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.7px;
    font-family: Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 50px;
    cursor: pointer;
    margin: 20px;
    margin-top: 25px;
    margin-bottom: 0px;
   
}

.total-box {
    font-size: 26px;
    font-weight: bold;
    margin: 20px 0;
    color: white;
    line-height: 150%;
    letter-spacing: 0.5px;
}

ul{
    list-style-type: none;
    padding-left: 0 !important;
    padding-top: 5px;
    padding-bottom: 5px;
    margin: 10px auto !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 160px;
    overflow-y: auto;
    text-align: left;
    background: #f8f9fa;
    border-radius: 5px;
    color: black;
    box-sizing: border-box;
}

li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-dropdown {
    color: white;
    width: 90%;
    margin: 0 auto;

}

.history {
    margin: 15px;
    font-size: 17px;
}

.restart {
    font-size: 25px;
}


.skip-link {
    font-size: 16px;
    color: #888;
    text-decoration: none;
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.skip-link:hover {
    color: #007bffb2;
    text-decoration: underline;
}


ul#history li {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    /*cursor: pointer; /*Ändern? */
    /*transition: background-color 0.2s ease; */
    border-radius: 4px;
    margin-bottom: 4px;
    display: block;
}

/*ul#history li:hover {
    /*background-color: #dadadb; 
}*/


@media (max-width: 600px) {
    body {
        padding: 10px;
        background-color: whitesmoke;
    }

    .step.active { 
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .start-btn {
        font-size: 34px;
        letter-spacing: 2%;
        line-height: 1.3;
        width: 90%;
        padding: 20px 0;
    }

    .container, .container2 {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 65svh;
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    .container:hover {
        background-size: 400px;
    }
    .texte {
        font-size: 32px;
        line-height: 1.4;
    }
    .text2 {
        margin-top: 10px;
        margin-bottom: 5px;
        font-size: 22px;
        line-height: 1.3;
    }

    input {
        width: 95% !important;
        padding: 14px !important;
        font-size: 18px !important;
        margin: 20px auto 25px auto !important;
        

    }

    button {
        width: 95%;
        padding: 12px 0px;
        font-size: 20px;
        margin-top: auto;
    }
    .ausfall-btn{
        width: 70% !important;
        position: absolute !important;
        bottom: 25px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 19px;
        padding: 12px;
        margin: 0 !important;

        margin-top: auto !important;
        margin-bottom: 30px !important;
    }

    ul {
        max-height: 250px !important;
        width: 90%;
    }
    li {
        font-size: 16px !important;
        padding: 12px;
    }
    .total-box {
        font-size: 26px !important;
        line-height: 1.4;
        width: 100%;
        text-align: center;
    }
    .skip-link {
        font-size: 15px;
        font-weight: normal;
    }
    .skip-link:hover {
        font-size: 15px;
        font-weight: bold;
    }
    .speichern {
        font-size: 22px !important;
        width: 90% !important;
        margin: 0 auto !important;
        
    }
    .restart {
        margin-top: 20px;
        width: 90% !important;
        font-size: 24px !important;
        padding: 15px 0;
    }
    button, .speichern, .ausfall-btn {
        width: 90% !important;
        margin: 5px auto !important;
    }
}