:root {

    --primary-color: #B92945; /* imos red */

    --primary-border: #B92945; /* imos red for borders */

    --secondary-color: #B92945; /* imos red */

    --secondary-border: #B92945; /* imos red for borders */

    --bg-color: #ffffff; /* Charcoal Gray */

    /* --text-color: #000000; Black */

    --text-color: #000000; /* Black */

    --accent-color: #B92945; /* imos red */

    --link-color: #3498DB; /* Blue */

    --error-color: #E74C3C; /* Red */

    --success-color: #27AE60; /* Teal */

    --warning-color: #F39C12; /* Yellow */

}

body {
    margin: 0;
    min-height: 100vh;

    font-family: sans-serif;

    background-color: var(--bg-color);
}

a, a:visited {
    color: var(--text-color);
    text-decoration: none;
}

.frame {
    height: 100%;
}

h1, h2, h3, h4, h5, h6, p, span {
    margin: 0;
    color: var(--text-color);
}

header {
    background-color: var(--bg-color);
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;

    border-bottom: 2px solid var(--accent-color);

    position: sticky;
    top: 0;

    /* one below plugin */
    z-index: 49;

    box-shadow: darkslategray 0px 0px 25px;
}

header .center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

header .left, header .right {
    display: flex;

    gap: 5px;
}

header .user-menue {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
}

header .user-menue-logo {
    height: 32px;
    width: 32px;
}

#user-menue-account-btn {
    display: flex;
    align-items: center;
}

header .user-menue p {
    font-size: 0.85em;
}

header .user-menue-info {
    position: absolute;
    right: 0;
    top: 40px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    background-color: var(--bg-color);
    border: 1px solid var(--accent-color);
    border-radius: 10px;

    padding: 10px;
}

button, input[type='submit'] {
    background-color: inherit;
    color: var(--text-color);
    border: none;
    padding: 0;
    margin: 0;
}

.button {
    position: relative;

    overflow: hidden;

    padding: 7.5px 10px;

    border: solid 1px var(--accent-color) !important;
    border-radius: 5px;

    font-size: 0.85em;

    font-family: inherit;
}

.button.primary {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-border);
	color: #ffffff !important;
}

.button.secondary {
    background-color: var(--secondary-color);
    border: 1px solid var(--secondary-border);
	color: #ffffff !important;
}

.modal-base {
    position: fixed;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    z-index: 1050;

    backdrop-filter: blur(5px);
}

.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;

}

.modal .inner-modal {
    width: 15%;
    padding: 25px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    border-radius: 10px;
    background-color: var(--bg-color);

    border: 1px solid var(--accent-color);
}

button:hover {
    cursor: pointer;
}

.hidden {
    visibility: hidden;
}

.disabled:hover {
    cursor: not-allowed;
}

.disabled {
    border-color: var(--accent-color);
    opacity: 0.6;
}

imos-net-plugin, imos-net-roomplanner-plugin {
    position: absolute;
    inset: 0;
    z-index: 50;
}

@keyframes loadingSpinner {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay {
    position: absolute;
    height: 100%;
    width: 100%;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    backdrop-filter: blur(5px);

    z-index: 1010;
}

.loading {
    border-radius: 9999px;

    animation: loadingSpinner 1s linear infinite;
}

.loading-small {

    max-height: 80%;
    aspect-ratio: 1;

    height: 50px;
    /* width: 50px; */
    border-top: 1px solid var(--accent-color);
}

.loading-large {
    height: 150px;
    max-height: 80%;
    aspect-ratio: 1;
    border-top: 3px solid var(--accent-color);
}

/* check from here where to move */

#modal-create-basket input,
#modal-create-basket button {
    height: 40px;
    width: 100%;

    border-radius: 5px;

    box-sizing: border-box;
}

.modal h3, .modal p {
    text-align: center;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* all other basket css are in the BasketController->Index */
/* as I'm too lazy to put it somewhere else or make it more general */
/* TODO: maybe change the mentioned above; idk what I even mean */


.modal-baskets-wrapper {
    display: flex;
    flex-direction: column;

    gap: 10px;

    overflow: auto;

    padding: 10px;
}

.modal-baskets-wrapper p {
    text-align: center;
}

.modal-baskets-wrapper .basket-image {
    height: 64px;
    width: 64px;
}

.max-h-small {
    max-height: 450px;
}

/*
==========================================
        BasketController->index
==========================================
*/


.baskets-wrapper {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    padding: 25px;
}

.basket-container {
    position: relative;

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin: 0 5px;

    border: solid 1px var(--accent-color);
    border-radius: 10px;
    padding: 5px;

    background-color: var(--bg-color);
}

.basket-image-container {
    display: flex;
    align-items: center;

}

.basket-image {
    height: 86px;
    width: 86px;
    border-radius: 10px;
}

.basket-info-container {
    grid-column: span 4;
    display: grid;

    /* Have a look here */
    grid-template-rows: repeat(3, 1fr);
}

.basket-title {
    text-align: center;
    align-self: center;
}

.basket-item-count span {
    font-weight: bold;
}

.basket-item-count {
    /* align-self: end; */
    flex-grow: 1;
}

.basket-user {
    align-self: center;
}

.basket-details-container {
    align-items: end;
    font-size: small;
    display: flex;
}

.basket-total-price span {
    font-weight: bold;
}

.no-baskets-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5em;
}

