﻿/* Allgemeine Einstellungen */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f8;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Container */
.container {
    /*background-color: white;*/
    padding: 30px;
    border-radius: 12px;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
    max-width: 700px;
    width: 100%;
}

/* Überschrift */
h1 {
    text-align: center;
    color: #333;
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Datumspicker */
.datum-picker {
    width: 20%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    font-size: 16px;
}

/* Kursauswahl */
.kurs-auswahl {
    margin-bottom: 20px;
}

.kurs-option {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border: 1px solid #dfe3e8;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    margin-bottom: 5px;
}

    .kurs-option:hover {
        background-color: #e7f1ff;
        border-color: #007bff;
    }

    .kurs-option:has(input[type="radio"]:checked) {
        background-color: #e7f1ff;
        border-color: #007bff;
    }


    .kurs-option input[type="radio"] {
        margin-right: 15px;
        transform: scale(1.2);
    }

.kurs-details {
    display: block;
    justify-content: space-between;
    width: 100%;
}

    .kurs-details span {
        flex-basis: 40%;
        font-size: 16px;
        color: #555;
    }

.datum {
    font-weight: 500;
}

.freie-plaetze {
    text-align: center;
}

.plaetze {
    font-weight: bold;
}

/* Button */
button {
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    margin-top:20px;
}

    button:not(.button_disabled):hover {
        background-color: #0056b3;
        box-shadow: 0 6px 15px rgba(0, 123, 255, 0.5);
    }

    button:active {
        background-color: #004494;
    }

    .button_disabled {
        background-color: lightgray;
        color: darkgray;
        cursor: not-allowed;
    }

/* Styling für keine freien Plätze */
.kurs-option.disabled {
    background-color: #f2f2f2;
    border-color: #ccc;
    cursor: not-allowed;
}

    .kurs-option.disabled:hover {
        background-color: #f2f2f2;
        border-color: #ccc;
    }

    .kurs-option.disabled input[type="radio"] {
        cursor: not-allowed;
    }

    .kurs-option.disabled .plaetze {
        color: red;
    }

/* Hervorhebung des ausgewählten Kurses */
.kurs-option.selected {
    background-color: #e7f1ff;
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
    position: relative;
    z-index: 1;
}

    .kurs-option.selected::before {
        content: "";
        position: absolute;
        top: -10px;
        bottom: -10px;
        left: -10px;
        right: -10px;
        border-radius: 12px;
        background: rgba(0, 123, 255, 0.1);
        z-index: -1;
    }

input[type="radio"]:checked {
    background-color: red;
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
    position: relative;
    z-index: 1;
}
input[type="radio"]:checked::before {
        content: "";
        position: absolute;
        top: -10px;
        bottom: -10px;
        left: -10px;
        right: -10px;
        border-radius: 12px;
        background: rgba(0, 123, 255, 0.1);
        z-index: -1;
        
    }

input[type="radio"]:checked {
    background-color: red;
}

option:checked {
    box-shadow: 0 0 0 3px lime;
    color: red;
}

/* Checkbox element, when checked */
input[type="checkbox"]:checked {
    background-color: red;
}

/* Labels for checked inputs */
input:checked + label {
    color: red;
}

.flatpickr-day:not(.flatpickr-disabled){
    background:red;
    color:white;
}
.kurs-details-mobile {
    display: none;
}

@media (max-width: 767px) {
    .datum-picker{
        width:100%;
    }
    .kurs-details{
        display:none;
    }
    .kurs-details-mobile {
        display: block;
    }
}
