#siteAnmeldung {
    background: #ffffff;
}

#siteAnmeldung {
    padding: 10px 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

#siteAnmeldung.siteclass {
    max-width: 100%;
    overflow-x: hidden;
}

#siteAnmeldung *,
#siteAnmeldung *::before,
#siteAnmeldung *::after {
    box-sizing: border-box;
}

#siteAnmeldung .title-reset {
    margin: 0;
}

#siteAnmeldung .text-muted {
    color: #666666;
}

#siteAnmeldung .text-muted-md {
    font-size: 0.95em;
}

#siteAnmeldung .text-danger {
    color: #a00000;
}

#siteAnmeldung .is-hidden {
    display: none;
}

#siteAnmeldung .flex {
    display: flex;
}

#siteAnmeldung .align-baseline {
    align-items: baseline;
}

#siteAnmeldung .justify-between {
    justify-content: space-between;
}

#siteAnmeldung .wrap {
    flex-wrap: wrap;
}

#siteAnmeldung .gap-12 {
    gap: 12px;
}

#siteAnmeldung .mb-16 {
    margin-bottom: 16px;
}

#siteAnmeldung .mt-6 {
    margin-top: 6px;
}

#siteAnmeldung .mt-10 {
    margin-top: 10px;
}

#siteAnmeldung .mt-12 {
    margin-top: 12px;
}

#siteAnmeldung .settings-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 1100px;
    justify-items: center;
    box-sizing: border-box;
    padding: 0 10px;
}

#siteAnmeldung .settings-container > section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 8px 22px 2px rgba(0, 0, 0, 0.18);
    padding: 16px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    align-self: center;
    text-align: center;
    box-sizing: border-box;
}

#siteAnmeldung h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

#siteAnmeldung .group-selector-intro {
    margin: 0 0 14px;
    color: #666666;
}

#siteAnmeldung .group-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    width: 100%;
}

#siteAnmeldung .group-selector-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 1px solid #d7deee;
    border-radius: 8px;
    padding: 10px 12px;
    background: #f7f9ff;
    color: #1b3c88;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease;
}

#siteAnmeldung .group-selector-item:hover {
    border-color: #1b3c88;
    background: #eef3ff;
}

#siteAnmeldung .group-selector-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1b3c88;
    margin: 0;
    flex: 0 0 auto;
}

#siteAnmeldung .group-selector-item-label {
    font-weight: 600;
    text-align: left;
}

#siteAnmeldung .group-section {
    margin: 12px auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 12px;
}

#siteAnmeldung .group-section.is-hidden {
    display: none;
}

#siteAnmeldung .group-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

#siteAnmeldung .group-meta {
    color: #666666;
    margin-left: 10px;
    font-size: 0.9em;
}

#siteAnmeldung .group-fee-info {
    display: block;
    color: #2a6a00;
    font-size: 0.9em;
    font-weight: 600;
    margin-top: 4px;
    text-align: left;
}

#siteAnmeldung .group-fee-label {
    font-weight: normal;
    color: #444444;
}

#siteAnmeldung .row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

#siteAnmeldung select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    background: #fff;
    min-width: 200px;
    max-width: 100%;
}

#siteAnmeldung select:disabled {
    background: #f5f5f5;
    color: #999;
}

#siteAnmeldung .row.inline {
    align-items: flex-start;
}

#siteAnmeldung .row > label {
    min-width: 160px;
    font-weight: 600;
}

#siteAnmeldung input {
    flex: 1 1 240px;
    padding: 6px 8px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    text-align: center;
}

#siteAnmeldung button {
    padding: 6px 12px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background: #f8f8f8;
    cursor: pointer;
}

#siteAnmeldung button:hover {
    background: #f0f0f0;
}

#siteAnmeldung button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

#siteAnmeldung .actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

#siteAnmeldung .actions.actions-split {
    width: 100%;
}

#siteAnmeldung .actions.actions-split button {
    flex: 1 1 50%;
}

#siteAnmeldung #submitRegistrationBtn {
    background: #d9f2dc;
    border-color: #b9e2be;
}

#siteAnmeldung #submitRegistrationBtn:hover {
    background: #c8ebcd;
}

#siteAnmeldung #resetRegistrationBtn {
    background: #f8dada;
    border-color: #edbcbc;
}

#siteAnmeldung #resetRegistrationBtn:hover {
    background: #f3caca;
}

