@import url('variables.css');

html, body {
    height: 100vh;
    margin: 0;
    padding: 0;
    font-family: var(--font-secondary);
}

main {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures the main section takes at least the full height */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.white-bg nav ul li a {
  color: black; /* Dark text for visibility */
}

/* Hero Section */
.hero {
    background: url('../images/image1.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
    margin-bottom: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center content */
    align-items: center; /* Horizontally center content */
    width: 100%;
    height: 100vh;
    position: relative;
  }

  .hero p {
    font-size: var(--fontsize-h3);
  }
  
  .hero h1 {
    font-size: var(--fontsize-h1);
    font-family: var(--font-primary);
    position: absolute;
    top: 73%;
    left: 28%;
    transform: translate(-50%, -50%);
  }

  .hero #typing-effect {
    color: white;
  }

  .color2 {
    color: var(--color2);
  }
  
  .cta-button {
    background: var(--color5);
    display: inline-block;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: var(--border-radius2);
  }
  
  .cta-button:hover {
    font-weight: bold;
  }

  .hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease-out, transform 3s ease-out;
}

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

/* Image + Text Section */
.image-text-section {
  padding: 5% 5%; /* Match main padding */
  background: #fff; /* White background */
}

.image-text-container {
  display: flex;
  flex-direction: row;
  align-items: center; /* Vertically center image and text */
  gap: 2.5%; /* Space between image and text */
}

.image-side {
  flex: 1; /* Take up 50% of the space */
}

.image-side img, .image-side video {
  width: 100%;
  height: auto;
  border-radius: 50px; /* Rounded corners for the image */
}

.text-side {
  flex: 1; /* Take up 50% of the space */
}

.text-side h2 {
  text-align: center;
  font-family: var(--font-primary);
  font-size: var(--fontsize-h2);
  margin: 0 0 40px 0;
  color: #333;
}

.text-side p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 2.5%;
}

.text-side .cta-button {
  background: var(--color2);
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: var(--border-radius2);
  display: block;
  width: fit-content;
  margin: 10px auto 0 auto;
  transition: background 0.3s ease, opacity 1.5s ease-out, transform 3s ease-out;
}

.text-side .cta-button:hover {
  background: var(--color2);
}


/*Location section */

.map-container {
  text-align: center;
  padding-bottom: 5%;
}

.map-wrapper {
  width: 100%;
  max-width: 800px; /* Adjust width */
  margin: 0 auto; /* Centering */
  overflow: hidden;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius2);
}

.map-container h2 {
  font-family: var(--font-primary);
  font-size: var(--fontsize-h2);
  text-align: center;
  margin: 0 0 40px 0;
  padding-top: 5%;
  color: black; 
}

.location-details {
  max-width: 800px;
  margin: 30px auto 0 auto;
  padding: 0 10px;
  text-align: center;
}

.location-details p {
  margin: 0 0 15px 0;
  line-height: 1.6;
}

.location-details a {
  color: inherit;
  text-decoration: underline;
}

/* imprint */

.imprint div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}


/* Cookies */

.cookies {
  padding-top: 220px;
  padding-bottom: 80px;
}

.cookies div {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  margin: 0 auto;
  max-width: 900px;
  padding: 0 5%;
}