/* ============================================
   ALEXANDER WIESER - PREMIUM WEBSITE
   Warmes Schmuck-Gold & Dynamische Animationen
   ============================================ */

/* === ROOT VARIABLES === */
:root {
  /* Warmes Schmuck-Gold (wie Luxus-Uhren) */
  --gold-primary: #C9A961;
  --gold-secondary: #B8964F;
  --gold-accent: #D4A574;
  --gold-glow: #E5C89B;
  
  /* Schwarz & Grau */
  --black: #000000;
  --black-light: #0a0a0a;
  --gray-dark: #1a1a1a;
  --gray-medium: #2d2d2d;
  --gray-light: #3a3a3a;
  --white: #ffffff;
  
  /* Akzentfarben */
  --accent-warning: #ff6b35;
  
  /* Transitions */
  --transition-fast: 0.3s ease-in-out;
  --transition-smooth: 0.5s ease-in-out;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* === ANIMATED BACKGROUND (auf jeder Seite) === */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* Mesh Gradient Animation */
.mesh-gradient {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    135deg,
    var(--black) 0%,
    var(--gray-dark) 25%,
    var(--gray-medium) 50%,
    rgba(201, 169, 97, 0.1) 75%,
    var(--black) 100%
  );
  animation: meshMove 20s ease-in-out infinite alternate;
}

@keyframes meshMove {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-5%, 5%) rotate(5deg);
  }
  100% {
    transform: translate(5%, -5%) rotate(-5deg);
  }
}

/* Moving Particles */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  background: var(--gold-primary);
  border-radius: 50%;
  opacity: 0.4;
  animation: particleFloat 10s ease-in-out infinite;
}

.particle:nth-child(1) { width: 4px; height: 4px; top: 10%; left: 20%; animation-duration: 12s; animation-delay: 0s; }
.particle:nth-child(2) { width: 6px; height: 6px; top: 20%; left: 80%; animation-duration: 15s; animation-delay: 2s; }
.particle:nth-child(3) { width: 3px; height: 3px; top: 30%; left: 40%; animation-duration: 10s; animation-delay: 1s; }
.particle:nth-child(4) { width: 5px; height: 5px; top: 60%; left: 70%; animation-duration: 18s; animation-delay: 3s; }
.particle:nth-child(5) { width: 4px; height: 4px; top: 80%; left: 30%; animation-duration: 14s; animation-delay: 1.5s; }
.particle:nth-child(6) { width: 6px; height: 6px; top: 50%; left: 10%; animation-duration: 16s; animation-delay: 2.5s; }
.particle:nth-child(7) { width: 3px; height: 3px; top: 40%; left: 90%; animation-duration: 11s; animation-delay: 0.5s; }
.particle:nth-child(8) { width: 5px; height: 5px; top: 70%; left: 50%; animation-duration: 13s; animation-delay: 3.5s; }

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-50px) translateX(30px);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-100px) translateX(-20px);
    opacity: 0.5;
  }
  75% {
    transform: translateY(-50px) translateX(-30px);
    opacity: 0.6;
  }
}

/* Geometric Shapes */
.geometric-shape {
  position: absolute;
  border: 2px solid var(--gold-primary);
  opacity: 0.15;
  animation: geometricRotate 30s linear infinite;
}

.geometric-shape.circle-1 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  top: 15%;
  right: 10%;
  animation-duration: 40s;
}

.geometric-shape.circle-2 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  bottom: 20%;
  left: 15%;
  animation-duration: 35s;
  animation-direction: reverse;
}

.geometric-shape.triangle {
  width: 0;
  height: 0;
  border-left: 150px solid transparent;
  border-right: 150px solid transparent;
  border-bottom: 260px solid var(--gold-primary);
  opacity: 0.08;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  animation-duration: 45s;
}

@keyframes geometricRotate {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--gold-primary);
  text-shadow: 0 0 30px rgba(201, 169, 97, 0.3);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold-accent);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
}

p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  margin-bottom: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.9);
}

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(201, 169, 97, 0.2);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  transition: var(--transition-fast);
}

.navbar-logo:hover {
  color: var(--gold-accent);
  text-shadow: 0 0 20px var(--gold-glow);
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.navbar-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition-fast);
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: var(--transition-fast);
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--gold-primary);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  width: 100%;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.navbar-toggle span {
  width: 25px;
  height: 3px;
  background: var(--gold-primary);
  transition: var(--transition-fast);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
  min-height: 50px;
  font-family: 'Montserrat', sans-serif;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold-primary);
  color: var(--black);
  border-color: var(--gold-primary);
}

