.umfrage-container {
    margin: 0 auto;
}

.umfrage-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.umfrage-filters {
    height: fit-content;
    position: sticky;
    top: 20px;
}

/* Survey item card */
/* .umfrage-item{
  background: #fbfbfb;
  border: 2px dashed #cfcfcf;
  border-radius: 10px;
  padding: 18px;
} */

.umfrage-grid {
    z-index: 1;
    position: relative;
}

.umfrage-item {
    padding: 18px;
    border: 1px solid #E8E8E8;
    border-bottom-right-radius: 60px 25px;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    word-wrap: break-word;
    background: linear-gradient(135deg,
            #feefa0 81%,
            #feefa0 82%,
            #feefa0 82%,
            #fff6c8 100%);
}


.umfrage-item:after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -0px;
    bottom: 20px;
    width: 200px;
    height: 25px;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 2px 15px 10px rgba(0, 0, 0, 0.40);
    transform: matrix(-1, -0.1, 0, 1, 0, 0);
}


/* Optional: spacing inside */
.umfrage-item-content {
    margin-bottom: 12px;
}

.umfrage-item-person {
    font-weight: 600;
    margin-top: 10px;
}

.umfrage-item-date {
    margin-top: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
}


.umfrage-sort-wrapper {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.umfrage-sort-wrapper label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

.umfrage-sort {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #111827;
}

.umfrage-filter-group {
    margin-bottom: 25px;
}

.umfrage-filter-group:last-child {
    margin-bottom: 0;
}

.umfrage-filter-group-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #111827;
}

.umfrage-filter-list {
    list-style: none;
    margin: 0;
    padding: 0 !important;
}

.umfrage-filter-list li {
    margin-bottom: 8px;
    list-style: none;

}

.umfrage-filter-item {
    display: block;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #111827;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
}

.umfrage-filter-item:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.umfrage-filter-item.active {
    background: #84c1f6;
    color: #111827;
    border-color: #84c1f6;
}

body.umfrage-filters-open {
    overflow: hidden;
}

.umfrage-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
}

.umfrage-filter-toggle:hover {
    background: #f9fafb;
}

.umfrage-filter-toggle:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.umfrage-filters-floating {
    position: fixed !important;
    inset: 0 auto 0 0;
    width: 86vw;
    max-width: 340px;
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    padding: 20px;
    transform: translateX(-110%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 300000;
    box-shadow: none;
}

.umfrage-filters-floating.is-open {
    transform: translateX(0);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.2);
}

.umfrage-offcanvas-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    z-index: 299999;
}

.umfrage-offcanvas-backdrop.is-open {
    display: block;
}

.umfrage-filters-mobile-header,
.umfrage-filter-close,
.umfrage-offcanvas-backdrop {
    display: none;
}

.umfrage-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.umfrage-content {
    background: #fff;
    border-radius: 8px;
}

.umfrage-title {
    font-size: 32px !important;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #111827;
}

.umfrage-intro {
    margin-bottom: 30px;
    color: #374151;
    line-height: 1.6;
}

.umfrage-intro p {
    margin: 0 0 12px 0;
}

.umfrage-intro p:last-child {
    margin-bottom: 0;
}

.umfrage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.umfrage-item-content {
    margin-bottom: 15px;
    color: #374151;
    line-height: 1.6;
}

.umfrage-item-content p {
    margin: 0 0 12px 0;
    color: #111827;
}

.umfrage-item-content p:last-child {
    margin-bottom: 0;
}

.umfrage-item-date {
    color: #111827;
}

.umfrage-item-person p {
    margin: 0;
    color: #111827;
}

@media (max-width: 999px) {
    .umfrage-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .umfrage-toolbar {
        justify-content: space-between;
    }

    .umfrage-filter-toggle {
        display: inline-flex;
    }

    .umfrage-filters-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
    }

    .umfrage-filters-mobile-title {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        color: #111827;
    }

    .umfrage-filter-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid #d1d5db;
        background: #fff;
        font-size: 20px;
        cursor: pointer;
    }

    .umfrage-filter-close:hover {
        background: #f3f4f6;
    }

    .umfrage-filters {
        position: fixed;
        inset: 0 auto 0 0;
        width: 90vw;
        max-width: max-content;
        height: 100vh;
        overflow-y: auto;
        background: #fff;
        padding: 20px;
        transform: translateX(-110%);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        z-index: 200000;
        box-shadow: none;
    }

    .umfrage-offcanvas-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(17, 24, 39, 0.55);
        z-index: 199999;
    }

    .umfrage-filters.is-open {
        transform: translateX(0);
        box-shadow: 0 10px 30px rgba(17, 24, 39, 0.2);
    }

    .umfrage-offcanvas-backdrop.is-open {
        display: block;
    }

    .umfrage-grid {
        display: flex;
        flex-direction: column;
        gap: 20px !important;
    }


    .umfrage-grid article {
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 20px;
    }
}

/* Pagination Styles */
.umfrage-pagination-wrapper {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
}

.umfrage-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding-top: 30px;
}

.umfrage-pagination-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.umfrage-pagination-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #2271b1;
}

.umfrage-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.umfrage-pagination-numbers {
    display: flex;
    gap: 5px;
}

.umfrage-pagination-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.umfrage-pagination-number:hover {
    background: #f5f5f5;
    border-color: #2271b1;
}

.umfrage-pagination-number.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.umfrage-pagination-ellipsis {
    padding: 0 5px;
    color: #666;
}

@media (max-width: 768px) {
    .umfrage-title {
        font-size: 20px !important;
    }

    .umfrage-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .umfrage-pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .umfrage-pagination-numbers {
        order: 10;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}