.risk-assessments {
    display: flex;
    flex-direction: column;
    gap: var(--gap)
}

.risk-assessments-wrapper {
        display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    justify-content: space-between;
    gap: 3em var(--gap, 2rem);
}

.risk-assessments-search {
    max-width: 35rem;
    border: 0.2rem solid #0061a0;
    padding: 1rem 0.5rem 1rem 5rem;
    font-size: 1.6rem;
}

.controlls-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--gap);
}

form .project-data {
    display: grid;
    grid-template-columns:1fr;
    justify-content: space-between;
    gap: .5em var(--gap, 2rem);
}

form .project-data .form-row {
    width: 100%;
}

form .project-data .form-row strong {
    color: var(--blue);
}

form .form-row input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

form .form-row.checkbox {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

form .btn-wrapper {
    background: #FFF;
    position: sticky;
    bottom: 0;
    padding: 2rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
    /* border: 2px solid #888; */
    box-shadow: 0px 0px 1rem rgba(0,0,0,.3);
    align-items: center;
    flex-wrap: wrap;
    z-index: 2;
    margin: 2rem -2rem;
}

.inner-btn-wrapper,
form .btn-wrapper .inner-btn-wrapper {
    display: flex;
    gap: .5em 1em;
    flex-wrap: wrap;
    font-size: .75em;
    justify-content: center;
}

form .btn-wrapper .inner-btn-wrapper {
    justify-content: center;
    align-items: baseline;
}

form .btn-wrapper .button.disabled {
    cursor: not-allowed;
    opacity: .42;
}

#debugiframe.disabled {
    cursor: not-allowed;
    opacity: .42;
    pointer-events: none;
}

form .btn-wrapper a {
    cursor: pointer;
    text-decoration: none;
}

form input[type="text"]:disabled {
    border-color: var(--grey);
    color: var(--grey);
    opacity: 1;
    cursor: default;
}

form .notice {
    font-size: 12px;
    display: flex;
    justify-content: flex-end;
}

form .error-block {
    display: none;
    color: red;
    padding-top: 1rem;
}

form .error-block p {
    margin-bottom: 0;
}

.flexbox {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

form {
    display: flex;
    flex-direction: column;
    gap: var(--gap, 2rem)
}

form .category {
    display: flex;
    flex: inherit;
    gap: inherit;
    flex-direction: column;
    width: 100%;
}

form [data-mode="edit"] .fields {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    grid-auto-flow: dense;
}

form [data-mode="edit"] .fields > .pagination {
    grid-row-start: 1;
    grid-column-start: 1;
}

form [data-mode="edit"] .fields > fieldset {
    grid-row-start: 2;
    grid-column-start: 1;

    padding: 2em 0;
}

@media (max-width: 768px) {
    form [data-mode="edit"] .fields {
        display: grid;
    }

    form [data-mode="edit"] .fields > * {
        grid-row-start: 1;
        grid-column-start: 1;
    }
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .25em .25em;
    width: 100%;
    align-items: center;
    appearance: none;
}

.pagination button {
    border-radius: 50%;
    min-width: 2.5rem;
    aspect-ratio: 1;
    display: flex;
    background-color: var(--orange);
    text-align: center;
    justify-content: center;
    align-items: center;
    color: var(--white);
    padding: 2px;
    cursor: pointer;
    transition: all .3s ease;
}

.pagination button.active {
    border: 2px solid var(--blue);
}

.pagination button[data-action="comment"] {
    background-color: red;
}

.pagination button[data-action="continue"] {
    background-color: green;
}

.pagination button[data-value="NR"] {
    background-color: var(--grey);
}

.form-group,
fieldset {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

fieldset + fieldset {
    /* border-top: 2px solid var(--orange);
    padding-top: calc(1rem + var(--gap));
    margin-top: -2px; */
}

/* .fields fieldset + fieldset .radio label:after {
    top: 0;
} */

fieldset p.radios {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    /* justify-content: center; */
}

legend {
    display: contents;
}

.fields .radio {
    display: inline-block;
    flex-grow: 100;
    min-width: min-content;
}

.fields .radio label {
    display: inline-block;
    padding: .5em 1em;
    border: 2px solid var(--blue);
    cursor: pointer;
    position: static;
    width: 100%;
    text-align: center;
}

.fields .radio input:checked ~ label {
    background-color: var(--blue);
    color: var(--white);
}

.fields .radio input {
    display: none;
}

.fields .radio label:after {
    content: '';
    position: absolute;
    left: calc(-2rem);
    top: 0;
    width: 1rem;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    transition: all .5s ease;
}

.fields .radio input[data-action="continue"]:not([value="NR"]):checked ~ label:after {
    background-color: green;
}

.fields .radio input[data-action="comment"]:not([value="NR"]):checked ~ label:after {
    background-color: red;
}

.fields .radio input[value="NR"]:checked ~ label:after {
    background-color: var(--grey);
}

.toggler {
    background: none;
    font-family: 'Continuum-Medium', sans-serif;
    font-size: 1.5em;
    text-align: left;
    line-height: 1;
    padding: 1em;
    padding-right: 2em;
    background-image: linear-gradient(var(--blue)), linear-gradient(var(--blue));
    background-size: 1em 2px, 2px 0;
    background-position: calc(100% - 0.5em) 50%, calc(100% - 1em) 50%;
    background-repeat: no-repeat;
    transition: all .3s ease;
    border: 2px solid var(--orange)
}

.toggler[aria-expanded="false"] {
    background-size: 1em 2px, 2px 1em;
}

.toggler .status {
    font-size: 0.66em;
}

.toggler * {
    font: inherit;
    hyphens: auto;
}

.button.toggler::after, .button.toggler::before {
    content: none;
}

.radios .type {
    padding: .5em;
    border: 2px solid var(--blue);
    /* color: var(--white); */
    font-size: 1em;
    text-align: center;
}

.radios .type[data-type="NO"] {
    border-color: red;
}

.radios ~ div .form-text,
.radios ~ .form-text {
    padding: .5em;
    background-color: red;
    color: var(--white);
    font-size: 1em;
    display: block;
}

#pdf {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    text-align: center;
}


.risk-assessments-form .load {
    padding: 10px;
    margin-top: 10px;
    display: none;
}

.risk-assessments-form .load.success {
    color: #28a745; /* grün */
}

.risk-assessments-form .load.error {
    color: red; /* rot */
}

.popup-select .form-row{
    display: flex;
    flex-direction: column;
    padding: 1rem;
}
.popup-select .form-row:nth-child(3){
    flex-direction: row;
    justify-content: flex-end;
}