html {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  color: #3263A0;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 89px;
  bottom: 0px;
  width: 100%;
  overflow: auto;
  scrollbar-color: #3263A0 white;
  scrollbar-width: auto;
}

header {
  background-color: white;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  display: grid;
  grid-template-rows: 1.55rem 2.3rem 3.3rem;
  grid-template-columns: 16% 17% 17% 17% 17% 12% 4%;
  grid-template-areas:
"button1    button2    button3    button3    button4    PINputHeader newArtBtn   " 
"button1    button2    button3    button3    button4    logo         blank       " 
"categories categories categories categories categories logo         colourSwitch";
  align-items: center;
}

header:after {
  content: '';
  position: absolute;
  bottom: -25px; /* Adjust the value as needed for spacing */
  width: 100%;
  height: 25px;
  display: block;
  background-image: linear-gradient(to bottom, var(--main-color), transparent); /* Customize gradient colors */
}

.button {
  padding: 5px 10px;
  background-color: white;
  color: #3263A0;
  border: solid 1px;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  margin: auto 0;
  font-size: 20px;
/*  border-top: none;
  border-bottom: none; */
  transition: background-color 0.5s ease, transform 0.5s ease;
/*  border: none; */
  border-color: var(--main-color);
}

.button:hover {
  background-color: var(--main-color);
  transform: scale(1.1);
}

.logoSearchCart {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  height: 65px;
}

.delivery {
  background-color: transparent;
  grid-area: button1-start;
  text-align: center;
}

#deliveryButton {
  margin-top: 1.6rem;
  border-radius: 0px 0px 10px 10px;
}

.tools {
  text-align: center;
  background-color: transparent;
  grid-row-start: 1;
  grid-row-end: 3;
  grid-column-start: 1;
  grid-area: button2-start;
}

#toolsButton {
  margin-top: 1.6rem;
  border-radius: 0px 0px 10px 10px;
}

.search-container {
  text-align: center;
  background-color: white;
  grid-area: button3;
}

.button-container {
  text-align: left;
  background-color: white;
  grid-area: button4;
}

#viewCartButton {
/*  margin-left: -135px;    */
}

.logoNica {
  z-index: 1000;
  text-align: center;
  grid-area: logo;
  display: flex;
  justify-content: center;
  align-items: end;
  background-color: var(--logo-background-color);
}

.logoNica img {
/*  height: 74px;
  margin: 0;    */
  max-width: 100%;
}

header .clear-button{
  margin-top: 30px;
  padding: 5px 10px;
  color: #3263A0;
  font-size: 12px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  background-color: white;
  transition: all 0.5s ease;
}

header .clear-button:hover {
  background-color: red;
  color: white;
}

nav {
  width: 100%;
  grid-area: categories;
  background-color: var(--main-color);
  border-radius: var(--nav-border-radius);
  padding: 5.5px 0;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding-left: 30px;
  border-radius: 10px;
/*  white-space: nowrap; /* Prevent line breaks */
}

nav ul li {
  display: inline-block;
/*  margin-right: 8px;  */
  position: relative;
  border-radius: 10px;
  padding: 0px 16px;
}

nav ul a {
  color: #3263A0;
  text-decoration: none;
  display: block;
  padding: 10px 2px;
  margin: 0px 2px;
  font-size: 18px;
}

nav ul ul {
  display: none;
  position: absolute;
  background-color: var(--main-color-rgba);
  top: 100%;
  left: 0;
  margin: 0px;
  padding-left: 0px;
  white-space: nowrap;
  min-width: max-content; /* Use max-content to allow dynamic width based on content */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7); /* Add a shadow for a visual effect */
  z-index: 1000;
}

nav ul li:hover > ul {
  display: block;
}

nav ul li:hover {
  background-color: #8299cf; /* Highlight the hovered main category */
}

nav ul ul li {
  display: block;
  white-space: nowrap;
  margin-right: 0px;
}

nav ul ul li:hover {
  background-color: #8299cf; /* Highlight the hovered subcategory */
}

nav ul ul .products {
  position: absolute;
  display: none;
  top: 0;
  left: 100%;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Add a shadow for a visual effect */
  z-index: 1000; /* Ensure it's above other elements */
}

nav ul ul .productsLeft {
  position: absolute;
  display: none;
  top: 0;
  right: 100%;
  left: auto;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Add a shadow for a visual effect */
  z-index: 1000; /* Ensure it's above other elements */
}

.sub-sub-categories {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background-color: var(--main-color); /* Adjust the background color as needed */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Add a shadow for a visual effect */
}

nav ul ul li:hover .sub-sub-categories {
  display: block;
}

#searchBox {
  padding: 5px 15px;
  font-size: 20px;
  color: #3263A0;
  cursor: text;
  border-radius: 10px;
  border: solid 2px;
  border-top: none;
  border-left: none;
  border-right: none;
  border-color: var(--main-color);
  transition: background-color 0.5s ease; /* Add transition for background-color */
  text-align: center;
  width: 21rem;
}

::placeholder {
    font-style: italic;
    opacity: 0.7;
}

.search-results-dropdown {
  /* Styles for the search results dropdown */
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  font-size: 18px;
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
  z-index: 1001;
}

.search-results-dropdown ul {
  /* Styles for the results list */
  list-style-type: none;
  padding: 0;
  margin: 0px 0px;
  background-color: var(--main-color-rgba);
}

.search-results-dropdown ul li {
  /* Styles for each list item in the results */
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 9px;
}

/* Add a background color on hover */
.search-results-dropdown ul li:hover {
  background-color: #8299cf;
}

#dynamic-content {
  padding: 60px 0px 0px 0px;
  text-align: center;
  margin-bottom: 40px;
}

