html {
    scroll-padding-top: 10rem;
}

*{
    scroll-behavior: initial;
}

.default-button.minor {
    padding: 0.5rem 1rem 0.5rem 1rem;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
}

.bestellformular {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-y: hidden;
}

strong{
    color: #000;
}

main > .smallerh1 {
    margin: 1rem 0;
    margin-left: 0;
    text-align: center;
}

.errorbox {
    border-radius: 2rem;
    padding: 2rem;
    background-color: #c8141e33;
    color: #c8141e;
    border: 1px solid #c8141e;
    scroll-behavior: smooth;
}

.space-between{
    display: flex;
    justify-content: space-between;
}

.spacing{
    margin: 1rem 0;
}

.top-space {
    margin-top: 2rem;
}

.small-top-space {
    margin-top: 1rem;
}

.section{
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.text-center{
    text-align: center;
}

.small-padding{
    padding: 1rem;
}

.section > p {
    margin: 0.25rem 0;
}

.section > h2 {
    margin-bottom: 0.5rem;
}

.section .section__header{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section.orderinfo div p {
    padding: 0.5rem 0;
    border-bottom: 1px solid #dadde2;
}

.section.infobox {
    border: 1px solid #f2e400;
    background-color: #f6f4ce;
    border-radius: 2rem
}

    .section ul li, .section ol li {
        margin-left: 2rem;
    }

.tooltip {
    background: #1478C833; 
    border: 1px solid #1478c855;
    padding: 0.5rem;
    border-radius: 1rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tooltip img{
    height: 25px;
}

.tooltip .text-body{
    font-size: 16px;
}

.section .reginfo{
    margin-top: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.section .flex-row{
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
}

.section .flex-row button{
    margin-left: auto;
}

.section .align-center{
    align-items: center;
}


.default-button{
    width: fit-content;
    height: fit-content;
    display: inline-block;
}

.spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: .25em solid #C8141E;
    border-right-color: transparent;
    border-radius: 50%;
    color: #C8141E;
    -webkit-animation: spinner .75s linear infinite;
    animation: spinner .75s linear infinite;
    margin-right: 20px;
}

.hide {
    display: none;
}

.margin-left-auto{
    margin-left: auto;
}

.spinner-big {
    width: 3rem;
    height: 3rem;
}

.spinner-small {
    width: 1rem;
    height: 1rem;
    border: .15em solid #C8141E;
    border-right-color: transparent;
    margin-right: 1rem;
}

.errorbox ol {
    font-size: 18px;
    margin: 1rem 0 0 2rem;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.toast {
    width: 33.33%;
    margin-left: -16.66%;
    background-color: #fff;
    box-shadow: rgba(0,0,0,0.4) 0 0 20px;
    color: #000;
    text-align: center;
    border-radius: 2rem;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 0;
    opacity: 0;
}


    .toast.errortoast {
        background-color: #C8141E;
        color: #fff;
    }

    .toast.successtoast {
        background-color: #21832A;
        color: #fff;
    }

    .toast.show {
        z-index: 100;
        animation: fade ease-in-out 3s;
    }


@keyframes fade {
    0% {
        bottom: 0;
        opacity: 0;
    }

    10% {
        bottom: 5rem;
        opacity: 1;
    }

    90% {
        bottom: 5rem;
        opacity: 1;
    }

    100% {
        bottom: 0;
        opacity: 0;
    }
}

#finishedInstallationPassword {
    margin-left: 1rem;
    border: 1px solid #8f9aa8;
    padding: 0.5rem;
    border-radius: 1rem;
}

.section .section__header .section__header__heading {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

    .section .section__billing .radiobox, .section .section__billing {
        margin-top: 1rem;
    }

    .section .inputbox:first-child{
        margin-top: 1rem;
    }

.radiobox label{
    padding-left: 0.5rem;
}

.textareabox.no-margin{
    margin-top: 0;
}

.textareabox{
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
}

    .textareabox textarea {
        border: 1px solid #dadde2;
        padding: 0.5rem;
        border-radius: 5px;
        line-height: 1.5rem;
        margin: 0.5rem 0;
        font-size: 18px;
        outline: none;
        width: 45rem;
        max-width: 100%;
    }

        .textareabox textarea#cert-request {
            font-family: monospace;
        }
        .textareabox textarea#seal_cert-request {
            font-family: monospace;
        }

.inputbox {
    position: relative;
}

    .inputbox .input {
        border: 1px solid #dadde2;
        border-radius: 5px;
        padding: 0.75rem 0.5rem 0.5rem 0.5rem;
        line-height: 1.5rem;
        margin: 0.5rem 0;
        font-size: 18px;
        outline: none;
        transition: border-color 200ms ease-in-out;
        width: 50%;
    }

        .inputbox .input:focus {
            border-color: #1478C8;
        }

    .inputbox__infotext{
        margin-top: -0.4rem;
        margin-left: 0.5rem;
        font-size: 15px;
        line-height: 22px;
    }

    .radiobox__infotext {
        margin-left: 0.5rem;
        font-size: 15px;
        line-height: 22px;
    }

.inputbox label {
    position: absolute;
    left: 0.5rem;
    top: 1.4rem;
    transition: font-size 200ms ease-in-out, top 200ms ease-in-out;
    line-height: 1;
    padding: 0 0.5rem;
    cursor: text;
    background: #fff;
}

    .inputbox .input:focus ~ label,
    .inputbox .input:not(:placeholder-shown).input:not(:focus) ~ label {
        top: 0.25rem;
        font-size: 12px;
    }

    .inputbox .input:disabled{
        background-color: #f5f5f5;
    }

        .inputbox .input:disabled:placeholder-shown ~ label {
            color: #dadde2;
            background-color: #f5f5f5;
        }

.documentupload {
    display: flex;
    flex-wrap: wrap;
    padding: 2rem;
    gap: 2rem;
    align-items: center;
}

.documentupload select {
    height: fit-content;
    border: 1px solid #dadde2;
    border-radius: 5px;
    padding: 0.75rem 0.5rem 0.5rem 0.5rem;
    line-height: 1.5rem;
    margin: 0.5rem 0;
    font-size: 18px;
    outline: none;
    transition: border-color 200ms ease-in-out;
}

    .documentupload button, .documentupload #uploaddocument_spinner {
        margin-left: auto;
    }

.documenttable{
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

    .documenttable .documenttable_nodocument{
        display: flex;
        justify-content: center;
        margin-top: 2rem;
    }

    .documenttable .download-document{
        border: none;
        background: none;
        cursor: pointer;
    }

    .documenttable .document_name {
        text-align: left;
        font-size: 15px;
    }

    .documenttable > div {
        display: grid;
        grid-template-columns: 2fr 2fr 2fr 1fr 1fr;
        align-items: center;
        border-bottom: 1px solid #dadde2;
    }

    .documenttable > div:last-child {
        border-bottom: none;
    }

    .documenttable select{
        border: 1px solid #dadde2;
        font-size: 15px;
        border-radius: 5px;
        padding: 5px;
    }


.documenttable > div div {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 1rem;
    border-right: 1px solid #dadde2;
}

    .documenttable > div div:last-child {
        border-right: none;
    }

.documenttable_document div:last-child {
    margin-left: auto;
}

.document_status{
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.document_status::before {
    content: " ";
    display: inline-block;
    height: 15px;
    width: 15px;
    border-radius: 50%;
}

    .document_status.success::before {
        background-color: #1EC814;
    }

    .document_status.error::before {
        background-color: #C8141e;
    }

    .document_status.incheck::before {
        background-color: #e86017;
    }

.customerlink {
    display: flex;
    justify-content: flex-end;
}

.orderbox{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.registrierungsstelle{
    padding: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.registrierungsstelle .terminvereinbarung{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.5rem;
}

#signdocument-iframe{
    display: flex;
    padding: 2rem;
    margin: auto;
    border: 1px solid #dadde2;
    border-radius: 2rem;
}

/* Progress Bar */
.checkout-wrap {
    color: #444;
    max-width: 1200px;
    position: relative;
}

.visuallyhidden {
    visibility: hidden;
    position: absolute;
}

ol.checkout-bar {
    margin: 0;
}

    ol.checkout-bar li {
        color: #656e7b;
        display: block;
        font-size: 16px;
        padding: 14px 20px 14px 80px;
        position: relative;
        white-space: nowrap;
        z-index: 50;
    }

        ol.checkout-bar li:before {
            background: #dadde2;
            border: 3px solid #FFF;
            border-radius: 50%;
            color: #656e7b;
            font-size: 20px;
            left: 20px;
            line-height: 34px;
            height: 35px;
            position: absolute;
            text-align: center;
            top: 4px;
            width: 35px;
            z-index: 49;
            font-weight: 600;
        }

        ol.checkout-bar li.active {
            color: #ce161e;
            font-weight: bold;
        }

            ol.checkout-bar li.active:before {
                background: white;
                z-index: 50;
                border: 3px solid #CE161E;
                font-size: 20px;
                color: #ce161e
            }

        ol.checkout-bar li.visited {
            color: #CE161E;
            z-index: 50;
        }

            ol.checkout-bar li.visited:before {
                background: #ce161e;
                z-index: 50;
                color: white;
            }

        ol.checkout-bar li:nth-child(1):before {
            content: "1";
        }

        ol.checkout-bar li:nth-child(2):before {
            content: "2";
        }

        ol.checkout-bar li:nth-child(3):before {
            content: "3";
        }

        ol.checkout-bar li:nth-child(4):before {
            content: "4";
        }

        ol.checkout-bar li:nth-child(5):before {
            content: "5";
        }

        ol.checkout-bar li:nth-child(6):before {
            content: "6";
        }

    ol.checkout-bar a:not([href='']) {
        color: #ce161e;
        font-size: 16px;
        text-decoration: none;
    }

    ol.checkout-bar a[href=''] {
        color: #656e7b;
        text-decoration: none;
        cursor: default;
        font-size: 16px;
    }

@media all and (min-width: 1000px){
    .checkout-wrap {
        margin: 3rem auto 5rem auto;
    }

    .checkout-bar li.active:after {
        background-size: 35px 35px;
        background-color: #dadde2;
        content: "";
        height: 10px;
        width: 95%;
        left: 50%;
        position: absolute;
        top: -35px;
        z-index: 0;
    }

    ol.checkout-bar {
        background-size: 35px 35px;
        background-color: #dadde2;
        border-radius: 15px;
        height: 10px;
        margin: 0 auto;
        padding: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

        ol.checkout-bar:before {
            background-size: 35px 35px;
            background-color: #CE161E;
            border-radius: 15px;
            content: " ";
            height: 10px;
            left: 0;
            position: absolute;
            width: 20%;
        }

        ol.checkout-bar li {
            display: flex;
            justify-content: center;
            margin: 35px 0 0;
            padding: 0;
            text-align: center;
            width: 19%;
        }

        .checkout-bar.threesteps li {
            width: 33%;
        }

            ol.checkout-bar li:before {
                height: 45px;
                left: initial;
                line-height: 42px;
                position: absolute;
                top: -54px;
                width: 45px;
                z-index: 99;
            }

            ol.checkout-bar li.visited {
                background: none;
            }

                ol.checkout-bar li.visited:after {
                    background-size: 35px 35px;
                    background-color: #ce161e;
                    content: "";
                    height: 10px;
                    left: 50%;
                    position: absolute;
                    top: -35px;
                    width: 100%;
                    z-index: 48;
                }

            ol.checkout-bar li:last-of-type.visited:after {
                border-radius: 15px;
                width: 70%;
            }

            ol.checkout-bar.threesteps li:last-of-type.visited:after {
                border-radius: 15px;
                width: 52%;
            }
}