/* Allgemeine Stile */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #2f4f4f; /* Dunkelgrün oder Anthrazit */
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

label, input, textarea {
  font-family: 'Open Sans', sans-serif;
}

/* Ab einer Bildschirmbreite von 768px (Tablet) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
}

/* Ab einer Bildschirmbreite von 480px (Smartphone) */
@media (max-width: 550px) {
    body {
        font-size: 10px;
        width: 150%;
    }

    .scale-label, .scale-container label {
        font-size: 20px;
        
    }
    .main-page {
        width: 150%;
        margin: 0 auto;
        
    }

    .scale-container span {
        width: 5px; /* Feste Größe für den Kreis */
        height: 5px;
        padding: 0;
        margin: 0;}

   
    .scale-wrapper, .scale-label, .scale-container {
        padding: 0;
        margin: 0;
    }
}



/* Startseiten-Stile */
.start-page {
    width: 90%;
    max-width: 400px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.start-page h1 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #222;
}

.start-page form {
    display: flex;
    flex-direction: column;
}

.start-page input[type="text"],
.start-page input[type="password"] {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.start-page button {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.start-page button:hover {
    background-color: #1a2a23;
}

/* Hauptseiten-Stile */
.main-page {
    width: 75%;
    padding: 20px;
    font-family: 'Roboto', sans-serif;
    background: #ffffff; /* Weißes Fragebogenfeld */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #333;
    margin: 0 auto;
    margin-top: 2em;
}

.main-page h2 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #222;
    text-align: center;
}

.main-page .question-container {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Frage links, Eingabefeld rechts */
    margin-bottom: 10px;
    gap: 10px;
}

.main-page .question {
    margin: 0px;
    font-size: 18px;
    color: #333;
}

.main-page input[type="number"] {
    padding: 5px;
    width: 70px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: block;
    margin: 0;
    margin-left: 10px;
}

.main-page input[type="text"] {
    padding: 5px;
    width: 75%;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: block;
    margin: 0;
    margin-left: 10px;
}

.scale-wrapper {
    display: flex;
    align-items: center; /* Vertikale Zentrierung der Skala und Labels */
    justify-content: center; /* Labels und Skala verteilen */
    gap: 15px; /* Abstand zwischen den Elementen */
    font-size: 10px;
    margin-bottom: 30px;
    margin-right: 10 px;
    
}

.scale-label {
    font-size: 14px;
    color: #333;
    align-items: left;
}

.scale-container {
    display: flex;
    align-items: left;
}

.scale-container label {
    align-items: center;
    font-size: 10px;
    cursor: pointer;
    gap: 5px;
}

.scale-container input[type="radio"] {
    display: none;
}

.scale-container span {
    margin: 5px;
    width: 30px; /* Feste Größe für den Kreis */
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ccc; /* Kreisumrandung */
    border-radius: 50%; /* Macht das Element rund */
    background-color: white; /* Hintergrundfarbe */
    font-size: 14px; /* Schriftgröße */
    font-weight: bold;
    color: #333; /* Textfarbe */
    transition: all 0.3s ease; /* Weicher Übergang für Hover- und Auswahl-Effekte */
}

.scale-container input[type="radio"]:checked + span {
    background-color: #1a2a23; /* Hintergrundfarbe bei Auswahl */
    color: white; /* Textfarbe bei Auswahl */
    border-color: #1a2a23; /* Kreisfarbe bei Auswahl */
}

.scale-container span:hover {
    background-color: #f0f0f0; /* Leicht grauer Hintergrund bei Hover */
    border-color: #888; /* Hover-Effekt für Kreis */
}

.main-page button {
    width: 36%;
    right:10px;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    display: block;
}

.main-page button:hover {
    background-color: #1a2a23;
}

/* Logout-Button-Stile */
#logout-button {
    width: auto;
    position: fixed;
    bottom: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 14px;
    color: white;
    background-color: #c0392b;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#logout-button:hover {
    background-color: #3e0b12;
}