.productPresentation {
  display: grid;
  grid-template-areas:
    ". headline    headline    headline     ."
    ". slide       .           optionsCosts ."
    ". headerDisc  headerDisc  headerDisc   ."
    ". discription discription discription  ."
    ". dataheader  dataheader  dataheader   ."
    ". datasheet   datasheet   datasheet    ."
    ". prodoi      prodoi      prodoi       .";
  grid-template-columns: 0.1fr 1.5fr 0.1fr 1fr 0.1fr;
  grid-template-rows: 6rem 40rem 5rem auto 5rem auto 0.2fr;
  align-items: center;
  grid-row-gap: 1rem;
}

h2 {

}

.custom-confirm-button {
  border-radius: 1.25em;
}

.custom-cancel-button {
  border-radius: 1.25em;
}

.content-container {
  display: flex;
  margin: 25px 8%;
  min-height: 650px;
}

/* Slideshow Styles */
.slideshow-container {
/*  width: 60%; */
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center; /* Center vertically */
  grid-area: slide;
}

.mySlides {
/*  display: flex;
  justify-content: center;  */
  width: 100%; /* Ensure the slide takes the full width */
  height: auto;
}


.mySlides img {
  max-width: 100%; /* Ensure the image takes the full width of the slide */
  max-height: 40rem; /* Ensure the image takes the full height of the slide */
  object-fit: contain; /* Maintain the aspect ratio without stretching */
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2%;
  padding: 32px;
  color: black;
  font-weight: bold;
  font-size: 35px;
  transition: 0.8s cubic-bezier(.68,-0.55,.27,1.55);
  user-select: none;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  margin: auto;
}

.prev {
  left: 0;
  border-radius: 0;
}

.next {
  right: 0;
  border-radius: 0;
}

.prev:hover,
.next:hover {
  background-color: rgba(159, 155, 155, 0.25);
  display: flex;
}

/* Display prev and next buttons when hovering over the slideshow container */
.slideshow-container:hover .prev,
.slideshow-container:hover .next {
  display: flex;
}

.product-costsOptions {
/*  width: 40%; /* Adjust as needed */
  padding: 6% 3% 0;
  text-align: right;
  font-size: 20px;
  grid-area: optionsCosts;
}

.productOptions {
  height: 15rem;
}

.productDetails{
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr 0.1fr 0.6fr 0 0 0 0;
/*  margin: 10px 0 0;   */
  grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  height: 23rem;
  grid-template-areas:
    ". LabGew   Gewicht    .      PINtern  . .           . .             "
    ". LabAufw  Aufwand    .      PINtern  . labMargin   . labMargPercent"
    ". LabArtPr ArtPr      .      intArtPr . marginArtPr . margPercentAP "
    ". LabMonPr MonPr      .      intMonPr . marginMonPr . margPercentMP "
    ". LabKlt   Klt        .      intKlt   . .           . .             "
    ". LabGesPr GesPr      .      intGesPr . marginGesPr . margPercentGP "
    ". cartBtn  cartBtn    .      .        . .           . .             "
    ". cavioArt cavioArt   .      .        . .           . .             "
    ". .        sATCButton .      .        . .           . .             ";
    transition: grid-template-columns 0.3s ease;
    cursor: default;
}

.pinInput {
  color: #3263A0;
  border-radius: 10px;
  cursor: text;
  font-size: 13px;
  border: solid 2px;
  min-width: 18%;
  border-top: none;
  border-right: 0px;
  border-left: 0px;
  border-color: var(--main-color);
  margin: 0 auto 0.2rem;
  padding: 0.2rem 0;
  transition: background-color 0.5s ease;
  text-align: center;
  width: 100%;
}

.pinInput:focus {
  outline: none;
  background-color: var(--main-color);
}

.hidden-content {
  display: none; /* Versteckt den Inhalt der versteckten Spalte */
}

.productDetails.show-pin,
.productDetails.show-intAuf,
.productDetails.show-intArtPr,
.productDetails.show-intMonPr,
.productDetails.show-intKlt,
.productDetails.show-intGesPr {
  grid-template-columns: 0 1fr 1fr 0.05fr 0.6fr 0.05fr 0.6fr 0.05fr 0.6fr;
}

.productDetails.show-intArtPr .hidden-content,
.productDetails.show-intMonPr .hidden-content,
.productDetails.show-intGesPr .hidden-content {
  display: block; /* Der Inhalt wird angezeigt, sobald die Spalte sichtbar ist */
  font-size: 18px;
  font-style: italic;
}

.similar-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); /* Anpassbar */
  gap: 10px; /* Abstand zwischen den Buttons */
}

.similar-product-button {
  padding: 5px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid;
  border-radius: 10px;
  border-color: var(--main-color);
  color:#3263A0;
  background-color: white;
  transition: background-color 0.3s ease;
}

.similar-product-button:hover {
  background-color: #c5d4e9;
}
  
.similar-product-button.active {
  background-color: var(--main-color);
}

.productDetail{
  margin: 0;
}

.productDetailLabel{
  margin: 0;
}

#similarProductsDropdown {
  width: 90%;
  padding: 3px 10px;
  cursor: pointer;
}

.similar-products-dropdown select {
  color: #3263A0;
  font-size: 17px;
  background-color: #FBCA37;
  border: none;
  border-radius: 13px 13px 0px 0px;
/*  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;  */
}

.similar-products-dropdown select:hover {
  cursor: pointer;
}

 /* The container must be positioned relative: */
.custom-select {
  position: relative;
  font-family: Arial;
}

.custom-select select {
  display: none; /*hide original SELECT element: */
}

.select-selected {
  background-color: DodgerBlue;
}

