/* assets/style.css */

/* Grundlegendes Layout */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f5;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h1,
h2,
h3 {
    color: #111;
    margin-bottom: 1rem;
}

/* Formularelemente */
form label {
    display: block;
    margin: 1rem 0;
}

input[type="text"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background: #fafafa;
    box-sizing: border-box;
}

button {
    display: inline-block;
    width: auto;
    padding: 0.6rem 1.2rem;
    border: none;
    background: #3b82f6;
    color: #fff;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #2563eb;
}

.question-block {
    margin-bottom: 1rem;
}

hr {
    margin: 1rem 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

/* Smiley-Bewertung */
.smileys {
    display: flex;
    justify-content: space-around;
    margin: 1rem 0;
}

.smileys label {
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.smileys label:hover {
    transform: scale(1.1);
}

.smileys input {
    display: none;
}

.smileys span {
    font-size: 1.5rem;
    display: block;
    margin-top: 0.5rem;
}

@media (max-width: 480px) {
    .smileys {
        flex-direction: column;
    }

    .smileys label {
        margin-bottom: 0.5rem;
    }
}

/* Ergebnisse */
.result-block {
    margin-bottom: 1.5rem;
}

.bar {
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.bar span {
    width: 6rem;
}

.progress {
    flex: 1;
    background: #eee;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-left: 0.5rem;
}

.progress>div {
    height: 100%;
    transition: width 0.5s ease;
    background: #3b82f6;
}

.comments {
    list-style: none;
    padding: 0;
}

.comments li {
    background: #f9fafb;
    margin: 4px 0;
    padding: 6px;
    border-radius: 4px;
    animation: fadein 0.5s ease;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Feedback für ausgewählten Smiley */
.smileys label input:checked+span {
    transform: scale(1);
    color: #2563eb;
}

.thankyou {
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem;
    color: #2563eb;
}