/**
 * BANU WEBSITE - MAIN STYLESHEET
 *
 * Importiert alle CSS-Module in der richtigen Reihenfolge
 */

/* 1. Design System - Variablen müssen zuerst geladen werden */
@import url('variables.css');

/* 2. Reset - Browser-Defaults zurücksetzen */
@import url('reset.css');

/* 3. Layout - Grid, Container, Spacing */
@import url('layout.css');

/* 4. Komponenten - UI-Elemente */
@import url('components.css');

/* ==========================================================================
   GOOGLE FONTS (Optional - kann später durch lokale Fonts ersetzt werden)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   CUSTOM PAGE-SPECIFIC STYLES
   (Seiten-spezifische Styles, die nicht komponentenbasiert sind)
   ========================================================================== */

/* Landing Page Hero mit Banu Header - Animierter Gradient */
.hero--banu-header {
  background: linear-gradient(
    135deg,
    var(--color-jungle-green-dark) 0%,
    var(--color-jungle-green-medium) 50%,
    var(--color-jungle-green-dark) 100%
  );
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
  padding: var(--space-lg) 0 var(--space-xxl);
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Floating Animation für Hero-Bild */
.hero--banu-header .hero__image {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Drop-Shadow für Hero-Bild */
.hero--banu-header .hero__image-container {
  max-width: 900px;
  margin: 0 auto;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.25));
}

/* Problem Section Styling */
.problem-section {
  position: relative;
  overflow: hidden;
}

.problem-section::before {
  content: '😟';
  position: absolute;
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  opacity: 0.2;
  display: none;
}

@media (min-width: 641px) {
  .problem-section::before {
    display: block;
    top: -30px;
    font-size: 4rem;
    opacity: 0.3;
  }
}

/* Solution Section Styling */
.solution-section {
  position: relative;
  overflow: hidden;
}

.solution-section::before {
  content: '✨';
  position: absolute;
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  opacity: 0.2;
  display: none;
}

@media (min-width: 641px) {
  .solution-section::before {
    display: block;
    top: -30px;
    font-size: 4rem;
    opacity: 0.3;
  }
}

/* Trust Indicators Grid */
.trust-indicators {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

@media (min-width: 641px) {
  .trust-indicators {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .trust-indicators {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Scientific Background Page - Tabs Styling */
.tabs {
  display: flex;
  gap: var(--space-sm);
  border-bottom: 2px solid var(--color-gray-light);
  margin-bottom: var(--space-xl);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab {
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab:hover {
  color: var(--color-jungle-green-medium);
}

.tab--active {
  color: var(--color-jungle-green-dark);
  border-bottom-color: var(--color-jungle-green-medium);
}

.tab-content {
  display: none;
}

.tab-content--active {
  display: block;
  animation: fadeIn var(--transition-base);
}

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

/* Research Page - Results Display */
.research-results {
  background-color: var(--color-warm-cream);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  border-left: 6px solid var(--color-jungle-green-medium);
}

.research-stat {
  text-align: center;
  padding: var(--space-lg);
}

.research-stat__number {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-jungle-green-medium);
  display: block;
  margin-bottom: var(--space-sm);
}

.research-stat__label {
  font-size: var(--font-size-base);
  color: var(--color-gray-dark);
}

/* Contact Page - Form Container */
.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-xl);
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

/* About Alice Page - Profile Section */
.profile-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 1025px) {
  .profile-section {
    grid-template-columns: 300px 1fr;
  }
}

.profile-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}

/* Timeline (für Alice's Journey) */
.timeline {
  position: relative;
  padding-left: var(--space-xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--color-jungle-green-light);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-xl);
  padding-left: var(--space-lg);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: var(--border-radius-full);
  background-color: var(--color-jungle-green-medium);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-jungle-green-light);
}

.timeline-item__year {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-jungle-green-medium);
  margin-bottom: var(--space-xs);
}

.timeline-item__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
}

.timeline-item__description {
  color: var(--color-gray-dark);
}

/* Coming Soon Badge */
.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background-color: var(--color-accent-orange);
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--border-radius-full);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

/* Success Message (für Forms) */
.success-message {
  padding: var(--space-lg);
  background-color: rgba(76, 175, 80, 0.1);
  border-left: 4px solid var(--color-success);
  border-radius: var(--border-radius-md);
  color: var(--color-success);
  margin-bottom: var(--space-lg);
}

/* Error Message (für Forms) */
.error-message {
  padding: var(--space-lg);
  background-color: rgba(244, 67, 54, 0.1);
  border-left: 4px solid var(--color-error);
  border-radius: var(--border-radius-md);
  color: var(--color-error);
  margin-bottom: var(--space-lg);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

/* Fade In - für Scroll-Animationen (via JavaScript) */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

/* ==========================================================================
   STAGGERED ANIMATIONS
   ========================================================================== */

/* Gestaffelte Delays für aufeinander folgende Elemente in Grids */
.grid > .fade-in:nth-child(1),
.grid > .scale-in:nth-child(1) { transition-delay: 0ms; }

.grid > .fade-in:nth-child(2),
.grid > .scale-in:nth-child(2) { transition-delay: 100ms; }

.grid > .fade-in:nth-child(3),
.grid > .scale-in:nth-child(3) { transition-delay: 200ms; }

.grid > .fade-in:nth-child(4),
.grid > .scale-in:nth-child(4) { transition-delay: 300ms; }

.grid > .fade-in:nth-child(5),
.grid > .scale-in:nth-child(5) { transition-delay: 400ms; }

.grid > .fade-in:nth-child(6),
.grid > .scale-in:nth-child(6) { transition-delay: 500ms; }

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scale In - für Cards (mit Bounce-Effekt) */
.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-bounce);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Slide In from Left */
.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide In from Right */
.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   ACCESSIBILITY - REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in,
  .scale-in,
  .slide-in-left,
  .slide-in-right {
    opacity: 1;
    transform: none;
  }

  /* Hero Animationen deaktivieren */
  .hero--banu-header {
    animation: none;
    background-size: 100% 100%;
  }

  .hero--banu-header .hero__image {
    animation: none;
  }
}

/* ==========================================================================
   ACCESSIBILITY - HIGH CONTRAST MODE
   ========================================================================== */

@media (prefers-contrast: more) {
  :root {
    --color-jungle-green-medium: #2d5016;
    --shadow-sm: none;
    --shadow-md: 0 0 0 2px currentColor;
    --shadow-lg: 0 0 0 2px currentColor;
  }

  .btn {
    border-width: 3px;
  }

  .card {
    border: 2px solid currentColor;
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  .nav,
  .footer,
  .btn,
  .cta {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  a {
    text-decoration: underline;
    color: #000;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
}
