/* ==========================================
   Glass Effects - Optimiert für Performance
   ========================================== */

/* Basis Glass-Effekt */
.glass-effect {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(15px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  will-change: transform;
}


.glass-effect-light {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(5px) saturate(100%);
  -webkit-backdrop-filter: blur(5px) saturate(100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  will-change: transform;
}

/* Glass Button */
.glass-button .wp-block-button__link {
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #333 !important;
  transition: all 0.3s ease;
  will-change: transform;
}

.glass-button .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Dunkle Glass-Variante */
.glass-effect-dark {
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* ==========================================
   Glass Cards mit leichtem weißen Overlay
   ========================================== */

.wp-block-group.glass-card-bordered {
  background: rgba(255, 255, 255, 0.12) !important; /* ← Viel subtiler! */
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.1),
    0 0 30px rgba(255, 182, 193, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.3) !important; /* ← Subtiler */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease;
  position: relative;
  overflow: visible;
  will-change: transform;
}

.wp-block-group.glass-card-bordered:hover {
  background: rgba(255, 255, 255, 0.18) !important; /* ← Nur leicht heller */
  transform: translateY(-6px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 0 50px rgba(255, 182, 193, 0.5),
    0 0 80px rgba(255, 105, 180, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.4) !important;
}

/* Border-Styles */
.wp-block-group.glass-card-bordered.has-border-color {
  border-style: solid !important;
  border: 1px !important;
}

/* Subtiler äußerer Glow nur bei Hover */
.wp-block-group.glass-card-bordered::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 182, 193, 0.2),
    rgba(255, 105, 180, 0.1),
    transparent 70%
  );
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.wp-block-group.glass-card-bordered:hover::before {
  opacity: 1;
}

/* Sehr subtiler innerer Gradient */
.wp-block-group.glass-card-bordered::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  border-radius: 14px;
  opacity: 0.4; /* ← Sehr subtil */
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.wp-block-group.glass-card-bordered:hover::after {
  opacity: 0.6;
}

/* Text-Lesbarkeit */
.wp-block-group.glass-card-bordered h3,
.wp-block-group.glass-card-bordered p {
  position: relative;
  z-index: 1;
}

/* ==========================================
   Performance-Optimierungen
   ========================================== */

@media (prefers-reduced-motion: no-preference) {
  .glass-card-bordered {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glass-card-bordered {
    transition: none !important;
    transform: none !important;
  }
  
  .glass-card-bordered::before,
  .glass-card-bordered::after {
    display: none;
  }
}