body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    /* background: #062507; */
    font-family: 'bianzhidai-Stiches', sans-serif;
    padding: 1rem;
  }
  
  .product-grid {
    display: grid;
    justify-content: center;
    align-items: stretch;
    align-content: stretch;
    grid-template-columns: repeat(align-items);
    border: 1px;
    gap: 0.1rem;
    /* background-color: #3b3838; */
    /* background: transparent; */
    padding: 0.1px;
    flex-wrap: wrap;
    max-width: 100%;
    margin-top: auto;
  }
  
  @media (min-width: 100px) {
    .product-grid {
      grid-template-columns: repeat(8, 1fr);
    }
  }
  
  .product {
    background: var(--card);
    aspect-ratio: 1 / 1; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1px;
    overflow: hidden;
    transition: transform 0.3s ease;
  }
  
  .product:hover {
    transform: scale(1.4);
    box-shadow: 0px 0px 0px 0px rgba(193, 193, 193, 0.2);
  }

 
  
  .product img {
    max-width: 80%;
    max-height: 100%;
    object-fit: contain;
  }

  .garn img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
  }

  .rock {

    max-width: 10%;
    max-height: 10%;
    object-fit: contain;
  }
  
  @font-face {
    font-family:'bianzhidai-Stiches' ;
    src: url(../fonts/bianzhidai-Stitches.woff) format('woff');
    /* font-weight: normal; */
    font-size: 0.1%;
    font-style: normal;
    color: rgb(151, 34, 34);
    /* border-color: rgb(38, 130, 14); */
    /* text-shadow: 3cm; */
  }

  .custom-font {
    font-family: 'bianzhidai-Stiches';
    font-size: large;
  }

  .titel {
    font-family: 'bianzhidai-Stiches';
    font-size: clamp(2rem, 4vw, 3rem);
    
    position: sticky;

    
  top: 0;
  z-index: 999;
  width: 100%;
  /* background-color: #510303;  */
  color: #510303 ;
  padding: 1rem;
  text-align: center;
  font-family: 'bianzhidai-Stiches', sans-serif;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); */
  }

  a.custom-font {
    text-decoration: none;
    color: inherit; 
    cursor: pointer;
  }
  a.custom-font:hover {
    text-decoration-thickness: 1px; 
  }
  



  .modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0);
    display: none;
    justify-content: center;
    align-items: center;
  }

  .modal-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 1rem;
    box-shadow: 0 0 0px rgba(234, 231, 231, 0);
    object-fit: contain;
  }
  /* input:checked ~ .modal {
    display: flex;
  } */

  /* .modal-container {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    
  } */
  

 
#popup-anleitung:checked ~ .modal.anleitung {
  display: flex;
}


#popup-naehmaschine:checked ~ .modal.naehmaschine {
  display: flex;
}

#popup-bedienungsanleitung:checked ~ .modal.bedienungsanleitung {
  display: flex;
}

#popup-füllmaterial:checked ~ .modal.füllmaterial {
  display: flex;
}

#popup-maßband:checked ~ .modal.maßband {
  display: flex;
}

#popup-nästhäckchen:checked ~ .modal.nästhäckchen {
  display: flex;
}


  .overlay {
    position: absolute;
    width: 80%; height: 100%;
    top: 0; left: 0;
  }
  


 
:root {
  --bg: white;
  --text: #510303;
  --accent: #510303;
  --card: white;
}


/* #theme-toggle:checked ~ .product-grid {
  --bg: black;
  --text: black;
  --accent: black;
  --card: black;
} */


body {
  --bg: white;
  --text: #510303;
  --accent: #510303;
  --card: white;
  background: var(--bg);
  color: var(--text);
  
} 

body:has(#theme-toggle:checked):not(:has(#orange-toggle:checked)) {
  --bg: black;
  --text: white;
  --accent: black;
  --card: black;
}

body:has(#orange-toggle:checked):not(:has(#theme-toggle:checked)) {
  --bg: #B14C10;
  --text: black;
  --accent: #B14C10;
  --card: #B14C10;
}

body:has(#orange-toggle:checked):has(#theme-toggle:checked) {
  --bg: white;
  --text: #510303;
  --accent: #cc3366;
  --card: white;
}



.product {
  background: var(--card);
  padding: 10px;
  border-radius: 0dvi;
  /* transition: background 0.3s ease; */
}


.theme-button {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 1000;
}
/* .theme-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transition: all 0.3s ease;
} */