/* Style the arrow inside the select element: */
.select-selected:after {
  position: absolute;
  content: "";
  top: 14px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #fff transparent transparent transparent;
}

/* Point the arrow upwards when the select box is open (active): */
.select-selected.select-arrow-active:after {
  border-color: transparent transparent #fff transparent;
  top: 7px;
}

/* style the items (options), including the selected item: */
.select-items div,.select-selected {
  color: #ffffff;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
  cursor: pointer;
}

/* Style items (options): */
.select-items {
  position: absolute;
  background-color: DodgerBlue;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
}

/* Hide the items when the select box is closed: */
.select-hide {
  display: none;
}

.select-items div:hover, .same-as-selected {
  background-color: rgba(0, 0, 0, 0.1);
} 




.addToCartButton {
  color: #3263A0;
  font-weight: bold;
  background-color: var(--main-color);
  font-size: 23px;
  border-radius: 0px 0px 25px 25px;
  border: none;
  padding: 10px 40px;
  display: inline-block;
/*  width: 30rem;   */
  transition: background-color 0.5s ease; /* Add transition for background-color */
/*  margin: 10px 0 0;   */
  grid-area: cartBtn;
}

.addToCartButton:hover {
  background-color: #8baad4;
  cursor: pointer;
  scale: 1.1;
}

.hr-top {
  border: 0 solid white;
  margin: 0% 0%;
  width: 100%;
  height: 30px;
  display: block;
  background-image: linear-gradient(to top, #FBCA37, transparent); /* Customize gradient colors */
}

.hr-bottom {
  border: 0 solid white;
  margin: 0% 0%;
  width: 100%;
  height: 5px;
  display: block;
  background-image: linear-gradient(to bottom, #FBCA37, transparent); /* Customize gradient colors */
}

h3 {
  margin-top: 3rem;
  grid-area: headerDisc;
  cursor: default;
  font-size: 23px;
  text-decoration-line: underline;
}

.description-container {
  text-align: left;
  margin: 0 10rem;
/*  display: flex;  */
  grid-area: discription;
  line-height: 1.3rem;
}

.productSlides {
    padding: 0 5rem;
    width: 23%;
}

.thumbnail {
    height: 15rem;
}

.toggle-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px auto;
}

.checkbox {
  display: none;
}

.toggle {
  width: 40px;
  height: 20px;
  background-color: #FBCA37;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  display: none;
}

.toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: #3263A0;
  border-radius: 50%;
  transition: transform 0.3s;
}

.checkbox:checked + .toggle::after {
  transform: translateX(20px);
}

.option1, 
.option2 {
  color: #B1ABAB; /* Default color for options */
  cursor: pointer;
  font-size: 28px;
}

.option1 {
/*  margin-right: 10px; /* Adjust spacing between Option 1 and toggle switch */
  color: #3263A0;
  width: 105px;
  height: 35px;
  transition: font-size 0.3s ease;
}

.option2 {
/*  margin-left: 10px; /* Adjust spacing between Option 1 and toggle switch */
  font-size: 20px;
  width: 230px;
  height: 35px;
  transition: font-size 0.3s ease;
}

.cartInfos {
  text-align: center;
}

#cartUser,
#cartCustomerInfo,
#cartAddItem {
  color: #3263A0;
  border-radius: 10px;
  cursor: text;
  font-size: 20px;
  border: solid 2px;
  min-width: 18%;
  border-top: none;
  border-right: 0px;
  border-left: 0px;
  border-color: var(--main-color);
  margin: auto auto 45px;
  padding: 5px 15px;
  transition: background-color 0.5s ease; /* Add transition for background-color */
  text-align: center;
}

#searchBox:hover,
#cartUser:hover,
#cartCustomerInfo:hover,
#cartAddItem:hover {
  outline: none;
  background-color: #c5d4e9;
}

#searchBox:focus,
#cartUser:focus,
#cartCustomerInfo:focus,
#cartAddItem:focus {
  outline: none;
  background-color: var(--main-color);
}

#searchBox:focus-visible,
#cartUser:focus-visible,
#cartCustomerInfo:focus-visible,
#cartAddItem:focus-visible {
  outline: none;
}

#cartUser {
  margin-left: 45px;
}

#cartCustomerInfo {
  margin-right: 45px;
}

.cartSummary {
  width: 100%;
  margin: 1rem auto 2rem;
  display: grid;
  grid-template-columns: 2% 12% 12% 12% 12% 12% 12% 12% 12% 2%;
  grid-template-rows: 40px 40px 40px;
  grid-auto-flow: row;
  align-items: center;
  font-size: 20px;
  grid-template-areas:
    ". . sumLabGew sumLabArtPr sumLabAufw sumLabMon sumLabKLT sumLabGesPr pin ." 
    ". . sumGew    sumArtPr    sumAufw    sumMon    sumKLT    sumGesPr    pin ." 
    ". . .         .           .          .         .         .           pin .";
}

.cart-item.cart-summary-description {
  border-bottom: none;
}

.cart-item.cart-summary {
  font-weight: bold;
  border-bottom: none;
  font-size: 20px;
  margin: 0px 0px 45px;
}

.summary-weight,
.summary-price,
.summary-working-hours,
.summary-working-hours-cost,
.summary-small-parts-price,
.summary-total-price {
/*  width: 20%; */
    cursor: default;
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 1.0); /* Use rgba with an alpha value less than 1 for transparency */
  width: 15%;
  padding: 25px;
  border: none;
  z-index: 1001;
  border-radius: 10px;
  text-align: center;
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2); /* Adjust the alpha value for the desired transparency */
  backdrop-filter: blur(1.5px); /* Apply blur effect to the overlay itself */
  z-index: 1000; /* Make sure the overlay is on top of other elements */
}

