:root {
  --sage: #8a9a5b;
  --sage-light: #a7b484;
  --sand: #f9f9f2;
  --text-dark: #2d3436;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark);
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
}

.text-sage {
  color: var(--sage);
}
.bg-sage {
  background-color: var(--sage);
}
.bg-sand {
  background-color: var(--sand);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.3s ease;
}

.logo-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--sage);
  border-radius: 12px;
  color: var(--sage);
}

/* Dark Mode Specific Adjustments */
.dark .bg-sand {
  background-color: #1a1d23;
}
.dark .bg-white {
  background-color: #0f1115;
}
.dark .text-gray-500 {
  color: #9ca3af;
}
.dark .border-gray-100 {
  border-color: #2d333b;
}

/* Navigation Hover Effects */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

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

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

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

/* Hero Carousel */
.hero-carousel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  transform: scale(1.05);
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 1.5s ease-in-out,
    transform 8s linear;
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.whatsapp-btn {
  background-color: #25d366;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(37, 211, 102, 0.5);
  filter: brightness(1.05);
}

/* Collage Specific Styles */
.collage-container {
  position: relative;
  height: 500px;
  width: 100%;
}

.collage-img {
  position: absolute;
  border-radius: 1.5rem;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease;
}

.collage-img:hover {
  transform: scale(1.02);
  z-index: 10;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover .service-price {
  background-color: var(--sage);
  color: white;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 850px;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 1.5rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  scrollbar-width: thin;
  scrollbar-color: var(--sage) var(--sand);
  -webkit-overflow-scrolling: touch; /* Smoothes Scrollen auf iOS */
}

/* Sticky Header für Modals damit Schließen-Button immer sichtbar ist */
.modal-header-sticky {
  position: sticky;
  top: 0;
  z-index: 110;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--sand);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Back to Top Button Animation */
#back-to-top {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(100px);
  opacity: 0;
}
#back-to-top.visible {
  transform: translateY(0);
  opacity: 1;
}
/* Mobile specific adjustments */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.75rem !important;
    line-height: 1.2 !important;
  }
  .modal {
    padding: 1rem;
  }
  .modal-content {
    max-height: 92vh;
    padding: 1.5rem !important; /* Smaller padding on mobile */
    border-radius: 1rem;
  }
  .modal-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f9f9f2;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .collage-container {
    height: 400px;
  }
}
