#addParticipantBtn {
    padding: 10px 15px;
    color: #002339;
    font-weight: 500;
    width: fit-content;
}

fieldset {
    border: none;
    margin: 0;
    padding: 0;
    margin-bottom: 20px;
}

legend {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.grid-cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(9rem, 26rem)) !important;
}

form input[type=text],
form input[type=number],
form input[type=email],
form input[type=tel] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.custom-checkbox-wrapper {
    align-items:center;
}

form input[type=submit] {
    background-color: #e62d38;
    padding: 10px 15px;
    color: white;
    font-weight: 600;
}

form input[type=submit]:hover {
    background-color: #0056b3;
}

.removeParticipantButton {
    color: #e62d38;
    padding: 0.5rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.removeParticipantButton:disabled {
    opacity: 0;
}

.custom-checkbox-wrapper input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
}

.custom-checkbox-wrapper input[type="checkbox"]+label {
    width: 100%;
    height: 100%;
    display: block;
    /* Macht das Label klickbar */
    cursor: pointer;
}

.custom-checkbox-wrapper input[type="checkbox"]+label::before {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid #004973;
    margin-right: 10px;
    vertical-align: middle;
    transition: background-color 0.3s, border-color 0.3s;
    cursor: pointer;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
}

.custom-checkbox-wrapper input[type="checkbox"]:checked+label::after {
    content: '';
    display: inline-block;
    background-image: url('/images/check.svg');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.2rem;
    height: 1.2rem;
}

.participant label {
    display: none;
}

.loader {
    width: 45px;
    height: 45px;
    --c: no-repeat linear-gradient(#E82A32 0 0);
    background:
        var(--c) 0% 50%,
        var(--c) 50% 50%,
        var(--c) 100% 50%;
    background-size: 20% 100%;
    animation: l1 1s infinite linear;
}

@keyframes l1 {
    0% {
        background-size: 20% 100%, 20% 100%, 20% 100%
    }

    33% {
        background-size: 20% 10%, 20% 100%, 20% 100%
    }

    50% {
        background-size: 20% 100%, 20% 10%, 20% 100%
    }

    66% {
        background-size: 20% 100%, 20% 100%, 20% 10%
    }

    100% {
        background-size: 20% 100%, 20% 100%, 20% 100%
    }
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

@media (max-width: 768px) {
    .participant-table-headings {
        display: none;
    }

    .participant label {
        display: flex;
    }

    .teilnehmer_box_heading {
        background-color: #00233912;
        font-weight: 600;
        padding-right: 20%;
    }

    .grid-cols-11 {
        grid-template-columns: 1fr;
    }

    .col-span-3,
    .col-span-1 {
        grid-column: auto;
    }

    .grid {
        gap: 0.5rem;
    }

    .p-8{
        padding:1rem;
    }
    
    .form-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(9rem, 26rem));
        gap: 0rem;
      }

      .custom-checkbox-wrapper input[type="checkbox"] + label::before {
        content: '';
        display: inline-block;
        width: 2rem;
        height: 2rem;
        border-radius: 50%;
        border: 2px solid #004973;
        margin-right: 10px;
        vertical-align: middle;
        transition: background-color 0.3s, border-color 0.3s;
        cursor: pointer;
        position: absolute;
        right: 0%!important;
        left:auto;
        top: 50%;
        transform: translateY(-50%) translateX(-50%);
      }
      .custom-checkbox-wrapper input[type="checkbox"] + label {
        width: 100%;
        height: 100%;
        display: block;
        cursor: pointer;
        position: absolute;
        top: 0;
      }
      .custom-checkbox-wrapper input[type="checkbox"]:checked + label::after {
        content: '';
        display: inline-block;
        background-image: url('/images/check.svg');
        background-size: contain;
        background-repeat: no-repeat;
        position: absolute;
        top: 50%;
        right: 1.4rem;
        left:auto;
        transform: translate(-50%, -50%);
        width: 1.2rem;
        height: 1.2rem;
      }
      .custom-checkbox-wrapper {
        margin-top: 0.5rem;
      }
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Verstecke die Standard-Checkbox */
.form-group-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

/* Style für das Label, um die runde Checkbox darzustellen */
.form-group-checkbox input[type="checkbox"]+label::before {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid #004973;
    margin-right: 10px;
    vertical-align: middle;
    transition: background-color 0.3s, border-color 0.3s;
    cursor: pointer;
    position: absolute;
    left: 0rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Hacken (SVG) anzeigen, wenn Checkbox ausgewählt ist */
.form-group-checkbox input[type="checkbox"]:checked+label::after {
    content: '';
    display: inline-block;
    background-image: url('/images/check.svg');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translate(-50%, -50%);
    width: 1.2rem;
    height: 1.2rem;
}

.form-group-checkbox label {
    display: block;
    font-weight: 500;
    position: relative;
    padding-left: 4rem;
}

/* Wenn die Checkbox fokussiert ist */
input[type="checkbox"]:focus+label::before {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

/* Wenn die Checkbox fokussiert ist */
input[type="checkbox"]:focus+label::before {
    box-shadow: none;
    /* Entferne den Fokus-Rahmen (Outline) */
}