@font-face {
    font-family: 'Montserrat';
    font-weight: 400;
    font-style: normal;
    src: url('Montserrat.woff2') format('woff2');
}

body {
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    margin: 0;
}
img {
    overflow-clip-margin: unset;
    overflow: unset;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

#wrapper {
    width: 100%;
}

#wrapper.fixed {
    overflow: hidden;
}
.vera-logo-wrapper {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ccc;
}

/* remove controls from number input */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

/* region Header */
.header {
    width: 70%;
    color: rgb(33, 37, 41);
}
.header-primary {
    text-align: center;
    font-size: 32px;
    font-weight: 400;
}
.header-secondary {
    text-align: center;
    font-size: 1rem;
    white-space: pre-line;
    line-height: 1.5;
    margin-bottom: 0;
    fill: rgb(0, 0, 238);
}
a:hover {
    color: #f39200;
    text-decoration: none;
}
a:hover path {
    stroke: #f39200;
}
/* endregion Header */

/* region Content-Wrapper */
.content {
    width: 70%;
}
.content-header {
    margin: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    padding: 0 1rem 0 1rem;
}

/* endregion Content-Wrapper */

/* region Produkt Grid and Items */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 2rem 0 2rem;
}

.product-item {
    flex: 1 1 100%;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: start;
}

.product-item:hover {
    background-color: rgb(240, 240, 240);
}

.product-item img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    max-height: 20rem;
}
.product-item-title {
    text-transform: uppercase;
    font-size: 1.375rem;
    line-height: 1.3;
    margin-bottom: 0;
    margin-top: 0;
}

.product-item-subtitle {
    font-weight: bolder;
    font-family: "Montserrat", sans-serif;
    hyphens: auto;
    line-height: 1.5;
    color: #212529;
    font-size: 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.product-item-description {
    white-space: break-spaces;
    margin-top: 0.8rem;
}

.product-item-category {
    margin-top: 0.3rem;
    width: fit-content;
    border: 1px solid rgb(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 5px;
}
.pdf-download-button {
    padding: 0.5rem 1rem;
    border-radius: 0.7rem;
    background-color: #007bff;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.product-item-image-container {
    width: 20%;
    flex-shrink: 0;
}
.product-item-text-container {
    text-align: left;
    padding-left: 1rem;
    flex-grow: 1;
}


.product-item-action {
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    flex-shrink: 0;
    justify-content: end;
}
.add-product-warenkorb-container {
    border: 1px solid #cccccc;
    padding: 0.5rem;
    margin: 0.5rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.add-product-warenkorb-container p{
    margin: 0.25rem 0.25rem 0.5rem 0.25rem;
}

.add-product-warenkorb-buttons {
    margin: 0 1rem;
}

.add-warenkorb-button {
    padding: 0.5rem 1rem;
    border-radius: 0.7rem;
    background-color: #01468e;
    cursor: pointer;
    color: white;
    margin: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-warenkorb-button:hover {
    background-color: #003268;
}

.add-warenkorb-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.pdf-download-buttons {
    display: flex;
    justify-content: start;
    gap: 1rem;
    margin-top: 1rem;
}

.cart-icon {
    height: 1em;
    font-weight: 300;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    margin-top: -3px;
}
/* endregion Produkt Grid and Items */

/* region Warenkorb */

.warenkorb-button {
    padding: 0.5rem 1rem;
    border: 2px solid rgb(1, 70, 142);;
    border-radius: 0.7rem;
    background-color: rgb(1, 70, 142);
    cursor: pointer;
    color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.warenkorb-button:hover {
    background-color: rgb(78, 78, 78);
}

.warenkorb-button-container.fixed {
    position: fixed;
    top: 100px;
    right: 150px;
    z-index: 1000;
}

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
}




.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-width: 400px;
    z-index: 1001;
}

.popup p {
    margin: 0;
    cursor: default;

}
.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.popup-header p {
    text-align: center;
    width: 100%;
}
.popup-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-direction: column;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #ccc;
}
.popup-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}
.close-popup {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0.8rem;
    cursor: pointer;
    transform: scale(2);
}

.warenkorb-items {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-direction: column;
    font-size: 0.9rem;
}

.warenkorb-item {
    display: flex;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    padding: 1rem;
    flex-direction: row;
}

.warenkorb-item img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    max-height: 5rem;
    min-width: 5rem;
    object-fit: contain;
}

