/* CSS Variables for manor specials theme */
:root {
    /* Spacing */
    --spaces-xs: 0.5rem;   /* 8px */
    --spaces-s: 1rem;      /* 16px */
    --spaces-m: 1.5rem;    /* 24px */
    --spaces-l: 2rem;      /* 32px */
    --spaces-xl: 3rem;     /* 48px */
    
    /* Font sizes */
    --font-size-smaler: 1rem;      /* 16px */
    --line-height-smaler: 1.5rem;  /* 24px */
    
    /* Font weights */
    --font-weight-regular: 400;
    --font-weight-bold: 600;
    
    /* Colors (from infobox) */
    --angebotscol: #6ABBC6;
    --col-bground: #F7F7F7;
    --theme-info: #F69F29;
}

.site-branding {
    display: flex;
    align-items: center;
}

img.mymanor {
    width: 93px;
    height: auto;
    margin-right: 35px;
}

img.mycardlogo {
    width: 176px;
    height: auto;
}


.wp-block-button__link.has-orange-color.has-light-grey-background-color {
    background-color: #f7f7f7;
	color: #f69f29;
}

.wp-block-button__link.has-orange-color.has-light-grey-background-color:hover {
    color: #ffffff;
	background-color: #f69f29;
}

/* Info box title (tagline) for article lists and archives */
.article-list .info-box-title {
    font-family: 'Roboto-Bold';
    background-color: #6ABBC6;
    padding: 0 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: inline-block;
    float: right;
    color: white;
    font-weight: 600;
    font-size: 16px;
    line-height: 33px;
    margin: -30px;
    text-align: center;
}

.article-list-holder.angebote-list-holder {
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* 12-column grid */
    gap: 50px;
    align-items: center;
    align-items: stretch; /* ensures equal height for all items in each row */
    margin: 30px 0;
    overflow: visible;
}

.article-list-holder.angebote-list-holder > :nth-child(-n+2) {
  grid-column: span 6; /* 50% width */
  width: 100%;
}

.article-list-holder.angebote-list-holder > :nth-child(n+3) {
  grid-column: span 4; /* 33.3% width */
  min-width: 100%;
}



@media (max-width: 1099px) { 
   .article-list-holder.angebote-list-holder > :nth-child(n+3) {
       grid-column: span 6; /* full width on smaller screens */
     }
    .article-list-holder.angebote-list-holder > :nth-child(n+3)  .featured-content {
       display: flex;
        align-items: center;        /* vertically center the h2 */
        justify-content: flex-start;/* align text left */
        width: 100%;
        margin-top: 10px;           /* optional spacing below image */
    }
    
   .article-list-holder.angebote-list-holder  .wp-block-button {
       display: none;
    }
    
}

@media (max-width: 800px) {
  .article-list-holder.angebote-list-holder {
    grid-template-columns: repeat(6, 1fr);
  }
  .article-list-holder.angebote-list-holder > *, .article-list-holder.angebote-list-holder > :nth-child(n+3) {
    grid-column: span 6; /* full width on smaller screens */
  }
}

@media (min-width: 700px) {
    .article-list-holder.angebote-list-holder .flex-item:nth-child(1), .article-list-holder.angebote-list-holder .flex-item:nth-child(2) {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 1100px) {
    img.mymanor {
           width: 60px;
           height: auto;
           margin-right: 20px;
       }
       img.mycardlogo {
           width: 100px;
           height: auto;
       }
}

@media (max-width: 900px) {
    .article-list .info-box-title {
        margin-right: 20px !important;
    }
}


@media (max-width: 700px) {
   img.mymanor {
       width: 35px;
       height: auto;
   }
   img.mycardlogo {
       width: 65px;
       height: auto;
   }

}

@media (max-width: 600px) {
   
   .featured-image-holder.header .featured-iamge, .featured-image-holder.header .featured-image {
       max-width: 100%;
       margin: 0;
   }
   
   section.footerlinks.fullwidth {
       max-width: calc(100% - 40px);
       padding: 0;
   }
   
   span.bsf-rt-reading-time {
       width: 42px;
   }

   .wp-block-group.box.has-background {
      min-width: 100%;
      padding: 0;
   }
   
  .wp-block-group.box.has-background .wp-block-group__inner-container {
       padding: 20px !important;
   }
   
   .wp-block-group.box.has-background .wp-block-group__inner-container {
       min-width: 100%;
       margin: 0 auto;
       padding: 0;
   }
   
   #header .container {
      max-width: calc(100% - 40px);
      padding: 0;
   }
}

.single-infobox-header .info-box-title {
	margin-top: -50px !important;
	margin-right: 0 !important;
}