@font-face {
  font-family: gistesy;
  src: url(fonts/Gistesy.ttf) format('truetype'); /* Custom font til overskrifter */
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Julius Sans One', sans-serif; /* Hovedfont til brødtekst */
}

/* HERO SEKTOR */
.hero-container {
  position: relative;
  width: 100%;
  height: 90vh; /* Højden fylder næsten hele skærmen */
  background-image: url('images/jess-snoek-DC8HdES6eM8-unsplash.jpg');
  background-size: cover;
  background-position: center;
}

.hero-text {
  position: absolute; /* Teksten placeres ovenpå billedet */
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5); /* For bedre læsbarhed */
}

.hero-text h1 {
  font-family: gistesy, sans-serif;
  font-weight: normal;
  font-size: 120px; /* Stor, tydelig titel */
  margin: 0;
}

.hero-text p {
  font-size: 28px;
  margin: 0;
}

/* FLEX 1 - Links til sektioner */
.forside-flex {
  display: flex;
  justify-content: space-around;
  gap: 2em; /* Mellemrum mellem boksene */
  flex-wrap: wrap; /* Wrap på mindre skærme */
  padding: 2em;
  max-width: 1200px;
  margin: 0 auto; /* Centrering */
}

.forside-flex a {
  flex: 1 1 300px; /* Fleksibel bredde med minimum */
  max-width: 350px;
  text-decoration: none;
  color: inherit;
}

.forside-flex a > div {
  background-color: #fef7ed;
  padding: 1.5em;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease; /* Blød hover transition */
}

.forside-flex a:hover > div {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.forside-flex h2 {
  font-family: gistesy, sans-serif;
  font-weight: normal;
  font-size: 75px;
  margin-bottom: 0.5em;
  color: #000;
}

.forside-flex p {
  font-size: 24px;
  color: #572929;
  margin-bottom: 1em;
}

.vin-image,
.Gaard-image,
.Havblink-image {
  width: 100%;
  border-radius: 6px;
}

/* FLEX 2 - Sektion med billede + tekst */
.forside-flex2 {
  max-width: 1170px;
  margin: 2em auto;
  padding: 0 1em;
}

.forside-flex2 a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.forside-flex2 a > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2em;
  background-color: #fef7ed;
  padding: 1.5em;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.forside-flex2 a:hover > div {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.tekst-container {
  flex: 1;
}

.tekst-container h2 {
  font-family: gistesy, sans-serif;
  font-size: 75px;
  font-weight: normal;
  text-align: center;
  color: #000;
  margin: 0 0 0.5em;
}

.tekst-container p {
  font-size: 24px;
  text-align: center;
  color: #572929;
  margin: 0;
}

.Rundvisning-image {
  flex: 1;
  max-width: 400px;
  width: 100%;
  border-radius: 6px;
  object-fit: cover; /* Sikrer at billedet beskæres pænt */
}

/* RESPONSIVITET */
@media screen and (max-width: 768px) {
  .hero-text h1 {
    font-size: 80px; /* Mindre titel på mobil */
  }

  .hero-text p {
    font-size: 22px;
  }

  .forside-flex {
    flex-direction: column;
    align-items: center;
  }

  .forside-flex2 a > div {
    flex-direction: column; /* Stable elementer lodret */
    text-align: center;
    gap: 1em;
  }

  .tekst-container {
    align-items: center;
  }

  .tekst-container h2 {
    font-size: 60px;
  }

  .tekst-container p {
    font-size: 20px;
  }

  .Rundvisning-image {
    max-width: 100%; /* Billedet fylder hele bredden */
  }
}
