/* ===== INSPIRE Project Website — Design System ===== */
/* Brand Colors from Corporate Design:
   Navy:      #223c5a
   Teal:      #3db8b5
   Teal Dark: #35b6b3
   Teal Light:#b2dcdb
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ───── CSS Custom Properties ───── */
:root {
  --navy:         #223c5a;
  --navy-dark:    #19304c;
  --navy-deeper:  #0f1f33;
  --teal:         #3db8b5;
  --teal-dark:    #35b6b3;
  --teal-light:   #b2dcdb;
  --teal-glow:    rgba(61, 184, 181, .25);
  --teal-hover:   #2fa5a2;
  --white:        #ffffff;
  --off-white:    #f4f8fb;
  --light-gray:   #e8eff5;
  --mid-gray:     #94a3b8;
  --text-dark:    #1e293b;
  --text-body:    #475569;
  --text-light:   #64748b;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --shadow-sm:    0 1px  3px rgba(34,60,90,.08);
  --shadow-md:    0 4px 12px rgba(34,60,90,.10);
  --shadow-lg:    0 8px 30px rgba(34,60,90,.14);
  --shadow-xl:    0 16px 48px rgba(34,60,90,.18);
  --transition:   .3s cubic-bezier(.4,0,.2,1);
  --max-width:    1200px;
}

/* ───── Reset & Base ───── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-body);
  background: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Inter', sans-serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

a {
  color: var(--teal-dark);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--teal-hover); }

img { max-width: 100%; height: auto; display: block; }

/* ───── Utility ───── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}

.section-title span {
  color: var(--teal);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 60px;
}

.subsection-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  text-align: left;
  margin-top: 60px;
  margin-bottom: 8px;
  position: relative;
  color: var(--navy);
}

.subsection-title span {
  color: var(--teal);
}

.subsection-subtitle {
  text-align: left;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ───── Announcement Bar ───── */
.announcement-bar {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--teal-light);
  text-align: center;
  padding: 10px 20px;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .03em;
  position: relative;
  z-index: 1001;
}
.announcement-bar strong { color: var(--teal); }

/* ───── Header / Navigation ───── */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(34,60,90,.06);
  transition: box-shadow var(--transition);
}
.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: .88rem;
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width var(--transition);
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover { color: var(--teal-dark); }
.nav-links a.active { color: var(--teal-dark); font-weight: 600; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 26px; height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ───── Hero Section ───── */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--off-white) 0%, #e0f0ef 50%, var(--off-white) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-glow 8s ease-in-out infinite;
}

@keyframes float-glow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.1); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(61,184,181,.12);
  color: var(--teal-dark);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(61,184,181,.2);
}

.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(61,184,181,.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61,184,181,.4);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 6s ease;
}

.hero-image:hover img {
  transform: scale(1.05);
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34,60,90,.15) 0%, transparent 60%);
  pointer-events: none;
}

/* floating metric badges */
.hero-stats {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
}

.hero-stat-label {
  font-size: .8rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ───── About / Worum geht es ───── */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-highlight {
  background: linear-gradient(135deg, rgba(61,184,181,.06), rgba(61,184,181,.12));
  border-left: 4px solid var(--teal);
  padding: 24px 28px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 28px 0;
  font-size: 1.05rem;
  color: var(--text-dark);
}

/* ───── Work Packages / Features Cards ───── */
.work-packages {
  background: var(--off-white);
}

.wp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.wp-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.wp-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.wp-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.wp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.wp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(61,184,181,.15);
}

.wp-card:hover::before {
  opacity: 1;
}

.wp-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, rgba(61,184,181,.1), rgba(61,184,181,.2));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  color: var(--teal-dark);
  transition: all var(--transition);
}

.wp-card:hover .wp-icon {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  transform: scale(1.1);
}

.wp-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--navy);
}

.wp-card p {
  font-size: .92rem;
  color: var(--text-light);
  line-height: 1.6;
}

.wp-number {
  position: absolute;
  top: 12px; right: 16px;
  font-family: 'Outfit', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  color: var(--teal);
  opacity: .5;
  letter-spacing: .05em;
}

/* ───── Partners / Team ───── */
.partners {
  background: var(--white);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.partner-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid var(--light-gray);
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-light);
}

.partner-logo-wrap {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.partner-logo-wrap img {
  max-height: 60px;
  max-width: 200px;
  object-fit: contain;
  filter: grayscale(.3);
  transition: filter var(--transition);
}

.partner-card:hover .partner-logo-wrap img {
  filter: none;
}

.partner-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.partner-card .partner-role {
  font-size: .85rem;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.partner-card p {
  font-size: .9rem;
  color: var(--text-light);
}

/* ───── Team Members ───── */
.team {
  background: var(--off-white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-photo {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.team-card:hover .team-photo img {
  transform: scale(1.06);
}

.team-info {
  padding: 24px 20px;
}

.team-info h3 {
  font-size: 1.1rem;
  color: var(--teal-dark);
  margin-bottom: 6px;
}

.team-info .team-role {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-info .team-affiliation {
  font-size: .82rem;
  color: var(--text-light);
}

/* ───── Timeline ───── */
.timeline-section {
  background: var(--white);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--teal), var(--teal-light), var(--light-gray));
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 50px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}

.timeline-content {
  width: 45%;
  padding: 24px;
  background: var(--off-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--light-gray);
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--teal-light);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 18px;
  background: var(--teal);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.timeline-date {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--teal-dark);
  font-size: .9rem;
  margin-bottom: 6px;
}

.timeline-content h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: .88rem;
  color: var(--text-light);
}

/* ───── Contact / CTA ───── */
.cta-section {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy), var(--navy-deeper));
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(61,184,181,.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(61,184,181,.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section .section-title {
  color: var(--white);
}

.cta-section .section-subtitle {
  color: rgba(255,255,255,.7);
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: var(--teal);
  color: var(--white);
  border: 2px solid var(--teal);
  padding: 16px 36px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-cta-primary:hover {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61,184,181,.3);
  color: var(--white);
}

.btn-cta-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.3);
  padding: 16px 36px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-cta-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
  transform: translateY(-2px);
  color: var(--white);
}

/* ───── Footer ───── */
.footer {
  background: var(--navy-deeper);
  color: rgba(255,255,255,.6);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  max-width: 340px;
}

.footer h4 {
  color: var(--white);
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: .03em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,.5);
  font-size: .88rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--teal-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
}

.footer-bottom .funding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-bottom .funding img {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: .5;
}

/* ───── Scroll Animations ───── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ───── Responsive ───── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-content { max-width: 100%; }
  .hero-image img { height: 300px; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 30px; }
  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: row;
    text-align: left;
    padding-left: 60px;
  }
  .timeline-dot { left: 30px; }
  .timeline-content { width: 100%; }
  
  .wp-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links { 
    display: none;
    position: absolute;
    top: 72px; left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--light-gray);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero { min-height: auto; padding-top: 40px; padding-bottom: 40px; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 12px; }
  .section-padding { padding: 60px 0; }
  .partner-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .cta-buttons { flex-direction: column; align-items: center; }

  .wp-grid-3, .wp-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .hero-stat {
    flex: 1 1 40%;
  }
}

/* ───── Particle canvas ───── */
#particles-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ───── Scrollbar ───── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--teal-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }
