/* Local Fonts (self-hosted) */
@import url('fonts/fonts.css');

/* Navigation Menu */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 10px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  margin-right: 10px;
}

.nav-logo span {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 1.5rem;
  color: var(--dark-green);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--snot-green);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--dark-green);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--dark-green);
  margin: 3px 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links li {
    margin: 10px 0;
  }
}

/* Contact Section */
.contact {
  position: relative;
  padding: 100px 20px;
  background-color: var(--white);
  text-align: center;
  z-index: 2;
}

.contact h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--dark-green);
}

.contact p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--text-dark);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background-color: var(--snot-green);
  opacity: 0.3;
  border-radius: 50% 0 0 0;
  z-index: -1;
}

/* Brevo Form Styling */
.contact-form iframe {
  width: 100% !important;
  max-width: 540px;
  height: auto !important;
  min-height: 305px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Base Styles - Colors derived from Snotify logo */
:root {
  /* Primary colors from logo */
  --snot-green: #9ab24d; /* Olive green nose/snot */
  --light-green: #b5c96e; /* Lighter olive */
  --dark-green: #7a9a3d; /* Darker olive */
  --accent-orange: #f5a623; /* Orange ring */
  --cream: #f5e6c8; /* Cream background */
  --teal-dark: #3d5a5b; /* Dark teal (glasses/mustache) */
  --teal-light: #c5e0e0; /* Light teal (glasses lenses) */

  /* Legacy aliases for compatibility */
  --watery-blue: var(--teal-light);
  --mucus-yellow: #e8d56b; /* Slightly warmer yellow */
  --bg-gradient-start: var(--cream);
  --bg-gradient-end: var(--snot-green);
  --text-dark: var(--teal-dark);
  --white: #fff;
  --drip-animation: drip 2s infinite;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: 'Bubblegum Sans', cursive;
  color: var(--text-dark);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Slime Animations and Effects */
.slime-top {
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--snot-green);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.1));
  z-index: 1;
}

.slime-bottom {
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--snot-green);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  filter: drop-shadow(0 -5px 5px rgba(0, 0, 0, 0.1));
  z-index: 1;
}

.slime-drip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 60px;
  background: var(--snot-green);
  border-radius: 0 0 15px 15px;
  animation: var(--drip-animation);
  z-index: 0;
}

.slime-drip.small {
  width: 15px;
  height: 30px;
  bottom: -15px;
}

.slime-corner {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background: var(--snot-green);
  border-radius: 0 0 50% 0;
  z-index: 0;
}

@keyframes drip {
  0%,
  100% {
    height: 60px;
    opacity: 1;
  }
  50% {
    height: 75px;
    opacity: 0.7;
  }
}

@keyframes bubble {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.logo-container {
  margin: 0 auto 20px;
  position: relative;
  width: 200px;
  height: 200px;
  animation: float 6s ease-in-out infinite;
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

.title {
  font-size: 5rem;
  margin-bottom: 10px;
  color: var(--teal-dark);
  text-shadow:
    2px 2px 0 var(--white),
    4px 4px 0 rgba(0, 0, 0, 0.1);
}

.subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.cta-container {
  position: relative;
  display: inline-block;
  margin-top: 20px;
}

.cta-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--accent-orange);
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-3px);
  background-color: #e09520;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features {
  position: relative;
  padding: 100px 20px;
  background-color: var(--white);
  text-align: center;
  z-index: 2;
}

.features h2 {
  font-size: 3rem;
  margin-bottom: 50px;
  color: var(--dark-green);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  position: relative;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  z-index: 1;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-green);
}

.feature-card p {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* Sound Gallery */
.sound-gallery {
  position: relative;
  padding: 100px 20px;
  background: linear-gradient(135deg, var(--watery-blue) 0%, var(--snot-green) 100%);
  text-align: center;
  z-index: 2;
}

.sound-gallery h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.sound-gallery > p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--white);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
}

.buttons-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 50px;
}

.sound-button {
  padding: 15px 20px;
  background-color: var(--light-green);
  color: var(--text-dark);
  border: none;
  border-radius: 15px;
  font-family: 'Bubblegum Sans', cursive;
  font-size: 1.1rem;
  cursor: pointer;
  transition:
    transform 0.3s,
    background-color 0.3s,
    opacity 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sound-button::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 10px;
  background-color: var(--snot-green);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
}

.sound-button:hover {
  transform: translateY(-5px);
  background-color: var(--mucus-yellow);
}

.sound-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.sound-button.disabled:hover {
  transform: none;
  background-color: var(--light-green);
}

.download-hint {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--teal-dark);
  color: var(--white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  text-align: center;
  animation: popIn 0.3s ease-out;
}

@keyframes popIn {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.download-hint p {
  margin: 0 0 15px 0;
}

.download-hint .close-hint {
  background-color: var(--light-green);
  color: var(--dark-green);
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s;
}

.download-hint .close-hint:hover {
  background-color: var(--white);
}

.sound-button:hover::after {
  opacity: 1;
  bottom: -8px;
}

.sound-button.active {
  background-color: var(--mucus-yellow);
  transform: translateY(-5px);
}

.sound-button.active::after {
  opacity: 1;
  bottom: -8px;
}

.sound-description {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 20px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sound-description h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--dark-green);
}

.sound-description p {
  font-size: 1.1rem;
}

/* How to Use */
.how-to-use {
  position: relative;
  padding: 100px 20px;
  background-color: var(--white);
  text-align: center;
  z-index: 2;
}

.how-to-use h2 {
  font-size: 3rem;
  margin-bottom: 50px;
  color: var(--dark-green);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.step {
  position: relative;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 40px 20px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background-color: var(--accent-orange);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark-green);
}

.step-content p {
  font-size: 1rem;
}

/* Footer */
footer {
  position: relative;
  padding: 50px 20px;
  background-color: var(--teal-dark);
  color: var(--white);
  text-align: center;
  z-index: 2;
}

.legal-links {
  margin: 15px 0;
}

.legal-links a {
  color: var(--white);
  text-decoration: none;
  margin: 0 10px;
  position: relative;
  font-size: 0.9rem;
}

.legal-links a:hover {
  text-decoration: underline;
}

.legal-links a:not(:last-child)::after {
  content: '|';
  position: absolute;
  right: -12px;
}

/* Rechtliche Seiten */
.legal-page {
  max-width: 800px;
  margin: 80px auto;
  padding: 40px;
  background-color: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--dark-green);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.legal-content {
  line-height: 1.8;
}

.legal-content h2 {
  color: var(--dark-green);
  margin-top: 30px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  margin-right: 10px;
}

.footer-logo h3 {
  font-size: 1.8rem;
  color: var(--white);
}

.footer-links p {
  margin: 5px 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .title {
    font-size: 3.5rem;
  }

  .logo-container {
    width: 150px;
    height: 150px;
  }

  .features h2,
  .sound-gallery h2,
  .how-to-use h2 {
    font-size: 2.5rem;
  }

  .buttons-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .logo-container {
    width: 120px;
    height: 120px;
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 1rem;
  }

  .features h2,
  .sound-gallery h2,
  .how-to-use h2 {
    font-size: 2rem;
  }
}
