﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

/* Defines primary button colors 
payART:
    --brand-button-color: white;
    --brand-button-bkcolor: #8b288b;
    --brand-nav-link-color: #c69f00;
Mainova:
    --brand-button-color: white;
    --brand-button-bkcolor: #ed2939;
    --brand-nav-link-color: #002c77;

included by 
'common.css'
'mainova.css'

:root {
    --brand-button-color: white;
    --brand-button-bkcolor: #8b288b;
    --brand-nav-link-color: #c69f00;
}
*/

/* Set max width */
@media (min-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

/* Set padding to keep content from hitting the edges */
.jumbotron {
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    background-color: #e9ecef;
    border-radius: 0.3rem;
}

@media (min-width: 576px) {
    .jumbotron {
        padding: 2rem 2rem;
    }
}

.jumbo-content {
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.3rem;
}

@media (min-width: 576px) {
    .jumbo-content {
        padding: 2rem 2rem;
    }
}

.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

.navbar {
    min-height: 30px;
    font-size: 16px;
}

.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

.nav-pills .nav-link {
    color: var(--brand-nav-link-color);
}
.nav-pills .nav-link.active, 
.nav-pills .show > .nav-link {
    color: #fff;
    background-color: var(--brand-nav-link-color);
    border-color: var(--brand-nav-link-color);
}

/* general ColorScheme: Funktioniert nicht für IG accordion, später prüfen
.color-scheme {
    color: var(--brand-button-color);
    background-color: var(--brand-button-bkcolor);
    border-color: var(--brand-button-bkcolor);
}
.ui-igaccordion-header {
    color: var(--brand-button-color);
    background-color: var(--brand-button-bkcolor);
    border-color: var(--brand-button-bkcolor);
}
*/

/* override bootstrap btn-secondary 
ColorScheme: 
btn-primary 
    default, disabled
        background-color: #007bff;
        border-color: #007bff;
    hover            
        background-color: #0069d9;
        border-color: #0062cc;
btn-danger
    default, disabled
        background-color: #dc3545;
        border-color: #dc3545;
    hover            
        background-color: #c82333;
        border-color: #bd2130;

*/
.btn-primary {
    color: var(--brand-button-color);
    background-color: var(--brand-button-bkcolor);
    border-color: var(--brand-button-bkcolor);
}

.btn-primary:hover {
    color: var(--brand-button-color);
    background-color: var(--brand-button-bkcolor);
    border-color: var(--brand-button-bkcolor);
}

.btn-primary:focus, .btn-primary.focus {
  box-shadow: 0 0 0 0.2rem rgba(130, 138, 145, 0.5);
}

.btn-primary.disabled, .btn-primary:disabled {
  color: var(--brand-button-color);
  background-color: var(--brand-button-bkcolor);
  border-color: var(--brand-button-bkcolor);
}

.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
  color: var(--brand-button-color);
  background-color: var(--brand-button-bkcolor);
  border-color: var(--brand-button-bkcolor);
}

.btn-primary:not(:disabled):not(.disabled):active:focus, .btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(130, 138, 145, 0.5);
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}
.footer-copyright {
    display: none;
}
.footer-link {
    float: left;
}
@media (min-width: 576px) {
    .footer-copyright {
        display: block;
        float: left;
    }
    .footer-link {
        float: right;
    }
}

