body {
  color: var(--color-primary);
  background-color: var(--color-secondary);
  width: 100%;
  min-height: 100vh;
  margin: 0;              /* remove default browser margin */
  padding: 0;             /* remove padding that was shrinking your site */
  overflow-x: hidden;
  box-sizing: border-box;
  font-family: var(--font-primary);
}


header{
height: 80px;
 position: relative;
height: 80px;
display: flex;
align-items: center;
justify-content: space-between;
    position: relative;
    z-index: 10;
}




.logo img {

height:70px;
border-radius: 50px;
margin-left: 30px;
}

.nav-link{
   
 margin-left: auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding-right: 50px;
}

.nav-link ul{
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
    padding: 0;
}

.nav-link a{
color: black;
text-decoration: none;
font-weight: 500;
font-size: 18px;
transition: color 0.3s ease;

}

.nav-link a:hover{
  color: black;
  text-decoration: underline;
}

.logo,
.nav-link,
.nav-right {
  position: relative;
  z-index: 2;
  color: black;
}

a.current {
  font-weight: bold;
  color: black; 

  font-size: 1.3rem;
}

.become-member {
  display: inline-block;
  background-color: #3FA752;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.become-member:hover {
     background-color: #339e4a;

}


/*new container*/

.membership{
background-image: url("picture/moritz-kindler.jpg");
 background-size: cover;
  background-repeat: no-repeat;
  background-position-x: right;
  background-position-y: center 30%;
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 15px;

}

.cover-membership{
  display: flex;
  justify-content: center;
    align-items: center;
  left: 20px;
  padding: 0;
margin: 0 5px
 
}

.overlay-content {
position: relative; 
 width: 600px;
  height: 180px; /* Full height (cover the whole page) */
  background-color: rgba(167, 156, 156, 0.5);
 background-image: none;
  z-index: 6; /* Specify a stack order in case you're using a different order for other elements */
opacity: 1;
box-sizing: border-box;
padding: 48px 32px;
margin: 32px auto;
border-radius: 15px;
}

.cover-membership h1 {
  font-size: 70px;
font-weight: bold;
color: white;
  margin: 5px;
   margin: 0;          
  padding-left: 5px;
  line-height: 1.2;   
}

.cover-membership h3 {
   font-weight: bold;
     font-size: 23px;
color: white;
  margin: 5px 0 0 0;  /* only small top margin to separate from h1 */
  line-height: 1.4;   /* reduce spacing */
  max-width: 700px;
}

/*new container*/
.contact-section {
  display: flex;
  flex-direction: column; /* stack sections vertically */
  align-items: center;    /* center horizontally */
  padding: 2rem;
  background-color: #f5f5f5;
}

.text-contact {
   width: 100%;
  max-width: 600px;       /* limit width for readability */
  margin-bottom: 3rem;    /* more spacing between sections */
  text-align: center;
}

.text-contact h2 {
 font-size: 2rem;        /* bigger headings */
  margin-bottom: 1.5rem;
}

.text-contact ul {
  list-style: none;
  padding: 0;
}

.text-contact li {
   margin-bottom: 1.5rem; /* more spacing between items */
  line-height: 1.8;      /* easier to read */
  font-size: 1.2rem;     /* bigger body text */
}

.text-contact a {
  color: #0072ce;
  text-decoration: none;
font-weight: 600;       /* slightly bolder for links */

}

.text-contact a:hover {
  text-decoration: underline;
}

address {
  font-style: normal;
  line-height: 1.5;
}



/* Footer container */
.footer {
  background-color: #4d908e; /* teal-like background */
  color: white;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  margin-top: 10px
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 220px;
  margin: 10px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: bold;
}

.footer-column p,
.footer-column li {
  font-size: 14px;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 5px;
}

.footer-column a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #FFD93D; /* highlight yellow */
}

.footer-bottom {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  height: 40px;
  border-radius: 50%;
}

/* Medium screens (tablets) */
@media (max-width: 1024px) {

  /* Membership section */
  .membership {
    height: 250px;
    background-position-x: center;
    background-position-y: center;
  }

  .cover-membership h1 {
    font-size: 50px;
  }

  .cover-membership h3 {
    font-size: 18px;
    max-width: 500px;
  }

  .overlay-content {
    width: 90%;
    height: auto;
    padding: 32px 24px;
  }

  /* Contact section */
  .text-contact {
    max-width: 500px;
    font-size: 1rem;
  }

  .text-contact h2 {
    font-size: 1.8rem;
  }

  .text-contact li {
    font-size: 1.1rem;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    margin: 15px 0;
    text-align: center;
  }
}

/* Mobile screens (max-width: 480px) */
/* =======================
   Media Queries (mobile)
======================= */
@media (max-width: 768px) {

  /* Header stays horizontal */
  header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    height: 70px;
  }

  .logo img {
    height: 50px;
    margin-left: 10px;
  }

  .nav-link {
    gap: 15px;
    padding-right: 10px;
  }

  .nav-link ul {
    gap: 10px;
  }

  .nav-link a {
    font-size: 16px;
  }

  a.current {
    font-size: 1rem;
  }

  .become-member {
    padding: 8px 16px;
    font-size: 14px;
  }

  /* Membership section */
  .membership {
    height: auto;
    padding: 20px 10px;
    border-radius: 10px;
    background-position: center;
  }

  .cover-membership {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0 auto;
  }

  .overlay-content {
    width: 90%;
    height: auto;
    padding: 24px 16px;
    margin: 20px auto;
    text-align: center;
  }

  .cover-membership h1 {
    font-size: 36px;
  }

  .cover-membership h3 {
    font-size: 18px;
    max-width: 90%;
  }

  /* Contact section */
  .contact-section {
    padding: 1rem;
  }

  .text-contact {
    width: 90%;
    margin-bottom: 2rem;
  }

  .text-contact h2 {
    font-size: 1.5rem;
  }

  .text-contact li {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .text-contact a {
    font-size: 1rem;
  }

  /* Footer -> stack columns */
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0 10px;
  }

  .footer-column {
    flex: 1 1 100%;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 5px;
  }

  .footer-logo {
    height: 35px;
  }
}
