.kurse {
    background-color: #e5f0f7;
    padding-bottom: 50px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

h2 {
    text-align: center;
    font-weight: 700;
    font-size: 40px;
    line-height: 49px;
    color: var(--black);
    margin-bottom: 40px;
}

h2 strong {
    color: #0067b1;
    font-weight: 700;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

th,
td {
    padding: 12px 15px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    color: #333;
    cursor: pointer;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr {
    transition: background 0.5s;
}

tr:hover {
    background-color: rgba(67, 176, 42, 0.6);
}

.price {
    font-weight: bold;
}

.available .status-circle {
    background-color: #43b02a;
}

.sold-out .status-circle {
    background-color: #dc3545;
}

.remaining_places .status-circle {
    background-color: #ffc107;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    font-weight: bold;
}

.filter-group select,
.filter-group input {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    margin-top: 5px;
}

.filter-group select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 20px;
    padding-right: 30px;
    width: 250px;
}

#search {
    width: 50%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

.status-circle {
    border-radius: 50% !important;
    display: inline-block !important;
    margin-left: 10px !important;
    height: 12px !important;
    width: 12px !important;
    position: relative !important;
    cursor: pointer !important;
    background-color: #43b02a; /* Beispiel für "available" */
}

/* Tooltip Styling */
.status-circle:hover::after {
    content: attr(data-tooltip); /* Holt den Tooltip-Text */
    position: absolute !important;
    bottom: 125% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background-color: #333 !important;
    color: #fff !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    z-index: 10 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease !important;
}

.status-circle:hover::after {
    opacity: 1 !important;
    visibility: visible !important;
}

.status-circle::before {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-width: 5px !important;
    border-style: solid !important;
    border-color: #333 transparent transparent transparent !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease !important;
}

.status-circle:hover::before {
    opacity: 1 !important;
    visibility: visible !important;
}


.no-results {
    display: none;
    text-align: center;
    color: rgba(255, 0, 0, 0.692);
    margin-top: 20px;
    background-color: #f9f9f9;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.legend {
    text-align: center;
    margin-top: 20px;
}

.legend-item {
    display: inline-block;
    margin-right: 20px;
}

.legend-item span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.legend-item.available span {
    background-color: #43b02a;
}

.legend-item.sold-out span {
    background-color: #dc3545;
}

.legend-item.remaining_places span {
    background-color: #ffc107;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

.pagination a, .pagination span {
    color: #333;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 4px;
    outline: none; /* Entfernt den Fokusrahmen */
}

.pagination a:hover {
    background-color: #0067b1;
    color: #fff;
    border-color: #0067b1;
}

.pagination .active {
    color: #fff;
    border-color: #0067b1;
    font-weight: bold;
    pointer-events: none;
    outline: none; /* Entfernt den Fokusrahmen */
    box-shadow: none; /* Entfernt zusätzlichen Rand oder Schatten */
}

.pagination .disabled {
    color: #aaa;
    border-color: #ddd;
    cursor: not-allowed;
}

.pagination .disabled:hover {
    background-color: transparent;
    color: #aaa;
}

.pagination a {
    text-decoration: none;
}

.pagination .active, .pagination a {
    min-width: 36px;
    text-align: center;
}

/* Anpassung für kleine Bildschirme */
@media only screen and (max-width: 768px) {
    .pagination a, .pagination span {
        font-size: 12px;
        padding: 6px 10px;
        margin: 0 3px;
    }
}



/* Mobile-friendly Anpassungen */
@media only screen and (max-width: 768px) {
    .pagination a, .pagination span {
        font-size: 14px;
        width: 35px;
        height: 35px;
    }
}

@media only screen and (max-width: 480px) {
    .pagination a, .pagination span {
        font-size: 12px;
        width: 30px;
        height: 30px;
    }
}



@media only screen and (max-width: 768px) {
    table {
        font-size: 15px;
    }

    .container {
        padding: 10px;
    }

    h2 {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 20px;
    }

    .filter-group select,
    .filter-group input {
        width: 100%;
        padding: 8px;
        font-size: 14px;
        margin-top: 5px;
    }

    #search {
        width: 100%;
        padding: 8px;
        font-size: 14px;
    }

    .status-circle {
        margin-left: 8px !important;
        margin-right: 3px !important;
        height: 8px !important;
        width: 8px !important;
    }

    .tooltip .bottom {
        width: 100px !important;
        padding: 3px 0 !important;
        margin-left: 5px !important;
    }

    .legend-item span {
        width: 8px;
        height: 8px;
        margin-right: 3px;
    }

    .legend-item.available span {
        background-color: #43b02a;
    }

    .legend-item.sold-out span {
        background-color: #dc3545;
    }

    .legend-item.remaining_places span {
        background-color: #ffc107;
    }
}

@media only screen and (max-width: 600px) {
    table {
        font-size: 14px;
    }
}

@media only screen and (max-width: 480px) {
    table {
        font-size: 13px;
    }

    .container {
        padding: 10px;
    }

    h2 {
        font-size: 20px;
        line-height: 26px;
        margin-bottom: 15px;
    }

    .filter-group select,
    .filter-group input {
        width: 100%;
        padding: 8px;
        font-size: 12px;
        margin-top: 5px;
    }

    #search {
        width: 100%;
        padding: 8px;
        font-size: 12px;
    }

    .status-circle {
        margin-left: 6px !important;
        margin-right: 2px !important;
        height: 6px !important;
        width: 6px !important;
    }

    .tooltip .bottom {
        width: 80px !important;
        padding: 3px 0 !important;
        margin-left: 3px !important;
    }

    .legend-item span {
        width: 6px;
        height: 6px;
        margin-right: 2px;
    }
}

@media only screen and (max-width: 400px) {
    table {
        font-size: 12px;
    }
}


/* Mobile Anpassungen */
@media (max-width: 1024px) {
    h2 {
        font-size: 32px;
        line-height: 38px;
    }

    table {
        font-size: 15px;
    }

    .container {
        padding: 15px;
    }

    .filter-group input,
    .filter-group select {
        padding: 8px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 28px;
        line-height: 34px;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 10px;
    }

    .container {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 24px;
        line-height: 30px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px;
    }

    .filter-group {
        margin-bottom: 10px;
    }

    .filter-group input,
    .filter-group select {
        padding: 6px;
        font-size: 12px;
    }

    .status-circle {
        height: 10px;
        width: 10px;
    }
}