.form-group {
  margin: 10px 0px;
}

.form-group label {
  margin: 5px;
  float: left;
  text-decoration-line: underline;
  font-size: 20px;
}

.form-group input {
  color: #3263A0;
  border: solid 2px;
  border-color: var(--main-color);
  cursor: text;
  border-radius: 10px;
  padding: 5px 10px;
  margin: 5px 0px;
  width: 95%;
  font-size: 15px;
  border-right: 0px;
  border-left: 0px;
  border-top: 0px;
  text-align: center;
}

.form-group input:hover {
  background-color: #c5d4e9;
}

.form-group input:focus {
  outline: none;
  background-color: var(--main-color);
}

.modal-buttons {
  margin-top: 35px;
}

.modal-buttons button {
  background-color: white;
  color: #3263A0;
  cursor: pointer;
  border-radius: 10px;
  font-size: 16px;
  border: solid 1px;
  border-color: var(--main-color);
  padding: 5px 10px;
  margin: 15px 10px 10px;
}

.modal-buttons button:hover {
  background-color: var(--main-color);
}

.modal-buttons button:focus {
  background-color: var(--main-color);
}

.modal-buttons .cancel-button {
  background-color: white;
  font-size: 14px;
  transition: all 0.5s ease;
  border: none;
  outline: none;
  border-radius: 5px;
}

.modal-buttons .cancel-button:hover {
  background-color: red;
  font-weight: unset;
  color: white;
}

.modal-buttons .cancel-button:focus {
  background-color: red;
  font-weight: unset;
  color: white;

}

.cart-items .item-total-price {
  font-weight: bold;
}

.printCartButton {
  margin-top: 30px;
  padding: 10px 75px;
  color: #3263A0;
  font-size: 18px;
  font-weight: bold;
  border-radius: 10px;
  border: solid 1px;
  border-color: var(--main-color);
  cursor: pointer;
  background-color: white;
}

#dynamic-content .clear-button{
  margin-top: 30px;
  padding: 5px 10px;
  color: #3263A0;
  font-size: 14px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  background-color: white;
  transition: all 0.5s ease;
}

#dynamic-content .clear-button:hover {
  background-color: red;
  color: white;
}

.cart-items {
/*  display: flex;
  flex-direction: column;   */
  width: 95%; /* Set the maximum width for the cart */
  margin: 0 auto; /* Center the cart on the page */
/*  display: grid;
  grid-template-columns: 3% 15% 35% 6% 6% 8% 6% 6% 8% 2%;
  grid-template-rows: auto;
  align-items: end;
  grid-gap: 20px 8px;   */
}

.cart-items span:nth-child(20n+1):not(:nth-child(-n+10)), /* Start eines neuen Blocks von 10 */
.cart-items span:nth-child(20n+2):not(:nth-child(-n+10)),
.cart-items span:nth-child(20n+3):not(:nth-child(-n+10)),
.cart-items span:nth-child(20n+4):not(:nth-child(-n+10)),
.cart-items span:nth-child(20n+5):not(:nth-child(-n+10)),
.cart-items span:nth-child(20n+6):not(:nth-child(-n+10)),
.cart-items span:nth-child(20n+7):not(:nth-child(-n+10)),
.cart-items span:nth-child(20n+8):not(:nth-child(-n+10)),
.cart-items span:nth-child(20n+9):not(:nth-child(-n+10)),
.cart-items span:nth-child(20n+10):not(:nth-child(-n+10)) {
    background-color: red; /* Grau für jede zweite Zeile */
}

.cart-row {
  display: grid;
  grid-template-columns: 3% 15% 35% 6% 6% 8% 6% 6% 8% 3%;
  grid-template-rows: auto;
  grid-template-areas: "menge artNr artBez Gew EP WH WHC KLT GP";
  align-items: center;
  grid-gap: 0px 8px;
  border-radius: 10px;
  height: 1.875rem;
  margin: 10px 0 0;
  transition: border-radius 0.3s ease;
}

.cart-row.hidden-row {
  display: none; /* Standardmäßig ist die Zeile versteckt */
  height: 1.875rem;
  margin: 0;
  border-radius: 0;
}

.cart-row.show-row {
  display: grid; /* Zeigt die Zeile an */
}

.cart-header {
  font-weight: bold;
  display: grid;
  grid-template-columns: 3% 15% 35% 6% 6% 8% 6% 6% 8% 3%;
  grid-template-rows: auto;
  align-items: end;
  grid-gap: 0px 8px;
}

.cart-row:not(.cart-header):not(hidden-row):nth-child(odd) {
  background-color: #c5d4e9;
}

/* Nur sichtbare .cart-row berücksichtigen */
.cart-row:not(.hidden-row):nth-of-type(odd) {
  background-color: #c5d4e9; /* Helle Blau für ungerade sichtbare Zeilen */

}

.cart-row:not(.hidden-row):nth-of-type(even) {
  background-color: #ffffff; /* Weiß für gerade sichtbare Zeilen */
}

.cart-row[draggable="true"] {
  cursor: grab;
}

.cart-row.dragging {
  opacity: 0.5;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  border-bottom: solid 1px #8299cf; /* Optional: Add a border between rows for better separation */
  padding: 10px 5px; /* Optional: Add padding for spacing within each item */
}

.cart-item-header {
  border-bottom: solid 0px white;
  padding: 0px 10px;
}

.header-item-name {
  text-align: center;
}

/* Additional styling for individual item elements (customize as needed) */
.cart-items .item-name {
/*  flex-basis: 35%; /* Adjust the width of the Product Name column */
  cursor: pointer;
}

