/* MEM-Mobile Custom Styles (ergänzend zu Tailwind) */

/* Typography - Heading Font */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-weight: 800; }
h3, h4, h5, h6 { font-weight: 600; }

/* Modern Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out;
}

/* Smooth Hover Transitions */
a, button, .transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* Glassmorphism Effect */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Button Ripple Effect */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::before {
  width: 300px;
  height: 300px;
}

/* Icon Hover Animations */
@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.icon-animate:hover {
  animation: icon-bounce 0.5s ease-in-out;
}

/* Loading Spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  border: 3px solid rgba(1, 69, 136, 0.1);
  border-top-color: #014588;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}

/* Barrierefreiheit & kleine Hilfsklassen */
:root {
  color-scheme: light dark;
}

html { scroll-behavior: smooth; }

/* Fallback sticky header, Tailwind nutzt 'sticky top-0' */
.header-sticky { position: sticky; top: 0; z-index: 50; }

/* Reduziert Motion, respektiert OS-Einstellung */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Kleine Utility für max-content Breite */
.container-narrow { max-width: 72rem; margin-left: auto; margin-right: auto; }