#siteAnmeldung .hint {
    margin-top: 8px;
}

#siteAnmeldung .table-wrapper {
    overflow-x: auto;
    margin-top: 10px;
}

#siteAnmeldung table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

#siteAnmeldung th,
#siteAnmeldung td {
    border: 1px solid #d0d0d0;
    padding: 6px 8px;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

#siteAnmeldung th {
    background: #efefef;
}

#siteAnmeldung .danger {
    background: #b91c1c;
    color: #ffffff;
    border-color: #991b1b;
}

#siteAnmeldung .freimeldung-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#siteAnmeldung .freimeldung-label {
    font-weight: 600;
    cursor: pointer;
    min-width: auto;
}

#siteAnmeldung .freimeldung-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

#siteAnmeldung .freimeldung-row {
    justify-content: flex-start;
}

@media (max-width: 1050px) {
    #siteAnmeldung {
        padding: 10px 8px 20px;
        max-width: 100vw;
        overflow-x: hidden;
    }

    #siteAnmeldung .settings-container {
        padding: 0 8px;
        max-width: 100%;
    }

    #siteAnmeldung .settings-container > section {
        max-width: 100%;
        padding: 14px;
    }
}

@media (max-width: 980px) {
    #siteAnmeldung .settings-container {
        grid-template-columns: 1fr;
    }

    #siteAnmeldung label {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    #main,
    #siteAnmeldung {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    #siteAnmeldung,
    #siteAnmeldung * {
        box-sizing: border-box;
    }

    #siteAnmeldung {
        padding: 8px 8px 16px;
    }

    #siteAnmeldung .settings-container {
        gap: 12px;
        width: 100%;
        max-width: 100%;
    }

    #siteAnmeldung .settings-container > section {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 10px;
        text-align: left;
    }

    #siteAnmeldung .group-section {
        padding: 10px;
    }

    #siteAnmeldung .group-meta {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }

    #siteAnmeldung .group-selector {
        grid-template-columns: 1fr;
    }

    #siteAnmeldung .row,
    #siteAnmeldung .row.inline {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    #siteAnmeldung .row > label {
        min-width: 0;
    }

    #siteAnmeldung input {
        width: 100%;
        flex: 1 1 auto;
        text-align: left;
        box-sizing: border-box;
    }

    #siteAnmeldung .actions,
    #siteAnmeldung .actions.actions-split {
        flex-direction: column;
    }

    #siteAnmeldung .actions.actions-split button {
        flex: 1 1 auto;
        width: 100%;
    }

    #siteAnmeldung button {
        max-width: 100%;
    }

    #siteAnmeldung .table-wrapper {
        overflow-x: visible;
    }

    #siteAnmeldung table,
    #siteAnmeldung tbody,
    #siteAnmeldung tr,
    #siteAnmeldung td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    #siteAnmeldung thead {
        display: none;
    }

    #siteAnmeldung tr {
        border: 1px solid #d0d0d0;
        border-radius: 8px;
        margin-bottom: 10px;
        background: #ffffff;
        overflow: hidden;
    }

    #siteAnmeldung td {
        border: 0;
        border-bottom: 1px solid #e5e5e5;
        text-align: left;
        padding: 8px 10px;
    }

    #siteAnmeldung td:last-child {
        border-bottom: 0;
    }

    #siteAnmeldung td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        margin-bottom: 2px;
        color: #666666;
    }

    #siteAnmeldung tr.empty-row td::before {
        content: '';
        display: none;
    }

    #siteAnmeldung tr.empty-row td {
        text-align: center;
        color: #666666;
    }

    #siteAnmeldung .danger {
        width: 100%;
    }

    #siteAnmeldung p,
    #siteAnmeldung label,
    #siteAnmeldung span,
    #siteAnmeldung a,
    #siteAnmeldung button,
    #siteAnmeldung td {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    #siteAnmeldung .freimeldung-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 6px;
    }

    #siteAnmeldung .freimeldung-row {
        margin-top: 0;
    }

    #siteAnmeldung .freimeldung-label {
        font-weight: 600;
        min-width: 0;
        cursor: pointer;
    }

    #siteAnmeldung .freimeldung-wrapper input[type="checkbox"] {
        margin: 0;
        width: 18px;
        height: 18px;
        cursor: pointer;
    }
}
