/* Custom Design Tokens & Wave Animations for Gewerbe in Selters */

:root {
  /* Theme Palette based on the Selters RollUp Banner */
  --selters-bg: #fbfbf9;             /* Soft off-white/cream background */
  --selters-navy: #0d2c5c;           /* Deep elegant navy blue (primary font) */
  --selters-royal: #1e53a3;          /* Royal blue (middle wave accent) */
  --selters-sky: #3ba4d7;            /* Sky blue (light wave accent) */
  --selters-red: #d12b2b;            /* Crest crimson red (active/highlight) */
  --selters-gold: #dfa823;           /* Crest gold (accent details) */
  
  --text-primary: #0f1e36;
  --text-secondary: #475569;
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', 'Inter', sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: var(--selters-bg);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Serif Typography for elegant headings */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--selters-navy);
}

/* Premium Light Glassmorphism / Frosted Layering */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 30px -10px rgba(15, 44, 92, 0.08);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 164, 215, 0.4);
  box-shadow: 0 20px 40px -15px rgba(15, 44, 92, 0.15);
}

/* Wave Shapes & Animation Keyframes */
.wave-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-svg {
  position: absolute;
  left: -60px;
  width: calc(100% + 120px) !important;
  height: 100% !important;
  display: block;
}

/* Drifting wave animations */
.wave-layer {
  animation: waveDrift 20s cubic-bezier(0.37, 0, 0.63, 1) infinite;
  transform-origin: center bottom;
}

.wave-layer-fast {
  animation: waveDrift 14s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

.wave-layer-slow {
  animation: waveDrift 26s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@keyframes waveDrift {
  0% {
    transform: translateX(0) translateZ(0) scaleY(1);
  }
  50% {
    transform: translateX(-60px) translateZ(0) scaleY(1.05);
  }
  100% {
    transform: translateX(0) translateZ(0) scaleY(1);
  }
}

/* Active Nav Links and Hover Transitions */
.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--selters-navy);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--selters-sky);
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--selters-royal);
}

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

.nav-link.active {
  color: var(--selters-royal);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
  background-color: var(--selters-navy);
}

/* Primary/Secondary Buttons */
.btn-primary {
  background-color: var(--selters-navy);
  color: #ffffff;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  border: 1px solid var(--selters-navy);
}

.btn-primary:hover {
  background-color: var(--selters-royal);
  border-color: var(--selters-royal);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 83, 163, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--selters-navy);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(13, 44, 92, 0.2);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: rgba(13, 44, 92, 0.05);
  border-color: var(--selters-navy);
  transform: translateY(-1px);
}

/* Badge categories */
.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
}

.badge-blue {
  background-color: rgba(59, 164, 215, 0.15);
  color: var(--selters-royal);
}

.badge-red {
  background-color: rgba(209, 43, 43, 0.1);
  color: var(--selters-red);
}

.badge-gold {
  background-color: rgba(223, 168, 35, 0.15);
  color: #926d0c;
}