.basket-download-zip-btn {
    position: absolute;
    top: 5px;
    right: 5px;
}

/*
==========================================
        BasketController->show
==========================================
*/

.content-wrapper {
    padding: 25px;
}

.basket-item-wrapper {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 25px;

}

.basket-item-container {
    /* height: fit-content; */

    border: 1px solid var(--accent-color);
    border-radius: 10px;

    background-color: var(--bg-color);

    padding: 5px;
    gap: 5px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);

    position: relative;
    overflow: hidden;
}

.basket-item-configure-container {
    position: absolute;
    top: 5px;
    right: 5px;
}

.basket-item-configure-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.basket-item-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.basket-item-image {
    height: 86px;
    width: 86px;
    border-radius: 10px;
}

.basket-item-info-container {
    grid-column: span 4;

    display: grid;
    gap: 10px;
}

.basket-item-title {
    text-align: center;
    align-self: center;

    font-size: large;
}

.basket-item-price span {
    font-weight: bold;
}

.basket-item-price {
    align-self: end;
    font-size: small;
}

.basket-item-description {
    align-self: center;

    font-size: small;
}

.basket-empty-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5em;
}

/*
==========================================
        ArticleController->index
==========================================
*/

.articles-wrapper {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 25px;

}

.article-container {
    border: 1px solid var(--accent-color);
    border-radius: 10px;

    background-color: var(--bg-color);

    overflow: hidden;

    padding: 5px;
    gap: 5px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);

    position: relative;
}

.article-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image {
    height: 86px;
    width: 86px;
    border-radius: 10px;
}

.article-info-container {
    grid-column: span 4;

    display: grid;
    grid-template-rows: repeat(3, 1fr);

}


.article-title {
    text-align: center;
    align-self: center;
}

.article-imos-catalog, .article-imos-article {
    align-self: center;
}

.article-imos-catalog span, .article-imos-article span {
    font-weight: bold;
}

.article-info-details-wrapper {
    grid-row: span 2;

    display: flex;
}

.article-info-details-container {
    flex-grow: 1;
    display: grid;
    grid-template-rows: repeat(2, 1fr);
}

.article-info-configure-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-info-configure-btn {
    padding: 2px;
}

.price-tag {
    font-size: 0.85em;
}

.price-tag-wrapper {
    position: absolute;
    right: 120px;
    bottom: 10px;
    z-index: 1000;
}

.price-tag-container {
    position: relative;

    background-color: var(--bg-color);
    color: var(--text-color);

    padding: 7.5px 10px;
    border-radius: 5px;

    border: solid 1px var(--accent-color);

    overflow: hidden;
}



/*
==========================================
        ArticleController->show
==========================================
*/

.save-button {
    z-index: 1000;
    position: absolute;
    right: 10px;
    bottom: 10px;
}

.save-roomplanner {
    right: 150px !important;
}


/*
==========================================
  UserController->showLogin/showRegister
==========================================
*/

.register-login-form {

    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    width: 10%;
    margin: auto;

    background-color: var(--bg-color);
    border: 1px solid var(--accent-color);
    padding: 25px;

    border-radius: 15px;
}

.register-login-form form {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    gap: 10px;
}

.register-login-form input, .register-login-form button {
    height: 40px;
    border-radius: 10px;

}

input[type='text']:not(.mat-mdc-input-element),
input[type='password']:not(.mat-mdc-input-element),
input[type='text']:not(.mat-mdc-input-element)::placeholder,
input[type='password']:not(.mat-mdc-input-element)::placeholder {
    background-color: var(--bg-color);
    color: var(--text-color);
}

input:focus:not(.mat-mdc-input-element) {
    outline: none;
    border: 1px solid var(--secondary-color);
}

.form-text {
    font-size: small;
    margin-top: 10px;

    text-align: center;
}

.underline, .underline:visited {
    text-decoration: underline !important;
}


/*
==========================================
        ErrorController->customError
==========================================
*/

.error-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    flex-direction: column;
    gap: 25px;
}

.error-container > h1 {
    font-size: 5em;
    text-align: center;
}

.error-container > h3 {
    font-size: 2em;
    text-align: center;
}

.error-container > p {
    font-size: 1.5em;
}



/* only adapted to QHD!!! */

@media (min-width: 640px) {
    .baskets-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .basket-item-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .articles-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    /* .baskets-wrapper {
        grid-template-columns: repeat(3, 1fr);
    } */
}

@media (min-width: 1024px) {
    .baskets-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
    .basket-item-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
    .articles-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    /* .baskets-wrapper {
        grid-template-columns: repeat(4, 1fr);
    } */
}

@media (min-width: 1536px) {
    .baskets-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
    .basket-item-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
    .articles-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1921px) {
    .baskets-wrapper {
        grid-template-columns: repeat(5, 1fr);
    }
    .basket-item-wrapper {
        grid-template-columns: repeat(5, 1fr);
    }
    .articles-wrapper {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 2264px) {
    .baskets-wrapper {
        grid-template-columns: repeat(6, 1fr);
    }
    .basket-item-wrapper {
        grid-template-columns: repeat(6, 1fr);
    }
    .articles-wrapper {
        grid-template-columns: repeat(6, 1fr);
    }
}