/* Grundlegende Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

/* Sidebar Styles */
.sidebar {
    width: 100%;
    background-color: #ffffff;
    padding: 20px;
    box-sizing: border-box;
    height: auto;
    overflow-y: auto;
}

#course-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#course-list li {
    background: #f0f4f8;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s, background-color 0.3s;
}

#course-list li:hover {
    transform: translateY(-2px);
    background-color: #e8f0fe;
}

#course-list .course-info {
    display: flex;
    flex-direction: column;
}

#course-list .course-info span {
    margin-bottom: 5px;
    color: #555555;
}

#course-list .course-info span:first-child {
    font-weight: bold;
    color: #222222;
}

.request-button {
    background-color: #003b5c;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 0.9em;
}

.request-button:hover {
    background-color: #002b45;
    transform: scale(1.05);
}

.load-more-button {
    width: 100%;
    padding: 10px;
    background-color: #003b5c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
    font-size: 1em;
}

.load-more-button:hover {
    background-color: #002b45;
    transform: scale(1.02);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: fadeIn 0.3s ease-out;
}

@media (max-height: 500px) {
    .modal-content {
        top: 20px;
        transform: none;
        margin-bottom: 20px;
    }
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #aaaaaa;
    transition: color 0.3s;
}

.close-button:hover {
    color: #000000;
}

.modal-content h2 {
    margin-top: 0;
    color: #333333;
    text-align: center;
}

#booking-form {
    display: flex;
    flex-direction: column;
}

#booking-form label {
    margin-top: 10px;
    font-weight: bold;
}

#booking-form label .required {
    color: red;
    margin-left: 5px;
}

#booking-form input[type="text"],
#booking-form input[type="email"],
#booking-form input[type="number"] {
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.checkbox-group input {
    margin-right: 10px;
}

#booking-form button {
    margin-top: 15px;
    padding: 10px;
    background-color: #003b5c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#booking-form button:hover {
    background-color: #002b45;
    transform: scale(1.02);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        box-shadow: none;
        height: auto;
    }
}

@media (max-width: 480px) {
    #course-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .request-button {
        margin-top: 10px;
        width: 100%;
    }
}
