html {
  box-sizing: border-box;
  height: 100%;
  background-color: #141414;
}

/* Ensure page uses UTF-8 text correctly (meta tag required in HTML) */
/* Use flex column so footer sits after content and page never shows white gap */
*, *::before, *::after { box-sizing: inherit; }

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, #181818, #141414);
  color: #ffffff;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center -20%;
}

.hero-image {
  background-color: #000;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("Papirpen.jpg");
  width: 100%;
  height: 200px;
  position: relative; /* <-- ændret fra absolute -> relative for at undgå overlap */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  
}

.hero-text {
  background-color: transparent;
  text-align: center;
  color: white;
}

/* Let main vokse efter indhold og sørg for at kolonner starter i toppen */
main {
  flex: 1 0 auto;
  padding: 30px 0;
  background-color: #161616;
  display: flex;
  flex-direction: row;
  align-items: flex-start; /* børn bestemmer deres egen højde */
  justify-content: space-around;
}

/* Fjern faste højder fra kolonner så de passer til indholdet */
#Column1,
#Column2,
#Column3,
#Column2-Column3 {
  height: auto;
  min-height: 0;
}

#logo-image:hover {

  opacity: 0.3;
  transition: opacity 0.2s ease-in-out;
  transition: transform 0.2s ease;
}



header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  background: #232222;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 60px;
  height: auto;
}

.company-name {
  font-size: 24px;
  color: #ffffff;
  margin-left: 20px;
}

nav {
  background-color: #232222;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  list-style-type: none;
  margin: 10;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav ul li {
  margin-right: 70px;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Scale the link on hover */
nav ul li a:hover {
  color: #ff6600;
  transform: scale(1.8);
  text-decoration: underline;
}



ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
}

li {
  padding: 10px;
}

a {
  text-decoration: none;
  color: white;
}

.text-element {
  font-weight: bold;
  color: #ff6600;
}

.text-element:hover {
  color: #ff6600;
}

 
main {
  height: auto; /* fjernet 100vh */
  min-height: 50vh;
  background-color: #161616;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
}
.new1 {
  border: 0.8px solid white;
}




#Column1 {
  background-image: url("Robåd.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 25%;
  height: auto;
  min-width: 160px;
}

.vl { 
  
  border-left: 1px solid white;
  align-self: stretch; /* stræk til højden af den højeste kolonne i containeren */
  height: auto; /* fjern fast højde */
  margin: 0;
}

#Column2-Column3 {
  width: 50%;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start; /* bevar naturlig højde på kolonner */
  gap: 20px;
}


#Column2,
#Column3 {
  width: 50%;
  height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
}

/* Sørg for tekstbokse vokser med indhold */
#TextBox-Column2,
#TextBox-Column3 {
  width: 100%;
  box-sizing: border-box;
  padding: 20px;
  line-height: 1.5;
}

.textbox h3 {
  text-align: left;
}

.textbox h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.textbox h2 {
  font-size: 24px;
}

.textbox p {
  font-size: 18px;
  line-height: 1.6;
  font-family: "Arial", sans-serif;
}

.text-elements {
  font-weight: bold;
  color: #020202;
}

.text-elements:hover {
  color: #020202;
}


@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer skal ikke krympe eller overlappe indhold */
footer {
  flex-shrink: 0;
  background-color: #222222;
  color: #ffffff;
  padding: 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
}

/* Sørg for at <p> i tekstboks har rimelig størrelse og linjehøjde */
#TextBox-Column2 p,
#TextBox-Column3 p {
  font-size: 14px;
  margin: 0 0 1rem 0;
}

#Footer-Column1 {
  width: 20%;
  height: 20vh;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#Footer-Column1 img {
  height: 90px;
  width: 90px;
}

#Footer-Column2 {
  width: 20%;
  height: 20vh;
}

#Footer-Column2 h3 {
  margin-top: 0;
  line-height: 1.3;
}

#Footer-Column2Links {
  display: flex;
  flex-direction: column;
}

#Footer-Column2Links li {
  padding: 0;
  line-height: 1.5;
}

#Footer-Column3 {
  width: 20%;
  height: 20vh;
  display: flex;
  flex-direction: column;
}

#Footer-Column3 h3 {
  margin-top: 0;
  line-height: 1.3;
}

#Footer-Column3Text {
  display: flex;
  flex-direction: column;
}

#Footer-Column3Text p {
  padding: 0;
  margin: 0;
  line-height: 1.3;
}

#Footer-Column4 {
  width: 20%;
  height: 20vh;
  display: flex;
  flex-direction: column;
}

#Footer-Column4 h3 {
  margin-top: 0;
  line-height: 1.3;
}
