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

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  min-height: 100vh;
  margin: 0;
  font-weight: 400;
}

/* Elegant Navigation */
.elegant-navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.nav-brand .brand-link {
  text-decoration: none;
  color: #673AB7;
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  transition: all 0.3s ease;
  position: relative;
}

.nav-brand .brand-link:hover {
  color: #764ba2;
  transform: translateY(-1px);
}

.nav-brand .brand-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-brand .brand-link:hover::after {
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #7E57C2;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  transition: left 0.3s ease;
  border-radius: 50px;
}

.nav-link:hover::before,
.nav-link.active::before {
  left: 0;
}

.nav-link:hover,
.nav-link.active {
  color: #764ba2;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.nav-link.active {
  font-weight: 600;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #764ba2;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
  display: none;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.mobile-menu.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-link {
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  color: #4a5568;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 0 1rem;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

/* Container adjustments */
:root { --grid-gap: 1.5rem; --stack-gap: 3rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap);
}

/* Main Container */
.main-container {
  min-height: calc(100vh - 70px);
  padding: 2rem 0;
}

/* Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  margin: 0;
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.glass-card > h3:first-child {
    margin-top: 1rem;
}

.glass-card > p:last-child {
    margin-bottom: 0;
}

.hero-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
  color: white;
  text-align: center;
  padding: 4rem 2.5rem;
}

/* Feature Cards Grid System with full width and proper wrapping */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: var(--grid-gap);
  margin: 0;
  max-width: 1200px;
  width: 100%;
  padding: 0;
}

/* Large: 3 nebeneinander */
.feature-card {
  flex: 1 1 calc(33.333% - var(--grid-gap));
  max-width: calc(33.333% - var(--grid-gap));
  min-width: 260px; /* erlaubt Wrap bei kleiner Breite */
}

/* Medium: 2 nebeneinander, die dritte volle Breite */
@media (max-width: 992px) {
  .feature-card {
    flex: 1 1 calc(50% - var(--grid-gap));
    max-width: calc(50% - var(--grid-gap));
    margin: 1rem 0;
  }
  /* exakt für unseren 3er-Case: letzte Karte volle Breite */
  .feature-grid > .feature-card:last-child {
    flex-basis: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }
}

/* Small: alle einzeln, volle Breite */
@media (max-width: 768px) {
  .feature-grid {
    margin: 0;
    align-items: stretch;
  }
  .feature-card {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
    margin: 1rem 0 !important;
  }

  .feature-card:first-child {
      margin-top: 0;
  }

  .feature-card:last-child {
      margin-bottom: 0;
  }
}

/* Fix: equal left/right spacing for stacked feature cards */
@media (max-width: 768px) {
  /* rely only on the outer .container padding */
  .feature-grid { padding-left: 0 !important; padding-right: 0 !important; }
  /* keep page padding */
  .container, .content-wrapper { padding: 0 1rem; }
  /* cards truly full width, no extra side margins */
  .feature-card.glass-card { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }
}

/* Emoji and Icon specific styles */
.emoji, .feature-icon {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", "EmojiSymbols", sans-serif !important;
  font-variant-emoji: emoji;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-block;
  vertical-align: baseline;
}

.feature-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
  line-height: 1;
  text-align: center;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.feature-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #4a5568;
  margin: 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
  text-align: center;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #673AB7;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #667eea;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, #764ba2, #7E57C2);
  border-radius: 2px;
}

h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #764ba2;
  position: relative;
}

h3::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, #764ba2, #7E57C2);
  border-radius: 2px;
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1.1rem;
  color: #4a5568;
}

a {
  text-decoration: none;
}

/* Logo */
.vocacrush-logo {
  max-width: 250px;
  height: auto;
  margin-bottom: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.vocacrush-logo:hover {
  transform: scale(1.05);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
  display: inline-block;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
  color: white;
}

.btn-language {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-language:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Lists */
ul {
  list-style: circle;
  padding: 0;
}

li {
  margin: 1rem 0;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

li:hover {
  transform: translateX(5px);
}

li strong {
  color: #667eea;
  font-weight: 700;
  margin-left: 2rem;
}

li p, li span {
  margin-left: 2rem;
  margin-bottom: 0;
}


/* Special Sections */
.privacy-intro {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  margin: 0;
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.privacy-intro p {
  color: white;
  font-size: 1.2rem;
  margin: 0;
  font-weight: 500;
}


.contact-info {
  background: rgba(126, 87, 194, 0.2);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  margin: 0;
  border: 2px solid rgba(126, 87, 194, 0.4);
  color: inherit;
  box-shadow: none;
}

.contact-info > p:last-child {
    margin-bottom: 0 !important;
}

/* Email obfuscation */
.email-protect {
  text-decoration: underline;
  color: inherit;
  cursor: pointer;
}
.email-protect::after {
  content: attr(data-user) "@" attr(data-domain);
}
.email-protect:hover { color: #667eea; }

.last-update {
  text-align: right;
  color: white;
  color: #7E57C2;
}

/* A11y: visually hidden utility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

/* Play Store Badge */
.playstore-link {
  display: inline-block;
  transition: all 0.3s ease;
  margin: 1rem;
}

.playstore-link:hover {
  transform: scale(1.05) translateY(-3px);
}

.playstore-badge {
  height: 70px;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Download Section */
.download-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.download-section h6 {
  color: #673AB7;
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0 0 1.75rem 0;
}

.download-note {
  margin-top: auto; /* push note to bottom */
  padding-top: 1.5rem;
  margin-bottom: 0; /* less bottom space */
  color: #7E57C2;
}

.last-update {
  text-align: right;
  color: #7E57C2;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glass-card, .feature-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .glass-card {
    margin: 0;
    padding: 2rem;
  }
  
  .hero-card {
    padding: 3rem 2rem;
  }
  
  .vocacrush-logo {
    max-width: 200px;
  }
  
  .feature-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .feature-card {
    max-width: 500px;
    width: 100%;
    min-height: auto;
    min-width: 250px;
    padding: 2rem;
  }
  
  .feature-icon {
    font-size: 3rem;
  }
  
  .feature-card h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .glass-card {
    padding: 1.5rem;
  }
  
  .hero-card {
    padding: 2rem 1.5rem;
  }
  
  .nav-brand .brand-link {
    font-size: 1.5rem;
  }
}

/* Final overrides: ensure solid white cards (no transparency) */
.glass-card,
.glass-card.hero-card,
.hero-card,
.feature-card {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

/* Remove any blur effect on the hero card to avoid visual transparency feel */
.hero-card {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: #333 !important;
}