.warenkorb-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.5rem;
    width: 100%;
}

.warenkorb-item-actions {
    display: flex;
    justify-content: space-around;
}

.warenkorb-bestellen-button {
    padding: 0.5rem 1rem;
    border-radius: 0.7rem;
    background-color: #007bff;
    cursor: pointer;
    color: white;
}

.warenkorb-bestellen-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.warenkorb-button-container {
    top: 0;
    position: sticky;
    align-self: flex-start;
    height: 3rem;
}
.warenkorb-count {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #ccc;
    padding: 0.5rem;
    width: 1rem;
    height: 1rem;
    top: -1rem;
    left: 5rem;
    border: 1px solid #ccc;
}
.warenkorb-count.append {
    animation: append 1s;
}
.warenkorb-count.fade {
    animation: fade 2s;
}


.warenkorb-item-remove {
    cursor: pointer;
    color: red;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
/* endregion Warenkorb */

/* region Order */


.order-item {
    display: flex;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    padding: 1rem;
    flex-direction: row;
    margin-bottom: 0.5rem
}


.order-item img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    max-height: 10rem;
    min-width: 10rem;
    object-fit: contain;
}

.order-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.5rem;
    width: 100%;
    margin: 0;
}

.order-item-title {
    text-transform: uppercase;
    font-size: 1.2rem;
    margin: 0;
}
.order-item-subtitle {
    font-weight: bolder;
    font-family: "Montserrat", sans-serif;
    hyphens: auto;
    color: #212529;
    margin: 0;
}

.order-item-category {
    margin-top: 0.3rem;
    width: fit-content;
    border: 1px solid rgb(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 5px;
}

.order-item-format {
    margin: 0;
}

.order-item-remove {
    cursor: pointer;
    color: red;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.order-item-menge-text {
    margin: 0;
    font-size: 0.8rem;
    color: #555555;
    align-self: end;
}


/* endregion Order */

/* region Category-Select */

.category-select-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-select {
    height: 3rem;
    padding: 0.5rem;
    font-size: 1rem;
    color: rgb(73, 80, 87);
    border: 2px solid #f29400;
    border-radius: 2px;
    font-weight: 400;
    line-height: 1.5;
    width: 400px;
    font-family: "Montserrat", sans-serif;
}

.category-select:focus {
    color: #495057;
    background-color: #fff;
    border-color: #ffc774;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(243, 146, 0, 0.25);
}

.reset-filter-button {
    padding: 0.5rem 1rem;
    border-radius: 0.7rem;
    background-color: #007bff;
    cursor: pointer;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.reset-filter-button.hidden {
    display: none;
}
/* endregion Category-Select */

/* region Menge-Input */
.menge-control {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.menge-control button {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    background-color: white;
    cursor: pointer;
}

.menge-control button:hover {
    background-color: rgb(240, 240, 240);
}

.menge-control input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    width: 3rem;
    text-align: center;
}

.menge-control input.error {
    border: 2px solid red;
}

.input-error-text {
    color: red;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* endregion Menge-Input */

/* region Animations */
@keyframes append {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    50% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fade {
    25% {
        opacity: 0.25;
    }

    50% {
        opacity: 1;
    }

    75% {
        opacity: 0.25;
    }

    100% {
        opacity: 1;
    }
}
/* endregion Animations */

.address-form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.address-form-label-wrapper {
    width: 30%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.address-form-input-wrapper .text-input {
    height: 40px;
    border: 2px solid #f29400;
    width: 100%;
    font-size: 1.2rem;
    padding-inline-start: 0.5rem;
}

.address-form-input-wrapper {
    width: 70%;
}

.address-form-error-text {
    color: red;
    margin-top: 0.5rem;
    min-height: 1rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.card-header {
    padding: 0.75rem 1.25rem;
    margin-bottom: 0;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

h5 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.card-title {
    margin-bottom: 0.75rem;
}

.customer-data {
    display: flex;
    flex-direction: row;
    justify-content: start;
}
.customer-data-item {
    min-width: 40%;
}
.customer-data-item p {
    margin: 0;
    line-height: 1.5;
}
.customer-data-item b {
    margin-bottom: 0.5rem;
}

.finish-order-container {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.bemerkungen-input {
    border: 2px solid #f29400;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    resize: vertical;
}

.empty-warenkorb-text {
    color: #aaa;
}

.format-select {
    height: 1.5rem;
    font-size: 1rem;
    color: rgb(73, 80, 87);
    border: 2px solid #f29400;
    border-radius: 2px;
    font-family: "Montserrat", sans-serif;
    text-align: center;
    margin-bottom: 1rem;
}

.format-select:focus {
    color: #495057;
    background-color: #fff;
    border-color: #ffc774;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(243, 146, 0, 0.25);
}

.format-select.error {
    border: 2px solid red;
}

/* region Fortschritt der Bestellung */

.process {
    display: flex;
    border-radius: 10px;
    color: #FFF;
    box-sizing: border-box;
    overflow: hidden;
    text-align: center;
    font-size: 0.8em;
    margin: 2rem 4rem;
}

.process-step {
    border-right: 1px solid #FFF;
    flex-grow: 1;
    padding: 10px 5px;
    color: #FFF;
    text-decoration: none;
    background-color: #01468e;
    cursor: default;
}

.process-step.active {
    background-color: #c07300 !important;
}
/* endregion Fortschritt der Bestellung */



.order-overview {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.order-control-buttons {
    display: flex;
    justify-content: end;
    margin-top: 2rem;
    gap: 0.5rem;
}

.order-prev-button {
    cursor: pointer;
    background-color: #01468e !important;
    border: 1px solid #01468e;
    text-transform: uppercase;
    padding: 0.5rem;
    color: #FFF;
}

.order-next-button {
    cursor: pointer;
    background-color: #01468e !important;
    border: 1px solid #01468e;
    text-transform: uppercase;
    padding: 0.5rem;
    color: #FFF;
}

.flyer {
    opacity: 0.4;
    position: absolute;
    pointer-events: none; /* Keine Events abfangen, nur Animation */
    transition: transform 0.8s ease-in-out; /* Dauer und Verlauf der Animation */
    transform-origin: center center; /* Wichtig, damit die Skalierung von der Mitte aus geht */
}

/* region Error-Alert */

.error-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    flex-direction: column;
    gap: 1rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    text-align: center;
    width: fit-content;
    border-radius: 0.5rem;
    padding: 0.7rem 2rem;
}

/* endregion Error-Alert */

/* region breakpoints */
@media screen and (max-width: 1800px) {
    .content {
        width: 75%;
    }
}

@media screen and (max-width: 1600px) {
    .content {
        width: 80%;
    }
}


@media screen and (max-width: 1400px) {
    .content {
        width: 90%;
    }

    .product-grid {
        padding: 0 2rem 0 2rem;
    }
    .content-header {
        padding: 0 1rem 0 1rem;
    }
}

@media screen and (max-width: 1100px) {
    .product-item-image-container {
        width: 100%
    }
    .product-item {
        flex-wrap: wrap
    }
    .category-select {
        width: 280px
    }
    .warenkorb-button-container.fixed {
        position: fixed;
        top: 50px;
        right: 100px;
        z-index: 1000;
    }
}

@media screen and (max-width: 750px) {
    .product-item {
        flex: 1 1 calc(50% - 1rem);
        align-items: center;
    }
    .category-select {
        width: 150px
    }
    .warenkorb-button-container.fixed {
        position: fixed;
        top: 25px;
        right: 50px;
        z-index: 1000;
    }

}

@media screen and (max-width: 500px) {
    .product-item {
        flex: 1 1 100%;
    }
    #wrapper {
        width: unset;
    }
    .product-item-image-container {
        margin-bottom: 1rem;
    }
}

@media (min-width: 1200px) {
    .order-overview {
        max-width: 720px;
    }
}
/* endregion breakpoints */

#order-popup > .popup {
    max-width: 500px;
    width: 100%;
}
#order-popup > .popup > .popup-content {
    border: none
}
#order-popup > .popup > .popup-footer {
    gap: 1rem;
}
#order-popup > .popup > .popup-footer > button {
    padding: 0.5rem 1rem;
    border-radius: 0.7rem;
    background-color: #007bff;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
#order-popup > .popup > .popup-footer > button:hover {
    background-color: #0056b3;
}
#order-popup > .popup > .popup-footer > button:last-of-type {
    background-color: #8e8e8e;
}
#order-popup > .popup > .popup-footer > button:last-of-type:hover {
    background-color: #7a7a7a;
}