/* Custom CSS for AfD Schkopau Website */

/* Import Tailwind base styles */
@import 'output.css';

/* Custom animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section animations */
section {
  animation: fadeIn 0.6s ease-out;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Custom focus styles */
*:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Better link transitions */
a {
  transition: all 0.2s ease;
}

/* Card hover effects */
.group:hover img {
  transform: scale(1.05);
}

/* Button hover effects */
button {
  transition: all 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Form input focus effects */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Mobile menu transition */
[x-show] {
  transition: opacity 0.3s ease;
}

/* Header shadow on scroll */
header.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Gradient text effect for headings */
.gradient-text {
  background: linear-gradient(to right, #1e40af, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom card shadows */
.card-shadow {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.card-shadow:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Success/Error message animations */
.message-enter {
  animation: fadeIn 0.3s ease-out;
}

/* Print styles */
@media print {
  header,
  footer,
  #contact,
  #member {
    display: none;
  }
  
  body {
    font-size: 12pt;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  /* Add dark mode styles here if needed */
}

/* Responsive image containers */
.image-container {
  position: relative;
  overflow: hidden;
}

.image-container img {
  transition: transform 0.3s ease;
}

/* Improved accessibility */
.sr-only:focus {
  position: absolute;
  width: auto;
  height: auto;
  padding: 0.5rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
}

/* Custom scrollbar (webkit browsers) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}