/* Farbvariablen: Weiß, Gold, Hellblau, Orange */
:root {
  --gold: #FFD700;
  --black: #1A1A1A;
  --white: #FFFFFF;
  --lightblue: #ADD8E6;
  --orange: #FFA500;
  --electric: rgba(255, 215, 0, 0.3);
  --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* RESET & GLOBALS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: var(--transition);
}

html, body {
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  transition: var(--transition);
  position: relative;
}

/* DARK MODE */
body.dark-mode {
  background: var(--black);
  color: var(--white);
}

/* THEME TOGGLE BUTTON */
@keyframes pulseHeartBeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.2);
  }
  70% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}

#theme-toggle {
  position: fixed;
  top: 1.2rem;
  right: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1000;

  animation: pulseHeartBeat 6s infinite;
  transition: transform 0.3s ease;
  transform-origin: right center;
}




.theme-icon {
  width: 2.5rem;
  height: 2.5rem;
  fill: var(--black);
  transition: var(--transition);
}

body.dark-mode .theme-icon {
  fill: var(--gold);
}

/* HERO SECTION */
.hero {
  text-align: center;
  padding: 8rem 2rem 0rem;
  position: relative;
  overflow: hidden;
}

.gradient-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  background: linear-gradient(45deg, var(--black), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
  animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
  from { text-shadow: 0 0 10px var(--gold); }
  to { text-shadow: 0 0 20px var(--gold); }
}

.subtitle {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* FALLING STARS (nur Light Mode) */
.falling-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.falling-stars .star {
  position: absolute;
  top: -10px;
  width: 4px;
  height: 4px;
  background: #e6b800;
  border-radius: 50%;
  opacity: 0.8;
  animation: fall linear infinite;
}

.falling-stars .star:nth-child(1) { left: 20%; animation-duration: 3s; }
.falling-stars .star:nth-child(2) { left: 40%; animation-duration: 3.5s; animation-delay: 0.5s; }
.falling-stars .star:nth-child(3) { left: 60%; animation-duration: 2.8s; animation-delay: 1s; }
.falling-stars .star:nth-child(4) { left: 80%; animation-duration: 3.2s; animation-delay: 0.8s; }
.falling-stars .star:nth-child(5) { left: 50%; animation-duration: 3.6s; animation-delay: 0.3s; }

@keyframes fall {
  0% { transform: translateY(0); opacity: 0.8; }
  100% { transform: translateY(110vh); opacity: 0; }
}

/* CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* SERVICE CARDS */
.service-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.1);
  isolation: isolate; /* wichtig für Pseudo-Effekt */
  overflow: hidden; /* wieder aktiviert für saubere Ränder */
}

body.dark-mode .service-card {
  background: #2A2A2A;
  border-color: rgba(255,255,255,0.1);
}

/* ✨ Gold-Schimmer in Dark Mode */
body.dark-mode .service-card::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 215, 0, 0.08) 50%,
    transparent 70%
  );
  transform: rotate(30deg);
  animation: goldShimmer 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes goldShimmer {
  0% {
    transform: translateX(-150%) rotate(30deg);
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(150%) rotate(30deg);
    opacity: 0.3;
  }
}

body.dark-mode .service-card > * {
  position: relative;
  z-index: 2;
}


