#feedback-fab {
    position: fixed;
    right: 0;
    top: 40%;
    width: 60px;
    height: 160px;
    background: #A03B44; /* Icy Crimson Metallic */
    color: #C8D6E5; /* Icy Silver */
    border-radius: 8px 0 0 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 2px;
    user-select: none;
    transition: background 0.2s, color 0.2s;
}
#feedback-fab:hover {
    background: #A66F22; /* dunkleres Goldbraun */
    color: #2E2B22; /* dunkles metallisch-braun */
}

#feedback-panel {
    position: fixed;
    top: 0;
    right: -370px;
    width: 350px;
    height: 100vh;
    background: rgba(46, 43, 34, 0.97); /* dunkles metallisch-braun */
    color: #C8D6E5; /* Icy Silver */
    box-shadow: -2px 0 16px rgba(0,0,0,0.7);
    z-index: 100001;
    transition: right 0.4s cubic-bezier(.77,0,.18,1);
    display: flex;
    flex-direction: column;
    padding: 0;
}
#feedback-panel.open { right: 0; }

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #A03B44; /* Icy Crimson Metallic */
    color: #C8D6E5; /* Icy Silver */
    padding: 1rem 1.2rem;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    font-size: 1.2em;
}
#feedback-close {
    background: none;
    border: none;
    color: #C8D6E5; /* Icy Silver */
    font-size: 1.5em;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
}
#feedback-close:hover {
    color: #2E2B22; /* dunkles metallisch-braun */
    background: #A66F22; /* dunkleres Goldbraun */
    border-radius: 50%;
}

.feedback-average {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin: 1em 0 1.5em 0;
    font-size: 1.1em;
}
.feedback-average .stars { color: #A6D608; /* giftiges Grün-Gelb */ font-size: 1.3em; }
.feedback-average .avg-number { color: #A03B44; /* Icy Crimson Metallic */ font-weight: bold; }

#feedback-form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.2rem;
    flex: 1 1 auto;
    color: #C8D6E5; /* Icy Silver */
    font-family: Arial, sans-serif;
}

.slider-label {
    font-weight: 700;
    font-size: 1.1em;
    user-select: none;
}

#feedback-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #A03B44 0%, #A66F22 100%);
    outline: none;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}
#feedback-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: #2E2B22; /* dunkles metallisch-braun */
    border-radius: 50%;
    border: 3px solid #A03B44; /* Icy Crimson Metallic */
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
    margin-top: -9px;
}
#feedback-slider::-webkit-slider-thumb:hover {
    background: #A66F22; /* dunkleres Goldbraun */
    border-color: #C8D6E5; /* Icy Silver */
}
#feedback-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: #2E2B22; /* dunkles metallisch-braun */
    border-radius: 50%;
    border: 3px solid #A03B44; /* Icy Crimson Metallic */
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}
#feedback-slider::-moz-range-thumb:hover {
    background: #A66F22; /* dunkleres Goldbraun */
    border-color: #C8D6E5; /* Icy Silver */
}
#feedback-slider:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(166, 214, 8, 0.7); /* giftiges Grün-Gelb */
}

textarea {
    border-radius: 5px;
    border: 1px solid #A03B44; /* Icy Crimson Metallic */
    background: rgba(0,0,0,0.68);
    color: #C8D6E5; /* Icy Silver */
    font-size: 1rem;
    padding: 8px;
    resize: vertical;
}

button[type="submit"] {
    background: #A03B44; /* Icy Crimson Metallic */
    color: #C8D6E5; /* Icy Silver */
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}
button[type="submit"]:hover {
    background: #A66F22; /* dunkleres Goldbraun */
}

.success-message, .error-message {
    margin: 1rem 0 0 0;
    padding: 0.7rem 1rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1em;
}
.success-message {
    background: #A6D608; /* giftiges Grün-Gelb */
    color: #2E2B22; /* dunkles metallisch-braun */
}
.error-message {
    background: #FF6B6B; /* helles Blutrot */
    color: #2E2B22; /* dunkles metallisch-braun */
}

@media (max-width: 500px) {
    #feedback-panel { width: 100vw; right: -100vw; }
    #feedback-panel.open { right: 0; }
}