/* Elementor Add-ons by Unicorn Factory - Frontend Styles */

.elementor-reference-section {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  flex-grow: 1;
  align-self: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: clamp(16px, 2vw, 30px);
  padding: 0px;
}

@media (max-width: 640px) {
  .elementor-reference-section {
    flex-wrap: wrap;
  }
}

.elementor-reference-item {
  background: #ECF0F9;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: background-color .25s ease, transform .25s ease;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.elementor-reference-item:hover {
  background: #FAFCFF;
  transform: translateY(-2px);
}

.elementor-image-container {
  position: relative;
  padding: 12px 12px 0;
}

.elementor-image-frame {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 16px;
  background: #eef2f7;
}

.elementor-reference-image {
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 5s ease;
  transform: translateY(0);
  display: block;
}

.elementor-reference-item:hover .elementor-reference-image {
  transform: translateY(calc(-100% + 300px));
}

/* Click Icon nach dem Vorbild */
.elementor-click-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  color: rgb(255, 104, 8);
  width: 2rem;
  opacity: 1;
}

.elementor-click-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: rgb(255, 104, 8);
  border-radius: 1rem;
  height: 2rem;
  padding-left: 0;
  transition: padding-left 0.3s ease;
}

.elementor-click-text-holder {
  overflow: hidden;
  max-width: 0;
  transition: max-width 0.3s ease;
  display: flex;
  align-items: center;
  height: 100%;
}

.elementor-click-label {
  display: block;
  white-space: nowrap;
  padding-left: 1rem;
  padding-right: 0.5rem;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  line-height: 2rem;
}

.elementor-click-arrow {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(255, 104, 8);
}

.elementor-click-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hover Effekt */
.elementor-reference-item:hover .elementor-click-icon {
  width: auto;
}

.elementor-reference-item:hover .elementor-click-inner {
  padding-left: 1rem;
}

.elementor-reference-item:hover .elementor-click-text-holder {
  max-width: 150px;
}

/* Link Box Styling */
.elementor-reference-link {
  text-decoration: none !important;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.elementor-reference-link:hover {
  text-decoration: none !important;
  color: inherit;
}

.elementor-reference-link:focus {
  text-decoration: none !important;
  outline: none;
}

.elementor-reference-link .elementor-reference-title,
.elementor-reference-link .elementor-reference-description {
  color: inherit;
}

.elementor-reference-link:hover .elementor-reference-title {
  color: #020B60;
}

.elementor-reference-link:hover .elementor-reference-description {
  color: #020B60;
}

/* Customer Header Styling */
.elementor-customer-logo-header {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  min-height: 36px;
}

.elementor-customer-logo-header img {
  max-height: 40px;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

.elementor-reference-item:hover .elementor-customer-logo-header img {
  filter: grayscale(0);
}

.elementor-customer-name-header {
  font-size: 13px;
  color: #666;
  background: #f8f9fa;
  padding: 6px 14px;
  border-radius: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  display: inline-block;
  border: 1px solid #e9ecef;
}

/* Legacy Customer Styling (for tags area) */
.elementor-customer-logo {
  margin-right: auto;
}

.elementor-customer-logo img {
  max-height: 24px;
  max-width: 60px;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

.elementor-reference-item:hover .elementor-customer-logo img {
  filter: grayscale(0);
}

.elementor-customer-name {
  font-size: 11px;
  color: #666;
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: auto;
  font-weight: 500;
}

.elementor-reference-info {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.elementor-reference-title {
  margin-top: 0 !important;
  margin-bottom: 8px;
  color: #020B60;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}

.elementor-reference-description {
  color: #020B60;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
}

.elementor-reference-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.elementor-tag {
  font-size: 12px;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
  background: #eef2f6;
  color: #334;
  border: 1px solid #e1e7f0;
  font-weight: 500;
}

.elementor-tag.plan {
  margin-left: auto;
}

.elementor-tag.basic {
  border-color: #e2e8f0;
  color: #475569;
  background: #f8fafc;
}

.elementor-tag.business {
  border-color: #d8e1ee;
  color: #2C5282;
  background: #f3f6fb;
}

.elementor-tag.premium {
  border-color: #eee3c6;
  color: #8a6a1e;
  background: #fbf7ea;
}

/* Demo Placeholder Styles */
.elementor-demo-image-placeholder {
  background: linear-gradient(135deg, #667eea, #764ba2);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,.3);
}

.elementor-demo-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 20px;
  text-align: center;
}

.elementor-demo-header, .elementor-demo-footer {
  background: rgba(255,255,255,.2);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
}

.elementor-demo-main {
  flex: 1;
  background: rgba(255,255,255,.1);
  padding: 20px;
  border-radius: 10px;
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.elementor-demo-main h2 {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 600;
}

.elementor-demo-main p {
  margin: 4px 0;
  font-size: 13px;
  opacity: 0.9;
}

/* Responsive Design - Keep only non-conflicting responsive styles */
@media (max-width: 768px) {
  .elementor-image-frame {
    height: 280px;
  }
  
  .elementor-reference-item:hover .elementor-reference-image {
    transform: translateY(calc(-100% + 280px));
  }
}

@media (max-width: 480px) {
  .elementor-image-frame {
    height: 240px;
  }
  
  .elementor-reference-item:hover .elementor-reference-image {
    transform: translateY(calc(-100% + 240px));
  }
  
  .elementor-reference-info {
    padding: 14px 16px 16px;
  }
  
  .elementor-reference-title {
    font-size: 18px;
  }
  
  .elementor-reference-description {
    font-size: 14px;
  }
}