/* Hellerer Effekt im Light Mode */
body:not(.dark-mode) .service-card {
  background: linear-gradient(135deg, #fffbe6, #ffffff);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.15);
}

/* Responsive Optimierung */
@media (max-width: 768px) {
  body.dark-mode .service-card::before {
    width: 400%;
    animation-duration: 6s;
  }
}



.sun-particles {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sun-particles span {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.5;
  animation: floatUpFromCorner 4s linear infinite;
}

/* Partikel mit unterschiedlichen Verzögerungen & Pfaden */
.sun-particles span:nth-child(1) { animation-delay: 0s; }
.sun-particles span:nth-child(2) { animation-delay: 1s; }
.sun-particles span:nth-child(3) { animation-delay: 2s; }
.sun-particles span:nth-child(4) { animation-delay: 1.5s; }
.sun-particles span:nth-child(5) { animation-delay: 0.8s; }
.sun-particles span:nth-child(6) { animation-delay: 1.2s; }
.sun-particles span:nth-child(7) { animation-delay: 2.5s; }
.sun-particles span:nth-child(8) { animation-delay: 0.6s; }
.sun-particles span:nth-child(9) { animation-delay: 1.8s; }
.sun-particles span:nth-child(10) { animation-delay: 2.2s; }
.sun-particles span:nth-child(11) { animation-delay: 1.4s; }
.sun-particles span:nth-child(12) { animation-delay: 0.9s; }

/* Neue Aufstiegsanimation von der Ecke aus */
@keyframes floatUpFromCorner {
  0% { 
    transform: translate(0, 0) scale(1); 
    opacity: 1;
  }
  50% {
    transform: translate(-15px, -40px) scale(1.2);
    opacity: 0.8;
  }
  100% { 
    transform: translate(-30px, -80px) scale(0.3); 
    opacity: 0;
  }
}

/* Sunrise Glow (unverändert) */
.sunrise-glow {
  position: absolute;
  bottom: -20%;
  right: -20%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at bottom right,
    rgba(255, 215, 0, 0.2),
    rgba(255, 215, 0, 0.05) 40%,
    transparent 70%);
  animation: sunrisePulse 6s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes sunrisePulse {
  from { transform: scale(1); opacity: 0.4; }
  to   { transform: scale(1.1); opacity: 0.6; }
}

/* Dark Mode (unverändert) */
body.dark-mode .sunrise-glow,
body.dark-mode .sun-particles {
  display: none;
}


/* CARD ICON & HEADINGS */
.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

body:not(.dark-mode) .card-icon img {
  display: none;
}

.service-card h2 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.5rem;
  color: #B8860B; /* This is a dark goldenrod color, aiming for mocca-mousse gold */
}

/* Pfeil zum Aufklappen */
.toggle-arrow {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--orange);
  transition: transform 0.3s ease;
}

/* CARD BACK (Details) */
.card-back {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.service-card.active .card-back {
  max-height: 500px;
  opacity: 1;
  margin-top: 1rem;
}

.service-card.active .toggle-arrow {
  transform: rotate(90deg);
}

.benefits li {
  list-style: none;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* VIDEO SECTION */
.video-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}
.video-container {
  width: 80%;
  max-width: 800px;
  box-shadow: 0 8px 9px rgba(219, 219, 219, 0.1);
}

.video-container iframe {
  width: 100%;
  height: 450px; /* oder ein anderes responsives Verhältnis */
  border-radius: 0.5rem;
}



/* CALL-TO-ACTION */
.cta-container {
  text-align: center;
  margin: 3rem 0;
}

.cta-button {
  display: inline-block;   /* Damit der Link sich wie ein Block-Button verhält */
  text-decoration: none;    /* Keine Unterstreichung */
  
  /* deine bisherigen Styles... */
  background: var(--black);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  animation: pulse-glow 6s infinite ease-in-out;
}


@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 
      0 -10px 30px rgba(255, 215, 0, 0.3),
      0 -15px 50px rgba(255, 215, 0, 0.2);
  }
  50% {
    box-shadow: 
      0 -15px 40px rgba(255, 215, 0, 0.4),
      0 -20px 60px rgba(255, 215, 0, 0.3),
      0 -5px 20px rgba(255, 215, 0, 0.2);
  }
}
/* Hover-Effekt */
.cta-button:hover {
  text-decoration: none;
  transform: scale(1.05);
  animation: pulse-glow 3s infinite ease-in-out;
}


/* Optional: Sanfte horizontale Bewegung wie Rauch */
.cta-button::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 215, 0, 0.1), 
    transparent);
  animation: smoke-drift 8s infinite linear;
  opacity: 0.7;
}

@keyframes smoke-drift {
  0% { transform: translateX(-20%) scaleX(0.8); }
  50% { transform: translateX(20%) scaleX(1.2); }
  100% { transform: translateX(-20%) scaleX(0.8); }
}

body.dark-mode .cta-button {
  background: var(--gold);
  color: var(--black);
}

.gold-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, var(--electric), transparent);
  animation: glowMove 3s infinite;
}

@keyframes glowMove {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .gradient-text { font-size: 1.8rem; }
  .subtitle { font-size: 1.3rem; }
  .card-grid { grid-template-columns: 1fr; padding: 0 1rem; }
  .hero { padding: 5rem 1rem 2rem; }
  #theme-toggle { top: 0.3rem; right: 1.9rem; width: 2rem; height: 2rem; }
  .cta-button { padding: 0.8rem 1.5rem; font-size: 1rem; }
  .video-container { width: 100%; max-width: 100%; padding: 0; margin: 0; border: none; }
}
