/* Custom CSS für Förderverein Website */

/* CSS Variables */
:root {
  --primary-color: #198754;
  --secondary-color: #ffc107;
  --accent-color: #0d6efd;
  --text-color: #212529;
  --light-bg: #f8f9fa;
  --card-bg: #ffffff;
  --success-color: #198754;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #0dcaf0;
}

/* Global Styles */
body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
}

/* Custom Bootstrap Overrides */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #20c997 100%);
}

/* Navigation Enhancements */
.navbar-brand {
  font-size: 1.4rem;
}

.nav-link {
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.75rem 1rem !important;
  border-radius: 0.5rem;
  margin: 0 0.25rem;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  background: #ffffff;
  color: var(--text-color);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="90" r="2.5" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: float 20s infinite linear;
}

@keyframes float {
  0% {
    transform: translateX(-50px) translateY(-50px);
  }
  100% {
    transform: translateX(50px) translateY(50px);
  }
}

/* Cards */
.card {
  border-radius: 1rem;
  transition: all 0.3s ease;
  border: none;
}

.hover-card {
  transition: all 0.3s ease;
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Feature Icons */
.feature-icon {
  width: 60px;
  height: 60px;
  transition: all 0.3s ease;
}

.hover-card:hover .feature-icon {
  transform: scale(1.1);
}

/* Buttons */
.btn {
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color) 0%, #6610f2 100%);
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, var(--primary-color) 0%, #20c997 100%);
  box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}

.btn-success:hover {
  box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning-color) 0%, #fd7e14 100%);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

/* Form Styles */
.form-control {
  border-radius: 0.75rem;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.form-control-lg {
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  min-height: 3.5rem;
}

.form-label {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

/* Form Sections */
.form-section {
  background-color: #f8f9fa;
  border-radius: 1rem;
  padding: 1.5rem;
  border-left: 4px solid var(--primary-color);
  margin-bottom: 2rem;
}

.section-icon {
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
}

/* IBAN Input */
.iban-input {
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Checkbox Styles */
.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.form-check-label {
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}

/* Alert Styles */
.alert {
  border-radius: 1rem;
  border: none;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
  background: linear-gradient(135deg, #d1e7dd 0%, #a3d9a4 100%);
  color: #0f5132;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c2c7 100%);
  color: #842029;
}

.alert-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #664d03;
}

.alert ul {
  margin: 0.75rem 0 0 0;
  padding-left: 1.5rem;
}

.alert li {
  margin-bottom: 0.25rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0 !important;
  }

  .hero-section h1 {
    font-size: 2rem !important;
  }

  .hero-section .lead {
    font-size: 1rem !important;
  }

  .card-body {
    padding: 1.5rem !important;
  }

  .form-section {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .form-control-lg {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    min-height: 3rem;
  }

  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .feature-icon {
    width: 50px;
    height: 50px;
  }

  .section-icon {
    width: 35px;
    height: 35px;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-section {
    padding: 2rem 0 !important;
  }

  .hero-section h1 {
    font-size: 1.75rem !important;
  }

  .card-body {
    padding: 1rem !important;
  }

  .form-section {
    padding: 0.875rem;
    margin-bottom: 1rem;
  }

  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .d-flex.gap-3 {
    flex-direction: column;
  }

  .gap-3 > * {
    margin-bottom: 0.5rem;
  }
}

/* QR Code Optimizations */
@media (max-width: 480px) {
  .form-control-lg {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .btn-lg {
    font-size: 1rem;
    padding: 1rem;
  }

  .hero-section .display-1 {
    font-size: 3rem !important;
  }

  .hero-section .display-4 {
    font-size: 1.75rem !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }

  .hero-section {
    background: none !important;
    color: black !important;
  }

  .card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Styles */
.btn:focus,
.form-control:focus,
.form-check-input:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .btn {
    border: 2px solid currentColor;
  }

  .card {
    border: 2px solid #000;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --light-bg: #212529;
    --card-bg: #343a40;
    --text-color: #ffffff;
  }

  body {
    background-color: var(--light-bg);
    color: var(--text-color);
  }

  .card {
    background-color: var(--card-bg);
    color: var(--text-color);
  }

  .form-section {
    background-color: #495057;
  }
}
