/* 
 * MeinVerwalter
 * Moderne Effekte und Animationen
 */

/* ===== MODERNE EFFEKTE ===== */

/* Subtile Farbverläufe */
.btn-primary {
  background-image: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  box-shadow: 0 4px 10px rgba(44, 82, 130, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary:hover {
  background-image: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(44, 82, 130, 0.4);
}

.btn-secondary {
  background-image: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  border: none;
  box-shadow: 0 4px 10px rgba(56, 161, 105, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-secondary:hover {
  background-image: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(56, 161, 105, 0.4);
}

.btn-outline {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-outline:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(135deg, var(--primary-light), var(--primary));
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-outline:hover {
  color: var(--white);
  border-color: transparent;
  background-color: transparent; 
}

.btn-outline:hover:before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Moderne Karten mit Glasmorphismus */
.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Preiskarten mit 3D-Effekt */
.pricing-card {
  position: relative;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.pricing-card:hover {
  transform: translateY(-10px) rotateX(3deg);
}

.pricing-card-header {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  background-color: var(--primary);
  color: var(--white);
}

.pricing-card-header h3 {
  color: var(--white);
}

.pricing-card-header:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pricing-card:hover .pricing-card-header:before {
  opacity: 1;
}

/* Animierte Hintergrundmuster */
.hero {
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 150%;
  height: 150%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 10%),
    radial-gradient(circle at 75% 60%, rgba(255, 255, 255, 0.1) 0%, transparent 10%),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 10%);
  opacity: 0.4;
  animation: backgroundShift 30s infinite linear;
}

@keyframes backgroundShift {
  0% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(-5%) translateY(-5%);
  }
  100% {
    transform: translateX(0) translateY(0);
  }
}

/* Pulseffekt für CTA-Elemente */
.hero .btn-primary {
  animation: pulse 4s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(44, 82, 130, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(44, 82, 130, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(44, 82, 130, 0);
  }
}

/* Verbesserte Interaktionen für Listen */
.pricing-card-features li {
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: left;
}

.pricing-card:hover .pricing-card-features li {
  animation: fadeInRight 0.5s forwards;
  animation-delay: calc(0.05s * var(--index));
  opacity: 0;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Moderne Tabellen-Styling */
.pricing-table {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.pricing-table th {
  background-image: linear-gradient(135deg, var(--primary), var(--primary-dark));
  letter-spacing: 0.5px;
  font-weight: 600;
}

.pricing-table tr:not(:last-child) td {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.07);
}

.pricing-table tr:hover td {
  background-color: rgba(49, 130, 206, 0.05);
}

/* Floating Labels für Formulare */
.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.floating-label {
  position: relative;
}

.floating-label .form-control {
  height: 3.5rem;
  padding: 1.5rem 0.75rem 0.5rem;
}

.floating-label label {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  transition: all 0.2s ease;
  pointer-events: none;
  color: var(--gray-600);
}

.floating-label .form-control:focus ~ label,
.floating-label .form-control:not(:placeholder-shown) ~ label {
  top: 0.75rem;
  transform: translateY(0);
  font-size: 0.75rem;
  color: var(--primary);
}

/* Moderne Footer-Styling */
footer {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-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-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Mobile Optimierungen für App-Gefühl */
@media (max-width: 768px) {
  /* Native App-ähnliche Kopfzeile */
  header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  /* App-ähnliche Navigationsleiste am unteren Rand */
  .mobile-nav-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
    justify-content: space-around;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gray-600);
    font-size: 0.8rem;
    transition: color 0.3s ease;
  }
  
  .mobile-nav-item i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }
  
  .mobile-nav-item.active {
    color: var(--primary);
  }
  
  /* Verbesserte Kartenansicht für mobile Geräte */
  .card {
    margin-bottom: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
  
  /* Native App-ähnliche Pull-to-Refresh Animation */
  .pull-indicator {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -50px;
    transition: margin-top 0.3s ease;
    color: var(--primary);
    font-weight: 500;
  }
  
  .pull-indicator.active {
    margin-top: 0;
  }
  
  /* App-ähnliche Berührungseffekte */
  .touch-effect {
    transition: opacity 0.2s ease;
  }
  
  .touch-effect:active {
    opacity: 0.7;
  }
}
