/* =====================================================
   ERGÄNZUNG FÜR befragung_html.css
   Diese Regeln ans Ende der bestehenden befragung_html.css anfügen.
   Sie stylen das Formular aus befragung-form.php
   (Klassen: .container, .question, .ratings, .comments, .nachricht ...)
   ===================================================== */

/* Wie im Original (dort: * { box-sizing: border-box; }) */
.container,
.container * {
    box-sizing: border-box;
}

.container {
    max-width: 850px;
    margin: 20px auto;
    background: #fcf0d6;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.10);
    color: #222;
}

.container h1 {
    margin-top: 0;
    color: #1d4f91;
    text-align: center;
}

.container .intro {
    text-align: center;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #222;
}

.container .scale {
    background: #eef4fb;
    border-left: 4px solid #1d4f91;
    padding: 15px;
    margin-bottom: 25px;
    line-height: 1.6;
    color: #222;
}

.question {
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
}

.question:last-of-type {
    border-bottom: none;
}

.question-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.question-description {
    font-size: 15px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 15px;
}

.rating-label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    color: #222;
}

.ratings {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ratings label {
    cursor: pointer;
}

.ratings input {
    display: none;
}

.ratings span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid #bbb;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-weight: bold;
    transition: 0.2s;
}

.ratings span:hover {
    background: #e5effb;
    border-color: #1d4f91;
}

.ratings input:checked + span {
    background: #1d4f91;
    color: white;
    border-color: #1d4f91;
}

.comments {
    margin-top: 30px;
}

.comments label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #222;
}

.container textarea {
    width: 100%;
    min-height: 160px;
    padding: 12px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    resize: vertical;
    color: #222;
}

.container textarea:focus {
    outline: none;
    border-color: #1d4f91;
    box-shadow: 0 0 0 2px rgba(29,79,145,0.15);
}

.submit-area {
    text-align: center;
    margin-top: 30px;
}

.container button {
    background: #1d4f91;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 6px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.container button:hover {
    background: #153d70;
}

.home-area {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 0;
}

.home-button {
    display: inline-block;
    background: #fcf0d6;
    color: #1d4f91;
    font-weight: bold;
    font-style: italic;
    text-decoration: underline;
    padding: 12px 35px;
    border-radius: 30px;
    border: none;
}

.home-button:hover {
    background: #f5e6bf;
}

/* Layout-Fix: container_24d810db war für die kurze Original-Seite
   absolut positioniert (top:17% etc.). Dadurch zählt sein Inhalt nicht
   zur Höhe von container_747437a5 (min-height:4348px fest), und die
   navy Box endet zu früh, während container_24d810db mit eigenem
   navy Hintergrund darüber hinausragt (Effekt: zweite, schmalere
   blaue Fläche). Fix: zurück in den normalen Textfluss. */
#container_24d810db {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 30px 8% 0 !important;
}

/* Feste Mindesthöhe der Original-Seite entfernen, damit die Box nicht
   künstlich bis 4348px aufgefüllt wird. */
#container_747437a5 {
    min-height: 0 !important;
}

#container_747437a5_padding {
    padding-bottom: 0 !important;
}

.required {
    color: #c00000;
}

/* Erfolgs-/Fehlermeldung nach dem Absenden */
.nachricht {
    max-width: 850px;
    margin: 20px auto;
    padding: 18px 25px;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
}

.nachricht.erfolg {
    background: #e3f6e3;
    border: 1px solid #4caf50;
    color: #256029;
}

.nachricht.fehler {
    background: #fdecea;
    border: 1px solid #d93025;
    color: #611a15;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    .ratings {
        gap: 6px;
    }

    .ratings span {
        width: 40px;
        height: 40px;
    }
}
