/* Single Post Base Styles */
/* Header Section */
.post__header {
  position: relative;
  width: 100%;
  height: clamp(300px, 40vh, 500px);
}

.post__header-media {
  position: absolute;
  inset: 0;
}

.post__header-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post__header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.post__header-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
}

.post__header-wrapper {
  max-width: 800px;
}

.post__title {
  color: var(--color-text-inverse);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
  margin-bottom: var(--spacing-3);
}

.post__date {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  color: var(--color-text-lighter);
  font-size: var(--text-sm);
}

/* Main Content Layout */
.post__content {
  display: block;
  padding: var(--spacing-4) 0 var(--spacing-6);
  overflow: visible;
}

/* Article Styles */
.post__article {
  background: var(--color-surface);
  padding-top: 0;
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .post__title {
    font-size: var(--text-xl);
  }
}

@media (max-width: 768px) {
  .post__header {
    height: 300px;
  }

  .post__content {
    padding: var(--spacing-4) var(--spacing-3) !important;
  }

  .post__title {
    font-size: var(--text-lg);
  }
}

@media (max-width: 480px) {
  .post__header {
    height: 250px;
  }

  .breadcrumbs__container {
    padding-top: var(--spacing-3);
  }

  .post__title {
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-2);
  }
}

/* SPECIAL POSTS */

/* Special Post Template Styles */
.post--special .post__header {
  height: clamp(400px, 50vh, 600px);
}

.post--special .post__header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

.post--special .post__subheading {
  color: var(--color-text-lighter);
  font-size: var(--text-lg);
  margin-top: var(--spacing-3);
  font-family: var(--font-body);
}

/* Content Area */
.post--special .post__content {
  display: block; /* Entfernt das Grid-Layout */
  margin: 0 auto;
}

.post--special .post__article {
  max-width: 100%;
  margin: 0 auto;
  background: var(--color-surface);
}







/* FANCYBOX */

.produkt__spectra-item {
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.produkt__spectra-item:hover {
  transform: scale(1.02);
}

/* Fancybox customization */
.fancybox__container {
  --fancybox-bg: rgba(24, 24, 27, 0.95);
}

.fancybox__toolbar {
  --fb-button-bg: rgba(24, 24, 27, 0.8);
}

.fancybox__caption {
  --fb-accent-color: var(--color-primary);
  font-family: var(--font-sans);
}