/* Make images use full width
-------------------------------------------------- */
.img-reference {
    display: block;
    float: initial;
    position: center;
    width: auto;
    max-width: 450px;
    height: auto;
    max-height: 400px;
    line-height: 1.42857143;
    margin: 10px;
    padding: 20px;
    border: 2px solid #ddd;
    -webkit-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

.header-container {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    position: center;
    margin-top: 10px;
}

.header-reference {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    position: center;
    margin-top: 10px;
}

/* Menu plan selector
-------------------------------------------------- */
/* Größe reduzieren */
igc-select {
    --ig-size: 0.85;
    width: fit-content !important;
    display: inline-block;
}

/* Input kleiner */
igc-select::part(input) {
    padding: 2px 6px;
    min-height: 28px;
    font-size: 0.9rem;
}

/* Fokus-Rahmen entfernen */
igc-select::part(input):focus {
    outline: none;
    box-shadow: none;
    border-color: transparent;
}

igc-select:focus-within {
    outline: none;
    box-shadow: none;
}

/* Dropdown kompakter */
igc-select::part(list) {
    font-size: 0.9rem;
    padding: 4px;
}


/* Menu plan selector
-------------------------------------------------- */
.pa-selectorarea {
    display: flex;
    width: 100%;
    font-family: "Segoe UI",Helvetica,Tahoma,Arial,Verdana,sans-serif;
    margin-top: 15px;
    margin-bottom: 15px;
    margin-right: 15px;
    margin-left: 15px;
}
.pa-selectweek {
    display: block;
    vertical-align: middle;
    text-align: center;
}
.pa-selectfont {
    font-size: large;
}


/* Menu plan
-------------------------------------------------- */
.pa-menuplan {
    display: block;
    width: 100%;
    font-family: "Segoe UI",Helvetica,Tahoma,Arial,Verdana,sans-serif;
}

.pa-menuplan-info {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.pa-menuplan-info .sep {
    margin: 0 20px;
    opacity: 0.6;
}

.pa-menuplan-table {
    font-size: 90%;
    background-color: #f5f5f5;
    border: 2px solid #000;
}

.pa-menuplan-row {
}

.pa-menuplan-cell {
    vertical-align: top;
    margin: 0px 0px 0px 0px;
    border: 1px solid #000;
    padding: 6px 6px 6px 6px;
    width: 13%;
    z-index: 1001;
/*
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100%;
*/
}

.pa-menuplan-header {
    vertical-align: top;
    margin: 0px 0px 0px 0px;
    padding: 6px 6px 6px 6px;
    background-color: #d3d3d3;
    font-size: 100%;
    font-weight: 700;
}

.pa-menuplan-footer {
    vertical-align: top;
    margin: 0px 0px 0px 0px;
    padding: 6px 6px 6px 6px;
    background-color: #d3d3d3;
    font-size: 100%;
    font-weight: 700;
}


/* ordered label
-------------------------------------------------- */
.ordered-label {
    color: black;
    background-color: #90EE90;
    border: 0px;
    padding: 0.2rem 0.6rem;
    font-size: 1rem;
    line-height: 1.5;
    z-index: 1000;
/*
    justify-self: end;
    align-self: flex-end;
*/
}

.ordered-label-disabled {
    background-color: #D3D3D3;
}


/* Menu cart
-------------------------------------------------- */
.pa-menucart {
    display: block;
    width: 100%;
    font-family: "Segoe UI",Helvetica,Tahoma,Arial,Verdana,sans-serif;
}

.pa-menucart-empty {
    text-align: center;
    color: gray;
    margin-top: 20px;
}

.pa-menucart-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    grid-template-columns: 80px auto;
}

.pa-menucart-date {
    vertical-align: top;
    margin: 0px 0px 0px 0px;
    padding: 6px 6px 6px 6px;
    background-color: #d3d3d3;
    font-size: 100%;
    font-weight: 700;
}


/* Menu order modal window
-------------------------------------------------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 480px;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1001;
}

.modal-header {
    color: var(--brand-button-color);
    background-color: var(--brand-button-bkcolor);
    padding: 20px;
    text-align: center;
}

.modal-body {
    padding: 20px;
}

/* Bild links, Text rechts */
.modal-row-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
    align-items: center;
}

.modal-meal-text-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
}

/* Order Section */
.modal-order-section {
    margin-top: 20px;
    text-align: center;
}

.modal-order-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.modal-spinner-button {
    width: 40px;
    background: #eee;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.modal-amount-input::-webkit-inner-spin-button,
.modal-amount-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.modal-amount-input {
    -moz-appearance: textfield; /* Firefox */
}

.modal-amount-input {
    width: 70px;
    text-align: center;
    border-radius: 4px;
    padding: 6px;
}

.modal-submit-button {
    margin-top: 20px;
    padding: 10px;
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
}

.modal-error-text {
    color: red;
    margin-top: 10px;
}