.cart-item .item-quantity,
.cart-item .item-id,
.cart-item .item-name,
.cart-item .item-price,
.cart-item .item-small-parts-price,
.cart-item .item-working-hours,
.cart-item .item-working-hours-cost,
.cart-item .item-total-price {
  border-bottom: solid 1px white;
}

.cart-item .item-id,
.cart-item .item-name,
.cart-item .item-weight,
.cart-item .item-price,
.cart-item .item-small-parts-price,
.cart-item .item-working-hours,
.cart-item .item-working-hours-cost {
  padding-top: 3px;
}

.cart-item .item-price {
  flex-basis: 6%;
}

.cart-item .item-small-parts-price {
  flex-basis: 5%;
}

.cart-items .item-quantity {
  border-radius: 10px;
/*  height: 22px;   
  flex-basis: 3.5%; */
  cursor: text;
  padding: 3px;
/*  border: solid 2px #FBCA37;
  border-top: none;
  border-right: 0px;
  border-left: 0px; */
  transition: background-color 0.5s ease; /* Add transition for background-color */
}

.cart-items .item-quantity:focus{
  outline: solid 2px;
}

.cart-item .item-id {
  flex-basis: 15%;
}

.cart-item .item-weight {
    flex-basis: 7%;
}

.cart-item .item-working-hours,
.cart-item .item-total-price {
  flex-basis: 8%;
}

.cart-item .item-working-hours-cost {
  flex-basis: 7%;
}

.cart-items .item-total-price { 
/*  padding-top: 1.5px; */
  font-size: 19px;
}

.cart-items .item-weight,
.cart-items .item-price,
.cart-items .item-small-parts-price,
.cart-items .item-working-hours,
.cart-items .item-working-hours-cost,
.cart-items .item-total-price {
  text-align: right;
}

.cart-items .item-delete-button {
  background-color: transparent;
  color: red;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 19px;
/*  flex-basis: 2%; */
  transition: all 0.5s ease;
}

.cart-items .item-quantity:hover {
  background-color: #8299cf;
}

.cart-items .item-quantity:focus {
  outline: solid 2px;
  background-color: var(--main-color);
}

.cart-items .item-quantity:focus-visible {
  outline: none;
}

#printCartButton {
    padding: 15px 75px;
    border-radius: 10px;
}

.cart-items .item-delete-button:hover {
  background-color: red;
  font-weight: bold;
  color: white;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: white; /* Adjust the background color as needed */
    text-align: center;
    padding-top: 10px;
}

.footer:before {
    content: '';
    position: absolute;
    top: -20px; /* Adjust the value as needed for spacing */
    width: 100%;
    height: 20px;
    display: block;
    background-image: linear-gradient(to top, white, transparent); /* Customize gradient colors */
}

.nicaLogo {
    max-height: 100px;
    float: right;
    padding: 0px 10px 10px 0px;
}

#cartCompletionModal.modal {
  display: none;
  position: fixed;
  top: 34%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 1.0); /* Use rgba with an alpha value less than 1 for transparency */
  width: 55%;
  padding: 15px;
  border: none;
  z-index: 1001;
  border-radius: 10px;
  text-align: center;
}

#cartCompletionModal .modal-content {
/*  display: flex;  */
  justify-content: space-between;
  display: grid;
  grid-template-columns: 17% 37% 17% 1% 20%;
  grid-template-rows: 2fr 2fr 2fr;
  grid-template-areas:
    "header1 header2 header3 . header4" 
    "input1 input2 input3 . input4" 
    "input1 input2 input5 . input6";
}

#cartCompletionModal .form-group {
  margin: 0px 0px 0px;
  width: 17%;
}

#cartCompletionModal .modal-content label {
  margin: 5px auto;
  float: none;
  text-decoration-line: underline;
  font-size: 20px;
}

#cartCompletionModal .modal-content input {
  color: #3263A0;
  border: solid 2px;
  border-color: var(--main-color);
  cursor: text;
  border-radius: 10px;
  padding: 5px 0;
  margin: 6px 0px;
/*  width: 95%; */
  font-size: 16px;
  border-right: 0px;
  border-left: 0px;
  border-top: 0px;
  text-align: center;
}

#cartCompletionModal .modal-content input:hover {
  background-color: #c5d4e9;
}

#cartCompletionModal .modal-content input:focus {
  outline: none;
  background-color: var(--main-color);
}

#cartCompletionModal .modal-buttons {
  margin: 0px;
  width: 17%;
}

#cartCompletionModal .modal-content button {
  background-color: white;
  color: #3263A0;
  cursor: pointer;
  border-radius: 10px;
  font-size: 16px;
  border: solid 1px;
  border-color: var(--main-color);
  padding: 5px 10px;
  margin: 0.3rem;
}

#cartCompletionModal .modal-content button:hover {
    background-color: var(--main-color);
}

#cartCompletionModal .modal-content button.active {
    background-color: var(--main-color);
  }
  

#cartCompletionModal .modal-content .cancel-button {
  background-color: white;
  transition: all 0.5s ease;
  border:none;
  border-radius: 5px;
}

#cartCompletionModal .modal-content .cancel-button:hover {
  background-color: red;
  color: white;
}

#labelUser,
#labelCustomer {
    color: #3263A0;
/*    border-radius: 15px;  */
    font-size: 20px;
/*    border: solid 2px #FBCA37;  */
    height: 35px;
    min-width: 18%;
/*    border-top: none;
    border-right: 0px;
    border-left: 0px;  */
    margin: auto auto 30px;
    padding: 5px 15px;
    flex-basis: 50%;
}

