/* --- Topbar --- */
html, body {
    margin: 0;  
}
/* --- Topbar --- */
.topbar {
    background-color: #2b2b2b;
    font-size: 14px;
    padding: 10px 20px;
    overflow-x: hidden; /* sikkerhed mod tiny overflow */
  }
  
  .topbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  
  /* Links */
  .topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 450;
  }
  
  /* Ikoner */
  .topbar-icon {
    color: white;
    height: 20px;
    width: auto;
    vertical-align: middle;
    transition: all 0.3s ease;
  }
  
.topbar-icon,
.topbar-text {
  transition: transform 0.2s ease;
}

.topbar-link:hover .topbar-icon,
.topbar-link:hover .topbar-text {
  transform: scale(1.2);
}

  .topbar-left{
	margin-top: 7px;
  }
  
  /* Right side */
  .topbar-right {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;           /* ✅ tillad wrap så det ikke overflyder */
    justify-content: flex-end; /* holder det pænt til højre */
  }
  
  /* ✅ Desktop: vis alt */
  .fb-text,
  .contact-text {
    display: inline;
    white-space: nowrap; /* holder hver tekst samlet */
  }
  
  /* ===========================
     RESPONSIVE
     =========================== */
  @media (max-width: 700px) {
  
    /* ✅ Mobil: gem kun Facebook-teksten */
    .fb-text {
      display: none;
    }
  
    /* ✅ Mobil: telefon + mail tekst bliver vist */
    .contact-text {
      display: inline;
    }
  
    /* mindre afstand, så der er plads */
    .topbar-right {
      gap: 16px;
    }
  
    .topbar {
      padding: 8px 14px;
    }
  }
  
  /* Ekstra lille mobil: hvis det stadig er tight, gør teksten lidt mindre */
  @media (max-width: 420px) {
    .topbar {
      font-size: 12.5px;
    }
  
    .topbar-right {
      gap: 12px;
    }
  
    .topbar-icon {
      height: 18px;
    }
  }
  
  
  /* --- Header --- */
  .main-header {
    background-color: #2b2b2b;
    padding: 15px 0;
    position: absolute;
    top: var(--topbar-h);
    left: 0;
    width: 100%;
    z-index: 1000;
  }
  
  .header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative; /* til mobil dropdown */
  }
  .nav-link.active{
  border-bottom: 2px solid #66A53D;
  padding-bottom: 4px;
}
  .header-logo {
    height: 80px;
    margin-left: -50px;
  }
  
  /* Desktop menu */
  .nav-menu {
    display: flex;
    font-size: 15px;
    gap: 80px;
    font-weight: 1000;
  }
  
  .nav-link {
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: 
      	color 0.3s ease-in-out,
    	transform 0.3s ease-in-out;
    display: inline-block;
    margin-right: -20px;
    font-weight: 500;
  }
  
  .nav-link.active{
    color: #66A53D;
    transform: scale(1.12);
  }
  
  .nav-link:hover:not(.active) {
  color: #66A53D;
  transform: scale(1.12);
	}


  .nav-link.active:hover{
    color: #66A53D;
    transform: scale(1.12);
  }
  
  /* --- Burger button --- */
  .burger{
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-right: -10px;
  }
  
  .burger span{
    display: block;
    width: 28px;
    height: 3px;
    background: #ffffff;
    margin: 6px 0;
  }
  
  /* ===========================
     RESPONSIVE
     =========================== */
  
  /* Mobil: topbar bliver icon-only for højre side
     (så den ikke overflower) */
  @media (max-width: 900px){
  
    /* topbar bliver lidt lavere og mere stabil */
    .topbar{
      padding: 8px 14px;
    }
  
    /* sæt variabel så header altid ligger korrekt under topbar */
    :root{
      --topbar-h: 40px;
    }
  
    /* skjul tekst på mobil, behold ikoner */
    .topbar-right .topbar-text{
      display: none;
    }
  
    /* venstre: du kan vælge at beholde navnet eller forkorte */
    .topbar-left .topbar-text{
      display: inline;         /* behold */
      max-width: 180px;        /* forhindrer at den tager alt plads */
      overflow: hidden;
      text-overflow: ellipsis;
    }
  
    .topbar-right{
      gap: 14px;
    }
  
    .topbar-icon{
      height: 22px; /* lidt større når det er icon-only */
    }
  
    /* Burger vises */
    .burger{
      display: block;
    }
  
    /* Desktop-menu skjules på mobil */
    .nav-menu{
      display: none;
      position: absolute;
      left: 0;
      right: 0;
      top: 100%;
      background: #2b2b2b;
      flex-direction: column;
      gap: 0;
      padding: 12px 20px 18px;
    }
  
    /* Når menu er åben */
    .nav-menu.open{
      display: flex;
    }
  
    .nav-link{
      margin-right: 0;
      padding: 12px 0;
      font-size: 16px;
    }
  
    /* drop “grow” hover på mobil (det hopper layout) */
    .nav-link:hover,
    .nav-link.active:hover{
      font-size: 16px;
      display:inline-block;
    }
    .nav-link{
      align-self: flex-start;
    }
  
    /* logo margin fix så det ikke skubber for meget */
    .header-logo{
      margin-left: 0;
      height: 70px;
    }
  }
  
  /* Ekstra lille mobil: skjul også venstre tekst hvis den bliver for tight */
  @media (max-width: 420px){
    .topbar-left .topbar-text{
      display: none;
    }
  }
  
   /* --- Footer --- */
.footer {
  background-color: #2b2b2b;
  color: white;
  padding: 60px 40px 30px 40px;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-height: 200px;
}

.footer-left {
  flex: 1;
  display: flex;
  justify-content: center;
}

.footer-logo {
  height: 140px;
 margin-right: 100px;
 margin-top: 20px;
}

.footer-right {
  flex: 1;
  text-align: left;
  min-width: 300px;
  margin-left: 150px;
  margin-top: -50px;
}

.footer-right h2 {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 25px;
  text-align: left;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  gap: 15px;
}

.footer-icon {
  width: 28px;
  height: 28px;
  vertical-align: middle;
}

.footer-contact a {
  color: white;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #777;
  margin-top: 40px;
  text-align: center;
  padding-top: 15px;
  font-size: 14px;
  color: #ccc;
  margin-bottom: -20px;
}

/* --- Footer: mobile (stack + centered) --- */
@media (max-width: 768px) {
.footer {
  padding: 40px 18px 24px 18px;
}

.footer-container {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-height: none;           /* vigtig */
  gap: 24px;
}

.footer-left,
.footer-right {
  width: 100%;
  flex: none;
  text-align: center;
  margin: 0;                  /* fjerner desktop margins */
}

.footer-logo {
  height: 110px;              /* lidt mindre på mobil */
  margin: 0;                  /* fjerner margin-right/top */
}

.footer-right {
  min-width: 0;               /* vigtig */
}

.footer-right h2 {
  font-size: 24px;
  margin-bottom: 18px;
  text-align: center;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-contact li {
  justify-content: center;
  margin-bottom: 0;           /* vi bruger gap i stedet */
  gap: 12px;
  text-align: center;
}

.footer-bottom {
  margin-top: 28px;
  margin-bottom: 0;           /* fjerner negativ margin */
}
}

 