#ai-header-main {
	min-height: 150px;
}	

footer {
  padding-top: 15px;
  padding-bottom: 10px;
}


  .section {
    max-width: 900px;
    margin: 10px auto;
    padding: 20px;
    text-align: center;
  }

  .title {
    font-size: 42px;
    margin-bottom: 10px;
  }

  .subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    color: #6b5a4a;
  }

  /* HERO */
  .hero-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 60px;
  }

  .hero-image {
    width: 80%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 8px solid #e5dccf;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    cursor: pointer;
  }

  .original-box {
    position: absolute;
    bottom: -30px;
    right: 0px;
    width: 260px;
    background: #fff;
    border: 6px solid #e5dccf;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }

  .original-box img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    filter: grayscale(20%) brightness(0.95);
    cursor: pointer;
  }

  .original-caption {
    padding: 10px;
    font-size: 14px;
	color: #6B5A4A;
    background: #f4efe6;
  }

  .label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.85);
    padding: 6px 12px;
    font-size: 14px;
	color: #6b5a4a;
    border-radius: 4px;
  }

  /* GRID GALLERY */
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	/*grid-template-columns: 1fr 2fr 1fr;*/
	/*grid-template-columns: repeat(4, 1fr);*/
    gap: 10px;
    margin-top: 40px;
  }

  .card {
    background: #fff;
    border: 6px solid #e5dccf;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    cursor: pointer;
  }

  .card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
  }

  .card-caption {
    padding: 10px;
    font-size: 14px;
	color: #6B5A4A;
	overflow-wrap: break-word;
  }

  /* LIGHTBOX */
  .lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }

.lightbox-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 90vh;
  
  overflow: auto;  
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  display: block;
}

  .lightbox.active {
    display: flex;
  }

/* Button bleibt IM Viewport sichtbar */
.close {
  position: fixed;   /* wichtig */
  top: 20px;
  right: 30px;
  font-size: 48px;
  color: white;
  cursor: pointer;
  background: rgba(0,0,0,0.6);
  padding: 6px 12px;
  border-radius: 4px;
  opacity: .9;
  
  position: absolute;
  top: 10px;
  right: 10px;  
}






  @media (max-width: 768px) {
    .original-box {
      position: static;
      margin: 20px auto 0;
      width: 80%;
    }
  }

