/* === Layout für LinkedIn-Post Sektion === */

.linkedin-section {
    width: 100%;
    gap: 0;
    margin: 0;
    padding: 0;
    display: grid;
    overflow: hidden;
    padding-left: 0px;
    padding-right: 0px;
  }
  
  .linkedin-post {
    position: relative;
    overflow: hidden;
  }
  
  .linkedin-post img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
  }
  .linkedin-icon {
    width: 32px;
    height: 32px;
    margin-right: 20px;
    margin-bottom: 20px;
    display: inline-block;
  }

  .linkedin-icon-static {
    width: 60px;
    height: 60px;
    display: inline-block;
  }

  
  /* Overlay */
  .linkedin-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(19, 25, 29, 0.77);
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
  }
  
  .linkedin-post:hover .linkedin-overlay {
    opacity: 1;
  }

  .overlay-content{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    word-wrap: break-word;
  }
  
  .linkedin-overlay h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5em;
    text-align: center;
    color: #fff;
  }
  
  .linkedin-overlay .view-link {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }
  
  .linkedin-overlay .view-link svg {
    width: 1em;
    height: 1em;
    fill: white;
  }
  
  .linkedin-overlay .logo-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
  }
  

  
  /* Static Block */
  .static-block {
    background-color: #E9003F;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
  }
  
  .static-block .text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .static-block h2 {
    margin: 0;
    font-size: 2rem;
    color: white 
  }
  
  
  /* === GRID LAYOUT === */
  
  @media (min-width: 1025px) {
    .linkedin-section {
      grid-template-columns: repeat(9, 1fr);
      grid-template-rows: repeat(2, auto);
    }
  
    .linkedin-post:nth-child(1) {
      grid-column: span 3;
      grid-row: 1;
    }
    .linkedin-post:nth-child(2) {
      grid-column: span 3;
      grid-row: 1;
    }
    .linkedin-post:nth-child(3) {
      grid-column: span 3;
      grid-row: 1;
    }
    
    .linkedin-post:nth-child(5) {
      grid-column: span 3;
      grid-row: 2;
      aspect-ratio: 3 / 2;
    }

    .static-block {
      grid-column: span 4;
      grid-row: 2;
      height: auto;
    }
    .static-block h2 {
      font-size: 1.8rem; 
    }

    .linkedin-post:nth-child(6) {
      grid-column: span 2;
      grid-row: 2;
      aspect-ratio: 1 / 1;
    }
  }
  
  @media (min-width: 601px) and (max-width: 1024px) {
    .linkedin-section {
      grid-template-columns: repeat(6, 1fr);
      grid-template-rows: repeat(3, auto);
    }
  
    .linkedin-post:nth-child(1) {
      grid-column: span 4;
      grid-row: 1;
      aspect-ratio: 3 / 2;
    }
    .linkedin-post:nth-child(2) {
      grid-column: span 2;
      grid-row: 1;
      aspect-ratio: auto;
     
    }
    .linkedin-post:nth-child(3) {
      grid-column: span 2;
      grid-row: 2;
      aspect-ratio: 4 / 5;
  
    }

    .static-block {
      grid-column: span 4;
      grid-row: 2;
      height: auto;
    }

    .linkedin-post:nth-child(5) {
      grid-column: span 4;
      grid-row: 3;
      aspect-ratio: 3 / 2;
      
    }
    
    .linkedin-post:nth-child(6) {
      grid-column: span 2;
      grid-row: 3;
      aspect-ratio: auto;
  
    }
  }
  
  @media (max-width: 600px) {
    .linkedin-section {
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: repeat(4, auto);
    }
  
    .linkedin-post:nth-child(1),
    .linkedin-post:nth-child(2) {
      grid-column: span 1;
      grid-row: 1;
    }
    .linkedin-post:nth-child(3) {
      grid-column: span 2;
      grid-row: 2;
    }
    .linkedin-post:nth-child(4) {
      grid-column: span 1;
      grid-row: 3;
    }
    .linkedin-post:nth-child(5) {
      grid-column: span 1;
      grid-row: 3;
    }
    .static-block {
      grid-column: span 2;
      grid-row: 4;
      aspect-ratio: 2 / 1;
    }
    .static-block h2 {
      font-size: 1.5rem;
    }

    .overlay-content{
      padding-top: 20px;
    }
    
    .linkedin-overlay .view-link{
      display: none;
    }
    
    .linkedin-overlay h3 {
      font-size: 0.9rem;
      line-height: 1.5rem;
      margin: 0 0 0.5em;
      text-align: center;
      color: #fff;
    }

    .linkedin-overlay p{
      font-size: 0.6rem;
    }

  
    .linkedin-icon {
      width: 20px;
      height: 20px;
      margin-right: 10px;
      margin-bottom: 10px;
    }
  }
  