/* =========================== */
/* 🎨 FAQ WALL – TATTOO-WISSENSWAND */
/* =========================== */

body {
    background: url('/uploads/images/faq-bg.jpg') center/cover no-repeat;
    color: #1e1e1e;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
}

/* 🖼️ Die Wissens-Wand */
.faq-wall {
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(135deg, #f0ece2 30%, #e0d5c3 70%);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
    position: relative;
}

.faq-wall::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('/uploads/images/scratch-pattern.webp') repeat;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

/* 📜 FAQ Container */
#faq {
    width: 90%;
    max-width: 900px;
    z-index: 2;
    text-align: center;
    position: relative;
    padding: 30px;
    background: rgba(255, 255, 255, 0.85);
    border: 5px dashed #4b3832;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* 🐺 Überschrift */
#faq h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #4b3832;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
    font-style: italic;
    text-transform: uppercase;
    animation: subtleShake 3s infinite;
}

/* 🎯 Zitter-Effekt */
@keyframes subtleShake {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
    100% { transform: rotate(0deg); }
}

/* 🗂️ FAQ-Kategorien – Sticky Notes */
.faq-category {
    background: linear-gradient(135deg, #ffe066, #fffa87);
    color: #222;
    border: 2px solid #c59d5f;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin: 25px 0;
    padding: 15px 20px;
    transform: rotate(var(--rotation));
    position: relative;
    transition: transform 0.5s;
    cursor: pointer;
}

.faq-category:hover {
    transform: rotate(0deg) scale(1.05);
}

.faq-category::before {
    content: "📎";
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 2rem;
    color: #4b3832;
    transform: rotate(-10deg);
}

.faq-category h2 {
    margin: 0;
    font-size: 1.7rem;
    text-align: left;
}

/* 📄 FAQ-Einträge */
.faq-item {
    margin: 15px 0;
    background: #fdfdfd;
    color: #333;
    border-left: 6px solid #c59d5f;
    border-radius: 5px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: box-shadow 0.4s ease;
}

.faq-item:hover {
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* ❓ Frage */
.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #ffd166;
}

.faq-question::after {
    content: "🐺";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.5s;
    font-size: 1.5rem;
}

.faq-question.active::after {
    content: "🐾";
    transform: translateY(-50%) rotate(180deg);
    color: #4b3832;
}

/* 💬 Antwort */
.faq-answer {
    padding: 15px;
    display: none;
    background: #fffef0;
    border-top: 2px dashed #c59d5f;
    line-height: 1.5;
    text-align: left;
    transition: all 0.5s ease;
}

.faq-answer.visible {
    display: block;
    animation: rollDown 0.6s ease;
}

.error-text {
    color: red;
}

@keyframes rollDown {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }
    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}