/* Google Font: PT Serif Caption */
@import url('https://fonts.googleapis.com/css2?family=PT+Serif+Caption:ital@0;1&display=swap');

body {
  background-color: #0F0F10;
  margin: 0;
  font-family: "PT Serif Caption", serif;
  font-weight: 400;
  font-style: normal;
}

.navbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 20px;
  background-color: #0F0F10;
  box-sizing: border-box;
}

.logo {
  position: absolute;
  left: 20px;
}

.logo img {
  height: 50px;
}

.nav-buttons {
  display: flex;
  gap: 30px;
}

.nav-btn {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  padding: 10px 20px;
  border: 1px solid transparent;
  transition: all 0.3s;
}

.nav-btn:hover {
  border: 1px solid #fff;
  border-radius: 5px;
}

p, h1, h2, h3 {
  color: #FFFCFF;
}


.Hero {
  position: relative;
  background-image: url(/assets/FSidaBild1.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  width: 80%;
  max-width: 1308px;
  aspect-ratio: 16/9;
  margin: 50px auto;
  margin-top: 0px;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  box-sizing: border-box;
}

.HeroContent {
  background-color: rgba(34, 34, 37, 0.9);
  padding: 20px;
  border-radius: 8px;
  max-width: 700px;
  margin-bottom: 20%;
}

.HeroContent h1 {
  font-size: clamp(1.5rem, 3vw, 3rem);
  line-height: 1.2;
  margin-bottom: 15px;
}

.HeroContent p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.5;
  margin-bottom: 10px;
}

.HeroTitle {
  padding-left: 20px;  
  background-color: #012145;
  margin-left: -13%;
  min-height: 69px;       /* flexiblare än fast höjd */
  padding-top: 20px;
  width: 50%;
  display: flex;
  align-items: center;    /* centrera vertikalt */
}

.HeroTitle h2 {
  font-size: 1.8rem;
  margin: 0;
  color: #FFFCFF;
}

.SubheroOmOss {
  width: 904px;
  height: 427px;
  background: #222225;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25);
  border-radius: 0px 12px 12px 0px;
  padding-top: 20px;
  margin: 40px auto;
}

.SubheroTitel {
  background-color: #012145;
  width: 85%;
  margin-left: -40px;
  height: 87px;
}

.SubheroTitel h3 {
  padding-top: 33px;
  padding-left: 20px;
  font-size: 20px;
}

.SubheroOmOss p {
  padding-left: 20px; 
  font-size: 20px;
}

.SubheroButton {
  padding-left: 20px;
  padding-top: 20px;
}

.SubheroButton .button {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid white;
  color: white;
  background-color: #222225;
  text-decoration: none;
  font-size: 20px;
  text-align: center;
}

.SubheroButton .button:hover {
  background-color: #3a3a3f;
  color: rgb(255, 255, 255);
}

.FP-Tjänster {
  background: #111;
  color: white;
  padding: 50px 20px;
  text-align: center;
}

.FP-Tjänster h1 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.TjänstContainer {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.TjänstBlock {
  background: #222;
  padding: 20px;
  border-radius: 15px;
  flex: 1 1 250px;
  max-width: 300px;
  text-align: left;
}

.TjänstBlock h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.KunskaperContainer h3 {
  font-size: 2rem;
}

.lista {
  width: 400px;
  text-align: left;
  margin: 0 auto;
}

.post {
  border-bottom: 1px solid #555;
}

.knapp {
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.knapp:focus {
  outline: none;
}

.ikon {
  font-size: 1.3rem;
  transition: transform 0.3s;
}

.post.aktiv .ikon {
  transform: rotate(45deg);
}

.innehall {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 1rem;
  font-weight: normal;
  color: #ddd;
}

.innehall p {
  margin: 0.5rem 0 1rem;
}

.post.aktiv .innehall {
  max-height: 200px;
}

.OmKeem {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 987px;
  margin: 0 auto;
  padding: 20px 0;
}

.OmKeem h1 {
  font-size: 2rem;
}

.OmKeemRubrik {
  display: flex;
  justify-content: center; 
  align-items: center;
  width: 600px;
  height: 39px;
  margin: 0 auto;
  text-align: center;
  background-color: #012145;
  border-radius: 1px;
}

.OmKeemRubrik h2 {
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 0;
}

.OmKeem p {
  text-align: center;
  padding-bottom: 20px;
  margin-top: 0;
}

.OmKeem .button {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid white;
  color: white;
  background-color: #0F0F10;
  text-decoration: none;
  font-size: 16px;
  text-align: center;
}

.OmKeem .button:hover {
  background-color: #262629;
  color: rgb(255, 255, 255);
}

h1, h2, h3,
.nav-btn,
b, strong { 
  font-weight: 400; 
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #0e0e0e;
  border-top: 1px solid #333;
  margin-top: 40px;
  font-size: 14px;
  color: #aaa;
}

/* ------------------------------- */
/* RESPONSIVITET FÖR MOBILEN */
/* ------------------------------- */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.SubheroOmOss,
.OmKeem,
.OmKeemRubrik,
.SubheroTitel,
.FöreHero,
.Hero {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .nav-buttons {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .nav-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .logo {
    position: relative;
    left: 0;
    margin-bottom: 10px;
  }

  .Hero {
    aspect-ratio: auto;
    height: auto;
    padding: 10px;
    margin: 20px auto;
  }

  .HeroContent {
    max-width: 100%;
    padding: 15px;
  }

  .HeroContent h1 {
    font-size: 1.5rem;
  }

  .HeroContent p {
    font-size: 1rem;
  }

  .HeroTitle {
    width: 100%;          /* tar hela bredden på mobil */
    min-height: auto;     /* ingen fast höjd */
    margin: 0;            /* ta bort negativ marginal */
    padding: 10px 10px;   /* lagom padding */
    justify-content: center;
    text-align: center;
    margin-left: -20%;
  }

  .HeroTitle h2 {
    font-size: 1.5rem;    /* mobilvänlig storlek */
    line-height: 1.3;
  }

  .SubheroOmOss {
    width: 100%;
    height: auto;
    border-radius: 12px;
    padding: 20px;
  }

  .SubheroTitel {
    width: 100%;
    margin-left: 0;
    height: auto;
    padding: 10px;
  }

  .SubheroTitel h3,
  .SubheroOmOss p,
  .SubheroButton .button {
    font-size: 16px;
  }

  .TjänstContainer {
    flex-direction: column;
    align-items: center;
  }

  .TjänstBlock {
    max-width: 90%;
  }

  .OmKeem {
    width: 100%;
    padding: 10px;
  }

  .OmKeemRubrik {
    width: 100%;
    height: auto;
    padding: 10px;
  }

  .lista {
    width: 100%;
  }
}