#userInfo,
#typeOfConcern {
/*  width: 95%; 
  padding: 3px 10px;
  cursor: pointer;
  color: #3263A0;
  font-size: 16px;
  border-radius: 12px 12px 0px 0px;
  border: none;
  scrollbar-width: thin;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin-top: 9px; */
}

#suggestions {
  display: none; /* Initially hidden */
  max-height: 200px;
  overflow-y: auto;
  background: var(--main-color);
  position: absolute; /* Ensure it positions itself below the input */
  list-style-type: none;
  padding: 10px;
  border-radius: 10px;
  margin: 0.2rem 0 0;
  cursor:pointer;
  width: 16.5%;
}

#suggestions li{
  padding: 10px;
  border-radius: 10px;
}

#suggestions li:hover{
  background-color:  #8299cf;
}

  .suggestions-box {
    position: absolute;
    width: 100%;
    border: 1px solid #ccc;
    background-color: white;
    max-height: 150px;
    overflow-y: auto;
    z-index: 1000;
    display: none; /* Initially hidden */
  }
  
  .suggestions-box div {
    padding: 10px;
    cursor: pointer;
  }

  .suggestions-box div:hover {
    background-color: #f0f0f0;
  }

.cartContainerNiCaLogo {
    text-align: center;
}

#thumbnail {
    display: none;
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
    margin: -200px 30px;
}

#thumbnail img {
    width: 250px;
    height: auto;
    border-radius: 10px;
/*    border: 1px solid #3263A0;    */
}


/* Hide everything except printContent when printing */
@media print {

    body {
        top: 0;
        margin: 0;
        padding: 0;
        bottom: unset;
    }

    /* Ensure content fits within the A4 dimensions */
    @page {
        size: A4;
        margin: 0; /* Ensure no margin */
        }

    .page-break {
        page-break-before: always;
    }

    #printCart {
        /* Adjust width and height to fit within A4 dimensions */
        width: 95%; /* Width of A4 in portrait */
        height: 100%; /* Height of A4 in portrait */
        margin: 0 auto; /* Center the content horizontally */
        padding: 0px; /* Add padding to prevent content from reaching the edges */
/*        background-color: white; /* Ensure background color is white */
    }
    
    header {
        height: 0px;
    }
    
    #dynamic-content {
        padding: 0px;
    }
    
    header,
    #dynamic-content,
    footer {
        display: none;
    }
        
    .center-text {
        text-align: center;
        width: 100%;
    }
        
    .cartInfos {
        width: 99%;
    }
        
    .cartSummary {
        margin-top: 20px; /* Adjust to ensure space for the footer */
    }
    
    .cartContainerNiCaFooter {
/*        position: fixed;
        bottom: 0;
        left: 0;
        width: 97.5%;
        height: auto; /* Adjust height as needed */
/*        z-index: 9999; /* Ensure it's on top of other content */
/*        text-align: center; /* Center the image horizontally */
/*        background-color: #ffffff; /* Optionally set background color */
/*        padding: 10px; /* Optionally add padding */
    }
    
    #printCart {
/*    background-image: url('2022_Niesmann_Briefpapier.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
/*    margin-top: -20px;    */
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 0;
  }
    
    .print-page {
        page-break-after: always;
        position: relative;
    }
    
    .print-content {
    position: relative;
    z-index: 1;
  }
    
    .cartContainerNiCaFooter img {
/*        width: 100%; /* Make sure the image spans the entire width */
/*        height: auto; /* Maintain aspect ratio */
    }
    
}

.tabs {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding-left: 0;
    margin-bottom: 10px;
}

.tabs li a {
  text-decoration: none;
  color: #3263A0;
  border-radius: 10px;
  padding: 8px 8px;
  transition: background-color 0.5s ease;
  font-size: 17px;
  display: block;
  text-align: center;
}

.tabs li a:visited {
    color: #3263A0;
}

.tabs li a:hover {
  outline: none;
  background-color: #8baad4;
}

.tabs .active {
    background-color: var(--main-color);
}

.tab-content {
    display: none;
    padding: 0px 10px;
}

.tab-content.active {
    display: block;
}

.toolsInputContainer {
    text-align: center;
}

.toolsInput {
    color: #3263A0;
    border-radius: 10px;
    cursor: text;
    font-size: 18px;
    border: solid 1px;
    border-color: var(--main-color);
    height: 29px;
    margin: auto 20px 15px auto;
    padding: 5px 15px;
    transition: background-color 0.5s ease;
    border-right: 0px;
    border-left: 0px;
    border-top: 0px;
    text-align: center;
}

.toolsInput:hover {
  outline: none;
  background-color: #8baad4;
}

.toolsInput:focus {
    background-color: var(--main-color);
    outline: none;
}

.toolsInput::placeholder {
    font-size: 14px;
}

.toolsOutputContainer {
    display: flex;
}

.toolsOutputs {
    flex-basis: 50%;
}

.toolsOutput {
    margin: 25px auto 0px 20px;
    font-size: 20px;
    text-align: left;
}

.toolsOutputLabelContainer {
    flex-basis: 50%;
}

.toolsOutputLabel {
    margin: 25px 0px 0px 10px;
    font-size: 20px;
}

.buttonToolsContainer {
    width: 69%;
    text-align: right;
}

.button-tools {
  padding: 5px 10px;
  background-color: white;
  color: #3263A0;
  border: solid 1px;
  border-color: var(--main-color);
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  margin: 5px 25px;
  font-size: 13px;
  transition: background-color 0.5s ease;
}

.button-tools:hover {
  background-color: var(--main-color);
}

/* Default hidden state for the menu */
.hidden {
    display: none;
}

/* Show the menu when the 'show' class is added */
.show {
    display: block;
}

/* Style for the hamburger icon */
.menu-icon {
    font-size: 30px;
    cursor: pointer;
    display: none; /* Hidden by default */
    margin-left: 15px;
}