.btn-primary:hover {
  background: var(--gold-accent);
  border-color: var(--gold-accent);
  transform: translateY(-3px);
  box-shadow: 
    0 10px 30px rgba(201, 169, 97, 0.4),
    0 0 40px rgba(201, 169, 97, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-primary);
  border-color: var(--gold-primary);
}

.btn-secondary:hover {
  background: var(--gold-primary);
  color: var(--black);
  transform: translateY(-3px);
  box-shadow: 
    0 10px 30px rgba(201, 169, 97, 0.4),
    0 0 40px rgba(201, 169, 97, 0.3);
}

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(26, 26, 26, 0.7) 50%,
    rgba(201, 169, 97, 0.1) 100%
  );
  animation: overlayPulse 8s ease-in-out infinite;
}

@keyframes overlayPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.9;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
}

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

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--gold-accent);
  margin-bottom: var(--spacing-sm);
  font-weight: 400;
}

.hero-title {
  margin-bottom: var(--spacing-md);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 30px rgba(201, 169, 97, 0.3);
  }
  50% {
    text-shadow: 0 0 50px rgba(201, 169, 97, 0.5);
  }
}

.hero-description {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  margin-bottom: var(--spacing-lg);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === SECTIONS === */
.section {
  position: relative;
  padding: var(--spacing-xl) var(--spacing-md);
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title {
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: 0 auto;
}

/* Alternating Section Backgrounds */
.section:nth-child(even) {
  background: rgba(26, 26, 26, 0.5);
}

/* === CARDS === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing-lg);
}

.card {
  background: rgba(26, 26, 26, 0.8);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(201, 169, 97, 0.05) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-10px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(201, 169, 97, 0.3),
    inset 0 0 20px rgba(201, 169, 97, 0.1);
}

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

.card-icon {
  font-size: 3rem;
  color: var(--gold-primary);
  margin-bottom: var(--spacing-sm);
  transition: var(--transition-smooth);
  display: inline-block;
}

.card:hover .card-icon {
  color: var(--gold-accent);
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 20px var(--gold-glow));
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--white);
}

.card-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-md);
}

.card-link {
  color: var(--gold-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.card-link:hover {
  color: var(--gold-accent);
  gap: 1rem;
}

/* === STATS (Counter Animation) === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing-lg);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-md);
  background: rgba(26, 26, 26, 0.6);
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-light);
  transition: var(--transition-smooth);
}

.stat-item:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 10px 30px rgba(201, 169, 97, 0.3);
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--gold-primary);
  display: block;
  margin-bottom: var(--spacing-xs);
  font-family: 'Montserrat', sans-serif;
}

.stat-label {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
}

/* === TESTIMONIALS === */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing-lg);
}

.testimonial {
  background: rgba(45, 45, 45, 0.8);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold-primary);
  position: relative;
  transition: var(--transition-smooth);
}

.testimonial:hover {
  transform: translateX(10px);
  box-shadow: -5px 0 20px rgba(201, 169, 97, 0.3);
}

.testimonial-quote {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--black);
  font-size: 1.25rem;
}

.testimonial-info h4 {
  color: var(--gold-accent);
  margin-bottom: 0.25rem;
}

.testimonial-info p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* === FOOTER === */
.footer {
  background: var(--black-light);
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
  border-top: 1px solid var(--gray-light);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: var(--spacing-lg);
}

.footer-column h3 {
  color: var(--gold-primary);
  margin-bottom: var(--spacing-md);
  font-size: 1.25rem;
}

.footer-column p,
.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
  transition: var(--transition-fast);
}

.footer-column a:hover {
  color: var(--gold-accent);
  padding-left: 10px;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: var(--spacing-sm);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-medium);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.25rem;
  transition: var(--transition-fast);
  padding: 0;
  margin: 0;
}

.footer-social a:hover {
  background: var(--gold-primary);
  color: var(--black);
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(201, 169, 97, 0.4);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--gray-light);
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--gold-primary);
  margin: 0 0.5rem;
  display: inline;
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gold-primary);
  color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 999;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gold-accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(201, 169, 97, 0.5);
}

/* === FADE IN ANIMATION (Intersection Observer) === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Stagger effect for cards */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }
.fade-in:nth-child(6) { transition-delay: 0.6s; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateX(-100%);
    transition: var(--transition-smooth);
  }
  
  .navbar-menu.active {
    transform: translateX(0);
  }
  
  .navbar-toggle {
    display: flex;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-primary), var(--gold-secondary));
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold-accent), var(--gold-primary));
}
