html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* LAYOUT */
.craytox-faq-wrapper {
    display: flex;
    gap: 30px;
    overflow-x: hidden;
}

.craytox-faq-sidebar {
    width: 220px;
    position: sticky;
    top: 100px;
    flex-shrink: 0;
}

.craytox-faq-sidebar a {
    display: block;
    margin-bottom: 10px;
    color: #00c3ff;
    text-decoration: none;
}

.craytox-faq-container {
    flex: 1;
    min-width: 0; /* 🔥 WICHTIG gegen Overflow */
    overflow: visible;
}

/* FAQ ITEM BASE */
.craytox-faq-item {
    margin: 15px 0;
    padding: 18px;
    text-align: left;

    background-color: #2a2a2a;
    border-radius: 12px;

    box-shadow: 0 0 12px rgba(0,0,0,0.4);

    transition: transform 0.2s ease, box-shadow 0.3s ease;
    will-change: transform;
}

/* HOVER EFFECT */
.craytox-faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(0, 157, 255, 0.5);
}

.craytox-faq-item.hidden {
    display: none !important;
}

/* QUESTION */
.craytox-faq-question {
    color: #00c2ff;
    transition: color 0.2s ease;
    font-weight: 600;

    display: flex;
    justify-content: space-between;
    align-items: center;

    cursor: pointer;
}

.craytox-faq-question .faq-text {
    color: inherit;
}

/* ARROW */
.faq-arrow {
    transition: transform 0.3s ease;
    font-size: 1.4rem;
    color: #00c2ff;
    transform: rotate(90deg);
}

.craytox-faq-item.active .faq-arrow {
    transform: rotate(270deg);
}

/* HOVER / ACTIVE TEXT */
.craytox-faq-item:hover .faq-text,
.craytox-faq-item.active .faq-text {
    color: #ffffff;
}

/* ANSWER */
.craytox-faq-answer {
    height: 0;
    overflow: hidden;
    opacity: 0;

    transform: translateY(-8px);

    transition:
        height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.35s ease,
        transform 0.35s ease;
}

/* CATEGORY */
.craytox-faq-category {
    margin-top: 50px;
    margin-bottom: 20px;
    font-size: 1.6em;
    border-bottom: 2px solid #009dff;
    color: #e0e0e0;
}

/* SEARCH */
.craytox-faq-search {
    width: 100% !important;
    padding: 12px 14px;

    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;

    background-color: #1a1a1a !important;
    color: #fff !important;

    outline: none;

    transition: all 0.2s ease;
}

.craytox-faq-search:focus {
    border-color: #00c2ff;
    box-shadow: 0 0 10px rgba(0, 194, 255, 0.4);
    background-color: #111c33 !important;
}

.craytox-faq-search::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* HIGHLIGHT */
.craytox-highlight {
    background: #00c2ff;
    color: #000;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 4px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .craytox-faq-wrapper {
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
    }

    .craytox-faq-sidebar {
        width: 100%;
        position: relative;
        top: 0;

        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .craytox-faq-sidebar a {
        margin-bottom: 0;
        padding: 6px 10px;
        background: #1a1a1a;
        border-radius: 8px;
        font-size: 14px;
    }

    .craytox-faq-container {
        width: 100%;
    }

    .craytox-faq-category {
        font-size: 1.3em;
    }

    /* TEXT SAFETY */
    .craytox-faq-container,
    .craytox-faq-item,
    .craytox-faq-answer,
    .craytox-faq-question {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .craytox-faq-answer a {
        word-break: break-all;
    }
}