/* Responsive Table Styles */
.et_pb_responsive_table .et_pb_table.sticky-header thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

.et_pb_responsive_table .table-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media only screen and (max-width: 767px) {
    .et_pb_responsive_table table {
        display: block;
    }
    .et_pb_responsive_table thead {
        display: none;
    }
    .et_pb_responsive_table td {
        display: block;
        text-align: left !important;
    }
}

:root {
    --rt-header-bg: #f8f9fa;
    --rt-border-color: #dee2e6;
    --rt-zebra-stripe: rgba(0,0,0,0.02);
}

.et_pb_responsive_table_wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    -webkit-overflow-scrolling: touch;
}

.et_pb_responsive_table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.et_pb_responsive_table th {
    background-color: var(--rt-header-bg);
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--rt-border-color);
    white-space: nowrap;
    min-width: 50px;
}

.et_pb_responsive_table th:first-child {
    min-width: 40px;
}

.et_pb_responsive_table td {
    padding: 1rem;
    border-bottom: 1px solid var(--rt-border-color);
    vertical-align: top;
}

.et_pb_responsive_table td:first-child {
    font-weight: bold;
    color: #666;
    min-width: 40px;
}

@media (max-width: 980px) {
    .et_pb_responsive_table td {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .et_pb_responsive_table_wrapper {
        margin: 1rem -15px;
    }
    
    .et_pb_responsive_table td {
        padding: 0.75rem;
    }
}

.et_pb_responsive_table tr:last-child td {
    border-bottom: none;
}

.et_pb_responsive_table tr:hover td {
    background-color: #f8f9fa;
}

/* Zebrastreifen */
.et_pb_responsive_table.striped-rows tbody tr:nth-child(odd) {
    background-color: rgba(0,0,0,0.02);
}

/* Mobile Ansicht */
@media (max-width: 767px) {
    .et_pb_responsive_table {
        display: table;
        width: 100%;
        min-width: auto;
    }
    
    .et_pb_responsive_table thead {
        display: table-header-group;
    }
    
    .et_pb_responsive_table tr {
        display: block;
        margin-bottom: 1rem;
        border-bottom: 2px solid #dee2e6;
    }
    
    .et_pb_responsive_table td {
        display: block;
        text-align: left !important;
        padding: 0.25rem 0.75rem !important;
    }
    
    .et_pb_responsive_table td::before {
        content: attr(data-header) ": ";
        font-weight: bold;
        display: inline-block;
        margin-right: 0.5rem;
        color: #666;
    }
}