/* For larger screens, show the navigation menu by default */
@media (min-width: 820px) {
    /* Show the navigation menu on larger screens */
    #main-categories {
        display: block; /* Flex layout or block depending on your design */
    }
}

@media (max-width: 1180px) {
  nav ul {
    display: flex;
    flex-wrap: wrap;
    height: 41px;
  }

  nav ul li {
    width: 100%;
    margin: 5px 0;
    text-align: center;
    display: none;
  }

  nav ul ul {
    position: absolute;
    top: auto;
    left: auto;
  }

  nav ul ul .products {
    left: auto;
    top: auto;
  }
  
  #dynamic-content {
  padding: 30px 0px 0px 0px;
  width: 99%;
  }

  .content-container {
    flex-direction: column;
    margin: 25px 1%;
  }

  .slideshow-container,
  .product-costsOptions {
    width: 100%;
    padding: 0;
  }

  .logoSearchCart {
/*    flex-direction: column;  */
    align-items: center;
    height: 36px;
    display: grid;
    justify-content: space-between;
    background-color: white;
    grid-template-columns: 10% 30% 30% 30%;
    grid-template-rows: 76px 45px;
  }
  
  .logoNica {
/*      margin-right: 75%;  */
    height: unset;
  }

  .logoNica img {
    margin: 0 auto;
  }
  
  #searchBox:focus, #cartUser:focus, #cartCustomerInfo:focus, #cartAddItem:focus {
  outline: none;
  background-color: #8baad4;
  }
  
  .tools {
/*      margin-left: 80%;  */
  }
  
  #toolsButton {
/*      margin-top: 32px;  */
  }

  .button-container {
    flex-basis: auto;
/*    margin-left: 53%;
    margin-top: -47px;  */
  }

  .button {
    background-color: white;
    border-radius: 10px;
    border: none;
    box-shadow: -4px 6px 2px 0px rgb(174, 140, 37);
    font-size: 16px;
    margin: 11px 12px;
    padding: 5px 25px;
  }
  
  .slideshow-container .prev, .slideshow-container .next {
  display: flex;
}
  
  .prev, .next {
    color: #3263A0;
    display: block;
    font-size: 75px;
    margin: 0;
  }
  
  .addToCartButton {
    width: 60%;
    font-size: 20px;
  }
  
  #singleAddToCartButton {
      display: none;
  }
  
  .search-container {
/*      margin-top: -40px;  */
  }

  .search-results-dropdown {
    max-height: 300px;
  }

  .product-costsOptions {
    text-align: center;
    margin-top: 20px;
  }
  
  .cavioArt {
    display: none;
  }
  
  #similarProductsDropdown {
    width: 60%;
  }
  
  .description-container {
    margin-top: 30px;
  }
  
  .productDetails {
    text-align: right;
    width: 69%;
  }
  
  .cartSummary {
    width: 99%;
  }
  
  .modal {
    width: 28%;
  }
  
  .modal-buttons button {
    background-color: var(--main-color);
    border: none;
    border-radius: 10px;
    box-shadow: -4px 6px 2px 0px rgb(143, 143, 143);
    color: #3263A0;
    cursor: pointer;
    font-size: 16px;
    margin: 15px 10px 10px;
    padding: 5px 20px;
  }
  
  .modal-buttons .cancel-button {
    background-color: red;
    border: none;
    color: white;
  }

  .cart-items {
    font-size: 14px;
    max-width: 99%;
  }
  
  .summary-total-price {
      font-size: 16px;
  }
  
  .cart-item.cart-summary {
  font-size: 18px;
  }
  
  .cart-item .item-weight {
      display:none;
  }
  
  .cart-item .item-quantity {
      flex-basis: 4.5%;
  }
  
  .cart-item .item-name {
    flex-basis: 28%;
  }
  
  .cart-item .item-price {
    flex-basis: 9%;
  }
  
  .cart-item .item-working-hours {
    flex-basis: 11%;
  }
  
  .cart-item .item-working-hours-cost {
    flex-basis: 10%;
  }
  
  .cart-item .item-small-parts-price {
    flex-basis: 7%;
  }
  
  .cart-item .item-total-price {
    flex-basis: 11%;
    font-size: 15px;
    padding-top: 2.5px;
  }
  
  .cart-item .item-delete-button {
    background-color: red;
    box-shadow: -4px 3px 2px 0px rgb(143, 143, 143);
    color: white;
  }
  
  #dynamic-content .clear-button {
    background-color: red;
    border: none;
    box-shadow: -4px 6px 2px 0px rgb(143, 143, 143);
    color: white;
    text-align: right;
  }
  
  #printCartButton {
    background-color: var(--main-color);
    box-shadow: -4px 6px 2px 0px rgb(143, 143, 143);
  }
  
  #cartCompletionModal.modal {
    width: 85%;
  }
  
  #cartCompletionModal .form-group label {
  font-size: 18px;
  }
  
  #userInfo, #typeOfConcern {
  font-size: 16px;
  }
  
  #cartCompletionModal .modal-buttons button {
  background-color: var(--main-color);
  }
  
  #cartCompletionModal .modal-buttons .cancel-button {
  background-color: red;
  color: white;
  }
  
}

@media (max-width: 820px) {

  header {
    height: 125px;
  }

  nav ul {
    flex-direction: column;
    height: auto;
    box-shadow: -6px 6px 2px 0px gray;
    margin-top: 36px;
  }
  
  nav ul a {
    font-size: 16px;
  }
  
    .logoSearchCart {
/*    flex-direction: column;  */
    align-items: center;
    height: 36px;
    display: grid;
    justify-content: space-between;
    background-color: white;
    grid-template-columns: 9% 23% 35% 33%;
    grid-template-rows: 76px 45px;
  }

  .logoNica {
    grid-row-start: 1;
    grid-row-end: 1;
    grid-column-start: 1;
    grid-column-end: 5;
    justify-self: center;
  }

  .search-container {
    grid-row-start: 2;
    grid-row-end: 2;
    grid-column-start: 3;
    grid-column-end: 3;
    justify-self: center;
    margin-top: unset;
  }

  #searchBox {
    font-size: 18px;
    padding: 5px;
    box-shadow: -4px 6px 2px 0px rgb(174, 140, 37);
    border: none;
  }
  
  .button-container {
    grid-row-start: 2;
    grid-row-end: 2;
    grid-column-start: 4;
    grid-column-end: 4;
    justify-self: center;
    margin-left: unset;
    margin-top: unset;
  }
  
  .button {
    padding: 5px 20px;
    margin-top: 15px;
  }
  
  .tools {
/*    margin-left: 85%;  */
    grid-row-start: 2;
    grid-row-end: 2;
    grid-column-start: 2;
    grid-column-end: 2;
    justify-self: center;
  }
  
  .productDetails {
    text-align: right;
    width: 72%;
  }

  .addToCartButton {
    width: 85%;
    box-shadow: -4px 6px 2px 0px rgb(143, 143, 143);
  }

  .products-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
      
    /* Show the hamburger icon on smaller screens */
    .menu-icon {
        display: block;
        margin-top: 43px;
    }

    /* Hide the navigation menu by default */
    #main-categories {
        display: none;
    }

    /* Display the menu in a vertical layout */
    #main-categories.show {
        display: block;
        width: fit-content;
        background-color: var(--main-color);
        margin-left: 5px;
    }

    #main-categories li {
        display: block;
        margin: 0;
        text-align: left;
        padding: 0px 5px;
    }

    .sub-categories, .sub-sub-categories, .products {
        display: none;
    }

    /* Style submenus when they are visible */
    .sub-categories.show, .sub-sub-categories.show, .products.show , .productsLeft.show{
        display: block;
        left: 90%;
        right: auto;
        top: 0;
        box-shadow: -3px 3px 2px 0px gray;
    }
    
    nav ul ul .products {
        left: 90%;
    }
}

/* Gelbliches Layout */
.yellow-theme {
    --main-color: #FBCA37; /* Gelbliche Farbe */
    --main-color-rgb: rgb(251,202,55);
    --button-border-radius: 0px;
    --nav-border-radius: 0px;
    --logo-background-color: #FBCA37;
    --main-color-rgba: rgba(251,202,55, 0.9);
/*    --main-color-tint: #fdec97;   */
}

/* Orangenes Layout */
.orange-theme {
    --main-color: #EE6C00; /* Orangene Farbe */
    --main-color-rgb: rgb(238, 108, 0);
    --button-border-radius: 50px 0 0 0;
    --nav-border-radius: 0 50px 0 0;
    --logo-background-color: white;
    --main-color-rgba: rgba(238, 108, 0, 0.9);
/*    --main-color-tint: #ff953d;   */
}

/* Verwende die Variablen im gesamten Layout */

.companySwitchButton {
    background-color: var(--main-color);
    border-radius: var(--button-border-radius);
    grid-area: colourSwitch;
    height: 100%;
}

/* Elemente ausblenden, wenn das orangene Layout aktiv ist */
.orange-theme .hide-in-orange {
  display: none;
}

#articleModal {
  position: fixed;
  left: 50%;
  top: 57%;
  width: 60%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border: 1px solid #ccc;
  z-index: 1000;
  height: 77%;
}

#articleModal input, #articleModal textarea {
  width: 100%;
  margin-bottom: 10px;
}

#articleModal button {
/*  margin-right: 10px; */
}

.articleModal-content {
  display: grid;
  grid-template-columns: 55% 2% 40% 3%; 
  grid-template-rows: 1fr;
  grid-template-areas:
    "header1 header1 header1    close     "
    "input   .       pre        pre       "
    "input   .       pre        pre       "
    "input   .       copyPreBtn copyPreBtn";
}

#articleForm {
  display: grid;
  grid-template-columns: 31% 3.5% 31% 3.5% 31%;
  grid-template-rows: auto auto auto auto auto auto auto auto auto auto auto auto auto 5.5rem auto 5.5rem auto auto 5.5rem auto;
  grid-template-areas:
    "required1   .           recommended1  .           optional1 "
    "required2   .           recommended2  .           optional2 "
    "required3   .           recommended3  .           optional3 "
    "required4   .           recommended4  .           optional4 "
    "required5   .           recommended5  .           optional5 "
    "required6   .           recommended6  .           optional6 "
    "required7   .           recommended7  .           optional7 "
    "required8   .           recommended8  .           optional8 "
    "required9   .           recommended9  .           optional9 "
    "required10  .           recommended10 .           optional10"
    "required11  .           recommended11 .           optional11"
    "required12  .           recommended12 .           optional12"
    "proTextLab  .           .             .           .         "
    "proText     proText     proText       proText     proText   "
    "techInfoLab .           .             .           .         "
    "techInfo    techInfo    techInfo      techInfo    techInfo  "
    "nicaCheck   .           cckCheck      .           .         "
    "csvInputLab csvInputLab csvInputLab   .           .         "
    "csvInput    csvInput    csvInput      csvInput    csvInput  "
    "button1     button1     button1       button1     button1   ";
    justify-items: start;
}

h4 {
    grid-area: dataheader;
    font-size: 20px;
    text-decoration-line: underline;
}

.datasheet-container {
    grid-area: datasheet;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}